/*
 * This website is provided free of charge.
 * Author: Powerpuff — https://powerpuff.pro/
 * Discord: https://discord.gg/QwCsWtP99A
 * GitHub: https://github.com/PowerpuffIO
 */

body > header.fixed.rounded-2xl {
    z-index: 100;
    pointer-events: auto;
}

body > header.fixed.rounded-2xl:not(.header-wotlk):not(.header-vanilla):not(.header-legion) {
    background: linear-gradient(180deg, rgba(30, 64, 175, 0.55) 0%, rgba(29, 78, 216, 0.4) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(147, 197, 253, 0.25);
}

.auth-page-main {
    box-sizing: border-box;
    padding-top: max(10rem, calc(1.5rem + 5.5rem + 2rem));
    padding-bottom: 4rem;
}

.auth-page-main--centered {
    align-items: center;
    justify-content: center;
}

.auth-page-main--top {
    align-items: flex-start;
    justify-content: center;
}

.cabinet-shell {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    width: 100%;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
}

@media (min-width: 768px) {
    .cabinet-shell {
        flex-direction: row;
        align-items: flex-start;
        gap: 2rem;
    }
}

.cabinet-sidebar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 768px) {
    .cabinet-sidebar {
        width: 15rem;
    }
}

.cabinet-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    font-family: BeaufortforLOL, Georgia, serif;
    font-size: 0.875rem;
    line-height: 1.25;
    border-radius: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 2px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
    text-align: center;
}

.cabinet-btn--primary {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.35);
}

.cabinet-btn--primary:hover {
    background: #2563eb;
    color: #fff;
}

.cabinet-btn--outline {
    background: transparent;
    color: #fff;
    font-weight: 500;
    border-color: rgba(255, 255, 255, 0.9);
}

.cabinet-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cabinet-btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 2px;
}

.cabinet-main {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
}

.cabinet-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin: 0 0 1.75rem;
    font-family: BeaufortforLOL, Georgia, serif;
    color: #f5e6d3;
}

.cabinet-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
    .cabinet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .cabinet-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.cabinet-card {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(23, 37, 84, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 1.25rem;
    min-width: 0;
}

.cabinet-card-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(156, 163, 175);
    margin-bottom: 0.35rem;
}

.cabinet-card-value {
    font-size: 1.125rem;
    line-height: 1.5;
    color: #fff;
    word-break: normal;
    overflow-wrap: break-word;
}

.cabinet-card-value--mono {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 639px) {
    .cabinet-card-value--mono {
        white-space: normal;
    }
}

.cabinet-card-note {
    font-size: 0.875rem;
    line-height: 1.4;
    color: rgb(156, 163, 175);
    margin-top: 0.5rem;
}

.cabinet-shell--admin {
    max-width: min(100%, 92rem);
}

.cabinet-btn--admin {
    border-color: rgba(251, 146, 60, 0.65);
    background: rgba(154, 52, 18, 0.22);
    color: #fff;
    font-weight: 600;
}

.cabinet-btn--admin:hover {
    background: rgba(234, 88, 12, 0.28);
    color: #fff;
}

.cabinet-btn--sm {
    width: auto;
    display: inline-flex;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
}

.admin-form-card {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(23, 37, 84, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.admin-form-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form-stack--loose {
    gap: 1.5rem;
}

.admin-label {
    display: block;
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
    margin-bottom: 0.35rem;
}

.admin-input,
.admin-textarea {
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
}

.admin-textarea {
    min-height: 6rem;
    resize: vertical;
}

.admin-textarea--mono {
    font-family: ui-monospace, monospace;
    font-size: 0.8125rem;
}

.admin-fieldset {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(15, 23, 42, 0.45);
    padding: 1rem 1.25rem;
    margin: 0;
}

.admin-legend {
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    color: rgb(156, 163, 175);
}

.admin-upload {
    border-radius: 1rem;
    border: 2px dashed rgba(59, 130, 246, 0.5);
    background: rgba(23, 37, 84, 0.35);
    padding: 1.25rem 1.5rem;
}

.admin-upload-title {
    font-family: BeaufortforLOL, Georgia, serif;
    font-size: 1.0625rem;
    color: #f5e6d3;
    margin: 0 0 0.35rem;
}

.admin-upload-desc {
    font-size: 0.8125rem;
    color: rgb(156, 163, 175);
    margin: 0 0 1rem;
    line-height: 1.45;
}

.admin-upload-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.admin-upload-inner:focus-within .admin-upload-pick {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 2px;
}

.admin-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-upload-pick {
    width: auto;
    flex: 0 0 auto;
    cursor: pointer;
    margin: 0;
}

.admin-upload-filename {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    word-break: break-all;
    flex: 1 1 12rem;
    min-width: 0;
}

.admin-upload-current {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: rgb(156, 163, 175);
    word-break: break-all;
}

.admin-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(23, 37, 84, 0.25);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: middle;
}

.admin-table th {
    color: rgb(156, 163, 175);
    font-weight: 600;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    border: 2px solid rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.2);
    color: #fecaca;
    cursor: pointer;
    font-family: inherit;
}

.admin-btn-danger:hover {
    background: rgba(185, 28, 28, 0.35);
    color: #fff;
}

.admin-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.4);
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar-spacer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgb(209, 213, 219);
}

.status-page {
    margin-bottom: 3rem;
}

.status-hero {
    position: relative;
    min-height: 14rem;
    border-radius: 1rem;
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.status-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.status-hero-inner {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
}

.status-hero-title {
    margin: 0;
    font-family: BeaufortforLOL, Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.02em;
}

.status-hero-sub {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.status-panel {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: rgba(23, 37, 84, 0.45);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}

.status-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .status-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.status-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.status-info-label {
    font-size: 0.875rem;
    color: rgb(156, 163, 175);
    min-width: 8rem;
}

.status-info-value {
    font-size: 0.9375rem;
    color: #fff;
}

.status-info-value--mono {
    font-variant-numeric: tabular-nums;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    flex-shrink: 0;
}

.status-dot--on {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

.status-stat-trio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .status-stat-trio {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-stat-card {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.5);
}

.status-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.status-stat-desc {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: rgb(156, 163, 175);
    line-height: 1.35;
}

.status-faction-bar {
    display: flex;
    border-radius: 0.75rem;
    overflow: hidden;
    min-height: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.status-faction-seg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #fff;
    min-width: 0;
}

.status-faction-seg--ally {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.status-faction-seg--horde {
    background: linear-gradient(90deg, #b91c1c, #dc2626);
}

.status-faction-ico {
    flex-shrink: 0;
    object-fit: contain;
}

.status-features {
    border-radius: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.55);
    padding: 1.5rem 1.5rem 1.25rem;
    margin-bottom: 2rem;
}

.status-section-title {
    margin: 0 0 1rem;
    font-family: BeaufortforLOL, Georgia, serif;
    font-size: 1.25rem;
    color: #f5e6d3;
}

.status-features-list {
    margin: 0;
    padding-left: 1.25rem;
    color: rgb(209, 213, 219);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.status-features-list li {
    margin-bottom: 0.5rem;
}

.status-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 1100px) {
    .status-tables {
        grid-template-columns: repeat(3, 1fr);
    }
}

.status-table-wrap {
    border-radius: 0.75rem;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: rgba(15, 23, 42, 0.45);
    overflow: hidden;
    min-width: 0;
}

.status-table-title {
    margin: 0;
    padding: 0.75rem 1rem;
    font-family: BeaufortforLOL, Georgia, serif;
    font-size: 1rem;
    color: #e8c5a0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.status-table th,
.status-table td {
    padding: 0.5rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.status-table th {
    color: rgb(156, 163, 175);
    font-weight: 600;
}

.status-table tbody tr:last-child td {
    border-bottom: none;
}

.status-table-ico {
    width: 2.75rem;
    text-align: center;
    vertical-align: middle;
}

.status-table-ico img {
    display: inline-block;
    vertical-align: middle;
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.status-table-empty {
    text-align: center;
    color: rgb(107, 114, 128);
}
