:root {
    --bg: #07111f;
    --bg-2: #0d1b33;
    --ink: #0e1728;
    --muted: #60718d;
    --line: #d7e3f2;
    --line-2: #c5d5ea;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-2: #f6f9ff;
    --white: #ffffff;
    --primary: #103569;
    --primary-2: #2059a7;
    --primary-3: #3e79cb;
    --accent: #d1a457;
    --accent-2: #f3e3be;
    --success: #16824f;
    --success-bg: #e5f8ed;
    --warn: #9e6e0e;
    --warn-bg: #fff1d6;
    --danger: #c23a56;
    --danger-bg: #ffe5ea;
    --shadow: 0 24px 50px rgba(6, 19, 44, 0.08);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(63, 121, 203, 0.14), transparent 25%),
        radial-gradient(circle at right top, rgba(209, 164, 87, 0.12), transparent 18%),
        linear-gradient(180deg, #f3f7fd 0%, #eef4fb 100%);
}

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

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

.flash {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    padding: 13px 18px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
    transition: opacity .3s ease, transform .3s ease;
}
.flash-success { background: linear-gradient(135deg, #1c8e57, #2eb26f); }
.flash-error { background: linear-gradient(135deg, #b82f49, #dc4f69); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    box-shadow: 0 14px 28px rgba(16, 53, 105, 0.18);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border-color: var(--line-2);
}
.btn-dark {
    background: rgba(9, 18, 34, 0.94);
    color: #fff;
}
.btn-light {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.15);
}
.btn-full { width: 100%; }
.small-btn {
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
}

.badge,
.eyebrow,
.mini-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}
.badge {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--accent-2);
    border: 1px solid #ead6a6;
    color: #755519;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .03em;
}
.badge.dark {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.14);
    color: #f5e5bf;
}
.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 900;
    color: var(--primary-2);
    margin-bottom: 10px;
}
.eyebrow.light {
    color: rgba(255,255,255,0.8);
}
.mini-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary-2);
    margin-bottom: 8px;
}

.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.logo-circle {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(145deg, var(--primary), #0b2649 76%);
    color: var(--accent);
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(9, 24, 50, 0.18);
}
.brand-block h3 {
    font-size: 20px;
    letter-spacing: .03em;
}
.brand-block p {
    color: var(--muted);
    font-size: 13px;
}

.site-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.top-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.landing-shell {
    min-height: 100vh;
}
.landing {
    max-width: 1240px;
    margin: 0 auto;
    padding: 8px 20px 80px;
}
.hero-card {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 24px;
    padding: 20px 0 28px;
    align-items: stretch;
}
.hero-copy,
.hero-panel {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}
.hero-copy {
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(201,216,236,.8);
    padding: 34px;
}
.hero-copy h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    margin: 18px 0 16px;
    max-width: 720px;
}
.hero-copy p {
    max-width: 700px;
    font-size: 18px;
    line-height: 1.72;
    color: var(--muted);
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}
.trust-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}
.trust-inline > div {
    border-radius: 20px;
    padding: 16px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.trust-inline strong {
    display: block;
    margin-bottom: 8px;
}
.trust-inline span {
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.hero-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #09172b 0%, var(--primary) 52%, var(--primary-3) 100%);
    padding: 26px;
    display: grid;
    gap: 16px;
    align-content: center;
}
.hero-panel::after,
.app-header::after,
.auth-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(255,255,255,.14), transparent 20%),
        radial-gradient(circle at 84% 20%, rgba(209,164,87,.22), transparent 18%),
        radial-gradient(circle at 75% 82%, rgba(255,255,255,.08), transparent 20%);
    pointer-events: none;
}
.glass-metric {
    position: relative;
    z-index: 1;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: #fff;
}
.glass-metric small {
    display: block;
    color: rgba(255,255,255,.78);
    margin-bottom: 14px;
}
.glass-metric strong {
    display: block;
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
}
.glass-metric.wide { min-height: 132px; }

.section-block {
    margin-top: 30px;
}
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.section-head h2 {
    font-size: clamp(28px, 3vw, 40px);
}
.section-head p {
    max-width: 420px;
    color: var(--muted);
    line-height: 1.6;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.feature-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(201,216,236,0.78);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--muted);
    line-height: 1.68;
}
.faq-shell {
    padding-bottom: 14px;
}
.faq-list {
    display: grid;
    gap: 14px;
}
.faq-item {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    border: 1px solid rgba(201,216,236,0.78);
    box-shadow: 0 14px 26px rgba(5, 20, 47, 0.04);
    overflow: hidden;
}
.faq-head {
    width: 100%;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
}
.faq-body {
    display: none;
    padding: 0 24px 22px;
    color: var(--muted);
    line-height: 1.7;
}
.faq-item.open .faq-body {
    display: block;
}

.auth-shell {
    min-height: 100vh;
    padding: 24px;
    display: grid;
    place-items: center;
}
.auth-split-card {
    width: 100%;
    max-width: 1160px;
    display: grid;
    grid-template-columns: 1fr .88fr;
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(201,216,236,.82);
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(5, 20, 47, 0.1);
}
.auth-cover {
    position: relative;
    background: linear-gradient(160deg, #081527 0%, #123561 50%, #2b69b9 100%);
    color: #fff;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 620px;
}
.auth-brand,
.auth-cover-copy {
    position: relative;
    z-index: 1;
}
.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}
.auth-brand p {
    color: rgba(255,255,255,.78);
}
.auth-cover h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    margin: 16px 0;
}
.auth-cover p {
    color: rgba(255,255,255,.82);
    line-height: 1.7;
    max-width: 520px;
}
.auth-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 26px;
}
.auth-points > div {
    border-radius: 20px;
    padding: 18px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}
.auth-points strong {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}
.auth-form-pane {
    display: grid;
    place-items: center;
    padding: 32px;
}
.auth-card {
    width: 100%;
    max-width: 470px;
    background: rgba(255,255,255,0.96);
    border-radius: 30px;
    padding: 30px;
    border: 1px solid rgba(201,216,236,.8);
    box-shadow: 0 16px 40px rgba(13, 24, 42, 0.06);
}
.auth-card.compact h2 {
    font-size: 32px;
    margin-bottom: 10px;
}
.muted-copy {
    color: var(--muted);
    line-height: 1.65;
}
.form-box {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}
.form-box label {
    color: #455570;
    font-size: 14px;
    font-weight: 800;
}
.form-box input,
.form-box select,
.form-box textarea {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #f9fbff;
    color: var(--ink);
    padding: 14px 16px;
    outline: none;
}
.form-box textarea {
    min-height: 120px;
    resize: vertical;
}
.form-box input:focus,
.form-box select:focus,
.form-box textarea:focus {
    border-color: var(--primary-2);
    box-shadow: 0 0 0 4px rgba(32, 89, 167, 0.08);
}
.small-link {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}
.small-link a,
.back-home {
    color: var(--primary-2);
    font-weight: 800;
}
.back-home {
    display: inline-block;
    margin-top: 18px;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px 1fr;
}
.desktop-sidebar {
    position: sticky;
    top: 0;
    min-height: 100vh;
    padding: 24px 18px 28px;
    background: linear-gradient(180deg, #081425 0%, #101d37 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.sidebar-brand p {
    color: rgba(255,255,255,0.66);
}
.sidebar-nav {
    display: grid;
    gap: 8px;
}
.sidebar-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(255,255,255,.78);
    font-weight: 700;
    border: 1px solid transparent;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.08);
}
.sidebar-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}
.sidebar-card small {
    display: block;
    color: rgba(255,255,255,.62);
    margin-bottom: 10px;
}
.sidebar-card strong {
    display: block;
    font-size: 28px;
    margin-bottom: 8px;
}
.sidebar-card p {
    color: rgba(255,255,255,.72);
    line-height: 1.6;
    font-size: 14px;
}
.muted-card {
    background: rgba(209,164,87,0.12);
    border-color: rgba(209,164,87,0.14);
}

.app-main {
    min-width: 0;
}
.app-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #0b1b31 0%, #123663 54%, #2a70c5 100%);
    border-bottom-left-radius: 36px;
    padding: 28px 24px 34px;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.18);
}
.app-header > * {
    position: relative;
    z-index: 1;
}
.header-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}
.header-top h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.04;
    margin-top: 2px;
}
.header-top h1 span {
    color: #fff5df;
    font-weight: 900;
}
.header-top p {
    color: rgba(255,255,255,.84);
    line-height: 1.6;
    margin-top: 10px;
    max-width: 640px;
}
.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.logout-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.08);
}
.header-metrics {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
}
.metric-tile {
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}
.metric-tile small {
    display: block;
    color: rgba(255,255,255,.72);
    margin-bottom: 14px;
}
.metric-tile strong {
    display: block;
    font-size: clamp(22px, 3vw, 34px);
}
.metric-tile.wide {
    grid-column: span 1;
}

.app-body {
    padding: 22px 20px 100px;
}
.wide-body {
    max-width: 1240px;
}
.panel {
    background: rgba(255,255,255,0.95);
    border-radius: 30px;
    border: 1px solid rgba(201,216,236,0.82);
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 14px 30px rgba(9, 25, 50, 0.06);
}
.panel h2 {
    font-size: 28px;
    margin-bottom: 10px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}
.compact-head h2 {
    font-size: 24px;
    margin-bottom: 0;
}
.spotlight-panel,
.merchant-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}
.stats-grid,
.info-stack {
    display: grid;
    gap: 12px;
}
.stats-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.soft-stat,
.session-card,
.quick-card,
.item-card,
.request-card,
.merchant-card {
    border-radius: 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.soft-stat {
    padding: 18px;
}
.soft-stat small,
.merchant-meta small,
.request-meta-grid small,
.sub-stats small {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}
.soft-stat strong {
    font-size: 30px;
}
.session-card {
    padding: 18px;
}
.session-card strong {
    display: block;
    font-size: 19px;
    margin: 8px 0 6px;
}
.session-card p {
    color: var(--muted);
    line-height: 1.6;
}
.dark-edge {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 12px;
}
.quick-card {
    padding: 20px 16px;
    display: grid;
    gap: 8px;
}
.quick-card strong {
    color: var(--ink);
}
.quick-card span {
    color: var(--muted);
    line-height: 1.5;
}

.wizard-preview {
    display: grid;
    gap: 12px;
}
.four-col {
    grid-template-columns: repeat(4, minmax(0,1fr));
}
.wizard-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
}
.wizard-step span {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    font-weight: 900;
    border: 2px solid var(--primary-2);
    color: var(--primary-2);
    background: #fff;
}
.wizard-step.active {
    background: linear-gradient(180deg, #eef6ff 0%, #e7f2ff 100%);
    border-color: #c4daf4;
}
.wizard-step.active span {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.wizard-step strong {
    display: block;
    margin-bottom: 4px;
}
.wizard-step small {
    color: var(--muted);
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 42px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
    border-radius: 26px;
    border: 1px dashed var(--line-2);
}
.empty-state.big {
    min-height: 260px;
    display: grid;
    place-items: center;
}
.empty-state p {
    color: var(--muted);
    line-height: 1.6;
    margin: 8px 0 18px;
}

.merchant-grid,
.request-grid {
    display: grid;
    gap: 16px;
}
.merchant-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.request-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.merchant-card,
.request-card {
    padding: 18px;
}
.merchant-top,
.request-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.merchant-top h3,
.request-top h3 {
    font-size: 22px;
}
.request-top p {
    color: var(--muted);
    margin-top: 4px;
}
.merchant-meta,
.request-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
    margin-top: 16px;
}
.merchant-meta strong,
.request-meta-grid strong {
    display: block;
    font-size: 15px;
    word-break: break-word;
}
.merchant-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
    flex-wrap: wrap;
}

.status-badge,
.status-pill,
.filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}
.status-badge {
    padding: 9px 12px;
}
.status-badge.pending,
.filter {
    background: #f3f7ff;
    color: #4a5c78;
}
.status-badge.paid,
.status-pill.green {
    background: var(--success-bg);
    color: var(--success);
}
.status-badge.failed,
.status-pill.red {
    background: var(--danger-bg);
    color: var(--danger);
}
.status-pill {
    padding: 12px 18px;
}
.filter-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.filter {
    padding: 10px 15px;
    border: 1px solid transparent;
}
.filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
}
.request-actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}
.two-actions {
    grid-template-columns: repeat(2, minmax(0,1fr));
}
.request-actions form {
    display: block;
}
.request-actions .btn {
    width: 100%;
}
.premium-card {
    box-shadow: 0 10px 24px rgba(13, 31, 62, 0.04);
}

.sub-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
    margin-top: 18px;
}
.sub-stats > div {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: #f9fbff;
}
.sub-stats strong {
    display: block;
    font-size: 32px;
    margin-bottom: 8px;
}
.sub-stats span,
.progress-meta,
.integration-box,
.doc-box,
.key-group label,
.label-row {
    color: var(--muted);
}
.progress-wrap {
    margin-top: 22px;
}
.progress-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e7edf8;
}
.progress-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}
.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.tabs {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin-bottom: 20px;
    color: #8997ad;
    font-weight: 800;
}
.tab.active {
    color: var(--primary-2);
    border-bottom: 3px solid var(--primary-2);
    padding-bottom: 10px;
}
.key-group {
    margin-bottom: 18px;
}
.label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}
.link-btn {
    background: transparent;
    border: 0;
    color: var(--primary-2);
    cursor: pointer;
    font-weight: 800;
}
.key-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f9fbff;
    padding: 16px;
    word-break: break-all;
}
.copy-btn {
    border: 0;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.integration-box {
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
    padding: 18px;
    line-height: 1.68;
}
.integration-box strong {
    display: block;
    color: var(--ink);
    margin-top: 10px;
}
.integration-box strong:first-child {
    margin-top: 0;
}
.integration-box code {
    display: inline-block;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 5px 8px;
    word-break: break-all;
}
.code-stack p + strong {
    margin-top: 14px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    padding: 22px;
    background: rgba(9, 16, 31, 0.58);
    backdrop-filter: blur(4px);
    z-index: 999;
    align-items: center;
    justify-content: center;
}
.modal.show {
    display: flex;
}
.modal-card {
    width: min(100%, 620px);
    max-height: min(90vh, 900px);
    overflow: auto;
    border-radius: 28px;
    background: #fff;
    border: 1px solid rgba(201,216,236,.84);
    padding: 22px;
    box-shadow: 0 26px 60px rgba(0,0,0,0.18);
}
.merchant-modal-card {
    width: min(100%, 1060px);
}
.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.modal-top h3 {
    font-size: 28px;
}
.close-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 0;
    background: #edf2ff;
    color: var(--primary);
    font-size: 26px;
    cursor: pointer;
}
.merchant-connect-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px;
}
.wizard-sidebar {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}
.wizard-note {
    margin-top: 4px;
    padding: 16px;
    border-radius: 18px;
    background: #fff8e7;
    border: 1px solid #efd8a7;
}
.wizard-note strong {
    display: block;
    margin-bottom: 6px;
}
.wizard-note p {
    color: #76561b;
    line-height: 1.6;
}
.dual-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 6px;
    padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
    background: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(10px);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 24px rgba(0,0,0,0.18);
    z-index: 900;
}
.bottom-nav a {
    color: #97a7c0;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 4px;
    font-weight: 800;
}
.bottom-nav a.active {
    color: #fff;
}

@media (max-width: 1150px) {
    .feature-grid,
    .merchant-grid,
    .request-grid {
        grid-template-columns: 1fr 1fr;
    }
    .four-col {
        grid-template-columns: 1fr 1fr;
    }
    .app-shell {
        grid-template-columns: 1fr;
    }
    .desktop-sidebar {
        display: none;
    }
    .bottom-nav {
        display: grid;
    }
    .app-body {
        padding-bottom: 100px;
    }
}

@media (max-width: 900px) {
    .hero-card,
    .auth-split-card,
    .grid-two,
    .merchant-connect-grid,
    .merchant-grid,
    .request-grid,
    .feature-grid,
    .trust-inline,
    .auth-points,
    .quick-grid,
    .stats-grid,
    .dual-grid,
    .sub-stats,
    .merchant-meta,
    .request-meta-grid,
    .header-metrics,
    .four-col {
        grid-template-columns: 1fr;
    }
    .site-header,
    .spotlight-panel,
    .merchant-banner,
    .header-top,
    .panel-head,
    .section-head,
    .merchant-foot,
    .label-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .auth-cover {
        min-height: 420px;
    }
}

@media (max-width: 640px) {
    .site-header,
    .landing,
    .auth-shell,
    .app-body,
    .app-header,
    .modal,
    .modal-card,
    .merchant-modal-card {
        padding-left: 16px;
        padding-right: 16px;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-copy,
    .hero-panel,
    .panel,
    .feature-card,
    .auth-card,
    .modal-card {
        border-radius: 24px;
    }
    .hero-copy h1,
    .auth-cover h1 {
        font-size: 34px;
    }
    .modal {
        align-items: flex-end;
        padding: 0;
        background: rgba(9,16,31,0.56);
    }
    .modal-card,
    .merchant-modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 28px 28px 0 0;
        padding: 18px;
    }
    .top-actions,
    .hero-buttons,
    .header-actions,
    .request-actions.two-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }
    .header-actions .btn,
    .header-actions .logout-btn,
    .spotlight-actions .btn,
    .merchant-banner .btn {
        width: 100%;
    }
    .spotlight-actions {
        display: grid;
        gap: 10px;
        width: 100%;
    }
    .feature-grid,
    .merchant-grid,
    .request-grid {
        grid-template-columns: 1fr;
    }
}
