/* =========================================================
   SaverCode UK – main stylesheet
   Indigo / Violet / Emerald palette matching SaverCode.co.uk
   ========================================================= */
:root {
	--accent: #4f46e5;
	--accent-dark: #3730a3;
	--accent-2: #7c3aed;
	--accent-soft: #eef2ff;
	--hero-deep: #1e1b4b;
	--hero-mid: #312e81;
	--emerald: #10b981;
	--emerald-dark: #047857;
	--emerald-soft: #ecfdf5;
	--hot: #e11d48;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f1f5f9;
	--card: #ffffff;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
	--shadow-hover: 0 8px 26px rgba(15, 23, 42, .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3.5vw, 2.45rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 750; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 860px; }
.section { margin: 40px auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-title { margin-bottom: 16px; }
.section-head .section-title { margin: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.more-link { font-weight: 600; white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: .95rem; line-height: 1; text-decoration: none !important; transition: transform .12s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, .26); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, .36); }
.btn-outline { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-block { display: flex; width: 100%; }
.btn-disabled { background: #e2e8f0; color: var(--muted); cursor: default; }
a.btn-disabled, .btn-expired-link { cursor: pointer; }
a.btn-disabled:hover, .btn-expired-link:hover { background: #cbd5e1; color: var(--ink); }
.pill { display: inline-block; background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .9em; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { flex-shrink: 0; }
.brand img { max-height: 44px; width: auto; display: block; }
.brand-text { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none !important; }
.brand-text.light { color: #fff; }
.brand-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; font-weight: 900; font-size: 1.1rem; transform: rotate(-8deg); box-shadow: 0 3px 10px rgba(79, 70, 229, .28); }

.search-form { position: relative; display: flex; }
.header-search { flex: 1; max-width: 560px; margin-left: auto; }
.search-form input { width: 100%; height: 46px; border: 2px solid var(--line); border-radius: 12px; padding: 0 48px 0 16px; font-size: 1rem; background: var(--bg); transition: border-color .15s, background .15s, box-shadow .15s; }
.search-form input:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.header-search button { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 9px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; display: grid; place-items: center; }
.big-search { max-width: 660px; gap: 8px; }
.big-search input { height: 56px; padding-right: 16px; background: #fff; font-size: 1.05rem; box-shadow: 0 14px 36px rgba(15, 23, 42, .18); border-color: #fff; }
.big-search .btn { height: 56px; padding: 0 26px; }

.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-hover); border: 1px solid var(--line); overflow: hidden; z-index: 60; text-align: left; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); text-decoration: none; }
.suggest a:hover, .suggest a.active { background: var(--accent-soft); color: var(--accent-dark); }
.suggest img { width: 48px; height: 24px; object-fit: contain; }
.s-ph { width: 48px; height: 24px; display: grid; place-items: center; background: var(--accent-soft); border-radius: 6px; font-weight: 800; color: var(--accent-dark); }
.s-name { font-weight: 650; flex: 1; }
.s-meta { font-size: .85rem; color: var(--accent-dark); font-weight: 600; }

.menu-toggle, .search-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }
.menu-toggle span { display: block; width: 22px; height: 2.5px; background: currentColor; margin: 4px 0; border-radius: 2px; transition: .2s; }

.site-nav { border-top: 1px solid var(--line); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { display: block; padding: 12px 14px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-menu > li > a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav-menu a.hot { color: var(--hot); }
.nav-menu .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; background: #fff; min-width: 220px; box-shadow: var(--shadow-hover); border-radius: 12px; display: none; z-index: 70; }
.nav-menu li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu a { display: block; padding: 8px 12px; color: var(--ink-2); border-radius: 8px; }
.has-mega .mega { display: none; position: absolute; left: 0; top: 100%; width: min(760px, 90vw); background: #fff; box-shadow: var(--shadow-hover); border-radius: 14px; padding: 16px; grid-template-columns: repeat(3, 1fr); gap: 2px; z-index: 70; border: 1px solid var(--line); }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega a { padding: 8px 10px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; text-decoration: none; }
.mega a:hover { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- Hero (SaverCode Deep Indigo/Violet + Emerald Glow) ---------- */
.hero {
	background:
		radial-gradient(circle at 15% 20%, rgba(124, 58, 237, .45) 0%, transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(16, 185, 129, .24) 0%, transparent 45%),
		linear-gradient(135deg, var(--hero-deep) 0%, var(--hero-mid) 50%, #4338ca 100%);
	color: #fff;
	padding: 52px 0 48px;
}
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .24);
	color: #e0e7ff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1px;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 16px;
	backdrop-filter: blur(8px);
}
.hero h1 { color: #fff; max-width: 840px; text-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.hero-sub { font-size: 1.12rem; color: rgba(255, 255, 255, .9); max-width: 660px; margin: 0 0 26px; }
.hero .big-search { width: 100%; }
.hero-chips { margin: 18px 0 0; font-size: .92rem; opacity: .95; }
.hero-chips a { display: inline-block; color: #fff; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); padding: 4px 12px; border-radius: 999px; margin: 4px 2px; text-decoration: none; transition: background .15s; }
.hero-chips a:hover { background: rgba(255, 255, 255, .26); color: #fff; }
.hero-stats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 14px; width: 100%; max-width: 760px; }
.hero-stats li {
	background: rgba(255, 255, 255, .1);
	backdrop-filter: blur(12px);
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	font-size: .85rem;
	color: #cbd5e1;
	transition: transform .2s, background .2s;
}
.hero-stats li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.hero-stats strong { display: block; font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 2px; }

.page-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 28px; }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; margin: 0; }
.page-hero .big-search { margin-top: 16px; }
.page-hero .big-search input { border-color: var(--line); box-shadow: none; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumbs a { color: var(--muted); }

/* ---------- Store hero ---------- */
.store-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 28px; }
.store-head { display: flex; align-items: center; gap: 24px; }
.store-head-logo { flex-shrink: 0; width: 140px; height: 140px; border-radius: 20px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; padding: 14px; box-shadow: var(--shadow); }
.store-head-logo img { max-height: 100%; object-fit: contain; }
.store-head-logo .sc-logo-fallback { font-size: 3rem; }
.store-head-text { flex: 1; min-width: 0; }
.store-head h1 { margin-bottom: 8px; }
.store-sub { margin: 0; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.updated { color: var(--emerald-dark); font-weight: 650; font-size: .9rem; margin-left: 8px; }
.store-visit { flex-shrink: 0; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 28px; margin-bottom: 48px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card-title { font-size: 1.05rem; margin-bottom: 12px; }
.stats { margin: 0 0 16px; }
.stats div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.stats dt { color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list a { display: flex; justify-content: space-between; padding: 7px 0; color: var(--ink-2); border-bottom: 1px solid var(--bg); }
.link-list a span { color: var(--muted); font-size: .85rem; background: var(--bg); border-radius: 999px; padding: 0 8px; }
.how-to ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.how-to li { margin-bottom: 6px; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 650; color: var(--ink-2); }
.tab.active { border-color: var(--accent); background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; }

/* ---------- Deal card ---------- */
.deal-list { display: flex; flex-direction: column; gap: 14px; }
.deal-list.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deal { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; transition: box-shadow .15s, transform .15s; border: 1px solid var(--line); }
.deal:hover { box-shadow: var(--shadow-hover); }
.deal.is-code { border-left: 4px solid var(--accent); }
.deal-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 88px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-dark); padding: 8px; }
.deal.is-offer .deal-badge { background: #fef3c7; color: #92400e; }
.deal-logo { display: grid; place-items: center; width: 100%; height: 40px; background: #fff; border-radius: 8px; margin-bottom: 6px; padding: 4px; }
.deal-logo img { max-height: 32px; width: auto; object-fit: contain; }
.badge-big { font-size: 1.45rem; font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.badge-small { font-size: .7rem; font-weight: 800; letter-spacing: .08em; margin-top: 3px; }
.deal-body { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.deal-text { flex: 1; min-width: 0; }
.deal-thumb { flex-shrink: 0; width: 88px; height: 88px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; display: grid; place-items: center; overflow: hidden; }
.deal-thumb img { width: 100%; height: 100%; object-fit: contain; transition: transform .15s; }
.deal-thumb:hover img { transform: scale(1.05); }
.deal-list.two-col .deal-thumb { width: 72px; height: 72px; }
.deal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; }
.tag-code { background: var(--accent-soft); color: var(--accent-dark); }
.tag-deal { background: #fef3c7; color: #92400e; }
.tag-verified { background: var(--emerald-soft); color: var(--emerald-dark); }
.tag-new { background: #dbeafe; color: #1d4ed8; }
.tag-hot { background: #ffe4e6; color: var(--hot); }
.tag-pop { background: #f1f5f9; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.deal-title { font-size: 1.08rem; font-weight: 750; margin: 0 0 4px; }
.deal-price { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 6px; }
.price-now { font-size: 1.08rem; font-weight: 800; color: var(--emerald-dark); }
.price-rrp { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.deal-desc { margin: 0; color: var(--ink-2); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-desc.open { -webkit-line-clamp: unset; display: block; }
.desc-more { background: none; border: 0; padding: 0; color: var(--accent); font-size: .85rem; font-weight: 650; }
.deal-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: .84rem; color: var(--muted); }
.deal-meta .exp.soon { color: var(--hot); font-weight: 700; }
.store-link { font-weight: 600; }
.deal-action .btn { min-width: 150px; height: 48px; }
.btn-deal { background: var(--hero-deep); color: #fff; }
.btn-deal:hover { background: var(--hero-mid); color: #fff; }

/* "Peel" code button */
.btn-code { position: relative; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; padding-right: 54px; overflow: hidden; }
.btn-code:hover { background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%); color: #fff; }
.btn-code .peel { position: absolute; right: 0; top: 0; bottom: 0; width: 46px; display: grid; place-items: center; background: #fff; color: var(--ink); border: 2px dashed var(--accent); border-left: 0; border-radius: 0 10px 10px 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; letter-spacing: .05em; }
.btn-code .peel::before { content: ""; position: absolute; left: -12px; top: 0; border-style: solid; border-width: 0 0 48px 12px; border-color: transparent transparent var(--accent-dark) transparent; transition: .15s; }
.btn-code:hover .peel::before { left: -18px; border-width: 0 0 48px 18px; }
.btn-code.revealed { background: #fff; color: var(--ink); border: 2px dashed var(--accent); padding-right: 20px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.btn-code.revealed .peel { display: none; }

.deal.is-expired { opacity: .62; box-shadow: none; border: 1px solid var(--line); }
.deal.is-expired .deal-badge { background: #f1f5f9; color: var(--muted); }

/* ---------- Logos ---------- */
.sc-logo-fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 32px; font-weight: 900; font-size: 1.4rem; color: var(--accent-dark); background: var(--accent-soft); border-radius: 8px; }

/* ---------- Store grid ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.store-grid.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.store-card { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 12px; color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.store-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.store-card-logo { display: grid; place-items: center; width: 100%; height: 56px; margin-bottom: 10px; }
.store-card-logo img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.store-card-name { font-weight: 700; font-size: .95rem; line-height: 1.25; }
.store-card-meta { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.store-card-meta strong { color: var(--accent-dark); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.cat-card { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 18px; color: var(--ink); text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.cat-icon { font-size: 1.8rem; }
.cat-name { font-weight: 750; }
.cat-meta { font-size: .84rem; color: var(--muted); }

/* ---------- A–Z ---------- */
.store-filter { margin-top: 16px; max-width: 420px; }
.store-filter input { width: 100%; height: 46px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; font-size: 1rem; }
.store-filter input:focus { outline: none; border-color: var(--accent); }
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; position: sticky; top: 118px; background: var(--bg); padding: 10px 0; z-index: 5; }
.az-nav a, .az-nav span { display: grid; place-items: center; min-width: 36px; height: 36px; border-radius: 8px; font-weight: 700; }
.az-nav a { background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.az-nav a:hover { background: var(--accent); color: #fff; }
.az-nav span { color: #cbd5e1; }
.az-group { margin-bottom: 28px; scroll-margin-top: 180px; }
.az-group h2 { font-size: 1.4rem; color: var(--accent-dark); border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.az-list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.az-list li { padding: 4px 0; break-inside: avoid; }
.az-list a { color: var(--ink-2); }
.az-list span { color: var(--muted); font-size: .8rem; }

/* ---------- Steps ---------- */
.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-grid li { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 24px; text-align: center; }
.steps-grid span { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; font-weight: 900; font-size: 1.2rem; margin-bottom: 10px; }
.steps-grid h3 { font-size: 1.1rem; }
.steps-grid p { margin: 0; color: var(--muted); }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card h2, .post-card h3 { font-size: 1.1rem; margin: 16px 18px 6px; }
.post-card p { margin: 0 18px 18px; color: var(--muted); font-size: .92rem; }

/* ---------- Prose / FAQ ---------- */
.prose { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 28px; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); }
.prose.single { margin-top: 32px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-2); }
.faq details p { margin: 0; }
.empty-state { background: #fff; border-radius: var(--radius); padding: 28px; text-align: center; box-shadow: var(--shadow); margin-bottom: 20px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 28px 0; }
.pagination .page, .pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); font-weight: 700; color: var(--ink); text-decoration: none; }
.pagination .current { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; }
.pagination .dots { background: none; box-shadow: none; }

/* ---------- Code modal ---------- */
.code-modal { border: 0; border-radius: 20px; padding: 32px 28px 24px; width: min(480px, 92vw); text-align: center; box-shadow: 0 24px 64px rgba(15, 23, 42, .3); }
.code-modal::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
.cm-close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 2rem; color: var(--muted); line-height: 1; }
.cm-logo img { max-height: 60px; width: auto; object-fit: contain; }
.cm-store { margin: 8px 0 4px; color: var(--muted); font-weight: 600; }
.cm-title { font-size: 1.25rem; }
.cm-code-wrap { display: flex; align-items: stretch; border: 2px dashed var(--accent); border-radius: 12px; overflow: hidden; margin: 18px 0 8px; }
.cm-code { flex: 1; display: grid; place-items: center; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 800; letter-spacing: .08em; padding: 12px; background: var(--accent-soft); color: var(--hero-deep); word-break: break-all; }
.cm-copy { border-radius: 0; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: #fff; }
.cm-hint { visibility: hidden; color: var(--emerald-dark); font-weight: 650; font-size: .9rem; margin: 0 0 14px; }
.code-modal.copied .cm-hint { visibility: visible; }
.cm-desc { color: var(--muted); font-size: .88rem; margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-deep); color: #cbd5e1; margin-top: 56px; padding-top: 48px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 32px; padding: 18px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .84rem; color: #94a3b8; }
.footer-bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.layout { grid-template-columns: 1fr; }
	.deal-list.two-col { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
	.header-inner { height: 60px; gap: 8px; }
	.menu-toggle, .search-toggle { display: block; }
	.search-toggle { margin-left: auto; }
	.brand { flex: 1; text-align: center; }
	.brand-text { font-size: 1.05rem; }
	.header-search { display: none; position: absolute; left: 0; right: 0; top: 60px; max-width: none; padding: 10px 16px; background: #fff; border-bottom: 1px solid var(--line); }
	.search-open .header-search { display: flex; }
	.header-search button { right: 20px; top: 14px; }
	.site-nav { display: none; }
	.nav-open .site-nav { display: block; max-height: calc(100vh - 60px); overflow-y: auto; }
	.nav-menu { flex-direction: column; }
	.has-mega .mega, .has-mega:hover .mega { display: grid; position: static; box-shadow: none; width: auto; grid-template-columns: 1fr 1fr; padding: 0 0 8px 12px; }
	.nav-menu .sub-menu { position: static; display: block; box-shadow: none; }
	.hero { padding: 36px 0; }
	.big-search { flex-direction: column; }
	.big-search .btn { height: 50px; }
	.store-head { flex-wrap: wrap; gap: 16px; }
	.store-head-logo { width: 88px; height: 88px; border-radius: 14px; padding: 8px; }
	.store-head-text { flex: 1 1 calc(100% - 110px); }
	.store-visit { width: 100%; }
	.deal { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 14px; }
	.deal-badge { min-height: 72px; }
	.deal-thumb, .deal-list.two-col .deal-thumb { width: 64px; height: 64px; }
	.badge-big { font-size: 1.15rem; }
	.deal-action { grid-column: 1 / -1; }
	.deal-action .btn { width: 100%; }
	.steps-grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.az-nav { top: 60px; }
	.prose { padding: 20px; }
}
