:root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-soft: #fafafa;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #111827;
    --primary-hover: #000000;
    --accent: #f97316;
    --accent-soft: #fff7ed;
    --success: #16a34a;
    --danger: #dc2626;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-soft: 0 18px 40px rgba(17, 24, 39, 0.08);
    --shadow-hover: 0 24px 54px rgba(17, 24, 39, 0.12);
}

/* Reset/base */
html {
    scroll-behavior: smooth;
}

body.public-shell {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
}

.public-shell img {
    max-width: 100%;
}

.public-shell h1,
.public-shell h2,
.public-shell h3,
.public-shell p {
    letter-spacing: 0;
}

.public-shell p {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Layout/header/footer */
.site-header,
.site-footer,
.page {
    width: min(1180px, calc(100% - 40px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 78px;
    padding: 12px 0;
    background: rgba(245, 245, 247, 0.86);
    backdrop-filter: blur(18px);
}

.brand {
    display: grid;
    gap: 1px;
    color: var(--text);
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.brand span {
    font-size: 20px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.nav {
    gap: 6px;
    justify-content: flex-end;
}

.nav a,
.inline-form button,
.nav-user {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease;
}

.nav a:hover,
.inline-form button:hover {
    background: var(--surface);
    color: var(--text);
}

.nav-user {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    color: var(--text);
}

.page {
    padding: 28px 0 70px;
}

.site-footer {
    display: grid;
    gap: 18px;
    padding: 34px 0 44px;
    border-top: 1px solid var(--border);
    color: var(--muted);
}

.footer-brand {
    display: grid;
    gap: 6px;
}

.footer-brand strong {
    color: var(--text);
    font-size: 18px;
}

.footer-warning {
    max-width: 860px;
    margin: 0;
    color: var(--muted);
}

.footer-warning strong {
    color: var(--text);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 750;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--text);
}

.section {
    padding-top: 54px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.section-head h2,
.section-head p {
    margin: 0;
}

.section-head h2,
.money-idea h2 {
    max-width: 760px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
}

.section-head a,
.profile-table a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

/* Buttons/forms */
button,
.button {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--surface);
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

button:hover,
.button:hover {
    transform: translateY(-1px);
}

button.primary,
.button.primary,
form button[type="submit"] {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

button.primary:hover,
.button.primary:hover,
form button[type="submit"]:hover {
    background: var(--primary-hover);
}

.button.danger,
button.danger {
    border-color: var(--border);
    background: var(--surface);
    color: var(--danger);
}

input,
select,
textarea {
    min-height: 46px;
    border-color: var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(17, 24, 39, 0.08);
}

label {
    color: var(--muted);
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.flash {
    border-radius: var(--radius-md);
    box-shadow: none;
}

/* Home */
.public-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    gap: 28px;
    align-items: stretch;
    padding: 62px 0 20px;
}

.public-hero-copy {
    display: grid;
    align-content: center;
    gap: 18px;
}

.public-hero h1,
.products-hero h1,
.page-title h1,
.content-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--text);
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.01;
}

.public-hero p,
.products-hero p,
.page-title p,
.money-idea p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.public-savings-card,
.simulation-notice,
.money-idea,
.steps-grid article,
.public-product-card,
.public-category-card,
.products-hero,
.cart-row,
.cart-summary,
.fake-order-panel,
.tracking-card,
.waitlist-card,
.waitlist-after-order,
.profile-section,
.profile-stat-card,
.content-card,
.content-section,
.warning-box,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.public-savings-card {
    display: grid;
    gap: 18px;
    align-content: center;
    padding: 28px;
}

.public-savings-card .card-kicker,
.public-savings-card small,
.public-savings-card dt,
.public-savings-card em {
    color: var(--muted);
}

.public-savings-card strong {
    display: block;
    color: var(--text);
    font-size: 42px;
    line-height: 1;
}

.public-savings-card dl,
.summary-lines {
    display: grid;
    gap: 10px;
    margin: 0;
}

.public-savings-card dl div,
.summary-lines div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.public-savings-card dd,
.summary-lines dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.public-savings-card em {
    font-style: normal;
    font-weight: 750;
}

.simulation-notice,
.simulation-alert,
.warning-box {
    padding: 16px 18px;
    background: var(--accent-soft);
    border-color: #fed7aa;
    color: #9a3412;
    font-weight: 800;
    line-height: 1.6;
}

.simulation-notice {
    margin: 18px 0 10px;
}

.simulation-notice.compact {
    margin-top: 14px;
    box-shadow: none;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.steps-grid article {
    display: grid;
    gap: 10px;
    padding: 22px;
    box-shadow: none;
}

.steps-grid span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--surface-soft);
    color: var(--text);
    font-weight: 900;
}

.steps-grid p,
.public-category-card small {
    margin: 0;
    color: var(--muted);
}

.money-idea {
    display: grid;
    gap: 12px;
    margin-top: 54px;
    padding: 34px;
    background: var(--surface);
}

/* Product cards */
.category-grid,
.product-grid,
.public-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.public-category-card {
    display: grid;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-category-card span {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
}

.public-category-card strong {
    color: var(--text);
    font-size: 18px;
}

.products-hero {
    display: grid;
    gap: 12px;
    padding: 34px;
    box-shadow: none;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 26px;
}

.filter-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.filter-bar a.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #ffffff;
}

.category-filter-tree {
    align-items: flex-start;
}

.category-filter-group {
    display: grid;
    gap: 8px;
}

.category-filter-children {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-left: 10px;
}

.filter-bar a.category-filter-child {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
    background: #f8fafc;
}

/* Account pages */
.account-hero {
    margin-bottom: 20px;
}

.account-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.account-sidebar,
.account-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.account-sidebar {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.account-sidebar a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.account-sidebar a.active,
.account-sidebar a:hover {
    background: #eef2ff;
    color: var(--primary);
}

.account-content {
    display: grid;
    gap: 18px;
}

.account-card {
    display: grid;
    gap: 18px;
    padding: 24px;
}

.account-card.narrow {
    max-width: 620px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.account-grid.metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.account-field {
    display: grid;
    gap: 6px;
    min-height: 92px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.account-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.account-field strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.account-status {
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.account-status.verified {
    background: #ecfdf3;
    color: #027a48;
}

.account-status.pending {
    background: #fff7ed;
    color: #c2410c;
}

.account-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-md);
    background: #fff7ed;
    color: #7c2d12;
}

.account-warning form {
    margin: 0;
}

.account-form,
.account-preferences {
    display: grid;
    gap: 16px;
}

.account-form input[readonly] {
    background: #f3f4f6;
    color: var(--muted);
}

.account-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.public-product-card {
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.public-category-card:hover,
.public-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.public-product-visual,
.detail-visual {
    display: grid;
    place-items: center;
    min-height: 210px;
    overflow: hidden;
    background: #eceff3;
    color: var(--text);
    text-decoration: none;
}

.public-product-visual img,
.detail-visual img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.public-product-visual span,
.detail-visual span,
.cart-image > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--text);
    font-size: 24px;
    font-weight: 900;
}

.product-body {
    display: grid;
    gap: 13px;
    padding: 18px;
}

.product-meta-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-meta-row span,
.simulation-chip,
.status {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.simulation-chip {
    background: var(--accent-soft);
    color: #9a3412;
}

.product-title {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
}

.product-body p {
    min-height: 52px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-row strong {
    color: var(--text);
    font-size: 23px;
    letter-spacing: 0;
}

.price-row del {
    color: var(--muted);
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 2px;
}

.product-actions form,
.product-actions button,
.add-to-cart-form button {
    width: 100%;
}

.waitlist-form button {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.add-to-cart-form button:disabled,
button[disabled] {
    opacity: 0.72;
    cursor: progress;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.detail-visual {
    min-height: 520px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.detail-content {
    display: grid;
    gap: 18px;
    padding: 8px 0;
}

.detail-content h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.detail-content p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
}

.price-row.large strong {
    font-size: 38px;
}

/* Cart */
.page-title {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    gap: 22px;
    align-items: start;
}

.cart-list {
    display: grid;
    gap: 14px;
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(110px, 0.5fr) minmax(230px, 0.9fr) minmax(110px, 0.5fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-md);
    box-shadow: none;
}

.cart-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.cart-product strong {
    display: block;
    line-height: 1.25;
}

.cart-product small,
.cart-price span,
.cart-summary span,
.cart-summary small {
    color: var(--muted);
}

.cart-image {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 16px;
    background: #eceff3;
    color: var(--text);
    font-weight: 900;
}

.cart-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-price,
.cart-summary > div {
    display: grid;
    gap: 4px;
}

.quantity-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.quantity-control {
    display: grid;
    grid-template-columns: 38px minmax(60px, 1fr) 38px;
    gap: 6px;
    align-items: center;
}

.quantity-control button {
    min-height: 38px;
    padding: 0;
    border-color: var(--border);
    background: var(--surface-soft);
    color: var(--text);
}

.quantity-control input {
    text-align: center;
}

.cart-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 16px;
}

.cart-summary,
.fake-order-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-lg);
}

.cart-summary strong {
    color: var(--text);
    font-size: 34px;
    line-height: 1;
}

.fake-order-panel h2,
.fake-order-panel p {
    margin: 0;
}

/* Order success */
.order-success {
    display: grid;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto;
}

.success-box {
    max-width: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.success-box h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.order-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 0;
}

.order-meta div,
.order-total-card > div {
    display: grid;
    gap: 4px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.order-meta dt,
.order-total-card span,
.success-actions small,
.order-item small {
    color: var(--muted);
}

.order-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.order-items {
    display: grid;
    gap: 12px;
}

.order-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.order-item div {
    display: grid;
    gap: 4px;
}

.order-total-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.order-total-card strong {
    color: var(--text);
    font-size: 30px;
}

.success-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Tracking */
.tracking-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    max-width: 760px;
    margin-bottom: 22px;
}

.tracking-card {
    display: grid;
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    padding: 22px;
}

.tracking-head {
    display: grid;
    grid-template-columns: 1fr minmax(220px, auto);
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.tracking-head h2 {
    margin: 4px 0 0;
}

.tracking-head span {
    color: var(--muted);
}

.tracking-timeline {
    display: grid;
    gap: 0;
    margin: 8px 0;
    padding: 0;
    list-style: none;
}

.tracking-timeline li {
    position: relative;
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 0 0 24px;
}

.tracking-timeline li::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 26px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.tracking-timeline li:last-child::before {
    display: none;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    display: block;
    border: 3px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
}

.tracking-timeline li.done .timeline-dot {
    border-color: var(--success);
    background: var(--success);
}

.tracking-timeline li.pending {
    color: var(--muted);
}

.tracking-timeline p {
    margin: 4px 0;
}

/* Waitlist */
.waitlist-hero {
    margin-bottom: 22px;
}

.waitlist-grid {
    display: grid;
    gap: 16px;
}

.waitlist-card,
.waitlist-after-order {
    display: grid;
    gap: 16px;
    padding: 20px;
    box-shadow: none;
}

.waitlist-after-order {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.waitlist-after-order h2,
.waitlist-after-order p {
    margin: 0;
}

.waitlist-product {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.waitlist-product small {
    display: block;
    color: var(--muted);
}

.waitlist-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.waitlist-meta div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
}

.waitlist-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.waitlist-meta dd {
    margin: 0;
    font-weight: 800;
}

.waitlist-remaining {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: #9a3412;
    font-weight: 800;
}

.waitlist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.waitlist-actions form {
    margin: 0;
}

.status.waiting {
    background: #eff6ff;
    color: #1d4ed8;
}

.status.still_want,
.status.active {
    background: #ecfdf3;
    color: #027a48;
}

.status.no_longer_want,
.status.removed {
    background: #fef2f2;
    color: #b42318;
}

.status.added_to_cart {
    background: var(--accent-soft);
    color: #c2410c;
}

/* Profile/badges */
.profile-hero {
    margin-bottom: 18px;
}

.profile-stat-grid,
.profile-mini-grid {
    display: grid;
    gap: 14px;
}

.profile-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.profile-stat-card {
    display: grid;
    gap: 10px;
    min-height: 136px;
    padding: 22px;
    box-shadow: none;
}

.profile-stat-card.highlight {
    border-color: #d1d5db;
    background: var(--surface);
}

.profile-stat-card span,
.profile-mini-grid span,
.top-category-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.profile-stat-card strong {
    align-self: end;
    color: var(--text);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.05;
}

.profile-empty {
    display: grid;
    justify-items: start;
    gap: 12px;
    margin: 18px 0;
}

.profile-section {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    padding: 22px;
    box-shadow: none;
}

.profile-mini-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-mini-grid article,
.top-category-list article {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.profile-mini-grid article {
    display: grid;
    gap: 8px;
    min-height: 94px;
    padding: 16px;
}

.profile-mini-grid strong {
    font-size: 28px;
}

.profile-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.profile-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--surface);
}

.profile-table th,
.profile-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    white-space: nowrap;
}

.profile-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.profile-table tr:last-child td {
    border-bottom: 0;
}

.top-category-list {
    display: grid;
    gap: 12px;
}

.top-category-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.badge-group {
    display: grid;
    gap: 12px;
}

.badge-group h3 {
    margin: 0;
    font-size: 18px;
}

.badge-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.badge-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.badge-card.earned {
    border-color: #d1d5db;
}

.badge-card.locked {
    opacity: 0.54;
    background: var(--surface-soft);
}

.badge-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: var(--surface-soft);
    font-size: 24px;
}

.badge-card strong,
.badge-card p,
.badge-card small {
    display: block;
}

.badge-card p {
    margin: 6px 0 8px;
    color: var(--muted);
}

.badge-card small {
    color: var(--text);
    font-weight: 800;
}

.badge-card.locked small {
    color: var(--muted);
}

/* Content pages */
.content-page {
    display: grid;
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
}

.content-hero {
    display: grid;
    gap: 12px;
    padding: 34px 0 6px;
}

.content-hero p,
.content-card p,
.content-section p,
.content-steps p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
}

.content-card,
.content-section {
    display: grid;
    gap: 14px;
    padding: 24px;
}

.content-card h2,
.content-section h2,
.content-card p,
.content-section p {
    margin: 0;
}

.warning-box.strong {
    border-color: #fdba74;
}

.warning-box a,
.content-card a {
    color: var(--primary);
    font-weight: 800;
}

.legal-list,
.content-steps {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.legal-list li,
.content-steps li {
    line-height: 1.7;
}

.content-steps strong {
    display: block;
    margin-bottom: 4px;
}

.empty-state {
    display: grid;
    justify-items: start;
    gap: 12px;
    max-width: 720px;
    padding: 26px;
}

.empty-state h1,
.empty-state h2,
.empty-state p {
    margin: 0;
}

.empty-state.slim {
    max-width: none;
    padding: 16px;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-aside {
        position: static;
    }

    .cart-row {
        grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(120px, auto));
    }

    .quantity-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 960px) {
    .public-hero {
        grid-template-columns: 1fr;
    }

    .steps-grid,
    .category-grid,
    .product-grid,
    .public-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .badge-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-visual {
        min-height: 380px;
    }
}

@media (max-width: 720px) {
    .site-header {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        justify-content: flex-start;
    }

    .public-hero h1,
    .products-hero h1,
    .page-title h1,
    .content-hero h1 {
        font-size: 42px;
    }

    .steps-grid,
    .category-grid,
    .product-grid,
    .public-product-grid,
    .waitlist-after-order,
    .waitlist-meta,
    .profile-stat-grid,
    .profile-mini-grid,
    .top-category-list article,
    .order-meta,
    .order-total-card,
    .tracking-head {
        grid-template-columns: 1fr;
    }

    .account-shell,
    .account-grid,
    .account-grid.metrics {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
        display: flex;
        overflow-x: auto;
    }

    .account-sidebar a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .cart-row,
    .order-item,
    .quantity-form,
    .tracking-form {
        grid-template-columns: 1fr;
    }

    .cart-product,
    .waitlist-product {
        grid-template-columns: 70px minmax(0, 1fr);
    }

    .cart-image {
        width: 70px;
        height: 70px;
    }

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

    .products-hero,
    .money-idea,
    .public-savings-card,
    .content-card,
    .content-section,
    .profile-section,
    .cart-summary,
    .fake-order-panel,
    .tracking-card {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .site-header,
    .site-footer,
    .page {
        width: min(100% - 28px, 1180px);
    }

    .nav a,
    .inline-form button {
        font-size: 13px;
        padding: 7px 9px;
    }

    .public-hero h1,
    .products-hero h1,
    .page-title h1,
    .content-hero h1 {
        font-size: 36px;
    }

    .public-savings-card strong,
    .cart-summary strong {
        font-size: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
