/* ==============================================================
   HSBC — Receive Payment | Premium UI v3
   Opening up a world of opportunity — secure transfer experience
   ============================================================== */

:root {
    /* Brand — HSBC */
    --bc-blue: #DB0011;
    --bc-blue-deep: #B80010;
    --bc-blue-dark: #8B0000;
    --bc-blue-50: #FFF0F1;
    --bc-blue-100: #FCDADC;
    --bc-blue-200: #F8B4B8;
    --bc-cyan: #EE4357;
    --bc-cyan-50: #FFEBED;
    --bc-navy: #1C1B1B;
    --bc-navy-2: #333232;

    /* Surfaces */
    --bg: #F4F7FB;
    --bg-2: #FAFBFC;
    --surface: #FFFFFF;
    --surface-2: #F8FAFD;
    --surface-3: #EEF3F9;

    /* Text */
    --t-1: #1C1B1B;
    --t-2: #2E3F5C;
    --t-3: #5A6B85;
    --t-4: #8696B0;
    --t-on: #FFFFFF;

    /* Borders */
    --b-1: #E4E9F2;
    --b-2: #D3DBE8;
    --b-3: #ECF0F6;
    --b-soft: #F0F4FA;

    /* Status */
    --green: #00A766;
    --green-50: #E1F5EC;
    --amber: #C5780B;
    --amber-50: #FFF3DC;
    --red: #E0334E;
    --red-50: #FCE6EA;

    /* Shadow */
    --sh-xs: 0 1px 1px rgba(15,30,60,.04);
    --sh-sm: 0 1px 2px rgba(15,30,60,.05), 0 0 0 1px rgba(15,30,60,.04);
    --sh-md: 0 6px 16px -4px rgba(15,30,60,.08), 0 1px 3px rgba(15,30,60,.05);
    --sh-lg: 0 24px 48px -16px rgba(12,30,70,.16), 0 4px 12px -4px rgba(12,30,70,.06);
    --sh-glow: 0 16px 36px -12px rgba(219,0,17,.4);

    /* Radius */
    --r-xs: 8px;
    --r-sm: 10px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 22px;
    --r-2xl: 28px;

    /* Type */
    --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    --f-disp: 'Inter Tight', 'Inter', system-ui, sans-serif;
    --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    /* v4 aliases (for new components) */
    --border: var(--b-1);
    --bg-soft: var(--surface-2);
    --text: var(--t-1);
    --text-mid: var(--t-2);
    --text-soft: var(--t-3);
    --brand: var(--bc-blue);
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html, body {
    height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    overscroll-behavior-x: none;
}
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}

body {
    font-family: var(--f-sans);
    color: var(--t-1);
    background: var(--bg);
    line-height: 1.5;
    font-feature-settings: 'cv11','ss01','ss03','tnum';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { max-width: 100%; vertical-align: middle; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font-family: inherit; }
.hidden { display: none !important; }
.mono { font-family: var(--f-mono); }

/* ============= BACKGROUND ============= */
.bg-mesh {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(219,0,17,.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(219,0,17,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    z-index: -2;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 40%, transparent 100%);
}
.bg-orb {
    position: fixed;
    width: min(640px, 80vw);
    height: min(640px, 80vw);
    border-radius: 50%;
    filter: blur(140px);
    opacity: .25;
    z-index: -1;
    pointer-events: none;
}
.bg-orb-1 {
    background: radial-gradient(circle, var(--bc-blue) 0%, transparent 70%);
    top: -20vw;
    left: -20vw;
}
.bg-orb-2 {
    background: radial-gradient(circle, var(--bc-cyan) 0%, transparent 70%);
    bottom: -20vw;
    right: -20vw;
}

/* ============= HEADER ============= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--b-1);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--t-1);
    transition: opacity .15s;
}
.brand:hover { opacity: .85; }
.brand-mark {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 4px rgba(14, 26, 43, .15));
}
.brand-text {
    font-family: var(--f-disp);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -.015em;
}
.brand-suffix {
    color: var(--t-3);
    font-weight: 500;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}
.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--t-2);
    font-size: 13px;
    font-weight: 500;
    transition: all .15s;
}
.nav-btn:hover {
    background: var(--surface-3);
    color: var(--t-1);
}
.nav-divider {
    width: 1px;
    height: 18px;
    background: var(--b-1);
    margin: 0 2px;
}
.lang-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
    min-width: 180px;
    padding: 5px;
    z-index: 100;
    animation: drop .15s cubic-bezier(.2,.8,.2,1);
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.lang-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--t-2);
    transition: all .12s;
}
.lang-item:hover { background: var(--bc-blue-50); color: var(--bc-blue); }

/* ============= LIVE BANNER ============= */
.live-banner {
    background: linear-gradient(90deg, rgba(219,0,17,.05) 0%, rgba(238, 67, 87,.05) 100%);
    border-bottom: 1px solid var(--b-1);
    padding: 9px 0;
}
.live-banner-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--t-2);
    flex-wrap: wrap;
}
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 var(--green);
    animation: livePulse 1.8s ease-out infinite;
}
@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(0,167,102,.55); }
    70% { box-shadow: 0 0 0 7px rgba(0,167,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,167,102,0); }
}
.banner-sep {
    color: var(--t-4);
    font-weight: 400;
}
.banner-ref {
    font-family: var(--f-mono);
    color: var(--t-1);
    font-weight: 600;
}
.banner-timer {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--amber);
    font-family: var(--f-mono);
    font-weight: 600;
}

/* ============= MAIN CHECKOUT ============= */
.checkout {
    flex: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 48px;
}
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 32px;
    align-items: start;
}
.checkout-main {
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-md);
    padding: 36px 36px 32px;
    position: relative;
}
.checkout-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bc-blue), var(--bc-cyan), var(--bc-blue));
    background-size: 200% 100%;
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    animation: shimmerBar 4s ease-in-out infinite;
}
@keyframes shimmerBar {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile-only hero (hidden on desktop) */
.hero-mobile { display: none; }

/* ============= STEP INDICATOR ============= */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}
.step-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.dot-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--b-2);
    color: var(--t-4);
    font-size: 11.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s;
}
.dot-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t-4);
    letter-spacing: -.005em;
    transition: color .25s;
}
.step-dot.active .dot-num {
    background: var(--bc-blue);
    border-color: var(--bc-blue);
    color: #fff;
    box-shadow: 0 0 0 4px var(--bc-blue-100);
}
.step-dot.active .dot-label { color: var(--t-1); }
.step-dot.done .dot-num {
    background: var(--bc-blue);
    border-color: var(--bc-blue);
    color: #fff;
}
.step-dot.done .dot-label { color: var(--t-1); }
.step-dot.done .dot-num {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--b-2);
    border-radius: 1px;
    min-width: 12px;
    transition: background .25s;
}
.step-line.done { background: var(--bc-blue); }

/* ============= STEPS ============= */
.step {
    display: none;
    animation: stepIn .35s cubic-bezier(.2,.8,.2,1);
}
.step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }

.step-header {
    margin-bottom: 24px;
}
.step-header.center { text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--bc-blue);
    text-transform: uppercase;
    margin-bottom: 8px;
}
.step-header h1 {
    font-family: var(--f-disp);
    font-size: 26px;
    font-weight: 700;
    color: var(--t-1);
    letter-spacing: -.025em;
    line-height: 1.15;
    margin-bottom: 6px;
}
.step-header p {
    font-size: 14px;
    color: var(--t-3);
    line-height: 1.55;
    max-width: 480px;
}
.step-header.center p { margin-left: auto; margin-right: auto; }

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px 6px 8px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--t-2);
    font-size: 12.5px;
    font-weight: 500;
    transition: all .15s;
}
.back-btn:hover { background: var(--b-soft); color: var(--t-1); }

/* ============= FORM SECTION ============= */
.form-section {
    margin-bottom: 22px;
}
.form-section:last-of-type { margin-bottom: 18px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}
.section-head h3 {
    font-family: var(--f-disp);
    font-size: 14px;
    font-weight: 600;
    color: var(--t-1);
    letter-spacing: -.005em;
}
.head-hint {
    font-size: 11.5px;
    color: var(--t-4);
    font-weight: 500;
}
.form-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-1);
    margin-bottom: 8px;
}
.form-label .head-hint {
    font-weight: 400;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bc-blue);
    transition: color .15s;
}
.text-link:hover { color: var(--bc-blue-deep); }

/* ============= ASSET GRID ============= */
.asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.asset-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--surface);
    border: 1.5px solid var(--b-1);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s ease;
    text-align: left;
    min-width: 0;
}
.asset-tile:hover {
    border-color: var(--bc-blue-200);
    background: var(--bc-blue-50);
    transform: translateY(-1px);
}
.asset-tile.selected {
    border-color: var(--bc-blue);
    background: var(--bc-blue-50);
    box-shadow: 0 0 0 3px var(--bc-blue-100);
}
.asset-tile.selected::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bc-blue);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}
.asset-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--surface-3);
    object-fit: cover;
}
.asset-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.asset-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--t-1);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.asset-symbol {
    font-size: 11.5px;
    color: var(--t-4);
    font-weight: 500;
    margin-top: 1px;
}

/* ============= NETWORK CARD ============= */
.network-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--b-1);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s ease;
    text-align: left;
    gap: 14px;
}
.network-card:hover {
    border-color: var(--bc-blue-200);
    background: var(--bc-blue-50);
}
.network-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.network-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
}
.network-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.network-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.network-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t-1);
    line-height: 1.2;
}
.network-sub {
    font-size: 12px;
    color: var(--t-3);
    margin-top: 2px;
}
.network-card-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.network-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--t-2);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.stat.stat-success {
    background: var(--green-50);
    color: var(--green);
}
.card-chevron { color: var(--t-4); }

/* ============= EXCHANGE SUMMARY ============= */
.exchange-summary {
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.exchange-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.exchange-row span { color: var(--t-3); }
.exchange-row strong {
    color: var(--t-1);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.amt-receive {
    color: var(--bc-blue) !important;
    font-family: var(--f-disp);
    font-size: 15px;
    letter-spacing: -.005em;
}

/* ============= BUTTONS ============= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.005em;
    transition: all .18s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: linear-gradient(180deg, var(--bc-blue) 0%, var(--bc-blue-deep) 100%);
    color: #fff;
    box-shadow: var(--sh-glow);
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.2) 0%, transparent 50%);
    pointer-events: none;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px -14px rgba(219,0,17,.5);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled {
    background: var(--b-2);
    color: var(--t-4);
    box-shadow: none;
    cursor: not-allowed;
}
.btn-large {
    width: 100%;
    padding: 14px 22px;
    font-size: 14.5px;
}
.btn-ghost {
    background: var(--surface);
    border: 1.5px solid var(--b-2);
    color: var(--t-1);
}
.btn-ghost:hover {
    border-color: var(--bc-blue);
    color: var(--bc-blue);
    background: var(--bc-blue-50);
}
.btn-danger {
    background: linear-gradient(180deg, var(--red) 0%, #B91D32 100%);
    box-shadow: 0 16px 36px -12px rgba(224,51,78,.4);
}
.btn-danger:hover { box-shadow: 0 22px 40px -14px rgba(224,51,78,.5); }

.step-footnote {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    color: var(--t-4);
    justify-content: center;
}
.step-footnote svg { color: var(--t-4); }

/* ============= TAB PILLS ============= */
.tab-pills {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    margin-bottom: 18px;
}
.tab-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t-3);
    transition: all .15s;
}
.tab-pill:hover { color: var(--t-1); }
.tab-pill.active {
    background: var(--surface);
    color: var(--bc-blue);
    box-shadow: var(--sh-sm);
}
.tab-content { display: none; animation: stepIn .25s; }
.tab-content.active { display: block; }

/* ============= WALLET LIST ============= */
.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wallet-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1.5px solid var(--b-1);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .18s ease;
    width: 100%;
    text-align: left;
}
.wallet-row:hover {
    border-color: var(--bc-blue-200);
    background: var(--bc-blue-50);
    transform: translateX(2px);
}
.wallet-row.connecting {
    border-color: var(--bc-blue);
    background: var(--bc-blue-50);
}
.wallet-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--b-soft);
}
.wallet-icon svg, .wallet-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.wallet-icon.no-pad { padding: 0; }
.wallet-icon.no-pad svg, .wallet-icon.no-pad img {
    width: 100%;
    height: 100%;
}
.wallet-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.wallet-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--t-1);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 6px;
}
.wallet-tagline {
    font-size: 12px;
    color: var(--t-3);
    margin-top: 2px;
}
.wallet-tag {
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--bc-blue-50);
    color: var(--bc-blue);
}
.wallet-tag.tag-recommended {
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-cyan));
    color: #fff;
}
.wallet-tag.tag-secure {
    background: var(--green-50);
    color: var(--green);
}
.wallet-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--surface-3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-3);
    transition: all .18s;
    flex-shrink: 0;
}
.wallet-row:hover .wallet-arrow {
    background: var(--bc-blue);
    color: #fff;
    transform: translateX(2px);
}

/* ============= ADDRESS FIELD ============= */
.address-field {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: var(--surface);
    border: 1.5px solid var(--b-1);
    border-radius: var(--r-md);
    transition: all .18s ease;
}
.address-field:focus-within {
    border-color: var(--bc-blue);
    box-shadow: 0 0 0 3px var(--bc-blue-100);
}
.address-prefix {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    padding: 4px;
}
.address-prefix img { width: 100%; height: 100%; object-fit: contain; }
.address-input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--f-mono);
    font-size: 13px;
    padding: 10px 12px;
    color: var(--t-1);
    min-width: 0;
}
.address-input::placeholder { color: var(--t-4); }
.address-action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 11px;
    background: var(--surface-3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--t-2);
    transition: all .15s;
    flex-shrink: 0;
    margin-right: 4px;
}
.address-action:hover { background: var(--bc-blue-50); color: var(--bc-blue); }
.address-error {
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--red-50);
    border: 1px solid #F4C7CF;
    border-radius: 8px;
    color: var(--red);
    font-size: 12.5px;
    font-weight: 500;
}
.address-hint-row {
    margin-top: 12px;
    margin-bottom: 18px;
}
.hint-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: 999px;
    font-size: 12px;
    color: var(--t-3);
}
.hint-pill strong { color: var(--t-1); font-weight: 600; }
.net-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(0,167,102,.5);
    animation: livePulse 1.8s ease-out infinite;
}

/* ============= SECURITY NOTE ============= */
.security-note {
    margin-top: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--bc-blue-50);
    border: 1px solid var(--bc-blue-100);
    border-radius: var(--r-md);
}
.sec-note-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sec-note-body { font-size: 12.5px; color: var(--t-2); line-height: 1.5; }
.sec-note-body strong { display: block; color: var(--t-1); font-size: 13px; margin-bottom: 1px; }

/* ============= CONFIRM RECEIPT ============= */
.confirm-receipt {
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
}
.confirm-amount-block {
    text-align: center;
    padding: 8px 0 16px;
    border-bottom: 1px solid var(--b-1);
}
.confirm-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--t-4);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.confirm-amount-line {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.confirm-asset-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}
.confirm-amount-text {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}
.confirm-amount-num {
    font-family: var(--f-disp);
    font-size: 36px;
    font-weight: 700;
    color: var(--t-1);
    letter-spacing: -.025em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.confirm-amount-cur {
    font-family: var(--f-disp);
    font-size: 18px;
    font-weight: 600;
    color: var(--bc-blue);
}
.confirm-amount-fiat {
    display: block;
    font-size: 13px;
    color: var(--t-3);
    margin-top: 4px;
}

.confirm-flow-row {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 8px;
    align-items: center;
    padding: 4px 0;
}
.flow-end {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    padding: 10px 12px;
    min-width: 0;
}
.flow-end-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.flow-end-from { background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep)); }
.flow-end-to { background: linear-gradient(135deg, var(--bc-cyan), #0090C9); }
.flow-end-text { display: flex; flex-direction: column; min-width: 0; }
.flow-end-label {
    font-size: 10.5px;
    color: var(--t-4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.flow-end-value {
    font-size: 12px;
    color: var(--t-1);
    font-weight: 600;
    margin-top: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.flow-rail {
    position: relative;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flow-rail-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--bc-blue), var(--bc-cyan));
    border-radius: 1px;
}
.flow-rail-blip {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bc-cyan);
    box-shadow: 0 0 12px var(--bc-cyan);
    animation: blipFly 2.2s linear infinite;
}
@keyframes blipFly {
    0% { left: -8px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 8px); opacity: 0; }
}

.confirm-rows {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    overflow: hidden;
}
.conf-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    border-bottom: 1px solid var(--b-3);
    font-size: 13px;
}
.conf-row:last-child { border-bottom: 0; }
.conf-key { color: var(--t-3); font-weight: 500; }
.conf-val {
    color: var(--t-1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.conf-val.conf-success { color: var(--green); }
.conf-row-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    cursor: pointer;
    font-size: 13px;
    color: var(--t-2);
    transition: all .15s;
}
.check-row:hover { border-color: var(--bc-blue-200); }
.check-row input { display: none; }
.check-mark {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--b-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all .15s;
    flex-shrink: 0;
    margin-top: 1px;
}
.check-row input:checked ~ .check-mark {
    background: var(--bc-blue);
    border-color: var(--bc-blue);
    color: #fff;
}
.check-text { flex: 1; line-height: 1.45; }

/* ============= PHASE / STATUS ============= */
.phase {
    display: none;
    animation: stepIn .35s cubic-bezier(.2,.8,.2,1);
}
.phase.active { display: block; }

/* Processing */
.processing-visual {
    display: flex;
    justify-content: center;
    padding: 16px 0 24px;
}
.chain-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 8px;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
}
.chain-row::-webkit-scrollbar { display: none; }
.chain-block {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--surface);
    border: 2px solid var(--b-2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: all .3s;
    color: var(--t-4);
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 13px;
}
.chain-block.done {
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep));
    border-color: var(--bc-blue);
    color: #fff;
    box-shadow: 0 8px 20px -8px rgba(219,0,17,.4);
}
.chain-block.active {
    background: var(--bc-blue-50);
    border-color: var(--bc-blue);
    color: var(--bc-blue);
    animation: blockPulse 1.4s ease-in-out infinite;
}
@keyframes blockPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(219,0,17,.4); }
    50% { box-shadow: 0 0 0 6px rgba(219,0,17,0); }
}
.block-spinner {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid transparent;
    border-top-color: var(--bc-blue);
    border-right-color: var(--bc-cyan);
    animation: spin 1.2s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.chain-link {
    width: 24px;
    height: 2px;
    background: var(--b-2);
    flex-shrink: 0;
}
.chain-link.done {
    background: var(--bc-blue);
}

.progress-bar {
    height: 5px;
    background: var(--b-1);
    border-radius: 999px;
    overflow: hidden;
    margin: 18px 0;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bc-blue), var(--bc-cyan));
    border-radius: 999px;
    transition: width .6s cubic-bezier(.2,.8,.2,1);
    position: relative;
    overflow: hidden;
}
.progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
    animation: progressShimmer 1.6s linear infinite;
}
@keyframes progressShimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.proc-stats {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 14px;
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    padding: 12px 16px;
    margin-bottom: 18px;
}
.proc-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.proc-stat-key {
    font-size: 11px;
    color: var(--t-4);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.proc-stat-val {
    font-size: 13px;
    color: var(--t-1);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.proc-stat-divider { background: var(--b-1); }

.proc-steps {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
    padding: 10px;
}
.proc-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .2s;
}
.proc-step.active { background: var(--bc-blue-50); }
.proc-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface-3);
    border: 2px solid var(--b-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    flex-shrink: 0;
    transition: all .25s;
}
.proc-step.done .proc-check {
    background: var(--bc-blue);
    border-color: var(--bc-blue);
    color: #fff;
}
.proc-step.active .proc-check {
    background: var(--bc-blue-100);
    border-color: var(--bc-blue);
    color: transparent;
    animation: stepPulse 1.4s ease-in-out infinite;
}
@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(219,0,17,.4); }
    50% { box-shadow: 0 0 0 5px rgba(219,0,17,0); }
}
.proc-step span {
    font-size: 13px;
    color: var(--t-3);
    font-weight: 500;
}
.proc-step.active span, .proc-step.done span { color: var(--t-1); font-weight: 600; }

/* Success */
.success-visual {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}
.success-disc {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green) 0%, #007D4D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 16px 36px -10px rgba(0,167,102,.5);
}
.success-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--green);
    opacity: 0;
    animation: ringPulse 2.4s ease-out infinite;
}
.success-ring-2 { animation-delay: 1.2s; }
@keyframes ringPulse {
    0% { transform: scale(.85); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}

.success-receipt {
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin-bottom: 16px;
}
.receipt-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--b-2);
    margin-bottom: 12px;
}
.receipt-eyebrow {
    font-size: 11px;
    color: var(--t-4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.receipt-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--green-50);
    color: var(--green);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}
.receipt-rows { display: flex; flex-direction: column; gap: 8px; }
.receipt-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.receipt-r span { color: var(--t-3); }
.receipt-r strong { color: var(--t-1); font-weight: 600; font-variant-numeric: tabular-nums; }

.success-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Failed */
.error-visual {
    display: flex;
    justify-content: center;
    padding: 8px 0 18px;
}
.error-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red), #B91D32);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 36px -10px rgba(224,51,78,.5);
}

/* ============= SUMMARY SIDE ============= */
.checkout-side {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.summary-card {
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-md);
    overflow: hidden;
}

.summary-hero {
    background: linear-gradient(135deg, var(--bc-navy) 0%, var(--bc-navy-2) 50%, #15315E 100%);
    padding: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.summary-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(238, 67, 87,.18) 0%, transparent 70%);
    pointer-events: none;
}
.summary-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(219,0,17,.22) 0%, transparent 70%);
    pointer-events: none;
}
.summary-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.summary-eyebrow {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.summary-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(0,167,102,.18);
    color: #51DD9D;
    border: 1px solid rgba(0,167,102,.3);
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
}
.summary-status .live-dot { background: #51DD9D; }
.summary-amount {
    font-family: var(--f-disp);
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -.03em;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
    position: relative;
    z-index: 1;
}
.summary-currency {
    font-size: 22px;
    color: rgba(255,255,255,.55);
    font-weight: 600;
}
.summary-equiv {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
    font-weight: 500;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}
.summary-equiv img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.summary-merchant {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--b-1);
    background: var(--surface-2);
}
.merchant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--sh-sm);
}
.merchant-info { flex: 1; min-width: 0; }
.merchant-name {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--t-1);
    line-height: 1.2;
}
.verified-badge {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.merchant-id {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--t-4);
    margin-top: 3px;
}

.summary-rows {
    padding: 4px 22px;
}
.sum-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--b-3);
    font-size: 13px;
}
.sum-r:last-child { border-bottom: 0; }
.sum-r span { color: var(--t-3); }
.sum-r strong {
    color: var(--t-1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-variant-numeric: tabular-nums;
}
.sum-r strong img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}
.sum-r.sum-total {
    padding-top: 14px;
    border-top: 1px solid var(--b-1);
    border-bottom: 0;
    margin-top: 4px;
}
.sum-r.sum-total span { font-weight: 600; color: var(--t-1); }
.total-amount {
    font-family: var(--f-disp);
    font-size: 16px;
    color: var(--bc-blue) !important;
    letter-spacing: -.005em;
}
.success-text { color: var(--green) !important; }

.summary-timer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: linear-gradient(90deg, var(--amber-50) 0%, rgba(255,243,220,.4) 100%);
    border-top: 1px solid var(--b-1);
}
.timer-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--amber);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.timer-text { flex: 1; display: flex; flex-direction: column; }
.timer-eyebrow {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--amber);
}
.timer-time {
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 700;
    color: var(--t-1);
    margin-top: 1px;
}
.timer-progress {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.timer-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.timer-track {
    fill: none;
    stroke: rgba(197,120,11,.15);
    stroke-width: 3;
}
.timer-arc {
    fill: none;
    stroke: var(--amber);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 100.5;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s linear;
}

.summary-powered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--b-1);
    background: var(--surface-2);
    font-size: 11.5px;
    color: var(--t-4);
}
.summary-powered strong { color: var(--t-1); font-weight: 700; }

/* Trust pill stack */
.trust-stack {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    background: var(--surface);
    border: 1px solid var(--b-1);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: var(--t-3);
}
.trust-pill svg { color: var(--bc-blue); }

/* ============= FOOTER ============= */
.site-footer {
    border-top: 1px solid var(--b-1);
    background: var(--surface);
    padding: 22px 24px;
    text-align: center;
}
.footer-disclaimer {
    font-size: 12px;
    color: var(--t-4);
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 8px;
}
.footer-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--t-4);
}
.footer-links a {
    color: var(--t-3);
    text-decoration: none;
    transition: color .15s;
}
.footer-links a:hover { color: var(--bc-blue); }
.footer-links span { color: var(--b-2); }

/* ============= OVERLAYS / MODAL / SHEET ============= */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(14,26,43,.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
    z-index: 200;
}
.overlay.active { opacity: 1; pointer-events: auto; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.96);
    width: min(560px, calc(100vw - 24px));
    max-height: min(720px, calc(100vh - 48px));
    background: var(--surface);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-lg);
    z-index: 210;
    opacity: 0;
    pointer-events: none;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 22px 22px 14px;
    border-bottom: 1px solid var(--b-1);
}
.modal-head h3 {
    font-family: var(--f-disp);
    font-size: 19px;
    font-weight: 700;
    color: var(--t-1);
    margin-bottom: 2px;
    letter-spacing: -.015em;
}
.modal-head p { font-size: 12.5px; color: var(--t-3); }
.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-3);
    color: var(--t-3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}
.modal-close:hover { background: var(--b-1); color: var(--t-1); }
.modal-search {
    margin: 16px 22px 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--surface-2);
    border: 1px solid var(--b-1);
    border-radius: var(--r-md);
}
.modal-search:focus-within { border-color: var(--bc-blue); }
.modal-search svg { color: var(--t-4); }
.modal-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: var(--t-1);
}
.faq {
    list-style: none;
    overflow-y: auto;
    padding: 8px 14px 22px;
}
.faq-i {
    border-bottom: 1px solid var(--b-1);
    padding: 0 8px;
}
.faq-i:last-child { border-bottom: 0; }
.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 4px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-1);
    text-align: left;
    transition: color .15s;
}
.faq-q:hover { color: var(--bc-blue); }
.faq-q svg { transition: transform .25s ease; flex-shrink: 0; color: var(--t-4); }
.faq-i.open .faq-q svg { transform: rotate(180deg); color: var(--bc-blue); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
    color: var(--t-3);
    font-size: 13px;
    line-height: 1.6;
    padding: 0 4px;
}
.faq-i.open .faq-a { max-height: 220px; padding: 0 4px 14px; }

/* Sheet (asset/network selector) */
.sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: min(520px, calc(100vw));
    max-height: 76vh;
    background: var(--surface);
    border-radius: var(--r-2xl) var(--r-2xl) 0 0;
    box-shadow: var(--sh-lg);
    z-index: 210;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.sheet.active { transform: translateX(-50%) translateY(0); }
.sheet-handle {
    width: 38px;
    height: 4px;
    background: var(--b-2);
    border-radius: 2px;
    margin: 10px auto 6px;
}
.sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 22px 14px;
    border-bottom: 1px solid var(--b-1);
}
.sheet-head h3 {
    font-family: var(--f-disp);
    font-size: 17px;
    font-weight: 700;
    color: var(--t-1);
    letter-spacing: -.005em;
}
.sheet-body {
    overflow-y: auto;
    padding: 8px 12px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sheet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: 0;
    border-radius: var(--r-md);
    cursor: pointer;
    transition: background .15s;
    text-align: left;
    width: 100%;
}
.sheet-row:hover { background: var(--surface-2); }
.sheet-row.selected { background: var(--bc-blue-50); }
.sheet-row-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--surface-3);
}
.sheet-row-info { flex: 1; min-width: 0; }
.sheet-row-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--t-1);
    line-height: 1.2;
}
.sheet-row-name .sym { color: var(--t-4); font-weight: 500; font-size: 12px; }
.sheet-row-sub {
    font-size: 11.5px;
    color: var(--t-4);
    margin-top: 2px;
}
.sheet-row-tag {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--surface-3);
    color: var(--t-3);
}
.sheet-row-tag.green { background: var(--green-50); color: var(--green); }
.sheet-row-tag.blue { background: var(--bc-blue-50); color: var(--bc-blue); }

/* ============= CHAT ============= */
.chat-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep));
    color: #fff;
    box-shadow: 0 16px 32px -8px rgba(219,0,17,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    transition: transform .2s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); }
.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg);
}
.chat-panel {
    position: fixed;
    right: 24px;
    bottom: 88px;
    width: min(340px, calc(100vw - 32px));
    height: 460px;
    background: var(--surface);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-lg);
    border: 1px solid var(--b-1);
    z-index: 95;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.chat-panel.active { display: flex; animation: chatPop .25s cubic-bezier(.2,.8,.2,1); }
@keyframes chatPop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--bc-navy), var(--bc-navy-2));
    color: #fff;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.chat-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2DD879;
    border: 2px solid var(--bc-navy);
}
.chat-header h4 { font-size: 13.5px; font-weight: 600; }
.chat-header p {
    font-size: 11px;
    color: rgba(255,255,255,.6);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
}
.status-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2DD879;
}
.chat-header .modal-close { background: rgba(255,255,255,.12); color: #fff; }
.chat-header .modal-close:hover { background: rgba(255,255,255,.22); }
.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--surface-2);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
}
.chat-msg.agent {
    background: var(--surface);
    color: var(--t-2);
    border: 1px solid var(--b-1);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep));
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.msg-time {
    display: block;
    font-size: 10px;
    color: var(--t-4);
    margin-top: 4px;
}
.chat-msg.user .msg-time { color: rgba(255,255,255,.7); }
.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 12px;
    border-top: 1px solid var(--b-1);
    background: var(--surface);
}
#chatInput {
    flex: 1;
    border: 1px solid var(--b-1);
    outline: 0;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    background: var(--surface-2);
    color: var(--t-1);
}
#chatInput:focus { border-color: var(--bc-blue); background: var(--surface); }
.chat-send {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bc-blue), var(--bc-blue-deep));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s;
}
.chat-send:hover { transform: scale(1.06); }

/* ============= TOAST ============= */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bc-navy);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--sh-lg);
    opacity: 0;
    pointer-events: none;
    transition: all .25s cubic-bezier(.2,.8,.2,1);
    z-index: 300;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast svg { color: #2DD879; }

/* ============= RESPONSIVE ============= */

/* Long-text safety */
.flow-end-value, .mono, .address-input,
.banner-ref, .merchant-id { word-break: break-all; overflow-wrap: anywhere; }

/* Tablet */
@media (max-width: 1080px) {
    .checkout-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
    .checkout-main { padding: 30px 30px 28px; }
}

/* Stack columns */
@media (max-width: 920px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .checkout-side {
        position: static;
        order: -1;
    }
    .checkout-main { padding: 28px 24px 24px; }
    .summary-card { box-shadow: var(--sh-sm); }
}

/* Mobile */
@media (max-width: 640px) {
    .header-inner { padding: 12px 14px; }
    .nav-btn span:not(#currentLang) { display: none; }
    .nav-btn { padding: 8px 10px; }
    .nav-divider { display: none; }
    .brand-text { font-size: 16px; }

    .live-banner { padding: 8px 0; }
    .live-banner-inner {
        font-size: 11.5px;
        padding: 0 14px;
        gap: 6px;
    }
    .banner-sep { display: none; }

    .checkout { padding: 18px 14px 32px; }
    .checkout-main { padding: 22px 18px 22px; border-radius: 22px; }

    .step-header h1 { font-size: 22px; }
    .step-header p { font-size: 13px; }

    .step-indicator { gap: 4px; margin-bottom: 22px; }
    .dot-num { width: 22px; height: 22px; font-size: 10.5px; border-width: 2px; }
    .dot-label { display: none; }
    .step-dot.active .dot-label {
        display: inline;
        font-size: 12px;
        font-weight: 700;
    }
    .step-dot { gap: 6px; }
    .step-line { min-width: 6px; }

    .asset-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .asset-tile { padding: 10px; gap: 8px; }
    .asset-icon { width: 28px; height: 28px; }
    .asset-name { font-size: 12.5px; }
    .asset-symbol { font-size: 11px; }

    .network-card { padding: 12px 14px; }
    .network-stats { display: none; }

    .confirm-flow-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .flow-rail {
        height: 24px;
        transform: rotate(90deg);
        width: 24px;
        margin: 0 auto;
    }
    .flow-end-value { font-size: 12px; white-space: normal; }

    .confirm-amount-num { font-size: 30px; }
    .confirm-amount-line { gap: 8px; }
    .confirm-asset-icon { width: 30px; height: 30px; }
    .confirm-receipt { padding: 16px; }

    .summary-card { border-radius: var(--r-xl); }
    .summary-hero { padding: 18px; }
    .summary-amount { font-size: 36px; }
    .summary-currency { font-size: 18px; }
    .summary-merchant { padding: 14px 18px; }
    .summary-rows { padding: 0 18px; }
    .summary-timer { padding: 12px 18px; }

    .proc-stats { grid-template-columns: 1fr; gap: 8px; }
    .proc-stat-divider { display: none; }
    .proc-stat-val { white-space: normal; word-break: break-all; }

    .chain-block { width: 48px; height: 48px; font-size: 12px; border-radius: 10px; }
    .chain-link { width: 16px; }

    .success-actions { grid-template-columns: 1fr; }

    .modal {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 32px);
        border-radius: 22px;
    }
    .modal-head { padding: 18px 18px 14px; }
    .modal-head h3 { font-size: 17px; }
    .modal-search { margin: 14px 18px 4px; }
    .faq { padding: 6px 12px 18px; }

    .sheet {
        width: 100vw;
        max-height: 80vh;
        border-radius: 22px 22px 0 0;
    }

    .chat-panel {
        right: 8px;
        bottom: 78px;
        width: calc(100vw - 16px);
        max-width: 360px;
        height: 440px;
    }
    .chat-fab {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }

    .toast { bottom: 80px; font-size: 12.5px; padding: 9px 14px; }

    /* Prevent iOS zoom on inputs */
    .address-input,
    #chatInput,
    #helpSearch,
    #sheetSearch { font-size: 16px; }

    .footer-disclaimer { font-size: 11px; }
}

@media (max-width: 380px) {
    .checkout { padding: 14px 10px 28px; }
    .checkout-main { padding: 20px 14px 20px; }
    .summary-amount { font-size: 32px; }
    .summary-currency { font-size: 16px; }
    .step-header h1 { font-size: 20px; }
    .confirm-amount-num { font-size: 26px; }
    .step-dot.active .dot-label { display: none; }
    .step-dot { gap: 0; }
    .step-line { min-width: 4px; }
    .header-inner { padding: 12px 10px; }
    .nav-btn { padding: 7px 9px; font-size: 12px; }
}

/* Safe area iOS */
@supports (padding: max(0px)) {
    .checkout {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }
    .chat-fab { bottom: max(14px, env(safe-area-inset-bottom)); }
    .toast { bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px)); }
}

/* ========================================================
   v4: WELCOME STEP (full-width step 1)
   ======================================================== */

/* Step 1: full-width on desktop, hide side panel */
.checkout-grid.step1 {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}
.checkout-grid.step1 .checkout-side { display: none; }
.checkout-grid.step1 .step-indicator { display: none; }

.step-welcome { padding: 0 !important; }
.step-welcome .btn-large { margin-top: 18px; }

.welcome-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(219, 0, 17, .08);
}

.welcome-hero {
    background: linear-gradient(135deg, #1C1B1B 0%, #3D0506 50%, #8B0000 100%);
    color: white;
    padding: 28px 26px 24px;
    position: relative;
    overflow: hidden;
}
.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -30%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(219, 0, 17, .35) 0%, transparent 70%);
    pointer-events: none;
}
.welcome-hero-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    position: relative;
}
.welcome-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
}
.welcome-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(34, 197, 94, .18);
    color: #4ade80;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .35);
}
.welcome-amount {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 56px;
    letter-spacing: -.025em;
    line-height: 1;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.welcome-currency {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, .75);
}
.welcome-fiat {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .5);
    margin-left: 6px;
    letter-spacing: 0;
}
.welcome-equiv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 7px 14px 7px 7px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    position: relative;
}
.welcome-equiv img { width: 22px; height: 22px; }
.welcome-equiv strong { font-weight: 700; }

.welcome-merchant {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 26px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.welcome-merchant .merchant-avatar {
    width: 44px; height: 44px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.welcome-rows {
    padding: 6px 26px 16px;
}
.welcome-rows .sum-r {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.welcome-rows .sum-r:last-child { border-bottom: none; }

.welcome-timer {
    margin: 0 22px 22px;
    background: linear-gradient(135deg, #FFF7ED 0%, #FED7AA 100%);
    border: 1px solid #FBBF24;
    border-radius: var(--r-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.welcome-timer .timer-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.welcome-timer .timer-text { flex: 1; min-width: 0; }
.welcome-timer .timer-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #B45309;
    margin-bottom: 3px;
}
.welcome-timer .timer-time {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #78350F;
    letter-spacing: -.01em;
}
.welcome-timer .timer-progress {
    width: 38px; height: 38px;
    flex: none;
}

.welcome-trust {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

@media (max-width: 600px) {
    .welcome-hero { padding: 22px 18px 18px; }
    .welcome-amount { font-size: 44px; }
    .welcome-currency { font-size: 22px; }
    .welcome-merchant { padding: 14px 18px; }
    .welcome-rows { padding: 4px 18px 12px; }
    .welcome-timer { margin: 0 14px 14px; }
    .welcome-timer .timer-time { font-size: 18px; }
}

/* ========================================================
   v4: LOCKED ASSET CARD (step 2)
   ======================================================== */

.locked-asset-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 18px 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}

.locked-asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.locked-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-soft);
}
.locked-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.locked-pill-success {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .3);
    color: #15803d;
}

.locked-asset-body {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 14px;
    background: var(--bg-soft);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
}
.locked-asset-icon {
    width: 44px; height: 44px;
    flex: none;
    border-radius: 50%;
}
.locked-asset-text { flex: 1; min-width: 0; }
.locked-asset-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.locked-symbol {
    font-size: 11px;
    font-weight: 700;
    background: rgba(219, 0, 17, .1);
    color: var(--brand);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .02em;
}
.locked-asset-sub {
    font-size: 12px;
    color: var(--text-soft);
}
.locked-asset-amount {
    text-align: right;
    flex: none;
}
.locked-asset-amount .amt-num {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -.01em;
    line-height: 1;
}
.locked-asset-amount .amt-cur {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.locked-asset-stats {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.locked-asset-stats .stat-pill {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-mid);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.locked-asset-stats .stat-success {
    background: rgba(34, 197, 94, .12);
    border-color: rgba(34, 197, 94, .3);
    color: #15803d;
}

.locked-divider {
    height: 1px;
    background: linear-gradient(to right, transparent 0%, var(--border) 15%, var(--border) 85%, transparent 100%);
    margin: 24px 0 22px;
    position: relative;
}
.locked-divider::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .locked-divider { margin: 26px 0 24px; }
}

@media (max-width: 480px) {
    .locked-asset-body {
        flex-wrap: wrap;
        gap: 10px;
    }
    .locked-asset-amount, .locked-asset-stats {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
    }
}

/* ========================================================
   v4: INFO BANNER
   ======================================================== */

.info-banner {
    display: flex;
    gap: 12px;
    background: rgba(219, 0, 17, .06);
    border: 1px solid rgba(219, 0, 17, .2);
    border-radius: var(--r-lg);
    padding: 14px;
    margin-bottom: 18px;
}
.info-banner-icon {
    width: 32px; height: 32px;
    background: rgba(219, 0, 17, .12);
    border-radius: 8px;
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.info-banner-body strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3px;
}
.info-banner-body p {
    font-size: 12px;
    color: var(--text-soft);
    line-height: 1.5;
}

/* ========================================================
   v4: SHIELD ICON variant for FROM (HSBC Security)
   ======================================================== */
.flow-end-shield {
    background: linear-gradient(135deg, #DB0011, #8B0000) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(219, 0, 17, .35);
}

/* ========================================================
   v4: CLAIM SECTION (after success)
   ======================================================== */

.claim-section {
    background: linear-gradient(135deg, #1C1B1B 0%, #3D0506 100%);
    border-radius: var(--r-2xl);
    padding: 26px 24px;
    margin-top: 22px;
    color: white;
    position: relative;
    overflow: hidden;
}
.claim-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(219, 0, 17, .35) 0%, transparent 70%);
    pointer-events: none;
}
.claim-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(34, 197, 94, .18) 0%, transparent 70%);
    pointer-events: none;
}

.claim-header {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
}
.claim-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #DB0011, #8B0000);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex: none;
    box-shadow: 0 8px 20px rgba(219, 0, 17, .4);
}
.claim-text h2 {
    font-family: 'Inter Tight', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0 0 4px;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.claim-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.5;
    margin: 0;
}

.claim-warning {
    display: flex;
    gap: 12px;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .35);
    border-radius: var(--r-lg);
    padding: 14px;
    margin-bottom: 18px;
    position: relative;
}
.claim-warning-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    border-radius: 8px;
    color: white;
    display: flex; align-items: center; justify-content: center;
    flex: none;
}
.claim-warning-body strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #FCD34D;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
}
.claim-warning-body p {
    font-size: 13px;
    color: rgba(255, 255, 255, .92);
    line-height: 1.55;
    margin: 0;
}

.btn-claim {
    background: linear-gradient(135deg, #DB0011 0%, #B80010 100%) !important;
    box-shadow: 0 8px 24px rgba(219, 0, 17, .4) !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.btn-claim::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: translateX(-100%);
    animation: claim-shimmer 2.6s infinite;
}
@keyframes claim-shimmer {
    100% { transform: translateX(100%); }
}

.claim-section .success-actions {
    margin-top: 14px;
    justify-content: center;
}
.claim-section .btn-ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .92);
}
.claim-section .btn-ghost:hover {
    background: rgba(255, 255, 255, .14);
}
.btn-small {
    padding: 8px 14px !important;
    font-size: 12px !important;
}

/* ========================================================
   v4: CONNECT MODAL
   ======================================================== */

.modal-connect {
    width: min(440px, calc(100vw - 28px));
    max-height: 80vh;
    overflow: auto;
}
.modal-connect .wallet-list {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 600px) {
    .claim-section { padding: 22px 18px; }
    .claim-text h2 { font-size: 16px; }
    .claim-warning { padding: 12px; }
}

/* ========================================================
   v4: Disabled step indicator click while in step 1
   ======================================================== */
.step-indicator.hidden { display: none !important; }

/* ========================================================
   v5: RTL / Arabic language support
   ======================================================== */
body.lang-ar {
    font-family: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

body.lang-ar h1,
body.lang-ar h2,
body.lang-ar h3,
body.lang-ar h4 {
    font-family: 'Cairo', 'Inter Tight', 'Inter', system-ui, sans-serif;
    letter-spacing: 0;
}

/* Keep numeric/code elements LTR even in RTL mode */
body.lang-ar .mono,
body.lang-ar .merchant-id,
body.lang-ar .welcome-amount,
body.lang-ar .summary-amount,
body.lang-ar .confirm-amount-line,
body.lang-ar .timer-time,
body.lang-ar #bannerTimer,
body.lang-ar .banner-ref,
body.lang-ar .amt-num,
body.lang-ar .amt-cur,
body.lang-ar .stat-pill {
    direction: ltr;
    unicode-bidi: isolate;
}

/* RTL — flip back-button chevron */
html[dir="rtl"] .back-btn svg {
    transform: scaleX(-1);
}

/* RTL — flip primary button arrow */
html[dir="rtl"] .btn-primary svg:last-child,
html[dir="rtl"] .wallet-arrow svg {
    transform: scaleX(-1);
}

/* RTL — keep step-indicator left-to-right (visual flow) */
html[dir="rtl"] .step-indicator {
    direction: ltr;
}

/* RTL — keep chain-row LTR (block flow visually consistent) */
html[dir="rtl"] .chain-row {
    direction: ltr;
}

/* RTL — keep wallet address input LTR (TRC-20 format uses Latin characters) */
html[dir="rtl"] .address-input,
html[dir="rtl"] #walletInput {
    direction: ltr;
    text-align: left;
}

/* RTL — flip chat send icon */
html[dir="rtl"] .chat-send svg {
    transform: scaleX(-1);
}

/* RTL — adjust chat-fab position */
html[dir="rtl"] .chat-fab {
    right: auto;
    left: 22px;
}
html[dir="rtl"] .chat-panel {
    right: auto;
    left: 22px;
}

/* RTL — flip language menu */
html[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
}

/* RTL — fix toast position */
html[dir="rtl"] .toast {
    right: auto;
    left: 50%;
    transform: translateX(50%);
}
html[dir="rtl"] .toast.show {
    transform: translateX(50%) translateY(0);
}

