/* ═══════════════════════════════════════════════════════════════════
   Select Server & Welcome Page Styles - Zyntrix / LNG BOT (v2.0)
   Ultra-Premium Cyber Obsidian, Glassmorphism & High-Aesthetic Theme
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --rail-width: 72px;
    --sidebar-width: 290px;
    --navbar-height: 64px;

    /* Base Palette */
    --bg-base: #0a0a0d;
    --bg-card: rgba(18, 18, 24, 0.75);
    --bg-card-hover: rgba(24, 24, 32, 0.85);
    --bg-card-solid: #131318;
    --bg-surface: #171720;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(56, 189, 248, 0.4);
    --border-glow: rgba(168, 85, 247, 0.35);

    /* Electric Accents */
    --accent-cyan: #FFFFFF;
    --accent-cyan-glow: rgba(56, 189, 248, 0.25);
    --accent-purple: #FFFFFF;
    --accent-purple-glow: rgba(168, 85, 247, 0.25);
    --accent-green: rgba(255, 255, 255, 0.85);
    --accent-green-bg: rgba(52, 211, 153, 0.12);
    --accent-gold: rgba(255, 255, 255, 0.85);
    --accent-gold-bg: rgba(251, 191, 36, 0.12);
    --accent-rose: #FFFFFF;

    /* Typography Colors */
    --text-primary: #f4f4f7;
    --text-secondary: #cbd5e1;
    --text-muted: #8e8e9f;
    --text-dim: #646477;

    /* Transitions & Shadows */
    --trans-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-spring: 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
    --shadow-glow-cyan: 0 0 35px -5px rgba(56, 189, 248, 0.22);
    --shadow-glow-purple: 0 0 35px -5px rgba(168, 85, 247, 0.25);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══ BACKGROUND CANVAS & AMBIENT GLOWS ══ */
.night-sky {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(circle at 50% 10%, #151520 0%, #0a0a0d 65%);
}

#bg-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    animation: ambientFloat 14s ease-in-out infinite alternate;
}

.glow-1 {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
    top: -120px;
    left: 20%;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, transparent 70%);
    bottom: -150px;
    right: 15%;
    animation-delay: -6s;
}

.glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes ambientFloat {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-40px) scale(1.08); }
}

/* ══ 1. FAR-LEFT RAIL (DISCORD STYLE) ══ */
.far-left-rail {
    width: var(--rail-width);
    background: rgba(14, 14, 18, 0.95);
    border-right: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 120;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 16px 0;
    gap: 10px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.rail-user-profile {
    position: relative;
    cursor: pointer;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    transition: var(--trans-spring);
    background: #14141a;
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.rail-user-profile:hover {
    transform: scale(1.08);
    border-color: var(--accent-cyan);
    border-radius: 13px;
    box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.rail-avatar {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.rail-user-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #0e0e12;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.rail-divider {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    margin: 2px 0;
}

.rail-servers-container {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    scrollbar-width: none;
}

.rail-servers-container::-webkit-scrollbar {
    width: 0px;
    display: none;
}

.rail-server-item {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #16161d;
    direction: ltr;
    text-indent: 0;
    -webkit-appearance: none;
    cursor: pointer;
    position: relative;
    transition: var(--trans-spring);
    border: 1px solid var(--border-subtle);
    user-select: none;
}

.rail-server-item:hover,
.rail-server-item.active {
    border-radius: 13px;
    background: #20202c;
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px var(--accent-cyan-glow);
}

.rail-server-item img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.rail-server-icon-placeholder {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-cyan);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.rail-server-pill {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0px;
    background: var(--accent-cyan);
    border-radius: 0 4px 4px 0;
    transition: height var(--trans-base);
}

.rail-server-item:hover .rail-server-pill {
    height: 20px;
}

.rail-server-item.active .rail-server-pill {
    height: 38px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
    box-shadow: 0 0 10px var(--accent-cyan);
}

.rail-action-btn {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: var(--trans-spring);
}

.rail-action-btn:hover {
    background: var(--accent-purple);
    color: #000000;
    border-radius: 13px;
    transform: scale(1.08);
    box-shadow: 0 0 18px var(--accent-purple-glow);
}

/* Rail Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 68px;
    top: 50%;
    transform: translateY(-50%) scale(0.92);
    background: #14141c;
    color: #fff;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: 'IBM Plex Sans', sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 300;
}

[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

/* ══ 2. USER PROFILE SIDEBAR ══ */
.user-profile-sidebar {
    width: var(--sidebar-width);
    background: rgba(16, 16, 21, 0.94);
    border-right: 1px solid var(--border-subtle);
    backdrop-filter: blur(24px);
    height: 100vh;
    position: fixed;
    top: 0;
    left: var(--rail-width);
    z-index: 110;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--trans-base), opacity var(--trans-base);
    box-shadow: 14px 0 40px rgba(0, 0, 0, 0.5);
}

.user-profile-sidebar.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.sidebar-header {
    padding: 18px 16px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 22, 30, 0.6);
    position: relative;
    overflow: hidden;
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.sidebar-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.sidebar-avatar-badge {
    position: absolute;
    bottom: -3px;
    right: -3px;
    background: linear-gradient(135deg, var(--accent-cyan), #FFFFFF);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid #101015;
}

.sidebar-user-details h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.badge-role.badge-role-owner {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.45);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-role.badge-role-elite {
    color: #FFFFFF !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-role.badge-role-vip {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 10px rgba(234, 179, 8, 0.45);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-role.badge-role-admin {
    font-weight: 700;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 6px currentColor);
}

.sidebar-close-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    cursor: pointer;
    transition: var(--trans-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.sidebar-close-btn:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    transform: scale(1.05);
}

/* Sidebar Balance Chip */
.sidebar-balance-chip {
    margin: 14px 14px 4px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.balance-meta span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-meta strong {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.balance-claim-tag {
    font-size: 11.5px;
    font-weight: 700;
    background: #FFFFFF !important;
    color: #000000 !important;
    padding: 6px 14px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.balance-claim-tag i {
    color: #000000 !important;
    font-size: 11px;
}

.balance-claim-tag:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #000000 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}


/* ══ SIDEBAR TABS & NAVIGATION (CLEAN LUXURY RESTORATION) ══ */
.sidebar-tabs {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 16px 14px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sidebar-tab-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 11px 14px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.tab-label-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.tab-label-group i {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    width: 18px !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
}

.tab-arrow {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.sidebar-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    transform: translateX(2px) !important;
}

.sidebar-tab-btn:hover .tab-label-group i {
    color: #FFFFFF !important;
}

.sidebar-tab-btn:hover .tab-arrow {
    color: #FFFFFF !important;
    transform: translateX(3px) !important;
}

.sidebar-tab-btn.active {
    background: #FFFFFF !important;
    border-color: #FFFFFF !important;
    color: #000000 !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15) !important;
    transform: none !important;
}

.sidebar-tab-btn.active .tab-label-group i {
    color: #000000 !important;
}

.sidebar-tab-btn.active .tab-arrow {
    color: #000000 !important;
}

.sidebar-tab-btn.active span {
    color: #000000 !important;
}

/* Badges inside tabs */
.badge-soon, .badge-active-daily {
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.badge-soon {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.badge-active-daily {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.sidebar-tab-btn.active .badge-soon,
.sidebar-tab-btn.active .badge-active-daily {
    background: #000000 !important;
    color: #FFFFFF !important;
    border-color: #000000 !important;
}

/* Sidebar balance chip refinement */
.sidebar-balance-chip {
    margin: 14px 14px 6px 14px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.balance-meta span {
    display: block !important;
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 3px !important;
}

.balance-meta strong {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
}

/* Sidebar Footer Stats */
.sidebar-footer-stats {
    padding: 16px 18px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.footer-stat-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 11.5px !important;
}

.footer-stat-label {
    color: rgba(255, 255, 255, 0.45) !important;
}

.footer-stat-value {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.footer-stat-value.green i {
    color: #FFFFFF !important;
    font-size: 7px !important;
}


/* Cleaned duplicate legacy tab active rules */

.badge-soon, .badge-active-daily {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-soon {
    background: var(--accent-gold-bg);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.badge-active-daily {
    background: rgba(168, 85, 247, 0.18);
    color: #FFFFFF;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

/* Sidebar Footer Stats */
.sidebar-footer-stats {
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(10, 10, 14, 0.6);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.footer-stat-label {
    color: var(--text-dim);
}

.footer-stat-value {
    color: var(--text-secondary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-stat-value.green {
    color: var(--accent-green);
}

.footer-stat-value.green i {
    font-size: 7px;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ══ 3. MAIN VIEWPORT ══ */
.main-viewport {
    flex: 1;
    margin-left: var(--rail-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    transition: margin-left var(--trans-base);
    overflow-y: auto;
}

body.sidebar-open-shift .main-viewport {
    margin-left: calc(var(--rail-width) + var(--sidebar-width));
}

/* ══ TOP NAVBAR (REMOVED) ══ */
.top-navbar {
    display: none !important;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.toggle-sidebar-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--trans-fast);
}

.toggle-sidebar-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    color: #fff;
    transform: translateY(-1px);
}

.brand-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 40%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portal-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-user-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 12px 5px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--trans-fast);
}

.nav-user-preview:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-user-text {
    display: flex;
    flex-direction: column;
}

.nav-username {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.nav-points-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: var(--trans-fast);
}

.btn-logout:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.35);
    transform: translateY(-1px);
}

/* ══ CONTENT CONTAINER ══ */
.content-container {
    padding: 32px 36px 60px 36px;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

/* Main Views Switching */
.user-main-view {
    display: none;
    animation: fadeInView 0.32s ease forwards;
}

.user-main-view.active {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══ OVERVIEW HERO BANNER (NO BACKGROUND / TRANSPARENT) ══ */
.overview-welcome-hero {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 0 24px 0 !important;
    margin-bottom: 24px !important;
    position: relative;
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    backdrop-filter: none !important;
}

.overview-welcome-hero::before,
.hero-mesh-glow,
.hero-radial-spot {
    display: none !important;
}

.hero-left-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 2;
}

.hero-avatar-box {
    position: relative;
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
}

.hero-avatar-aura {
    position: absolute;
    inset: -4px;
    border-radius: 25px;
    background: conic-gradient(from 180deg at 50% 50%, #FFFFFF 0deg, #FFFFFF 180deg, #FFFFFF 360deg);
    filter: blur(6px);
    opacity: 0.8;
    animation: auraSpin 6s linear infinite;
    z-index: 1;
}

@keyframes auraSpin {
    100% { transform: rotate(360deg); }
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.22);
    position: relative;
    z-index: 2;
    background: #0f1017;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.hero-avatar-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: 3px solid #0d0e15;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    z-index: 3;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    padding: 5px 14px;
    border-radius: 30px;
    font-family: 'IBM Plex Mono', monospace;
    backdrop-filter: blur(8px);
}

.eyebrow-pill {
    font-size: 9.5px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    color: #02121e;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 7px;
    height: 7px;
    background: #000000;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 20%, #FFFFFF 65%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(56, 189, 248, 0.25));
}

.wave-emoji {
    display: inline-block;
    animation: waveHand 2.2s infinite;
    transform-origin: 75% 75%;
}

@keyframes waveHand {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(14deg); }
    40%, 80% { transform: rotate(-10deg); }
}

.hero-text p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.65;
    max-width: 630px;
    margin-bottom: 20px;
}

.hero-quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13.5px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2.5px);
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-hero-secondary:hover {
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff !important;
    transform: translateY(-2.5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-badge-free {
    font-size: 9.5px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.btn-hero-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 13.5px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-hero-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2.5px);
}

/* Hero Highlight Balance Card (Clean Transparent Widget) */
.hero-highlight-card {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 230px;
    text-decoration: none;
    position: relative;
    z-index: 2;
    backdrop-filter: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease;
    cursor: pointer;
}

.highlight-card-glow {
    display: none !important;
}

.hero-highlight-card:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(56, 189, 248, 0.45) !important;
    transform: translateY(-2.5px);
}

.highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(14, 165, 233, 0.08));
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.hero-highlight-card:hover .highlight-icon {
    transform: rotate(-8deg) scale(1.08);
}

.highlight-info {
    display: flex;
    flex-direction: column;
}

.highlight-label-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.highlight-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.highlight-chip {
    font-size: 9.5px;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.15);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1px 6px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    letter-spacing: 0.3px;
}

.highlight-info h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 3px 0;
    background: linear-gradient(135deg, #ffffff 30%, #7dd3fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-sub {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.highlight-arrow-wrap {
    margin-left: auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 12px;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.hero-highlight-card:hover .highlight-arrow-wrap {
    background: rgba(56, 189, 248, 0.2);
    color: #FFFFFF;
    transform: translateX(2px) translateY(-2px);
}

/* ══ SERVERS SELECTION SECTION (MAIN CROWN JEWEL) ══ */
.overview-servers-section {
    margin-bottom: 34px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title-wrap h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.section-title-wrap p {
    font-size: 13px;
    color: var(--text-muted);
}

.server-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 300px;
}

.server-search-wrap .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted, #94a3b8);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s ease;
}

.server-search-wrap:focus-within .search-icon {
    color: var(--accent-cyan, #FFFFFF);
}

.server-search-wrap input.server-search-input,
.server-search-wrap input[type="text"].server-search-input,
input[type="text"].server-search-input,
.server-search-input {
    width: 100%;
    min-height: 42px;
    height: 42px;
    background: rgba(18, 18, 25, 0.85) !important;
    border: 1px solid var(--border-subtle) !important;
    color: #fff !important;
    padding: 0 95px 0 42px !important;
    border-radius: 12px !important;
    font-size: 13.5px !important;
    font-family: 'IBM Plex Sans', sans-serif !important;
    transition: var(--trans-fast, all 0.2s ease);
    box-sizing: border-box !important;
}

.server-search-wrap input.server-search-input::placeholder,
.server-search-wrap input[type="text"].server-search-input::placeholder,
.server-search-input::placeholder {
    color: var(--text-muted, #94a3b8) !important;
    opacity: 0.7;
    font-size: 13.5px !important;
}

.server-search-wrap input.server-search-input:focus,
.server-search-wrap input[type="text"].server-search-input:focus,
.server-search-input:focus {
    outline: none !important;
    border-color: var(--accent-cyan, #FFFFFF) !important;
    box-shadow: 0 0 16px var(--accent-cyan-glow, rgba(56, 189, 248, 0.25)) !important;
    background: rgba(22, 22, 32, 0.95) !important;
}

.servers-count-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted, #94a3b8);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 2;
    line-height: normal;
    white-space: nowrap;
}

/* Servers Grid */
.servers-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

.server-select-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: var(--trans-spring);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.server-select-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity var(--trans-base);
    pointer-events: none;
}

.server-select-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

.server-select-card:hover::before {
    opacity: 1;
}

.card-top-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.server-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #191924;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.server-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-card-avatar .placeholder-text {
    font-family: 'Outfit', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-cyan);
}

.server-card-details {
    flex: 1;
    min-width: 0;
}

.server-card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-meta-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-bot-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green);
    background: var(--accent-green-bg);
    border: 1px solid rgba(52, 211, 153, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
}

.tag-bot-active i {
    font-size: 6px;
}

.tag-id-copy {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 6px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: var(--trans-fast);
}

.tag-id-copy:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.card-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 14px;
}

.server-access-level {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-open-server {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 8px;
    transition: var(--trans-fast);
}

.server-select-card:hover .btn-open-server {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Loading & Empty States */
.servers-loading-state,
.servers-empty-state {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.spinner-ring {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(56, 189, 248, 0.15);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    font-size: 26px;
    color: var(--text-muted);
}

.servers-empty-state h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    color: #fff;
}

.servers-empty-state p {
    font-size: 13.5px;
    color: var(--text-muted);
    max-width: 440px;
}

/* ══ STATS METRIC CARDS GRID ══ */
.overview-stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.dash-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--trans-spring);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.dash-stat-card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    right: -20px;
    bottom: -20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    transform: rotate(45deg);
    pointer-events: none;
}

.dash-stat-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.stat-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-wrap.points {
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.stat-icon-wrap.messages {
    background: rgba(52, 211, 153, 0.12);
    color: var(--accent-green);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.stat-icon-wrap.rank {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent-gold);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.stat-icon-wrap.level {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.dash-stat-meta {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dash-stat-meta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 6px 0;
    line-height: 1.1;
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
}

.stat-trend.positive { color: var(--accent-cyan); }
.stat-trend.neutral { color: var(--accent-green); }
.stat-trend.gold { color: var(--accent-gold); }
.stat-trend.purple { color: #FFFFFF; }

/* ══ POINTS CHART CARD ══ */
.overview-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-title-wrap i {
    font-size: 20px;
    color: var(--accent-cyan);
}

.chart-title-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.chart-title-wrap p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.chart-tag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
}

.chart-indicator-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

.chart-wrapper {
    width: 100%;
    height: 250px;
    position: relative;
}

/* ══ ACTIVITY / STATISTICS TABLE ══ */
.overview-statistics-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

.stats-header {
    margin-bottom: 18px;
}

.stats-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-title-wrap i {
    font-size: 20px;
    color: var(--accent-green);
}

.stats-title-wrap h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.stats-title-wrap p {
    font-size: 12.5px;
    color: var(--text-muted);
}

.earnings-table-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.earning-row {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--trans-fast);
}

.earning-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.earning-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.earning-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent-green-bg);
    color: var(--accent-green);
    display: grid;
    place-items: center;
    font-size: 17px;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.earning-details h5 {
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.earning-details p {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.earning-val {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-green);
    background: var(--accent-green-bg);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0.25);
}

/* ══ TRANSFERS VIEW ══ */
.transfer-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 32px 34px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.card-head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transfer-form-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.card-subtext {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.form-field input {
    background: rgba(14, 14, 19, 0.9);
    border: 1px solid var(--border-subtle);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'IBM Plex Sans', sans-serif;
    transition: var(--trans-fast);
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.field-hint {
    font-size: 11.5px;
    color: var(--text-dim);
    margin-top: 6px;
}

.quick-amount-pills {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.quick-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--trans-fast);
}

.quick-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border-color: rgba(56, 189, 248, 0.3);
}

.transfer-actions-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.btn-transfer {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--trans-spring);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-transfer:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.transfer-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.transfer-note code {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-cyan);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

/* ══ DAILY CLAIM VIEW ══ */
.daily-claim-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 48px 28px;
    background: radial-gradient(circle at 50% 30%, rgba(246, 193, 92, 0.15), transparent 45%),
                linear-gradient(145deg, #171b2b, #0f121d);
    border: 1px solid rgba(246, 193, 92, 0.3);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    margin-bottom: 28px;
}

.daily-eyebrow {
    display: block;
    color: #f6c15c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.daily-claim-card h2 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    font-size: 28px;
    margin: 0 0 10px;
}

.daily-claim-card > p {
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.7;
    font-size: 14px;
}

.gift-box-button {
    position: relative;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 56px;
    cursor: pointer;
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05), 0 0 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    transition: var(--trans-spring);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gift-box-button:hover {
    transform: translateY(-6px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.08), 0 0 60px rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.gift-glow {
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
}

.daily-reward-pill {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 24px auto 8px;
    color: #f8c15c;
}

.daily-reward-pill strong {
    font-size: 32px;
    font-family: 'Outfit', sans-serif;
}

.daily-reward-pill span {
    color: #cbd5e1;
    font-size: 13.5px;
}

.perk-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.perk-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--trans-fast);
}

.perk-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-3px);
}

.perk-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    margin: 0 auto 14px auto;
    display: grid;
    place-items: center;
    font-size: 22px;
}

.perk-icon-wrap.fire {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.perk-icon-wrap.gift {
    background: rgba(168, 85, 247, 0.12);
    color: #FFFFFF;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.perk-icon-wrap.crown {
    background: rgba(251, 191, 36, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.perk-card h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.perk-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ══ MEMBERSHIP VIEW ══ */
.membership-hero-wrap {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
}

.membership-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.membership-hero-wrap h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.membership-hero-wrap > p {
    font-size: 14.5px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 34px auto;
}

.membership-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    text-align: left;
}

.tier-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: var(--trans-spring);
}

.tier-card:hover {
    transform: translateY(-5px);
}

.tier-card.popular {
    border-color: var(--accent-cyan);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow-cyan);
    background: linear-gradient(180deg, rgba(22, 28, 38, 0.85), rgba(15, 17, 24, 0.95));
}

.popular-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 10px;
    font-weight: 800;
    background: var(--accent-cyan);
    color: #041018;
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.tier-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tier-pill.vip { color: var(--accent-cyan); background: rgba(56, 189, 248, 0.12); }
.tier-pill.elite { color: var(--accent-purple); background: rgba(168, 85, 247, 0.12); }

.tier-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.tier-price {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 22px;
}

.tier-price span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.tier-features li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tier-features li i {
    color: var(--accent-cyan);
    font-size: 12px;
}

.tier-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--trans-fast);
    border: none;
}

.tier-btn.current {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    cursor: default;
}

.tier-btn.vip {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.tier-btn.vip:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
    transform: translateY(-2px);
}

.tier-btn.elite {
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.tier-btn.elite:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}
.tier-card.active-tier {
    border-color: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.25) !important;
}

.tier-btn.included {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    cursor: default;
}

/* ══ Translucent Frosted Glass Modal ══ */
.daily-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 16px;
}

.daily-modal.open,
.daily-modal.active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.daily-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.daily-modal-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(150deg, rgba(20, 20, 28, 0.94) 0%, rgba(9, 9, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 26px;
    padding: 32px 26px;
    backdrop-filter: blur(36px);
    -webkit-backdrop-filter: blur(36px);
    box-shadow: 0 45px 100px rgba(0, 0, 0, 0.9), inset 0 1px 2px rgba(255, 255, 255, 0.32);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.daily-modal-close {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.75);
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.daily-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.06);
}

.modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 16px auto;
}

.daily-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: center;
}

.daily-primary-button {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    border-radius: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.daily-primary-button:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.daily-primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ══ Leaderboard rows in tab view ══ */
.tab-lb-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.tab-lb-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.tab-lb-row.rank-1 {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(251, 191, 36, 0.35);
}

.tab-lb-row.rank-2 {
    background: linear-gradient(90deg, rgba(203, 213, 225, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(203, 213, 225, 0.35);
}

.tab-lb-row.rank-3 {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(217, 119, 6, 0.35);
}

/* ══ TOP-RIGHT FLOATING TOAST NOTIFICATION ══ */
#toast,
.toast {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 440px !important;
    min-width: 280px !important;
    height: auto !important;
    min-height: auto !important;
    background: linear-gradient(135deg, rgba(16, 20, 32, 0.96) 0%, rgba(9, 12, 20, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    border-radius: 16px !important;
    color: #fff !important;
    padding: 14px 20px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.25) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    direction: rtl !important;
    text-align: right !important;
    z-index: 10000000 !important;
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.96) !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#toast.show,
.toast.show {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

#toast.toast-success, .toast.toast-success {
    border-color: rgba(74, 222, 128, .38) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.72), 0 0 24px rgba(74,222,128,.13) !important;
}

#toast.toast-error, .toast.toast-error {
    border-color: rgba(248, 113, 113, .48) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.72), 0 0 24px rgba(248,113,113,.16) !important;
}

#toast.toast-info, .toast.toast-info {
    border-color: rgba(56, 189, 248, .45) !important;
    box-shadow: 0 18px 42px rgba(0,0,0,.72), 0 0 24px rgba(56,189,248,.14) !important;
}

/* ══ RESPONSIVE ADJUSTMENTS ══ */
@media (max-width: 1100px) {
    .overview-stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .membership-tiers-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .overview-welcome-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-highlight-card {
        width: 100%;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .perk-cards-grid {
        grid-template-columns: 1fr;
    }
    .user-profile-sidebar {
        width: calc(100vw - var(--rail-width));
    }
    body.sidebar-open-shift .main-viewport {
        margin-left: var(--rail-width);
    }
}

@media (max-width: 580px) {
    .content-container {
        padding: 20px 16px 40px 16px;
    }
    .top-navbar {
        padding: 0 16px;
    }
    .hero-left-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .overview-stats-cards {
        grid-template-columns: 1fr;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .server-search-wrap {
        width: 100%;
        min-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SETTINGS & CYBER SECURITY SECTION (PIN & 2FA)
   ═══════════════════════════════════════════════════════════════════ */

.security-modules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 22px;
    margin-top: 10px;
}

.security-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 26px;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.security-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 25px rgba(56, 189, 248, 0.12);
}

.security-card-header {
    margin-bottom: 20px;
}

.sec-card-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.sec-card-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-card-badge-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.sec-card-badge-row h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.2px;
}

.sec-card-title-wrap p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

.sec-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sec-status-pill.active {
    background: rgba(52, 211, 153, 0.15);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.2);
}

.sec-status-pill.disabled {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sec-info-box {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 22px;
}

.sec-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.sec-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sec-info-row:first-child {
    padding-top: 0;
}

.sec-info-row span {
    color: var(--text-muted);
}

.sec-info-row strong {
    color: var(--text-primary);
    font-weight: 600;
}

.sec-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.sec-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1px solid transparent;
    font-family: inherit;
    text-decoration: none;
}

.sec-btn-primary {
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    color: #fff;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.35);
}

.sec-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56, 189, 248, 0.5);
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
}

.sec-btn-success {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9));
    color: #fff;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.3);
}

.sec-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}

.sec-btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.sec-btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.55);
    transform: translateY(-2px);
}

.sec-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.sec-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.sec-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.sec-tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sec-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.sec-tips-list li i {
    margin-top: 3px;
    font-size: 15px;
}

.text-cyan { color: var(--accent-cyan); }
.text-green { color: var(--accent-green); }
.text-purple { color: var(--accent-purple); }
.text-rose { color: var(--accent-rose); }

/* ── 6-DIGIT CODE INPUT GROUP & ORBIT MORPH ANIMATION ── */
.digit-inputs-wrap {
    position: relative;
    width: 100%;
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    transition: min-height 0.4s ease;
}

.digit-inputs-wrap.is-orbiting,
.digit-inputs-wrap.is-success {
    min-height: 160px;
}

.digit-inputs-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.digit-box {
    width: 48px;
    height: 54px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', monospace;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    outline: none;
    transition: all 0.45s cubic-bezier(0.34, 1.25, 0.64, 1);
    -moz-appearance: textfield;
    appearance: textfield;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    letter-spacing: 0;
}

.digit-box[type="password"] {
    font-family: caption, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 32px;
    line-height: 1;
    text-align: center !important;
    text-indent: 0 !important;
    direction: ltr !important;
}

.digit-box::-webkit-outer-spin-button,
.digit-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.digit-box:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.35), inset 0 0 6px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.digit-box.filled {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.digit-box.error {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
    animation: shakeAnim 0.35s ease;
}

@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

/* ══════════════════════════════════════════════════════════════════
   1. ORBITING CUBES ANIMATION
   ══════════════════════════════════════════════════════════════════ */
.digit-inputs-wrap.is-orbiting .digit-inputs-group {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 10px auto;
    animation: orbitCircleSpin 1.75s linear infinite;
    pointer-events: none;
}

@keyframes orbitCircleSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.digit-inputs-wrap.is-orbiting .digit-box {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 28px !important;
    height: 28px !important;
    margin: -14px 0 0 -14px !important;
    border-radius: 9px !important;
    background: linear-gradient(135deg, #ffffff 0%, #a3a3a3 100%) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.85), inset 0 0 6px #ffffff !important;
    color: transparent !important;
    caret-color: transparent !important;
    font-size: 0 !important;
    transition: transform 0.5s cubic-bezier(0.34, 1.25, 0.64, 1), background 0.3s ease, border-color 0.3s ease !important;
    animation: cubePulseGlow 1.2s ease-in-out infinite alternate !important;
}

@keyframes cubePulseGlow {
    from { box-shadow: 0 0 14px rgba(255, 255, 255, 0.6); }
    to { box-shadow: 0 0 26px rgba(255, 255, 255, 0.95), 0 0 36px rgba(255, 255, 255, 0.4); }
}

/* Positions of 6 cubes on a 48px radius circle (Hexagonal Constellation) */
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(1) {
    transform: translate(0px, -48px) !important;
}
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(2) {
    transform: translate(41.6px, -24px) !important;
}
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(3) {
    transform: translate(41.6px, 24px) !important;
}
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(4) {
    transform: translate(0px, 48px) !important;
}
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(5) {
    transform: translate(-41.6px, 24px) !important;
}
.digit-inputs-wrap.is-orbiting .digit-box:nth-child(6) {
    transform: translate(-41.6px, -24px) !important;
}

/* ══════════════════════════════════════════════════════════════════
   2. SUCCESS STATE: CHECKMARK + SUCCESSFUL AND FILLED
   ══════════════════════════════════════════════════════════════════ */
.digit-inputs-wrap.is-success .digit-inputs-group {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 10px auto;
    animation: none !important;
}

.digit-inputs-wrap.is-success .digit-box {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    margin: -14px 0 0 -14px !important;
    transform: translate(0px, 0px) scale(0) !important;
    opacity: 0 !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease !important;
}

.digit-morph-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.35s ease;
}

.digit-inputs-wrap.is-orbiting .digit-morph-loader,
.digit-inputs-wrap.is-success .digit-morph-loader,
.digit-inputs-wrap.is-error .digit-morph-loader {
    opacity: 1;
    pointer-events: auto;
}

.morph-spinner-circle {
    display: none;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    position: relative;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #262626 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 45px rgba(255, 255, 255, 0.6), inset 0 0 14px rgba(255, 255, 255, 0.45);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.digit-inputs-wrap.is-success .morph-spinner-circle {
    display: flex !important;
    animation: popSuccessIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

@keyframes popSuccessIn {
    0% { transform: scale(0.2); opacity: 0; }
    70% { transform: scale(1.22); }
    100% { transform: scale(1.15); opacity: 1; }
}

.morph-spinner-ring {
    display: none !important;
}

.morph-check-icon,
.morph-error-icon {
    position: absolute;
    font-size: 30px;
    opacity: 0;
    transform: scale(0.3);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
}

.digit-inputs-wrap.is-success .morph-check-icon {
    opacity: 1 !important;
    transform: scale(1) !important;
    color: #000000 !important;
}

/* ══════════════════════════════════════════════════════════════════
   ERROR STATE: SHAKE & RESET
   ══════════════════════════════════════════════════════════════════ */
.digit-inputs-wrap.is-error .digit-box {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    border-color: #f87171 !important;
    box-shadow: 0 0 25px rgba(239, 68, 68, 0.9) !important;
    animation: errorCubesShake 0.45s ease !important;
}

@keyframes errorCubesShake {
    0%, 100% { transform: scale(1); }
    20%, 60% { transform: scale(1.1) translateX(-6px); }
    40%, 80% { transform: scale(1.1) translateX(6px); }
}

/* Status message under spinner / checkmark */
.morph-status-msg {
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.digit-inputs-wrap.is-orbiting .morph-status-msg {
    color: #ffffff;
    animation: morphPulse 1.4s ease-in-out infinite;
}

@keyframes morphPulse {
    0%, 100% { opacity: 0.75; transform: scale(0.98); }
    50% { opacity: 1; transform: scale(1.02); }
}

.digit-inputs-wrap.is-success .morph-status-msg {
    color: #ffffff;
}

.morph-success-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
    animation: popInSuccess 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popInSuccess {
    from { transform: scale(0.75); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ── BUTTON & FEEDBACK DURING MORPH STATE ── */
.digit-inputs-wrap.is-orbiting ~ .daily-primary-button,
.digit-inputs-wrap.is-success ~ .daily-primary-button {
    opacity: 0.3;
    pointer-events: none;
    transform: scale(0.98);
}

.digit-inputs-wrap.is-orbiting ~ .lock-msg-feedback,
.digit-inputs-wrap.is-success ~ .lock-msg-feedback {
    visibility: hidden;
}

/* ── SESSION FULLSCREEN SECURITY LOCK OVERLAY (WITH STARS BACKGROUND) ── */
.session-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: radial-gradient(circle at 50% 25%, rgba(18, 18, 18, 0.96) 0%, rgba(5, 5, 5, 0.98) 75%);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    animation: fadeInLock 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* Starry Sky Animation Layers */
.session-lock-overlay::before,
.session-lock-overlay::after {
    content: '';
    position: absolute;
    inset: -50%;
    pointer-events: none;
    background-repeat: repeat;
}

/* Layer 1: Small twinkling stars */
.session-lock-overlay::before {
    background-image: 
        radial-gradient(1.5px 1.5px at 40px 60px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 120px 180px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 220px 90px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 310px 240px, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(2px 2px at 420px 140px, rgba(255, 255, 255, 0.95), transparent),
        radial-gradient(1px 1px at 530px 290px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 640px 80px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 750px 210px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(2px 2px at 860px 130px, rgba(255, 255, 255, 0.9), transparent);
    background-size: 550px 550px;
    animation: starsDrift 60s linear infinite, starsTwinkle 3s ease-in-out infinite alternate;
    opacity: 0.75;
}

/* Layer 2: Deeper subtle stars */
.session-lock-overlay::after {
    background-image: 
        radial-gradient(1px 1px at 80px 110px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 190px 270px, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(1px 1px at 290px 70px, rgba(255, 255, 255, 0.55), transparent),
        radial-gradient(2px 2px at 390px 210px, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(1px 1px at 500px 160px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.5px 1.5px at 620px 320px, rgba(255, 255, 255, 0.8), transparent);
    background-size: 400px 400px;
    animation: starsDriftReverse 85s linear infinite, starsTwinkle 4.5s ease-in-out infinite alternate;
    opacity: 0.55;
}

@keyframes starsDrift {
    from { transform: translate(0, 0); }
    to { transform: translate(-250px, -250px); }
}

@keyframes starsDriftReverse {
    from { transform: translate(0, 0); }
    to { transform: translate(200px, 200px); }
}

@keyframes starsTwinkle {
    0% { opacity: 0.35; }
    50% { opacity: 0.85; }
    100% { opacity: 0.5; }
}

.session-lock-overlay.active {
    display: flex;
}

.session-lock-overlay.fade-out-dismiss {
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

@keyframes fadeInLock {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.session-lock-card {
    max-width: 480px;
    width: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(28, 28, 28, 0.9) 0%, rgba(10, 10, 10, 0.98) 75%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(24px);
}

.session-lock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.lock-avatar-wrap {
    position: relative;
    width: 86px;
    height: 86px;
    margin: 0 auto 18px auto;
}

.lock-avatar-img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.35);
    object-fit: cover;
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

.lock-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #181818;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.8);
}

.session-lock-card h2 {
    font-size: 23px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Outfit', 'Cairo', sans-serif;
    letter-spacing: -0.3px;
}

.session-lock-card p {
    font-size: 13.5px;
    color: #a3a3a3;
    line-height: 1.6;
    margin-bottom: 18px;
}

.lock-msg-feedback {
    min-height: 22px;
    margin: 6px 0 10px 0;
    font-size: 13px;
    font-weight: 600;
}

.lock-msg-feedback.error {
    color: #f87171;
}

.lock-msg-feedback.success {
    color: #ffffff;
}

.lock-msg-feedback.info {
    color: #e5e5e5;
}

/* ── REDESIGNED SLEEK MONOCHROME GLASS BUTTONS (BLACK & WHITE) ── */
.lock-card-footer {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.lock-ghost-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #d4d4d4;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    direction: rtl;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.lock-ghost-link i {
    font-size: 14.5px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: #a3a3a3;
}

.lock-ghost-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.lock-ghost-link:hover i {
    transform: scale(1.12);
    color: #ffffff;
}

/* 2FA Monochrome Pill Button */
.lock-ghost-link.lock-btn-2fa,
#btn-lock-use-2fa,
#btn-lock-back-pin {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f5f5f5 !important;
}

.lock-ghost-link.lock-btn-2fa:hover,
#btn-lock-use-2fa:hover,
#btn-lock-back-pin:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 22px rgba(255, 255, 255, 0.1) !important;
}

/* Email Monochrome Pill Button */
.lock-ghost-link.lock-btn-email {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
}

.lock-ghost-link.lock-btn-email:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* Logout Monochrome Pill Button */
.lock-ghost-link.lock-btn-logout,
.lock-card-footer a[href*="logout"] {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #737373 !important;
}

.lock-ghost-link.lock-btn-logout:hover,
.lock-card-footer a[href*="logout"]:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #e5e5e5 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6) !important;
}

/* ═══════════════════════════════════════════════
   GOOGLE AUTHENTICATOR (TOTP) SETUP STYLES
   ═══════════════════════════════════════════════ */
.totp-steps-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px 0 20px 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.totp-step-pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.25s ease;
}

.totp-step-pill.active {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.totp-step-pill.completed {
    background: rgba(52, 211, 153, 0.12);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.totp-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 18px 0;
}

.totp-qr-frame {
    background: #ffffff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.25);
    border: 2px solid rgba(56, 189, 248, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.totp-qr-frame img {
    display: block;
    width: 180px;
    height: 180px;
    image-rendering: pixelated;
}

.totp-secret-box {
    margin: 8px 0 18px 0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px dashed rgba(56, 189, 248, 0.45);
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    direction: ltr;
}

.totp-secret-code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    color: #e0f2fe;
    font-weight: 700;
    user-select: all;
    direction: ltr;
    word-break: break-all;
    flex: 1;
    text-align: center;
}

.btn-copy-secret {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.btn-copy-secret:hover {
    background: rgba(56, 189, 248, 0.3);
    transform: translateY(-1px);
}

.totp-app-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.totp-app-badges span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHT THEME SUPPORT & ACCESSIBILITY CONTRAST
   ═══════════════════════════════════════════════════════════════════ */
html[data-theme="light"] {
    --bg-base: #f5f4f0;
    --bg-card: rgba(255, 255, 255, 0.94);
    --bg-card-hover: rgba(248, 248, 250, 0.98);
    --bg-card-solid: #ffffff;
    --bg-surface: #eae8e1;
    --border-subtle: rgba(0, 0, 0, 0.09);
    --border-hover: rgba(14, 165, 233, 0.5);
    --border-glow: rgba(14, 165, 233, 0.2);

    --text-primary: #151619;
    --text-secondary: rgba(255, 255, 255, 0.15);
    --text-muted: #64748b;
    --text-dim: #94a3b8;

    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .far-left-rail {
    background: rgba(240, 238, 233, 0.95);
    border-right-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .user-profile-sidebar {
    background: rgba(250, 249, 246, 0.96);
    border-right-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .sidebar-user-details h3,
html[data-theme="light"] .section-title-wrap h2,
html[data-theme="light"] .server-card-name {
    color: var(--text-primary);
}

html[data-theme="light"] .server-search-wrap input.server-search-input,
html[data-theme="light"] input[type="text"].server-search-input {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] .server-card-box {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

/* ═══════════════════════════════════════════════════════════════
   PREMIUM CYBER SECURITY & SETTINGS REBUILD (#0A0A0A, #FFFFFF, #000000)
   ═══════════════════════════════════════════════════════════════ */

/* Header avatar & icon badge */
.hero-avatar-box {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.hero-avatar-box i {
    color: #FFFFFF !important;
}

/* Security Score Highlight Card */
.hero-highlight-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) !important;
}

.highlight-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.highlight-icon i {
    color: #FFFFFF !important;
    font-size: 20px !important;
}

.highlight-label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
}

#sec-score-text {
    color: #FFFFFF !important;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 28px !important;
    font-weight: 800 !important;
}

.highlight-sub {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

/* 3 Quick Overview / Metrics Cards */
.overview-stats-cards .dash-stat-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
}

.overview-stats-cards .stat-icon-wrap {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

.overview-stats-cards .stat-icon-wrap i {
    color: #FFFFFF !important;
}

.overview-stats-cards .stat-label {
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
}

.overview-stats-cards h3 {
    color: #FFFFFF !important;
    font-weight: 700 !important;
}

.overview-stats-cards .stat-trend {
    color: rgba(255, 255, 255, 0.7) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
    font-weight: 500 !important;
}

.overview-stats-cards .stat-trend i {
    color: #FFFFFF !important;
}

/* Security Modules Container & Cards */
.security-modules-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)) !important;
    gap: 20px !important;
}

.security-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.security-card:hover {
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8) !important;
}

.sec-card-icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border-radius: 12px !important;
}

.sec-card-icon i {
    color: #FFFFFF !important;
    font-size: 18px !important;
}

.sec-card-badge-row h3 {
    color: #FFFFFF !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.sec-card-title-wrap p {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-top: 6px !important;
}

/* Status Pill */
.sec-status-pill {
    padding: 4px 10px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.sec-status-pill.active {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    box-shadow: none !important;
}

.sec-status-pill.disabled {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Sec info box */
.sec-info-box {
    background: #0A0A0A !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.sec-info-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    font-size: 12.5px !important;
}

.sec-info-row span {
    color: rgba(255, 255, 255, 0.5) !important;
}

.sec-info-row strong {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

.sec-info-row strong i {
    color: #FFFFFF !important;
    margin-right: 4px !important;
}

/* Security Action Buttons */
.sec-card-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: auto !important;
}

.sec-btn {
    width: 100% !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
}

/* Primary Button: Solid Crisp White with Black Text */
.sec-btn-primary {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
}

.sec-btn-primary i {
    color: #000000 !important;
}

.sec-btn-primary:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25) !important;
}

/* Success Button */
.sec-btn-success {
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15) !important;
}

.sec-btn-success i {
    color: #000000 !important;
}

.sec-btn-success:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #000000 !important;
    transform: translateY(-1px) !important;
}

/* Danger / Disable Button */
.sec-btn-danger {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.sec-btn-danger i {
    color: rgba(255, 255, 255, 0.85) !important;
}

.sec-btn-danger:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* Ghost / Secondary Button */
.sec-btn-ghost {
    background: rgba(255, 255, 255, 0.04) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.sec-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

/* Security Tips List */
.sec-tips-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.sec-tips-list li i {
    color: #FFFFFF !important;
    font-size: 14px !important;
    margin-top: 3px !important;
    flex-shrink: 0 !important;
}
