/*
Theme Name: ANZ Bargains
Theme URI: https://anzbargains.com
Author: ANZ Bargains
Description: Community-driven deals and bargains theme for Australian and New Zealand shoppers. Dual region identity (AU amber / NZ ice blue), community voting, hot/new/top sorting, deal submissions, Commission Factory affiliate tracking, Google AdSense slots, and full SEO schema output.
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: anz-bargains
Tags: dark, deals, community, australia, new-zealand, blog, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */

:root {
  /* Base dark surfaces */
  --ink-950: #09090b;
  --ink-900: #0f1117;
  --ink-800: #1a1d27;
  --ink-700: #252836;
  --ink-600: #363a4f;
  --ink-500: #4a4f68;

  /* Text */
  --text-primary: #f1f2f6;
  --text-secondary: #9da3b8;
  --text-muted: #5c6280;

  /* AU — Amber gold */
  --au-500: #f59e0b;
  --au-400: #fbbf24;
  --au-300: #fcd34d;
  --au-glow: rgba(245,158,11,.18);
  --au-subtle: rgba(245,158,11,.08);

  /* NZ — Ice blue */
  --nz-500: #7dd3fc;
  --nz-400: #93c5fd;
  --nz-300: #bae6fd;
  --nz-glow: rgba(125,211,252,.18);
  --nz-subtle: rgba(125,211,252,.08);

  /* Active region accent (defaults to AU, JS swaps to NZ) */
  --accent:       var(--au-500);
  --accent-light: var(--au-400);
  --accent-pale:  var(--au-300);
  --accent-glow:  var(--au-glow);
  --accent-subtle:var(--au-subtle);

  /* Status */
  --hot:     #ef4444;
  --hot-bg:  rgba(239,68,68,.12);
  --fresh:   #22c55e;
  --expired: #6b7280;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --max-w:     1280px;
}

/* NZ region overrides */
body.region-nz {
  --accent:        var(--nz-500);
  --accent-light:  var(--nz-400);
  --accent-pale:   var(--nz-300);
  --accent-glow:   var(--nz-glow);
  --accent-subtle: var(--nz-subtle);
}

/* ═══════════════════════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════════════════════ */

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

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: var(--ink-600); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: var(--ink-950); padding: 10px 18px; font-weight: 700; border-radius: 0 0 var(--radius) 0; }
.skip-link:focus { left: 0; }

/* ═══════════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════════ */

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

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

.grid-deals {
  display: grid;
  gap: 1px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(9,9,11,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ink-700);
}

.header-inner {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--accent); color: var(--ink-950);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  transition: background .3s;
}
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  line-height: 1.1; display: block;
}
.brand-region {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); display: block;
  transition: color .3s;
}

/* Region switcher */
.region-switcher {
  display: flex; align-items: center; gap: 4px;
  background: var(--ink-800); border: 1px solid var(--ink-600);
  border-radius: var(--radius); padding: 4px; flex-shrink: 0;
}
.region-btn {
  padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 600; border: none; background: transparent;
  color: var(--text-secondary); transition: all .2s;
  display: flex; align-items: center; gap: 6px;
}
.region-btn.au-btn.active { background: var(--au-subtle); color: var(--au-500); border: 1px solid rgba(245,158,11,.3); }
.region-btn.nz-btn.active { background: var(--nz-subtle); color: var(--nz-500); border: 1px solid rgba(125,211,252,.3); }
.region-btn:not(.active):hover { background: var(--ink-700); color: var(--text-primary); }

/* Search */
.header-search { flex: 1; min-width: 0; max-width: 480px; position: relative; }
.header-search input {
  width: 100%; background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 9px 16px 9px 40px; font: inherit; font-size: 14px;
  transition: border-color .2s;
}
.header-search input::placeholder { color: var(--text-muted); }
.header-search input:focus { outline: none; border-color: var(--accent); }
.header-search .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; font-size: 16px;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  padding: 7px 12px; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--text-primary); background: var(--ink-800); }
.main-nav a.active { color: var(--accent); }

.submit-btn {
  background: var(--accent); color: var(--ink-950);
  font-weight: 700; font-size: 13px;
  border: none; border-radius: var(--radius);
  padding: 8px 16px; display: flex; align-items: center; gap: 6px;
  transition: opacity .2s, box-shadow .2s; flex-shrink: 0;
}
.submit-btn:hover { opacity: .9; box-shadow: 0 0 20px var(--accent-glow); }

.nav-toggle { display: none; background: var(--ink-800); border: 1px solid var(--ink-600); color: var(--text-primary); border-radius: var(--radius-sm); padding: 8px 10px; }

/* ═══════════════════════════════════════════════════════════
   SORT / FILTER BAR
═══════════════════════════════════════════════════════════ */

.sort-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0; border-bottom: 1px solid var(--ink-800);
  overflow-x: auto; scrollbar-width: none;
}
.sort-bar::-webkit-scrollbar { display: none; }

.sort-tab {
  padding: 7px 16px; border-radius: var(--radius); font-size: 14px;
  font-weight: 600; border: none; background: var(--ink-800);
  color: var(--text-secondary); white-space: nowrap;
  transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.sort-tab:hover { background: var(--ink-700); color: var(--text-primary); }
.sort-tab.active { background: var(--accent-subtle); color: var(--accent); border: 1px solid var(--accent-glow); }
.sort-tab .tab-ico { font-size: 15px; }

.cat-pill {
  padding: 6px 14px; border-radius: 999px; font-size: 13px;
  font-weight: 500; border: 1px solid var(--ink-600);
  background: transparent; color: var(--text-secondary); white-space: nowrap;
  transition: all .2s;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); }

.filter-sep { width: 1px; height: 24px; background: var(--ink-700); flex-shrink: 0; margin: 0 4px; }

/* ═══════════════════════════════════════════════════════════
   DEAL ROW (OzBargain style)
═══════════════════════════════════════════════════════════ */

.deal-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0;
  background: var(--ink-900);
  transition: background .15s;
  position: relative;
}
.deal-row:hover { background: var(--ink-800); }
.deal-row + .deal-row { border-top: 1px solid var(--ink-800); }

/* Vote column */
.deal-vote {
  display: flex; flex-direction: column; align-items: center;
  justify-content: flex-start; gap: 4px;
  padding: 16px 8px 16px 16px;
}
.vote-up, .vote-dn {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-600); background: transparent;
  color: var(--text-muted); font-size: 13px;
  display: grid; place-items: center;
  transition: all .15s;
}
.vote-up:hover { border-color: var(--fresh); color: var(--fresh); background: rgba(34,197,94,.08); }
.vote-dn:hover { border-color: var(--hot); color: var(--hot); background: rgba(239,68,68,.08); }
.vote-up.voted-up { border-color: var(--fresh); color: var(--fresh); background: rgba(34,197,94,.1); }
.vote-dn.voted-dn { border-color: var(--hot); color: var(--hot); background: rgba(239,68,68,.1); }
.vote-count {
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--text-primary); line-height: 1;
}
.vote-count.positive { color: var(--fresh); }
.vote-count.negative { color: var(--hot); }

/* Deal body */
.deal-body { padding: 14px 16px 14px 0; min-width: 0; }

.deal-meta {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin-bottom: 6px;
}
.store-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
  background: var(--accent-subtle); color: var(--accent);
  border: 1px solid var(--accent-glow);
}
.deal-cat { font-size: 12px; color: var(--text-muted); }
.deal-age { font-size: 12px; color: var(--text-muted); margin-left: auto; }

.deal-title {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--text-primary); margin: 0 0 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.deal-title a:hover { color: var(--accent); }

.deal-pricing { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.deal-price-now {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  color: var(--accent);
}
.deal-price-was {
  font-size: 14px; color: var(--text-muted);
  text-decoration: line-through;
}
.deal-saving {
  font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: rgba(34,197,94,.12); color: var(--fresh);
}

.deal-desc { font-size: 13px; color: var(--text-secondary); margin: 0 0 10px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.deal-footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal-tag {
  font-size: 11px; color: var(--text-muted); padding: 2px 8px;
  border: 1px solid var(--ink-600); border-radius: 4px;
}
.deal-comments { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.deal-code {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 4px; border: 1px dashed var(--accent-glow);
  background: var(--accent-subtle); color: var(--accent); cursor: pointer;
  transition: background .15s;
}
.deal-code:hover { background: var(--accent-glow); }

/* Deal CTA column */
.deal-cta {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 16px;
  border-left: 1px solid var(--ink-800); min-width: 120px;
}
.get-deal-btn {
  background: var(--accent); color: var(--ink-950);
  font-weight: 700; font-size: 13px;
  border: none; border-radius: var(--radius);
  padding: 9px 16px; width: 100%; text-align: center;
  transition: opacity .2s, box-shadow .2s;
}
.get-deal-btn:hover { opacity: .9; box-shadow: 0 0 16px var(--accent-glow); }
.deal-store-logo {
  width: 56px; height: 32px; object-fit: contain;
  filter: brightness(.8); border-radius: 4px;
}
.deal-expired-badge { font-size: 11px; color: var(--expired); font-weight: 600; text-align: center; }

/* Hot badge on row */
.deal-row.is-hot::before {
  content: "🔥 HOT";
  position: absolute; top: 12px; right: 136px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  background: var(--hot-bg); color: var(--hot);
  padding: 2px 8px; border-radius: 4px;
}

/* ═══════════════════════════════════════════════════════════
   DEAL CARD (grid view alternate)
═══════════════════════════════════════════════════════════ */

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

.deal-card {
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.deal-card:hover { border-color: var(--accent-glow); transform: translateY(-2px); }

.deal-card-img { aspect-ratio: 16/9; background: var(--ink-800); overflow: hidden; position: relative; }
.deal-card-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-card-votes {
  position: absolute; top: 10px; left: 10px;
  background: rgba(9,9,11,.85); border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm); padding: 4px 10px;
  font-weight: 700; font-size: 13px; color: var(--fresh);
  backdrop-filter: blur(8px);
}
.deal-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.deal-card-store { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.deal-card h3 { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 10px; line-height: 1.4; flex: 1; }
.deal-card-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.deal-card-price .now { font-size: 22px; font-weight: 700; font-family: var(--font-display); color: var(--accent); }
.deal-card-price .was { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.deal-card-cta { background: var(--accent); color: var(--ink-950); font-weight: 700; font-size: 13px; border: none; border-radius: var(--radius); padding: 10px; text-align: center; display: block; transition: opacity .2s; }
.deal-card-cta:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════ */

.content-wrap {
  display: grid; gap: 24px; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .content-wrap { grid-template-columns: 1fr 280px; }
}

.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-box {
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg); overflow: hidden;
}
.sidebar-head {
  padding: 14px 16px; border-bottom: 1px solid var(--ink-800);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.sidebar-body { padding: 14px 16px; }

/* Store list */
.store-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--ink-800);
}
.store-row:last-child { border: none; }
.store-row-logo {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--ink-800); object-fit: contain; flex-shrink: 0;
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--accent);
}
.store-row-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.store-row-count { font-size: 12px; color: var(--text-muted); }
.store-row-count strong { color: var(--accent); }

/* Stats */
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--ink-800); font-size: 13px; }
.stat-row:last-child { border: none; }
.stat-row .label { color: var(--text-secondary); }
.stat-row .val { font-weight: 700; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   SUBMIT DEAL FORM
═══════════════════════════════════════════════════════════ */

.submit-page { max-width: 720px; margin: 0 auto; }

.form-card {
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl); padding: 32px;
}
.form-card h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0 0 6px; }
.form-card .sub { color: var(--text-secondary); margin: 0 0 28px; font-size: 15px; }

.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field label span { color: var(--hot); margin-left: 2px; }
.field input, .field select, .field textarea {
  background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 10px 14px; font: inherit; font-size: 14px; width: 100%;
  transition: border-color .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.field textarea { resize: vertical; min-height: 100px; }
.field select option { background: var(--ink-800); }

.submit-form-btn {
  background: var(--accent); color: var(--ink-950); font-weight: 700; font-size: 15px;
  border: none; border-radius: var(--radius); padding: 13px 28px;
  width: 100%; margin-top: 8px; transition: opacity .2s, box-shadow .2s;
}
.submit-form-btn:hover { opacity: .9; box-shadow: 0 0 24px var(--accent-glow); }

.form-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; }

.alert { border-radius: var(--radius); padding: 12px 16px; font-size: 14px; margin-bottom: 20px; }
.alert.success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert.error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }

/* ═══════════════════════════════════════════════════════════
   STORE PAGE
═══════════════════════════════════════════════════════════ */

.store-hero {
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl); padding: 28px 32px;
  display: flex; align-items: center; gap: 24px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.store-hero-logo {
  width: 80px; height: 80px; border-radius: var(--radius-lg);
  background: var(--ink-800); object-fit: contain; flex-shrink: 0;
}
.store-hero-name { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 0 0 4px; }
.store-hero-url { color: var(--accent); font-size: 14px; }
.store-hero-stats { display: flex; gap: 24px; margin-top: 12px; }
.store-hero-stats .stat { text-align: center; }
.store-hero-stats .stat strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--accent); }
.store-hero-stats .stat span { font-size: 12px; color: var(--text-muted); }
.store-visit-btn {
  margin-left: auto; background: var(--accent); color: var(--ink-950);
  font-weight: 700; border: none; border-radius: var(--radius);
  padding: 11px 22px; font-size: 14px; transition: opacity .2s;
}
.store-visit-btn:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════
   USER ACCOUNT
═══════════════════════════════════════════════════════════ */

.auth-wrap { min-height: calc(100vh - 120px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl); padding: 36px;
}
.auth-logo {
  display: flex; align-items: center; gap: 10px;
  justify-content: center; margin-bottom: 24px;
}
.auth-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-align: center; margin: 0 0 4px; }
.auth-sub { color: var(--text-secondary); text-align: center; font-size: 14px; margin: 0 0 24px; }
.auth-fields { display: flex; flex-direction: column; gap: 14px; }
.auth-submit {
  background: var(--accent); color: var(--ink-950); font-weight: 700;
  border: none; border-radius: var(--radius); padding: 12px;
  width: 100%; font-size: 15px; margin-top: 6px; transition: opacity .2s;
}
.auth-submit:hover { opacity: .9; }
.auth-links { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 8px; }
.auth-links a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */

.site-footer {
  background: var(--ink-900); border-top: 1px solid var(--ink-800);
  margin-top: 64px;
}
.footer-grid {
  display: grid; gap: 32px; padding: 48px 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer-brand p { color: var(--text-secondary); font-size: 14px; margin: 12px 0 16px; line-height: 1.6; }
.footer-region-badges { display: flex; gap: 8px; }
.footer-region-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: var(--radius-sm); border: 1px solid;
}
.footer-region-badge.au { color: var(--au-500); border-color: rgba(245,158,11,.3); background: var(--au-subtle); }
.footer-region-badge.nz { color: var(--nz-500); border-color: rgba(125,211,252,.3); background: var(--nz-subtle); }

.footer-col h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color .15s; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--ink-800); padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--text-muted);
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-secondary); display: grid; place-items: center;
  font-size: 15px; transition: all .2s;
}
.footer-social a:hover { background: var(--accent-subtle); color: var(--accent); border-color: var(--accent-glow); }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════════ */

.du-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.du-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--radius); background: var(--ink-900);
  border: 1px solid var(--ink-700); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; transition: all .15s;
}
.du-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.du-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--ink-950); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════
   TOAST
═══════════════════════════════════════════════════════════ */

.du-toast {
  position: fixed; left: 50%; bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--accent); color: var(--ink-950);
  font-weight: 700; font-size: 14px; padding: 12px 22px;
  border-radius: var(--radius); z-index: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.du-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink-900); border-bottom: 1px solid var(--ink-700); padding: 12px 16px; gap: 2px; }
  .main-nav.open { display: flex; }
  .site-header { position: relative; }
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .submit-btn span { display: none; }
}

@media (max-width: 640px) {
  .deal-row { grid-template-columns: 52px 1fr; }
  .deal-cta { display: none; }
  .deal-footer .get-deal-btn-inline { display: flex; }
}

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

/* Admin bar */
.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; }

/* ═══════════════════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════════════════ */

.du-crumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin: 0 0 20px;
}
.du-crumbs a { color: var(--text-secondary); }
.du-crumbs a:hover { color: var(--accent); }
.du-crumbs .sep { color: var(--ink-600); }
.du-crumbs [aria-current] { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   ADVERTISING
═══════════════════════════════════════════════════════════ */

.du-ad {
  position: relative;
  margin: 24px 0;
  padding: 14px;
  background: var(--ink-900);
  border: 1px solid var(--ink-800);
  border-radius: var(--radius-lg);
  min-height: 100px;
  overflow: hidden;
}
.du-ad-label {
  display: block;
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}
.du-ad-sidebar { margin: 0 0 20px; min-height: 260px; }
.du-ad-header  { margin-top: 16px; }
.du-ad ins { display: block; }

/* ═══════════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════════ */

.post-list { display: flex; flex-direction: column; }

.post-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--ink-800);
}
.post-item:first-child { padding-top: 0; }

.post-item-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted); margin-bottom: 10px;
}
.post-cat {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: 4px;
  background: var(--accent-subtle); color: var(--accent);
  border: 1px solid var(--accent-glow);
}

.post-item-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  line-height: 1.3; margin: 0 0 10px;
}
.post-item-title a:hover { color: var(--accent); }

.post-item-excerpt {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.6; margin: 0 0 12px; max-width: 68ch;
}
.post-item-more { font-size: 14px; font-weight: 600; color: var(--accent); }
.post-item-more:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   ARTICLE / PROSE
═══════════════════════════════════════════════════════════ */

.article-body { max-width: 72ch; }

.prose { font-size: 17px; line-height: 1.75; color: var(--text-secondary); }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  font-family: var(--font-display); font-size: 23px; font-weight: 700;
  color: var(--text-primary); margin: 38px 0 14px; line-height: 1.3;
}
.prose h3 {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--text-primary); margin: 28px 0 10px;
}
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 24px 0; padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent); color: var(--text-secondary);
}
.prose .page-updated {
  font-size: 13px; color: var(--text-muted);
  padding-bottom: 16px; margin-bottom: 24px;
  border-bottom: 1px solid var(--ink-800);
}

.article-foot {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--ink-800);
  font-size: 14px; color: var(--text-secondary);
}
.article-foot p { margin: 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER DISCLOSURE
═══════════════════════════════════════════════════════════ */

.footer-disclosure {
  border-top: 1px solid var(--ink-800);
  padding: 18px 0 0;
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 70ch;
}

@media (max-width: 640px) {
  .prose { font-size: 16px; }
  .post-item-title { font-size: 19px; }
  .article-body h1 { font-size: 26px !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(--accent); color: var(--ink-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: var(--radius);
}

.custom-logo { width: 38px; height: 38px; border-radius: var(--radius); object-fit: cover; }

/* Breadcrumbs */
.anz-breadcrumbs { margin: 0 0 20px; font-size: 13px; color: var(--text-muted); }
.anz-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.anz-breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-600); }
.anz-breadcrumbs a { color: var(--text-secondary); }
.anz-breadcrumbs a:hover { color: var(--accent); }

/* Empty state */
.anz-empty {
  padding: 64px 24px; text-align: center;
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg);
}

/* Pagination */
.anz-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.anz-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--radius); background: var(--ink-900);
  border: 1px solid var(--ink-700); color: var(--text-secondary);
  font-size: 14px; font-weight: 500; transition: all .15s;
}
.anz-pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.anz-pagination .page-numbers.current {
  background: var(--accent); border-color: var(--accent);
  color: var(--ink-950); font-weight: 700;
}

/* Long-form article body */
.prose { max-width: 760px; color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-size: 24px; color: var(--text-primary); margin-top: 2em; }
.prose h3 { font-family: var(--font-display); font-size: 19px; color: var(--text-primary); margin-top: 1.6em; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius-lg); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 8px; }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent); color: var(--text-secondary);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--ink-700); padding: 10px 12px; text-align: left; }
.prose th { background: var(--ink-800); color: var(--text-primary); font-weight: 600; }
.prose code {
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: 4px; padding: 2px 6px; font-family: var(--font-mono); font-size: .9em;
}

/* Affiliate disclosure */
.anz-disclosure {
  font-size: 13px; color: var(--text-muted); margin: 0;
  line-height: 1.55;
}

/* Ads — deliberately distinct from content per AdSense policy */
.anz-ad {
  margin: 20px 0; padding: 10px;
  background: var(--ink-900); border: 1px solid var(--ink-800);
  border-radius: var(--radius); overflow: hidden;
}
.anz-ad-label {
  display: block; font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 8px; text-align: center;
}
.anz-ad-header, .anz-ad-footer { margin: 0; border-radius: 0; border-left: 0; border-right: 0; }
.anz-ad-sidebar { margin-top: 0; }
.anz-ad ins { display: block; }

/* Comments */
.comment-list { list-style: none; margin: 0 0 28px; padding: 0; }
.comment-list li { background: var(--ink-800); border: 1px solid var(--ink-700); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; margin: 12px 0 0 20px; padding: 0; }
.comment-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 10px 14px; font: inherit; margin-bottom: 12px;
}
.comment-form .submit {
  background: var(--accent); color: var(--ink-950); font-weight: 700;
  border: none; border-radius: var(--radius); padding: 11px 22px; cursor: pointer;
}

/* Alignment classes */
.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; }

/* Account link in header nav */
.main-nav .anz-account {
  border: 1px solid var(--ink-600);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
}
.main-nav .anz-account:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════
   MEMBER ACCOUNT
═══════════════════════════════════════════════════════════ */

.anz-account-page { max-width: 900px; margin: 0 auto; }

.anz-account-header {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: var(--ink-900); border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl); padding: 24px 28px; margin-bottom: 16px;
}
.anz-avatar img { border-radius: 50%; display: block; border: 2px solid var(--ink-700); }
.anz-account-id { flex: 1; min-width: 200px; }
.anz-account-id h1 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  margin: 0 0 4px; color: var(--text-primary);
}
.anz-account-id p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.anz-karma-badge {
  text-align: center; padding: 12px 20px; border-radius: var(--radius-lg);
  background: var(--accent-subtle); border: 1px solid var(--accent-glow);
}
.anz-karma-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 26px; font-weight: 800; color: var(--accent); line-height: 1;
}
.anz-karma-badge span {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); font-weight: 600;
}

.anz-account-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--ink-800); border: 1px solid var(--ink-700);
  border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px;
}
@media (min-width: 640px) { .anz-account-stats { grid-template-columns: repeat(4, 1fr); } }
.anz-stat { background: var(--ink-900); padding: 16px; text-align: center; }
.anz-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--text-primary);
}
.anz-stat span { font-size: 12px; color: var(--text-muted); }

.anz-account-tabs { border-bottom: 1px solid var(--ink-800); margin-bottom: 24px; }
.anz-account-body { min-height: 240px; }

/* My deals list */
.anz-my-deals {
  border: 1px solid var(--ink-700); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--ink-800);
  display: flex; flex-direction: column; gap: 1px;
}
.anz-my-deal {
  background: var(--ink-900); padding: 16px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  transition: opacity .2s;
}
.anz-my-deal-main { flex: 1; min-width: 240px; }
.anz-my-deal h3 {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  margin: 6px 0 8px; color: var(--text-primary); line-height: 1.4;
}
.anz-my-deal h3 a:hover { color: var(--accent); }
.anz-my-deal-figures {
  display: flex; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.anz-my-deal-figures strong { color: var(--text-secondary); }
.anz-my-price { color: var(--accent); font-weight: 700; }

.anz-status {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 4px;
}
.anz-status-publish { background: rgba(34,197,94,.12); color: var(--fresh); }
.anz-status-pending { background: var(--accent-subtle); color: var(--accent); }
.anz-status-draft   { background: var(--ink-700); color: var(--text-muted); }

.anz-delete-deal:hover { border-color: var(--hot); color: var(--hot); }

/* Save button on deal rows */
.anz-save-deal {
  background: transparent; border: 1px solid var(--ink-600);
  color: var(--text-muted); border-radius: var(--radius-sm);
  width: 28px; height: 24px; font-size: 13px; line-height: 1;
  display: inline-grid; place-items: center; transition: all .15s;
}
.anz-save-deal:hover { border-color: var(--accent); color: var(--accent); }
.anz-save-deal.is-saved {
  border-color: var(--accent); color: var(--ink-950); background: var(--accent);
}

/* Profile form helpers */
.anz-field-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.anz-divider { border: none; border-top: 1px solid var(--ink-800); margin: 8px 0; }
.anz-data-list { border-top: 1px solid var(--ink-800); padding-top: 4px; }

/* Leaderboard rank */
.anz-rank {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink-800); color: var(--text-secondary);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.store-row:nth-child(1) .anz-rank { background: var(--accent); color: var(--ink-950); }

.ghost-btn {
  background: var(--ink-800); color: var(--text-secondary);
  border: 1px solid var(--ink-600); border-radius: var(--radius);
  padding: 10px 18px; font-size: 14px; font-weight: 500;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ═══════════════════════════════════════════════════════════
   VOTE BREAKDOWN
═══════════════════════════════════════════════════════════ */

/* Compact split under the net score in list view */
.vote-split {
  display: flex; align-items: center; gap: 2px;
  font-size: 10px; font-family: var(--font-mono);
  line-height: 1; margin-top: 2px; cursor: help;
}
.vote-split-up   { color: var(--fresh); }
.vote-split-sep  { color: var(--ink-600); }
.vote-split-down { color: var(--text-muted); }

/* Full stats block on the single deal page */
.anz-vote-stats {
  flex-basis: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-800);
}
.anz-vote-numbers {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; font-size: 13px; margin-bottom: 8px;
  color: var(--text-muted);
}
.anz-vote-up   { color: var(--fresh); }
.anz-vote-down { color: var(--hot); }
.anz-vote-up strong, .anz-vote-down strong {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
}
.anz-vote-pct { margin-left: auto; color: var(--text-secondary); }
.anz-vote-pct strong { color: var(--accent); font-weight: 700; }

.anz-vote-bar {
  display: block; height: 6px; border-radius: 3px;
  background: var(--hot); overflow: hidden;
}
.anz-vote-bar span {
  display: block; height: 100%;
  background: var(--fresh);
  border-radius: 3px 0 0 3px;
  transition: width .3s ease;
}

/* Save button — was rendering as a bright box on dark rows */
.anz-save-deal {
  background: var(--ink-800);
  border: 1px solid var(--ink-600);
  color: var(--text-muted);
}
.anz-save-deal.is-saved {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════
   FLAT STAT ROW (deal footer)
═══════════════════════════════════════════════════════════ */

.deal-stats {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-left: auto;
}
.deal-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--text-muted);
  background: none; border: none; padding: 0;
  line-height: 1;
}
.deal-stat strong { font-weight: 600; color: var(--text-secondary); }
.deal-stat-up   { color: var(--fresh); }
.deal-stat-up strong { color: var(--fresh); }
.deal-stat-down { color: var(--hot); }
.deal-stat-down strong { color: var(--hot); }
.deal-stat-comments:hover strong,
.deal-stat-clicks:hover strong { color: var(--accent); }

.anz-save-deal.deal-stat {
  width: auto; height: auto; border-radius: 4px;
  padding: 3px 6px; font-size: 12px;
  border: 1px solid var(--ink-700); background: transparent;
  color: var(--text-muted);
}
.anz-save-deal.deal-stat:hover { border-color: var(--accent); color: var(--accent); }
.anz-save-deal.deal-stat.is-saved {
  background: var(--accent); border-color: var(--accent); color: var(--ink-950);
}

/* ═══════════════════════════════════════════════════════════
   SHARE BUTTONS
═══════════════════════════════════════════════════════════ */

.anz-share { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.anz-share-label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  letter-spacing: .02em;
}
.anz-share-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.anz-share-btn {
  width: 36px; height: 36px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-secondary); cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.anz-share-btn:hover { transform: translateY(-2px); color: #fff; }

.anz-share-facebook:hover  { background: #1877f2; border-color: #1877f2; }
.anz-share-x:hover         { background: #000;    border-color: #333; }
.anz-share-telegram:hover  { background: #229ed9; border-color: #229ed9; }
.anz-share-whatsapp:hover  { background: #25d366; border-color: #25d366; }
.anz-share-reddit:hover    { background: #ff4500; border-color: #ff4500; }
.anz-share-email:hover     { background: var(--ink-600); border-color: var(--ink-500); }
.anz-share-instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
}
.anz-share-tiktok:hover    { background: #000; border-color: #25f4ee; color: #25f4ee; }
.anz-share-link:hover      { background: var(--accent); border-color: var(--accent); color: var(--ink-950); }

.anz-share-btn.copied {
  background: var(--fresh); border-color: var(--fresh); color: var(--ink-950);
}

.anz-share-compact .anz-share-label { display: none; }
.anz-share-compact .anz-share-btn { width: 30px; height: 30px; }

@media (max-width: 560px) {
  .anz-share { gap: 10px; }
  .anz-share-btn { width: 34px; height: 34px; }
}

/* Staff-only sidebar box */
.anz-admin-only { border-color: var(--accent-glow); }
.anz-admin-tag {
  margin-left: auto; font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
  border: 1px solid var(--ink-600); border-radius: 3px;
  padding: 2px 5px; font-weight: 600;
}
.anz-admin-only .sidebar-head { display: flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════════
   AUTH — social login, checkboxes, honeypot
═══════════════════════════════════════════════════════════ */

.anz-social-login { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.anz-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 11px 16px; border-radius: var(--radius);
  background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-primary); font-weight: 600; font-size: 14.5px;
  text-decoration: none; transition: border-color .15s, background .15s;
}
.anz-social-btn:hover { border-color: var(--accent); background: var(--ink-700); }
.anz-social-btn svg { flex-shrink: 0; }

.anz-social-divider { text-align: center; position: relative; margin: 18px 0; }
.anz-social-divider::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: var(--ink-700);
}
.anz-social-divider span {
  position: relative; background: var(--ink-900);
  padding: 0 12px; color: var(--text-muted); font-size: 13px;
}

.anz-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--text-secondary);
  line-height: 1.5; cursor: pointer; margin: 2px 0;
}
.anz-check input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px;
  accent-color: var(--accent); flex-shrink: 0; cursor: pointer;
}
.anz-check a { color: var(--accent); text-decoration: underline; }

/* Honeypot — off-screen rather than display:none, which some bots detect */
.anz-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* Social buttons on wp-login.php */
.anz-wp-login-social { margin-bottom: 4px; }
.anz-wp-login-social .anz-social-divider span { background: var(--ink-900); }

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
═══════════════════════════════════════════════════════════ */

.anz-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; transition: opacity .2s ease;
}
.anz-modal.is-open { opacity: 1; }
.anz-modal[hidden] { display: none; }

.anz-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(4px);
}

.anz-modal-box {
  position: relative;
  width: 100%; max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--ink-900);
  border: 1px solid var(--ink-700);
  border-radius: var(--radius-xl);
  padding: 28px;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.anz-modal.is-open .anz-modal-box { transform: translateY(0) scale(1); }

.anz-modal-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: transparent; border: none;
  color: var(--text-muted); font-size: 26px; line-height: 1;
  display: grid; place-items: center; transition: all .15s;
}
.anz-modal-close:hover { background: var(--ink-800); color: var(--text-primary); }

.anz-modal-head { text-align: center; margin-bottom: 20px; }
.anz-modal-mark { margin: 0 auto 12px; width: 44px; height: 44px; font-size: 17px; }
.anz-modal-title {
  font-family: var(--font-display); font-size: 21px; font-weight: 700;
  margin: 0 0 4px; color: var(--text-primary);
}
.anz-modal-sub { margin: 0; font-size: 14px; color: var(--text-secondary); }

.anz-modal-tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--ink-800); border-radius: var(--radius);
  padding: 4px; margin-bottom: 20px;
}
.anz-modal-tab {
  padding: 9px; border-radius: var(--radius-sm); border: none;
  background: transparent; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.anz-modal-tab:hover { color: var(--text-primary); }
.anz-modal-tab.active {
  background: var(--accent-subtle); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-glow);
}

.anz-modal-pane { display: flex; flex-direction: column; gap: 14px; }
.anz-modal-pane[hidden] { display: none; }
.anz-modal-pane .auth-submit { margin-top: 4px; }

.anz-modal-foot { text-align: center; margin: 4px 0 0; font-size: 13.5px; }
.anz-modal-foot a { color: var(--text-secondary); }
.anz-modal-foot a:hover { color: var(--accent); }

.anz-modal .field.has-error input {
  border-color: var(--hot);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}

.anz-modal .anz-social-divider span { background: var(--ink-900); }

@media (max-width: 480px) {
  .anz-modal { padding: 12px; align-items: flex-start; padding-top: 28px; }
  .anz-modal-box { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .anz-modal, .anz-modal-box { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES (login / register)
═══════════════════════════════════════════════════════════ */

.auth-brand { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-brand .brand-icon { width: 46px; height: 46px; font-size: 18px; }

.auth-card .auth-title { margin-bottom: 4px; }
.auth-card .auth-sub { margin-bottom: 22px; }

.auth-card .auth-fields { gap: 14px; }
.auth-card .field { display: flex; flex-direction: column; gap: 6px; }
.auth-card .field label {
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
}
.auth-card .field input {
  background: var(--ink-800); border: 1px solid var(--ink-600);
  color: var(--text-primary); border-radius: var(--radius);
  padding: 11px 14px; font: inherit; font-size: 15px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.auth-card .field input::placeholder { color: var(--text-muted); }
.auth-card .field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.auth-links { gap: 10px; }
.auth-links span { color: var(--text-secondary); }

/* Register page uses the same card */
.auth-card .anz-check { margin: 4px 0; }

/* ═══════════════════════════════════════════════════════════
   AUTH LAYOUT — social row, password reveal, switch link
═══════════════════════════════════════════════════════════ */

/* Social buttons side by side, icon only */
.anz-social-login.anz-social-icons {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
}
.anz-social-icons .anz-social-btn {
  height: 52px;
  padding: 0;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  gap: 0;
}

/* Google: light surface, as everyone expects it */
.anz-social-icons .anz-social-google {
  background: #fff;
  border: 1px solid #dadce0;
}
.anz-social-icons .anz-social-google:hover {
  background: #f8f9fa;
  border-color: #c6c9cd;
}

/* Facebook: brand blue, white glyph */
.anz-social-icons .anz-social-facebook {
  background: #1877f2;
  border: 1px solid #1877f2;
  color: #fff;
}
.anz-social-icons .anz-social-facebook:hover {
  background: #166fe5;
  border-color: #166fe5;
}

.anz-social-divider {
  text-align: center;
  position: relative;
  margin: 20px 0;
}
.anz-social-divider::before {
  content: "";
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--ink-700);
}
.anz-social-divider span {
  position: relative;
  background: var(--ink-900);
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Password field with reveal button */
.anz-pw-wrap { position: relative; }
.anz-pw-wrap input { padding-right: 44px !important; }
.anz-pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 32px; height: 32px;
  border: none; background: transparent;
  color: var(--text-muted);
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.anz-pw-toggle:hover { color: var(--text-primary); background: var(--ink-700); }
.anz-pw-toggle.is-showing { color: var(--accent); }

/* Forgot password, left aligned under the field */
.anz-forgot {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  margin-top: -4px;
}
.anz-forgot:hover { text-decoration: underline; }

/* Sign up / log in switch at the bottom */
.anz-auth-switch {
  text-align: center;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--ink-800);
  font-size: 14px;
  color: var(--text-secondary);
}
.anz-auth-switch a {
  color: var(--accent);
  font-weight: 600;
  margin-left: 4px;
}
.anz-auth-switch a:hover { text-decoration: underline; }

/* Bigger primary button, matching the reference proportions */
.auth-card .auth-submit,
.anz-modal .auth-submit {
  height: 50px;
  font-size: 15.5px;
  border-radius: var(--radius);
}

.anz-modal .anz-social-divider span { background: var(--ink-900); }
