:root {
    --bg-primary: #070a14;
    --bg-secondary: #101729;
    --bg-card: rgba(17, 25, 43, 0.88);
    --bg-card-header: rgba(28, 41, 68, 0.95);
    --accent-purple: #8f6dff;
    --accent-green: #22d3a8;
    --accent-gold: #ffd166;
    --accent-red: #ff5d73;
    --text-primary: #edf2ff;
    --text-secondary: #9db3db;
    --border-color: #2a3f69;
    --input-bg: #0c1324;
    --hover-bg: #17233f;
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #132142 0%, #070a14 60%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

a {
    color: var(--accent-gold);
    text-decoration: none;
}

.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1400;
    background: rgba(6, 12, 24, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(143, 109, 255, 0.35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 2px solid rgba(143, 109, 255, 0.8);
    object-fit: cover;
}

.brand-text {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    letter-spacing: 1.2px;
}

.nav-pill-list {
    gap: 0.6rem;
}

.nav-pill {
    border: 1px solid rgba(143, 109, 255, 0.35);
    background: rgba(15, 23, 40, 0.92);
    border-radius: 10px;
    color: #dbe8ff !important;
    font-weight: 600;
    padding: 0.45rem 0.9rem !important;
}

.nav-pill:hover,
.nav-pill:focus {
    color: #fff !important;
    border-color: rgba(143, 109, 255, 0.9);
    background: rgba(28, 43, 75, 0.95);
}

.nav-dropdown {
    position: relative;
    z-index: 1500;
}

.nav-menu-pop {
    z-index: 2000;
    background: rgba(15, 23, 40, 0.98);
    border: 1px solid rgba(143, 109, 255, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.main-content {
    flex: 1;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background: rgba(8, 12, 22, 0.95);
    padding: 1rem 0;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid rgba(143, 109, 255, 0.34);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.game-card .card-header {
    background: var(--bg-card-header);
    border-bottom: 1px solid rgba(143, 109, 255, 0.25);
    color: var(--accent-gold);
    font-family: 'Orbitron', sans-serif;
}

.table-dark {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
}

.table-dark thead th {
    color: var(--accent-gold);
    border-bottom: 1px solid var(--border-color);
}

.table-dark tbody td {
    border-color: rgba(61, 87, 138, 0.35);
}

.table-active {
    --bs-table-active-bg: rgba(143, 109, 255, 0.18) !important;
}

.game-input {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
}

.game-input:focus {
    background: var(--input-bg);
    border-color: var(--accent-purple);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(143, 109, 255, 0.2);
}

.form-label {
    color: var(--text-secondary);
}

.btn-gold {
    background: linear-gradient(135deg, #ffd166, #f6a623);
    color: #1a2036;
    border: 0;
    font-weight: 700;
    border-radius: 10px;
}

.btn-gold:hover {
    color: #131a2a;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(246, 166, 35, 0.4);
}

.btn-outline-light:hover {
    background: var(--hover-bg);
    border-color: var(--accent-purple);
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-gold);
    font-size: 1.45rem;
}

.text-gold {
    color: var(--accent-gold);
}

.queue-control {
    padding: 0.25rem;
}

.queue-box {
    text-align: center;
    background: rgba(12, 19, 34, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.9rem 1.3rem;
    min-width: 260px;
}

.queue-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.queue-name {
    font-size: 1.1rem;
}

.queue-arrow {
    font-size: 2rem;
    color: var(--accent-gold);
}

.unified-top-panel {
    border-color: rgba(143, 109, 255, 0.55);
}

.top-panel-split .mini-panel {
    background: rgba(11, 18, 34, 0.9);
    border: 1px solid rgba(61, 87, 138, 0.45);
    border-radius: 12px;
    padding: 0.9rem;
    height: 100%;
}

.mini-title {
    color: var(--accent-gold);
    margin-bottom: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.member-chip-wrap {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.member-chip {
    background: rgba(23, 35, 64, 0.85);
    border: 1px solid rgba(61, 87, 138, 0.5);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
}

.current-member {
    border-color: rgba(34, 211, 168, 0.8);
    box-shadow: 0 0 10px rgba(34, 211, 168, 0.28);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.summary-grid div {
    display: flex;
    flex-direction: column;
    background: rgba(17, 28, 49, 0.95);
    border: 1px solid rgba(61, 87, 138, 0.5);
    border-radius: 10px;
    padding: 0.5rem 0.6rem;
}

.summary-grid span {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.summary-grid strong {
    font-size: 0.92rem;
}

.summary-grid .summary-wide {
    grid-column: span 2;
}

.booster-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booster-card:hover {
    transform: translateY(-3px);
}

.compact-card .booster-thumb-wrap {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    border: 1px solid rgba(143, 109, 255, 0.5);
    background: rgba(4, 8, 16, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.booster-thumb {
    width: 85px;
    height: 85px;
    object-fit: contain;
    image-rendering: auto;
}

.booster-title {
    font-size: 0.98rem;
    line-height: 1.25;
}

.compact-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.42rem;
}

.compact-metrics div {
    background: rgba(10, 16, 30, 0.88);
    border: 1px solid rgba(61, 87, 138, 0.42);
    border-radius: 8px;
    padding: 0.45rem;
}

.compact-metrics span {
    color: var(--text-secondary);
    font-size: 0.68rem;
}

.compact-metrics strong {
    font-size: 0.85rem;
}

.booster-active {
    border-color: rgba(34, 211, 168, 0.6);
}

.booster-inactive {
    filter: grayscale(0.65);
    opacity: 0.9;
    border-color: rgba(128, 141, 170, 0.5);
}

.renew-pulse {
    animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 0 rgba(255, 209, 102, 0);
    }
    50% {
        box-shadow: 0 0 22px rgba(255, 209, 102, 0.5);
    }
}

.badge.bg-success {
    background: linear-gradient(135deg, #0f766e, #2dd4bf) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #b91c1c, #ff5d73) !important;
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #334155, #64748b) !important;
}

.badge.bg-info {
    background: linear-gradient(135deg, #2563eb, #38bdf8) !important;
}

.profile-card .profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.profile-card .profile-grid div {
    background: rgba(13, 20, 37, 0.9);
    border: 1px solid rgba(61, 87, 138, 0.45);
    border-radius: 10px;
    padding: 0.75rem;
}

.profile-card .profile-grid span {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.profile-card .profile-grid strong {
    display: block;
    margin-top: 0.2rem;
}

.landing-page {
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, #1d3361 0%, #070d19 60%);
}

.landing-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(108, 146, 255, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 146, 255, 0.13) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 90%);
}

.landing-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.logo-banner-wrap {
    width: min(680px, 92vw);
    margin: 0 auto 1.3rem;
    border-radius: 18px;
    border: 2px solid rgba(143, 109, 255, 0.5);
    background: rgba(11, 18, 35, 0.9);
    box-shadow: 0 0 44px rgba(143, 109, 255, 0.35);
    overflow: hidden;
}

.landing-logo-banner {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
}

.landing-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.8rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.3rem;
    color: #f8fbff;
    text-shadow: 0 0 18px rgba(143, 109, 255, 0.9);
}

.landing-subtitle {
    color: #b0d1ff;
    font-size: 1.06rem;
    margin-top: 0.25rem;
}

.landing-desc {
    color: #d7e5ff;
    font-size: 1.24rem;
    margin-top: 0.7rem;
}

.btn-landing {
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-login {
    background: linear-gradient(135deg, #8f6dff, #5b7cff);
    color: #fff;
}

.btn-apply {
    background: linear-gradient(135deg, #16a34a, #2dd4bf);
    color: #08151e;
}

@media (max-width: 992px) {
    .nav-pill-list {
        margin-top: 0.8rem;
    }

    .profile-card .profile-grid {
        grid-template-columns: 1fr;
    }
}

.user-action-group {
    display: inline-flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
}

.user-action-group .user-btn {
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    padding: 0.45rem 0.7rem;
}

.compact-metrics span,
.compact-metrics strong {
    display: block;
}

.compact-metrics strong {
    margin-top: 0.18rem;
}

.renewal-info-box {
    background: rgba(255, 215, 102, 0.12);
    border: 1px solid rgba(255, 215, 102, 0.35);
}

.logo-banner-wrap {
    position: relative;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-banner-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.14) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: logoShine 4.8s linear infinite;
    pointer-events: none;
}

.landing-logo-banner {
    min-height: 280px;
    object-fit: cover;
}

.btn-landing {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn-login:hover,
.btn-apply:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    filter: saturate(1.2);
    color: #fff;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes logoShine {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}

.swal-toast-nav-fix {
    margin-top: 74px !important;
}

.btn-user-edit,
.btn-user-disable,
.btn-user-enable {
    border-width: 1px;
    font-weight: 700;
    letter-spacing: 0.1px;
}

.btn-user-edit {
    background: linear-gradient(135deg, #314973, #4e6ea1);
    border-color: #5f82bb;
    color: #f5f8ff;
}

.btn-user-edit:hover {
    color: #fff;
    background: linear-gradient(135deg, #3c5a8d, #6a8dc7);
}

.btn-user-disable {
    background: linear-gradient(135deg, #6f4b00, #d79200);
    border-color: #ffbf37;
    color: #fff;
}

.btn-user-disable:hover {
    color: #fff;
    background: linear-gradient(135deg, #8a5d00, #ffaf00);
}

.btn-user-enable {
    background: linear-gradient(135deg, #0f6a4c, #1fbf8a);
    border-color: #3be3ac;
    color: #fff;
}

.btn-user-enable:hover {
    color: #fff;
    background: linear-gradient(135deg, #13815d, #2ad39e);
}

.btn-profile-logout {
    background: linear-gradient(135deg, #2a365c, #42527e);
    border: 1px solid #6477ad;
    color: #f2f6ff;
    font-weight: 700;
}

.btn-profile-logout:hover {
    color: #fff;
    background: linear-gradient(135deg, #364675, #586ca1);
    box-shadow: 0 8px 18px rgba(70, 95, 151, 0.38);
}

.logo-banner-wrap {
    aspect-ratio: 16 / 6;
}

.landing-logo-banner {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    object-fit: fill;
}
