/* ============================================================
   SKUDADDLE — base.css
   Global styles shared across all pages.
   Version 2.0 — updated for redesign
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:     #F97316;
  --orange-dk:  #EA6C00;
  --teal:       #0F766E;
  --teal-lt:    #F0FDF9;
  --teal-mid:   #CCFBF1;
  --bg:         #F8FAFC;
  --white:      #FFFFFF;
  --ink:        #0F172A;
  --ink-2:      #1E293B;
  --ink-3:      #475569;
  --ink-4:      #64748B;
  --ink-5:      #94A3B8;
  --border:     #E2E8F0;
  --border-md:  #CBD5E1;
  --sans:       'DM Sans', system-ui, sans-serif;
  --serif:      'DM Serif Display', Georgia, serif;
  --nav-h:      64px;
  --radius:     10px;
  --radius-lg:  14px;
}

html { scroll-behavior: smooth; }
html, body { overflow-x: hidden;  max-width: 100%;}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── UTILITY ──────────────────────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange);
  color: #fff;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary:hover { background: var(--orange-dk); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  color: var(--teal);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius);
  border: 1.5px solid var(--teal);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-outline:hover { background: var(--teal-lt); }

.btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 7px;
  font-family: var(--sans);
  transition: background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-ghost:hover { background: var(--bg); }

.btn-white {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  background: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn-white:hover { opacity: 0.92; }

/* ── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-teal   { background: var(--teal-lt); color: var(--teal); }
.badge-orange { background: #FFF7ED; color: #C2410C; }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  overflow: visible; /* needed for dropdowns */
  max-width: 100vw;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 8px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: flex; align-items: center; }

.logo-img {
  height: 45px;
  width: auto;
  display: block;
  z-index: 120;
  position: relative;
}

.logo-text-mobile {
  display: none;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1px;
}

/* Nav links list */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

/* Nav dropdown item wrapper */
.nav-item {
  position: relative;
}

/* Nav link — works for both plain links and dropdown triggers */
.nav-item-link,
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: 7px;
  transition: color 0.15s, background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.nav-item-link:hover,
.nav-links a:hover,
.nav-item-link.active,
.nav-links a.active {
  color: var(--orange);
  background: #FFF7ED;
}

/* Dropdown chevron rotation */
.nav-item-link svg { transition: transform 0.15s; flex-shrink: 0; }
.nav-item:hover .nav-item-link svg { transform: rotate(180deg); }

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  min-width: 210px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  /* Visibility toggle with delay — fixes gap between trigger and panel */
  visibility: hidden;
  opacity: 0;
  display: block;
  pointer-events: none;
  transition: opacity 0.15s, visibility 0.15s;
  transition-delay: 0s;
  /* Invisible bridge covers gap so mouse can travel to panel */
  margin-top: 0;
}
/* Pseudo bridge — fills gap between nav link and dropdown */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item:hover .nav-dropdown {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.05s;
}

/* Dropdown internals */
.dd-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-5);
  padding: 6px 10px 4px;
  display: block;
}
.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.dd-item:hover { background: var(--bg); color: var(--orange); }
.dd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dd-divider { height: 1px; background: #F1F5F9; margin: 4px 0; }
.dd-cta { color: var(--orange); font-weight: 600; }
.dd-cta:hover { background: #FFF7ED; color: var(--orange-dk); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hamburger toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink-2);
  align-self: center;
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.15s;
  text-decoration: none;
}
.nav-drawer a:hover { background: var(--bg); color: var(--orange); }
.drawer-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* ── FULL-BLEED HERO ──────────────────────────────────────── */
.hero-fullbleed {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-fullbleed-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-fullbleed-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
}
.hero-fullbleed-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px 52px;
}
.hero-fullbleed-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #99F6E4;
  margin-bottom: 12px;
}
.hero-fullbleed-h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 600px;
}
.hero-fullbleed-h1 em { font-style: normal; color: #FED7AA; }
.hero-fullbleed-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 28px;
}
.hero-fullbleed-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-fullbleed-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.2);
  flex-wrap: wrap;
}
.hero-fullbleed-stat-num { font-size: 24px; font-weight: 700; color: #fff; line-height: 1; }
.hero-fullbleed-stat-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 3px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Hero buttons — readable on dark backgrounds */
.btn-hero-primary {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  background: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, border-color 0.15s;
}
.btn-hero-primary:hover { background: #FFF7ED; border-color: #FFF7ED; }

.btn-hero-outline {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.22); }

/* ── PAGE HERO (light — for inner pages) ─────────────────── */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.page-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.page-h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.page-h1 em { font-style: normal; color: var(--orange); }
.page-sub {
  font-size: 16px;
  color: var(--ink-4);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 28px;
}

/* ── SEARCH BAR (floating) ───────────────────────────────── */
.search-float-wrap {
  max-width: 1160px;
  margin: -28px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}
.search-float-bar {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 10px 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.14);
}
.search-float-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--sans);
  color: var(--ink-2);
  background: transparent;
}
.search-float-bar input::placeholder { color: var(--ink-5); }
.search-float-divider { width: 1px; height: 26px; background: var(--border); flex-shrink: 0; }
.search-float-bar select {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: var(--sans);
  color: var(--ink-3);
  background: transparent;
  padding: 0 10px;
  cursor: pointer;
}

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 6px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 15px;
  color: var(--ink-4);
  margin-bottom: 28px;
}

/* ── TOOL CARDS (colored gradient) ──────────────────────── */
.tool-card-grad {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.18s;
}
.tool-card-grad:hover { transform: translateY(-3px); }
.tool-card-grad-inner {
  padding: 32px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tool-card-teal  { background: linear-gradient(135deg, #0F766E, #1D9E75); }
.tool-card-orange { background: linear-gradient(135deg, #EA6C00, #F97316); }
.tool-card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}
.tool-card-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.tool-card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tool-card-link {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── PORT CARDS (with photo) ─────────────────────────────── */
.port-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.port-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(15,118,110,0.12);
}
.port-card-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
}
.port-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.05) 60%, transparent 100%);
}
.port-card-region {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,0.18);
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.35);
}
.port-card-body { padding: 14px 16px; }
.port-card-name { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.port-card-country { font-size: 12px; color: var(--ink-5); margin-bottom: 10px; }
.port-card-footer { display: flex; align-items: center; justify-content: space-between; }
.port-card-tips {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-lt);
  padding: 3px 9px;
  border-radius: 20px;
}
.port-card-arrow { font-size: 16px; color: var(--border-md); transition: color 0.15s; }
.port-card:hover .port-card-arrow { color: var(--teal); }

/* ── REVIEW CARDS ────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reviewer-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.reviewer-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.review-subject { font-size: 12px; color: var(--ink-5); margin-top: 1px; }
.stars { display: flex; gap: 3px; margin-bottom: 10px; }
.star {
  width: 13px; height: 13px;
  background: var(--orange);
  clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%);
}
.star.empty { background: var(--border-md); }
.review-text { font-size: 13px; color: var(--ink-3); line-height: 1.65; }
.review-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  margin-top: 12px;
}
.tag-orange { background: #FFF7ED; color: #C2410C; }
.tag-teal   { background: var(--teal-lt); color: var(--teal); }
.tag-blue   { background: #EFF6FF; color: #1D4ED8; }

/* ── AD ZONES ────────────────────────────────────────────── */
/* Leaderboard banner */
.ad-leaderboard-wrap { max-width: 1160px; margin: 32px auto 0; padding: 0 32px; }
.ad-leaderboard-inner {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.ad-sponsored {
  position: absolute;
  top: 6px; right: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ink-5);
  text-transform: uppercase;
}
.ad-text strong { font-size: 15px; font-weight: 600; color: #C2410C; display: block; margin-bottom: 2px; }
.ad-text span { font-size: 13px; color: #92400E; }
.ad-btn {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--orange);
  border: none;
  cursor: pointer;
  padding: 8px 18px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}
.ad-btn:hover { background: var(--orange-dk); }

/* Sidebar ad card */
.sidebar-ad-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sidebar-ad-img { height: 110px; display: flex; align-items: center; justify-content: center; position: relative; }
.sidebar-ad-body { padding: 12px 14px; }
.sidebar-ad-eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-5); margin-bottom: 4px; }
.sidebar-ad-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.sidebar-ad-desc { font-size: 12px; color: var(--ink-4); line-height: 1.5; margin-bottom: 10px; }
.sidebar-ad-btn {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange);
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-ad-btn:hover { background: #FFEDD5; }

/* Native content ad */
.native-ad {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.native-ad-label { font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-5); margin-bottom: 4px; }
.native-ad-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.native-ad-desc { font-size: 12px; color: var(--ink-4); line-height: 1.5; }

/* AdSense placeholder */
.adsense-box {
  background: var(--bg);
  border: 1px dashed var(--border-md);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.adsense-box p { font-size: 11px; color: var(--border-md); }

/* Affiliate strip */
.affiliate-strip {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}
.affiliate-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: #EFF6FF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.affiliate-text { flex: 1; }
.affiliate-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.affiliate-desc { font-size: 12px; color: var(--ink-4); }
.affiliate-badge {
  font-size: 10px; font-weight: 600;
  color: var(--teal); background: var(--teal-lt);
  padding: 2px 7px; border-radius: 20px;
  margin-left: 6px; vertical-align: middle;
}
.affiliate-btn {
  font-size: 12px; font-weight: 600;
  color: #fff; background: #1D4ED8;
  border: none; cursor: pointer;
  padding: 8px 16px; border-radius: 7px;
  white-space: nowrap; text-decoration: none;
  display: inline-block; transition: background 0.15s;
}
.affiliate-btn:hover { background: #1E40AF; }

/* ── CTA STRIP ───────────────────────────────────────────── */
.cta-strip { background: var(--teal); padding: 52px 0; }
.cta-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-h { font-family: var(--serif); font-size: clamp(20px, 3vw, 28px); font-weight: 400; color: #fff; margin-bottom: 6px; }
.cta-sub { font-size: 15px; color: #99F6E4; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 5px; }
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink-2);
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
  background: var(--white);
}
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-input::placeholder { color: var(--ink-5); }
.form-hint { font-size: 11px; color: var(--ink-5); margin-top: 4px; }

/* Error / success messages */
.msg-error {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #B91C1C;
  margin-bottom: 16px;
  display: none;
}
.msg-error.visible { display: block; }
.msg-success {
  background: var(--teal-lt);
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--teal);
  margin-bottom: 16px;
  display: none;
}
.msg-success.visible { display: block; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--ink); color: #fff; padding: 56px 0 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-name { font-size: 17px; font-weight: 700; color: var(--orange); letter-spacing: 1px; margin-bottom: 10px; }
.footer-brand-tagline { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--teal-mid); margin-bottom: 14px; }
.footer-brand p { font-size: 13px; color: #64748B; line-height: 1.7; max-width: 230px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: #475569; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13px; color: #64748B; margin-bottom: 9px; transition: color 0.15s; text-decoration: none; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: #475569; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.55s ease both; }
.fade-up-d1 { animation-delay: 0.1s; }
.fade-up-d2 { animation-delay: 0.2s; }
.fade-up-d3 { animation-delay: 0.3s; }
.fade-up-d4 { animation-delay: 0.4s; }
@media (prefers-reduced-motion: reduce) { .fade-up { animation: none; } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .tools-grid-2up { grid-template-columns: 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
  .sidebar-col { display: none; }
}

/* ─────────────────────────────────────────────────────────
   MOBILE  ≤ 768px
   ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Global overflow guard */
  html, body { overflow-x: hidden; }

  .container,
  .page-hero-inner,
  .hero-fullbleed-content,
  .ad-leaderboard-wrap,
  .cta-inner { padding-left: 20px; padding-right: 20px; }

  .footer-inner { padding-left: 20px; padding-right: 20px; }

  /* ── NAV — two-row Amazon-style layout ── */

  /* Nav becomes auto-height to accommodate search row */
  .nav {
    height: auto;
    overflow: visible;
  }

  /* Row 1 — hamburger | logo | actions */
  .nav-inner {
    padding: 0 14px;
    height: 58px;           /* fixed height for row 1 only */
    overflow: visible;
    align-items: center;    /* vertically center row 1 items */
    gap: 8px;
  }

  /* Hamburger — show on left */
  .nav-mobile-toggle {
    display: flex !important;
    order: 0;
    align-self: center;
    flex-shrink: 0;
  }

  /* Logo — breakout effect, sits between hamburger and actions */
  .nav-brand {
    order: 1;
    flex: 1;                /* takes available space */
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: visible;
    padding-left: 4px;
  }
  .logo-img {
    display: block !important;
    height: 38px;
    width: auto;
    position: relative;
    bottom: -6px;           /* breakout below nav border */
  }
  .logo-text-mobile {
    display: none;          /* shown via onerror only */
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1px;
  }

  /* Desktop nav links — hidden, replaced by drawer */
  .nav-links { display: none !important; }

  /* Actions — compact, right-aligned */
  .nav-actions {
    display: flex !important;
    order: 2;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    align-self: center;
  }
  .nav-action-signin {
    font-size: 12px;
    padding: 5px 8px;
    white-space: nowrap;
  }
  .nav-action-join {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
  }

  /* Dropdowns — desktop only */
  .nav-dropdown { display: none !important; }
  .nav-item-link svg { display: none; }
  .nav-item { position: static; }

  /* Row 2 — full-width search bar */
  .nav-search-row {
    display: block;
    padding: 0 14px 10px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
  }
  .nav-search-bar {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border-md);
    border-radius: 8px;
    overflow: hidden;
  }
  .nav-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--sans);
    color: var(--ink-2);
    background: transparent;
  }
  .nav-search-bar input::placeholder { color: var(--ink-5); }
  .nav-search-btn {
    background: var(--orange);
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
  }
  .nav-search-btn:hover { background: var(--orange-dk); }

  /* Drawer — adjust top to clear two-row nav height */
  .nav-drawer { top: 108px; } /* 58px row1 + ~10px search row padding + 40px search bar */

  /* Hide hero search bar — replaced by nav search row on mobile */
  .search-float-wrap { display: none; }

  /* ── Hero ── */
  .hero-fullbleed-stats { gap: 20px; }
  .hero-fullbleed-btns { flex-direction: column; }
  .hero-fullbleed-btns a,
  .hero-fullbleed-btns button { text-align: center; justify-content: center; }

  /* ── Port cards — 2-col grid, no horizontal scroll ── */
  .ports-scroll-wrap { overflow: hidden; width: 100%; }
  .ports-scroll {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .ports-scroll .port-card { min-width: unset; flex-shrink: unset; }
  .ports-scroll .port-card-viewall { display: none; }
  .port-card-img { height: 100px; }

  /* ── Misc layout ── */
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .affiliate-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .ports-scroll { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────
   DESKTOP — nav search row stays hidden
   ───────────────────────────────────────────────────────── */
.nav-search-row { display: none; }

/* ── PORT CARDS — horizontal scroll container ─────────── */
.ports-scroll-wrap { overflow: hidden; width: 100%; max-width: 100%; }
.ports-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  overscroll-behavior-x: contain;
}
.ports-scroll::-webkit-scrollbar { display: none; }

/* ── MOBILE NAV ACTIONS — legacy (kept for safety) ───── */
.nav-mobile-actions { display: none; }