* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --orange: #F06B25;
    --orange-mid: #EF6A24;
    --orange-light: #F99D3C;
    --blue-dark: #1658A5;
    --blue-mid: #0C84BC;
    --text-dark: #1E1E1E;
    --text-mid: #474747;
    --text-light: #52525B;
    --text-muted: #A1A1AA;
    --border: #E4E4E7;
    --bg-warm: #FFF5F0;
    --bg-page: #FBFBFB;
    --white: #ffffff;
    --red: #EF4444;
    --grad-orange: linear-gradient(124.07deg, #EF6A24 19.79%, #F99D3C 88.53%);
    --grad-blue: linear-gradient(146.18deg, #0C84BC 10.48%, #1658A5 86.16%);
    --grad-radial: radial-gradient(84.61% 149.04% at 22.8% 65.37%, #0C84BC 0%, #1658A5 51.92%, #EF6A24 100%);
    --bg-card-blue: radial-gradient(91.5% 69.17% at 100% 69.17%, #CDEFFF 0%, #FBFBFB 100%);
    --bg-card-orange: radial-gradient(97.86% 73.98% at 100% 26.02%, #FFDDCC 0%, #FBFBFB 100%);
    --shadow-orange: 0px 5px 10px 0px #F06B2533;
    --shadow-blue: 0px 5px 10px 0px #1086BE33;
    --shadow-card: 0px 4px 24px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: var(--border)
}

::-webkit-scrollbar-thumb {
    background: var(--orange);
    border-radius: 3px
}

/* NAV */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: var(--shadow-blue);
    padding: 0 40px;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    max-width: 200px;
    height: auto;
}

.nav-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.nav-logo-text span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tab-short {
    display: none;
}

.tab-full {
    display: inline;
}

.nav-tab {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    padding: 8px 16px;
    border-radius: 5px;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-tab:hover {
    color: var(--orange);
}

.nav-tab.active {
    color: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

.nav-cta {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--orange);
    border: none;
    border-radius: 5px;
    padding: 10px 22px;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px #F06B2550;
}

/* PAGE */
.page-bg {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #f36b2108 0%, #0788be10 50%, #ffffff08 100%);
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

/* EYEBROW */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.eyebrow-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--orange);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.eyebrow-rule {
    flex: 1;
    border: none;
    border-top: 0.5px solid #bbbbbb45;
}

/* HERO */
.hero {
    text-align: center;
    margin-bottom: 48px;
}

.hero h1 {
    font-size: 44px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.go {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gb {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

/* ALERT */
.alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--bg-warm);
    border: 1px solid #EF6A2440;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: left;
}

.alert-banner strong {
    color: var(--orange);
    font-weight: 600;
}

/* BUTTONS */
.btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    background: var(--orange);
    border: none;
    border-radius: 5px;
    padding: 13px 26px;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
}

.btn-orange:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px #F06B2555;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--orange);
    background: var(--white);
    border: 1px solid var(--orange);
    border-radius: 5px;
    padding: 12px 26px;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    text-decoration: none;
    transition: transform 0.25s, background 0.2s;
}

.btn-outline:hover {
    transform: scale(1.05);
    background: var(--bg-warm);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
}

/* UPLOAD CARD */
.upload-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.upload-card-header {
    background: var(--grad-blue);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.upload-card-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.upload-card-title {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.upload-card-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.upload-card-body {
    padding: 32px;
}

/* DROP ZONE */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 48px 32px;
    text-align: center;
    cursor: pointer;
    background: var(--bg-page);
    transition: all 0.2s;
}

.drop-zone:hover,
.drop-zone.dragging {
    border-color: var(--orange);
    background: var(--bg-warm);
}

.drop-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    margin: 0 auto 18px;
    background: var(--grad-radial);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
}

.drop-icon-wrap svg {
    width: 26px;
    height: 26px;
    stroke: white;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.drop-zone h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.drop-zone p {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 300;
    margin-bottom: 22px;
    line-height: 1.6;
}

.drop-format {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}

#file-input {
    display: none;
}

.error-msg {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    font-size: 13px;
    color: var(--red);
    display: none;
}

/* SAMPLE STRIP */
.sample-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--bg-card-blue);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.sample-strip .s-text strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
}

.sample-strip .s-text span {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 300;
}

.sample-strip-btns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* LOADING */
#loading-screen {
    display: none;
    text-align: center;
    padding: 100px 0;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 3px solid var(--border);
    border-top-color: var(--orange);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 28px;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.loading-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.loading-steps {
    max-width: 340px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.loading-step {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-step.done {
    color: var(--orange);
    font-weight: 500;
}

@keyframes fadeIn {
    to {
        opacity: 1
    }
}

/* RESULTS */
#results-screen {
    display: none;
}

.results-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card-blue);
    border: 1px solid #0C84BC30;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-dark);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--orange);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 #F06B2540
    }

    50% {
        box-shadow: 0 0 0 5px #F06B2500
    }
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* HERO METRIC */
.metric-hero {
    background: var(--grad-radial);
    border-radius: 20px;
    padding: 44px 48px;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.metric-hero::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.metric-hero::after {
    content: '';
    position: absolute;
    right: 80px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.metric-left {
    position: relative;
    z-index: 1;
}

.metric-eyebrow {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    margin-bottom: 14px;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
}

.metric-right {
    text-align: right;
    position: relative;
    z-index: 1;
}

.metric-note {
    font-size: 14px;
    opacity: 0.85;
    max-width: 300px;
    font-weight: 300;
    line-height: 1.6;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

@media(max-width:640px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr
    }
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 22px 24px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s, transform 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-orange);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--blue-dark);
    letter-spacing: -0.5px;
}

.stat-sub {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 4px;
}

/* SECTION CARD */
.section-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 32px;
    margin-bottom: 20px;
}

.section-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.section-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* BARS */
.bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.bar-lbl {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    width: 170px;
    flex-shrink: 0;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 30px;
    background: #F4F4F5;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.bar-fill .bar-amt {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* TABLE */
.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 560px;
}

th {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    padding: 10px 16px;
    border-bottom: 2px solid var(--border);
    background: var(--bg-page);
    white-space: nowrap;
}

td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: var(--bg-warm);
}

.td-entry {
    font-weight: 700;
    color: var(--blue-dark);
    font-size: 13px;
}

.td-normal {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-mid);
}

.td-amount {
    font-weight: 700;
    color: var(--orange);
    font-size: 14px;
}

.table-note {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
}

/* STATUS BADGES */
.s-psc {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-card-blue);
    color: var(--blue-dark);
    border: 1px solid #0C84BC30;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.s-protest {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-card-orange);
    color: var(--orange);
    border: 1px solid #EF6A2430;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

.s-expired {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #F4F4F5;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
    text-decoration: line-through;
}

.s-unknown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
    border-radius: 20px;
    padding: 3px 10px;
    white-space: nowrap;
}

/* WARN */
.warn-card {
    background: var(--bg-warm);
    border: 1px solid #EF6A2440;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.warn-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 6px;
}

.warn-card p {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.code-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.code-tag {
    font-size: 11px;
    font-weight: 600;
    background: white;
    border: 1px solid #EF6A2440;
    border-radius: 5px;
    padding: 3px 9px;
    color: var(--orange);
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media(max-width:640px) {
    .steps-grid {
        grid-template-columns: 1fr
    }
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--grad-orange);
    box-shadow: var(--shadow-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
}

.step-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* DISCLAIMER */
.disclaimer {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.8;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 20px;
}

/* CATALOG */
#catalog-screen {
    display: none;
}

.catalog-intro {
    text-align: center;
    margin-bottom: 44px;
}

.catalog-intro h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 12px;
}

.catalog-intro p {
    font-size: 15px;
    font-weight: 300;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
}

.csms-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.csms-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.csms-item:hover {
    border-color: var(--orange);
    background: var(--bg-warm);
}

.csms-code {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 3px;
}

.csms-desc {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
}

.tag-r {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-card-blue);
    color: var(--blue-dark);
    border-radius: 20px;
    padding: 2px 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tag-e {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #F4F4F5;
    color: var(--text-muted);
    border-radius: 20px;
    padding: 2px 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FOOTER */
footer {
    background: var(--bg-warm);
    border-radius: 20px 20px 0 0;
    margin: 40px 24px 0;
    padding: 36px 40px;
    border: 1px solid #EF6A2415;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-name span {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-sub {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
}

/* DIAMOND SVG */
.diamond {
    display: block;
}

/* ══════════════════════════════════════
   RESPONSIVE — All Breakpoints
   ┌─────────────────────────────────────┐
   │ >1024px   Desktop                   │
   │ 768–1024  iPad / Large Tablet       │
   │ 600–768   iPad Mini / Fold Unfolded │
   │ 360–600   Mobile / Fold Folded      │
   │ <360      Very small / SE           │
   └─────────────────────────────────────┘
══════════════════════════════════════ */

/* ── Large Tablet: iPad Pro, Surface Pro (1024px) ── */
@media(max-width:1024px) {
    .nav-cta {
        display: none;
    }

    main {
        padding: 44px 28px 72px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .metric-hero {
        padding: 36px 36px;
    }

    .metric-value {
        font-size: 44px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-box {
        max-width: 600px;
    }
}

/* ── Standard Tablet: iPad, Galaxy Tab (768px) ── */
@media(max-width:900px) {
    header {
        padding: 0 20px;
    }

    .nav-tabs {
        gap: 2px;
    }

    .nav-tab {
        font-size: 12px;
        padding: 7px 11px;
    }

    .nav-cta {
        display: none;
    }

    main {
        padding: 32px 20px 60px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-sub {
        font-size: 15px;
    }

    .alert-banner {
        font-size: 13px;
    }

    /* Upload */
    .upload-card-body {
        padding: 22px;
    }

    .upload-card-header {
        padding: 14px 22px;
    }

    .upload-card-sub {
        display: none;
    }

    .drop-zone {
        padding: 36px 20px;
    }

    /* Sample strip */
    .sample-strip {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sample-strip-btns {
        width: 100%;
        display: flex;
        gap: 10px;
    }

    .sample-strip-btns .btn-ghost,
    .sample-strip-btns .btn-outline {
        flex: 1;
        justify-content: center;
    }

    /* Metric hero */
    .metric-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
        gap: 20px;
    }

    .metric-value {
        font-size: 40px;
    }

    .metric-right {
        align-items: flex-start !important;
        width: 100%;
    }

    .metric-right a {
        width: 100%;
        justify-content: center;
    }

    .metric-note {
        text-align: left;
        max-width: 100%;
    }

    /* Stats & cards */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bar-lbl {
        width: 110px;
        font-size: 11px;
    }

    .section-card {
        padding: 22px 18px;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Footer */
    footer {
        margin: 40px 0 0;
        border-radius: 0;
        padding: 28px 20px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* Modal */
    .modal-box {
        max-width: 94vw;
        border-radius: 16px;
    }

    .modal-header {
        padding: 22px 22px 18px;
        border-radius: 16px 16px 0 0;
    }

    .modal-title {
        font-size: 19px;
    }

    .modal-body {
        padding: 22px 22px 26px;
    }

    #signup-success {
        padding: 22px 22px 26px;
    }
}

/* ── iPad Mini / Galaxy Fold Unfolded (600px) ── */
@media(max-width:768px) {
    .hero h1 {
        font-size: 26px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .results-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .file-meta {
        font-size: 12px;
    }

    .bar-row {
        gap: 8px;
    }

    .bar-lbl {
        width: 100px;
    }

    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 500px;
        font-size: 12px;
    }
}

/* ── Mobile / Galaxy Fold Folded (480px) ── */
@media(max-width:480px) {
    .nav-logo-text {
        font-size: 14px;
    }

    .nav-tab {
        padding: 6px 6px;
    }

    .tab-short {
        display: none;
    }

    main {
        padding: 24px 14px 56px;
    }

    .hero h1 {
        font-size: 22px;
        letter-spacing: -0.3px;
    }

    .hero-sub {
        font-size: 13px;
    }

    .alert-banner {
        font-size: 12px;
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }

    /* Upload */
    .drop-zone {
        padding: 28px 16px;
    }

    .drop-zone h3 {
        font-size: 15px;
    }

    .drop-zone p {
        font-size: 13px;
    }

    .drop-icon-wrap {
        width: 48px;
        height: 48px;
    }

    .btn-orange,
    .btn-outline,
    .btn-ghost {
        font-size: 13px;
        padding: 10px 16px;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 16px 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    /* Metric */
    .metric-hero {
        padding: 22px 18px;
        gap: 16px;
    }

    .metric-value {
        font-size: 32px;
    }

    .metric-chip {
        font-size: 11px;
        padding: 4px 10px;
    }

    /* Bar chart */
    .bar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .bar-lbl {
        width: 100%;
        text-align: left;
        font-size: 11px;
    }

    .bar-track {
        width: 100%;
    }

    .bar-val {
        font-size: 11px;
    }

    /* Table */
    table {
        font-size: 11px;
        min-width: 440px;
    }

    th {
        font-size: 10px;
        padding: 8px 8px;
    }

    td {
        padding: 10px 8px;
    }

    /* Cards */
    .section-card {
        padding: 16px 14px;
    }

    .section-heading {
        font-size: 16px;
    }

    .section-desc {
        font-size: 12px;
    }

    .step-title {
        font-size: 13px;
    }

    .step-desc {
        font-size: 12px;
    }

    .file-meta {
        gap: 8px;
        font-size: 11px;
    }

    /* Next steps CTA */
    #next-steps-cta {
        padding: 18px 14px !important;
    }

    #next-steps-cta a {
        width: 100%;
        justify-content: center;
    }

    /* Modal */
    #signup-modal {
        padding: 12px;
    }

    .modal-box {
        max-width: 100%;
        border-radius: 14px;
    }

    .modal-header {
        padding: 18px 16px 14px;
    }

    .modal-title {
        font-size: 16px;
    }

    .modal-sub {
        font-size: 12px;
    }

    .modal-body {
        padding: 18px 16px 20px;
    }

    #signup-success {
        padding: 18px 16px 20px !important;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-input {
        height: 44px;
        font-size: 13px;
    }

    .signup-btn {
        height: 48px;
        font-size: 14px;
    }

    .success-title {
        font-size: 18px;
    }

    .success-sub {
        font-size: 13px;
    }

    #calendly-inline {
        min-height: 520px;
    }

    /* Footer */
    .footer-copy {
        font-size: 11px;
    }

    .footer-name {
        font-size: 13px;
    }
}

/* ── Samsung Galaxy Fold / very small (360px) ── */
@media(max-width:360px) {
    .nav-logo-text {
        font-size: 12px;
    }

    .nav-tab {
        font-size: 10px;
        padding: 5px 7px;
    }

    .hero h1 {
        font-size: 19px;
    }

    .hero-sub {
        font-size: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 22px;
    }

    .metric-value {
        font-size: 28px;
    }

    .metric-chip {
        font-size: 10px;
    }

    .btn-orange,
    .btn-outline,
    .btn-ghost {
        font-size: 12px;
        padding: 9px 14px;
    }

    .upload-card-body {
        padding: 14px;
    }

    .drop-zone {
        padding: 22px 12px;
    }

    table {
        min-width: 400px;
        font-size: 10px;
    }

    th {
        font-size: 9px;
        padding: 7px 7px;
    }

    td {
        padding: 9px 7px;
    }

    .section-card {
        padding: 14px 12px;
    }

    .modal-header {
        padding: 14px 14px 12px;
    }

    .modal-title {
        font-size: 15px;
    }

    .modal-body {
        padding: 14px 14px 18px;
    }

    .form-input {
        height: 42px;
        font-size: 12px;
    }

    .signup-btn {
        height: 44px;
        font-size: 13px;
    }

    #calendly-inline {
        min-height: 480px;
    }
}

/* ── Foldable: handle fold/unfold transition smoothly ── */
@media(max-width:720px) and (min-width:481px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .metric-hero {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 28px;
    }

    .metric-value {
        font-size: 36px;
    }

    .bar-lbl {
        width: 130px;
    }

    .modal-box {
        max-width: 90vw;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Landscape mobile — prevent layout breaks ── */
@media(max-height:500px) and (orientation:landscape) {
    .hero {
        padding: 20px 0 10px;
    }

    .hero h1 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .hero-sub {
        margin-bottom: 14px;
    }

    .drop-zone {
        padding: 20px;
    }

    #signup-modal {
        align-items: flex-start;
        padding-top: 8px;
    }

    .modal-box {
        max-height: 95vh;
    }

    .modal-header {
        padding: 14px 20px 12px;
    }
}

/* ── SIGNUP MODAL ── */
#signup-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-box.calendly-open {
    max-width: 1100px;
}

#calendly-inline iframe {
    height: 720px !important;
    min-height: 720px;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background: var(--grad-radial);
    padding: 28px 32px 24px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-eyebrow {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 6px;
}

.modal-sub {
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.modal-body {
    padding: 28px 32px 32px;
}

.form-field {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 7px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-dark);
    background: var(--bg-page);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px #F06B2515;
    background: white;
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media(max-width:480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.signup-btn {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 8px;
    background: var(--orange);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.signup-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 8px 24px #F06B2550;
}

.signup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.signup-error {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    font-size: 13px;
    color: var(--red);
}

#signup-success {
    display: none;
    padding: 28px 32px 32px;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #DCFCE7;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.success-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 8px;
}

.success-sub {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
    text-align: center;
    line-height: 1.7;
    margin-bottom: 24px;
}

.success-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.success-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border);
}

.success-divider span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

#calendly-inline {
    min-height: 630px;
    width: 100%;
}

/* ── Guide-specific styles ─────────────────────────────────────────── */

/* Progress stepper */
.guide-stepper {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 48px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 80px;
    position: relative;
    cursor: pointer;
}

.stepper-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--border);
    z-index: 0;
    transition: background 0.3s;
}

.stepper-item.done:not(:last-child)::after {
    background: var(--orange);
}

.stepper-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    flex-shrink: 0;
}

.stepper-item.active .stepper-num {
    background: var(--grad-orange);
    color: white;
    box-shadow: var(--shadow-orange);
}

.stepper-item.done .stepper-num {
    background: #22C55E;
    color: white;
}

.stepper-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: center;
    line-height: 1.4;
    max-width: 80px;
}

.stepper-item.active .stepper-label {
    color: var(--orange);
}

.stepper-item.done .stepper-label {
    color: #22C55E;
}

/* Step cards */
.step-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    overflow: hidden;
    scroll-margin-top: 100px;
}

.step-card-header {
    background: var(--grad-blue);
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.step-card-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.step-card-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.step-card-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.step-card-body {
    padding: 28px 32px;
}

/* Screenshot placeholder */
.screenshot-box {
    background: var(--bg-page);
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.screenshot-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-card-blue);
    opacity: 0.5;
}

.screenshot-inner {
    position: relative;
    z-index: 1;
}

.screenshot-icon {
    width: 48px;
    height: 48px;
    background: var(--grad-radial);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: var(--shadow-blue);
}

.screenshot-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screenshot-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 4px;
}

.screenshot-hint {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-muted);
}

/* UI mock — simulated ACE portal UI elements */
.ace-mock {
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.ace-mock-bar {
    background: #1a3a6b;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ace-mock-bar span {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
}

.ace-mock-body {
    padding: 16px 20px;
}

.ace-mock-menu {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ace-mock-menu-item {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-mid);
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    font-family: 'Poppins', sans-serif;
}

.ace-mock-menu-item.highlight {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

.ace-mock-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.ace-mock-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ace-mock-field label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Poppins', sans-serif;
}

.ace-mock-field input {
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0 8px;
    font-size: 12px;
    background: var(--bg-page);
    color: var(--text-mid);
    font-family: 'Poppins', sans-serif;
}

.ace-mock-field input.filled {
    background: #F0FDF4;
    border-color: #86EFAC;
    color: #15803D;
    font-weight: 500;
}

.ace-mock-field input.highlight-field {
    border-color: var(--orange);
    background: var(--bg-warm);
}

.ace-mock-checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ace-mock-checkbox {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--orange);
    border-radius: 3px;
    background: var(--bg-warm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ace-mock-checkbox-label {
    font-size: 12px;
    color: var(--text-mid);
    font-family: 'Poppins', sans-serif;
}

.ace-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: var(--orange);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    font-family: 'Poppins', sans-serif;
    box-shadow: var(--shadow-orange);
}

/* Callout / tip boxes */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 300;
}

.tip-box.tip-blue {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.tip-box.tip-orange {
    background: var(--bg-warm);
    border: 1px solid #EF6A2440;
    color: var(--text-light);
}

.tip-box.tip-green {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.tip-box.tip-red {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-box strong {
    font-weight: 600;
}

/* Inline instruction list */
.instruction-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 20px 0;
}

.instruction-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.inst-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grad-blue);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.inst-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-mid);
    line-height: 1.7;
}

.inst-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.inst-text code {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--blue-dark);
}

/* Column reference table */
.col-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
}

.col-table th {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    border-bottom: 2px solid var(--border);
    background: var(--bg-page);
    text-align: left;
    white-space: nowrap;
}

.col-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-weight: 300;
    color: var(--text-mid);
}

.col-table tr:last-child td {
    border-bottom: none;
}

.col-table tr:hover td {
    background: var(--bg-warm);
}

.col-name {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-dark);
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 4px;
    padding: 2px 8px;
    white-space: nowrap;
}

.col-req {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

.col-req.required {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.col-req.optional {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #BBF7D0;
}

/* FAQ accordion */
.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--orange);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-item.open .faq-q {
    color: var(--orange);
}

.faq-a {
    display: none;
    padding: 0 0 18px 0;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-item.open .faq-a {
    display: block;
}

/* Deadline urgency strip */
.deadline-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}

.deadline-card {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid;
}

.deadline-card.psc {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.deadline-card.protest {
    background: var(--bg-warm);
    border-color: #EF6A2440;
}

.deadline-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.deadline-card.psc .deadline-type {
    color: var(--blue-dark);
}

.deadline-card.protest .deadline-type {
    color: var(--orange);
}

.deadline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.deadline-desc {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.deadline-window {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.deadline-card.psc .deadline-window {
    background: #DBEAFE;
    color: #1D4ED8;
}

.deadline-card.protest .deadline-window {
    background: #FFE4CC;
    color: #C2410C;
}

/* CTA strip at bottom */
.guide-cta {
    background: var(--grad-radial);
    border-radius: 20px;
    padding: 44px 48px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.guide-cta::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.guide-cta::after {
    content: '';
    position: absolute;
    left: 60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.guide-cta-inner {
    position: relative;
    z-index: 1;
}

.guide-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.guide-cta p {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.guide-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--orange);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media(max-width: 768px) {
    .guide-stepper {
        gap: 0;
    }

    .stepper-label {
        display: none;
    }

    .step-card-body {
        padding: 20px 18px;
    }

    .ace-mock-field-row {
        grid-template-columns: 1fr 1fr;
    }

    .deadline-strip {
        grid-template-columns: 1fr;
    }

    .guide-cta {
        padding: 32px 24px;
    }

    .guide-cta h2 {
        font-size: 22px;
    }
}

@media(max-width: 480px) {
    .ace-mock-field-row {
        grid-template-columns: 1fr;
    }

    .ace-mock-menu {
        display: none;
    }

    .guide-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        justify-content: center;
    }
}

/* ── Additional Guide Styles ─────────────────────────────── */

/* Table of contents */
.toc-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    text-decoration: none;
    transition: all 0.2s;
}

.toc-item:hover {
    border-color: var(--orange);
    background: var(--bg-warm);
    transform: translateY(-1px);
}

.toc-num {
    font-size: 13px;
    font-weight: 800;
    color: var(--orange);
    min-width: 28px;
}

.toc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.toc-sub {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-muted);
}

/* Section label dividers */
.g-section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 40px 0 16px;
    padding: 0 4px;
}

.g-section-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
    background: var(--grad-orange);
    border-radius: 6px;
    padding: 4px 9px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.g-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    flex: 1;
}

.g-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 8px;
}

.timeline-item {
    display: flex;
    gap: 18px;
    padding-bottom: 24px;
    position: relative;
}

.timeline-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 22px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.timeline-dot.orange {
    background: var(--grad-orange);
    box-shadow: var(--shadow-orange);
}

.timeline-dot.blue {
    background: var(--grad-blue);
    box-shadow: var(--shadow-blue);
}

.timeline-dot.green {
    background: #22C55E;
    box-shadow: 0 4px 10px #22C55E44;
}

.timeline-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

.timeline-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.timeline-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Refundable / not refundable cards */
.refund-status-card {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid;
}

.refund-status-card.refundable {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.refund-status-card.not-refundable {
    background: #FEF2F2;
    border-color: #FECACA;
}

.rs-header {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.refundable .rs-header {
    color: #166534;
}

.not-refundable .rs-header {
    color: #991B1B;
}

.rs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rs-list li {
    font-size: 12px;
    font-weight: 400;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}

.refundable .rs-list li {
    color: #166534;
}

.not-refundable .rs-list li {
    color: #991B1B;
}

.rs-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: 700;
}

/* Eligibility checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-page);
    transition: border-color 0.2s;
}

.check-item.checked {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.check-box {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 1px;
}

.check-item.checked .check-box {
    background: #22C55E;
    border-color: #22C55E;
}

.check-mark {
    font-size: 13px;
    color: transparent;
    font-weight: 700;
    transition: color 0.2s;
}

.check-item.checked .check-mark {
    color: white;
}

.check-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.check-item.checked .check-title {
    color: #166534;
}

.check-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Deadline calculator box */
.deadline-calc-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.dcb-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.dcb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.dcb-item {
    border-radius: 10px;
    padding: 16px;
    border: 1px solid;
}

.dcb-item.blue {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.dcb-item.orange {
    background: var(--bg-warm);
    border-color: #EF6A2440;
}

.dcb-item.red {
    background: #FEF2F2;
    border-color: #FECACA;
}

.dcb-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.dcb-item.blue .dcb-label {
    color: #1D4ED8;
}

.dcb-item.orange .dcb-label {
    color: var(--orange);
}

.dcb-item.red .dcb-label {
    color: #991B1B;
}

.dcb-formula {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 8px;
}

.dcb-note {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.5;
}

/* ACE steps (compact) */
.ace-steps {
    display: flex;
    flex-direction: column;
}

.ace-step {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.ace-step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--grad-blue);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ace-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.ace-step-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

.ace-step-desc code {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 12px;
    color: var(--blue-dark);
    font-family: 'Courier New', monospace;
}

/* Route stats */
.route-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.route-stat-val {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.route-stat-label {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Process flow steps */
.process-steps {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
    margin: 16px 0;
}

.ps-item {
    flex: 1;
    min-width: 140px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.ps-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.ps-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
}

.ps-text strong {
    color: var(--text-dark);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.ps-arrow {
    font-size: 18px;
    color: var(--text-muted);
    padding-top: 28px;
    flex-shrink: 0;
}

/* Who cards (broker/attorney) */
.who-card {
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.who-header {
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.who-header.blue {
    background: #EFF6FF;
    color: #1D4ED8;
}

.who-header.orange {
    background: var(--bg-warm);
    color: var(--orange);
}

.who-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.who-when {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-mid);
    margin-bottom: 8px;
    line-height: 1.6;
}

.who-cost {
    font-size: 12px;
    font-weight: 600;
    color: var(--orange);
}

/* Q&A list */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.qa-item {
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.qa-item:last-child {
    border-bottom: none;
}

.qa-q {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.qa-a {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Provide items */
.provide-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* After filing timeline */
.after-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.at-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}

.at-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.at-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    z-index: 1;
}

.at-dot.blue {
    background: var(--grad-blue);
}

.at-dot.orange {
    background: var(--grad-orange);
}

.at-dot.green {
    background: #22C55E;
}

.at-when {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 3px;
}

.at-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.at-desc {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Denial list */
.deny-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deny-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.deny-tag {
    font-size: 11px;
    font-weight: 700;
    color: #991B1B;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    padding: 3px 9px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}

.deny-text {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* Glossary */
.glossary-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.gloss-item {
    display: flex;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
}

.gloss-item:last-child {
    border-bottom: none;
}

.gloss-term {
    font-size: 13px;
    font-weight: 800;
    color: var(--blue-dark);
    min-width: 72px;
    flex-shrink: 0;
}

.gloss-def {
    font-size: 13px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

/* Prereq cards */
.prereq-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px;
}

.prereq-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.prereq-desc {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA section */
.guide-cta {
    background: var(--grad-radial);
    border-radius: 20px;
    padding: 44px 48px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.guide-cta::before {
    content: '';
    position: absolute;
    right: -50px;
    top: -50px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.guide-cta::after {
    content: '';
    position: absolute;
    left: 60px;
    bottom: -60px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.guide-cta-inner {
    position: relative;
    z-index: 1;
}

.guide-cta h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.guide-cta p {
    font-size: 15px;
    font-weight: 300;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.guide-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--orange);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.cta-btn-primary:hover {
    transform: scale(1.04);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Deadline strip (reused from original) */
.deadline-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 20px 0;
}

.deadline-card {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid;
}

.deadline-card.psc {
    background: #EFF6FF;
    border-color: #BFDBFE;
}

.deadline-card.protest {
    background: var(--bg-warm);
    border-color: #EF6A2440;
}

.deadline-type {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.deadline-card.psc .deadline-type {
    color: var(--blue-dark);
}

.deadline-card.protest .deadline-type {
    color: var(--orange);
}

.deadline-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.deadline-desc {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.deadline-window {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
}

.deadline-card.psc .deadline-window {
    background: #DBEAFE;
    color: #1D4ED8;
}

.deadline-card.protest .deadline-window {
    background: #FFE4CC;
    color: #C2410C;
}

/* Tip boxes */
.tip-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.7;
    font-weight: 300;
}

.tip-box.tip-blue {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.tip-box.tip-orange {
    background: var(--bg-warm);
    border: 1px solid #EF6A2440;
    color: var(--text-light);
}

.tip-box.tip-green {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.tip-box.tip-red {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.tip-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tip-box strong {
    font-weight: 600;
}

/* Responsive */
@media(max-width: 768px) {
    .toc-item {
        padding: 10px 12px;
    }

    .deadline-strip,
    .dcb-grid {
        grid-template-columns: 1fr;
    }

    .who-card,
    .prereq-card {
        min-width: 0;
    }

    .process-steps {
        flex-direction: column;
    }

    .ps-arrow {
        display: none;
    }

    .guide-cta {
        padding: 32px 24px;
    }

    .guide-cta h2 {
        font-size: 22px;
    }
}

@media(max-width: 480px) {

    .refund-status-card,
    .who-card {
        min-width: 0;
    }

    div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        display: flex !important;
        flex-direction: column;
    }

    div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column;
    }

    .guide-cta-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        justify-content: center;
    }
}


/* ── Tab Layout ─────────────────────────────────────────── */
.guide-layout {
    display: flex;
    gap: 0;
    min-height: calc(100vh - 80px);
    align-items: flex-start;
}

/* Left sidebar tab list */
.guide-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 96px;
    padding: 24px 0 24px 0;
}

.sidebar-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0 20px 10px;
    display: block;
}

.sidebar-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-align: left;
    border-radius: 0;
    border-left: 3px solid transparent;
    transition: all 0.18s;
    position: relative;
}

.sidebar-tab:hover {
    color: var(--orange);
    background: var(--bg-warm);
}

.sidebar-tab.active {
    color: var(--orange);
    font-weight: 700;
    border-left-color: var(--orange);
    background: var(--bg-warm);
}

.sidebar-num {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    min-width: 20px;
}

.sidebar-tab.active .sidebar-num {
    color: var(--orange);
}

.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 20px 8px;
}

/* Right content pane */
.guide-content {
    flex: 1;
    min-width: 0;
    padding: 32px 0 80px 40px;
    border-left: 1px solid var(--border);
}

/* Each tab panel */
.tab-panel {
    display: none;
    animation: fadePanel 0.2s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadePanel {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Panel header */
.panel-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.panel-num {
    font-size: 11px;
    font-weight: 800;
    color: var(--white);
    background: var(--grad-orange);
    border-radius: 6px;
    padding: 3px 9px;
    letter-spacing: 0.05em;
}

.panel-eyebrow-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.panel-title span.go {
    background: var(--grad-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-title span.gb {
    background: var(--grad-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 640px;
}

/* Panel nav footer */
.panel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.panel-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.18s;
    text-decoration: none;
}

.panel-nav-btn:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.panel-nav-btn.primary {
    background: var(--orange);
    color: white;
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}

.panel-nav-btn.primary:hover {
    transform: scale(1.03);
    color: white;
}

.panel-nav-btn.ghost {
    opacity: 0;
    pointer-events: none;
}

/* Mobile: collapse sidebar to horizontal tabs */
@media(max-width: 768px) {
    .guide-layout {
        flex-direction: column;
    }

    .guide-sidebar {
        width: 100%;
        position: static;
        padding: 0;
        border-bottom: 1px solid var(--border);
        background: var(--white);
        overflow-x: auto;
        display: flex;
        flex-direction: row;
        gap: 0;
        scrollbar-width: none;
    }

    .guide-sidebar::-webkit-scrollbar {
        display: none;
    }

    .sidebar-label,
    .sidebar-divider {
        display: none;
    }

    .sidebar-tab {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 14px 16px;
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 12px;
    }

    .sidebar-tab.active {
        border-bottom-color: var(--orange);
        border-left: none;
    }

    .sidebar-num {
        display: none;
    }

    .guide-content {
        padding: 24px 0 60px;
        border-left: none;
        border-top: none;
    }

    .nav-inner {
        height: auto;
        max-width: 100%;
        flex-direction: column;
        padding: 10px 0px;
    }

    header {
        padding: 0 0px;
    }

    .nav-tabs {
        margin-top: 20px;
    }

    .nav-tab {
        font-size: 11px;
    }
}

@media screen and (max-width: 479px) {


    .btn-orange {
        padding: 15px !important;
        font-size: 12px !important;
    }

    .sample-strip {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sample-strip-btns {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 20px;
    }

    .hero-sub {
        font-size: 14px;
    }

    .hero {
        margin-bottom: 0px;
    }

    .alert-banner {
        padding: 16px 10px;
        font-size: 12px;
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .upload-card-header {
        padding: 18px 10px;
        gap: 10px;
    }

    .step-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        padding: 4px;
    }

    .upload-card-title {
        font-size: 13px;
    }

    .upload-card-sub {
        font-size: 10px;
    }

    .upload-card-body {
        padding: 10px;
    }

    .drop-zone {
        padding: 20px 10px;
    }

    .drop-zone h3 {
        font-size: 14px;
    }

    .drop-zone p {
        font-size: 12px;
    }

    .catalog-intro h1 {
        font-size: 25px;
    }

    .catalog-intro p {
        font-size: 13px;
    }

    .section-card {
        padding: 10px;
    }

    .eyebrow-text {
        font-size: 12px;
    }

    .section-heading {
        font-size: 15px;
    }

    .table-wrap {
        white-space: nowrap;
    }

    .modal-header {
        padding: 28px 15px 24px;
    }

    .modal-body {
        padding: 28px 15px 32px;
    }

    .panel-title {
        font-size: 20px;
    }

    .panel-nav-btn {
        font-size: 11px;
        padding: 10px 10px;
    }

    .section-auto {
        grid-template-columns: auto !important;
    }

    .ps-item {
        min-width: 100%;
    }

    .deny-item {
        flex-wrap: wrap;
    }

    .modal-close {
        top: 0px;
        right: 0px;
    }
}