/* ==========================================================================
   Wavedeals — public theme (ported from front/src/app design tokens)
   Dark surf palette · Clash Display / Inter / Space Mono
   ========================================================================== */

:root {
  --wd-bg: #07080f;
  --wd-fg: #e8eaf0;
  --wd-card: #0f1120;
  --wd-card2: #151828;
  --wd-muted: #7a8099;
  --wd-dim: #5a6080;
  --wd-faint: #3a3e55;
  --wd-primary: #00d4c8;
  --wd-primary-2: #00b8ae;
  --wd-accent: #ff6b35;
  --wd-border: rgba(0, 212, 200, 0.12);
  --wd-radius: 0.75rem;
  --wd-font-display: 'Clash Display', 'Inter', system-ui, sans-serif;
  --wd-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wd-font-mono: 'Space Mono', ui-monospace, monospace;
  --wd-max: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body.wd {
  background: var(--wd-bg);
  color: var(--wd-fg);
  font-family: var(--wd-font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body.wd a { color: inherit; text-decoration: none; }
body.wd img { max-width: 100%; display: block; }

.wd-container { max-width: var(--wd-max); margin: 0 auto; padding: 0 20px; }
.wd-main { position: relative; z-index: 1; padding-top: 60px; }

.wd-display { font-family: var(--wd-font-display); font-weight: 700; letter-spacing: -0.02em; }
.wd-mono { font-family: var(--wd-font-mono); }

/* ---- Floating decorative blobs ---- */
.wd-floats { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.wd-float { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18; animation: wd-drift 22s ease-in-out infinite; }
.wd-float.a { width: 380px; height: 380px; background: #00d4c8; top: -80px; left: -60px; }
.wd-float.b { width: 320px; height: 320px; background: #ff6b35; top: 30%; right: -80px; animation-delay: -7s; }
.wd-float.c { width: 300px; height: 300px; background: #7b7eff; bottom: -100px; left: 30%; animation-delay: -14s; }
@keyframes wd-drift { 0%,100% { transform: translate(0,0) scale(1);} 33% { transform: translate(40px,-30px) scale(1.08);} 66% { transform: translate(-30px,40px) scale(0.95);} }

/* ---- Navbar ---- */
.wd-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7,8,15,0.88);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0,212,200,0.1);
}
.wd-nav__inner { max-width: var(--wd-max); margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 16px; }
.wd-logo { display: flex; align-items: center; gap: 8px; }
.wd-logo__mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg,#00d4c8,#ff6b35); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .2s; }
.wd-logo:hover .wd-logo__mark { transform: rotate(15deg); }
.wd-logo__text { font-family: var(--wd-font-display); font-size: 17px; font-weight: 700; color: var(--wd-fg); letter-spacing: -0.025em; white-space: nowrap; }
.wd-logo__text b { color: var(--wd-primary); font-weight: 700; }
.wd-nav__links { display: flex; gap: 2px; margin-left: 8px; }
.wd-nav__link { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--wd-dim); transition: color .15s, background .15s; }
.wd-nav__link:hover { color: var(--wd-fg); }
.wd-nav__link.is-active { color: var(--wd-fg); background: rgba(0,212,200,0.08); }
.wd-nav__search { flex: 1; max-width: 340px; margin: 0 auto; position: relative; }
.wd-nav__search input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(0,212,200,0.14); border-radius: 9px; padding: 8px 14px 8px 34px; color: var(--wd-fg); font-size: 13px; outline: none; transition: border-color .2s; }
.wd-nav__search input:focus { border-color: rgba(0,212,200,0.4); }
.wd-nav__search .wd-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--wd-faint); }
.wd-nav__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.wd-burger { display: none; background: none; border: none; color: var(--wd-fg); cursor: pointer; padding: 4px; }
.wd-mobile { display: none; border-top: 1px solid rgba(0,212,200,0.08); background: rgba(7,8,15,0.98); padding: 10px 20px 16px; }
.wd-mobile.is-open { display: block; }
.wd-mobile a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--wd-fg); }

/* ---- Buttons ---- */
.wd-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.wd-btn:hover { transform: translateY(-1px); }
.wd-btn--primary { background: linear-gradient(135deg,#00d4c8,#00b8ae); color: #07080f; }
.wd-btn--ghost { background: rgba(255,255,255,0.04); color: var(--wd-fg); border-color: var(--wd-border); }

/* ---- A-Z alphabet filter (stores page) ---- */
.wd-alpha { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.wd-alpha__btn { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px; background: var(--wd-card2); border: 1px solid var(--wd-border); color: var(--wd-muted); font-weight: 600; font-size: 14px; transition: background .15s, color .15s, transform .1s; }
.wd-alpha__btn:hover { background: rgba(0,212,200,0.1); color: var(--wd-fg); }
.wd-alpha__btn.is-active { background: linear-gradient(135deg,#00d4c8,#00b8ae); color: #07080f; border-color: transparent; }
.wd-alpha__btn.is-disabled { opacity: .3; pointer-events: none; }

/* ---- Search autocomplete dropdown ---- */
.wd-ac { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 200; background: #0f1120; border: 1px solid rgba(0,212,200,0.2); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55); display: none; max-height: 60vh; overflow-y: auto; }
.wd-ac.is-open { display: block; }
.wd-ac__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.wd-ac__item:last-child { border-bottom: none; }
.wd-ac__item:hover, .wd-ac__item.is-cur { background: rgba(0,212,200,0.08); }
.wd-ac__logo { width: 34px; height: 34px; border-radius: 8px; background: #fff; flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: 4px; font-weight: 700; color: #07080f; font-size: 13px; }
.wd-ac__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wd-ac__name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--wd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-ac__go { font-size: 11px; color: var(--wd-primary); flex-shrink: 0; }
.wd-ac__empty { padding: 14px; font-size: 13px; color: var(--wd-dim); text-align: center; }

/* ---- Section labels / headings ---- */
.wd-label { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.wd-label span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--wd-primary); text-transform: uppercase; font-family: var(--wd-font-mono); }
.wd-label .wd-ico { color: var(--wd-primary); flex-shrink: 0; }
.wd-ico { flex-shrink: 0; vertical-align: middle; }
.wd-section { padding: 48px 0; }
.wd-home-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
/* grid items default to min-width:auto and refuse to shrink below their content;
   without this a nowrap title in .wd-top blows the column out and overflows the page. */
.wd-home-split > * { min-width: 0; }
.wd-section__title { font-family: var(--wd-font-display); font-size: 28px; font-weight: 800; margin: 0 0 4px; }
.wd-section__sub { color: var(--wd-muted); font-size: 14px; margin: 0 0 28px; }

/* ---- Hero ---- */
.wd-hero { padding: 70px 0 30px; text-align: center; position: relative; }
.wd-hero h1 { font-family: var(--wd-font-display); font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1.04; margin: 14px 0 16px; letter-spacing: -0.03em; }
.wd-hero h1 .g { background: linear-gradient(135deg,#00d4c8,#ff6b35); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wd-hero p { color: var(--wd-muted); font-size: 17px; max-width: 560px; margin: 0 auto 26px; }
.wd-hero__search { max-width: 520px; margin: 0 auto; position: relative; }
.wd-hero__search input { width: 100%; background: var(--wd-card); border: 1px solid rgba(0,212,200,0.2); border-radius: 14px; padding: 16px 18px 16px 46px; color: var(--wd-fg); font-size: 15px; outline: none; }
.wd-hero__search input:focus { border-color: var(--wd-primary); }
.wd-hero__search .wd-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--wd-dim); }
.wd-hero__stats { display: flex; gap: 36px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.wd-hero__stat b { font-family: var(--wd-font-display); font-size: 26px; font-weight: 800; color: var(--wd-fg); display: block; }
.wd-hero__stat span { font-size: 12px; color: var(--wd-dim); text-transform: uppercase; letter-spacing: .08em; }

/* ---- Grids ---- */
.wd-grid { display: grid; gap: 16px; }
.wd-grid--deals { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.wd-grid--stores { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.wd-grid--cats { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

/* ---- Deal / coupon card (top-glow design) ---- */
.wd-deal { --dc: var(--wd-primary); position: relative; background: linear-gradient(135deg,#0f1120,#141728); border: 1px solid var(--wd-border); border-radius: 16px; padding: 17px 16px 16px; overflow: hidden; transition: transform .15s, box-shadow .25s; }
.wd-deal:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px var(--dc); }
.wd-deal__glow { position: absolute; top: 0; left: 0; right: 0; height: 100px; pointer-events: none; z-index: 0; }
.wd-deal__bar { position: absolute; top: 0; left: 8%; right: 8%; height: 2px; border-radius: 0 0 3px 3px; pointer-events: none; z-index: 1; }
.wd-deal > *:not(.wd-deal__glow):not(.wd-deal__bar) { position: relative; z-index: 2; }
.wd-deal__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wd-deal__logo { width: 38px; height: 38px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #07080f; background: #fff; padding: 5px; }
.wd-deal__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wd-deal__id { min-width: 0; flex: 1; }
.wd-deal__name { display: block; font-size: 14px; font-weight: 700; color: var(--wd-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-deal__codes { font-size: 11px; color: var(--wd-dim); }
.wd-deal__cat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 20px; border: 1px solid; font-size: 9px; font-weight: 700; font-family: var(--wd-font-mono); letter-spacing: .04em; text-transform: uppercase; max-width: 110px; }
.wd-deal__cat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-deal__desc { font-size: 12.5px; color: var(--wd-muted); margin: 0 0 12px; line-height: 1.45; min-height: 36px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-deal__disc { display: inline-block; font-family: var(--wd-font-display); font-size: 20px; font-weight: 800; padding: 6px 14px; border-radius: 10px; border: 1px solid; margin-bottom: 12px; }
.wd-deal__code { margin-bottom: 12px; }
.wd-deal__code .wd-code { display: flex; width: 100%; }
.wd-deal__code .wd-code__inner { flex: 1; }
.wd-deal__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--wd-faint); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 11px; }
.wd-deal__verified { display: inline-flex; align-items: center; gap: 4px; color: var(--wd-primary); font-weight: 600; }

/* ---- Curtain code ---- */
.wd-code { display: inline-flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.4); border: 1px dashed rgba(255,255,255,0.14); border-radius: 9px; overflow: hidden; position: relative; }
.wd-code__inner { position: relative; padding: 7px 14px; min-width: 96px; text-align: center; }
.wd-code__text { font-family: var(--wd-font-mono); font-size: 12px; font-weight: 700; color: var(--wd-fg); letter-spacing: .12em; filter: blur(5px); user-select: none; transition: filter .45s ease; }
.wd-code.is-revealed .wd-code__text { filter: none; user-select: auto; }
/* curtain: a colored panel that wipes away to the left on reveal */
.wd-code__curtain { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; gap: 6px; color: #07080f; font-size: 11px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; transform-origin: left center; transition: transform .45s cubic-bezier(.4,0,.2,1), opacity .25s ease .25s; }
.wd-code__curtain svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.wd-code__curtain:hover { filter: brightness(1.06); }
.wd-code.is-revealed .wd-code__curtain { transform: scaleX(0); opacity: 0; pointer-events: none; }

/* large variant — used in the Deal of the Day hero */
.wd-code--lg .wd-code__inner { padding: 13px 22px; min-width: 150px; }
.wd-code--lg .wd-code__text { font-size: 17px; letter-spacing: .14em; }
.wd-code--lg .wd-code__curtain { font-size: 14px; gap: 8px; }
.wd-code--lg .wd-code__copy { padding: 11px 18px; font-size: 13px; }
.wd-code--lg .wd-code__copy svg { width: 13px; height: 13px; }
.wd-code__copy { display: none; align-items: center; gap: 4px; padding: 5px 10px; margin-right: 4px; border-radius: 7px; color: #07080f; border: none; cursor: pointer; font-size: 10px; font-weight: 700; flex-shrink: 0; transition: background .2s, color .2s, transform .15s; }
.wd-code.is-revealed .wd-code__copy { display: inline-flex; animation: wd-pop .34s cubic-bezier(.2,.8,.3,1); }
.wd-code__copy:hover { transform: translateY(-1px); }
.wd-code__copy.is-copied { background: rgba(0,212,200,0.15) !important; color: var(--wd-primary) !important; animation: wd-pulse .4s ease; }
.wd-code__copy .wd-ico-check { display: none; }
.wd-code__copy.is-copied .wd-ico-copy { display: none; }
.wd-code__copy.is-copied .wd-ico-check { display: inline; }
@keyframes wd-pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes wd-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.13); } 100% { transform: scale(1); } }

/* ---- Top codes leaderboard ---- */
.wd-top { background: linear-gradient(135deg,#0f1120,#151828); border: 1px solid var(--wd-border); border-radius: 18px; overflow: hidden; }
.wd-top__row { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.wd-top__row:last-child { border-bottom: none; }
.wd-top__rank { font-family: var(--wd-font-mono); font-size: 12px; font-weight: 700; width: 22px; text-align: center; flex-shrink: 0; color: var(--wd-dim); }
.wd-top__rank.r1 { color: #d4a847; } .wd-top__rank.r2 { color: #b0b8c8; } .wd-top__rank.r3 { color: #c8975a; }
.wd-top__logo { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; flex-shrink: 0; display:flex;align-items:center;justify-content:center;font-weight:700;color:#07080f; background:#fff; padding:4px; }
.wd-top__logo img { object-fit: contain !important; }
.wd-top__main { flex: 1; min-width: 0; }
.wd-top__name { font-size: 13px; font-weight: 600; color: var(--wd-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-top__sub { font-size: 11px; color: var(--wd-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-top__disc { font-family: var(--wd-font-display); font-size: 16px; font-weight: 800; width: 80px; text-align: center; flex-shrink: 0; }

/* ---- Deal of the day ---- */
.wd-dod { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--wd-border); background: var(--wd-card); }
.wd-dod__img { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; background: #fff; padding: 40px; }
.wd-dod__img img { max-width: 100%; max-height: 220px; width: auto; height: auto; object-fit: contain; }
.wd-dod__body { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.wd-dod__body h3 { font-family: var(--wd-font-display); font-size: 30px; font-weight: 800; margin: 10px 0 8px; }
.wd-dod__body p { color: var(--wd-muted); font-size: 14px; margin: 0 0 18px; }
.wd-countdown { display: flex; gap: 10px; margin: 6px 0 20px; }
.wd-countdown__cell { background: rgba(0,0,0,0.35); border: 1px solid var(--wd-border); border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 52px; }
.wd-countdown__cell b { font-family: var(--wd-font-mono); font-size: 22px; font-weight: 700; color: var(--wd-primary); display: block; }
.wd-countdown__cell span { font-size: 9px; color: var(--wd-dim); text-transform: uppercase; letter-spacing: .1em; }

/* ---- Store card ---- */
.wd-store { background: var(--wd-card); border: 1px solid var(--wd-border); border-radius: 16px; overflow: hidden; transition: transform .15s; }
.wd-store:hover { transform: translateY(-4px); }
.wd-store__photo { height: 110px; position: relative; display: flex; align-items: center; justify-content: center; background: #fff; padding: 18px; }
.wd-store__photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.wd-store__body { padding: 14px 16px 16px; }
.wd-store__name { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.wd-store__cat { font-size: 11px; color: var(--wd-dim); text-transform: uppercase; letter-spacing: .06em; }
.wd-store__meta { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--wd-muted); }
.wd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* ---- Category card ---- */
.wd-cat { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border-radius: 16px; background: var(--wd-card); border: 1px solid var(--wd-border); transition: transform .15s, border-color .15s; min-width: 0; }
.wd-cat:hover { transform: translateY(-4px); }
.wd-cat__emoji { font-size: 30px; }
.wd-cat__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.04); margin-bottom: 2px; }
.wd-cat__name { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.wd-cat__count { font-size: 12px; color: var(--wd-dim); }

/* ---- Shop detail: header ---- */
.wd-shop-head { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 10px 0 26px; }
.wd-shop-logo { width: 96px; height: 96px; border-radius: 18px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; flex-shrink: 0; box-shadow: 0 8px 30px rgba(0,0,0,.35); }
.wd-shop-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.wd-shop-logo span { font-family: var(--wd-font-display); font-size: 28px; font-weight: 800; color: #07080f; }
.wd-shop-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--wd-muted); }
.wd-trust { display: inline-flex; align-items: center; gap: 5px; }

/* ---- Shop detail: highlights box ---- */
.wd-highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--wd-border); border: 1px solid var(--wd-border); border-radius: 16px; overflow: hidden; margin-bottom: 8px; }
.wd-highlights > div { background: var(--wd-card); padding: 18px 20px; text-align: center; }
.wd-highlights b { font-family: var(--wd-font-display); font-size: 20px; font-weight: 800; color: var(--wd-fg); display: block; }
.wd-highlights span { font-size: 11px; color: var(--wd-dim); text-transform: uppercase; letter-spacing: .07em; }

/* ---- Shop detail: coupon rows ---- */
.wd-coupons { display: flex; flex-direction: column; gap: 14px; }
.wd-coupon { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 18px 22px; background: linear-gradient(135deg,#0f1120,#151828); border: 1px solid var(--wd-border); border-radius: 16px; }
.wd-coupon__disc { text-align: center; font-family: var(--wd-font-display); font-size: 25px; font-weight: 800; line-height: 1.1; }
.wd-coupon__v { display: flex; align-items: center; justify-content: center; gap: 3px; font-family: var(--wd-font-body); font-size: 10px; font-weight: 600; color: var(--wd-primary); margin-top: 4px; }
.wd-coupon__main { min-width: 0; }
.wd-coupon__title { font-size: 15px; font-weight: 600; margin-bottom: 7px; }
.wd-coupon__sub { font-size: 12px; color: var(--wd-dim); }
.wd-coupon__action { flex-shrink: 0; }
.wd-coupon__meta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 9px; }
.wd-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--wd-dim); }
.wd-meta .wd-ico { color: var(--wd-faint); }

/* feedback (thumbs up/down + success rate) */
.wd-fb { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wd-fb__rate { font-size: 12px; color: var(--wd-dim); }
.wd-fb__rate.has-rate b { color: var(--wd-primary); font-size: 13px; }
.wd-fb__rate b { color: var(--wd-fg); }
.wd-fb__btns { display: inline-flex; gap: 6px; }
.wd-fb__btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 8px; background: var(--wd-card2); border: 1px solid var(--wd-border); color: var(--wd-muted); cursor: pointer; font-size: 12px; font-weight: 600; transition: all .15s; }
.wd-fb__btn:hover { color: var(--wd-fg); transform: translateY(-1px); }
.wd-fb__btn.up.is-voted { background: rgba(0,212,200,0.15); border-color: rgba(0,212,200,0.4); color: var(--wd-primary); }
.wd-fb__btn.down.is-voted { background: rgba(212,24,61,0.12); border-color: rgba(212,24,61,0.4); color: #ff6b6b; }
.wd-fb__btn[disabled] { cursor: default; }

.wd-coupon__details { margin-top: 8px; }
.wd-coupon__details summary { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--wd-primary); list-style: none; }
.wd-coupon__details summary::-webkit-details-marker { display: none; }
.wd-coupon__details[open] summary .wd-ico { transform: rotate(45deg); }
.wd-coupon__details summary .wd-ico { transition: transform .2s; }
.wd-coupon__details p { font-size: 13px; color: var(--wd-muted); line-height: 1.6; margin: 10px 0 2px; padding: 12px 14px; background: rgba(0,0,0,0.25); border-radius: 10px; }

/* interactive star rating (header) */
.wd-stars { display: inline-flex; align-items: center; gap: 2px; }
.wd-star { background: none; border: none; padding: 1px; cursor: pointer; color: #3a3e55; line-height: 0; transition: color .12s, transform .12s; }
.wd-star .wd-ico { fill: currentColor; stroke: none; }
.wd-star.is-on, .wd-star.is-hover { color: #d4a847; }
.wd-star:hover { transform: scale(1.15); }
.wd-stars__txt { font-size: 12px; color: var(--wd-muted); margin-left: 7px; }

/* editor's note */
.wd-editor { display: flex; gap: 22px; align-items: flex-start; max-width: 820px; margin: 8px 0 12px; padding: 22px; border: 1px solid var(--wd-border); border-radius: 18px; background: linear-gradient(135deg,#0f1120,#151828); }
.wd-editor__photo { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.wd-editor__label { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wd-primary); font-family: var(--wd-font-mono); margin-bottom: 8px; }
.wd-editor__body p { color: var(--wd-muted); line-height: 1.7; font-size: 14px; margin: 0 0 12px; }
.wd-editor__sign b { font-weight: 700; }
.wd-editor__sign span { color: var(--wd-dim); font-size: 13px; margin-left: 8px; }

/* ---- Shop detail: SEO article ---- */
.wd-article { max-width: 820px; margin: 46px 0 10px; }
.wd-article__block { margin-bottom: 36px; }
.wd-article__block h2 { font-family: var(--wd-font-display); font-size: 22px; font-weight: 800; margin: 0 0 14px; }
.wd-article__block p { color: var(--wd-muted); line-height: 1.7; margin: 0 0 12px; }
.wd-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.wd-steps li { position: relative; padding-left: 44px; color: var(--wd-muted); line-height: 1.6; min-height: 30px; display: flex; align-items: center; }
.wd-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg,#00d4c8,#00b8ae); color: #07080f; font-family: var(--wd-font-mono); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wd-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wd-ticks li { position: relative; padding-left: 28px; color: var(--wd-muted); line-height: 1.6; }
.wd-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wd-primary); font-weight: 700; }
.wd-faq { display: flex; flex-direction: column; gap: 10px; }
.wd-faq__item { border: 1px solid var(--wd-border); border-radius: 12px; background: var(--wd-card); padding: 0 18px; }
.wd-faq__item summary { cursor: pointer; padding: 15px 0; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.wd-faq__item summary::-webkit-details-marker { display: none; }
.wd-faq__item summary::after { content: "+"; color: var(--wd-primary); font-size: 20px; font-weight: 400; }
.wd-faq__item[open] summary::after { content: "−"; }
.wd-faq__item p { color: var(--wd-muted); line-height: 1.7; margin: 0 0 16px; }

/* ---- Blog: article cards ---- */
.wd-post { display: flex; flex-direction: column; background: var(--wd-card); border: 1px solid var(--wd-border); border-radius: 16px; overflow: hidden; transition: transform .15s, border-color .15s; }
.wd-post:hover { transform: translateY(-4px); border-color: rgba(0,212,200,0.3); }
.wd-post__img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg,#0f1120,#151828); overflow: hidden; }
.wd-post__img img { width: 100%; height: 100%; object-fit: cover; }
.wd-post__cat { position: absolute; top: 10px; left: 10px; background: rgba(7,8,15,.7); backdrop-filter: blur(8px); color: var(--wd-primary); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--wd-border); }
.wd-post__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wd-post__title { font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--wd-fg); margin: 0; }
.wd-post__excerpt { font-size: 13px; color: var(--wd-muted); line-height: 1.5; margin: 0; flex: 1; }
.wd-post__meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--wd-dim); margin-top: 4px; }
.wd-post__avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.wd-post__dot { opacity: .5; }

/* ---- Blog: social proof + actions ---- */
.wd-social { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--wd-border); border-bottom: 1px solid var(--wd-border); }
.wd-social__stat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--wd-muted); }
.wd-social__stat b { color: var(--wd-fg); font-weight: 700; }
.wd-social__stat .wd-ico { color: var(--wd-dim); }
.wd-social__sep { flex: 1; }
.wd-social__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; background: var(--wd-card2); border: 1px solid var(--wd-border); color: var(--wd-muted); cursor: pointer; font-size: 13px; font-weight: 600; transition: all .15s; }
.wd-social__btn:hover { color: var(--wd-fg); transform: translateY(-1px); border-color: rgba(0,212,200,.3); }
.wd-social__btn .wd-ico { transition: transform .15s; }
.wd-social__btn[data-like].is-liked { color: #ff5a7a; border-color: rgba(255,90,122,.45); background: rgba(255,90,122,.1); }
.wd-social__btn[data-like].is-liked .wd-ico { fill: #ff5a7a; stroke: #ff5a7a; }
@media (max-width: 520px) { .wd-social__btn-label { display: none; } }

/* ---- Blog: article page ---- */
.wd-post-page { max-width: 760px; margin: 0 auto; }
.wd-byline { display: flex; align-items: center; gap: 11px; }
.wd-byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--wd-border); }
.wd-byline__name { font-weight: 700; font-size: 14px; }
.wd-byline__meta { font-size: 12px; color: var(--wd-dim); }
.wd-post-page__hero { width: 100%; max-height: 440px; object-fit: cover; border-radius: 18px; margin: 6px 0 26px; }
.wd-prose { font-size: 16px; line-height: 1.75; color: #c8cde0; }
.wd-prose h2 { font-family: var(--wd-font-display); font-size: 24px; font-weight: 800; color: var(--wd-fg); margin: 34px 0 12px; }
.wd-prose h3 { font-size: 19px; font-weight: 700; color: var(--wd-fg); margin: 26px 0 10px; }
.wd-prose p { margin: 0 0 16px; }
.wd-prose ul, .wd-prose ol { margin: 0 0 18px; padding-left: 22px; }
.wd-prose li { margin-bottom: 8px; }
.wd-prose strong { color: var(--wd-fg); }
.wd-prose a { color: var(--wd-primary); text-decoration: underline; }
.wd-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 10px; }
.wd-tag { font-size: 12px; color: var(--wd-muted); background: var(--wd-card2); border: 1px solid var(--wd-border); border-radius: 20px; padding: 5px 12px; }
.wd-tag:hover { color: var(--wd-primary); border-color: rgba(0,212,200,.3); }

/* ---- Breadcrumbs ---- */
.wd-crumbs { font-size: 12px; color: var(--wd-dim); padding: 14px 0; }
.wd-crumbs a { color: var(--wd-muted); }

/* ---- Footer ---- */
.wd-footer { border-top: 1px solid var(--wd-border); margin-top: 60px; background: #0a0b14; }
.wd-footer__inner { max-width: var(--wd-max); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.wd-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--wd-dim); margin: 0 0 12px; }
.wd-footer a { display: block; color: var(--wd-muted); font-size: 14px; padding: 4px 0; }
.wd-footer a:hover { color: var(--wd-primary); }
.wd-footer__bottom { border-top: 1px solid var(--wd-border); text-align: center; padding: 18px; font-size: 12px; color: var(--wd-dim); }

/* ---- Pagination (Laravel) ---- */
.wd-pagenav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.wd-pagenav a, .wd-pagenav span { padding: 7px 13px; border-radius: 8px; font-size: 13px; border: 1px solid var(--wd-border); color: var(--wd-muted); }
.wd-pagenav a:hover { background: rgba(0,212,200,0.08); color: var(--wd-fg); }
.wd-pagenav .is-active { background: linear-gradient(135deg,#00d4c8,#00b8ae); color: #07080f; border-color: transparent; font-weight: 700; }
.wd-pagenav .is-disabled { opacity: .35; }
.wd-pagenav .is-dots { border: none; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .wd-nav__links, .wd-nav__search { display: none; }
  .wd-burger { display: block; }
  .wd-dod { grid-template-columns: 1fr; }
  .wd-dod__img { min-height: 180px; }
  .wd-footer__inner { grid-template-columns: 1fr 1fr; }
  .wd-top__disc { display: none; }
  .wd-highlights { grid-template-columns: 1fr 1fr; }
  .wd-home-split { grid-template-columns: 1fr; gap: 26px; }
  .wd-shop-head { grid-template-columns: 1fr; }
  .wd-coupon { grid-template-columns: 70px 1fr; }
  .wd-coupon__action { grid-column: 1 / -1; }
  .wd-editor { flex-direction: column; gap: 14px; }
  .wd-editor__photo { width: 64px; height: 64px; }
}
/* Deal cards: 2 per row on tablets/phones, compact sizing */
@media (max-width: 720px) {
  .wd-grid--deals { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wd-grid--stores { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wd-grid--cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .wd-cat { padding: 16px; }
  .wd-deal { padding: 12px; border-radius: 14px; }
  .wd-deal__top { gap: 8px; margin-bottom: 9px; }
  .wd-deal__logo { width: 30px; height: 30px; border-radius: 8px; padding: 4px; }
  .wd-deal__name { font-size: 12.5px; }
  .wd-deal__codes { font-size: 10px; }
  .wd-deal__cat { padding: 2px 6px; font-size: 8px; max-width: 70px; }
  .wd-deal__cat span { display: none; }
  .wd-deal__desc { font-size: 11.5px; min-height: 30px; margin-bottom: 9px; }
  .wd-deal__disc { font-size: 16px; padding: 4px 10px; margin-bottom: 9px; }
  .wd-deal__code, .wd-deal__disc { margin-bottom: 9px; }
  .wd-code__text { font-size: 11px; }
  .wd-code__copy .wd-code__copy-label { display: none; }
  .wd-deal__foot { font-size: 10px; padding-top: 8px; }
}

@media (max-width: 520px) {
  .wd-footer__inner { grid-template-columns: 1fr; }
  .wd-hero__stats { gap: 22px; }
}
