
/* ============================================
   CREST BANKING - COMPLETE STYLESHEET
   ============================================ */

:root {
    --primary: #2563EB;
    --primary-dark: #1E40AF;
    --primary-light: #EEF2FF;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --sidebar-width: 260px;
    --mobile-nav-height: 70px;
}

[data-theme="light"] {
    --bg: #F8F9FB;
    --surface: #FFFFFF;
    --surface-hover: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --input-bg: #FAFAFA;
    --input-readonly: #F3F4F6;
    --danger-bg: #FEF2F2;
    --danger-border: #FECACA;
}

[data-theme="dark"] {
    --bg: #0F172A;
    --surface: #1E293B;
    --surface-hover: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --input-bg: #1E293B;
    --input-readonly: #0F172A;
    --danger-bg: #450A0A;
    --danger-border: #7F1D1D;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

.landing-page {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 200;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow-y: auto;
    overflow-x: hidden;
}
[data-theme="dark"] .landing-page { background: #0F172A; }
.landing-page.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
}
.landing-logo {
    display: flex;
    align-items: center;
    /* gap: 10px; */
}
.crest-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.landing-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.landing-menu-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.landing-hero {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    min-height: 100vh;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.landing-hero-bg img {
    width: 100%;
    height: 100lvh;
    object-fit: cover;
    object-position: center top;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.98) 100%);
}
[data-theme="dark"] .landing-hero-overlay {
    background: linear-gradient(to bottom, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.85) 50%, rgba(15,23,42,0.98) 100%);
}
.landing-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 28px 280px;
    max-width: 600px;
}
.landing-subtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.landing-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 16px;
}
.landing-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}
.landing-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease;
}
.landing-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}
.landing-cta:active { transform: scale(0.97); }

.landing-about {
    padding: 80px 28px;
    background: var(--bg);
    position: relative;
    z-index: 2;
}
.landing-about-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 48px;
}
.landing-about-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.landing-about-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto 40px;
}
.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    transition: all 0.2s ease;
}
.about-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    border-color: var(--primary);
}
.about-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
[data-theme="dark"] .about-icon {
    background: rgba(37, 99, 235, 0.15);
}
.about-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.about-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.landing-about-cta {
    text-align: center;
}
.landing-footer {
    padding: 32px 28px;
    text-align: center;
    border-top: 1px solid var(--border);
    background: var(--bg);
    position: relative;
    z-index: 2;
}
.landing-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.landing-chat-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 100%; max-width: 400px;
    /* height: 100vh; */
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-chat-panel.active {
    transform: translateX(0);
}
.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.chat-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chat-panel-avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
[data-theme="dark"] .chat-panel-avatar {
    background: rgba(37, 99, 235, 0.2);
}
.chat-panel-title h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.chat-panel-status {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-dot {
    width: 8px; height: 8px;
    background: #22C55E;
    border-radius: 50%;
    display: inline-block;
}
.chat-panel-close {
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.chat-panel-close:hover { color: var(--text-primary); }
.chat-panel-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}
.chat-message.support {
    align-self: flex-start;
}
.chat-message.user {
    align-self: flex-end;
}
.chat-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}
.chat-message.support .chat-bubble {
    background: var(--primary-light);
    color: var(--primary);
    border-bottom-left-radius: 4px;
}
[data-theme="dark"] .chat-message.support .chat-bubble {
    background: rgba(37, 99, 235, 0.2);
}
.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}
.chat-time {
    font-size: 11px;
    color: var(--text-muted);
}
.chat-panel-input {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}
.chat-panel-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.chat-panel-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.chat-panel-input input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.chat-send-btn:hover { background: var(--primary-dark); }
.chat-send-btn:active { transform: scale(0.95); }

.landing-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
}
.landing-menu-overlay.active {
    display: flex;
}
.landing-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
.landing-menu-content {
    position: relative;
    width: 100%; max-width: 360px;
    height: 100vh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.landing-menu-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s ease;
}
.landing-menu-close:hover { background: var(--surface-hover); }
.landing-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 60px 0 40px;
}
.landing-menu-brand span {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.landing-menu-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.landing-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}
.landing-menu-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}
[data-theme="dark"] .landing-menu-item:hover {
    background: rgba(37, 99, 235, 0.15);
}
.landing-menu-item.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.landing-menu-item.primary:hover {
    background: var(--primary-dark);
    color: white;
}
.landing-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 230;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.login-modal-overlay.active {
    display: flex;
}
.login-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    animation: fadeIn 0.2s ease;
}
.login-modal {
    position: relative;
    width: 100%; max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.3s ease;
}
.login-modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.login-modal-close:hover { color: var(--text-primary); }
.login-modal-header {
    text-align: center;
    margin-bottom: 28px;
}
.login-modal-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.login-modal-header p {
    font-size: 14px;
    color: var(--text-secondary);
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login-submit-btn {
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 4px;
}
.login-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.login-submit-btn:active { transform: scale(0.98); }
.login-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.landing-chat-btn {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    z-index: 20;
    transition: all 0.2s ease;
}
.landing-chat-btn:hover {
    transform: scale(1.08);
    background: var(--primary-dark);
}
.landing-chat-btn:active { transform: scale(0.95); }
.chat-online-dot {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 14px;
    height: 14px;
    background: #22C55E;
    border-radius: 50%;
    border: 2px solid white;
}
[data-theme="dark"] .chat-online-dot {
    border-color: #0F172A;
}

.app-container {
    opacity: 1;
    transition: opacity 0.3s ease;
}
.app-container.hidden {
    display: none;
    opacity: 0;
}

.page { display: none; }
.page.active { display: block; animation: fadeInUp 0.3s ease; }

.sidebar {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 28px 20px;
    flex-direction: column;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 40px;
}
.brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.brand-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}
[data-theme="dark"] .nav-item:hover {
    background: rgba(37, 99, 235, 0.15);
}
.nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}
[data-theme="dark"] .nav-item.active {
    background: rgba(37, 99, 235, 0.2);
}
.nav-item svg { flex-shrink: 0; }
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: auto;
}
.nav-item.logout { color: #EF4444; }
.nav-item.logout:hover { background: #FEF2F2; color: #EF4444; }
[data-theme="dark"] .nav-item.logout:hover { background: rgba(239, 68, 68, 0.15); }

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 8px;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: box-shadow 0.2s ease, background 0.3s ease;
}
.mobile-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.avatar {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.greeting-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}
.greeting-sub {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.3;
}
.notification-btn, .header-icon-btn {
    position: relative;
    width: 42px; height: 42px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.15s ease, background 0.3s ease, border-color 0.3s ease;
}
.notification-btn:active, .header-icon-btn:active { transform: scale(0.95); }
.notification-dot {
    position: absolute;
    top: 10px; right: 10px;
    width: 8px; height: 8px;
    background: #EF4444;
    border-radius: var(--radius-full);
    border: 2px solid var(--surface);
    transition: border-color 0.3s ease;
}
.notification-dot.hidden { display: none; }

.desktop-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--bg);
    transition: background 0.3s ease;
}
.page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.desktop-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.desktop-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px 6px 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.3s ease;
}
.desktop-profile:hover { border-color: var(--primary); }
.desktop-avatar {
    width: 36px; height: 36px;
    border: none;
    box-shadow: none;
}
.desktop-profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.desktop-profile-role {
    font-size: 12px;
    color: var(--text-muted);
}

.main-content, .page {
    padding: 0 20px 100px;
}

.balance-display-section {
    margin-bottom: 24px;
    padding: 25px 5%;
    background: var(--primary-dark);
    border-radius: 15px;
}
.balance-display-label {
    font-size: 13px;
    font-weight: 500;
    color: #BFDBFE;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.balance-display-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.balance-display-amount {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
}
.eye-btn-display {
    background: none;
    border: none;
    color: #BFDBFE;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}
.eye-btn-display:hover { color: #fff; }
.account-number-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.account-number-text {
    font-size: 15px;
    color: #BFDBFE;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}
.copy-btn {
    width: 23px; height: 23px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #BFDBFE;
    transition: all 0.2s ease;
}
.copy-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.25);
}
.copy-btn:active { transform: scale(0.95); }

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    background: var(--surface);
    position: relative;
    overflow: hidden;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.action-btn.primary {
    background: var(--primary-light);
    color: var(--primary);
    border-color: transparent;
}
[data-theme="dark"] .action-btn.primary {
    background: rgba(37, 99, 235, 0.15);
}
.action-btn.primary:hover { background: #DBEAFE; transform: translateY(-1px); }
[data-theme="dark"] .action-btn.primary:hover { background: rgba(37, 99, 235, 0.25); }
.action-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.action-btn.secondary:hover { background: var(--surface-hover); transform: translateY(-1px); }
.action-btn:active { transform: scale(0.98); }
.action-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.action-icon.primary-icon { border: 2px solid var(--primary); }
.action-icon.secondary-icon { border: 2px solid var(--text-muted); }

.desktop-stats {
    display: none;
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-card.income .stat-icon { background: #ECFDF5; color: #059669; }
.stat-card.expense .stat-icon { background: #FEF2F2; color: #DC2626; }
.stat-card.savings .stat-icon { background: #EFF6FF; color: var(--primary); }
[data-theme="dark"] .stat-card.income .stat-icon { background: rgba(5, 150, 105, 0.15); }
[data-theme="dark"] .stat-card.expense .stat-icon { background: rgba(220, 38, 38, 0.15); }
[data-theme="dark"] .stat-card.savings .stat-icon { background: rgba(37, 99, 235, 0.15); }
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.transactions-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}
.see-all {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
.see-all:hover { color: var(--primary); }
.transaction-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.tab-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0 2px 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active {
    color: var(--primary);
    font-weight: 700;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0; right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}
.transaction-list, .tx-group-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.transaction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}
.transaction-item:last-child { border-bottom: none; }
.transaction-item:hover { background: var(--surface-hover); }
.transaction-icon-wrapper {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.transaction-icon-wrapper.amber { background: #FEF3C7; color: #D97706; }
.transaction-icon-wrapper.pink { background: #FCE7F3; color: #DB2777; }
.transaction-icon-wrapper.blue { background: #DBEAFE; color: var(--primary); }
.transaction-icon-wrapper.red { background: #FEE2E2; color: #DC2626; }
.transaction-icon-wrapper.green { background: #D1FAE5; color: #059669; }
.transaction-icon-wrapper.purple { background: #F3E8FF; color: #7C3AED; }
.transaction-icon-wrapper.gray { background: #F3F4F6; color: #6B7280; }
[data-theme="dark"] .transaction-icon-wrapper.amber { background: rgba(217, 119, 6, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.pink { background: rgba(219, 39, 119, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.blue { background: rgba(37, 99, 235, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.red { background: rgba(220, 38, 38, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.green { background: rgba(5, 150, 105, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.purple { background: rgba(124, 58, 237, 0.2); }
[data-theme="dark"] .transaction-icon-wrapper.gray { background: rgba(107, 114, 128, 0.2); }
.transaction-info { flex: 1; min-width: 0; }
.transaction-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.transaction-subtitle {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.transaction-meta { text-align: right; flex-shrink: 0; }
.transaction-amount {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}
.income-amount { color: #059669; }
.expense-amount { color: var(--text-primary); }
.pending-amount { color: #D97706; }
.rejected-amount { color: #DC2626; }
.transaction-date {
    font-size: 11px;
    color: var(--text-muted);
}
.transaction-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.transaction-status.processing {
    background: #FEF3C7;
    color: #D97706;
}
.transaction-status.confirmed, .transaction-status.completed {
    background: #D1FAE5;
    color: #059669;
}
.transaction-status.rejected {
    background: #FEE2E2;
    color: #DC2626;
}
[data-theme="dark"] .transaction-status.processing { background: rgba(217, 119, 6, 0.2); }
[data-theme="dark"] .transaction-status.confirmed, [data-theme="dark"] .transaction-status.completed { background: rgba(5, 150, 105, 0.2); }
[data-theme="dark"] .transaction-status.rejected { background: rgba(220, 38, 38, 0.2); }



.wallet-cards-section { margin-bottom: 28px; }
.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.add-card-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="dark"] .add-card-btn {
    background: rgba(37, 99, 235, 0.15);
}
.add-card-btn:hover { background: #DBEAFE; }
[data-theme="dark"] .add-card-btn:hover { background: rgba(37, 99, 235, 0.25); }
.wallet-cards-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wallet-card-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}
.wallet-card-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.wallet-card-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}
[data-theme="dark"] .wallet-card-item.active {
    background: rgba(37, 99, 235, 0.15);
}
.wallet-card-dot {
    width: 12px; height: 12px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}
.wallet-card-dot.blue { background: var(--primary); }
.wallet-card-dot.purple { background: #7C3AED; }
.wallet-card-dot.emerald { background: #059669; }
.wallet-card-item-info { flex: 1; }
.wallet-card-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.wallet-card-item-number {
    font-size: 12px;
    color: var(--text-muted);
}
.wallet-card-item-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}
[data-theme="dark"] .wallet-card-item-badge {
    background: rgba(37, 99, 235, 0.2);
}

.quick-transfer-section { margin-bottom: 28px; }
.quick-transfer-section .section-title { margin-bottom: 16px; }
.transfer-contacts {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.transfer-contacts::-webkit-scrollbar { display: none; }
.transfer-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}
.transfer-contact:active { transform: scale(0.95); }
.transfer-contact span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}
.contact-avatar {
    width: 56px; height: 56px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 2px solid var(--surface);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.3s ease;
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-avatar.add {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
[data-theme="dark"] .contact-avatar.add {
    background: rgba(37, 99, 235, 0.15);
}

.payment-methods-section { margin-bottom: 28px; }
.payment-methods-section .section-title { margin-bottom: 16px; }
.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.payment-method-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}
.payment-method-item:hover { box-shadow: var(--shadow-sm); }
.payment-method-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.payment-method-icon.apple { background: #111827; color: white; }
.payment-method-icon.google { background: #F3F4F6; color: #EA4335; }
.payment-method-icon.paypal { background: #003087; color: white; }
[data-theme="dark"] .payment-method-icon.apple { background: #1F2937; }
[data-theme="dark"] .payment-method-icon.google { background: #374151; }
.payment-method-info { flex: 1; }
.payment-method-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.payment-method-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px; height: 26px;
    flex-shrink: 0;
    cursor: pointer;
}
.toggle-switch input {
    opacity: 0;
    width: 0; height: 0;
}
.toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #475569;
    border-radius: var(--radius-full);
    transition: background 0.3s ease;
}
.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: var(--radius-full);
    transition: transform 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.deposit-hero {
    margin-bottom: 24px;
}
.deposit-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}
.deposit-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.deposit-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.deposit-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.crypto-deposit-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.crypto-qr-section {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}
.crypto-qr-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    text-align: center;
    transition: all 0.3s ease;
}
.qr-placeholder {
    width: 160px; height: 160px;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    margin: 0 auto 12px;
}
.qr-placeholder span {
    font-size: 12px;
    font-weight: 600;
}
.qr-hint {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}
.crypto-address-row {
    display: flex;
    gap: 10px;
}
.crypto-address-row .form-input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}
.crypto-copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
[data-theme="dark"] .crypto-copy-btn {
    background: rgba(37, 99, 235, 0.15);
}
.crypto-copy-btn:hover { background: #DBEAFE; }
[data-theme="dark"] .crypto-copy-btn:hover { background: rgba(37, 99, 235, 0.25); }
.crypto-copy-btn:active { transform: scale(0.97); }
.crypto-deposit-actions {
    margin-top: 24px;
}
.crypto-deposit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.crypto-deposit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.crypto-deposit-btn:active { transform: scale(0.98); }
.crypto-deposit-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}
.info-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-secondary);
}
.info-row strong {
    color: var(--text-primary);
}

.webmail-hero {
    text-align: center;
    padding: 32px 20px 24px;
    margin-bottom: 8px;
}
.webmail-hero-icon {
    width: 72px; height: 72px;
    border-radius: var(--radius-xl);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
[data-theme="dark"] .webmail-hero-icon {
    background: rgba(37, 99, 235, 0.2);
}
.webmail-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.webmail-hero-sub {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.5;
}

.webmail-inbox-section {
    background: var(--surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 24px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.webmail-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.webmail-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.webmail-tab:hover { color: var(--text-secondary); }
.webmail-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--surface);
}
.webmail-badge {
    background: #EF4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    min-width: 18px;
    text-align: center;
}
.webmail-panel { display: none; padding: 8px; }
.webmail-panel.active { display: block; animation: fadeInUp 0.25s ease; }

.webmail-list {
    display: flex;
    flex-direction: column;
}
.webmail-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.webmail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--border);
}
.webmail-item:last-child { border-bottom: none; }
.webmail-item:hover { background: var(--surface-hover); }
.webmail-item.unread .webmail-sender {
    color: var(--primary);
}
.webmail-item.unread .webmail-subject {
    font-weight: 700;
}
.webmail-item.unread::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}
.webmail-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-full);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.webmail-avatar.support {
    background: var(--primary-light);
    color: var(--primary);
}
[data-theme="dark"] .webmail-avatar.support {
    background: rgba(37, 99, 235, 0.2);
}
.webmail-avatar.user {
    border: 2px solid var(--border);
}
.webmail-avatar.user img {
    width: 100%; height: 100%; object-fit: cover;
}
.webmail-content { flex: 1; min-width: 0; }
.webmail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}
.webmail-sender {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.webmail-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.webmail-subject {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.webmail-preview {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.webmail-compose-form {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.webmail-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}
.webmail-compose-actions {
    display: flex;
    gap: 12px;
}
.webmail-compose-actions .action-btn {
    flex: 1;
    justify-content: center;
}

.webmail-thread {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg);
    flex-direction: column;
    animation: slideInRight 0.25s ease;
}
.webmail-thread.active {
    display: flex;
}
.webmail-thread-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}
.webmail-back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}
.webmail-back-btn:hover { color: var(--primary); }
.webmail-thread-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.webmail-thread-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.webmail-bubble {
    max-width: 85%;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.3s ease;
}
.webmail-bubble.received {
    background: var(--surface);
    border: 1px solid var(--border);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.webmail-bubble.sent {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.webmail-bubble-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.webmail-bubble-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}
.webmail-bubble.sent .webmail-bubble-name {
    color: rgba(255,255,255,0.8);
}
.webmail-bubble-time {
    font-size: 11px;
    color: var(--text-muted);
}
.webmail-bubble.sent .webmail-bubble-time {
    color: rgba(255,255,255,0.6);
}
.webmail-bubble-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.webmail-bubble-text:last-child { margin-bottom: 0; }
.webmail-bubble.sent .webmail-bubble-text {
    color: white;
}
.webmail-thread-reply {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.webmail-reply-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--input-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}
.webmail-reply-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.webmail-reply-input::placeholder { color: var(--text-muted); }
.webmail-reply-btn {
    width: 44px; height: 44px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
}
.webmail-reply-btn:hover { background: var(--primary-dark); }
.webmail-reply-btn:active { transform: scale(0.95); }

.webmail-faq-section {
    margin-bottom: 28px;
}
.webmail-faq-section .section-title {
    margin-bottom: 16px;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}
.faq-item:hover {
    border-color: var(--primary);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.faq-question svg {
    color: var(--text-muted);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}
.faq-answer {
    padding: 0 16px;
    max-height: 0;
    overflow: hidden;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    padding: 0 16px 16px;
    max-height: 200px;
}

.tx-filters { margin-bottom: 20px; }
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, background 0.3s ease;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar svg {
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-bar input {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
}
.search-bar input::placeholder { color: var(--text-muted); }
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-chip {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.tx-full-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}
.tx-date-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.tx-date-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding: 0 8px;
}
.load-more-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 28px;
}
.load-more-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
[data-theme="dark"] .load-more-btn:hover {
    background: rgba(37, 99, 235, 0.15);
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 0 32px;
    margin-bottom: 8px;
}
.profile-avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.profile-avatar {
    position: relative;
    width: 100px; height: 100px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 4px solid var(--surface);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    transition: border-color 0.3s ease;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-edit {
    position: absolute;
    bottom: 0; right: 0;
    width: 32px; height: 32px;
    background: var(--primary);
    border: 3px solid var(--surface);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.3s ease;
}
.profile-avatar-edit:hover { transform: scale(1.1); }
.profile-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.profile-badge {
    font-size: 12px;
    color: antiquewhite;
    background: green;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    width: fit-content;
    text-align: center;
    margin: 0 auto;
}
[data-theme="dark"] .profile-badge {
    background: green;
}
.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    margin-bottom: 16px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.account-card.danger {
    border-color: var(--danger-border);
    background: var(--danger-bg);
}
.account-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.account-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.account-card-title.danger-title { color: #DC2626; }
.account-edit-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
[data-theme="dark"] .account-edit-btn {
    background: rgba(37, 99, 235, 0.15);
}
.account-edit-btn:hover { background: #DBEAFE; }
[data-theme="dark"] .account-edit-btn:hover { background: rgba(37, 99, 235, 0.25); }
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 17px;
}
.form-input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--input-bg);
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
}
.form-input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--primary-light);
}
[data-theme="dark"] .form-input:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.form-input[readonly] {
    background: var(--input-readonly);
    color: var(--text-secondary);
    cursor: default;
}
select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%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;
}
.security-list {
    display: flex;
    flex-direction: column;
}
.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.security-item:last-child { border-bottom: none; }
.security-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.security-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
[data-theme="dark"] .security-icon {
    background: rgba(37, 99, 235, 0.15);
}
.security-item-info { min-width: 0; }
.security-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.security-item-sub {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.security-item-btn {
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
[data-theme="dark"] .security-item-btn {
    background: rgba(37, 99, 235, 0.15);
}
.security-item-btn:hover { background: #DBEAFE; }
[data-theme="dark"] .security-item-btn:hover { background: rgba(37, 99, 235, 0.25); }
.danger-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.danger-btn {
    padding: 14px;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.danger-btn.secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.danger-btn.secondary:hover { background: var(--surface-hover); }
.danger-btn.primary {
    background: #DC2626;
    color: white;
}
.danger-btn.primary:hover { background: #B91C1C; }

.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: var(--mobile-nav-height);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px 8px;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}
.mobile-nav-item span {
    font-size: 11px;
    font-weight: 500;
}
.mobile-nav-item.active {
    color: var(--primary);
}
.mobile-nav-item.active span { font-weight: 600; }
.mobile-nav-item:active { transform: scale(0.95); }


@media (min-width: 768px) {
    .mobile-header, .mobile-nav, .home-indicator { display: none !important; }
    .sidebar { display: flex; }
    .desktop-header { display: flex; }
    body { padding-left: var(--sidebar-width); }
    .main-content, .page { padding: 0 32px 40px; max-width: 1200px; }

    .landing-hero-content {
        padding: 0 48px 80px;
        max-width: 700px;
    }
    .landing-title { font-size: 48px; }
    .landing-desc { font-size: 16px; max-width: 480px; }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-about { padding: 100px 48px; }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin-bottom: 32px;
    }
    .desktop-stats {
        display: flex;
        flex-direction: column;
        margin-bottom: 32px;
        gap: 12px;
    }
    .transactions-section { padding: 28px; }
    .transaction-item { padding: 16px 12px; }
    .transaction-title { font-size: 15px; }
    .transaction-amount { font-size: 15px; }

    .wallet-cards-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .wallet-card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .webmail-thread {
        position: static;
        display: none;
        background: var(--surface);
        border-radius: var(--radius-xl);
        border: 1px solid var(--border);
        margin-bottom: 24px;
        min-height: 400px;
    }
    .webmail-thread.active { display: flex; }
    .webmail-thread-header {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .tx-filters {
        display: flex;
        align-items: center;
        gap: 16px;
    }
    .search-bar {
        flex: 1;
        margin-bottom: 0;
        max-width: 400px;
    }
    .tx-full-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .tx-date-group { padding: 20px; }

    .profile-hero {
        flex-direction: row;
        gap: 24px;
        align-items: center;
        justify-content: flex-start;
        padding: 32px 0;
    }
    .profile-avatar-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 24px;
    }
    .profile-avatar {
        width: 120px; height: 120px;
        margin-bottom: 0;
    }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .danger-actions { flex-direction: row; }
    .danger-btn { flex: 1; }

    .crypto-deposit-card { max-width: 600px; }
}

@media (min-width: 1024px) {
    .desktop-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .stat-card { min-width: 140px; }
    .about-grid { grid-template-columns: repeat(4, 1fr); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (min-width: 768px) {
    ::-webkit-scrollbar { width: 6px; }
    ::-webkit-scrollbar-track { background: transparent; }
    ::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
    ::-webkit-scrollbar-thumb:hover { background: #64748B; }
}

/* ==================== NOTIFICATION DROPDOWN ==================== */

#notificationPanel {
    display: none;
    position: fixed;
    top: 66px;
    right: 12px;
    width: calc(100% - 24px);
    max-width: 360px;
    max-height: 480px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 9998;
    overflow: hidden;
    flex-direction: column;
    animation: fadeInUp 0.2s ease;
    transition: background 0.3s ease, border-color 0.3s ease;
}



.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.notif-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.notif-header button:hover {
    color: var(--primary-dark);
}

#notificationList {
    overflow-y: auto;
    max-height: 400px;
    flex: 1;
}

.notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s ease;
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

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

.notif-item:hover {
    background: var(--surface-hover);
}

.notif-item.unread {
    background: var(--primary-light);
}

[data-theme="dark"] .notif-item.unread {
    background: rgba(37, 99, 235, 0.15);
}

.notif-item.unread:hover {
    background: #DBEAFE;
}

[data-theme="dark"] .notif-item.unread:hover {
    background: rgba(37, 99, 235, 0.25);
}

.notif-item p {
    margin: 0;
    line-height: 1.4;
}

.notif-item p:first-child {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.notif-item p:nth-child(2) {
    font-size: 12px;
    color: var(--text-secondary);
}

.notif-item p:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    #notificationPanel {
        top: 76px;
        right: 24px;
        width: 360px;
    }
}
/* ==================== CREST VIRTUAL CARDS ==================== */
.crest-cards-page { margin-bottom: 28px; }
.my-cards-container { display:flex; flex-direction:column; gap:18px; }
.crest-virtual-card {
    position:relative; overflow:hidden; min-height:245px; padding:24px;
    border-radius:24px; color:#fff; background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 52%,#2563eb 100%);
    box-shadow:0 18px 45px rgba(15,23,42,.22); border:1px solid rgba(255,255,255,.14);
}
.crest-virtual-card::before,.crest-virtual-card::after { content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.08); pointer-events:none; }
.crest-virtual-card::before { width:220px;height:220px;right:-90px;top:-120px; }
.crest-virtual-card::after { width:180px;height:180px;left:-90px;bottom:-120px; }
.mastercard-card { background:linear-gradient(135deg,#111827 0%,#374151 55%,#111827 100%); }
.crest-card-top,.crest-card-bottom { position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between; }
.crest-card-brand { font-size:17px;font-weight:900;letter-spacing:2px; }
.crest-card-network { font-size:13px;font-weight:800;letter-spacing:1px;display:flex;align-items:center;gap:7px; }
.crest-card-chip { position:relative;z-index:2;width:48px;height:36px;border-radius:9px;background:linear-gradient(135deg,#f4d27a,#c99b38);margin-top:25px;display:flex;flex-direction:column;justify-content:center;gap:6px;padding:0 9px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); }
.crest-card-chip span { display:block;height:1px;background:rgba(72,52,10,.55); }
.crest-card-contactless { position:absolute;z-index:2;top:74px;left:83px;font-size:25px;transform:rotate(90deg);opacity:.9; }
.crest-card-number { position:relative;z-index:2;margin-top:25px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:21px;letter-spacing:2px;font-weight:650; }
.crest-card-bottom { margin-top:22px;gap:18px;justify-content:flex-start; }
.crest-card-bottom > div { min-width:0; }
.crest-card-bottom small { display:block;font-size:8px;letter-spacing:1.1px;text-transform:uppercase;opacity:.7;margin-bottom:4px; }
.crest-card-bottom strong { display:block;font-size:12px;letter-spacing:.4px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:175px; }
.crest-card-balance { position:absolute;right:24px;bottom:24px;text-align:right;z-index:2; }
.crest-card-balance strong { display:block;font-size:17px;white-space:nowrap; }
.crest-card-details-btn { position:absolute;right:20px;top:18px;z-index:4;width:38px;height:38px;border:1px solid rgba(255,255,255,.25);background:rgba(255,255,255,.10);color:#fff;border-radius:50%;padding:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(5px);transition:background .2s ease,transform .2s ease,border-color .2s ease; }
.crest-card-details-btn:hover { background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.4);transform:translateY(-1px); }
.crest-card-details-btn svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.mini-mc,.mc-mark { display:inline-flex;position:relative;width:25px;height:17px;align-items:center; }
.mini-mc i,.mc-mark i { position:absolute;width:16px;height:16px;border-radius:50%;background:#ef4444; }
.mini-mc i:first-child,.mc-mark i:first-child { left:0; }
.mini-mc i:last-child,.mc-mark i:last-child { left:9px;background:#f59e0b;mix-blend-mode:screen; }
.empty-cards-state { border:1px dashed var(--border);border-radius:20px;padding:42px 24px;text-align:center;background:var(--surface);display:flex;align-items:center;flex-direction:column;gap:8px; }
.empty-cards-state strong { font-size:16px;color:var(--text-primary); }
.empty-cards-state span { font-size:13px;color:var(--text-muted);margin-bottom:8px; }
.empty-card-icon { width:54px;height:54px;border-radius:17px;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:25px;margin-bottom:6px; }
.card-pending-box { display:flex;align-items:center;gap:13px;padding:15px;border:1px solid #FCD34D;background:#FFFBEB;border-radius:15px; }
[data-theme="dark"] .card-pending-box { background:rgba(245,158,11,.09);border-color:rgba(245,158,11,.25); }
.card-pending-icon { width:40px;height:40px;border-radius:12px;background:#FEF3C7;display:flex;align-items:center;justify-content:center; }
.card-pending-box strong,.card-pending-box span { display:block; }
.card-pending-box strong { color:var(--text-primary);font-size:14px;margin-bottom:3px; }
.card-pending-box span { color:var(--text-secondary);font-size:12px;line-height:1.4; }
.modal-overlay { display:none;position:fixed;inset:0;z-index:99990;background:rgba(15,23,42,.62);backdrop-filter:blur(8px);align-items:center;justify-content:center;padding:20px; }
.modal-overlay.active { display:flex; }
.card-request-modal { position:relative;width:min(100%,480px);background:var(--surface);border:1px solid var(--border);border-radius:24px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.25);animation:fadeInUp .25s ease; }
.card-modal-close { position:absolute;right:16px;top:12px;border:0;background:none;color:var(--text-muted);font-size:28px;cursor:pointer; }
.card-modal-icon { width:54px;height:54px;border-radius:17px;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;margin-bottom:14px; }
.card-modal-eyebrow { margin:0 0 5px;font-size:10px;letter-spacing:1.3px;font-weight:800;color:var(--primary); }
.card-request-modal h2 { margin:0;color:var(--text-primary);font-size:24px; }
.card-modal-sub { color:var(--text-secondary);font-size:13px;line-height:1.55;margin:8px 0 20px; }
.card-network-options { display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0 18px; }
.card-network-option { position:relative;display:flex;align-items:center;gap:9px;padding:14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--text-primary);cursor:pointer;font:inherit;font-size:13px;font-weight:700; }
.card-network-option.active { border-color:var(--primary);box-shadow:0 0 0 2px rgba(37,99,235,.12);background:var(--primary-light); }
.card-network-check { margin-left:auto;width:20px;height:20px;border-radius:50%;display:none;align-items:center;justify-content:center;background:var(--primary);color:#fff;font-size:11px; }
.card-network-option.active .card-network-check { display:flex; }
.visa-word { font-size:17px;font-weight:900;font-style:italic;color:#1434CB; }
.card-fee-summary { padding:15px;border:1px solid var(--border);border-radius:15px;background:var(--bg);margin-bottom:16px; }
.card-fee-summary div { display:flex;justify-content:space-between;align-items:center; }
.card-fee-summary span { color:var(--text-secondary);font-size:13px; }
.card-fee-summary strong { color:var(--text-primary);font-size:18px; }
.card-fee-summary small { display:block;color:var(--text-muted);font-size:11px;margin-top:5px; }
.card-continue-btn { width:100%; }
@media (max-width:600px) {
  .crest-virtual-card { min-height:230px;padding:20px;border-radius:20px; }
  .crest-card-number { font-size:17px;letter-spacing:1.4px; }
  .crest-card-balance { right:20px;bottom:19px; }
  .crest-card-balance strong { font-size:14px; }
  .crest-card-details-btn { top:14px;right:14px;bottom:auto;width:36px;height:36px;padding:7px; }
  .card-network-options { grid-template-columns:1fr; }
  .card-request-modal { padding:23px 18px; }
}


/* Card PIN + card details */
.card-pin-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.card-pin-hint{font-size:12px;color:var(--text-muted);margin-top:6px;line-height:1.45}
.card-details-modal{position:relative;width:min(440px,calc(100% - 28px));background:var(--surface,#fff);border:1px solid var(--border);border-radius:20px;padding:28px;box-shadow:0 24px 70px rgba(0,0,0,.22);animation:modalIn .2s ease-out}
.card-details-modal h2{margin:0 0 8px;color:var(--text-primary);font-size:24px}
.card-detail-network{display:inline-flex;margin:18px 0 8px;padding:6px 10px;border-radius:999px;background:var(--primary-light);color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.08em}
.card-detail-row{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 0;border-bottom:1px solid var(--border);color:var(--text-secondary);font-size:14px}
.card-detail-row strong{color:var(--text-primary);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:1px;text-align:right}
.card-details-modal .crypto-deposit-btn{width:100%;justify-content:center;margin-top:20px}
@media(max-width:560px){.card-pin-fields{grid-template-columns:1fr}.card-details-modal{padding:22px}.card-detail-row{align-items:flex-start;flex-direction:column;gap:6px}.card-detail-row strong{text-align:left}}
