/**
 * FinPay Digital Wallet - Main Application Stylesheet
 * Hand-crafted Clean Custom CSS (No Bootstrap, No React)
 */

:root {
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-focus: rgba(37, 99, 235, 0.2);
    
    --success: #10b981;
    --success-light: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --purple: #8b5cf6;
    --purple-light: #f5f3ff;

    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-alt: #f1f5f9;
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-sub: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-radius-sm: 8px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.08);

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

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    color: var(--primary-hover);
}

/* Common Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.25;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-action-group {
    display: flex;
    gap: 12px;
}

/* Form Controls & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-prefix {
    position: absolute;
    left: 14px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 10px 14px;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input-wrapper .form-input {
    padding-left: 42px;
}

.input-wrapper .form-input.with-prefix {
    padding-left: 48px;
}

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

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

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

.form-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 24px 0;
}

.section-subheading {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 0.925rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary-light);
}

.btn-secondary, .btn-outline-secondary {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-secondary:hover, .btn-outline-secondary:hover {
    background-color: var(--bg-surface-alt);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}
.btn-outline-danger {
    background-color: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-outline-danger:hover {
    background-color: var(--danger-light);
}

.btn-success {
    background-color: var(--success);
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

.btn-lg {
    height: 50px;
    font-size: 1rem;
    border-radius: var(--border-radius);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.825rem;
}

.btn:disabled, .btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* App Layout Structure */
.app-header {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: var(--shadow-sm);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 6px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.4rem;
}

.header-balance-chip {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.chip-label {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chip-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #38bdf8;
}

.header-user-menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.user-avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
}
.btn-logout:hover {
    background-color: var(--danger-light);
}

/* Sidebar & Main */
.app-container {
    display: flex;
    flex: 1;
}

.app-sidebar {
    width: var(--sidebar-width);
    background-color: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-inner {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--bg-surface-alt);
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #6366f1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.profile-meta {
    overflow: hidden;
}

.profile-name {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-email {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-sub);
    letter-spacing: 0.75px;
    margin: 16px 8px 6px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.nav-item:hover {
    background-color: var(--bg-surface-alt);
    color: var(--text-main);
}

.nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.nav-icon {
    font-size: 1.1rem;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: var(--bg-surface-alt);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success);
}

.app-main {
    flex: 1;
    padding: 32px 40px;
    overflow-y: auto;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* Guest Layout (Auth) */
.guest-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 32px;
}

.guest-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guest-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.guest-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Auth Cards */
.auth-card-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 36px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-badge-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.demo-credentials-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.825rem;
}

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

.demo-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background-color: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
}

.btn-copy-demo {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-muted);
}

.password-meter {
    margin-bottom: 20px;
}

.meter-bar {
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background-color: var(--danger);
    transition: width 0.3s ease, background-color 0.3s ease;
}

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

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-portal-link {
    margin-top: 12px;
    font-size: 0.8rem;
}

/* Dashboard Balance Hero Card */
.balance-hero-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.balance-hero-card::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.hero-balance-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-balance-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: #38bdf8;
    margin: 4px 0 12px;
    letter-spacing: -0.5px;
}

.hero-meta {
    font-size: 0.85rem;
    color: #94a3b8;
}

.meta-divider {
    margin: 0 8px;
}

.hero-quick-actions {
    display: flex;
    gap: 16px;
}

.hero-action-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 16px 20px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    min-width: 110px;
}

.hero-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 1.5rem;
}

.action-label {
    font-size: 0.8rem;
    font-weight: 600;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.metric-card {
    background-color: #ffffff;
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.metric-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background-color: var(--bg-surface-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.card-added .metric-icon-box { background-color: var(--success-light); color: var(--success); }
.card-withdrawn .metric-icon-box { background-color: var(--danger-light); color: var(--danger); }
.card-pending .metric-icon-box { background-color: var(--warning-light); color: var(--warning); }
.card-transactions .metric-icon-box { background-color: var(--primary-light); color: var(--primary); }

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
}

/* Card Boxes */
.card-box {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

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

.card-box-title {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Data Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.data-table th {
    background-color: var(--bg-surface-alt);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-amount {
    font-weight: 700;
    font-family: monospace;
    font-size: 0.95rem;
}

.table-empty {
    text-align: center;
    padding: 48px !important;
    color: var(--text-muted);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    font-size: 2.5rem;
}

/* Status Pills & Badges */
.status-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: capitalize;
}

.status-success, .status-completed, .status-active {
    background-color: var(--success-light);
    color: #065f46;
}

.status-pending, .status-processing {
    background-color: var(--warning-light);
    color: #92400e;
}

.status-failed, .status-rejected, .status-blocked {
    background-color: var(--danger-light);
    color: #991b1b;
}

.status-reversed, .status-suspended {
    background-color: var(--purple-light);
    color: #5b21b6;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #e0f2fe; color: #075985; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.badge-secondary { background: #f1f5f9; color: #475569; }

.code-ref {
    font-family: monospace;
    font-size: 0.825rem;
    background-color: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    color: #334155;
}

/* Add Money Flow & Preset Chips */
.payment-flow-container {
    max-width: 600px;
    margin: 0 auto;
}

.payment-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    padding: 32px;
}

.calc-preview-banner {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.calc-box {
    display: flex;
    flex-direction: column;
}

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

.calc-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.calc-math {
    font-weight: 800;
    color: var(--text-sub);
    font-size: 1.2rem;
}

.amount-input-wrapper {
    position: relative;
}

.input-currency-symbol {
    position: absolute;
    left: 18px;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    pointer-events: none;
}

.amount-large-input {
    height: 64px;
    font-size: 1.8rem;
    font-weight: 800;
    padding-left: 50px !important;
    letter-spacing: 0.5px;
}

.amount-limits-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.amount-chips-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.amount-chip {
    background-color: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s;
}

.amount-chip:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.supported-methods-badge {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    margin-bottom: 24px;
}

.methods-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.methods-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.method-tag {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    color: #475569;
}

.payment-security-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Modals & Simulation */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
}

.checkout-simulation-box {
    text-align: center;
}

.sim-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 12px 0 16px;
}

.sim-order-details {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.sim-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Withdrawal Radio Cards */
.method-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.method-radio-card {
    position: relative;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.15s;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.method-radio-card input[type="radio"] {
    accent-color: var(--primary);
    margin-top: 4px;
}

.method-radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.radio-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
}

.radio-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.fee-breakdown-card {
    background-color: var(--bg-surface-alt);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.fee-row.total-row {
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    font-size: 0.95rem;
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 200;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background: #ffffff;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    min-width: 280px;
    max-width: 400px;
    border-left: 4px solid var(--primary);
    animation: toastSlideIn 0.25s ease-out;
}

.toast-success { border-left-color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

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

/* Site Footer */
.site-footer {
    margin-top: auto;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 20px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-badges {
    display: flex;
    gap: 12px;
}

.secure-badge {
    background-color: var(--bg-surface-alt);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .app-main {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    .mobile-toggle-btn {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        bottom: 0;
        z-index: 50;
        transition: left 0.25s ease;
        box-shadow: var(--shadow-lg);
    }

    .app-sidebar.open {
        left: 0;
    }

    .balance-hero-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px;
    }

    .hero-quick-actions {
        width: 100%;
        justify-content: space-between;
    }

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

    .header-balance-chip {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
