/*
Theme Name: Coupon Rasul
Theme URI: https://example.com/coupon-rasul
Author: Coupon Rasul
Description: A dark, neon-accented affiliate coupon and deals theme. Ships with Coupons, Stores and Hero Slide post types, region filtering, live countdown timers, copy-to-clipboard codes, affiliate click tracking and a one-click demo importer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coupon-rasul
Tags: dark, custom-colors, custom-menu, custom-logo, featured-images, translation-ready, e-commerce, blog
*/
/* Coupon Rasul - front-end styles (tokens mirror the original Tailwind config) */

:root {
  --charcoal-950: #0a0a0a;
  --charcoal-900: #0f172a;
  --charcoal-800: #1e293b;
  --charcoal-700: #334155;
  --neon: #CCFF00;
  --neon-dark: #b3e600;
  --neon-light: #e0ff66;
  --white: #f8fafc;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal-950);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.ico { flex-shrink: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--charcoal-900); }
::-webkit-scrollbar-thumb { background: var(--charcoal-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; border-radius: 6px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--neon); color: var(--charcoal-950); padding: 10px 16px; font-weight: 700; }
.skip-link:focus { left: 12px; top: 12px; }

.shell { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .shell { padding: 0 24px; } }
@media (min-width: 1024px) { .shell { padding: 0 32px; } }

.page { padding: 24px 0 48px; }
@media (min-width: 768px) { .page { padding: 32px 0 56px; } }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.2; }

.page-title { font-size: 30px; margin-bottom: 8px; }
@media (min-width: 768px) { .page-title { font-size: 36px; } }
.page-lede { color: var(--slate-400); margin: 0 0 24px; }

.section { margin-top: 48px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-title { font-size: 24px; display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) { .section-title { font-size: 30px; } }
.section-title .ico { color: var(--neon); }
.view-all { color: var(--neon); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.view-all:hover { text-decoration: underline; }
.muted { color: var(--slate-400); }

/* ---------- Cards ---------- */

.card {
  background: var(--charcoal-900);
  border: 1px solid var(--charcoal-700);
  border-radius: 12px;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.card-hover:hover { border-color: rgba(204,255,0,.5); box-shadow: 0 0 15px rgba(204,255,0,.15); transform: translateY(-2px); }

/* ---------- Buttons ---------- */

.neon-btn {
  background: var(--neon); color: var(--charcoal-950); font-weight: 700;
  border: none; border-radius: 8px; padding: 10px 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: box-shadow .2s, transform .1s;
}
.neon-btn:hover { box-shadow: 0 0 20px rgba(204,255,0,.5); }
.neon-btn:active { transform: scale(.97); }
.neon-btn-sm {
  background: var(--neon); color: var(--charcoal-950); font-weight: 700; font-size: 14px;
  border: none; border-radius: 6px; padding: 8px 16px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: box-shadow .2s, transform .1s;
}
.neon-btn-sm:hover { box-shadow: 0 0 15px rgba(204,255,0,.5); }
.neon-btn-sm:active { transform: scale(.97); }
.ghost-btn {
  background: var(--charcoal-800); color: var(--slate-300); border: 1px solid var(--charcoal-700);
  border-radius: 8px; padding: 9px 16px; font-size: 14px; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--slate-600); color: var(--white); }

.input-base {
  background: var(--charcoal-800); border: 1px solid var(--charcoal-700); color: var(--white);
  border-radius: 8px; padding: 10px 16px; width: 100%; font: inherit; font-size: 15px;
}
.input-base::placeholder { color: var(--slate-500); }
.input-base:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon); }

.search-wrap { position: relative; }
.search-wrap .input-base { padding-left: 40px; }
.search-wrap .search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate-500); pointer-events: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--charcoal-800);
}
.header-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 8px; background: var(--neon); color: var(--charcoal-950);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  overflow: hidden; flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; display: block; line-height: 1.15; }
.brand-tag { font-size: 11px; color: var(--slate-500); display: block; }

.header-search { flex: 1; min-width: 0; max-width: 560px; }

.region-picker { position: relative; flex-shrink: 0; }
.region-btn {
  display: flex; align-items: center; gap: 8px; background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700); border-radius: 8px; padding: 9px 14px; color: #fff; cursor: pointer;
}
.region-btn .ico { color: var(--neon); }
.region-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 210px;
  background: var(--charcoal-900); border: 1px solid var(--charcoal-700); border-radius: 12px;
  padding: 6px; max-height: 340px; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,.5);
}
.region-menu[hidden] { display: none; }
.region-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--slate-300); }
.region-menu a:hover { background: var(--charcoal-800); color: #fff; }
.region-menu a.is-active { background: rgba(204,255,0,.1); color: var(--neon); font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { font-size: 15px; font-weight: 500; color: var(--slate-300); }
.main-nav a:hover { color: #fff; }
.main-nav a.is-active { color: var(--neon); font-weight: 600; }

.nav-toggle { display: none; background: var(--charcoal-800); border: 1px solid var(--charcoal-700); color: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; }

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

.hero { position: relative; border-radius: 16px; overflow: hidden; background: var(--charcoal-900); border: 1px solid var(--charcoal-800); }
.hero-viewport { position: relative; min-height: 420px; }
@media (min-width: 768px) { .hero-viewport { min-height: 520px; } }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease; display: flex; align-items: center; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,.96) 0%, rgba(10,10,10,.85) 45%, rgba(10,10,10,.35) 100%); }
.hero-body { position: relative; padding: 32px 24px; max-width: 640px; }
@media (min-width: 768px) { .hero-body { padding: 56px; } }
.hero-badge {
  display: inline-block; background: var(--neon); color: var(--charcoal-950);
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 7px 14px; border-radius: 8px; margin-bottom: 20px;
}
.hero-title { font-size: 38px; margin-bottom: 14px; color: #fff; }
@media (min-width: 768px) { .hero-title { font-size: 60px; } }
.hero-sub { color: var(--slate-300); font-size: 17px; max-width: 480px; margin: 0 0 26px; }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  background: rgba(15,23,42,.85); border: 1px solid var(--charcoal-700); color: #fff;
  display: grid; place-items: center;
}
.car-arrow:hover { border-color: var(--neon); color: var(--neon); }
.car-arrow.prev { left: 16px; }
.car-arrow.next { right: 16px; }

.car-dots { display: flex; gap: 8px; justify-content: center; align-items: center; }
.hero .car-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--slate-600); cursor: pointer; transition: width .25s, background .25s; }
.car-dots button.is-active { width: 32px; background: var(--neon); }

/* ---------- Rail carousel ---------- */

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

.rail.rail-deals > * { width: calc(83% - 16px); }
.rail.rail-tiles > * { width: calc(45% - 12px); }
.rail.rail-tiles { gap: 12px; }
@media (min-width: 640px) {
  .rail.rail-deals > * { width: calc(40% - 16px); }
  .rail.rail-tiles > * { width: calc(25% - 12px); }
}
@media (min-width: 1024px) {
  .rail.rail-deals > * { width: calc(25% - 12px); }
  .rail.rail-tiles > * { width: calc(16.666% - 10px); }
  .rail.rail-cats > * { width: calc(20% - 10px); }
}
.rail-wrap .car-arrow.prev { left: -18px; }
.rail-wrap .car-arrow.next { right: -18px; }
.rail-wrap .car-dots { margin-top: 20px; }
@media (max-width: 1023px) { .rail-wrap .car-arrow { display: none; } }

/* ---------- Coupon card ---------- */

.coupon { padding: 20px; display: flex; flex-direction: column; height: 100%; }
.coupon-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.coupon-store { display: flex; align-items: center; gap: 12px; min-width: 0; }
.store-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--charcoal-800); flex-shrink: 0; }
.store-logo.fallback { display: grid; place-items: center; background: rgba(204,255,0,.2); color: var(--neon); font-weight: 700; font-size: 18px; }
.coupon-store h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: #fff; }
.coupon-store span { font-size: 12px; color: var(--slate-500); }
.discount-badge {
  background: rgba(204,255,0,.1); border: 1px solid rgba(204,255,0,.3); border-radius: 999px;
  padding: 5px 11px; color: var(--neon); font-weight: 700; font-size: 12px; text-align: center; flex-shrink: 0;
}
.coupon-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: #fff; margin-bottom: 4px; }
.coupon-desc { color: var(--slate-400); font-size: 12px; margin: 0 0 12px; }

.countdown { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-family: ui-monospace, Menlo, monospace; font-size: 12px; margin-bottom: 12px; }
.countdown .label { color: var(--slate-400); }
.countdown .unit { background: var(--charcoal-800); color: var(--neon); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.countdown .sep { color: rgba(204,255,0,.5); }
.countdown.is-expired { color: #f87171; }

.coupon-actions { margin-top: auto; display: flex; align-items: stretch; gap: 8px; }
.code-box {
  flex: 1; border: 2px dashed var(--charcoal-700); border-radius: 8px; padding: 8px 12px;
  text-align: center; font-family: ui-monospace, Menlo, monospace; font-weight: 700;
  color: var(--neon); font-size: 14px; letter-spacing: .08em; background: transparent; cursor: pointer;
  transition: border-color .2s;
}
.card:hover .code-box, .code-box:hover { border-color: rgba(204,255,0,.5); }
.coupon-note { font-size: 12px; color: var(--neon); text-align: center; margin: 8px 0 0; }

/* ---------- Store tile ---------- */

.store-tile { padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; }
.store-tile .thumb { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--charcoal-800); display: grid; place-items: center; margin-bottom: 12px; }
.store-tile .thumb img { width: 100%; height: 100%; object-fit: cover; }
.store-tile .thumb .ico { color: var(--neon); }
.store-tile h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.store-count { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.store-count .ico { color: var(--neon); }
.store-count strong { color: var(--neon); font-weight: 500; }
.store-count span { color: var(--slate-500); }

/* ---------- Category tile ---------- */

.cat-tile { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; height: 100%; cursor: pointer; }
.cat-tile .cat-ico { width: 56px; height: 56px; border-radius: 12px; background: rgba(204,255,0,.1); display: grid; place-items: center; margin-bottom: 12px; color: var(--neon); }
.cat-tile span { font-family: var(--font-sans); font-size: 14px; font-weight: 600; color: #fff; }
.cat-tile.is-active { border-color: var(--neon); background: rgba(204,255,0,.05); }
.cat-tile.is-active .cat-ico { background: var(--neon); color: var(--charcoal-950); }

/* ---------- Grids ---------- */

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.grid-cats { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid-cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-cats { grid-template-columns: repeat(5, 1fr); } }
.grid-blog { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-blog { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-blog { grid-template-columns: repeat(3, 1fr); } }
.grid-blog-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-blog-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-blog-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Blog card ---------- */

.post-card { overflow: hidden; display: block; height: 100%; }
.post-thumb { aspect-ratio: 16/10; background: var(--charcoal-800); overflow: hidden; display: grid; place-items: center; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-thumb .ico { color: var(--slate-600); }
.post-body { padding: 20px; }
.post-body.compact { padding: 16px; }
.cat-pill { display: inline-block; background: rgba(204,255,0,.1); color: var(--neon); font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.post-card h3 { font-family: var(--font-display); font-size: 18px; color: #fff; margin-bottom: 8px; }
.post-card h3.sm { font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.post-card:hover h3 { color: var(--neon); }
.post-card p { font-size: 14px; color: var(--slate-400); margin: 0 0 12px; }
.post-card p.sm { font-size: 12px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--slate-500); }
.post-meta .read { display: flex; align-items: center; gap: 4px; }

/* ---------- Pills, tabs, toggles ---------- */

.tab-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 16px; scrollbar-width: none; }
.tab-row::-webkit-scrollbar { display: none; }
.tab {
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap;
  background: var(--charcoal-800); color: var(--slate-300); border: none; cursor: pointer; transition: background .2s;
}
.tab:hover { background: var(--charcoal-700); }
.tab.is-active { background: var(--neon); color: var(--charcoal-950); }

.toggle-row { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  background: var(--charcoal-800); color: var(--slate-400); border: 1px solid var(--charcoal-700);
}
.toggle.is-active { background: rgba(204,255,0,.1); color: var(--neon); border-color: rgba(204,255,0,.3); }

.hot-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(204,255,0,.1);
  border: 1px solid rgba(204,255,0,.3); border-radius: 999px; padding: 6px 16px;
  color: var(--neon); font-size: 14px; font-weight: 500; margin-bottom: 12px;
}
.center-head { text-align: center; margin: 40px 0 32px; }
.center-head h1 { font-size: 30px; }
@media (min-width: 768px) { .center-head h1 { font-size: 36px; } }
.center-head p { color: var(--slate-400); margin-top: 8px; }

.cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.cat-head .box { width: 40px; height: 40px; border-radius: 8px; background: rgba(204,255,0,.1); display: grid; place-items: center; color: var(--neon); }

/* ---------- A-Z directory ---------- */

.az-group { margin-bottom: 28px; }
.az-letter { font-family: var(--font-display); font-size: 20px; color: var(--neon); margin-bottom: 12px; }
.az-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .az-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .az-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Article ---------- */

.prose { max-width: 760px; color: var(--slate-300); font-size: 17px; }
.prose h1 { font-size: 32px; color: #fff; margin-bottom: 16px; }
.prose h2 { font-family: var(--font-display); font-size: 24px; color: var(--neon); margin: 32px 0 16px; }
.prose h3 { font-size: 20px; color: #fff; margin: 24px 0 12px; }
.prose p { margin: 0 0 16px; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--neon); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 24px 0; }
.prose blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--neon); color: var(--slate-400); }
.breadcrumb { font-size: 13px; color: var(--slate-500); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--neon); }

/* ---------- Empty ---------- */

.empty { border: 1px dashed var(--charcoal-700); border-radius: 12px; padding: 48px 24px; text-align: center; color: var(--slate-400); }
.empty h3 { color: #fff; margin-bottom: 8px; }

/* ---------- Newsletter + footer ---------- */

.newsletter { border-top: 1px solid var(--charcoal-800); padding: 48px 0; text-align: center; }
.newsletter .ring { width: 48px; height: 48px; border-radius: 999px; background: rgba(204,255,0,.1); display: grid; place-items: center; margin: 0 auto 16px; color: var(--neon); }
.newsletter h2 { font-size: 24px; margin-bottom: 8px; }
@media (min-width: 768px) { .newsletter h2 { font-size: 30px; } }
.newsletter p { color: var(--slate-400); margin: 0 auto 24px; max-width: 460px; }
.newsletter form { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }

.site-footer { background: var(--charcoal-950); border-top: 1px solid var(--charcoal-800); margin-top: 56px; }
.footer-grid { display: grid; gap: 32px; padding: 48px 0; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { font-family: var(--font-display); font-size: 16px; color: #fff; margin-bottom: 12px; }
.footer-grid h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; font-family: var(--font-sans); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a, .footer-grid li { color: var(--slate-400); font-size: 14px; }
.footer-grid a:hover { color: var(--neon); }
.footer-about { color: var(--slate-400); font-size: 14px; margin: 0 0 12px; }
.footer-bottom { border-top: 1px solid var(--charcoal-800); padding: 24px 0; text-align: center; color: var(--slate-500); font-size: 14px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 90;
  background: var(--neon); color: var(--charcoal-950); font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive header ---------- */

@media (max-width: 1100px) { .main-nav { gap: 16px; } .brand-tag { display: none; } }
@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .header-row { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .main-nav {
    order: 4; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0;
    display: none; padding-bottom: 6px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 11px 0; border-bottom: 1px solid var(--charcoal-800); }
}
@media (max-width: 560px) {
  .newsletter form { flex-direction: column; }
  .hero-title { font-size: 32px; }
}

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

/* ==================================================================
   WordPress specific
================================================================== */

.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: var(--neon); color: var(--charcoal-950); clip: auto !important;
  clip-path: none; display: block; font-weight: 700; height: auto; left: 12px;
  padding: 12px 20px; top: 12px; width: auto; z-index: 100000; border-radius: 8px;
}

/* Core block and editor output inside .prose */
.prose .wp-block-image img,
.prose figure img { border-radius: 12px; }
.prose figure { margin: 24px 0; }
.prose figcaption { font-size: 13px; color: var(--slate-500); margin-top: 8px; text-align: center; }
.prose .wp-block-button__link { background: var(--neon); color: var(--charcoal-950); border-radius: 8px; font-weight: 700; text-decoration: none; }
.prose .wp-block-quote { border-left: 3px solid var(--neon); padding-left: 20px; color: var(--slate-400); }
.prose .wp-block-table td, .prose .wp-block-table th { border: 1px solid var(--charcoal-700); padding: 10px 12px; }
.prose .wp-block-code, .prose pre { background: var(--charcoal-900); border: 1px solid var(--charcoal-700); border-radius: 10px; padding: 16px; overflow-x: auto; font-size: 14px; }
.prose .wp-block-separator { border: none; border-top: 1px solid var(--charcoal-700); margin: 32px 0; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.sticky .card { border-color: rgba(204,255,0,.5); }

/* Pagination */
.cr-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.cr-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 8px; background: var(--charcoal-800);
  border: 1px solid var(--charcoal-700); color: var(--slate-300); font-size: 14px; font-weight: 500;
}
.cr-pagination .page-numbers:hover { border-color: var(--neon); color: var(--neon); }
.cr-pagination .page-numbers.current { background: var(--neon); border-color: var(--neon); color: var(--charcoal-950); }

/* Widgets in the footer */
.footer-grid .widget { margin-bottom: 24px; }
.footer-grid .widget_search .search-wrap { margin-top: 8px; }
.footer-grid select { width: 100%; background: var(--charcoal-800); border: 1px solid var(--charcoal-700); color: var(--white); border-radius: 8px; padding: 8px 10px; }

/* Comments */
.cr-comments { max-width: 760px; margin-top: 48px; }
.cr-comments h2 { font-size: 22px; margin-bottom: 20px; }
.cr-comments .comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.cr-comments .comment-list li { background: var(--charcoal-900); border: 1px solid var(--charcoal-700); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.cr-comments .comment-meta { font-size: 13px; color: var(--slate-500); margin-bottom: 8px; }
.cr-comments input[type="text"], .cr-comments input[type="email"], .cr-comments input[type="url"], .cr-comments textarea {
  width: 100%; background: var(--charcoal-800); border: 1px solid var(--charcoal-700);
  color: var(--white); border-radius: 8px; padding: 10px 14px; font: inherit; margin-bottom: 14px;
}
.cr-comments .submit { background: var(--neon); color: var(--charcoal-950); font-weight: 700; border: none; border-radius: 8px; padding: 11px 22px; cursor: pointer; }

/* Editor placeholder state for empty sections */
.cr-notice {
  border: 1px dashed var(--charcoal-700); border-radius: 12px; padding: 32px 24px;
  text-align: center; color: var(--slate-400); background: rgba(15,23,42,.4);
}
.cr-notice a { color: var(--neon); text-decoration: underline; }

/* ==================================================================
   Auth pages (login, register, forgot, account)
================================================================== */

.cr-auth { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 48px 16px; }
.cr-auth-card { width: 100%; max-width: 440px; background: var(--charcoal-900); border: 1px solid var(--charcoal-700); border-radius: 16px; padding: 36px; }
.cr-auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 24px; }
.cr-auth-brand .brand-mark { width: 44px; height: 44px; }
.cr-auth-brand .brand-name { font-size: 20px; }
.cr-auth-title { font-size: 26px; text-align: center; margin-bottom: 6px; }
.cr-auth-sub { color: var(--slate-400); text-align: center; font-size: 14px; margin: 0 0 24px; }
.cr-auth-form { display: flex; flex-direction: column; gap: 6px; }
.cr-auth-form label { font-size: 13px; font-weight: 600; color: var(--slate-300); margin-top: 10px; }
.cr-auth-remember { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; margin-top: 14px !important; font-weight: 400 !important; color: var(--slate-400) !important; }
.cr-auth-remember input { width: 16px; height: 16px; accent-color: var(--neon); }
.cr-auth-submit { margin-top: 20px; width: 100%; }
.cr-auth-alert { border-radius: 10px; padding: 11px 14px; font-size: 14px; margin-bottom: 18px; }
.cr-auth-alert.error { background: rgba(244,104,94,.12); border: 1px solid rgba(244,104,94,.4); color: #ffb3ad; }
.cr-auth-alert.ok { background: rgba(204,255,0,.1); border: 1px solid rgba(204,255,0,.35); color: var(--neon); }
.cr-auth-links { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; text-align: center; font-size: 14px; color: var(--slate-400); }
.cr-auth-links a { color: var(--neon); }
.cr-auth-links a:hover { text-decoration: underline; }
.cr-account-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.cr-account-links .ghost-btn, .cr-account-links .neon-btn { width: 100%; }

/* Social buttons */
.cr-social { margin-bottom: 4px; }
.cr-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: 10px; margin-bottom: 10px;
  background: var(--btn); color: var(--txt); font-weight: 600; font-size: 14.5px;
  border: 1px solid rgba(255,255,255,.12);
}
.cr-social-btn:hover { filter: brightness(1.05); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.cr-social-divider { text-align: center; position: relative; margin: 18px 0; }
.cr-social-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--charcoal-700); }
.cr-social-divider span { position: relative; background: var(--charcoal-900); padding: 0 12px; color: var(--slate-500); font-size: 13px; }

/* ==================================================================
   Landing pages (Google Ads)
================================================================== */

.cr-landing-body { background: var(--charcoal-950); }
.cr-lp { min-height: 100vh; display: flex; flex-direction: column; }
.cr-lp-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; max-width: 1160px; margin: 0 auto; width: 100%; }
.cr-lp-trust { font-size: 13px; color: var(--slate-400); }

.cr-lp-hero { position: relative; padding: 64px 24px 72px; text-align: center; overflow: hidden; }
.cr-lp-hero.has-bg { padding: 96px 24px 104px; }
.cr-lp-hero-bg { position: absolute; inset: 0; }
.cr-lp-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.cr-lp-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.82), rgba(10,10,10,.94)); }
.cr-lp-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.cr-lp-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 16px; }
.cr-lp-sub { color: var(--slate-300); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.cr-lp-cta { font-size: 16px; padding: 14px 28px; }

.cr-lp-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.cr-lp-form .input-base { flex: 1; min-width: 200px; }
.cr-lp-thanks { display: inline-flex; align-items: center; gap: 8px; background: rgba(204,255,0,.1); border: 1px solid rgba(204,255,0,.35); color: var(--neon); padding: 14px 22px; border-radius: 12px; font-weight: 600; }

.cr-lp-body { max-width: 760px; margin: 0 auto; padding: 24px; }
.cr-lp-offers { padding: 48px 0 64px; }
.cr-lp-foot { margin-top: auto; padding: 32px 24px; text-align: center; color: var(--slate-500); font-size: 13px; border-top: 1px solid var(--charcoal-800); }
.cr-lp-foot a { color: var(--slate-400); }
.cr-lp-foot a:hover { color: var(--neon); }

@media (max-width: 560px) {
  .cr-lp-form { flex-direction: column; }
  .cr-lp-bar { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* Header account link */
.cr-header-account { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; background: var(--charcoal-800); border: 1px solid var(--charcoal-700); border-radius: 8px; padding: 9px 14px; color: var(--slate-300); font-size: 14px; font-weight: 500; }
.cr-header-account:hover { border-color: var(--neon); color: var(--neon); }
.cr-header-account .ico { color: var(--neon); }
@media (max-width: 900px) { .cr-header-account { order: 4; } }

.cr-social-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 24px 0;
  flex-wrap: wrap;
  border-top: 1px solid var(--charcoal-800);
  margin-top: 8px;
}

.cr-social-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--neon);
  transition: all 0.25s ease;
  text-decoration: none;
}

.cr-social-bar a:hover {
  background: var(--neon);
  color: var(--charcoal-950);
  transform: translateY(-3px);
}
