:root {
    --ink: #0b1712;
    --muted: #526159;
    --line: #d7ded7;
    --paper: #edf2ed;
    --card: #ffffff;
    --brand: #f6dd1a;
    --brand-ink: #141414;
    --green: #08775a;
    --green-deep: #123d2f;
    --green-bright: #9fe870;
    --green-pale: #e1f4d7;
    --sage: #dfe9df;
    --blue: #3267c8;
    --warn: #a66400;
    --danger: #b42318;
    --shadow: 0 12px 30px rgba(11, 23, 18, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: "Noto Sans HK", "PingFang HK", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 72px;
    padding: 10px max(20px, calc((100vw - 1200px) / 2));
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 4px solid #111;
    border-radius: 50%;
    background: var(--brand);
    font-weight: 950;
    font-size: 26px;
    letter-spacing: 0;
}
.brand strong { display: block; font-size: 18px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.top-nav { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 750; }
.top-nav a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    padding: 0 10px;
}
.top-nav a:hover, .top-nav a[aria-current="page"] {
    border-bottom-color: var(--green);
    color: var(--ink);
}
.header-cta, .button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--green-deep);
    color: white;
    font-weight: 800;
    cursor: pointer;
}
button:disabled { cursor: not-allowed; opacity: .55; }

main { min-height: 68vh; }
.hero, .section, .split-section, .page-hero, .filter-bar, .tool-layout, .detail-layout, .disclaimer, .site-footer {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}
.home-hero-band {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.hero {
    display: grid;
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    gap: clamp(36px, 6vw, 88px);
    align-items: center;
    padding: clamp(54px, 8vw, 104px) 0 clamp(48px, 7vw, 88px);
}
.hero h1, .page-hero h1 {
    margin: 12px 0 14px;
    max-width: 720px;
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}
.hero p, .page-hero p, .split-section p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--green-pale);
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 900;
}
.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    max-width: 680px;
    margin-top: 30px;
    padding: 6px;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: white;
}
input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
}
textarea { padding: 12px 13px; resize: vertical; }
input:focus, select:focus {
    outline: 3px solid rgba(8, 119, 90, .17);
    border-color: var(--green);
}
.hero-search input {
    border: 0;
    background: transparent;
}
.hero-search input:focus { outline: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.chips a {
    border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    border-radius: 999px;
    background: white;
    color: var(--ink);
    padding: 7px 12px;
    font-size: 14px;
    font-weight: 700;
}
.chips a:hover { border-color: var(--green); color: var(--green); }

.hero-panel {
    min-width: 0;
    min-height: 430px;
}
.hero-deal {
    min-height: 430px;
    display: grid;
    grid-template-rows: minmax(230px, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: 8px;
    background: white;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-deal:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.hero-deal > img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}
.hero-deal-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 18px;
    align-items: end;
    padding: 20px;
}
.hero-deal-kicker {
    grid-column: 1 / -1;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.hero-deal-copy strong { font-size: 22px; line-height: 1.28; }
.hero-deal-copy b { grid-column: 1; color: var(--green-deep); font-size: 18px; }
.hero-deal-copy > span:last-child { grid-column: 2; grid-row: 2 / 4; color: var(--green); font-weight: 850; }
.phone-card {
    width: min(330px, 88%);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    background: rgba(255,255,255,.96);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}
.status-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: var(--green);
}
.mini-label { margin: 16px 0 0; color: var(--green); font-size: 13px; font-weight: 900; }
.phone-card h2 { margin: 6px 0 18px; font-size: 24px; }
.phone-card dl, .breakdown, .detail-list { margin: 0; display: grid; gap: 9px; }
.phone-card dl div, .breakdown div, .detail-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    border-bottom: 1px solid var(--line);
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 850; text-align: right; }
.fineprint { margin: 16px 0 0; color: var(--muted); font-size: 12px; }

.section { padding: 52px 0; }
.section-head { margin-bottom: 18px; }
.section h2, .split-section h2, .page-hero h1 { margin-top: 10px; }
.section-head h2, .split-section h2 { margin-bottom: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; }
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 18px;
}
.deal-card, .panel, .recommendation, .tool-form, .empty-state, .directory-card, .disclaimer {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    box-shadow: none;
}
.deal-card {
    padding: 0 18px 18px;
    display: flex;
    flex-direction: column;
    min-height: 480px;
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease;
}
.deal-card:hover { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); transform: translateY(-2px); }
.deal-card-thumb {
    display: block;
    margin: 0 -18px 16px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
}
.deal-card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.deal-card h3 a:hover,
.deal-card p a:hover,
.deal-value:hover,
.text-link:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.deal-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.deal-card h3 { margin: 14px 0 8px; font-size: 22px; line-height: 1.28; }
.deal-card p { color: var(--muted); margin: 0 0 16px; line-height: 1.65; }
.deal-value {
    display: block;
    margin: 0 0 16px;
    color: var(--green-deep);
    font-size: 19px;
    font-weight: 900;
    line-height: 1.25;
}
.deal-card dl { margin: auto 0 18px; display: grid; gap: 7px; border-top: 1px solid var(--line); padding-top: 14px; }
.deal-card dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.deal-card dl a,
.deal-facts a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(9, 130, 97, .35);
    text-underline-offset: 3px;
}
.deal-card dl a:hover,
.deal-facts a:hover { color: var(--green); }
.badge {
    display: inline-flex;
    width: max-content;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 5px;
    background: rgba(47, 111, 189, .1);
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}
.badge.success { background: var(--green-pale); color: var(--green-deep); }
.badge.status-active { background: var(--green-pale); color: var(--green-deep); }
.badge.status-upcoming { background: rgba(246,221,26,.32); color: #715b00; }
.badge.status-expired { background: #f1f5f2; color: var(--muted); }
.text-link { margin-top: auto; color: var(--green); font-weight: 900; }
.deal-empty { grid-column: 1 / -1; }
.deal-status-summary,
.deal-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}
.deal-status-summary span,
.deal-hero-meta span:not(.badge) {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--muted);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 850;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1fr);
    gap: 24px;
    margin-top: 24px;
    margin-bottom: 60px;
    border-radius: 8px;
    background: var(--green-deep);
    color: white;
    padding: clamp(28px, 5vw, 52px);
}
.split-section p { color: #d9e7df; }
.split-section .eyebrow { background: var(--green-bright); color: var(--ink); }
.split-section .button { background: var(--green-bright); color: var(--ink); }
.steps { display: grid; gap: 12px; }
.steps div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    padding: 18px;
}
.steps span { color: #d9e7df; }
.muted { color: var(--muted); }

.page-hero.compact { padding: 56px 0 28px; }
.page-hero.compact h1 { font-size: clamp(34px, 5vw, 54px); }
.filter-bar { margin-top: 10px; }
.filter-bar form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: none;
}
.filter-bar input[name="q"] {
    grid-column: span 2;
    min-width: 220px;
}
.filter-bar button {
    min-width: 96px;
}
.credit-card-filter form {
    grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(140px, 1fr)) auto;
}
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.catalog-toolbar p { margin: 0; }
.reward-calculator-panel {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: clamp(18px, 3vw, 30px);
    box-shadow: none;
}
.reward-calculator-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.reward-calculator-head h2 {
    margin: 8px 0 6px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}
.reward-calculator-head p {
    margin: 0;
    color: var(--muted);
    max-width: 760px;
}
.reward-data-note {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.reward-calc-form {
    display: grid;
    gap: 14px;
    margin-bottom: 22px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.reward-choice-block {
    display: grid;
    gap: 10px;
}
.reward-choice-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.reward-choice-head strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 950;
}
.reward-choice-head span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}
.reward-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.reward-chip {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 0 16px;
    font-weight: 900;
}
.reward-chip.active {
    border-color: var(--green-deep);
    background: var(--green-deep);
    color: white;
}
.reward-manual-amount {
    min-width: 180px;
    display: grid;
    grid-template-columns: auto minmax(110px, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 0 10px;
    min-height: 42px;
}
.reward-manual-amount span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}
.reward-manual-amount input {
    border: 0;
    min-height: 38px;
    padding: 0;
    background: transparent;
}
.reward-manual-amount input:focus {
    outline: none;
    box-shadow: none;
}
.reward-more-categories {
    display: grid;
    gap: 10px;
}
.reward-more-categories summary {
    width: fit-content;
    cursor: pointer;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.reward-more-categories[open] summary {
    margin-bottom: 8px;
}
.reward-advanced-grid {
    display: grid;
    grid-template-columns: minmax(160px, 220px) auto;
    gap: 10px;
    align-items: end;
    justify-content: start;
}
.reward-advanced-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.reward-submit {
    min-height: 44px;
    white-space: nowrap;
}
.reward-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.reward-result-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 18px;
}
.reward-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.reward-rank {
    width: fit-content;
    border-radius: 999px;
    background: color-mix(in srgb, var(--green) 12%, white);
    color: var(--green);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 900;
}
.reward-issuer {
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
}
.reward-result-card h3 {
    margin: 4px 0 0;
    font-size: 19px;
    line-height: 1.25;
}
.reward-best {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}
.reward-best span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.reward-best strong {
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
    font-weight: 950;
}
.reward-sides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}
.reward-side {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding-right: 12px;
}
.reward-side + .reward-side {
    border-left: 1px solid var(--line);
    padding-left: 12px;
    padding-right: 0;
}
.reward-side-label {
    color: var(--green);
    font-size: 12px;
    font-weight: 950;
}
.reward-side-amount {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.05;
    font-weight: 950;
}
.reward-condition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.reward-condition-tags span {
    border-radius: 999px;
    background: color-mix(in srgb, var(--green) 10%, white);
    color: var(--green);
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
}
.reward-side-meta {
    display: grid;
    gap: 6px;
    margin: 0;
}
.reward-side-meta div {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
}
.reward-side-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.reward-side-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}
.reward-side-empty {
    color: var(--muted);
}
.reward-side-empty-text {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}
.reward-source, .reward-check, .reward-method-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.reward-check {
    font-weight: 800;
}
.card-finder {
    width: min(1120px, calc(100% - 32px));
    margin: 12px auto 0;
}
.quick-filter-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 20px;
    box-shadow: none;
}
.quick-filter-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}
.quick-filter-head h2 {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.2;
}
.ghost-button {
    min-height: 38px;
    border: 1px solid var(--line);
    background: white;
    color: var(--green);
}
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.quick-filters button {
    min-height: 38px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
}
.quick-filters button.active {
    border-color: var(--green-deep);
    background: var(--green-deep);
    color: white;
}
.smart-filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr));
    gap: 10px;
}
.smart-filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.customer-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 18px;
}
.customer-card {
    display: grid;
    gap: 14px;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    padding: 16px;
    box-shadow: none;
    transition: border-color .18s ease, transform .18s ease;
}
.customer-card:hover { border-color: color-mix(in srgb, var(--green) 55%, var(--line)); transform: translateY(-2px); }
.customer-card[hidden] { display: none; }
.card-art {
    position: relative;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: space-between;
    gap: 12px;
    min-height: 188px;
    aspect-ratio: 1.586 / 1;
    overflow: hidden;
    border-radius: 8px;
    padding: 18px;
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 12px 28px rgba(0,0,0,.18);
}
.card-art::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
}
.card-art::after {
    content: "";
    position: absolute;
    inset: auto auto -34% -16%;
    width: 64%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(0,0,0,.12);
}
.theme-green { background: #08775a; }
.theme-yellow { background: #272412; color: #fff; }
.theme-blue { background: #24518d; }
.theme-ink { background: #191c1a; }
.theme-silver { background: #dfe5e1; color: #111; }
.theme-red { background: #a93232; }
.card-art-top,
.card-art-name,
.card-art-number,
.card-chip {
    position: relative;
    z-index: 1;
}
.card-art-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    font-weight: 850;
}
.card-art-top span {
    min-width: 0;
    max-width: 68%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-art-top strong {
    min-width: 0;
    max-width: 38%;
    font-size: 12px;
    text-align: right;
    overflow-wrap: anywhere;
}
.card-chip {
    width: 42px;
    height: 30px;
    border-radius: 6px;
    background: #d9bd61;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.14);
}
.card-art-name {
    max-width: 88%;
    max-height: 62px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.card-art-number {
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0;
    opacity: .82;
}
.card-art-real {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px;
    background: var(--paper);
    color: inherit;
    box-shadow: inset 0 0 0 1px rgba(19, 80, 54, .08);
}
.card-art-real::before,
.card-art-real::after {
    display: none;
}
.card-art-real img {
    display: block;
    width: 92%;
    height: 88%;
    max-width: 520px;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}
.customer-card-body {
    display: grid;
    gap: 12px;
}
.customer-card-title span {
    display: block;
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}
.customer-card-title h2 {
    margin: 4px 0 0;
    font-size: 20px;
    line-height: 1.25;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.card-tags span {
    min-height: 24px;
    border-radius: 5px;
    background: #f1f5f2;
    padding: 4px 8px;
    color: #526057;
    font-size: 12px;
    font-weight: 850;
}
.customer-card-points {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    font-size: 13px;
}
.customer-card-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.customer-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.customer-card-actions span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}
.small-button {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 13px;
}
.card-empty {
    grid-column: 1 / -1;
}
.catalog-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: none;
}
.catalog-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
}
.catalog-table th,
.catalog-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.catalog-table th {
    position: sticky;
    top: 66px;
    z-index: 5;
    background: #f7faf7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
}
.catalog-table tbody tr:hover { background: #fbfdf9; }
.catalog-table td strong {
    display: block;
    line-height: 1.3;
}
.catalog-table td span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}
.catalog-table .badge {
    display: inline-flex;
    margin: 0 5px 5px 0;
    color: var(--blue);
}
.catalog-table .badge.subtle {
    background: #f1f5f2;
    color: #526057;
}
.catalog-table .badge.network {
    background: rgba(246, 221, 26, .28);
    color: var(--brand-ink);
}
.profile-summary {
    display: grid;
    gap: 4px;
    min-width: 220px;
}
.profile-summary strong {
    margin-top: 2px;
    font-size: 13px;
}
.profile-summary span:not(.badge) {
    color: var(--muted);
    font-size: 12px;
}

.tool-layout, .detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 400px) minmax(0, 1fr);
    gap: 22px;
    padding: 24px 0 64px;
    align-items: start;
}
.detail-layout { grid-template-columns: minmax(0, 1fr) 340px; }
.tool-form, .panel, .empty-state { padding: 20px; }
.deal-article {
    display: grid;
    gap: 18px;
}
.deal-value-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.deal-value-strip div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 14px;
}
.deal-value-strip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.deal-value-strip strong {
    display: block;
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.25;
}
.deal-article h2,
.related-panel h2 {
    margin: 0;
    font-size: 23px;
    line-height: 1.2;
}
.source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.source-actions .ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
}
.deal-content-section {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.deal-content-section p,
.deal-content-section ul {
    margin: 0;
    color: var(--muted);
}
.deal-content-section ul {
    display: grid;
    gap: 8px;
    padding-left: 20px;
}
.deal-tags-block {
    display: grid;
    gap: 14px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}
.deal-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}
.deal-tag-list a {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f7faf7;
    color: var(--muted);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
}
.deal-tag-list a:hover {
    border-color: var(--green);
    color: var(--green);
}
.expired-notice {
    border: 1px solid #f3d39a;
    border-radius: 8px;
    background: #fff7e6;
    color: #5f3900;
    padding: 14px;
}
.expired-notice p {
    margin: 6px 0 0;
}
.deal-aside {
    display: grid;
    gap: 16px;
}
.deal-aside .disclaimer {
    width: auto;
    margin: 0;
}
.related-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.related-list a {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 12px;
}
.related-list span {
    color: var(--green);
    font-size: 12px;
    font-weight: 900;
}
.related-list strong {
    line-height: 1.3;
}
.tool-form label, .tool-form fieldset { display: grid; gap: 7px; margin: 0 0 14px; }
.tool-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.check-row { display: flex !important; grid-template-columns: none; align-items: center; gap: 9px !important; }
.check-row input { width: auto; min-height: auto; }
.session-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}
.session-note a { color: var(--green); font-weight: 900; }
.upload-zone {
    min-height: 220px;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 24px;
}
.recommendation { padding: 22px; }
.recommendation h2 { margin: 10px 0 16px; font-size: 30px; }
.metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.metrics div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbf9;
    padding: 14px;
}
.metrics span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.metrics strong { display: block; margin-top: 5px; font-size: 22px; }
.warning {
    margin-top: 16px;
    border-radius: 8px;
    background: #fff7e6;
    border: 1px solid #f3d39a;
    padding: 14px;
    color: #5f3900;
}
.warning p { margin: 6px 0 0; }
.ai-result h2 { margin-top: 0; }
.ai-best {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 14px;
}
.ai-best h3 { margin: 0 0 6px; font-size: 20px; }
.ai-best p { margin: 0; color: var(--muted); }
.directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.directory-card { padding: 18px; }
.directory-card h2 { margin: 0 0 6px; font-size: 20px; }
.directory-card p { margin: 0; color: var(--muted); }
.empty-state { display: grid; min-height: 320px; place-items: center; text-align: center; color: var(--muted); }
.empty-state h2 { color: var(--ink); }
.disclaimer { margin-top: 26px; margin-bottom: 26px; padding: 18px; }
.disclaimer strong { color: var(--warn); }
.disclaimer p { margin: 8px 0 0; color: var(--muted); }

.admin-section { padding-top: 18px; }
.admin-flash {
    width: min(820px, 100%);
    margin-top: 18px;
    border: 1px solid rgba(9,130,97,.25);
    border-radius: 8px;
    background: rgba(9,130,97,.08);
    color: var(--green);
    padding: 12px 14px;
    font-weight: 850;
}
.admin-flash.error {
    border-color: rgba(180,35,24,.26);
    background: rgba(180,35,24,.08);
    color: var(--danger);
}
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.admin-metrics-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pipeline-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}
.pipeline-title-row .section-head { margin-bottom: 14px; }
.pipeline-health-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.pipeline-health {
    display: grid;
    gap: 7px;
    min-height: 116px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--muted);
    border-radius: 8px;
    background: var(--card);
}
.pipeline-health > div {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pipeline-health b { font-size: 1.15rem; }
.pipeline-health small { color: var(--muted); }
.pipeline-health.healthy { border-left-color: var(--green); }
.pipeline-health.failed { border-left-color: var(--danger); }
.pipeline-health.stale { border-left-color: var(--warn); }
.status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: var(--muted);
}
.pipeline-health.healthy .status-dot { background: var(--green); }
.pipeline-health.failed .status-dot { background: var(--danger); }
.pipeline-health.stale .status-dot { background: var(--warn); }
.pipeline-kpis {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}
.pipeline-kpis > div {
    min-width: 0;
    padding: 14px;
    background: var(--card);
}
.pipeline-kpis span,
.pipeline-kpis small {
    display: block;
    color: var(--muted);
    line-height: 1.35;
}
.pipeline-kpis span { font-size: .78rem; font-weight: 850; }
.pipeline-kpis strong {
    display: block;
    margin: 7px 0 4px;
    font-size: 1.55rem;
    line-height: 1;
}
.pipeline-activity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 14px;
    align-items: start;
}
.pipeline-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.pipeline-chart {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
}
.pipeline-chart > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.pipeline-chart > header strong,
.pipeline-chart > header small { display: block; }
.pipeline-chart > header small {
    margin-top: 3px;
    color: var(--muted);
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--muted);
    font-size: .72rem;
}
.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.chart-legend span::before {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--green);
    content: "";
}
.chart-legend .teal::before { background: #008a73; }
.chart-legend .blue::before { background: #3975c6; }
.hourly-chart {
    display: grid;
    grid-template-columns: repeat(24, minmax(8px, 1fr));
    gap: 3px;
    height: 190px;
    margin-top: 14px;
    padding-top: 8px;
    border-bottom: 1px solid var(--line);
    background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 44px, rgba(28, 61, 49, .08) 45px);
}
.hourly-slot {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 20px;
    min-width: 0;
}
.hourly-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    min-height: 0;
}
.hourly-bars i {
    display: block;
    width: min(9px, 42%);
    min-height: 2px;
    border-radius: 2px 2px 0 0;
    background: var(--green);
    transition: opacity .15s ease;
}
.hourly-bars i.teal { background: #008a73; }
.hourly-bars i.blue { background: #3975c6; }
.hourly-slot:hover .hourly-bars i { opacity: .72; }
.hourly-slot > span {
    overflow: visible;
    color: var(--muted);
    font-size: .63rem;
    line-height: 20px;
    white-space: nowrap;
}
.queue-chart { grid-column: 1 / -1; }
.queue-bars {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}
.queue-bars > div {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
}
.queue-bars span {
    overflow: hidden;
    color: var(--muted);
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.queue-bars i {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 2px;
    background: #edf1ee;
}
.queue-bars b {
    display: block;
    height: 100%;
    min-width: 0;
    background: #008a73;
}
.queue-bars b.amber { background: #c38700; }
.queue-bars b.blue { background: #3975c6; }
.queue-bars b.red { background: #b42318; }
.queue-bars b.violet { background: #7a5ea7; }
.queue-bars b.green { background: var(--green); }
.queue-bars strong { text-align: right; }
.pipeline-issue-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}
.pipeline-issue-summary > div {
    min-width: 0;
    padding: 12px 13px;
    background: var(--card);
}
.pipeline-issue-summary strong,
.pipeline-issue-summary span { display: block; }
.pipeline-issue-summary strong {
    margin-bottom: 4px;
    font-size: 1.35rem;
}
.pipeline-issue-summary span {
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.35;
}
.pipeline-issue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 190px;
}
.pipeline-issue-list span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border: 1px solid #efd2a3;
    border-radius: 6px;
    background: #fff8ea;
    color: #714400;
    padding: 3px 7px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.25;
}
.hold-table td:first-child { min-width: 260px; }
.hold-table td:nth-child(2) { min-width: 150px; }
.pipeline-flow {
    display: grid;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 12px;
}
.pipeline-stage {
    position: relative;
    display: grid;
    min-height: 150px;
    align-content: start;
    gap: 5px;
    padding: 14px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    text-decoration: none;
}
.pipeline-stage:hover { border-color: var(--green); }
.pipeline-stage > span { color: var(--muted); font-size: .78rem; }
.pipeline-stage > strong { font-size: .9rem; }
.pipeline-stage > b { font-size: 2rem; line-height: 1.1; }
.pipeline-stage > small { color: var(--muted); line-height: 1.35; }
.pipeline-outcomes {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.pipeline-outcomes > div { padding: 13px 14px; border-left: 3px solid var(--line); background: var(--card); }
.pipeline-outcomes span, .pipeline-outcomes small { display: block; color: var(--muted); }
.pipeline-outcomes strong { display: block; margin: 4px 0; font-size: 1.35rem; }
.deal-official-image { margin: 0 0 22px; }
.deal-official-image img { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.deal-official-image figcaption { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.admin-metrics div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    padding: 16px;
    box-shadow: var(--shadow);
}
.admin-metrics span,
.admin-metrics small {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}
.admin-metrics strong {
    display: block;
    margin: 8px 0 2px;
    font-size: 32px;
    line-height: 1;
}
.admin-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}
.admin-action-row form { margin: 0; }
.admin-filter-bar { margin: 14px 0; }
.admin-filter-bar small { display: block; margin-top: 8px; color: var(--muted); }
.admin-discovery { display: grid; gap: 6px; border-left: 3px solid var(--amber); padding: 10px 12px; background: #fff8e7; overflow-wrap: anywhere; }
.admin-discovery small { color: var(--muted); }
.validation-list { display: grid; gap: 12px; }
.validation-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); gap: 16px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 16px; box-shadow: var(--shadow); }
.validation-summary { min-width: 0; }
.validation-summary h3 { margin: 10px 0 6px; font-size: 18px; }
.validation-summary p { margin: 0 0 8px; color: var(--muted); }
.validation-summary small { display: block; margin-top: 8px; color: var(--muted); overflow-wrap: anywhere; }
.validation-form { display: grid; gap: 10px; }
.validation-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 800; }
.validation-state { display: flex; gap: 10px; align-items: flex-start; }
.subtle-badge { background: #eef1ef; color: var(--muted); }
.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.admin-inline-actions form {
    margin: 0;
}
.admin-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
}
.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}
.admin-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}
.admin-table td small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.admin-table pre {
    margin: 0;
    white-space: pre-wrap;
    font-size: 12px;
}
.admin-form {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}
.admin-form h2 {
    margin: 0;
    font-size: 24px;
}
.admin-readiness {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7faf7;
    padding: 12px 14px;
}
.admin-readiness.ready {
    border-color: rgba(9,130,97,.25);
    background: rgba(9,130,97,.08);
}
.admin-readiness.blocked {
    border-color: #f3d39a;
    background: #fff7e6;
}
.admin-readiness strong {
    display: block;
    margin-bottom: 6px;
}
.admin-readiness p,
.admin-readiness ul {
    margin: 6px 0 0;
    color: var(--muted);
}
.admin-readiness ul {
    display: grid;
    gap: 4px;
    padding-left: 20px;
}
.admin-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.admin-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.admin-checks label {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 14px;
}
.admin-checks input {
    width: auto;
    min-height: 0;
}
.admin-split {
    display: grid;
    grid-template-columns: minmax(320px, .78fr) minmax(420px, 1.22fr);
    gap: 18px;
    align-items: start;
}
.small-button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.site-footer {
    width: 100%;
    max-width: none;
    margin: 30px 0 0;
    border-top: 0;
    background: var(--green-deep);
    color: #d9e7df;
}
.site-footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    padding: 42px 0 48px;
}
.site-footer strong { color: white; font-size: 20px; }
.site-footer p { margin: 8px 0 0; max-width: 560px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 20px; color: var(--green-bright); font-weight: 800; }

@media (max-width: 1080px) and (min-width: 861px) {
    .card-grid,
    .customer-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-header { padding-inline: 20px; }
    .top-nav { gap: 2px; }
    .top-nav a { padding-inline: 7px; }
}

@media (max-width: 860px) {
    .site-header {
        flex-wrap: wrap;
        gap: 10px 12px;
        padding: 10px 16px 8px;
    }
    .top-nav {
        order: 3;
        width: 100%;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-nav a {
        flex: 0 0 auto;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper);
        color: var(--ink);
        padding: 0 12px;
    }
    .top-nav a[aria-current="page"] {
        border-color: var(--green-deep);
        background: var(--green-deep);
        color: white;
    }
    .hero, .split-section, .tool-layout, .detail-layout, .admin-metrics, .admin-form-grid, .admin-split, .validation-item, .pipeline-outcomes, .pipeline-health-grid, .pipeline-activity-grid, .pipeline-chart-grid { grid-template-columns: 1fr; }
    .pipeline-title-row { align-items: stretch; flex-direction: column; }
    .pipeline-title-row .ghost-button { align-self: flex-start; }
    .pipeline-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .queue-chart { grid-column: auto; }
    .pipeline-chart { padding: 13px 12px; }
    .pipeline-chart > header { align-items: stretch; flex-direction: column; }
    .chart-legend { justify-content: flex-start; }
    .hourly-chart { gap: 2px; height: 170px; }
    .hourly-slot > span { font-size: .58rem; }
    .queue-bars > div { grid-template-columns: 82px minmax(0, 1fr) 34px; gap: 7px; }
    .pipeline-issue-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { width: min(100% - 32px, 640px); padding: 42px 0 50px; }
    .hero-panel { min-height: 0; }
    .hero-deal { min-height: 0; }
    .hero h1 { font-size: clamp(44px, 12vw, 64px); }
    .hero-search, .filter-bar form, .credit-card-filter form, .smart-filter-grid, .customer-card-grid, .reward-calc-form, .reward-result-grid, .reward-advanced-grid, .reward-sides, .deal-value-strip { grid-template-columns: 1fr; }
    .filter-bar input[name="q"] { grid-column: auto; min-width: 0; }
    .card-grid, .directory-grid { grid-template-columns: 1fr; }
    .metrics { grid-template-columns: 1fr; }
    .catalog-toolbar { align-items: flex-start; flex-direction: column; }
    .catalog-table th { top: 0; }
    .quick-filter-head, .customer-card-actions, .reward-calculator-head, .reward-card-top { flex-direction: column; align-items: stretch; }
    .reward-calculator-panel { width: min(100% - 24px, 1280px); padding: 14px; }
    .reward-data-note { flex: initial; }
    .reward-best { justify-items: start; text-align: left; }
    .reward-side { padding-right: 0; }
    .reward-side + .reward-side { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
    .reward-side-meta div { grid-template-columns: 56px minmax(0, 1fr); }
    .reward-manual-amount { width: 100%; }
    .customer-card-actions span { text-align: left; }
    .site-footer-inner { width: min(100% - 32px, 640px); flex-direction: column; }
    .header-cta { min-width: 82px; }
}

@media (max-width: 620px) {
    .hero, .section, .split-section, .page-hero, .filter-bar, .tool-layout, .detail-layout, .disclaimer {
        width: calc(100% - 28px);
    }
    .brand-mark { width: 40px; height: 40px; font-size: 23px; }
    .brand strong { font-size: 17px; }
    .header-cta { min-height: 40px; padding-inline: 13px; }
    .hero-search { grid-template-columns: 1fr; padding: 6px; }
    .hero-search button { width: 100%; }
    .hero-deal-copy { grid-template-columns: 1fr; }
    .hero-deal-copy > span:last-child { grid-column: 1; grid-row: auto; }
    .section { padding: 40px 0; }
    .deal-card { min-height: 0; }
    .split-section { margin-bottom: 42px; }
    .page-hero.compact { padding-top: 42px; }
    .page-hero.compact h1 { font-size: 36px; line-height: 1.1; }
    .reward-calculator-panel { width: calc(100% - 20px); }
    .reward-chip { flex: 1 1 auto; padding-inline: 12px; }
    .site-footer-inner { width: calc(100% - 28px); }
}