/* CouponHub – public site styles */
:root {
    --brand: #5b3df5;
    --brand-dark: #4327d6;
    --brand-soft: #efebff;
    --accent: #ff6a3d;
    --accent-soft: #fff1ec;
    --green: #16a34a;
    --green-soft: #e8f8ee;
    --ink: #14142b;
    --muted: #6b6b80;
    --line: #e7e7ef;
    --bg: #f6f6fb;
    --card: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(20, 20, 43, .04), 0 4px 16px rgba(20, 20, 43, .06);
    --shadow-lg: 0 10px 40px rgba(20, 20, 43, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* ------------------------------------------------ header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); white-space: nowrap; }
.logo:hover { color: var(--ink); }
.logo-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), #8b6cff); color: #fff; font-size: 1rem;
}
.header-search { flex: 1; max-width: 520px; }
.search-box { position: relative; display: flex; }
.search-box input {
    width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 999px;
    padding: 0 110px 0 44px; font: inherit; background: var(--bg); outline: none; transition: border-color .15s, background .15s;
}
.search-box input:focus { border-color: var(--brand); background: #fff; }
.search-box .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box button {
    position: absolute; right: 4px; top: 4px; height: 36px; padding: 0 18px; border: 0; border-radius: 999px;
    background: var(--brand); color: #fff; font-weight: 600; cursor: pointer;
}
.search-box button:hover { background: var(--brand-dark); }
.main-nav { display: flex; gap: 6px; margin-left: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; color: var(--ink); font-weight: 600; }
.main-nav a:hover, .main-nav a.active { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* ------------------------------------------------ hero */
.hero {
    background: radial-gradient(1200px 400px at 10% -20%, #8b6cff 0%, transparent 60%),
                linear-gradient(135deg, var(--brand) 0%, #3b1fd1 100%);
    color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden;
}
.hero h1 { font-size: 2.6rem; max-width: 720px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 620px; }
.hero .search-box { max-width: 620px; margin-top: 24px; }
.hero .search-box input { height: 56px; background: #fff; border: 0; font-size: 1.05rem; padding-left: 50px; padding-right: 130px; }
.hero .search-box button { height: 46px; top: 5px; right: 5px; padding: 0 26px; background: var(--accent); }
.hero .search-box button:hover { background: #f05523; }
.hero-stats { display: flex; gap: 36px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.6rem; font-weight: 800; }
.hero-stats span { opacity: .8; font-size: .9rem; }

/* ------------------------------------------------ sections */
.section { padding-top: 40px; padding-bottom: 40px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.page-head { padding-top: 32px; padding-bottom: 8px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.breadcrumbs a:hover { color: var(--brand); }

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

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

/* ------------------------------------------------ store logos / grid */
.store-logo {
    width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
    display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--brand); font-weight: 800;
}
.store-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.store-logo.lg { width: 120px; height: 120px; border-radius: 20px; font-size: 2rem; }
.store-logo.sm { width: 44px; height: 44px; border-radius: 10px; font-size: .85rem; }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.store-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
    padding: 18px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.store-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d8d2ff; color: var(--ink); }
.store-tile .name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.store-tile .count { font-size: .8rem; color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cat-tile {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-weight: 600;
}
.cat-tile:hover { border-color: var(--brand); color: var(--brand); }
.cat-tile .pill { background: var(--brand-soft); color: var(--brand); }

.pill {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
    font-size: .74rem; font-weight: 700; background: var(--bg); color: var(--muted); white-space: nowrap;
}
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.orange { background: var(--accent-soft); color: var(--accent); }
.pill.purple { background: var(--brand-soft); color: var(--brand); }
.pill.red { background: #fdecec; color: #dc2626; }

/* ------------------------------------------------ coupon card */
.coupon-list { display: flex; flex-direction: column; gap: 14px; }
.coupon {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    transition: border-color .15s, box-shadow .15s; overflow: hidden;
}
.coupon-main { display: grid; grid-template-columns: 96px minmax(0, 1fr) 190px; gap: 18px; align-items: center; padding: 18px; }
.coupon-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    padding: 8px 18px; border-top: 1px dashed var(--line); background: #fcfcfe; font-size: .82rem; color: var(--muted);
}
.coupon-feedback { display: flex; align-items: center; gap: 6px; }
.coupon-feedback .q { margin-right: 2px; }
.vote-btn, .report-btn {
    border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: .8rem;
    cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; min-height: 28px;
}
.vote-btn:hover, .report-btn:hover { border-color: var(--brand); color: var(--brand); }
.vote-btn.voted { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.vote-btn:disabled { opacity: .6; cursor: wait; }
.report-btn { color: var(--muted); }
.report-btn:hover { border-color: #dc2626; color: #dc2626; }
.coupon-meta .success { font-weight: 600; }
.coupon-meta .success.good { color: var(--green); }
.coupon-meta .success.bad { color: #dc2626; }
.coupon-meta .countdown { font-variant-numeric: tabular-nums; }
.coupon:hover { border-color: #d8d2ff; box-shadow: 0 6px 24px rgba(91, 61, 245, .1); }
.coupon.is-featured { border-color: #ffd2c2; }
.coupon-badge {
    height: 96px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--brand-soft); color: var(--brand); text-align: center; border: 1.5px dashed #c9bfff;
}
.coupon-badge.deal { background: var(--accent-soft); color: var(--accent); border-color: #ffc4b0; }
.coupon-badge .big { font-size: 1.55rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.coupon-badge .sm { font-size: .72rem; font-weight: 700; letter-spacing: .08em; margin-top: 4px; }
.coupon-badge img { width: 70px; height: 40px; object-fit: contain; margin-bottom: 6px; }
.coupon-body { min-width: 0; }
.coupon-store { font-size: .82rem; font-weight: 600; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.coupon-store a { color: var(--muted); }
.coupon-store a:hover { color: var(--brand); }
.coupon-title { font-size: 1.07rem; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.coupon-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .82rem; color: var(--muted); }
.coupon-meta .soon { color: #dc2626; font-weight: 600; }
.details-toggle { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline dotted; }
.coupon-details { margin: 0 18px 14px; font-size: .88rem; color: #4b4b63; background: var(--bg); border-radius: 10px; padding: 10px 12px; }

.coupon-action { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
    border-radius: 10px; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-align: center;
    transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #f05523; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }

/* "Get code" button with peeking code */
.btn-code {
    position: relative; height: 46px; border-radius: 10px; overflow: hidden; display: block; background: #fff;
    border: 1.5px dashed var(--brand); color: var(--brand); font-weight: 800; letter-spacing: .06em; text-align: right;
    padding: 0 12px; line-height: 43px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.btn-code .cover {
    position: absolute; inset: 0 34px 0 0; background: var(--brand); color: #fff; font-family: "Inter", system-ui, sans-serif;
    letter-spacing: 0; display: flex; align-items: center; justify-content: center; font-weight: 700;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); transition: inset .2s;
}
.btn-code:hover .cover { inset: 0 44px 0 0; background: var(--brand-dark); }
.used-count { text-align: center; font-size: .76rem; color: var(--muted); }

/* ------------------------------------------------ filters / tabs */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tab .n { opacity: .6; font-weight: 500; margin-left: 4px; }
select.sort {
    height: 38px; border-radius: 999px; border: 1px solid var(--line); padding: 0 14px; font: inherit; font-size: .9rem; background: #fff;
}

.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 24px; }
.az a { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; padding: 0 8px; }
.az a:hover, .az a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.store-az-list { columns: 4 220px; column-gap: 24px; }
.store-az-list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--ink); break-inside: avoid; border-bottom: 1px dashed var(--line); }
.store-az-list a:hover { color: var(--brand); }

/* ------------------------------------------------ pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .gap { border: 0; background: none; }

/* ------------------------------------------------ store page */
.store-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 28px 0; }
.store-hero-inner { display: flex; gap: 24px; align-items: center; }
.store-hero h1 { font-size: 1.8rem; margin-bottom: 6px; }
.store-hero .actions { margin-left: auto; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.side-box h3 { font-size: .95rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.side-box + .side-box { margin-top: 18px; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.stat-row:last-child { border-bottom: 0; }
.related-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); font-weight: 600; font-size: .92rem; }
.related-list a:hover { color: var(--brand); }
.expired .coupon { opacity: .55; filter: grayscale(.6); }

/* ------------------------------------------------ modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 20, 43, .55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.open { display: flex; animation: fade .15s ease-out; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 520px; padding: 32px 28px 26px; position: relative; box-shadow: var(--shadow-lg); text-align: center; }
.modal-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; font-size: 1.8rem; color: var(--muted); cursor: pointer; line-height: 1; }
.modal .store-logo { margin: 0 auto 14px; }
.modal h3 { font-size: 1.25rem; margin-bottom: 18px; }
.code-box { display: flex; border: 2px dashed var(--brand); border-radius: 12px; overflow: hidden; margin: 0 auto 12px; max-width: 380px; }
.code-box .code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; padding: 12px; background: var(--brand-soft); color: var(--ink); user-select: all; word-break: break-all; }
.code-box button { border: 0; background: var(--brand); color: #fff; font-weight: 700; padding: 0 22px; cursor: pointer; font: inherit; font-weight: 700; }
.code-box button.copied { background: var(--green); }
.modal .hint { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------ footer */
.site-footer { background: #11112a; color: #b9b9cf; margin-top: 56px; padding: 44px 0 24px; font-size: .9rem; }
.site-footer a { color: #d9d9ea; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #26264a; margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon { font-size: 2.4rem; margin-bottom: 8px; }

/* ------------------------------------------------ responsive */
@media (max-width: 960px) {
    .layout-2col { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    h1 { font-size: 1.6rem; }
    .hero { padding: 36px 0 44px; }
    .hero h1 { font-size: 1.9rem; }
    .header-inner { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 12px; }
    .hero .search-box input { padding-right: 110px; font-size: .95rem; }
    .hero .search-box button { padding: 0 16px; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; }
    .nav-toggle { display: block; }
    .main-nav { display: none; flex-basis: 100%; order: 4; flex-direction: column; margin: 0; }
    .main-nav.open { display: flex; }
    .coupon-main { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
    .coupon-foot { padding: 8px 14px; }
    .coupon-feedback .q { display: none; }
    .coupon-badge { height: 72px; }
    .coupon-badge .big { font-size: 1.15rem; }
    .coupon-action { grid-column: 1 / -1; }
    .store-hero-inner { flex-wrap: wrap; }
    .store-hero .actions { margin-left: 0; width: 100%; }
    .store-logo.lg { width: 84px; height: 84px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------ directory v2 */
.store-hero-logo { display: block; flex-shrink: 0; }
.store-hero-text { min-width: 0; }
.store-sub { margin: 0 0 8px; color: var(--muted); }
.store-sub strong { color: var(--ink); }
.store-sub .hl { color: var(--accent); }
.store-sub .ok { color: var(--green); font-weight: 600; }
.store-facts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .88rem; }
.store-intro { margin-top: 18px; color: #3c3c55; max-width: 860px; }
.store-intro p:last-child { margin-bottom: 0; }

.content-block { margin-top: 28px; }
.content-block h2 { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
.offers-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.offers-table th, .offers-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.offers-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafafc; }
.offers-table tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.steps { margin: 0; padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: #3c3c55; }
.prose { line-height: 1.7; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.container.narrow { max-width: 860px; }
.store-filter { margin: 14px 0 6px; max-width: 420px; }
.store-filter input { width: 100%; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; outline: none; }
.store-filter input:focus { border-color: var(--brand); }
.az .disabled { min-width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #c4c4d4; border: 1px dashed var(--line); padding: 0 8px; font-weight: 700; }
.az-groups { display: flex; flex-direction: column; gap: 16px; }
.az-group { scroll-margin-top: 90px; }
.az-letter { font-size: 1.6rem; color: var(--brand); margin-bottom: 8px; }
.cat-sub { display: block; font-weight: 500; }

.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.trust-item .ti-icon { font-size: 1.8rem; margin-bottom: 8px; }
.trust-item p { color: var(--muted); margin: 0; font-size: .92rem; }

/* forms (contact / report) */
.field-label { display: block; font-weight: 600; margin: 12px 0 5px; font-size: .9rem; }
.contact-form input, .contact-form textarea, #report-form textarea, #report-form input[type=email] {
    width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus, #report-form textarea:focus, #report-form input:focus { border-color: var(--brand); }
.contact-form { margin-top: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field-error { color: #dc2626; font-size: .84rem; margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.notice.success { background: var(--green-soft); color: #11743a; }
.notice.error { background: #fdecec; color: #a61b1b; }
.radio-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.radio-list label { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-list label:hover { border-color: var(--brand); }
.form-msg { min-height: 22px; margin: 10px 0; font-size: .9rem; font-weight: 600; }
.form-msg.success { color: var(--green); }
.form-msg.error { color: #dc2626; }
.modal.modal-left { text-align: left; }
.modal-vote { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: .9rem; color: var(--muted); }

@media (max-width: 760px) {
    .trust-grid, .grid-2 { grid-template-columns: 1fr; }
    .store-hero .actions .btn { width: 100%; }
    .store-facts { font-size: .82rem; }
    .offers-table { font-size: .85rem; }
}

/* ------------------------------------------------ brand page v3 */
html { scroll-behavior: smooth; }

.brand-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 11px 0;
}
.brand-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
}
.brand-bar .breadcrumbs { margin: 0; }
.brand-disclosure { font-size: .78rem; color: var(--muted); }
.brand-disclosure a { color: var(--muted); text-decoration: underline; }
.brand-disclosure a:hover { color: var(--brand); }

.brand-page { padding-top: 26px; padding-bottom: 20px; }
.brand-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.brand-rail { min-width: 0; }
.brand-main { min-width: 0; }

/* Left brand identity card */
.brand-id-card {
    padding: 22px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 18px;
}
.brand-logo-wrap { display: block; }
.brand-id-card .store-logo.lg {
    width: 116px;
    height: 116px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(20, 20, 43, .05);
}
.brand-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: .9rem;
}
.brand-id-meta {
    width: 100%;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .8rem;
}
.freshness {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 600;
}
.freshness .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
}

/* Savings Snapshot KPIs */
.snap-kpis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
.snap-kpi {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}
.snap-kpi strong {
    display: block;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}
.snap-kpi strong.hl { color: var(--brand); }
.snap-kpi span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.brand-snapshot .ok { color: var(--green); }

/* On This Page jump nav */
.brand-toc a {
    display: block;
    padding: 7px 10px;
    margin: 0 -10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    transition: background .12s, color .12s;
}
.brand-toc a:hover { background: var(--bg); color: var(--brand); }

/* Why trust us */
.brand-trust p { margin: 0 0 10px; line-height: 1.55; }
.brand-trust a { font-weight: 600; }

/* Similar stores refinements */
.related-list a { justify-content: space-between; }
.related-list .rel-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Main column brand header */
.brand-head { margin-bottom: 18px; }
.brand-head h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 0 0 6px;
}
.brand-sub { margin: 0; font-size: .98rem; color: var(--muted); }
.brand-sub strong { color: var(--ink); }
.brand-sub .hl { color: var(--accent); }
.brand-sub .ok { color: var(--green); font-weight: 600; }
.brand-intro {
    margin-top: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #3c3c55;
    font-size: .94rem;
}
.brand-intro p:last-child { margin-bottom: 0; }

/* Mobile-only compact identity bar */
.brand-mobile-bar {
    display: none;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.brand-mobile-logo { flex-shrink: 0; }
.brand-mobile-cta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.btn-sm-h { height: 40px; font-size: .92rem; padding: 0 16px; }

/* Filter & sort bar */
.brand-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    scroll-margin-top: 84px;
}
.brand-sort { margin-left: auto; }

/* Enhanced coupon card */
.coupon.is-top-offer {
    border-color: #d4caff;
    box-shadow: 0 2px 6px rgba(91, 61, 245, .07), 0 10px 26px rgba(91, 61, 245, .09);
}
.coupon-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 18px;
    background: #f4f1ff;
    border-bottom: 1px solid #e5ddff;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.coupon-ribbon .ribbon-sub { color: var(--muted); font-weight: 600; }
.coupon-desc {
    margin: 0 0 8px;
    font-size: .86rem;
    color: #55556e;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coupon-action .action-hint {
    text-align: center;
    font-size: .74rem;
    color: var(--muted);
}
.details-text { margin: 0; }
.savings-math {
    margin-top: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
}
.details-text:empty + .savings-math,
.savings-math:first-child { margin-top: 0; }
.savings-math .sm-title {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 6px;
}
.savings-math .sm-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: .88rem;
    color: var(--ink);
}
.savings-math .sm-save strong { color: var(--green); }

/* Summary table CTA */
.table-cta {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 700;
    font-size: .8rem;
    transition: background .15s, color .15s;
}
.table-cta:hover { background: var(--brand); color: #fff; }

/* Ways to save grid */
.hacks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.hack-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
}
.hack-num {
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .78rem;
    font-weight: 800;
    color: var(--brand);
    background: var(--brand-soft);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 8px;
}
.hack-item h3 { font-size: .96rem; margin: 0 0 6px; }
.hack-item p { margin: 0; line-height: 1.5; }

/* Numbered step guide */
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
}
.step-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.step-n {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
    font-size: .84rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.step-list strong { display: block; font-size: .94rem; margin-bottom: 2px; }
.step-list p { margin: 0; line-height: 1.45; }

/* Expired header & popular pills */
.expired-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.expired-head h2 { margin: 0; }
.pop-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pop-pills a {
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: .84rem;
    font-weight: 600;
    transition: border-color .15s, color .15s;
}
.pop-pills a:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.content-block[id] { scroll-margin-top: 84px; }

@media (max-width: 960px) {
    .brand-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .brand-main { order: 1; }
    .brand-rail { order: 2; }
    .brand-id-card { display: none; }
    .brand-toc { display: none; }
    .brand-mobile-bar { display: flex; }
    .brand-disclosure { display: none; }
    .hacks-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .brand-head h1 { font-size: 1.55rem; }
    .step-list { grid-template-columns: 1fr; }
    .brand-sort { width: 100%; }
    .brand-sort select { width: 100%; }
    .coupon-ribbon { padding: 6px 14px; }
}

/* ------------------------------------------------ shopping policy guides */
.guide-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.guide-toolbar .tabs { margin: 0; }
.guide-search { display: flex; gap: 8px; align-items: center; }
.guide-search input {
    height: 38px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    background: #fff;
    min-width: 220px;
}
.guide-search input:focus { border-color: var(--brand); outline: none; }

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.guide-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.guide-card-top { display: flex; align-items: center; gap: 12px; }
.guide-card h2 { font-size: 1.05rem; margin: 2px 0 0; line-height: 1.35; }
.guide-card h2 a { color: var(--ink); }
.guide-card h2 a:hover { color: var(--brand); }
.guide-card p { margin: 0; line-height: 1.5; }
.guide-card-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.guide-meta-strip {
    display: flex;
    align-items: center;
    gap: 8px 12px;
    flex-wrap: wrap;
    font-size: .9rem;
    color: var(--muted);
    margin: 8px 0 0;
}
.guide-section h2 { margin-bottom: 12px; }
.guide-section h3 { margin: 1.25em 0 8px; font-size: 1.04rem; }
.guide-section .table-wrap { margin: 12px 0; }
.guide-list { margin: 8px 0 12px; padding-left: 22px; }
.guide-list li { margin-bottom: 6px; }
.guide-steps {
    list-style: none;
    margin: 12px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.guide-steps li { display: flex; gap: 12px; align-items: flex-start; }

.guide-cta-box {
    border-color: #d8d2ff;
    background: linear-gradient(180deg, #faf9ff 0%, #ffffff 100%);
}
.guide-cta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.guide-cta-head h2 { margin: 0; font-size: 1.15rem; }
.guide-coupon-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.guide-coupon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.guide-coupon-row:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.guide-coupon-title { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; }

.guide-side-links a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
}
.guide-side-links a:last-child { border-bottom: 0; padding-bottom: 0; }
.guide-side-links a:hover { color: var(--brand); }

.guide-store-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.guide-store-item {
    display: block;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fafafc;
    color: var(--ink);
    transition: border-color .15s, background .15s;
}
.guide-store-item:hover { border-color: var(--brand); background: #fff; }
.guide-store-item strong { display: block; font-size: .95rem; margin-bottom: 4px; }
.guide-store-item p { margin: 0; line-height: 1.45; }

@media (max-width: 680px) {
    .guide-search { width: 100%; }
    .guide-search input { flex: 1; min-width: 0; }
    .guide-coupon-row { flex-wrap: wrap; }
}
