@import url('../Fonts/font.css');

:root {
    --primary: #b60072;
    --primary-dark: #8e0e56;
    --primary-deep: #5e0939;
    --primary-light: #fdf2f8;
    --primary-soft: #fce7f3;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --bg: #f5f6fa;
    --bg-soft: #f9fafc;
    --surface: #ffffff;
    --surface-tint: #fbfbfe;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-faint: #94a3b8;

    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.08), 0 2px 6px -3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 30px -12px rgba(15, 23, 42, 0.10), 0 6px 14px -6px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 24px 50px -16px rgba(15, 23, 42, 0.12), 0 10px 20px -10px rgba(15, 23, 42, 0.06);
    --shadow-brand: 0 14px 32px -12px rgba(182, 0, 114, 0.32);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'CodecPro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: 'CodecPro', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

button, input, select, textarea { font-family: inherit; }

.hidden { display: none !important; }

::selection { background: var(--primary); color: #fff; }

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
button:focus-visible,
.premium-select:focus-visible,
.premium-input:focus-visible { outline: none; }

/* =======================================
   HEADER — flat solid brand, soft
======================================= */
.main-header {
    background: var(--primary);
    color: #fff;
    position: relative;
    padding: calc(34px + env(safe-area-inset-top)) 20px 86px;
    text-align: center;
    z-index: 10;
    overflow: hidden;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bank-logo {
    height: 60px;
    margin-bottom: 14px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.20));
}

.main-header h1 {
    font-size: 1.65rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
}

.main-header p {
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

.header-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 56px;
    background: var(--bg);
    border-radius: 56px 56px 0 0;
    z-index: 1;
}

/* =======================================
   APP CONTAINER — single soft column
======================================= */
.app-container {
    max-width: 920px;
    margin: -46px auto 64px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* =======================================
   PREMIUM CARDS / SECTIONS
======================================= */
.premium-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 34px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.section-title-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.icon-circle {
    width: 54px;
    height: 54px;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-brand);
}
.icon-circle svg { width: 26px; height: 26px; }

.section-title-box h2 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.4px;
}
.section-title-box .section-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.sub-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sub-title::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
}

.divider {
    height: 0;
    margin: 18px 0 0;
    border: none;
}

/* Section spacing — flat, no boxed groups */
.field-group {
    margin-bottom: 18px;
}
.field-group + .field-group { margin-top: 26px; }
.field-group .sub-title { margin-bottom: 14px; }

/* =======================================
   FORMS — filled, no borders
======================================= */
.form-row { margin-bottom: 18px; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.input-group label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1px;
    text-transform: none;
}

.input-group label.step-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.1px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-weight: 900;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.premium-select, .premium-input {
    width: 100%;
    padding: 16px 18px;
    border: 1.5px solid #ebedf2;
    border-radius: 14px;
    font-size: 0.98rem;
    font-family: inherit;
    font-weight: 500;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.premium-input::placeholder {
    color: var(--text-faint);
    font-weight: 400;
}

.premium-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'><path d='M1 1.5L7 7.5L13 1.5' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: 18px 50%;
    padding-left: 44px;
    cursor: pointer;
}

.premium-select:hover, .premium-input:hover {
    border-color: #d8dae3;
    background: var(--surface-tint);
}

.premium-select:focus, .premium-input:focus {
    border-color: rgba(182, 0, 114, 0.40);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(182, 0, 114, 0.07);
}

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

.curr-sym {
    position: absolute;
    right: 18px;
    font-weight: 600;
    color: var(--text-faint);
    font-size: 0.9rem;
    pointer-events: none;
    line-height: 1;
    letter-spacing: 0.2px;
}

.input-wrapper .premium-input { padding-right: 48px; }

/* =======================================
   BUTTONS — no borders
======================================= */
.btn-container {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.primary-btn {
    flex: 2;
    background: var(--primary);
    color: white;
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    box-shadow: var(--shadow-brand);
}
.primary-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(142, 14, 86, 0.45);
}
.primary-btn:active { transform: translateY(0); }
.primary-btn svg { width: 20px; height: 20px; }

.outline-btn {
    flex: 1;
    background: var(--bg);
    color: var(--text-muted);
    padding: 16px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.outline-btn:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

/* =======================================
   POLICY ALERT — no borders, soft fills
======================================= */
.policy-alert {
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-top: 22px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    animation: alertSlideIn 0.4s var(--ease);
}
@keyframes alertSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.policy-alert-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px 16px;
    background: var(--primary-light);
}

.policy-icon {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
}
.policy-icon svg { width: 22px; height: 22px; }

.policy-header-text { flex: 1; min-width: 0; }

.policy-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.policy-alert-title {
    font-weight: 800;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.policy-sep { color: var(--primary); font-weight: 900; margin: 0 6px; opacity: 0.6; }

.policy-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 16px 22px;
    background: var(--surface);
}

.policy-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: var(--radius-xs);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.policy-meta-item:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.policy-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}
.policy-meta-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.4;
}

.policy-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 800;
    width: fit-content;
}
.policy-pill.ok { background: #dcfce7; color: #166534; }
.policy-pill.ok::before { content: "✓"; font-weight: 900; }
.policy-pill.warn { background: #fef3c7; color: #92400e; }
.policy-pill.warn::before {
    content: "!"; width: 14px; height: 14px;
    background: #f59e0b; color: #fff; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 900;
}

.policy-conditions {
    padding: 16px 22px 20px;
    background: var(--bg-soft);
}
.policy-conditions-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.88rem; font-weight: 800;
    color: var(--primary-dark); margin-bottom: 10px;
}
.policy-conditions-title svg { width: 18px; height: 18px; color: var(--primary); }
.policy-conditions-body { font-size: 0.9rem; color: var(--text); line-height: 1.85; }
.policy-conditions-body strong { color: var(--primary-dark); font-weight: 700; }

/* =======================================
   RESULT CARD
======================================= */
.result-card-modern {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 26px;
    margin-top: 22px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.res-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    gap: 10px;
}

.res-row.highlight {
    margin-top: 18px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary);
}

.cc-suggest {
    background: var(--primary-light);
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.cc-suggest:hover {
    transform: translateX(-2px);
    background: var(--primary-soft);
}
.cc-suggest .res-row strong:last-child,
.cc-suggest .res-row span:last-child {
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.5px;
}

/* =======================================
   ACCORDIONS — no borders
======================================= */
.info-accordion {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s var(--ease);
}
.info-accordion.open { box-shadow: var(--shadow-md); }

.accordion-header {
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s var(--ease);
}
.accordion-header:hover { background: var(--primary-light); }

.acc-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 14px;
    letter-spacing: -0.2px;
}
.acc-title svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
    padding: 9px;
    box-sizing: content-box;
    background: var(--primary-light);
    border-radius: 12px;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.info-accordion.open .acc-title svg {
    background: var(--primary);
    color: #fff;
}

.acc-icon {
    color: var(--text-muted);
    transition: transform 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg);
}
.acc-icon svg { width: 18px; height: 18px; }
.info-accordion.open .acc-icon {
    transform: rotate(180deg);
    color: var(--primary);
    background: var(--primary-light);
}

.accordion-body { padding: 0 26px 26px; display: none; }
.info-accordion.open .accordion-body { display: block; animation: slideDown 0.35s var(--ease); }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =======================================
   CARDS GRID — premium showcase, no borders
======================================= */
.cards-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

.cc-box {
    --tier: var(--primary);
    --tier-soft: var(--primary-light);
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 18px 18px 16px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}
.cc-box::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 4px;
    background: var(--tier);
    opacity: 0.85;
}
.cc-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: var(--surface);
}

.cc-box:nth-child(1) { --tier: #1f2937; --tier-soft: #e5e7eb; }
.cc-box:nth-child(2) { --tier: #b45309; --tier-soft: #fef3c7; }
.cc-box:nth-child(3) { --tier: #6d28d9; --tier-soft: #ede9fe; }
.cc-box:nth-child(4) { --tier: #0369a1; --tier-soft: #e0f2fe; }

.cc-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.cc-header img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(15, 23, 42, 0.18));
    transition: transform 0.3s var(--ease);
}
.cc-box:hover .cc-header img { transform: scale(1.08) rotate(-2deg); }
.cc-header strong {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.2px;
}

.cc-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.cc-box li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
}
.cc-box li span { color: var(--text-muted); font-weight: 500; }
.cc-box li strong {
    background: var(--tier-soft);
    color: var(--tier);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.mobile-hint {
    display: none;
    text-align: center;
    font-size: 0.82rem;
    color: var(--primary);
    background: var(--primary-light);
    padding: 8px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-weight: 700;
}

/* =======================================
   TERMS — no borders
======================================= */
.terms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 8px;
}

.terms-box {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 22px 20px;
}
.terms-box h4 {
    color: var(--primary-dark);
    margin-bottom: 14px;
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.terms-box h4::before {
    content: "";
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 4px;
}

.term-item {
    background: var(--surface);
    padding: 12px 14px;
    border-radius: var(--radius-xs);
    margin-bottom: 9px;
    font-size: 0.88rem;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
    line-height: 1.7;
    position: relative;
    overflow: hidden;
}
.term-item::before {
    content: "";
    position: absolute;
    top: 8px; bottom: 8px; right: 0;
    width: 3px;
    background: var(--primary-soft);
    border-radius: 3px;
    transition: background 0.2s var(--ease);
}
.term-item:hover {
    background: var(--primary-light);
    transform: translateX(-2px);
}
.term-item:hover::before { background: var(--primary); }
.term-item strong {
    color: var(--primary-dark);
    font-weight: 800;
    display: inline-block;
    margin-bottom: 2px;
}

.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bullet-list li {
    position: relative;
    padding: 11px 38px 11px 12px;
    font-size: 0.9rem;
    background: var(--surface);
    border-radius: var(--radius-xs);
    line-height: 1.55;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.bullet-list li:hover {
    background: var(--primary-light);
    transform: translateX(-2px);
}
.bullet-list li::before {
    content: "✓";
    position: absolute;
    right: 10px; top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* =======================================
   CUSTOM ALERT MODAL
======================================= */
.custom-alert-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}
.custom-alert-overlay.hidden { display: none !important; }

.custom-alert-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: alertPop 0.3s var(--ease-spring);
}
@keyframes alertPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-icon {
    width: 64px; height: 64px;
    background: #fef2f2;
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.alert-icon svg { width: 32px; height: 32px; }

.alert-title { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.alert-message { font-size: 0.98rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; }
.alert-btn {
    background: var(--primary);
    color: white; border: none;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; width: 100%;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.alert-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =======================================
   FLOATING PWA BANNER — no borders
======================================= */
.pwa-floating-banner {
    position: fixed;
    bottom: 20px;
    left: 20px; right: 20px;
    max-width: 460px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    z-index: 1000;
    animation: slideUpFade 0.5s var(--ease-spring);
}
.pwa-floating-banner.hidden { display: none !important; }
@keyframes slideUpFade {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-content { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; }
.pwa-icon img { width: 46px; height: 46px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.pwa-text { display: flex; flex-direction: column; min-width: 0; }
.pwa-text strong { font-size: 0.98rem; color: var(--text); margin-bottom: 2px; }
.pwa-text span { font-size: 0.78rem; color: var(--text-muted); }

.pwa-actions { display: flex; align-items: center; gap: 8px; }
.pwa-btn-install {
    background: var(--primary);
    color: white;
    border: none;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700; font-size: 0.85rem; font-family: inherit;
    cursor: pointer;
}
.pwa-btn-close {
    background: transparent; color: var(--text-muted);
    border: none; font-size: 1.5rem; cursor: pointer; padding: 5px;
    transition: color 0.2s;
}
.pwa-btn-close:hover { color: var(--text); }

/* =======================================
   SW UPDATE BANNER
======================================= */
.sw-update-banner {
    position: fixed;
    top: calc(10px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    font-size: 0.9rem;
    font-weight: 600;
    animation: dropIn 0.4s ease-out;
}
.sw-update-btn {
    background: #fff;
    color: var(--primary);
    border: none;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
@keyframes dropIn {
    from { transform: translate(-50%, -120%); opacity: 0; }
    to   { transform: translate(-50%, 0);     opacity: 1; }
}

/* =======================================
   CALCULATION BREAKDOWN — no borders
======================================= */
.breakdown {
    margin-top: 22px;
}
.breakdown summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--primary-dark);
    padding: 8px 0;
    list-style: none;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.breakdown summary::-webkit-details-marker { display: none; }
.breakdown summary::before {
    content: "▾";
    display: inline-block;
    transition: transform 0.2s;
    color: var(--primary);
}
.breakdown[open] summary::before { transform: rotate(180deg); }
.breakdown .bd-body {
    margin-top: 10px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    font-size: 0.88rem;
}
.breakdown .bd-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
}
.breakdown .bd-row strong { color: var(--primary-dark); }

/* =======================================
   RESULT ACTIONS
======================================= */
.result-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.result-actions .outline-btn {
    flex: 1;
    min-width: 130px;
}

/* =======================================
   RESPONSIVE — MOBILE
======================================= */
@media (max-width: 768px) {
    .form-grid, .btn-container, .terms-grid, .cards-grid-modern {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .app-container {
        padding: 0 14px;
        margin-top: -38px;
        margin-bottom: 40px;
        gap: 18px;
    }

    .premium-card {
        padding: 26px 20px;
        border-radius: var(--radius-md);
    }

    .field-group { padding: 16px 14px 4px; }

    .main-header {
        padding: calc(26px + env(safe-area-inset-top)) 16px 70px;
    }
    .main-header h1 { font-size: 1.32rem; }
    .main-header p  { font-size: 0.9rem; }
    .bank-logo      { height: 54px; margin-bottom: 12px; }

    .section-title-box { gap: 12px; padding-bottom: 18px; margin-bottom: 22px; }
    .section-title-box h2 { font-size: 1.18rem; }
    .icon-circle { width: 46px; height: 46px; border-radius: 14px; }
    .icon-circle svg { width: 22px; height: 22px; }

    .cards-grid-modern {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -20px;
        padding: 4px 20px 14px;
        gap: 14px;
        scrollbar-width: none;
    }
    .cards-grid-modern::-webkit-scrollbar { display: none; }
    .cc-box { flex: 0 0 82%; scroll-snap-align: center; }

    .mobile-hint { display: block; }

    .accordion-header { padding: 18px 20px; }
    .acc-title { font-size: 0.98rem; gap: 10px; }
    .accordion-body { padding: 0 20px 22px; }

    .policy-alert-header { padding: 16px 18px 14px; gap: 12px; }
    .policy-meta { padding: 14px 18px; grid-template-columns: 1fr; gap: 8px; }
    .policy-conditions { padding: 14px 18px 18px; }
    .policy-icon { width: 40px; height: 40px; border-radius: 12px; }
    .policy-alert-title { font-size: 0.98rem; }

    .terms-box { padding: 18px 16px; }
    .term-item { padding: 11px 12px; }
    .bullet-list li { padding: 11px 34px 11px 10px; font-size: 0.86rem; }

    .res-row { font-size: 0.9rem; }
    .res-row.highlight { font-size: 1.06rem; }

    .btn-container { gap: 10px; }
    .primary-btn, .outline-btn { padding: 14px; font-size: 1rem; }
}

@media (max-width: 380px) {
    .premium-card { padding: 22px 16px; }
    .accordion-header { padding: 14px 16px; }
    .accordion-body { padding: 0 16px 18px; }
    .main-header h1 { font-size: 1.18rem; }
}

/* =======================================
   PRINT
======================================= */
/* =======================================
   CARD DETAIL PAGES
======================================= */
.cc-box-actions {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.cc-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--shadow-xs);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.cc-learn-more:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}
.cc-learn-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s var(--ease);
}
.cc-learn-more:hover svg { transform: translateX(-3px); }

/* Back navigation in header */
.header-nav {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    right: 20px;
    z-index: 3;
}
.header-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: background 0.2s var(--ease);
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.30); }
.header-nav svg { width: 16px; height: 16px; }

/* Card hero */
.card-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.card-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 100%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.card-hero-text { position: relative; z-index: 1; min-width: 0; }
.card-hero .eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(255,255,255,0.20);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}
.card-hero h1 {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.6px;
    line-height: 1.25;
    margin-bottom: 8px;
}
.card-hero p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.90);
    line-height: 1.6;
    max-width: 420px;
}
.card-hero-img {
    position: relative;
    z-index: 1;
    width: 180px;
    max-width: 38vw;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.30));
    transform: rotate(-4deg);
}

/* Quick facts */
.fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.fact-tile {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    text-align: center;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.fact-tile:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}
.fact-tile .fact-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
}
.fact-tile .fact-icon svg { width: 22px; height: 22px; }
.fact-tile .fact-label {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.fact-tile .fact-value {
    font-size: 0.95rem;
    color: var(--primary-dark);
    font-weight: 800;
    letter-spacing: -0.2px;
}

/* Feature grid (benefits) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.feature-card {
    background: var(--bg);
    border-radius: var(--radius-md);
    padding: 18px 16px;
    transition: background 0.25s var(--ease), transform 0.25s var(--ease);
    position: relative;
}
.feature-card:hover {
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.feature-card .feat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.feature-card:hover .feat-icon {
    background: var(--primary);
    color: #fff;
}
.feature-card .feat-icon svg { width: 22px; height: 22px; }
.feature-card h4 {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
}
.feature-card .feat-tag {
    display: inline-block;
    margin-top: 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

/* Fee/limit table */
.fee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin-top: 6px;
}
.fee-table th, .fee-table td {
    padding: 12px 14px;
    text-align: right;
    font-size: 0.9rem;
}
.fee-table thead th {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
}
.fee-table thead th:first-child { border-radius: 0 12px 12px 0; }
.fee-table thead th:last-child { border-radius: 12px 0 0 12px; }
.fee-table tbody tr {
    background: var(--bg);
    transition: background 0.18s var(--ease);
}
.fee-table tbody tr:hover { background: var(--primary-light); }
.fee-table tbody td:first-child {
    font-weight: 700;
    color: var(--text);
    border-radius: 0 10px 10px 0;
}
.fee-table tbody td:last-child {
    font-weight: 700;
    color: var(--primary-dark);
    border-radius: 10px 0 0 10px;
    text-align: left;
}

.fee-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Section navigation chips inside detail page */
.detail-toc {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    margin-top: -6px;
}
.detail-toc::-webkit-scrollbar { display: none; }
.detail-toc a {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.detail-toc a:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.bullet-clean {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}
.bullet-clean li {
    position: relative;
    padding: 8px 22px 8px 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text);
}
.bullet-clean li::before {
    content: "";
    position: absolute;
    right: 4px;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* Mobile tweaks for detail page */
@media (max-width: 640px) {
    .card-hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 26px 22px;
    }
    .card-hero-img {
        margin: 6px auto 0;
        width: 160px;
        max-width: 70vw;
    }
    .card-hero p { margin: 0 auto; }
    .card-hero h1 { font-size: 1.45rem; }
}

/* FAQ accordion — prettier than the calculator's breakdown style */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}
.faq-item {
    background: #fff;
    border: 1.5px solid rgba(182, 0, 114, 0.10);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.18s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.faq-item:hover {
    border-color: rgba(182, 0, 114, 0.28);
    box-shadow: 0 4px 12px rgba(182, 0, 114, 0.08);
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: 0 8px 22px rgba(182, 0, 114, 0.13);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 15px;
    line-height: 1.55;
    background: linear-gradient(135deg, rgba(182, 0, 114, 0.025), rgba(182, 0, 114, 0.05));
    transition: background 0.22s ease;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    margin-inline-start: auto;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    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='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, background-color 0.25s ease;
}
.faq-item[open] summary {
    background: linear-gradient(135deg, rgba(182, 0, 114, 0.07), rgba(182, 0, 114, 0.13));
    border-bottom: 1px solid rgba(182, 0, 114, 0.10);
}
.faq-item[open] summary::after {
    transform: rotate(-180deg);
}
.faq-item summary:hover {
    background: linear-gradient(135deg, rgba(182, 0, 114, 0.05), rgba(182, 0, 114, 0.10));
}
.faq-item .bd-body {
    padding: 16px 20px 20px;
    color: #2c2c2c;
    line-height: 1.85;
    font-size: 14.5px;
    background: #fff;
    animation: faqFadeIn 0.3s ease;
}
.faq-item .bd-body a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(182, 0, 114, 0.4);
    transition: border-color 0.2s, color 0.2s;
    word-break: break-word;
}
.faq-item .bd-body a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    border-bottom-style: solid;
}
.faq-item .bd-body ul.bullet-clean { margin-top: 8px; }
@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Inline links and phone numbers everywhere on card detail pages */
.app-container a[href^="http"],
.app-container a[href^="mailto"] {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed rgba(182, 0, 114, 0.45);
    word-break: break-word;
    transition: color 0.2s, border-color 0.2s;
}
.app-container a[href^="http"]:hover,
.app-container a[href^="mailto"]:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    border-bottom-style: solid;
}
.app-container a[href^="tel:"] {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(182, 0, 114, 0.4);
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.app-container a[href^="tel:"]:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}
.phone-num {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .faq-item summary {
        font-size: 14px;
        padding: 14px 16px;
        gap: 10px;
    }
    .faq-item summary::after {
        width: 26px;
        height: 26px;
    }
    .faq-item .bd-body {
        padding: 14px 16px 18px;
        font-size: 14px;
    }
}

@media print {
    body { background: #fff; color: #000; }
    .main-header, .header-curve,
    .info-accordion, .pwa-floating-banner,
    .sw-update-banner,
    .btn-container, .no-print, #step1, #step2,
    .section-title-box, .divider, .sub-title,
    #calcSection > .form-grid, #calcSection > h3,
    #calcSection > .field-group,
    .field-group,
    .policy-alert {
        display: none !important;
    }
    .app-container { margin: 0; padding: 0; max-width: none; display: block; }
    .premium-card { box-shadow: none; padding: 0; }
    .result-card-modern {
        break-inside: avoid;
        background: #fff !important;
        box-shadow: none;
    }
    .breakdown[open] summary { display: none; }
    .breakdown .bd-body { background: #fff !important; }
    .cc-suggest { background: #fff !important; box-shadow: none; }
}
