/* NexaBank - Design System v3.0 */
/* Custom typefaces via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Dark Mode (default) */
    --bg-primary: #060b18;
    --bg-secondary: #0d1526;
    --bg-card: #111827;
    --bg-card-hover: #1a2438;
    --bg-input: #0d1526;
    --bg-sidebar: #060b18;
    --bg-modal: #111827;

    --text-primary: #f0f4ff;
    --text-secondary: #8896b0;
    --text-muted: #4d5e80;
    --text-inverse: #060b18;

    --accent-blue: #3b82f6;
    --accent-blue-dark: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-orange: #f59e0b;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-gold: #f6c90e;

    --border-color: #1e2d47;
    --border-light: #243352;

    --gradient-blue: linear-gradient(135deg, #1e3a8a, #3b82f6);
    --gradient-green: linear-gradient(135deg, #064e3b, #10b981);
    --gradient-red: linear-gradient(135deg, #7f1d1d, #ef4444);
    --gradient-purple: linear-gradient(135deg, #3b0764, #8b5cf6);
    --gradient-gold: linear-gradient(135deg, #92400e, #f6c90e);
    --gradient-dark: linear-gradient(135deg, #111827, #1f2937);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.5);
    --shadow-glow-blue: 0 0 20px rgba(59,130,246,0.3);
    --shadow-glow-green: 0 0 20px rgba(16,185,129,0.3);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --sidebar-width: 260px;
    --header-height: 70px;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

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

/* Light mode */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f1f5f9;
    --bg-sidebar: #1e293b;
    --bg-modal: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; }
ul { list-style: none; }

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s;
}

.page-content {
    padding: 24px;
    flex: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.sidebar-logo {
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sidebar-logo-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: white;
    font-family: var(--font-display);
    flex-shrink: 0;
    box-shadow: var(--shadow-glow-blue);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    color: var(--accent-blue);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

[data-theme="light"] .sidebar-logo,
[data-theme="light"] .sidebar-nav,
[data-theme="light"] .sidebar-footer {
    color: #e2e8f0;
}
[data-theme="light"] .sidebar .nav-label,
[data-theme="light"] .sidebar .nav-link {
    color: #cbd5e1;
}
[data-theme="light"] .sidebar .nav-link:hover,
[data-theme="light"] .sidebar .nav-link.active {
    color: #ffffff;
}

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-user-acct {
    font-size: 11px;
    color: #64748b;
    font-family: monospace;
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section-label {
    font-size: 10px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px 20px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #94a3b8;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(59,130,246,0.1);
    color: #e2e8f0;
}

.nav-link.active {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: var(--accent-blue);
    border-radius: 0 4px 4px 0;
}

.nav-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.8;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.nav-link.active .nav-badge { background: var(--accent-blue); }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.balance-pill {
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    margin-bottom: 12px;
}

.balance-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; }
.balance-amount { font-size: 18px; font-weight: 700; color: #60a5fa; font-family: var(--font-display); }
.balance-usd { font-size: 11px; color: #475569; }

/* ===== HEADER ===== */
.topbar {
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.topbar-left { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    display: none;
}

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

.page-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.page-breadcrumb { font-size: 12px; color: var(--text-muted); }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

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

.icon-btn:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    color: var(--text-secondary);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    cursor: pointer;
}

.theme-toggle:hover { background: var(--bg-card-hover); color: var(--text-primary); }

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-blue);
    cursor: pointer;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.card:hover { border-color: var(--border-light); }

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

.card-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== STAT CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card.blue::before { background: var(--gradient-blue); }
.stat-card.green::before { background: var(--gradient-green); }
.stat-card.red::before { background: var(--gradient-red); }
.stat-card.purple::before { background: var(--gradient-purple); }
.stat-card.gold::before { background: var(--gradient-gold); }

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.stat-icon.blue { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.stat-icon.green { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.stat-icon.red { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }
.stat-icon.gold { background: rgba(246,201,14,0.15); color: var(--accent-gold); }
.stat-icon.cyan { background: rgba(6,182,212,0.15); color: var(--accent-cyan); }

.stat-value {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.up { color: var(--accent-green); }
.stat-change.down { color: var(--accent-red); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(59,130,246,0.45); }

.btn-success {
    background: var(--gradient-green);
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.45); }

.btn-danger {
    background: var(--gradient-red);
    color: white;
    box-shadow: 0 4px 14px rgba(239,68,68,0.35);
}
.btn-danger:hover { transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-card-hover); border-color: var(--border-light); }

.btn-ghost {
    background: rgba(59,130,246,0.1);
    color: var(--accent-blue);
    border: 1px solid rgba(59,130,246,0.2);
}
.btn-ghost:hover { background: rgba(59,130,246,0.2); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }
.btn-icon { padding: 10px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    color: var(--text-primary);
    font-size: 14px;
    transition: var(--transition);
    -webkit-appearance: none;
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

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

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-group .form-control { padding-left: 38px; }

.input-suffix {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.form-error { font-size: 11px; color: var(--accent-red); margin-top: 4px; }

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

select.form-control {
    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='%238896b0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }

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

th {
    text-align: left;
    padding: 10px 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13.5px;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--bg-card-hover); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.badge-success { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--accent-orange); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--accent-blue); }
.badge-secondary { background: rgba(100,116,139,0.15); color: var(--text-secondary); }
.badge-purple { background: rgba(139,92,246,0.15); color: var(--accent-purple); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
}

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

.modal-lg { max-width: 640px; }

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

.modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; }

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.modal-close:hover { background: var(--accent-red); color: white; border-color: var(--accent-red); }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid;
    margin-bottom: 16px;
    font-size: 13.5px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.alert-success { background: rgba(16,185,129,0.1); border-color: var(--accent-green); color: #34d399; }
.alert-danger { background: rgba(239,68,68,0.1); border-color: var(--accent-red); color: #f87171; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: var(--accent-orange); color: #fbbf24; }
.alert-info { background: rgba(59,130,246,0.1); border-color: var(--accent-blue); color: #60a5fa; }

/* ===== TRANSACTION LIST ===== */
.txn-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.txn-item:hover { background: var(--bg-card-hover); margin: 0 -16px; padding: 14px 16px; border-radius: var(--radius-md); }

.txn-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.txn-icon.credit { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.txn-icon.debit { background: rgba(239,68,68,0.15); color: var(--accent-red); }

.txn-info { flex: 1; min-width: 0; }
.txn-desc {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.txn-ref { font-size: 11px; color: var(--text-muted); font-family: monospace; }
.txn-date { font-size: 11px; color: var(--text-muted); }

.txn-amount {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    flex-shrink: 0;
}
.txn-amount.credit { color: var(--accent-green); }
.txn-amount.debit { color: var(--accent-red); }

/* ===== VIRTUAL CARD ===== */
.virtual-card {
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: var(--transition-slow);
}

.virtual-card:hover { transform: scale(1.02) rotateX(2deg); }

.virtual-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}

.virtual-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}

.card-chip {
    width: 40px;
    height: 30px;
    background: rgba(255,215,0,0.85);
    border-radius: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-number-display {
    font-size: 17px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.9);
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.card-holder-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-expiry-label { font-size: 8px; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.card-expiry-value { font-size: 14px; color: rgba(255,255,255,0.9); font-family: monospace; }

.card-network-logo { font-size: 22px; font-weight: 900; color: white; }

/* ===== PROGRESS BAR ===== */
.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CREDIT SCORE ===== */
.score-ring {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto;
}

.score-ring svg { transform: rotate(-90deg); }

.score-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
}

.score-number { font-size: 26px; font-weight: 800; color: var(--text-primary); }
.score-label { font-size: 10px; color: var(--text-muted); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-desc { font-size: 13px; max-width: 300px; margin: 0 auto 20px; }

/* ===== NOTIFICATION DROPDOWN ===== */
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-card-hover); }
.notif-item.unread { background: rgba(59,130,246,0.05); }

.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.notif-msg { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== KYC STATUS ===== */
.kyc-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    transition: var(--transition);
}

.kyc-step:hover { border-color: var(--border-light); }

.kyc-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.kyc-step.pending .kyc-step-icon { background: rgba(245,158,11,0.15); color: var(--accent-orange); }
.kyc-step.approved .kyc-step-icon { background: rgba(16,185,129,0.15); color: var(--accent-green); }
.kyc-step.rejected .kyc-step-icon { background: rgba(239,68,68,0.15); color: var(--accent-red); }
.kyc-step.not_submitted .kyc-step-icon { background: rgba(100,116,139,0.15); color: var(--text-muted); }

/* ===== TICKET CHAT ===== */
.ticket-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.ticket-message.admin-reply { flex-direction: row-reverse; }

.ticket-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ticket-msg-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    max-width: 80%;
}

.ticket-message.admin-reply .ticket-msg-bubble {
    background: rgba(59,130,246,0.1);
    border-color: rgba(59,130,246,0.2);
}

.ticket-msg-text { font-size: 13.5px; color: var(--text-primary); }
.ticket-msg-time { font-size: 11px; color: var(--text-muted); margin-top: 6px; }

/* ===== ALERT/TOAST ===== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-content { flex: 1; }
.toast-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.toast-msg { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 20px 0;
    flex-wrap: wrap;
}

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

.page-btn:hover, .page-btn.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.search-input-wrap {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-input-wrap input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 9px 12px 9px 36px;
    color: var(--text-primary);
    font-size: 13.5px;
    transition: var(--transition);
}

.search-input-wrap input:focus { border-color: var(--accent-blue); }
.search-input-wrap .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ===== MOBILE OVERLAY ===== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: none;
}

/* ===== PROFILE DROPDOWN ===== */
.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
    overflow: hidden;
}

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

.profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    color: var(--text-secondary);
    font-size: 13.5px;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.profile-dropdown a:last-child { border-bottom: none; }
.profile-dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.profile-dropdown a.danger:hover { background: rgba(239,68,68,0.1); color: var(--accent-red); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root { --sidebar-width: 240px; }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

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

    .sidebar-overlay.show { display: block; }

    .main-content { margin-left: 0; }
    .menu-toggle { display: flex; }

    .page-content { padding: 16px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }

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

    .card { padding: 16px; }

    .table-wrap { margin: 0 -16px; padding: 0 16px; }

    .topbar { padding: 0 16px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .modal { padding: 20px; }
    .toast-container { left: 10px; right: 10px; max-width: none; }
}

/* ===== UTILITY ===== */
.flex { display: flex; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.text-sm { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-success { color: var(--accent-green); }
.text-danger { color: var(--accent-red); }
.text-warning { color: var(--accent-orange); }
.text-blue { color: var(--accent-blue); }
.font-bold { font-weight: 700; }
.font-mono { font-family: monospace; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.relative { position: relative; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.divider { height: 1px; background: var(--border-color); margin: 16px 0; }
.rounded-full { border-radius: 50%; }
