/* ============================================
   Panel Design System - Based on Zoqali Style
   ============================================ */

/* --- YekanBakh Font Face --- */
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/200-YekanBakh-Thin.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/300-YekanBakh-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/400-YekanBakh-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/500-YekanBakh-SemiBold.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/600-YekanBakh-Bold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/700-YekanBakh-ExtraBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/800-YekanBakh-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'YekanBakh';
    src: url('../fonts/with-weight/900-YekanBakh-ExtraBlack.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --bg: #0b0e12;
    --panel: #0f1318;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --glass-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35);
    --glass-blur: blur(20px);

    --accent-rgb: 212, 175, 55;
    --accent: rgba(var(--accent-rgb), 1);
    --accent-glow: rgba(var(--accent-rgb), 0.4);
    --accent-soft: rgba(var(--accent-rgb), 0.15);

    --success-rgb: 46, 213, 115;
    --success: rgba(var(--success-rgb), 1);
    --danger-rgb: 255, 71, 87;
    --danger: rgba(var(--danger-rgb), 1);
    --warning-rgb: 255, 159, 67;
    --warning: rgba(var(--warning-rgb), 1);
    --info-rgb: 41, 182, 246;
    --info: rgba(var(--info-rgb), 1);

    --text-primary: #f1f2f6;
    --text-secondary: #a4b0be;
    --text-muted: #7e8a9a;

    --font-family: 'YekanBakh', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-sm: 8px;
}

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

/* Override Bootstrap text-muted for dark theme */
.text-muted {
    color: var(--text-muted) !important;
}

/* Table cell text colors for dark theme */
.table td,
.table th {
    color: var(--text-primary) !important;
}

/* Empty state in tables - ensure visibility */
table .text-center,
.table .text-center {
    color: var(--text-secondary) !important;
}

/* Extra padding utility */
.px-lg-6 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: radial-gradient(circle at 50% 50%, #2c3545, #1a1f2b, var(--bg) 80%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

/* ============================================
   Glass Card
   ============================================ */
.glass-card {
    background: var(--glass);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--glass-shadow-lg);
}

/* ============================================
   Navbar
   ============================================ */
/* ============================================
   Admin Navbar - Glassmorphism Design
   ============================================ */
.glass-nav {
    background: rgba(15, 18, 25, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04),
        0 4px 24px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Top glow line */
.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(var(--accent-rgb), 0.0) 20%,
        rgba(var(--accent-rgb), 0.5) 50%,
        rgba(var(--accent-rgb), 0.0) 80%,
        transparent 100%
    );
    z-index: 1;
}

/* Bottom accent line */
.glass-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--accent-rgb), 0.3) 25%,
        rgba(var(--accent-rgb), 0.6) 50%,
        rgba(var(--accent-rgb), 0.3) 75%,
        transparent
    );
}

/* Scroll state */
.glass-nav.scrolled {
    background: rgba(10, 12, 18, 0.85);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 40px rgba(0, 0, 0, 0.45);
}

/* ---- Brand ---- */
.glass-nav .navbar-brand {
    color: #fff !important;
    font-weight: 900;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.glass-nav .navbar-brand:hover {
    transform: none;
}

.glass-nav .navbar-brand .brand-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.6));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #000;
    font-weight: 900;
    box-shadow:
        0 0 0 3px rgba(var(--accent-rgb), 0.15),
        0 4px 16px rgba(var(--accent-rgb), 0.35);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-nav .navbar-brand .brand-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.glass-nav .navbar-brand:hover .brand-icon {
    box-shadow:
        0 0 0 4px rgba(var(--accent-rgb), 0.2),
        0 6px 24px rgba(var(--accent-rgb), 0.45);
}

.glass-nav .navbar-brand:hover .brand-icon::after {
    transform: translateX(100%);
}

.glass-nav .navbar-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.glass-nav .navbar-brand .brand-text .brand-main {
    font-size: 1.05rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.3px;
}

.glass-nav .navbar-brand .brand-text .brand-sub {
    font-size: 0.6rem;
    font-weight: 600;
    color: rgba(var(--accent-rgb), 0.8);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 1px;
}

/* ---- Nav Links ---- */
.glass-nav .navbar-nav {
    gap: 0.2rem;
    align-items: center;
}

.glass-nav .nav-link {
    color: rgba(255, 255, 255, 0.55) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 500;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

.glass-nav .nav-link i {
    font-size: 0.82rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.glass-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9) !important;
}

.glass-nav .nav-link:hover i {
    opacity: 1;
}

.glass-nav .nav-link.active {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent) !important;
    font-weight: 700;
}

.glass-nav .nav-link.active i {
    opacity: 1;
    color: var(--accent);
}

/* ---- Right Section ---- */
.nav-right-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

/* ---- User Badge - Premium Design ---- */
.nav-user-dropdown-wrapper {
    position: relative;
}

.nav-user-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-user-badge:hover,
.nav-user-badge.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Chevron */
.nav-chevron {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
    margin-right: 0.3rem;
}

.nav-user-badge.active .nav-chevron {
    transform: rotate(180deg);
}

/* Avatar with glowing ring */
.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
    position: relative;
    box-shadow:
        0 0 0 2px rgba(12, 15, 22, 0.9),
        0 0 0 3.5px rgba(var(--accent-rgb), 0.35);
    transition: all 0.3s ease;
}

.nav-user-badge:hover .nav-user-avatar,
.nav-user-badge.active .nav-user-avatar {
    box-shadow:
        0 0 0 2px rgba(12, 15, 22, 0.9),
        0 0 0 3.5px rgba(var(--accent-rgb), 0.6),
        0 0 16px rgba(var(--accent-rgb), 0.3);
}

/* Online status dot */
.nav-user-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background: #2ed573;
    border-radius: 50%;
    border: 2px solid rgba(12, 15, 22, 0.9);
    box-shadow: 0 0 6px rgba(46, 213, 115, 0.5);
}

/* Desktop user name */
.nav-user-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.3;
    display: flex;
    flex-direction: column;
}

.nav-user-name small {
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 1px;
}

/* ============================================
   Glassmorphism Dropdown
   ============================================ */
.glass-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: auto;
    min-width: 240px;
    background: rgba(16, 20, 30, 0.92);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow:
        0 4px 0 rgba(255, 255, 255, 0.02),
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1100;
    overflow: hidden;
}

/* Top glow line on dropdown */
.glass-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(var(--accent-rgb), 0.4),
        transparent
    );
}

.glass-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown header */
.dropdown-header-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.dropdown-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
    box-shadow:
        0 0 0 2px rgba(16, 20, 30, 0.9),
        0 0 0 3px rgba(var(--accent-rgb), 0.3),
        0 4px 12px rgba(var(--accent-rgb), 0.25);
}

.dropdown-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-user-role {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.3rem 0.5rem;
}

/* Dropdown items */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.dropdown-item:hover i {
    opacity: 1;
}

.dropdown-item-danger {
    color: rgba(255, 71, 87, 0.85);
}

.dropdown-item-danger i {
    color: rgba(255, 71, 87, 0.7);
}

.dropdown-item-danger:hover {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
}

.dropdown-item-danger:hover i {
    color: #ff4757;
}

/* ---- Logout Button (hidden, kept for reference) ---- */
.nav-logout-btn {
    display: none;
}

/* ---- Admin Nav Specific ---- */
.admin-nav {
    background: rgba(12, 14, 22, 0.7);
}

/* ---- Navbar Toggler ---- */
.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.04);
    position: relative;
}

/* Hide Bootstrap's default toggler icon */
.navbar-toggler::before,
.navbar-toggler::after,
.navbar-toggler .navbar-toggler-icon {
    display: none !important;
}

.navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.navbar-toggler[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.navbar-toggler[aria-expanded="true"] i {
    transform: rotate(90deg);
    opacity: 0.8;
}

/* ============================================
   Mobile Sidebar - Premium Glassmorphism
   ============================================ */
@media (max-width: 991.98px) {

    /* ---- Overlay ---- */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.35s ease;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Toggler always above overlay */
    .navbar-toggler {
        z-index: 1100;
        position: relative;
    }

    /* ---- Sidebar Panel ---- */
    .glass-nav .navbar-collapse {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(10, 13, 20, 0.98);
        backdrop-filter: blur(50px) saturate(200%);
        -webkit-backdrop-filter: blur(50px) saturate(200%);
        border-left: none;
        box-shadow: -15px 0 60px rgba(0, 0, 0, 0.8);
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
        z-index: 1050;
        display: flex;
        flex-direction: column;
    }

    .glass-nav .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Remove desktop pseudo-elements */
    .glass-nav .navbar-collapse::before,
    .glass-nav .navbar-collapse::after {
        display: none !important;
    }

    /* ---- Sidebar Header ---- */
    .sidebar-header {
        display: flex;
        align-items: center;
        padding: 1rem 0.75rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(255, 255, 255, 0.02);
        flex-shrink: 0;
        gap: 0.75rem;
        width: 100%;
    }

    .sidebar-brand {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex: 1;
        min-width: 0;
    }

    .sidebar-brand-icon {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.6));
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: #000;
        box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
    }

    .sidebar-brand-text {
        display: flex;
        flex-direction: column;
    }

    .sidebar-brand-title {
        font-size: 0.95rem;
        font-weight: 800;
        color: #fff;
        line-height: 1.3;
    }

    .sidebar-brand-sub {
        font-size: 0.6rem;
        font-weight: 600;
        color: rgba(var(--accent-rgb), 0.8);
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    .sidebar-close-btn {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.25s ease;
        font-size: 0.85rem;
    }

    .sidebar-close-btn:hover {
        background: rgba(255, 71, 87, 0.12);
        border-color: rgba(255, 71, 87, 0.25);
        color: #ff4757;
    }

    /* ---- Nav Links ---- */
    .glass-nav .navbar-nav {
        flex-direction: column;
        gap: 0.3rem;
        padding: 0.75rem 0.5rem;
        flex: 1;
        overflow-y: auto;
    }

    .glass-nav .nav-item {
        animation: fadeInRight 0.3s ease backwards;
        width: 100%;
    }

    .glass-nav .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .glass-nav .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .glass-nav .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .glass-nav .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .glass-nav .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .glass-nav .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .glass-nav .nav-item:nth-child(7) { animation-delay: 0.35s; }

    .glass-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0 !important;
        height: 48px;
        width: 100%;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.2s ease;
        position: relative;
    }

    .glass-nav .nav-link i {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.04);
        border-radius: 10px;
        flex-shrink: 0;
        transition: all 0.2s ease;
        color: inherit;
    }

    .glass-nav .nav-link span {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .glass-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .glass-nav .nav-link:hover i {
        background: rgba(255, 255, 255, 0.08);
    }

    .glass-nav .nav-link.active {
        background: rgba(var(--accent-rgb), 0.1);
        color: var(--accent) !important;
        font-weight: 600;
    }

    .glass-nav .nav-link.active i {
        background: rgba(var(--accent-rgb), 0.15);
        color: var(--accent);
        box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
    }

    .glass-nav .nav-item {
        animation: fadeInRight 0.3s ease backwards;
    }

    .glass-nav .nav-item:nth-child(1) { animation-delay: 0.05s; }
    .glass-nav .nav-item:nth-child(2) { animation-delay: 0.1s; }
    .glass-nav .nav-item:nth-child(3) { animation-delay: 0.15s; }
    .glass-nav .nav-item:nth-child(4) { animation-delay: 0.2s; }
    .glass-nav .nav-item:nth-child(5) { animation-delay: 0.25s; }
    .glass-nav .nav-item:nth-child(6) { animation-delay: 0.3s; }
    .glass-nav .nav-item:nth-child(7) { animation-delay: 0.35s; }

    .glass-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0 0.75rem !important;
        height: 52px;
        width: 100%;
        border-radius: 14px;
        font-size: 0.92rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6) !important;
        transition: all 0.25s ease;
        position: relative;
    }

    .glass-nav .nav-link i {
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        flex-shrink: 0;
        transition: all 0.25s ease;
        color: inherit;
    }

    .glass-nav .nav-link span {
        font-size: 0.92rem;
        font-weight: 500;
    }

    .glass-nav .nav-link:hover {
        background: rgba(255, 255, 255, 0.04);
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .glass-nav .nav-link:hover i {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.08);
    }

    .glass-nav .nav-link.active {
        background: rgba(var(--accent-rgb), 0.08);
        color: var(--accent) !important;
        font-weight: 600;
    }

    .glass-nav .nav-link.active i {
        background: rgba(var(--accent-rgb), 0.12);
        border-color: rgba(var(--accent-rgb), 0.2);
        color: var(--accent);
        box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.15);
    }

    /* ---- Bottom User Section ---- */
    .nav-right-section {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.04);
        background: rgba(0, 0, 0, 0.25);
        flex-shrink: 0;
    }

    .nav-user-dropdown-wrapper {
        width: 100%;
        position: relative;
    }

    .nav-user-badge {
        width: 100%;
        justify-content: flex-start;
        padding: 0.6rem 0.85rem;
        border-radius: 12px;
        gap: 0.7rem;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.04);
        cursor: pointer;
    }

    .nav-user-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .nav-user-info-mobile {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .nav-user-name-mobile {
        font-size: 0.85rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.3;
    }

    .nav-user-role-mobile {
        font-size: 0.68rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.35);
    }

    .nav-chevron {
        margin-right: auto;
        margin-left: 0;
        font-size: 0.6rem;
        color: rgba(255, 255, 255, 0.3);
    }

    /* ---- Mobile Dropdown ---- */
    .glass-dropdown {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        border-radius: 14px;
        transform: translateY(5px);
        background: rgba(16, 20, 30, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        padding: 0.4rem;
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 10;
    }

    .glass-dropdown::before {
        content: '';
        position: absolute;
        top: 0;
        left: 15%;
        right: 15%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.3), transparent);
    }

    .glass-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-item {
        padding: 0.6rem 0.85rem;
        font-size: 0.85rem;
    }

    .dropdown-divider {
        margin: 0.25rem 0.5rem;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Desktop: hide overlay */
@media (min-width: 992px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* ============================================
   Desktop Hover Effects
   ============================================ */
@media (min-width: 992px) {
    .glass-nav .nav-item {
        position: relative;
    }

    .glass-nav .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        transform: translateX(-50%);
        opacity: 0;
    }

    .glass-nav .nav-link:hover::before {
        width: 60%;
        opacity: 0.4;
    }

    .glass-nav .nav-link.active::before {
        width: 60%;
        opacity: 1;
    }
}

/* ============================================
   Buttons
   ============================================ */
.btn-glass {
    background: var(--accent);
    border: none;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0 0 2px transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-glass:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 15px var(--accent-glow);
    color: #000;
}

.btn-glass:active {
    transform: scale(0.98);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #1abc9c);
    border: none;
    color: #000;
    font-weight: 700;
}

.btn-success:hover {
    box-shadow: 0 4px 15px rgba(var(--success-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    border: none;
    color: #fff;
    font-weight: 700;
}

.btn-danger:hover {
    box-shadow: 0 4px 15px rgba(var(--danger-rgb), 0.4);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning), #e67e22);
    border: none;
    color: #000;
    font-weight: 700;
}

.btn-warning:hover {
    box-shadow: 0 4px 15px rgba(var(--warning-rgb), 0.4);
    transform: translateY(-2px);
}

/* ============================================
   Form Inputs
   ============================================ */
.glass-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: var(--font-family);
}

.glass-input::placeholder {
    color: var(--text-muted);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    color: #fff;
    outline: none;
}

textarea.glass-input {
    resize: vertical;
    min-height: 60px;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    border-radius: var(--radius) 0 0 var(--radius);
    padding: 0.7rem 0.85rem;
}

.input-group .glass-input {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-text {
    font-size: 0.8rem;
}

/* ============================================
   Admin Title
   ============================================ */
.admin-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-primary);
}

.admin-title i {
    color: var(--accent);
}

/* ============================================
   Stat Cards
   ============================================ */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
    pointer-events: none;
}

.stat-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon-purple { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.stat-icon-green { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.stat-icon-orange { background: rgba(249, 115, 22, 0.2); color: #f97316; }
.stat-icon-pink { background: rgba(236, 72, 153, 0.2); color: #ec4899; }

.stat-info h3 {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.stat-info p {
    color: var(--text-secondary);
    margin: 0.2rem 0 0;
    font-size: 0.85rem;
}

.stat-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.stat-badge.new {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

/* ============================================
   Tables
   ============================================ */
.glass-table {
    color: var(--text-primary);
    margin: 0;
    background: transparent !important;
}

.glass-table thead th {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.85rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.glass-table tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1rem;
    vertical-align: middle;
    transition: background 0.2s ease;
    background: transparent !important;
}

.glass-table tbody tr {
    transition: all 0.2s ease;
}

.glass-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table-responsive {
    border-radius: var(--radius);
    overflow: auto;
}

/* ============================================
   Badges
   ============================================ */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.badge-active, .badge-paid, .badge-success {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

.badge-inactive, .badge-failed, .badge-danger {
    background: rgba(var(--danger-rgb), 0.15);
    color: var(--danger);
    border: 1px solid rgba(var(--danger-rgb), 0.25);
}

.badge-pending {
    background: rgba(var(--warning-rgb), 0.15);
    color: var(--warning);
    border: 1px solid rgba(var(--warning-rgb), 0.25);
}

/* ============================================
   Card Headers
   ============================================ */
.card-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
}

.card-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header h5 i {
    color: var(--accent);
}

/* ============================================
   Activity List
   ============================================ */
.activity-list {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.activity-item {
    display: flex;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    flex-shrink: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.activity-content p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
}

.activity-content small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ============================================
   Top Items
   ============================================ */
.top-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.top-item:last-child {
    border-bottom: none;
}

.top-item .rank {
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #000;
    flex-shrink: 0;
}

.top-item .name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.top-item .count {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   Quick Actions
   ============================================ */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.quick-action:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.quick-action i {
    font-size: 1.5rem;
    color: var(--accent);
}

.quick-action span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============================================
   Charts
   ============================================ */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    height: 200px;
    padding: 1rem 0;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bar {
    width: 100%;
    max-width: 50px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(var(--accent-rgb), 0.6) 100%);
    border-radius: 8px 8px 3px 3px;
    position: relative;
    min-height: 20px;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: height 0.5s ease;
}

.chart-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.chart-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Revenue Rows
   ============================================ */
.revenue-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.revenue-row:last-child {
    border-bottom: none;
}

.revenue-row span:first-child {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.revenue-row span:last-child {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ============================================
   Settings Form
   ============================================ */
.settings-form .form-group {
    margin-bottom: 1rem;
}

.settings-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.file-id-cell {
    max-width: 150px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Search
   ============================================ */
.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-form .glass-input {
    flex: 1;
}

.search-form-lg .input-group {
    max-width: 600px;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

/* Fix empty state inside tables */
.glass-table .empty-state {
    background: transparent;
}

.glass-table td:has(.empty-state) {
    background: transparent !important;
}

.empty-icon {
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Table empty state text */
.glass-table .text-center {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 2rem !important;
    font-size: 0.95rem;
}

.glass-table td.text-center {
    background: transparent !important;
}

/* Dash empty state */
.dash-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.dash-empty i {
    font-size: 2.5rem;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.75rem;
    display: block;
}

.dash-empty p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Avatar Circle
   ============================================ */
.avatar-circle {
    width: 38px;
    height: 38px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
    flex-shrink: 0;
}

/* ============================================
   Credentials Box
   ============================================ */
.credentials-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.credential-row:last-child {
    border-bottom: none;
}

.credential-row span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.credential-row.highlight {
    background: var(--accent-soft);
    margin: 0.5rem -0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border-bottom: none;
}

.password-display {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: 2px;
}

/* ============================================
   Info/Warning Boxes
   ============================================ */
.glass-info-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(var(--info-rgb), 0.1);
    border: 1px solid rgba(var(--info-rgb), 0.2);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--info);
    font-size: 0.85rem;
}

.glass-warning-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(var(--warning-rgb), 0.1);
    border: 1px solid rgba(var(--warning-rgb), 0.2);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    color: var(--warning);
    font-size: 0.85rem;
}

/* ============================================
   Photo Card Small
   ============================================ */
.photo-card-sm {
    text-align: center;
    padding: 1rem;
    transition: all 0.3s ease;
}

.photo-card-sm:hover {
    transform: translateY(-3px);
}

.photo-card-sm .photo-status {
    margin-bottom: 0.4rem;
    display: inline-block;
}

.photo-card-sm h6 {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

.photo-card-sm p {
    color: var(--accent);
    font-weight: 700;
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================
   Info Items
   ============================================ */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.85rem;
}

.info-item span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* ============================================
   Filter Buttons
   ============================================ */
.filter-buttons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ============================================
   Alerts
   ============================================ */
.glass-alert {
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.alert-danger.glass-alert {
    background: rgba(var(--danger-rgb), 0.15);
    border: 1px solid rgba(var(--danger-rgb), 0.3);
    color: #fca5a5;
}

.alert-success.glass-alert {
    background: rgba(var(--success-rgb), 0.15);
    border: 1px solid rgba(var(--success-rgb), 0.3);
    color: #6ee7b7;
}

/* ============================================
   Auth Container
   ============================================ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.25rem;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px var(--accent-glow);
}

.auth-icon {
    font-size: 2.5rem;
    color: #000;
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-form .form-group {
    margin-bottom: 1rem;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    min-height: calc(100vh - 180px);
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    text-align: center;
    padding: 2rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.page-header h2 i {
    color: var(--accent);
}

.page-header p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    position: relative;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   Feature Cards
   ============================================ */
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    height: 100%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============================================
   Button Group
   ============================================ */
.btn-group .btn {
    border-radius: var(--radius-sm);
    margin: 0 2px;
}

.inline-form {
    display: inline;
}

/* ============================================
   Action Buttons (Table Rows)
   ============================================ */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.btn-action:hover {
    transform: translateY(-1px);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
}

.btn-action-edit:hover {
    background: rgba(var(--info-rgb), 0.15);
    border-color: rgba(var(--info-rgb), 0.3);
    color: var(--info);
}

.btn-action-key:hover {
    background: rgba(var(--warning-rgb), 0.15);
    border-color: rgba(var(--warning-rgb), 0.3);
    color: var(--warning);
}

.btn-action-delete {
    border: none;
}

.btn-action-delete:hover {
    background: rgba(var(--danger-rgb), 0.15);
    border-color: rgba(var(--danger-rgb), 0.3);
    color: var(--danger);
}

.btn-action-confirm {
    border: none;
}

.btn-action-confirm:hover {
    background: rgba(var(--success-rgb), 0.15);
    border-color: rgba(var(--success-rgb), 0.3);
    color: var(--success);
}

.btn-action-reject {
    border: none;
}

.btn-action-reject:hover {
    background: rgba(var(--danger-rgb), 0.15);
    border-color: rgba(var(--danger-rgb), 0.3);
    color: var(--danger);
}

/* ============================================
   Filter Tabs
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.filter-tab.active {
    background: var(--accent-soft);
    border-color: rgba(var(--accent-rgb), 0.3);
    color: var(--accent);
    font-weight: 600;
}

.filter-tab.active.pending {
    background: rgba(var(--warning-rgb), 0.12);
    border-color: rgba(var(--warning-rgb), 0.3);
    color: var(--warning);
}

.filter-tab.active.paid {
    background: rgba(var(--success-rgb), 0.12);
    border-color: rgba(var(--success-rgb), 0.3);
    color: var(--success);
}

/* ============================================
   Dashboard - New Card System
   ============================================ */

/* Date Badge */
.dashboard-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.dashboard-date-badge i {
    color: var(--accent);
    font-size: 0.75rem;
}

.dashboard-subtitle {
    font-size: 0.85rem;
}

/* Stat Cards - Dashboard */
.dash-stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
}

.dash-stat-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dash-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.dash-stat-info {
    display: flex;
    flex-direction: column;
}

.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.dash-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.dash-stat-badge {
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-new {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

/* Dashboard Cards */
.dash-card {
    padding: 0;
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.dash-card-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dash-card-title i {
    color: var(--accent);
    font-size: 0.9rem;
}

.dash-card-title h5 {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.dash-card-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.dash-card-link:hover {
    color: rgba(var(--accent-rgb), 0.8);
    gap: 0.5rem;
}

.dash-card-body {
    padding: 0.5rem 1.5rem 1.25rem;
}

/* Empty State */
.dash-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
}

.dash-empty i {
    font-size: 2.5rem;
    opacity: 0.25;
    margin-bottom: 0.75rem;
    display: block;
    color: var(--accent);
}

.dash-empty p {
    margin: 0;
    font-size: 0.85rem;
}

/* Order Avatar */
.order-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.6));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
    flex-shrink: 0;
}

.order-amount {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.order-amount small {
    font-weight: 500;
    opacity: 0.7;
    font-size: 0.75rem;
}

/* Action Buttons */
.btn-action {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-confirm {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    border: 1px solid rgba(var(--success-rgb), 0.25);
}

.btn-confirm:hover {
    background: rgba(var(--success-rgb), 0.25);
    transform: translateY(-1px);
    color: var(--success);
}

/* Activity Timeline */
.activity-timeline {
    max-height: 340px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.timeline-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 3.5px;
    top: 24px;
    bottom: -2px;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.timeline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
    flex-shrink: 0;
    margin-top: 6px;
}

.timeline-content {
    flex: 1;
    min-width: 0;
}

.timeline-text {
    margin: 0;
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--text-primary);
}

.timeline-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
}

.qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.qa-icon-purple { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.qa-icon-green { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.qa-icon-orange { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.qa-icon-pink { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.qa-label {
    font-weight: 600;
    font-size: 0.82rem;
}

.qa-count {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.glass-card {
    animation: fadeInUp 0.5s ease backwards;
}

.stat-card {
    animation: slideInRight 0.5s ease backwards;
}

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

.success-icon {
    animation: bounceIn 0.5s ease;
}

.success-icon-circle {
    font-size: 4rem;
    color: var(--success);
}

.success-icon-orange {
    font-size: 4rem;
    color: var(--warning);
}

/* ============================================
   Toast Notifications - Glassmorphism
   ============================================ */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    position: relative;
    max-width: 380px;
    min-width: 280px;
    background: rgba(15, 18, 25, 0.85);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-weight: 500;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    overflow: hidden;
    pointer-events: auto;
}

.toast::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
}

.toast.show {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.toast.hiding {
    opacity: 0;
    transform: translateX(120%) scale(0.95);
    transition: all 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.toast.show .toast-icon {
    animation: toastIconPop 0.4s ease 0.2s both;
}

@keyframes toastIconPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.toast-success .toast-icon {
    background: rgba(var(--success-rgb), 0.15);
    color: var(--success);
    box-shadow: 0 0 12px rgba(var(--success-rgb), 0.2);
}

.toast-error .toast-icon {
    background: rgba(var(--danger-rgb), 0.15);
    color: var(--danger);
    box-shadow: 0 0 12px rgba(var(--danger-rgb), 0.2);
}

.toast-warning .toast-icon {
    background: rgba(var(--warning-rgb), 0.15);
    color: var(--warning);
    box-shadow: 0 0 12px rgba(var(--warning-rgb), 0.2);
}

.toast-info .toast-icon {
    background: rgba(var(--info-rgb), 0.15);
    color: var(--info);
    box-shadow: 0 0 12px rgba(var(--info-rgb), 0.2);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-message {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
}

.toast-close {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Progress bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.5));
    border-radius: 0 0 16px 16px;
    width: 100%;
    transition: width 4s linear;
}

.toast.show .toast-progress {
    width: 0%;
}

/* Mobile: center top */
@media (max-width: 576px) {
    .toast {
        top: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        min-width: auto;
    }
}

/* Multiple toasts stacking */
.toast + .toast {
    margin-top: 0;
}

/* Toast stack layers - paper effect behind main toast */
.toast-stack-layer {
    position: absolute;
    left: 0;
    right: 0;
    height: 100%;
    border-radius: 16px;
    pointer-events: none;
    animation: stackLayerIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-stack-layer-1 {
    top: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    animation-delay: 0.05s;
    opacity: 0;
}

.toast-stack-layer-2 {
    top: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    animation-delay: 0.1s;
    opacity: 0;
}

.toast-stack-layer-3 {
    top: 18px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.025);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.08);
    animation-delay: 0.15s;
    opacity: 0;
}

@keyframes stackLayerIn {
    from {
        opacity: 0;
        transform: translateX(120%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile responsive */
@media (max-width: 576px) {
    #toastContainer {
        top: 15px;
        right: 15px;
        left: 15px;
    }

    .toast {
        max-width: none;
        min-width: auto;
    }

    .toast-stack-layer-1 {
        top: 5px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    }

    .toast-stack-layer-2 {
        top: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
    }

    .toast-stack-layer-3 {
        top: 15px;
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid rgba(255, 255, 255, 0.04);
        box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.12);
    }
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large screens */
@media (min-width: 1400px) {
    .container-fluid {
        max-width: 1320px;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-section {
        padding: 3.5rem 0;
    }

    .admin-title {
        font-size: 1.3rem;
    }

    .stat-card {
        gap: 0.8rem;
        padding: 1.25rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .stat-info h3 {
        font-size: 1.4rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .quick-action {
        padding: 1.25rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .dash-card-body {
        padding: 0.5rem 1.25rem 1rem;
    }

    .dash-card-header {
        padding: 0.85rem 1.25rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .admin-title {
        font-size: 1.15rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }

    .stat-badge {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .glass-card {
        padding: 1.1rem;
        border-radius: var(--radius);
    }

    .card-header {
        padding: 0.85rem 1.1rem;
        border-radius: var(--radius) var(--radius) 0 0 !important;
    }

    .glass-table thead th,
    .glass-table tbody td {
        padding: 0.65rem 0.75rem;
        font-size: 0.8rem;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-action {
        padding: 1rem;
        flex-direction: row;
        justify-content: center;
    }

    .chart-container {
        height: 150px;
    }

    .filter-buttons {
        flex-wrap: wrap;
    }

    .credential-row {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }

    .credential-row.highlight {
        margin: 0.5rem 0;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }

    .row.g-4 > [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Dashboard Mobile */
    .dash-stat-card {
        padding: 1rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .dash-stat-badge {
        align-self: flex-start;
    }

    .dash-stat-value {
        font-size: 1.3rem;
    }

    .dash-card-body {
        padding: 0.25rem 1rem 1rem;
    }

    .dash-card-header {
        padding: 0.75rem 1rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .quick-action-card {
        padding: 1rem 0.5rem;
    }

    .qa-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .order-avatar {
        display: none;
    }

    .activity-timeline {
        max-height: 250px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .glass-card {
        padding: 0.9rem;
        border-radius: 12px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-icon {
        font-size: 2.2rem;
    }

    .stat-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .stat-info h3 {
        font-size: 1.25rem;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .quick-action {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }

    .page-header {
        padding: 1.25rem;
    }

    .page-header h2 {
        font-size: 1.2rem;
    }

    .chart-bar {
        max-width: 35px;
    }

    .chart-label {
        font-size: 0.65rem;
    }

    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Dashboard Small Mobile */
    .dash-stat-card {
        padding: 0.9rem 1rem;
    }

    .dash-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .dash-stat-value {
        font-size: 1.15rem;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .quick-action-card {
        padding: 0.85rem 0.4rem;
    }

    .qa-label {
        font-size: 0.75rem;
    }

    .qa-count {
        font-size: 0.65rem;
    }
}

/* ============================================
   Password Toggle Button
   ============================================ */
.password-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 0;
}

.password-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* ============================================
   Confirmation Modal - Glassmorphism
   ============================================ */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: visible !important;
    overflow-y: auto !important;
    padding: 0;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: none !important;
    position: relative;
    z-index: 10001;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.confirm-modal-header {
    text-align: center;
    padding: 2rem 1.5rem 1.25rem;
}

.confirm-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    box-shadow: 0 6px 24px rgba(var(--accent-rgb), 0.35);
}

.confirm-modal-header h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.confirm-modal-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Modal Body */
.confirm-modal-body {
    padding: 1.25rem 1.5rem;
}

.confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    gap: 1rem;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.confirm-label i {
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.7;
}

.confirm-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    direction: ltr;
    word-break: break-all;
}

.confirm-password {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    letter-spacing: 1px;
}

/* Modal Footer */
.confirm-modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem 1.5rem;
}

.confirm-modal-footer .btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 12px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
}

.confirm-modal-footer .btn-cancel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.confirm-modal-footer .btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.confirm-modal-footer .btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: #fff;
}

.confirm-modal-footer .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.confirm-modal-footer .btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
}

.confirm-modal-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Mobile Modal */
@media (max-width: 576px) {
    .confirm-modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 16px;
    }

    .confirm-modal-header {
        padding: 1.5rem 1.25rem 1rem;
    }

    .confirm-modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .confirm-modal-body {
        padding: 1rem 1.25rem;
    }

    .confirm-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .confirm-value {
        text-align: right;
        direction: rtl;
    }

    .confirm-modal-footer {
        flex-direction: column;
        padding: 1rem 1.25rem 1.25rem;
    }

    /* Action buttons mobile */
    .btn-action {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        font-size: 0.75rem;
    }

    /* Filter tabs mobile */
    .filter-tabs {
        width: 100%;
        border-radius: 10px;
        padding: 3px;
    }

    .filter-tab {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.78rem;
        gap: 4px;
    }

    .filter-tab i {
        font-size: 0.7rem;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
}

/* Tablet */
@media (min-width: 577px) and (max-width: 992px) {
    .btn-action {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .filter-tab {
        padding: 7px 12px;
        font-size: 0.8rem;
    }
}

/* Responsive Table to Cards on Mobile */
@media (max-width: 768px) {
    .glass-table, 
    .glass-table thead, 
    .glass-table tbody, 
    .glass-table th, 
    .glass-table td, 
    .glass-table tr { 
        display: block !important; 
        width: 100% !important;
    }
    
    .glass-table thead { 
        display: none !important;
    }
    
    .glass-table tr { 
        margin-bottom: 1.25rem !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.06) !important;
        border-radius: 14px !important;
        padding: 1rem !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    }
    
    .glass-table td { 
        border: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important; 
        position: relative !important;
        padding: 10px 0 !important;
        padding-right: 45% !important; 
        text-align: left !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        min-height: 44px !important;
        font-size: 0.85rem !important;
    }
    
    .glass-table td:last-child {
        border-bottom: 0 !important;
    }
    
    .glass-table td::before { 
        content: attr(data-label) !important;
        position: absolute !important;
        right: 0 !important;
        width: 40% !important; 
        padding-right: 5px !important; 
        white-space: nowrap !important;
        text-align: right !important;
        font-weight: 600 !important;
        color: var(--text-secondary) !important;
        font-size: 0.8rem !important;
    }

    .glass-table td .d-flex {
        justify-content: flex-end !important;
        width: 100% !important;
    }
}

/* Glassmorphism Pagination styling */
.pagination .page-item .page-link {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.pagination .page-item .page-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-1px);
}
.pagination .page-item.active .page-link,
.pagination .page-item .page-link.active-page {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}
