/* ═══════════════════════════════════════════════════════════════════════════
   PhoneVault — Premium Dark Glassmorphism Theme
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────────────────────── */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(17, 24, 39, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-border: rgba(255, 255, 255, 0.08);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #e0730a;
    --accent-primary-hover: #f0922e;
    --accent-primary-glow: rgba(224, 115, 10, 0.3);
    --accent-secondary: #d4a106;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;

    --gradient-1: linear-gradient(135deg, #e0730a, #f0922e);
    --gradient-2: linear-gradient(135deg, #d4a106, #f0c830);
    --gradient-3: linear-gradient(135deg, #ef4444, #f87171);
    --gradient-4: linear-gradient(135deg, #10b981, #34d399);

    --sidebar-width: 260px;
    --topbar-height: 70px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-primary-glow);

    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-primary-hover); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-primary); }

/* ── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--bg-glass-border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: var(--transition-slow);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid var(--bg-glass-border);
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-logo {
    max-width: 180px;
    height: auto;
    filter: brightness(0) invert(1);
}

.login-logo {
    max-width: 320px;
    height: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.sidebar-menu {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    text-decoration: none;
}

.menu-item svg { width: 20px; height: 20px; flex-shrink: 0; }

.menu-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.menu-item.active {
    background: var(--accent-primary-glow);
    color: var(--accent-primary-hover);
}

.menu-item.active svg { stroke: var(--accent-primary-hover); }

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--bg-glass-border);
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.user-avatar {
    width: 36px; height: 36px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: white;
    flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; }
.user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.user-role { font-size: 0.75rem; color: var(--text-muted); }

.logout-btn { color: var(--accent-danger) !important; }
.logout-btn:hover { background: rgba(239, 68, 68, 0.1) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    background: var(--bg-primary);
}

.top-bar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 32px;
    border-bottom: 1px solid var(--bg-glass-border);
    background: rgba(10, 14, 26, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.menu-toggle svg { width: 24px; height: 24px; }

.page-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex: 1;
}

.top-bar-right { display: flex; align-items: center; gap: 12px; }

.content-area { padding: 32px; }

/* ── Badge ─────────────────────────────────────────────────────────────── */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-super { background: var(--accent-primary-glow); color: var(--accent-primary-hover); }
.badge-sub { background: rgba(212, 161, 6, 0.15); color: var(--accent-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.card:hover { border-color: rgba(255, 255, 255, 0.12); }

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--bg-glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 { font-size: 1rem; font-weight: 600; }

.card-body { padding: 24px; }

.card-header-actions { display: flex; gap: 12px; align-items: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   STATS CARDS (Dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: inherit;
}

.stat-gradient-1 { background: var(--gradient-1); }
.stat-gradient-2 { background: var(--gradient-2); }
.stat-gradient-3 { background: var(--gradient-3); }
.stat-gradient-4 { background: var(--gradient-4); }

.stat-icon {
    width: 48px; height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.stat-icon svg { width: 24px; height: 24px; color: white; }

.stat-info {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.stat-value { font-size: 1.75rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); margin-top: 4px; font-weight: 500; }

/* ── Dashboard Layout ──────────────────────────────────────────────────── */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.action-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    transition: var(--transition);
    flex: 1;
    min-width: 160px;
}

.action-btn svg { width: 20px; height: 20px; }
.action-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: white; }

.action-users { background: var(--gradient-1); }
.action-upload { background: var(--gradient-2); }

/* Activity list */
.activity-list { display: flex; flex-direction: column; gap: 12px; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg-glass-border);
}

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

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

.activity-info { display: flex; flex-direction: column; }
.activity-number { font-weight: 600; font-size: 0.9rem; font-family: 'Courier New', monospace; }
.activity-meta { font-size: 0.75rem; color: var(--text-muted); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-state p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   SUB-USER DASHBOARD
   ═══════════════════════════════════════════════════════════════════════════ */
.sub-dashboard {}

.welcome-card {
    background: var(--gradient-1);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.welcome-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.welcome-content {
    position: relative;
    z-index: 1;
}

.welcome-content h2 { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 8px; }
.welcome-content p { color: rgba(255, 255, 255, 0.8); max-width: 400px; }

.welcome-card .btn { position: relative; z-index: 1; }

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.info-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-icon svg { width: 24px; height: 24px; color: white; }
.info-icon-1 { background: var(--gradient-1); }
.info-icon-2 { background: var(--gradient-2); }
.info-icon-3 { background: var(--gradient-4); }

.info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.info-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: white;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--bg-glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

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

.form-group input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

/* ── Login Input ───────────────────────────────────────────────────────── */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    outline: none;
}

.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-glow); }

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.toggle-pw {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.toggle-pw svg { width: 18px; height: 18px; }
.toggle-pw:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
}

.login-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
}

.login-artwork {
    position: relative;
    z-index: 1;
    text-align: center;
}

.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 6s ease-in-out infinite;
}

.shape-1 { width: 200px; height: 200px; top: 10%; left: -5%; animation-delay: 0s; }
.shape-2 { width: 150px; height: 150px; top: 60%; right: -3%; animation-delay: 1.5s; }
.shape-3 { width: 120px; height: 120px; bottom: 10%; left: 20%; animation-delay: 3s; }
.shape-4 { width: 80px; height: 80px; top: 30%; right: 25%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.artwork-icon svg {
    width: 80px; height: 80px;
    color: white;
    margin-bottom: 20px;
}

.artwork-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

.artwork-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-primary);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.login-header p { color: var(--text-secondary); }

.login-form .form-group { margin-bottom: 24px; }

.login-form .btn {
    margin-top: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.profile-layout {}

.profile-header-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.profile-avatar-lg {
    width: 72px; height: 72px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.profile-header-info h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.profile-header-info p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 8px; }

.profile-meta {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.profile-form .btn { margin-top: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MANAGE USERS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.users-layout { display: flex; flex-direction: column; gap: 24px; }

.create-user-card { }

.users-table-card { }

.user-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-glass);
    padding: 4px 12px;
    border-radius: 20px;
}

.table-body { padding: 0; }

.table-responsive { overflow-x: auto; }

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 14px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
}

.data-table td {
    padding: 14px 20px;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--bg-glass-border);
    color: var(--text-secondary);
}

.data-table tbody tr { transition: var(--transition); }
.data-table tbody tr:hover { background: var(--bg-glass); }

.row-suspended { opacity: 0.6; }

.user-cell { display: flex; align-items: center; gap: 10px; }

.user-avatar-sm {
    width: 32px; height: 32px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    flex-shrink: 0;
}

.user-avatar-sm.avatar-suspended { background: var(--bg-glass); color: var(--text-muted); }

.user-cell span { font-weight: 600; color: var(--text-primary); }

.email-text { font-family: 'Courier New', monospace; font-size: 0.8rem; }

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active { background: rgba(16, 185, 129, 0.15); color: var(--accent-success); }
.status-suspended { background: rgba(239, 68, 68, 0.15); color: var(--accent-danger); }

.action-cell { display: flex; gap: 8px; }

.inline-form { display: inline; }

.btn-icon {
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-glass-border);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon svg { width: 16px; height: 16px; }

.btn-icon:hover { border-color: rgba(255, 255, 255, 0.2); }

.btn-suspend:hover { color: var(--accent-warning); border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); }
.btn-activate:hover { color: var(--accent-success); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.1); }
.btn-delete:hover { color: var(--accent-danger); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.1); }
.btn-edit:hover { color: var(--accent-primary); border-color: rgba(224, 115, 10, 0.4); background: rgba(224, 115, 10, 0.1); }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.row-editing { background: rgba(224, 115, 10, 0.06) !important; border-left: 3px solid var(--accent-primary); }

.edit-user-card { border-color: var(--accent-primary); }
.edit-user-card .card-header { border-bottom-color: rgba(224, 115, 10, 0.2); }

/* ═══════════════════════════════════════════════════════════════════════════
   UPLOAD PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.upload-layout {
    max-width: 800px;
    margin: 0 auto;
}

.upload-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 32px;
}

.upload-header {
    text-align: center;
    margin-bottom: 32px;
}

.upload-icon-circle {
    width: 64px; height: 64px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.upload-icon-circle svg { width: 28px; height: 28px; color: white; }

.upload-header h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.upload-header p { color: var(--text-secondary); font-size: 0.9rem; }

.drop-zone {
    border: 2px dashed var(--bg-glass-border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 24px;
    position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent-primary);
    background: var(--accent-primary-glow);
}

.drop-zone-icon svg { width: 48px; height: 48px; color: var(--text-muted); margin-bottom: 12px; }
.drop-text { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.drop-subtext { font-size: 0.85rem; color: var(--text-muted); }

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    padding: 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-sm);
    margin-top: 16px;
}

.file-info svg { width: 20px; height: 20px; color: var(--accent-success); }
.file-info span { font-size: 0.85rem; color: var(--text-primary); }
#fileSize { color: var(--text-muted); }

.upload-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-card-sm {
    background: var(--bg-card);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.info-card-sm h3 { font-size: 0.9rem; margin-bottom: 8px; }
.info-card-sm p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.results-layout { max-width: 900px; margin: 0 auto; }

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

.results-card {
    text-align: center;
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--bg-glass-border);
}

.results-total { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); }
.results-unique { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); }
.results-dupes { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); }

.results-number { font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.results-total .results-number { color: var(--accent-primary-hover); }
.results-unique .results-number { color: var(--accent-success); }
.results-dupes .results-number { color: var(--accent-danger); }

.results-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.results-detail-card { }

.results-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.number-chip {
    padding: 8px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--bg-glass-border);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.number-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.number-more { background: var(--accent-primary-glow); color: var(--accent-primary-hover); font-weight: 600; font-family: inherit; }

/* ═══════════════════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════════════════ */
.flash-container {
    padding: 0 32px;
    margin-top: 16px;
}

.auth-flash {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0;
    max-width: 400px;
    width: 90%;
}

.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    animation: slideDown 0.3s ease;
}

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

.flash-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.flash-error { background: #ffffff; color: #991b1b; border: 1px solid #fecaca; }
.flash-info { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }

.flash-close { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    .main-content {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .dashboard-grid { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .login-container { grid-template-columns: 1fr; }
    .login-left { display: none; }
    .login-right { padding: 24px; }

    .welcome-card {
        flex-direction: column;
        text-align: center;
        padding: 28px;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .content-area { padding: 16px; }
    .top-bar { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-meta { margin-left: 0; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .upload-card { padding: 24px; }
}

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

.stat-card { animation: fadeInUp 0.5s ease forwards; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.card { animation: fadeInUp 0.5s ease forwards; }

.info-card { animation: fadeInUp 0.5s ease forwards; }
.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }
.info-card:nth-child(3) { animation-delay: 0.3s; }
