/* ================================================
   MIND FINANCE – Main Stylesheet
   Colors: #ffa500 (orange)  #050a30 (navy)  white
   ================================================ */

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f6fa;
    color: #050a30;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }


/* ── Navbar ───────────────────────────────────── */
.navbar {
    background-color: #050a30;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 65px;
    position: sticky;
    top: 0;
    z-index: 100;
    /* needed so the mobile dropdown anchors to the navbar */
    isolation: isolate;
}

.logo-container a { display: flex; align-items: center; }

.logo-container img {
    height: 46px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}
.logo-container img:hover { transform: scale(1.05); }

.nav-links {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover { background: rgba(255,165,0,0.15); color: #ffa500; }

.nav-links a.nav-cta {
    color: #ffa500;
    font-weight: bold;
    border: 1.5px solid #ffa500;
}
.nav-links a.nav-cta:hover { background: rgba(255,165,0,0.15); color: #ffa500; }

.nav-links a.nav-active {
    background: #ffa500;
    color: white;
    font-weight: bold;
}
.nav-links a.nav-active:hover {
    background: #e69400;
    color: white;
}


/* ── Container ────────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;
}


/* ── Buttons ──────────────────────────────────── */
.btn-primary {
    display: inline-block;
    background-color: #ffa500;
    color: white;
    border: none;
    padding: 11px 22px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn-primary:hover { background: #e69400; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    display: inline-block;
    background: white;
    border: 2px solid #ffa500;
    color: #ffa500;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-secondary:hover { background: #ffa500; color: white; }

.btn-outline-dark {
    display: inline-block;
    background: transparent;
    border: 2px solid #050a30;
    color: #050a30;
    padding: 9px 22px;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}
.btn-outline-dark:hover { background: #050a30; color: white; }

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1.5px solid #ffa500;
    color: #050a30;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.btn-pdf i { color: #e74c3c; font-size: 12px; transition: color 0.2s; }
.btn-pdf:hover { background: #ffa500; color: white; border-color: #ffa500; }
.btn-pdf:hover i { color: white; }


/* ── Messages / Alerts ────────────────────────── */
.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li {
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 14px;
}
.messages .success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.messages .error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.messages .warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }
.messages .info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }

.error-text { color: #dc3545; font-size: 13px; margin-top: 4px; }


/* ── Page Header ──────────────────────────────── */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eee;
}
.page-header h2 { margin: 0 0 6px; font-size: 26px; color: #050a30; }
.page-header p  { margin: 0; color: #666; font-size: 15px; }


/* ═══════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════ */

/* Hero */
.hero {
    text-align: center;
    padding: 90px 20px 70px;
    background: linear-gradient(135deg, #050a30 0%, #0d1a5e 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 60px;
}
.hero h1 { font-size: 44px; margin: 0 0 18px; line-height: 1.2; }
.hero p  { font-size: 18px; max-width: 580px; margin: 0 auto 36px; opacity: 0.88; }

.hero-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}
.feature {
    background: white;
    text-align: center;
    padding: 32px 24px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}
.feature:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.10); }
.feature-icon { font-size: 36px; margin-bottom: 14px; }
.feature h3 { color: #050a30; margin: 0 0 10px; font-size: 18px; }
.feature p  { color: #555; margin: 0; font-size: 14px; line-height: 1.6; }

/* How It Works */
.how-section { margin-bottom: 60px; }
.how-section h2 { text-align: center; font-size: 28px; margin-bottom: 36px; color: #050a30; }
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}
.how-step {
    background: white;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    border: 1px solid #eee;
    position: relative;
}
.step-number {
    width: 40px; height: 40px;
    background: #ffa500;
    color: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: bold;
    margin: 0 auto 14px;
}
.how-step h4 { margin: 0 0 8px; font-size: 16px; color: #050a30; }
.how-step p  { margin: 0; font-size: 13px; color: #666; line-height: 1.5; }

/* Fee Table */
.fee-section { background: white; border-radius: 10px; padding: 36px; margin-bottom: 60px; border: 1px solid #eee; }
.fee-section h2 { text-align: center; margin: 0 0 24px; font-size: 24px; color: #050a30; }
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th { background: #050a30; color: white; padding: 12px 16px; text-align: left; font-size: 14px; }
.fee-table td { padding: 11px 16px; font-size: 14px; border-bottom: 1px solid #f0f0f0; }
.fee-table tr:last-child td { border-bottom: none; }
.fee-table tr:hover td { background: #fffaf0; }
.fee-badge { background: #ffa500; color: white; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; }

/* CTA section */
.cta {
    text-align: center;
    padding: 60px 30px;
    background: #050a30;
    color: white;
    border-radius: 12px;
    margin-bottom: 20px;
}
.cta h2 { margin: 0 0 12px; font-size: 28px; }
.cta p  { margin: 0 0 28px; opacity: 0.85; font-size: 16px; }


/* ═══════════════════════════════════════════════
   AUTH PAGES  (login, signup, password change)
   ═══════════════════════════════════════════════ */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.auth-container h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #050a30;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin: 0 0 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: bold; color: #050a30; }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.15);
}

.form-group input[readonly] { background: #f8f8f8; cursor: default; }

.btn-block { width: 100%; padding: 12px; font-size: 16px; }

.auth-link { text-align: center; margin-top: 18px; font-size: 14px; color: #555; }
.auth-link a { color: #ffa500; font-weight: bold; }
.auth-link a:hover { text-decoration: underline; }


/* ═══════════════════════════════════════════════
   DASHBOARD
   ═══════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 22px 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}
.stat-card .stat-label { font-size: 13px; color: #888; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: bold; color: #050a30; }
.stat-card .stat-value.orange { color: #ffa500; }
.stat-card .stat-value.green  { color: #28a745; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.section-header h3 { margin: 0; font-size: 18px; color: #050a30; }


/* ═══════════════════════════════════════════════
   TRANSFER TABLE
   ═══════════════════════════════════════════════ */
.table-container {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    background: #050a30;
    color: white;
    padding: 13px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.data-table td {
    padding: 13px 16px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fffaf5; }

.data-table .ref-link { color: #050a30; font-weight: bold; font-family: monospace; font-size: 13px; }
.data-table .ref-link:hover { color: #ffa500; }

.empty-row td { text-align: center; color: #aaa; padding: 40px; }


/* ── Status Badges ────────────────────────────── */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.badge-created          { background: #e8eaf6; color: #3949ab; }
.badge-awaiting_payment { background: #fff3e0; color: #e65100; }
.badge-payment_received { background: #e3f2fd; color: #1565c0; }
.badge-payout_in_progress { background: #f3e5f5; color: #6a1b9a; }
.badge-completed        { background: #e8f5e9; color: #2e7d32; }
.badge-failed           { background: #ffebee; color: #c62828; }
.badge-expired          { background: #f5f5f5; color: #757575; }


/* ═══════════════════════════════════════════════
   CREATE TRANSFER
   ═══════════════════════════════════════════════ */
.transfer-form-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    max-width: 600px;
}

.fee-breakdown {
    background: #fffaf0;
    border: 1px solid #ffe0a0;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
}
.fee-breakdown h4 { margin: 0 0 12px; font-size: 15px; color: #050a30; }
.fee-row { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.fee-row:last-child { margin-bottom: 0; font-weight: bold; border-top: 1px solid #ffe0a0; padding-top: 8px; }
.fee-row .label { color: #666; }
.fee-row .value { color: #050a30; font-weight: 600; }
.fee-row.total .value { color: #ffa500; font-size: 16px; }

.info-note {
    background: #e8f4fd;
    border-left: 4px solid #1890ff;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #0c5460;
    margin: 16px 0;
}


/* ═══════════════════════════════════════════════
   PAYMENT PAGE
   ═══════════════════════════════════════════════ */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
}

@media (max-width: 640px) { .payment-layout { grid-template-columns: 1fr; } }

.payment-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.payment-card h3 { margin: 0 0 20px; font-size: 18px; color: #050a30; }

.payment-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.payment-detail-row:last-child { border-bottom: none; }
.payment-detail-row .dl { color: #888; }
.payment-detail-row .dv { font-weight: 600; color: #050a30; }

.wallet-box {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 14px;
    margin: 16px 0;
    display: flex;
    gap: 10px;
    align-items: center;
}
.wallet-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    font-family: monospace;
    color: #050a30;
    outline: none;
}
.wallet-box button { flex-shrink: 0; }

.qr-wrapper { text-align: center; margin: 20px 0; }
.qr-wrapper img { border: 4px solid #050a30; border-radius: 8px; }

.countdown {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #e65100;
    background: #fff3e0;
    border-radius: 8px;
    padding: 14px;
    margin-top: 16px;
}
.countdown.expired { color: #c62828; background: #ffebee; }

.network-badge {
    display: inline-block;
    background: #050a30;
    color: #ffa500;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    font-family: monospace;
}

/* amount highlight */
.amount-big {
    font-size: 26px;
    font-weight: bold;
    color: #ffa500;
    margin: 4px 0;
}


/* ═══════════════════════════════════════════════
   TRANSFER DETAIL & TRACK
   ═══════════════════════════════════════════════ */
.detail-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    max-width: 680px;
    margin-bottom: 24px;
}
.detail-card h3 { margin: 0 0 20px; font-size: 18px; color: #050a30; border-bottom: 2px solid #f0f0f0; padding-bottom: 12px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item .di-label { font-size: 12px; color: #888; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.detail-item .di-value { font-size: 15px; font-weight: 600; color: #050a30; }
.detail-item .di-value.mono { font-family: monospace; }

/* Status Timeline */
.status-timeline { display: flex; align-items: flex-start; gap: 0; margin: 24px 0; overflow-x: auto; padding-bottom: 8px; }
.timeline-step { flex: 1; min-width: 90px; text-align: center; position: relative; }
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 0;
}
.timeline-step.done:not(:last-child)::after { background: #ffa500; }

.timeline-dot {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: white;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}
.timeline-step.done .timeline-dot  { background: #ffa500; border-color: #ffa500; color: white; }
.timeline-step.current .timeline-dot { background: white; border-color: #ffa500; color: #ffa500; box-shadow: 0 0 0 3px rgba(255,165,0,0.2); }
.timeline-step.failed .timeline-dot  { background: #dc3545; border-color: #dc3545; color: white; }

.timeline-label { font-size: 11px; color: #888; line-height: 1.3; }
.timeline-step.done .timeline-label { color: #050a30; font-weight: 600; }
.timeline-step.current .timeline-label { color: #ffa500; font-weight: 600; }


/* ═══════════════════════════════════════════════
   SUCCESS PAGE
   ═══════════════════════════════════════════════ */
.success-card {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    border: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 500px;
    margin: 40px auto;
}
.success-icon { font-size: 56px; margin-bottom: 16px; }
.success-card h2 { margin: 0 0 10px; font-size: 24px; color: #050a30; }
.success-card p  { color: #555; margin: 0 0 24px; }
.reference-box {
    background: #f8f8f8;
    border: 1px dashed #ddd;
    border-radius: 8px;
    padding: 14px;
    font-size: 20px;
    font-weight: bold;
    font-family: monospace;
    color: #ffa500;
    margin-bottom: 28px;
    letter-spacing: 2px;
}
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }


/* ═══════════════════════════════════════════════
   PROFILE
   ═══════════════════════════════════════════════ */
.profile-card {
    background: white;
    border-radius: 12px;
    padding: 36px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    max-width: 480px;
}
.profile-avatar {
    width: 72px; height: 72px;
    background: #050a30;
    color: #ffa500;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: bold;
    margin: 0 auto 20px;
}


/* ═══════════════════════════════════════════════
   FORMS  (generic)
   ═══════════════════════════════════════════════ */
form p { margin-bottom: 18px; }

/* override ugly Django as_p defaults */
form p label { font-weight: bold; font-size: 14px; }
form p input,
form p select,
form p textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    margin-top: 4px;
}
form p input:focus,
form p select:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 0 3px rgba(255,165,0,0.15);
}


/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
    background: #050a30;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 20px;
    font-size: 13px;
    margin-top: auto;
}
.footer span { color: #ffa500; }


/* ═══════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════ */
.testimonials-section { margin-bottom: 60px; }
.testimonials-section h2 { text-align: center; font-size: 28px; margin-bottom: 36px; color: #050a30; }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 28px 24px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.testimonial-stars { margin-bottom: 12px; }
.testimonial-stars .star { font-size: 20px; color: #ddd; }
.testimonial-stars .star.filled { color: #ffa500; }

.testimonial-message {
    font-size: 14px;
    color: #444;
    line-height: 1.7;
    margin: 0 0 16px;
    font-style: italic;
}

.testimonial-author {
    font-size: 13px;
    font-weight: bold;
    color: #050a30;
    margin: 0;
}

/* Star rating radio buttons */
.star-radio-group { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.star-label { cursor: pointer; }
.star-label input[type="radio"] { display: none; }
.star-btn {
    display: inline-block;
    padding: 6px 14px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    color: #888;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
    user-select: none;
}
.star-label input[type="radio"]:checked + .star-btn {
    background: #ffa500;
    border-color: #ffa500;
    color: white;
    font-weight: bold;
}
.star-btn:hover { border-color: #ffa500; color: #ffa500; }


/* ── Language Switcher ────────────────────────── */
.lang-switcher { margin-left: 6px; }
.lang-switcher select {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: background 0.2s;
}
.lang-switcher select:hover { background: rgba(255,165,0,0.2); color: #ffa500; }
.lang-switcher select option { background: #050a30; color: white; }


/* ── Hamburger button (hidden on desktop) ─────── */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    color: rgba(255,255,255,0.9);
    font-size: 20px;
    line-height: 1;
    z-index: 200;
}
.nav-hamburger:hover { color: #ffa500; }


/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }

    /* Show hamburger, hide links by default */
    .nav-hamburger { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #050a30;
        padding: 12px 16px 20px;
        border-top: 1px solid rgba(255,255,255,0.12);
        box-shadow: 0 8px 24px rgba(0,0,0,0.4);
        z-index: 99;
    }
    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 15px;
        padding: 11px 14px;
        border-radius: 6px;
    }
    .nav-links a.nav-cta { margin-top: 8px; text-align: center; border: 1.5px solid #ffa500; }
    .nav-links a.nav-active { background: #ffa500; color: white; font-weight: bold; }

    .lang-switcher { padding: 8px 14px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 4px; }
    .lang-switcher select { width: 100%; padding: 10px; font-size: 15px; }

    .hero h1 { font-size: 28px; }
    .hero p  { font-size: 15px; }

    .container { padding: 24px 14px; }

    .transfer-form-card { padding: 22px; }
    .detail-card { padding: 20px; }
    .detail-grid { grid-template-columns: 1fr; }

    .data-table th, .data-table td { padding: 10px 10px; font-size: 13px; }

    .auth-container { padding: 28px 20px; }

    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card .stat-value { font-size: 22px; }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .stats-grid { grid-template-columns: 1fr; }
}

/* =============================================
   CONTACT WIDGET
   ============================================= */

#contact-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: inherit;
}

/* Floating toggle button */
#contact-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ffa500;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.2s, transform 0.2s;
}
#contact-toggle:hover { background: #e09400; transform: scale(1.07); }

/* Contact panel */
#contact-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 340px;
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(5,10,48,0.18);
    overflow: hidden;
}
#contact-panel.is-open { display: flex; }

/* Reuse header styles */
#chat-header {
    background: #050a30;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffa500;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
#chat-header strong { display: block; font-size: 14px; }
.chat-status { font-size: 11px; opacity: 0.7; }
#contact-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
}
#contact-close-btn:hover { opacity: 1; }

/* Contact body */
#contact-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-phone-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f4ff;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #050a30;
}
.contact-phone-row i { color: #ffa500; font-size: 16px; }

.contact-or {
    margin: 0;
    font-size: 13px;
    color: #888;
}

/* Form fields */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#contact-form input,
#contact-form textarea {
    width: 100%;
    border: 1px solid #dde;
    border-radius: 10px;
    padding: 9px 13px;
    font-size: 13.5px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    resize: vertical;
}
#contact-form input:focus,
#contact-form textarea:focus { border-color: #ffa500; }

#cf-submit {
    padding: 10px;
    background: #ffa500;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#cf-submit:hover { background: #e09400; }
#cf-submit:disabled { background: #ccc; cursor: default; }

#cf-success {
    padding: 10px 13px;
    background: #ecfdf5;
    border-radius: 10px;
    color: #065f46;
    font-size: 13px;
    font-weight: 600;
}
#cf-error {
    padding: 10px 13px;
    background: #fff5f5;
    border-radius: 10px;
    color: #e03e2d;
    font-size: 13px;
    font-weight: 600;
}

/* AML / compliance error banner */
.aml-error-banner {
    background: #fff3cd;
    border: 1.5px solid #e0a800;
    border-left: 5px solid #e0a800;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #5a4000;
}
.aml-error-banner strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: #7a5000;
}
.aml-error-banner p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

/* ── Transfer Limits card (dashboard) ─────────── */
.limits-card {
    background: white;
    border-radius: 10px;
    padding: 20px 24px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 28px;
}
.limits-title {
    font-size: 14px;
    font-weight: 700;
    color: #050a30;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}
.limits-row { margin-bottom: 14px; }
.limits-row:last-child { margin-bottom: 0; }
.limits-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}
.limits-figures {
    font-size: 12px;
    color: #888;
}
.limits-figures strong { color: #050a30; }
.limits-bar-track {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.limits-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #28a745;
    transition: width 0.4s ease;
}
.limits-bar-fill.limits-bar-warn   { background: #ffa500; }
.limits-bar-fill.limits-bar-danger { background: #dc3545; }

@media (max-width: 480px) {
    #contact-panel { width: calc(100vw - 32px); right: 0; }
    #contact-widget { bottom: 16px; right: 16px; }
}

