/* ==========================================================================
   VigaPay Professional Fintech Design System
   Enterprise Crypto Payment Gateway — Clean White Theme
   ========================================================================== */

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

:root {
    --bg-canvas: #f4f6fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-input: #f8fafc;
    --bg-sidebar: #ffffff;
    --bg-sidebar-hover: rgba(79, 70, 229, 0.06);
    --bg-sidebar-active: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    --bg-header: #ffffff;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-strong: #cbd5e1;
    --border-brand: rgba(99, 102, 241, 0.35);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    --brand-indigo: #4f46e5;
    --brand-indigo-hover: #4338ca;
    --brand-emerald: #059669;
    --brand-emerald-hover: #047857;
    --brand-cyan: #0891b2;
    --brand-amber: #d97706;
    --brand-rose: #e11d48;

    --glow-indigo: rgba(79, 70, 229, 0.12);
    --glow-emerald: rgba(5, 150, 105, 0.12);
    --glow-cyan: rgba(8, 145, 178, 0.12);

    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3b82f6 100%);
    --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-brand: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
    --gradient-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --gradient-auth: radial-gradient(circle at 50% 0%, #eef2ff 0%, #f4f6fb 70%);

    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.1);
    --shadow-glow: 0 8px 24px rgba(79, 70, 229, 0.12);

    --sidebar-width: 270px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    font-family: var(--font-body);
    background: var(--bg-canvas);
    color: var(--text-primary);
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.07) 0px, transparent 50%);
    background-attachment: fixed;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #eef2f7;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

a {
    color: var(--brand-indigo);
    text-decoration: none;
    transition: color 0.15s var(--ease);
}
a:hover {
    color: var(--brand-indigo-hover);
}

code {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: #047857;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.18);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-xs);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 0.25rem;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.glass-panel:hover {
    border-color: var(--border-hover);
}

/* App Container */
.app-container {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}
.screen.active {
    display: flex;
}

/* ==========================================================================
   Buttons System
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    outline: none;
    white-space: nowrap;
    line-height: 1.2;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.38);
    filter: brightness(1.04);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border-color: var(--border-strong);
}
.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: var(--text-primary);
}

.btn-glass {
    background: rgba(79, 70, 229, 0.08);
    color: var(--brand-indigo);
    border-color: rgba(79, 70, 229, 0.22);
}
.btn-glass:hover {
    background: rgba(79, 70, 229, 0.14);
    border-color: rgba(79, 70, 229, 0.4);
    color: var(--brand-indigo-hover);
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.btn-icon:hover {
    background: #eef2ff;
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ==========================================================================
   1. ADMIN LOGIN SCREEN
   ========================================================================== */

#login-screen {
    background: var(--gradient-auth);
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 10;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

.brand-header {
    text-align: center;
    margin-bottom: 2.25rem;
}

.logo-badge {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--gradient-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.28);
    border: none;
}

.brand-header h2 {
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

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

.auth-form label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.95rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: all 0.2s var(--ease);
}
.auth-form input:focus {
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background: #ffffff;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

/* ==========================================================================
   2. MAIN ADMIN DASHBOARD LAYOUT
   ========================================================================== */

#dashboard-screen {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.25rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    border-radius: 0;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.04);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 1.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: var(--gradient-brand);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s var(--ease);
}
.nav-item i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
}

.nav-item:hover {
    background: var(--bg-sidebar-hover);
    color: var(--text-primary);
}
.nav-item:hover i {
    color: var(--brand-indigo);
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}
.nav-item.active i {
    color: #ffffff;
}

.sidebar-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.25);
    color: var(--brand-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

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

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 2rem 2.5rem;
    min-height: 100vh;
}

/* Top Header Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    padding: 1.25rem 1.75rem;
    margin-bottom: 2rem;
    background: var(--bg-header);
}

.header-title {
    min-width: 0;
    flex: 1 1 220px;
}

.header-title h1 {
    font-size: 1.6rem;
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1 1 auto;
    min-width: 0;
}

.network-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #059669;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

#network-name {
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Dashboard Tab Content Switching */
.tab-content {
    display: none;
    animation: fadeIn 0.25s var(--ease);
}
.tab-content.active {
    display: block;
}

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

/* Metrics Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.04);
    pointer-events: none;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.green-icon {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.22);
}
.purple-icon {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.2);
}
.blue-icon {
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.stat-details {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0.3rem 0;
}
.stat-value-row h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-value-row .currency {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-sub {
    font-size: 0.775rem;
    color: var(--text-muted);
}
.stat-sub strong {
    color: #0369a1;
}

/* Cards & Tables */
.card {
    padding: 1.75rem;
}
.card-header {
    margin-bottom: 1.5rem;
}
.card-header.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mt-4 { margin-top: 1.5rem; }

.search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.55rem 1rem;
    border-radius: var(--radius-md);
    width: 280px;
}
.search-box i { color: var(--text-muted); }
.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    width: 100%;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}
.data-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
}
.data-table tbody tr {
    transition: background 0.15s var(--ease);
}
.data-table tbody tr:hover {
    background: #f8fafc;
}

.tx-hash-link {
    font-family: var(--font-mono);
    color: var(--brand-indigo);
    font-weight: 500;
}
.tx-hash-link:hover {
    color: var(--brand-indigo-hover);
    text-decoration: underline;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.22);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Wallet Card (legacy helpers) */
.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-indigo);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.card-desc {
    font-size: 0.825rem;
    color: var(--text-secondary);
}
.usdt-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

/* ==========================================================================
   Main Wallet
   ========================================================================== */

.wallet-stats {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 0.9fr) minmax(280px, 1.2fr);
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.wallet-address-stat {
    align-items: flex-start;
}

.wallet-address-stat .stat-details {
    min-width: 0;
    width: 100%;
}

.wallet-address-stat code {
    display: block;
    margin: 0.45rem 0 0.75rem;
    font-size: 0.78rem;
    word-break: break-all;
    background: #f0fdf4;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.45rem 0.65rem;
    color: #047857;
}

.wallet-address-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wallet-stats .gas-status {
    display: inline-flex;
    margin-top: 0.45rem;
    width: fit-content;
}

.gas-status {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.gas-ok {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.gas-warn {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.gas-low {
    background: rgba(244, 63, 94, 0.1);
    color: #be123c;
    border: 1px solid rgba(244, 63, 94, 0.22);
}

.wallet-withdraw-card .card-header {
    margin-bottom: 1.25rem;
}

.wallet-withdraw-form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr) auto;
    gap: 1rem 1.15rem;
    align-items: end;
}

.wallet-field-grow,
.wallet-field-amount {
    min-width: 0;
}

.wallet-amount-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.4rem 0.65rem;
}

.wallet-amount-label label {
    margin: 0;
}

.wallet-amount-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.wallet-amount-meta strong {
    color: #047857;
    font-weight: 700;
}

.wallet-amount-field {
    position: relative;
}

.wallet-amount-field input {
    width: 100%;
    padding-right: 4.5rem;
    font-variant-numeric: tabular-nums;
}

.wallet-amount-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.wallet-submit-btn {
    height: 46px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
}

.api-test-box {
    background: #f8fafc;
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
}

.api-test-title {
    font-size: 0.95rem;
    color: var(--brand-indigo);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.api-test-title-green {
    color: #047857;
}

.api-test-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.api-test-row input {
    flex: 1;
    min-width: 160px;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}

#test-api-amount {
    flex: 0 0 140px;
    width: 140px;
}

#send-to-addr-input {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.01em;
}

/* Forms in Cards */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.form-group input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s var(--ease);
}
.form-group input:focus {
    border-color: var(--brand-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
    background: #ffffff;
}

/* Modals */
.modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.2s var(--ease);
}

.modal-card {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
}
.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    animation: slideInRight 0.3s var(--ease);
}
.toast-success { border-color: #10b981; }
.toast-error { border-color: #f43f5e; }
.toast-info { border-color: #6366f1; }

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

/* Utility Helpers */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted) !important; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }

/* Responsive adjustments */
@media (max-width: 1180px) {
    .wallet-stats,
    .wallet-withdraw-form {
        grid-template-columns: 1fr;
    }
    .wallet-submit-btn {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 80px;
        padding: 1.25rem 0.75rem;
    }
    .brand-title, .user-details, .nav-item span {
        display: none;
    }
    .main-content {
        margin-left: 80px;
        padding: 1.5rem;
    }
    .header-actions .btn span {
        display: none;
    }
    .header-actions .btn {
        padding: 0.65rem 0.85rem;
    }
}
