/* ============================================================
   Verify India - Apple (iOS) inspired design system
   Light theme, system colors, fluid motion
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Surfaces */
    --bg: #F2F2F7;
    --bg-elevated: #FFFFFF;
    --bg-secondary: #E5E5EA;
    --bg-tertiary: #F2F2F7;
    --bg-sunken: #FAFAFC;

    /* Text */
    --text-primary: #1C1C1E;
    --text-secondary: #6E6E73;
    --text-tertiary: #8E8E93;
    --text-quaternary: #AEAEB2;

    /* Lines */
    --border: rgba(60, 60, 67, 0.12);
    --border-strong: rgba(60, 60, 67, 0.22);
    --separator: rgba(60, 60, 67, 0.10);

    /* Brand */
    --accent: #007AFF;
    --accent-hover: #0A6CD6;
    --accent-soft: rgba(0, 122, 255, 0.10);
    --accent-soft-2: rgba(0, 122, 255, 0.16);
    --accent-gradient: linear-gradient(135deg, #0A84FF 0%, #5E5CE6 100%);

    /* System colors */
    --success: #34C759;
    --success-soft: rgba(52, 199, 89, 0.12);
    --warning: #FF9500;
    --warning-soft: rgba(255, 149, 0, 0.12);
    --danger: #FF3B30;
    --danger-soft: rgba(255, 59, 48, 0.10);
    --gold: #FF9F0A;
    --gold-soft: rgba(255, 159, 10, 0.12);
    --purple: #AF52DE;
    --cyan: #32ADE6;

    /* Radii */
    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Shadows (Apple-like, soft and layered) */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 6px 20px rgba(0, 122, 255, 0.28);

    /* Motion */
    --ease-standard: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition: all 0.28s var(--ease-standard);
    --transition-fast: all 0.18s var(--ease-standard);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
    line-height: 1.45;
}

::selection { background: var(--accent-soft-2); }

/* Scrollbars */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(60, 60, 67, 0.18); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgba(60, 60, 67, 0.32); }

/* ===== BACKGROUND ===== */
.bg-gradient {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1000px 600px at 12% -8%, rgba(0, 122, 255, 0.10) 0%, transparent 60%),
        radial-gradient(900px 600px at 100% 0%, rgba(94, 92, 230, 0.08) 0%, transparent 55%),
        radial-gradient(800px 700px at 50% 120%, rgba(50, 173, 230, 0.07) 0%, transparent 60%),
        var(--bg);
}

.glow-orb { display: none; }

/* ===== GLASS / CARDS ===== */
.glass,
.glass-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.glass-card {
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    animation: fadeInUp 0.5s var(--ease-out) forwards;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

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

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed; left: 0; top: 0; width: 264px; height: 100vh;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column; z-index: 100;
    transition: transform 0.4s var(--ease-out);
}

.sidebar-header {
    padding: 22px 20px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid var(--separator);
}

.logo-container { display: flex; align-items: center; gap: 11px; }

.logo-dot {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--accent-gradient);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.30);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.logo-dot::after {
    content: ''; width: 10px; height: 10px; border-radius: 3px;
    background: rgba(255, 255, 255, 0.95);
}

.logo-text {
    font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text-primary);
}

.sidebar-close {
    background: none; border: none; color: var(--text-tertiary);
    font-size: 1.3rem; cursor: pointer; width: 34px; height: 34px;
    border-radius: var(--radius-sm); display: none;
    align-items: center; justify-content: center;
    transition: var(--transition-fast);
}
.sidebar-close:hover { background: var(--bg-secondary); color: var(--text-primary); }

/* ===== NAV ===== */
.nav-links { list-style: none; padding: 12px 10px; flex: 1; overflow-y: auto; }

.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; border-radius: var(--radius-md);
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.9rem; font-weight: 500;
    transition: var(--transition-fast); position: relative;
    margin-bottom: 2px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.nav-item:hover { background: rgba(0, 0, 0, 0.04); color: var(--text-primary); }

.nav-item.active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.nav-item.active .nav-icon { color: var(--accent); }

.nav-icon {
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: currentColor;
}

/* ===== SIDEBAR USER ===== */
.sidebar-user {
    padding: 16px 18px;
    border-top: 1px solid var(--separator);
    border-bottom: 1px solid var(--separator);
}

.avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent-gradient);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 1rem; color: #fff;
    flex-shrink: 0; box-shadow: var(--shadow-xs);
}

.user-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px; border-radius: var(--radius-full);
    font-size: 0.64rem; font-weight: 700; letter-spacing: 0.04em;
    text-transform: uppercase;
}
.user-badge.premium { background: var(--gold-soft); color: var(--gold); }
.user-badge.free { background: rgba(142, 142, 147, 0.14); color: var(--text-secondary); }
.user-badge.dev { background: var(--accent-soft); color: var(--accent); }

.user-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.user-stats { font-size: 0.72rem; color: var(--text-tertiary); }

/* ===== MAIN ===== */
.main-content {
    margin-left: 264px; min-height: 100vh; padding: 30px 32px 60px;
    transition: margin-left 0.4s var(--ease-out);
}

/* ===== HEADER ===== */
.dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 14px;
    animation: fadeInDown 0.5s var(--ease-out) forwards;
}

.dashboard-title {
    font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em;
    color: var(--text-primary);
}

.dashboard-subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-top: 3px; }

.status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 14px; border-radius: var(--radius-full);
    font-size: 0.74rem; font-weight: 600;
    background: var(--bg-elevated); border: 1px solid var(--border);
    color: var(--text-secondary); box-shadow: var(--shadow-xs);
}

.status-indicator {
    width: 8px; height: 8px; border-radius: 50%; background: var(--success);
    animation: pulse-dot 2s var(--ease-standard) infinite;
}

/* ===== CARD PARTS ===== */
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}

.card-title {
    font-size: 1.02rem; font-weight: 600; color: var(--text-primary);
    display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em;
}

.card-title-icon {
    width: 34px; height: 34px; border-radius: var(--radius-sm);
    background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
    color: var(--accent); flex-shrink: 0;
}

/* ===== SEARCH ===== */
.search-container {
    max-width: 720px; margin: 0 auto 26px;
    animation: fadeInUp 0.5s var(--ease-out) forwards;
    animation-delay: 0.08s; opacity: 0;
}

.search-input-wrapper { display: flex; gap: 10px; }
.search-input-container { position: relative; flex: 1; }

.search-input {
    width: 100%; padding: 15px 18px 15px 50px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--text-primary); font-size: 0.98rem; outline: none;
    transition: var(--transition); font-family: inherit;
    box-shadow: var(--shadow-sm);
}

.search-input::placeholder { color: var(--text-quaternary); }
.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm);
}

.search-icon {
    position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
    color: var(--text-tertiary); display: flex; transition: var(--transition);
    pointer-events: none;
}
.search-input:focus ~ .search-icon { color: var(--accent); }

.btn-search {
    background: var(--accent); border: none; border-radius: var(--radius-lg);
    color: #fff; font-weight: 600; padding: 0 30px; font-size: 0.95rem;
    cursor: pointer; transition: var(--transition); display: flex;
    align-items: center; gap: 8px; box-shadow: var(--shadow-accent);
    white-space: nowrap; font-family: inherit;
}
.btn-search:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-search:active { transform: scale(0.97); }
.btn-search:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ===== RESULTS ===== */
.results-section { animation: fadeInUp 0.45s var(--ease-out) forwards; }
.results-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.results-count { font-size: 0.84rem; color: var(--text-secondary); }

.records-grid { display: flex; flex-direction: column; gap: 14px; }

.record-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 22px; transition: var(--transition); box-shadow: var(--shadow-sm);
    animation: slideInRight 0.4s var(--ease-out) forwards;
}
.record-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }

.record-header {
    font-size: 0.98rem; font-weight: 600; color: var(--accent);
    margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
    padding-bottom: 12px; border-bottom: 1px solid var(--separator);
}

.details-table { width: 100%; border-collapse: collapse; }
.details-table tr { border-bottom: 1px solid var(--separator); }
.details-table tr:last-child { border-bottom: none; }
.details-table td { padding: 10px 0; font-size: 0.88rem; vertical-align: top; }
.details-label { color: var(--text-secondary); font-weight: 500; width: 180px; text-transform: capitalize; }
.details-value { color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; word-break: break-word; }

/* ===== NOTICE ===== */
.notice-box {
    background: var(--warning-soft); border: 1px solid rgba(255, 149, 0, 0.22);
    border-radius: var(--radius-md); padding: 14px 18px; margin-top: 18px;
    display: flex; gap: 12px; align-items: flex-start;
}
.notice-icon { color: var(--warning); flex-shrink: 0; margin-top: 2px; }
.notice-text { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }
.notice-text strong { color: var(--warning); }

/* ===== LOADER ===== */
.loader-container { display: none; justify-content: center; align-items: center; padding: 3rem 0; }
.spinner {
    width: 34px; height: 34px; border: 3px solid var(--bg-secondary);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ===== ERROR ===== */
.error-card {
    background: var(--danger-soft); border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: var(--radius-xl); padding: 30px; text-align: center;
    display: none; animation: fadeIn 0.35s var(--ease-out) forwards;
}
.error-card-icon { color: var(--danger); margin-bottom: 14px; }
.error-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.error-card p { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn {
    padding: 10px 18px; border: none; border-radius: var(--radius-md);
    font-weight: 600; font-size: 0.85rem; cursor: pointer;
    transition: var(--transition-fast); display: inline-flex; align-items: center;
    gap: 7px; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-primary); box-shadow: var(--shadow-xs); }
.btn-outline:hover { border-color: var(--border-strong); background: var(--bg-sunken); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(0.94); }

.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { background: rgba(0, 0, 0, 0.05); color: var(--text-primary); }

.btn-sm { padding: 6px 12px; font-size: 0.74rem; border-radius: var(--radius-sm); }

/* ===== STATS ===== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }

.stat-card {
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 18px 20px;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-label { font-size: 0.72rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-top: 4px; letter-spacing: -0.02em; }
.stat-value.accent { color: var(--accent); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger { color: var(--danger); }

/* ===== INPUTS ===== */
.form-group { margin-bottom: 14px; }
.form-label {
    display: block; font-size: 0.75rem; color: var(--text-secondary);
    font-weight: 600; margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.04em;
}
.form-input {
    width: 100%; padding: 11px 14px; background: var(--bg-sunken);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    color: var(--text-primary); font-size: 0.9rem; outline: none;
    transition: var(--transition); font-family: inherit;
}
.form-input::placeholder { color: var(--text-quaternary); }
.form-input:focus { border-color: var(--accent); background: var(--bg-elevated); box-shadow: 0 0 0 4px var(--accent-soft); }
select.form-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238E8E93' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

/* ===== ADMIN GRID ===== */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* ===== USER ROWS ===== */
.user-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 6px; border-bottom: 1px solid var(--separator);
    flex-wrap: wrap; gap: 10px;
}
.user-row:last-child { border-bottom: none; }
.user-row:hover { background: var(--bg-sunken); border-radius: var(--radius-sm); }
.user-row .uname { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }
.user-row .uemail { color: var(--text-tertiary); font-size: 0.78rem; }
.user-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: var(--radius-full);
    font-size: 0.7rem; font-weight: 600; border: none; cursor: pointer;
    transition: var(--transition-fast); font-family: inherit;
}
.chip-blue { background: var(--accent-soft); color: var(--accent); }
.chip-blue:hover { background: var(--accent-soft-2); }
.chip-green { background: var(--success-soft); color: var(--success); }
.chip-green:hover { filter: brightness(0.96); }
.chip-gold { background: var(--gold-soft); color: var(--gold); }
.chip-gold:hover { filter: brightness(0.96); }
.chip-red { background: var(--danger-soft); color: var(--danger); }
.chip-red:hover { filter: brightness(0.96); }
.chip-gray { background: rgba(142, 142, 147, 0.14); color: var(--text-secondary); }

.badge {
    display: inline-flex; align-items: center; padding: 3px 9px;
    border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-blue { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-gray { background: rgba(142, 142, 147, 0.14); color: var(--text-secondary); }

/* ===== TOGGLE ===== */
.switch { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track {
    width: 44px; height: 27px; border-radius: var(--radius-full);
    background: var(--bg-secondary); transition: var(--transition); position: relative;
}
.switch-track::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 21px; height: 21px; border-radius: 50%;
    background: #fff; box-shadow: var(--shadow-sm);
    transition: transform 0.28s var(--ease-spring);
}
.switch input:checked + .switch-track { background: var(--success); }
.switch input:checked + .switch-track::after { transform: translateX(17px); }

/* ===== TAB BAR ===== */
.ios-tab-bar {
    display: flex; background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--border);
    position: fixed; bottom: 0; left: 264px; right: 0;
    padding: env(safe-area-inset-bottom, 0) 0 8px; z-index: 100;
}
.ios-tab-item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 8px 0; cursor: pointer; transition: var(--transition-fast);
    color: var(--text-tertiary); position: relative; border: none;
    background: none; font-family: inherit;
}
.ios-tab-item.active { color: var(--accent); }
.ios-tab-item.active::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 36px; height: 3px; background: var(--accent); border-radius: 0 0 12px 12px;
}
.ios-tab-icon { font-size: 1.15rem; margin-bottom: 3px; }
.ios-tab-label { font-size: 0.64rem; font-weight: 600; }

/* ===== HAMBURGER ===== */
.hamburger {
    display: none; position: fixed; top: 14px; left: 14px; z-index: 101;
    width: 42px; height: 42px; background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    backdrop-filter: blur(20px); transition: var(--transition); box-shadow: var(--shadow-sm);
}
.hamburger:hover { border-color: var(--border-strong); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== OVERLAY ===== */
.mobile-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px); z-index: 99; opacity: 0; transition: opacity 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* ===== TOASTS ===== */
.toast-container { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; }

.toast {
    padding: 13px 18px; border-radius: var(--radius-md);
    backdrop-filter: blur(30px) saturate(180%);
    font-size: 0.85rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    animation: toastIn 0.4s var(--ease-spring) forwards;
    box-shadow: var(--shadow-lg); min-width: 260px; max-width: 380px;
    background: rgba(255, 255, 255, 0.92); border: 1px solid var(--border);
    color: var(--text-primary);
}
.toast.removing { animation: toastOut 0.3s var(--ease-standard) forwards; }
.toast.success { border-color: rgba(52, 199, 89, 0.35); }
.toast.success::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex-shrink: 0; }
.toast.error { border-color: rgba(255, 59, 48, 0.35); }
.toast.error::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.toast.info { border-color: rgba(0, 122, 255, 0.35); }
.toast.info::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ===== EMPTY ===== */
.empty-state { text-align: center; padding: 2.5rem; color: var(--text-tertiary); }
.empty-state-icon { font-size: 2.4rem; margin-bottom: 0.8rem; opacity: 0.4; }
.empty-state-text { font-size: 0.88rem; }

/* ===== SECTION ===== */
.section-title { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); letter-spacing: -0.02em; }
.section-subtitle { font-size: 0.84rem; color: var(--text-secondary); margin-top: 3px; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(6px); z-index: 500;
    align-items: center; justify-content: center; padding: 20px;
    animation: fadeIn 0.25s var(--ease-out);
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--bg-elevated); border-radius: var(--radius-2xl);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px; max-height: 86vh; overflow-y: auto;
    animation: modalIn 0.4s var(--ease-spring);
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 22px; border-bottom: 1px solid var(--separator);
    position: sticky; top: 0; background: var(--bg-elevated); z-index: 1;
}
.modal-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.modal-body { padding: 22px; }
.modal-close {
    background: var(--bg-secondary); border: none; width: 30px; height: 30px;
    border-radius: 50%; cursor: pointer; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; font-size: 1rem;
    transition: var(--transition-fast);
}
.modal-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

/* ===== REFRESH ===== */
.btn-refresh {
    width: 36px; height: 36px; border-radius: 50%; background: var(--bg-elevated);
    border: 1px solid var(--border); color: var(--text-secondary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); box-shadow: var(--shadow-xs);
}
.btn-refresh:hover { border-color: var(--accent); color: var(--accent); }
.btn-refresh.spinning svg { animation: spin 0.8s linear infinite; }

/* ===== PROGRESS ===== */
.progress-bar { width: 100%; height: 6px; background: var(--bg-secondary); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--radius-full); background: var(--accent-gradient); transition: width 0.6s var(--ease-out); }

/* ===== ANIMATIONS ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.25); opacity: 1; }
}
@keyframes toastIn { from { opacity: 0; transform: translateX(110%); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(110%); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 68px 16px 90px; }
    .ios-tab-bar { left: 0; }
    .hamburger { display: flex; }
}

@media (max-width: 560px) {
    .dashboard-title { font-size: 1.5rem; }
    .search-input-wrapper { flex-direction: column; }
    .btn-search { justify-content: center; padding: 14px; }
    .details-label { width: 120px; }
    .stat-value { font-size: 1.5rem; }
}
