/* Brand & Logo */
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 390px;
}

.brand-link {
    align-items: center;
    color: inherit;
    display: flex;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.brand:hover .logo {
    transform: rotate(10deg) scale(1.1);
}

.brand-title {
    line-height: 1.1;
}

.brand-title strong {
    display: block;
    font-family: var(--font-heading);
    /* Updated */
    font-weight: 700;
    letter-spacing: 1.5px;
    font-size: 24px;
    color: var(--title-color);
    /* Updated */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-title span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

/* Navigation & Pills */
.nav {
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.pill {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    transform: translateZ(0);
    outline: none;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pill i,
.pill svg {
    flex-shrink: 0;
    font-size: 16px;
    opacity: 0.9;
}

.pill:hover,
.pill:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.pill:active {
    transform: translateY(0) scale(0.98);
    background: rgba(255, 255, 255, 0.12);
}

.pill.active {
    border-color: rgba(143, 217, 168, .4);
    background: linear-gradient(180deg, rgba(79, 138, 107, 0.24), rgba(79, 138, 107, 0.14));
    color: var(--primary2);
    box-shadow:
        0 8px 20px rgba(79, 138, 107, 0.18),
        inset 0 0 0 1px rgba(143, 217, 168, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Account Dropdown specific */
.pill.account {
    background: linear-gradient(180deg, rgba(194, 110, 46, 0.18), rgba(194, 110, 46, 0.08));
    border: 1px solid rgba(194, 110, 46, 0.2);
    color: var(--accent2);
    box-shadow: inset 0 1px 0 rgba(255, 235, 214, 0.08);
}

.pill.account:hover,
.pill.account:focus {
    background: rgba(194, 110, 46, 0.15);
    border-color: rgba(194, 110, 46, 0.4);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    /* Reduced for better stability */
    min-width: 250px;
    background:
        linear-gradient(180deg, rgba(32, 45, 40, 0.98), rgba(18, 27, 24, 0.98)),
        rgba(21, 32, 28, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 10px;
    margin-top: 2px !important;
    /* Minimal gap */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1000;
}

/* Invisible bridge to prevent hover loss between trigger and menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

/* Show on Hover & Keep Pill Active */
.dropdown:hover>.pill,
.dropdown:hover>.pill:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover>.pill.account {
    background: rgba(194, 110, 46, 0.15);
    border-color: rgba(194, 110, 46, 0.4);
}

/* Dropdown Caret / Chevron */
.dropdown-toggle::after {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-bottom: 0;
    border-left: 4px solid transparent;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown:hover>.dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    position: relative;
    color: var(--muted);
    border-radius: 12px;
    padding: 10px 18px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    text-decoration: none;
    outline: none;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(143, 217, 168, 0.1);
    color: #fff;
    padding-left: 24px;
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
    transform: scaleY(0.7);
}

.dropdown-item:active {
    background: rgba(143, 217, 168, 0.15);
    padding-left: 22px;
}

.dropdown-item i,
.dropdown-item svg {
    width: 20px;
    font-size: 14px;
    transform: translateZ(0);
    /* Fix jitter */
    opacity: 0.8;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    border: 1px solid rgba(143, 217, 168, 0.28);
    background: linear-gradient(135deg, rgba(79, 138, 107, 0.22), rgba(21, 32, 28, 0.88));
    color: var(--title-color);
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    outline: none;
    transform: translateZ(0);
    will-change: transform;
    box-shadow: inset 0 0 0 1px rgba(143, 217, 168, 0.08), 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    color: #fff;
    border-color: rgba(143, 217, 168, 0.55);
    background: linear-gradient(135deg, rgba(79, 138, 107, 0.45), rgba(21, 32, 28, 0.98));
    box-shadow: inset 0 0 0 1px rgba(143, 217, 168, 0.2), 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(79, 138, 107, 0.28);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    color: #fff;
    border-color: rgba(143, 217, 168, 0.6);
    background: linear-gradient(135deg, rgba(79, 138, 107, 0.55), rgba(21, 32, 28, 0.98));
    box-shadow: inset 0 0 0 1px rgba(143, 217, 168, 0.24), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.btn svg {
    display: inline-block;
    line-height: inherit;
    transform: translateZ(0);
    /* Separate layer for the icon itself */
}

.btn.primary {
    border-color: rgba(245, 166, 91, 0.45);
    background: linear-gradient(135deg, rgba(194, 110, 46, 0.88), rgba(109, 65, 35, 0.96));
    box-shadow: inset 0 0 0 1px rgba(245, 166, 91, 0.14), 0 8px 20px rgba(0, 0, 0, 0.35);
    color: #fff;
}

.btn.primary:hover,
.btn.primary:focus {
    border-color: rgba(245, 166, 91, 0.72);
    background: linear-gradient(135deg, rgba(210, 128, 61, 0.96), rgba(124, 72, 37, 1));
    box-shadow: inset 0 0 0 1px rgba(245, 166, 91, 0.2), 0 14px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(194, 110, 46, 0.25);
    color: #fff;
}

.btn.primary:active {
    border-color: rgba(245, 166, 91, 0.78);
    background: linear-gradient(135deg, rgba(220, 136, 64, 0.95), rgba(124, 72, 37, 1));
    box-shadow: inset 0 0 0 1px rgba(245, 166, 91, 0.26), 0 6px 16px rgba(0, 0, 0, 0.35);
    color: #fff;
}

/* Cards */
.card {
    border-radius: var(--radius);
    background: rgba(21, 32, 28, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow), inset 0 0 20px rgba(255, 255, 255, 0.02);
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.card:hover {
    border-color: rgba(143, 217, 168, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(143, 217, 168, 0.03);
}


.card .head {
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: linear-gradient(90deg, rgba(79, 138, 107, 0.12), transparent);
}

.card .head h2 {
    margin: 0;
    font-family: var(--font-heading);
    /* Updated */
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 22px;
    color: var(--title-color);
    /* Updated */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card .body {
    padding: 30px;
}

/* Badges & Tags */
.badge {
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid rgba(143, 217, 168, .35);
    background: rgba(79, 138, 107, .25);
    color: var(--primary2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tag {
    font-size: 16px;
    padding: 8px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item:hover .tag {
    transform: scale(1.1) rotate(5deg);
    background: rgba(143, 217, 168, 0.1);
    border-color: rgba(143, 217, 168, 0.3);
    color: var(--primary2);
}

.tag i.fa-compass {
    color: var(--primary2);
}

.tag i.fa-heart {
    color: var(--danger);
    /* Updated */
    filter: drop-shadow(0 0 5px rgba(255, 77, 77, 0.3));
}

.tag i.fa-trophy {
    color: var(--warning);
    /* Updated */
    filter: drop-shadow(0 0 5px rgba(245, 166, 91, 0.3));
}

.tag i.fa-book-open {
    color: var(--title-color);
    /* Updated */
}

.item:hover .tag i {
    filter: drop-shadow(0 0 8px currentColor);
}

/* KPI Stats */
.kpi {
    border-radius: var(--radius2);
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .03);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateY(-5px);
    border-color: rgba(143, 217, 168, 0.2);
}

.kpi:hover::before {
    opacity: 1;
}

.kpi .label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.kpi .value {
    font-weight: 800;
    font-size: 30px;
    color: var(--text);
    line-height: 1;
    text-shadow: 0 0 15px rgba(232, 237, 235, 0.1);
}

.kpi .hint {
    margin-top: 10px;
    font-size: 11px;
    color: rgba(164, 191, 175, 0.5);
    font-style: italic;
}

/* Lists & Items */
.list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.item {
    border-radius: var(--radius2);
    border: 1px solid rgba(255, 255, 255, .05);
    background: rgba(255, 255, 255, .02);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item:hover {
    background: rgba(255, 255, 255, .06);
    transform: translateX(8px);
    border-color: rgba(194, 110, 46, 0.2);
    box-shadow: -10px 0 20px -10px rgba(194, 110, 46, 0.3);
}

.item strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
    color: var(--title-color);
    /* Updated */
}

.item small {
    color: var(--muted);
    font-size: 13px;
    opacity: 0.8;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.status-indicator:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.status-indicator.primary {
    background: rgba(79, 138, 107, 0.15);
    border-color: rgba(79, 138, 107, 0.3);
    box-shadow: 0 5px 20px rgba(79, 138, 107, 0.2);
}

.status-indicator.primary:hover {
    background: rgba(79, 138, 107, 0.25);
    border-color: rgba(143, 217, 168, 0.4);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-dot.online {
    background: var(--success);
    /* Updated */
    box-shadow: 0 0 10px var(--success);
    /* Updated */
}

.status-dot.online::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 1px solid var(--success);
    /* Updated */
    animation: pulseStatus 2s infinite;
}

.status-dot.offline {
    background: var(--danger);
    /* Updated */
    box-shadow: 0 0 10px var(--danger);
    /* Updated */
}

@keyframes pulseStatus {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.status-label {
    opacity: 0.7;
    font-size: 11px;
    margin-right: 4px;
}

.status-value {
    color: var(--primary2);
}

.server-status-fab {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(21, 32, 28, 0.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    cursor: default;
}

.server-status-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.5);
}

.server-status-fab.is-online {
    border-color: rgba(79, 138, 107, 0.55);
    background: rgba(26, 44, 37, 0.94);
}

.server-status-fab.is-offline {
    border-color: rgba(211, 112, 112, 0.45);
    background: rgba(45, 29, 29, 0.94);
}

.server-status-fab .status-value {
    color: var(--text);
}

.server-status-fab.is-online .status-value {
    color: var(--success);
}

.server-status-fab.is-offline .status-value {
    color: var(--danger);
}

/* Breakpoints */

/* Extra Large (1399px) */
@media screen and (max-width: 1399px) {
    .pill svg {
        margin-right: 5px;
    }

    .pill {
        padding: 10px 18px;
    }
}

/* Large (1199px) */
@media screen and (max-width: 1199px) {
    .pill svg {
        margin-right: 5px;
        font-size: 12px;
    }

    .pill {
        padding: 10px 18px;
        font-size: 12px;
    }

    .brand {
        min-width: 280px;
    }

    .brand-title strong {
        font-size: 16px;
    }

    .brand-title span {
        font-size: 8px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

}

/* Tablet / Mobile Boundary (1199px) */
@media screen and (max-width: 1199px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(90vw, 390px);
        max-width: 390px;
        height: 100dvh;
        min-height: 100vh;
        background:
            linear-gradient(180deg, rgba(31, 42, 38, 0.96), rgba(16, 22, 20, 0.98) 36%, rgba(12, 16, 15, 0.99)),
            rgba(17, 22, 20, 0.98);
        backdrop-filter: blur(25px);
        z-index: 2000;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 22px;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(calc(100% + 24px));
        transition:
            transform 0.4s cubic-bezier(0.86, 0, 0.07, 1),
            opacity 0.25s ease,
            visibility 0.25s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow:
            -18px 0 60px rgba(0, 0, 0, 0.7),
            inset 1px 0 0 rgba(255, 255, 255, 0.04);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav>.pill,
    .nav>.dropdown {
        width: calc(100% - 24px);
        margin: 0 12px 8px;
    }

    .nav>.dropdown>.pill {
        width: 100%;
        margin: 0;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .nav>.pill {
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.06);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .mobile-nav-header+.pill,
    .mobile-nav-header+.dropdown {
        margin-top: 14px;
    }

    .nav .pill {
        padding: 16px 18px;
        justify-content: flex-start;
        font-size: 16px;
        position: relative;
        gap: 14px;
    }

    .nav .pill:hover,
    .nav .pill:focus,
    .nav .pill:active {
        transform: none;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
    }

    /* Vertical accent bar for mobile */
    .nav .pill::before {
        content: '';
        position: absolute;
        left: 10px;
        top: 10px;
        bottom: 10px;
        width: 4px;
        background: var(--primary2);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 999px;
    }

    .nav .pill.active::before,
    .nav .dropdown.active>.pill::before {
        opacity: 1;
    }

    .nav .pill svg,
    .nav .pill i {
        font-size: 18px;
        margin-right: 0;
        width: 24px;
        text-align: center;
        opacity: 0.7;
    }

    .nav .dropdown.active>.pill svg,
    .nav .dropdown.active>.pill i {
        opacity: 1;
        color: var(--primary2);
    }

    .logo {
        width: 44px;
        height: 44px;
    }

    .nav .dropdown {
        width: auto;
        margin-bottom: 0;
    }

    .nav .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        margin: 10px 12px 14px !important;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
        border-radius: 18px !important;
        padding: 8px !important;
        pointer-events: auto !important;
        display: none !important;
    }

    .nav .dropdown-menu::before {
        display: none;
    }

    .nav .dropdown.active .dropdown-menu {
        display: block !important;
    }

    .nav .dropdown.active .dropdown-toggle::after {
        transform: rotate(180deg);
        opacity: 1;
    }

    .nav .dropdown-item {
        padding: 12px 16px 12px 56px;
        font-size: 15px;
        border-radius: 14px;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav .dropdown-item::before {
        content: '';
        position: absolute;
        left: 18px;
        top: 12px;
        bottom: 12px;
        width: 2px;
        background: var(--primary2);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 999px;
    }

    .nav .dropdown-item:hover,
    .nav .dropdown-item:focus {
        background: rgba(143, 217, 168, 0.1);
        color: #fff;
        padding-left: 60px;
    }

    .nav .dropdown-item:hover::before,
    .nav .dropdown-item:focus::before {
        opacity: 0.6;
    }

    .nav .dropdown-toggle::after {
        margin-left: auto;
        margin-right: 4px;
        opacity: 0.5;
        transition: transform 0.3s ease;
    }

    .nav .dropdown.ms-xl-auto {
        margin-top: auto;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav .dropdown.ms-xl-auto>.pill.account {
        background: linear-gradient(180deg, rgba(194, 110, 46, 0.22), rgba(194, 110, 46, 0.1));
        border-color: rgba(245, 166, 91, 0.18);
    }

    .nav .dropdown-item.active {
        box-shadow: inset 0 0 0 1px rgba(143, 217, 168, 0.12);
    }

    .brand {
        min-width: auto !important;
    }

    .brand-title strong {
        font-size: 22px;
    }

    .brand-title span {
        font-size: 10px;
    }
}

/* Small (767px) */
@media screen and (max-width: 767px) {}

/* Pagination */
.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    gap: 8px;
}

.page-item {
    cursor: pointer;
}

.page-item:first-child .page-link {
    border-radius: 8px;
}

.page-item:last-child .page-link {
    border-radius: 8px;
}

/* Custom Styles for Feature Cards & Modal */
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(79, 138, 107, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-content {
    position: relative;
    z-index: 1;
}

.feature-title {
    color: var(--title-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-preview {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal Styling - Premium/Geil Look */
.modal-content {
    background: #1B2421;
    /* Fallback */
    background: rgba(27, 36, 33, 0.95);
    /* Glass-ish */
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    box-shadow: 0 0 60px rgba(79, 138, 107, 0.15);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: transparent;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: var(--title-color);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.modal-body {
    padding: 2rem;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius2);
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-close-custom {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-close-custom:hover {
    color: var(--danger);
    opacity: 1;
    transform: rotate(90deg);
}

.modal-backdrop.show {
    opacity: 0.85;
}

.page-link {
    position: relative;
    display: flex;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    background-color: var(--card2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 40px;
    justify-content: center;
    border-radius: 8px;
}

.page-link:hover {
    z-index: 2;
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(79, 138, 107, 0.4);
}

.page-item.disabled .page-link {
    color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.04);
}

/* Lore Images */
.lore-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    filter: brightness(0.85);
}

.lore-img:hover {
    filter: brightness(1);
    border-color: rgba(143, 217, 168, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

@media screen and (max-width: 768px) {
    .server-status-fab {
        left: 14px;
        bottom: 14px;
        padding: 10px 14px;
        font-size: 11px;
        gap: 8px;
    }
}

.lore-hero-img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Active Dropdown Item */
.dropdown-item.active {
    color: var(--primary2);
    background: rgba(143, 217, 168, 0.15);
    font-weight: 700;
}

.dropdown-item.active::before {
    transform: scaleY(1);
    background: var(--primary2);
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text);
    vertical-align: top;
    border-color: rgba(255, 255, 255, 0.05);
}

.table> :not(caption)>*>* {
    padding: 1rem 1.5rem;
    background-color: transparent;
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px transparent;
}

.table>tbody {
    vertical-align: inherit;
}

.table>thead {
    vertical-align: bottom;
}

.table-hover>tbody>tr:hover>* {
    color: var(--text);
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.03);
}

.table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

.table th:hover {
    color: var(--primary2);
}

.table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 14px;
}

.table th i {
    margin-left: 5px;
    opacity: 0.5;
    font-size: 10px;
}

.table-head-subtle {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.players-col-name {
    width: 40%;
}

.leaderboard-col-rank {
    width: 80px;
}

.leaderboard-col-name {
    width: 50%;
}

.table th.active {
    color: var(--primary2);
}

.table th.active i {
    opacity: 1;
}

/* Font variants for tables */
.font-heading {
    font-family: var(--font-heading);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Roadmap Styles */
.roadmap-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.roadmap-card.status-completed {
    border-top: 3px solid var(--success);
}

.roadmap-card.status-in_progress {
    border-top: 3px solid var(--accent);
}

.roadmap-card.status-planned {
    border-top: 3px solid var(--muted);
}

.leaderboard-note {
    background: rgba(143, 217, 168, 0.1);
}

.leaderboard-skill-picker {
    position: relative;
    width: min(100%, 400px);
    flex: 0 1 400px;
}

.leaderboard-skill-picker__trigger {
    appearance: none;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(79, 138, 107, 0.18), rgba(79, 138, 107, 0.06)),
        rgba(7, 12, 10, 0.82);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.leaderboard-skill-picker__trigger:hover,
.leaderboard-skill-picker.is-open .leaderboard-skill-picker__trigger {
    border-color: rgba(143, 217, 168, 0.35) !important;
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(143, 217, 168, 0.08) !important;
}

.leaderboard-skill-picker__trigger:focus-visible {
    outline: none;
    border-color: rgba(143, 217, 168, 0.5) !important;
    box-shadow:
        0 0 0 3px rgba(143, 217, 168, 0.18),
        0 18px 36px rgba(0, 0, 0, 0.35) !important;
}

.leaderboard-skill-picker__trigger:active {
    transform: translateY(1px);
    border-color: rgba(143, 217, 168, 0.42) !important;
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(143, 217, 168, 0.1) !important;
}

.leaderboard-skill-picker__trigger-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
    text-align: left;
}

.leaderboard-skill-picker__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.leaderboard-skill-picker__value {
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--title-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-skill-picker__path {
    max-width: 100%;
    font-size: 0.74rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.leaderboard-skill-picker__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary2);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.leaderboard-skill-picker__icon i {
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.leaderboard-skill-picker.is-open .leaderboard-skill-picker__icon i {
    transform: rotate(90deg) scale(1.06);
}

.leaderboard-skill-picker.is-open .leaderboard-skill-picker__icon {
    background: rgba(143, 217, 168, 0.14);
    color: var(--title-color);
    transform: translateY(-1px);
}

.leaderboard-skill-picker__panel {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    left: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(79, 138, 107, 0.12), rgba(0, 0, 0, 0)),
        rgba(12, 18, 16, 0.96);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
    z-index: 60;
}

.leaderboard-skill-picker__search {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
}

.leaderboard-skill-picker__search:focus-within {
    border-color: rgba(143, 217, 168, 0.32);
    color: var(--primary2);
    box-shadow: 0 0 0 3px rgba(143, 217, 168, 0.12);
}

.leaderboard-skill-picker__input {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-size: 0.92rem;
    padding: 0;
}

.leaderboard-skill-picker__input:focus {
    outline: none;
    box-shadow: none;
}

.leaderboard-skill-picker__input::placeholder {
    color: var(--muted);
}

.leaderboard-skill-picker__input::-webkit-search-decoration,
.leaderboard-skill-picker__input::-webkit-search-cancel-button,
.leaderboard-skill-picker__input::-webkit-search-results-button,
.leaderboard-skill-picker__input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.leaderboard-skill-picker__status {
    margin-top: 0.8rem;
    font-size: 0.78rem;
    color: var(--muted);
}

.leaderboard-skill-picker__list {
    margin-top: 0.8rem;
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding-right: 0.2rem;
}

.leaderboard-skill-option,
.leaderboard-skill-picker__empty {
    border-radius: 16px;
}

.leaderboard-skill-option {
    appearance: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.62rem 0.72rem;
    padding-left: calc(0.72rem + (var(--skill-depth, 0) * 0.72rem));
    color: var(--text);
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.leaderboard-skill-option:hover,
.leaderboard-skill-option.is-active,
.leaderboard-skill-option.is-selected {
    border-color: rgba(143, 217, 168, 0.28) !important;
    background:
        linear-gradient(90deg, rgba(143, 217, 168, 0.12), transparent 72%),
        rgba(255, 255, 255, 0.04) !important;
    transform: translateY(-1px) !important;
}

.leaderboard-skill-option.is-selected {
    box-shadow: inset 0 0 0 1px rgba(143, 217, 168, 0.16) !important;
}

.leaderboard-skill-option:active {
    border-color: rgba(143, 217, 168, 0.34) !important;
    background:
        linear-gradient(90deg, rgba(143, 217, 168, 0.16), transparent 72%),
        rgba(255, 255, 255, 0.05) !important;
    transform: translateY(0) !important;
}

.leaderboard-skill-option__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
}

.leaderboard-skill-option__title {
    min-width: 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--title-color);
}

.leaderboard-skill-option__path {
    margin-top: 0.18rem;
    font-size: 0.72rem;
    color: var(--muted);
}

.leaderboard-skill-option__count {
    flex: 0 0 auto;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    background: rgba(143, 217, 168, 0.12);
    color: var(--primary2);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.leaderboard-skill-option.is-empty .leaderboard-skill-option__count {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
}

.leaderboard-skill-option mark {
    padding: 0 0.16rem;
    border-radius: 0.35rem;
    background: rgba(143, 217, 168, 0.18);
    color: var(--title-color);
}

.leaderboard-skill-picker__empty {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 991px) {
    .card .head {
        flex-wrap: wrap;
    }

    .leaderboard-skill-picker {
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 575px) {
    .leaderboard-skill-picker__trigger {
        padding: 0.74rem 0.82rem;
        border-radius: 16px;
    }

    .leaderboard-skill-picker__panel {
        padding: 0.85rem;
        border-radius: 18px;
    }

    .leaderboard-skill-option {
        padding-right: 0.68rem;
    }

    .leaderboard-skill-option__row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-success {
    color: var(--success) !important;
}

.text-warning {
    color: var(--accent) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: auto;
}

.progress-bar {
    height: 100%;
    transition: width 1s ease-in-out;
}

.roadmap-progress-bar {
    width: 0;
}

.bg-success {
    background-color: var(--success);
}

.bg-warning {
    background-color: var(--accent);
}

.bg-secondary {
    background-color: var(--muted);
    opacity: 0.5;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.app-toast {
    min-width: 300px;
    max-width: min(420px, calc(100vw - 40px));
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 30, 26, 0.95);
    color: var(--text);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    opacity: 1;
    animation: toast-slide-in .24s ease-out;
}

.app-toast.success {
    border-left: 4px solid var(--success);
}

.app-toast.error {
    border-left: 4px solid var(--danger);
}

.app-toast.info {
    border-left: 4px solid var(--accent);
}

.app-toast i {
    flex: 0 0 auto;
    font-size: 1rem;
}

.app-toast.success i {
    color: var(--success);
}

.app-toast.error i {
    color: var(--danger);
}

.app-toast.info i {
    color: var(--accent);
}

.toast-message {
    line-height: 1.4;
    font-size: 14px;
}

.app-toast.is-leaving {
    animation: toast-slide-out .2s ease-in forwards;
}

@keyframes toast-slide-in {
    from {
        transform: translateX(14px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(14px);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .app-toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}
