/* ============================================================
   A M · AI 订阅商店 — home.css
   浅灰白 + 黑主色 · 圆角卡片 · 大留白
   仅用于 index.html；style.css 保留给 subscription.html
   ============================================================ */

:root {
    --bg: #f5f5f3;
    --card: #ffffff;
    --ink: #171717;
    --muted: #8b8b87;
    --line: #ececea;
    --black: #161616;
    --black-hover: #2c2c2c;
    --green: #16a34a;
    --green-bg: #e8f7ee;
    --blue: #2563eb;
    --blue-bg: #eaf1fe;
    --amber: #b45309;
    --amber-bg: #fdf3e0;
    --red: #dc2626;
    --red-bg: #fdecec;
    --purple: #7c3aed;
    --purple-bg: #f1eafd;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

.shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px 40px;
}

#products, #redeem, #help { scroll-margin-top: 96px; }

/* ---------------- 顶部导航 ---------------- */

.topbar-wrap {
    position: sticky;
    top: 14px;
    z-index: 100;
    margin-bottom: 34px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px 10px 12px;
    box-shadow: var(--shadow);
}

.brand { display: flex; align-items: center; gap: 10px; padding-left: 4px; }

.brand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .5px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.1;
}

.brand-name small {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--muted);
}

.top-actions { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: background .15s, color .15s;
    white-space: nowrap;
}

.nav-pill i { width: 15px; height: 15px; }

.nav-pill:hover { background: #f2f2ef; color: var(--ink); }

.nav-pill.active, .nav-pill.cta {
    background: var(--black);
    color: #fff;
}

.nav-pill.active:hover, .nav-pill.cta:hover { background: var(--black-hover); }

/* ---------------- Hero ---------------- */

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 6px 26px;
}

.hero-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--muted);
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -.5px;
    line-height: 1.15;
}

.hero-sub {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    max-width: 560px;
}

.hero-side {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    text-align: left;
    padding-bottom: 6px;
    flex-shrink: 0;
}

.hero-side i { width: 34px; height: 34px; color: var(--ink); opacity: .85; }
.hero-side p { line-height: 1.5; }

/* ---------------- 公告条 ---------------- */

.announce {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    margin-bottom: 22px;
    box-shadow: var(--shadow);
}

.announce-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.announce-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: var(--amber-bg);
    color: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.announce-icon i { width: 16px; height: 16px; }

.announce-left p {
    font-size: 13px;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.announce-left b { color: var(--ink); font-weight: 600; }

.announce-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
}

.announce-link:hover { opacity: .7; }

/* ---------------- 主布局 ---------------- */

.layout {
    display: grid;
    grid-template-columns: 262px 1fr;
    gap: 20px;
    align-items: start;
}

/* ---------------- 侧栏 ---------------- */

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }

.side-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}

.side-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
}

.side-title i { width: 16px; height: 16px; }

.cat-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: background .15s;
}

.cat-link:hover { background: #f4f4f1; }
.cat-link.active { background: #f0f0ec; color: var(--ink); font-weight: 600; }
.cat-ico { width: 15px; height: 15px; color: var(--muted); }

.cat-count {
    margin-left: auto;
    font-style: normal;
    font-size: 11px;
    color: var(--muted);
    background: #f2f2ef;
    border-radius: 999px;
    padding: 1px 8px;
}

.cat-sub { list-style: none; margin: 2px 0 4px; padding-left: 14px; display: flex; flex-direction: column; gap: 1px; }

.cat-sub-link {
    display: block;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
}

.cat-sub-link:hover { color: var(--ink); background: #f4f4f1; }

.side-help { text-align: left; }

.side-help-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.side-help-icon i { width: 19px; height: 19px; }

.side-help h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }

.side-help p { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

.ghost-btn {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: all .15s;
}

.ghost-btn:hover { border-color: var(--ink); background: var(--black); color: #fff; }

/* ---------------- 商品面板 ---------------- */

.main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.product-panel, .redeem-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.product-panel { padding: 20px 22px 14px; }

.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.product-tabs { display: flex; gap: 6px; }

.ptab {
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: all .15s;
}

.ptab:hover { color: var(--ink); }
.ptab.active { background: var(--black); color: #fff; font-weight: 600; }

.product-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f4f4f1;
    border-radius: 999px;
    padding: 4px 4px 4px 14px;
    min-width: 280px;
}

.product-search i { width: 15px; height: 15px; color: var(--muted); flex-shrink: 0; }

.product-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    color: var(--ink);
}

.product-search input::placeholder { color: #b3b3af; }

.search-btn {
    border: none;
    background: var(--black);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    transition: background .15s;
}

.search-btn:hover { background: var(--black-hover); }

.product-meta-row {
    display: grid;
    grid-template-columns: 1fr 150px 120px;
    gap: 16px;
    font-size: 11.5px;
    color: var(--muted);
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
}

.product-row {
    display: grid;
    grid-template-columns: 1fr 150px 120px;
    gap: 16px;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: background .15s;
}

.product-row:last-child { border-bottom: none; }
.product-row:hover { background: #fafaf7; }

.product-row.flash { animation: rowFlash 1.2s ease; }

@keyframes rowFlash {
    0% { background: #fdf3e0; }
    100% { background: transparent; }
}

.p-main { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }

.p-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f0f0ec;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.p-icon i { width: 20px; height: 20px; }

.p-info h4 { font-size: 14px; font-weight: 700; }

.p-info p {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

.tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
}

.tag.green { background: var(--green-bg); color: var(--green); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.tag.gray { background: #f0f0ec; color: #666; }

.p-meta { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.p-meta b { font-size: 13px; color: var(--ink); font-weight: 700; }

.buy-btn {
    border: none;
    background: var(--black);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 999px;
    transition: background .15s, transform .1s;
    justify-self: end;
}

.buy-btn:hover { background: var(--black-hover); }
.buy-btn:active { transform: scale(.97); }

.product-foot {
    font-size: 12px;
    color: var(--muted);
    padding: 12px 12px 6px;
}

/* ---------------- 兑换面板 ---------------- */

.redeem-panel { padding: 26px 28px; }

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.card-head h2 { font-size: 20px; font-weight: 800; }

.card-head p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* 状态徽章 */

.flow-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    white-space: nowrap;
}

.flow-badge.pending { background: #f0f0ec; color: #666; }
.flow-badge.cdk_ok { background: var(--amber-bg); color: var(--amber); }
.flow-badge.running { background: var(--blue-bg); color: var(--blue); }
.flow-badge.success { background: var(--green-bg); color: var(--green); }
.flow-badge.failed { background: var(--red-bg); color: var(--red); }
.flow-badge.manual { background: var(--purple-bg); color: var(--purple); }

/* 步骤条 */

.stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f0f0ec;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all .2s;
}

.step-item.active { color: var(--ink); font-weight: 600; }
.step-item.active .step-num { background: var(--black); color: #fff; }

.step-item.done { color: var(--green); }
.step-item.done .step-num { background: var(--green-bg); color: var(--green); }

.step-line { flex: 1; height: 1px; background: var(--line); }

.region-hint {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 14px;
}

/* 通知横幅 */

.notice-banner {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fafaf7;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    margin-bottom: 18px;
}

.notice-banner i { width: 16px; height: 16px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }

.notice-banner p { font-size: 12.5px; color: #666; }

/* Tab 导航 */

.tab-nav {
    display: inline-flex;
    gap: 4px;
    background: #f4f4f1;
    border-radius: 999px;
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: all .15s;
}

.tab-btn.active { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tab-btn:disabled { opacity: .5; cursor: not-allowed; }

/* 表单 */

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-group { display: flex; flex-direction: column; gap: 12px; }

.input-group input[type="text"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-size: 14px;
    outline: none;
    background: #fcfcfb;
    transition: border-color .15s, box-shadow .15s;
}

.input-group input[type="text"]:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.field-hint { font-size: 12px; color: var(--muted); }

.textarea-wrapper { position: relative; }

.textarea-wrapper textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-size: 13px;
    font-family: 'Inter', monospace;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    background: #fcfcfb;
    transition: border-color .15s, box-shadow .15s;
}

.textarea-wrapper textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .06);
}

.get-token-btn-floating {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ink);
    background: #f0f0ec;
    padding: 5px 12px;
    border-radius: 999px;
    transition: all .15s;
}

.get-token-btn-floating:hover { background: var(--black); color: #fff; }

/* 按钮 */

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: var(--black);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 999px;
    transition: background .15s, transform .1s, opacity .15s;
    min-width: 150px;
}

.btn-primary:hover:not(:disabled) { background: var(--black-hover); }
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary.is-loading { opacity: .85; }

.btn-primary.btn-lg { width: 100%; padding: 15px 26px; font-size: 15px; }

.btn-secondary {
    border: 1px solid var(--line);
    background: transparent;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    padding: 11px 22px;
    border-radius: 999px;
    transition: all .15s;
    align-self: flex-start;
}

.btn-secondary:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }

.loader {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 已验证信息 */

.cdk-confirmed, .plan-confirmed {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    background: #fafaf7;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
}

.cdk-confirmed span, .plan-confirmed span { color: var(--muted); flex-shrink: 0; }

.cdk-confirmed code {
    font-family: 'Inter', monospace;
    font-weight: 600;
    letter-spacing: .5px;
}

.plan-confirmed strong { font-weight: 700; }

/* 进度条 */

.task-progress {
    margin-top: 18px;
    background: #fafaf7;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.task-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}

.task-progress-header b { font-variant-numeric: tabular-nums; }

.task-progress-track {
    height: 8px;
    background: #ececea;
    border-radius: 999px;
    overflow: hidden;
}

.task-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--black);
    border-radius: 999px;
    transition: width .4s ease;
}

.task-progress-bar.error { background: var(--red); }

.task-progress-text {
    margin-top: 9px;
    font-size: 12.5px;
    color: var(--muted);
}

/* 状态消息 */

.status-message {
    display: none;
    margin-top: 16px;
    border-radius: var(--radius-md);
    padding: 13px 16px;
    font-size: 13px;
}

.status-message.status-success {
    background: var(--green-bg);
    color: #14532d;
    border: 1px solid #c9ecd6;
}

.status-message.status-error {
    background: var(--red-bg);
    color: #7f1d1d;
    border: 1px solid #f5cfcf;
}

/* 查询结果 */

.query-result-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin: 4px 0;
}

.query-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    font-size: 13px;
}

.query-row + .query-row { border-top: 1px solid var(--line); }
.query-row span { color: var(--muted); }
.query-row strong { font-weight: 600; }

strong.status-processing { color: var(--blue); }
strong.status-used { color: var(--red); }
strong.status-unused { color: var(--green); }

/* ---------------- FAQ ---------------- */

.faq-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-top: 20px;
    padding: 4px 22px;
}

.faq-panel summary {
    display: flex;
    align-items: center;
    gap: 9px;
    list-style: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 16px 0;
}

.faq-panel summary::-webkit-details-marker { display: none; }
.faq-panel summary i { width: 17px; height: 17px; color: var(--muted); }

.faq-panel ul {
    padding: 0 0 18px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-panel li { font-size: 13px; color: #555; }

/* ---------------- 前台并发面板 ---------------- */

.public-runtime-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-left-width: 3px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    margin-top: 20px;
    padding: 16px 20px;
}

.public-runtime-panel.load-low { border-left-color: var(--green); }
.public-runtime-panel.load-mid { border-left-color: var(--amber); }
.public-runtime-panel.load-high { border-left-color: var(--red); }

.public-runtime-layout {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.public-runtime-title { font-size: 13px; font-weight: 700; }

.public-runtime-value {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.public-runtime-meta { font-size: 12px; color: var(--muted); }

.public-slot-grid { display: flex; gap: 5px; margin-left: auto; }

.public-slot-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.public-slot-box.idle { background: #e9e9e6; }
.public-slot-box.occupied { background: var(--black); }

/* ---------------- 底部卡片 ---------------- */

.bottom-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 20px;
}

.bottom-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px 22px;
    transition: transform .15s, box-shadow .15s;
}

.bottom-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12); }

.bc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bc-icon i { width: 19px; height: 19px; }
.bc-icon.yellow { background: var(--amber-bg); color: var(--amber); }
.bc-icon.green { background: var(--green-bg); color: var(--green); }

.bc-text { flex: 1; min-width: 0; }
.bc-text b { font-size: 14px; font-weight: 700; }
.bc-text p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.bc-arrow { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }

/* ---------------- 页脚 ---------------- */

.footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.f-brand { font-weight: 800; color: var(--ink); }
.f-right { margin-left: auto; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .side { position: static; flex-direction: row; }
    .side-card { flex: 1; }
    .hero h1 { font-size: 32px; }
    .hero-side { display: none; }
    .product-meta-row { display: none; }
    .product-row { grid-template-columns: 1fr; gap: 12px; }
    .p-meta { flex-direction: row; gap: 8px; align-items: baseline; }
    .buy-btn { justify-self: start; }
    .bottom-cards { grid-template-columns: 1fr; }
    .announce-left p { white-space: normal; }
    .top-actions { display: none; }
}

@media (max-width: 640px) {
    .shell { padding: 12px 14px 30px; }
    .hero h1 { font-size: 26px; }
    .redeem-panel { padding: 20px 18px; }
    .product-search { min-width: 0; width: 100%; }
    .side { flex-direction: column; }
}
