/* =========================================================================
   Salmart Hub — Shared Design System
   Single source of truth for all /hub article pages.
   Light + dark, fully responsive, modern & professional.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  --bg: #f6f8f6;
  --surface: #ffffff;
  --surface-2: #f0f4f0;
  --surface-3: #e8efe9;
  --border: #e2e8e2;
  --border-strong: #ccd8cf;
  --text: #16221b;
  --text-2: #3c4a40;
  --muted: #66756b;
  --brand: #16a34a;
  --brand-2: #0d9488;
  --brand-deep: #15803d;
  --brand-soft: #e7f6ec;
  --brand-softer: #f0faf3;
  --brand-ink: #ffffff;
  --danger: #dc2626;
  --danger-soft: #fdeaea;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --teal-soft: #e4f4f4;
  --gold-soft: #fdf6e3;
  --shadow-sm: 0 1px 2px rgba(22, 34, 27, .06), 0 1px 3px rgba(22, 34, 27, .08);
  --shadow-md: 0 6px 20px rgba(22, 34, 27, .08);
  --shadow-lg: 0 16px 40px rgba(22, 34, 27, .14);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --nav-h: 64px;
  --grad-brand: linear-gradient(135deg, #16a34a 0%, #0d9488 100%);
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #0b110e;
  --surface: #141c18;
  --surface-2: #1a241f;
  --surface-3: #22302a;
  --border: #26342d;
  --border-strong: #374a41;
  --text: #e9f0ea;
  --text-2: #c2cec6;
  --muted: #8ba094;
  --brand: #22c55e;
  --brand-2: #2dd4bf;
  --brand-deep: #4ade80;
  --brand-soft: #132a1b;
  --brand-softer: #0f2017;
  --brand-ink: #06130b;
  --danger: #f87171;
  --danger-soft: #2a1616;
  --warn: #fbbf24;
  --warn-soft: #2b2213;
  --teal-soft: #0f2424;
  --gold-soft: #2b2515;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .5);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .6);
  --grad-brand: linear-gradient(135deg, #15803d 0%, #0e7490 100%);
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color .3s ease, color .3s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
:root[data-theme='dark'] a { color: var(--brand); }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }
strong { color: var(--text); font-weight: 600; }
em { color: inherit; }
hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px);
  flex: 1;
}

/* =========================================================================
   TOP NAVIGATION
   ========================================================================= */
.hub-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.hub-nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.hub-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  letter-spacing: -.2px;
}
.hub-nav__brand:hover { text-decoration: none; }
.hub-nav__logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.hub-nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}
.hub-nav__brand-text small {
  font-size: .66rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hub-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.hub-nav__links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 9px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background-color .18s ease, color .18s ease;
}
.hub-nav__links a:hover { background: var(--surface-2); color: var(--brand-deep); text-decoration: none; }
.hub-nav__links a.is-active { color: var(--brand-deep); background: var(--brand-soft); }
:root[data-theme='dark'] .hub-nav__links a:hover,
:root[data-theme='dark'] .hub-nav__links a.is-active { color: var(--brand); }

.hub-nav__actions { display: flex; align-items: center; gap: 8px; }
.hub-theme-toggle, .hub-nav__burger {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
  font-size: 1.05rem;
  transition: background-color .18s ease, border-color .18s ease, transform .15s ease;
}
.hub-theme-toggle:hover, .hub-nav__burger:hover { background: var(--surface-2); border-color: var(--border-strong); }
.hub-theme-toggle:active, .hub-nav__burger:active { transform: scale(.96); }
.hub-theme-toggle .icon-sun { display: none; }
.hub-theme-toggle .icon-moon { display: block; }
:root[data-theme='dark'] .hub-theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .hub-theme-toggle .icon-moon { display: none; }

.hub-nav__burger { display: none; flex-direction: column; gap: 5px; }
.hub-nav__burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.hub-nav__burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hub-nav__burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.hub-nav__burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.hub-nav__drawer {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px 40px;
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s;
  overflow-y: auto;
  z-index: 999;
}
.hub-nav__drawer.open { transform: none; opacity: 1; visibility: visible; }
.hub-nav__drawer > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-weight: 700;
  font-size: 1.04rem;
}
.hub-nav__drawer > a:hover { color: var(--brand-deep); text-decoration: none; }
:root[data-theme='dark'] .hub-nav__drawer > a:hover { color: var(--brand); }
.hub-nav__drawer > a::after { content: '→'; color: var(--muted); font-size: 1rem; }
.hub-nav__drawer .hub-nav__back {
  margin-top: 22px;
  display: flex;
  background: var(--grad-brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.hub-nav__drawer .hub-nav__back span { font-weight: 700; }
.hub-nav__drawer .hub-nav__back b { color: #fff; }
.hub-nav__drawer .hub-nav__back:hover { color: #fff; transform: translateY(-1px); }
.hub-nav__drawer .hub-nav__back::after { content: none; }

@media (max-width: 900px) {
  .hub-nav__links { display: none; }
  .hub-nav__burger { display: flex; }
}

/* =========================================================================
   HERO / PAGE HEADER
   ========================================================================= */
.blog-header {
  position: relative;
  text-align: center;
  overflow: hidden;
  color: #fff;
  border-radius: var(--radius-lg);
  background: var(--grad-brand);
  padding: clamp(44px, 8vw, 84px) clamp(20px, 5vw, 48px);
  margin-bottom: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.blog-header::before {
  content: '✦';
  position: absolute;
  top: -10px;
  right: -12px;
  font-size: clamp(6rem, 16vw, 11rem);
  line-height: 1;
  opacity: .14;
  color: #fff;
  transform: rotate(12deg);
  pointer-events: none;
}
.blog-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.16), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(255,255,255,.12), transparent 40%);
  pointer-events: none;
}
.blog-header > * { position: relative; z-index: 1; }

.blog-header .hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}
.blog-header h1 {
  color: #fff;
  font-size: clamp(1.7rem, 4.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0 auto 14px;
  max-width: 20em;
}
.blog-header .subtitle {
  font-size: clamp(1rem, 2vw, 1.22rem);
  opacity: .95;
  max-width: 46em;
  margin: 0 auto;
  font-weight: 500;
}
.blog-header p:not(.blog-meta) {
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 500;
  opacity: .95;
  max-width: 40em;
  margin: 0 auto 18px;
}
.blog-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  font-size: .84rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  padding: 7px 16px;
  opacity: 1;
  color: #fff;
  backdrop-filter: blur(4px);
}
.blog-meta::before { content: '·'; font-weight: 900; margin-right: 4px; }

/* Breadcrumb */
.hub-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: .84rem;
  color: var(--muted);
  margin: 4px 2px 18px;
}
.hub-crumbs a { color: var(--brand-deep); font-weight: 600; }
:root[data-theme='dark'] .hub-crumbs a { color: var(--brand); }
.hub-crumbs a:hover { text-decoration: underline; }
.hub-crumbs span:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--border-strong); }

/* =========================================================================
   ARTICLE CARD
   ========================================================================= */
.blog-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}
.blog-content > * + * { margin-top: 22px; }
.blog-content p { color: var(--text-2); font-size: 1.06rem; line-height: 1.85; }
.blog-content .section-title { margin-top: clamp(36px, 6vw, 52px); }
.blog-content .section-title:first-child { margin-top: 0; }

/* Section titles */
.section-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--text);
  font-weight: 700;
  letter-spacing: -.3px;
  padding-bottom: 12px;
  position: relative;
  margin: 8px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  background: var(--grad-brand);
}

/* =========================================================================
   CONTENT COMPONENTS — callouts, panels, lists, grids, steps
   ========================================================================= */

/* ---- Intro / lead ---- */
.intro-text {
  font-size: 1.12rem;
  color: var(--text-2);
  padding: clamp(18px, 3vw, 26px);
  background: var(--brand-softer);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
}
.intro-text strong { color: var(--brand-deep); }
:root[data-theme='dark'] .intro-text strong { color: var(--brand); }

/* ---- Filled brand panels ---- */
.intro-highlight,
.highlight-quote,
.game-changer,
.final-tagline,
.impact,
.conclusion h3 + p,
.conclusion {
  background: var(--grad-brand);
  color: #fff;
  padding: clamp(20px, 4vw, 28px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.intro-highlight { text-align: center; font-size: 1.15rem; font-weight: 600; }
.intro-highlight b, .intro-highlight strong { color: #fff; font-weight: 700; }
.highlight-quote { font-size: 1.15rem; font-style: italic; position: relative; padding-left: clamp(28px, 5vw, 40px); }
.highlight-quote::before { content: '“'; position: absolute; left: 14px; top: -6px; font-size: 3.2rem; opacity: .45; font-style: normal; line-height: 1; }
.conclusion {
  text-align: center;
  margin-top: clamp(32px, 6vw, 48px);
  background: var(--grad-brand);
}
.conclusion h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.conclusion p { color: rgba(255,255,255,.94); }
.conclusion .final-tagline { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); margin-top: 18px; }
.conclusion p, .conclusion br { color: rgba(255,255,255,.94); }

.final-word, .final-thoughts {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(26px, 5vw, 40px);
  box-shadow: var(--shadow-sm);
  margin-top: clamp(28px, 5vw, 44px);
}
.final-word h3, .final-thoughts h3 { font-size: 1.35rem; color: var(--text); margin-bottom: 14px; }
.final-word p, .final-thoughts p { color: var(--text-2); }

/* ---- Outlined / soft panels (grouped) ---- */
.bargain-section,
.benefits-section,
.coming-soon-section,
.cmr-section,
.cmr-definition,
.cmr-power,
.escrow-section,
.escrow-definition,
.escrow-benefits,
.dispute-section,
.example-section,
.trust-section,
.trust-lines,
.no-pressure,
.no-delivery,
.why-it-matters,
.why-matters,
.transparency-note,
.fairness-note,
.safety-vault,
.safety-benefits,
.ad-benefits,
.combining-features,
.communication-section,
.target-audience,
.unique-features,
.how-it-works,
.list-section,
.deals-section,
.highlight-different,
.pro-tips,
.who-can-use,
.game-changer {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 32px);
  margin: 8px 0 12px;
}
.cmr-power, .escrow-definition, .trust-lines, .no-delivery, .no-pressure {
  border-left-color: var(--brand-2);
}
.transparency-note, .fairness-note, .who-can-use, .highlight-different {
  background: var(--gold-soft);
  border-left-color: var(--warn);
}
.bargain-section h3, .benefits-section h3, .cmr-title, .vault-title,
.escrow-section h3, .escrow-benefits h3, .dispute-section h3, .example-section h3,
.trust-section h3, .target-audience h3, .unique-features h3, .deals-section h3,
.pro-tips h3, .who-can-use h3, .why-it-matters h3, .why-matters h3, .no-pressure h3,
.ad-benefits h3, .combining-features h3, .communication-section h3 {
  font-size: 1.18rem;
  color: var(--text);
  margin-bottom: 14px;
}
.panel-label, .section-label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 8px;
  display: block;
}
:root[data-theme='dark'] .panel-label, :root[data-theme='dark'] .section-label { color: var(--brand); }

/* ---- Feature grids & cards ---- */
.features-grid,
.protection-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 8px 0;
}
.feature-card,
.protection-card,
.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover, .protection-card:hover, .skill-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
}
.feature-card h4, .protection-card h4, .skill-category h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--brand-deep);
}
:root[data-theme='dark'] .feature-card h4,
:root[data-theme='dark'] .protection-card h4,
:root[data-theme='dark'] .skill-category h4 { color: var(--brand); }
.feature-card p, .protection-card p, .skill-category p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---- Feature / list items ---- */
.feature-item,
.feature-list li,
.protection-list li,
.safety-list li,
.tips-list li,
.deals-list li,
.tracking-list li,
.buyer-features li,
.seller-features li,
.comm-features li,
.who-can-use-list li,
.use-case-list li,
.trust-list li,
.core-values-list li,
.builder-list li,
.solution-list li,
.problem-list li,
.consequences-list li,
.rules-list li,
.red-flags-list li,
.roadmap-list li,
.benefits-list li,
.coming-soon-list li,
.process-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-2);
  font-size: 1.02rem;
}
.feature-list, .protection-list, .safety-list, .tips-list, .deals-list, .tracking-list,
.buyer-features, .seller-features, .comm-features, .who-can-use-list, .use-case-list,
.trust-list, .core-values-list, .builder-list, .solution-list, .problem-list,
.consequences-list, .rules-list, .red-flags-list, .roadmap-list, .benefits-list,
.coming-soon-list, .process-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0;
}
.feature-list li::before, .protection-list li::before, .safety-list li::before,
.tips-list li::before, .deals-list li::before, .tracking-list li::before,
.buyer-features li::before, .seller-features li::before, .comm-features li::before,
.who-can-use-list li::before, .use-case-list li::before, .trust-list li::before,
.core-values-list li::before, .builder-list li::before, .solution-list li::before,
.problem-list li::before, .consequences-list li::before, .rules-list li::before,
.red-flags-list li::before, .roadmap-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.benefits-list li::before, .coming-soon-list li::before, .process-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--grad-brand);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M12.7 5.3l-5.4 5.4L4.6 8 3.9 8.7l3.4 3.4 6.1-6.1z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="black" d="M12.7 5.3l-5.4 5.4L4.6 8 3.9 8.7l3.4 3.4 6.1-6.1z"/></svg>') center/contain no-repeat;
}

/* ---- Numbered steps ---- */
.example-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}
.example-section { margin: 8px 0 12px; }
.example-title {
  font-size: 1.18rem;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.example-title::before {
  content: '—';
  color: var(--brand);
  font-weight: 800;
}
.feature-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}
.trust-tagline {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 1.08rem;
  margin: 12px 0;
}
:root[data-theme='dark'] .trust-tagline { color: var(--brand); }

/* ---- Numbered steps ---- */
.process-list, .setup-steps, .step-list, .cmr-steps, .vault-steps,
.dispute-process {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin: 14px 0;
}
.process-list li, .setup-steps li, .step-list li, .cmr-steps li, .vault-steps li,
.example-steps li, .dispute-process li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 62px;
  margin-bottom: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.02rem;
  color: var(--text-2);
}
.process-list li::before, .setup-steps li::before, .step-list li::before,
.cmr-steps li::before, .vault-steps li::before, .example-steps li::before,
.dispute-process li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.how-it-works ol {
  counter-reset: how;
  list-style: none;
  padding-left: 0;
}
.how-it-works li {
  counter-increment: how;
  position: relative;
  padding: 16px 16px 16px 56px;
  border-bottom: 1px dashed var(--border-strong);
  color: var(--text-2);
  font-size: 1.02rem;
}
.how-it-works li:last-child { border-bottom: none; }
.how-it-works li::before {
  content: counter(how);
  position: absolute;
  left: 6px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
}
:root[data-theme='dark'] .how-it-works li::before { color: var(--brand); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-container { display: flex; flex-direction: column; gap: 14px; margin: 10px 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
  border: none;
  width: 100%;
  text-align: left;
  transition: background-color .18s ease;
  font-family: inherit;
}
.faq-question:hover { background: var(--surface-2); }
.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand-deep);
  background: var(--brand-soft);
  transition: transform .25s ease, background-color .25s ease;
}
:root[data-theme='dark'] .faq-question::after { color: var(--brand); }
.faq-question.active { background: var(--surface-2); }
.faq-question.active::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  padding: 0 18px 18px;
  color: var(--text-2);
  font-size: 1rem;
  margin: 0;
}
.faq-answer p:first-child { padding-top: 0; }
.faq-answer p[style] { padding: 0 18px 18px; }

/* =========================================================================
   PORTFOLIO COMPONENTS
   ========================================================================= */
.badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  margin: 4px;
  font-weight: 600;
  font-size: .86rem;
  backdrop-filter: blur(4px);
}
.about-img { text-align: center; margin: 22px 0; }
.about-img img {
  width: min(240px, 70vw);
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  outline: 4px solid var(--brand);
  box-shadow: var(--shadow-md);
  margin: 0 auto;
}
.project-card {
  border: 1px solid var(--border);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project-title { color: var(--brand-deep); font-size: 1.15rem; margin-bottom: 8px; }
:root[data-theme='dark'] .project-title { color: var(--brand); }
.project-url { color: var(--brand-deep); font-weight: 600; }
:root[data-theme='dark'] .project-url { color: var(--brand); }
.project-url:hover { text-decoration: underline; }
.impact { margin-top: 14px; }
.achievements { background: var(--grad-brand); color: #fff; border-radius: var(--radius); padding: 24px; margin: 12px 0; }
.achievements h3 { color: #fff; margin-bottom: 12px; }
.achievement-item {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 8px 0;
  color: #fff;
}
.achievement-item strong { color: #fff; }
.experience-item {
  border-left: 5px solid var(--brand);
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 14px;
}
.job-title { font-weight: 700; color: var(--brand-deep); font-size: 1.08rem; }
:root[data-theme='dark'] .job-title { color: var(--brand); }
.job-period { font-size: .88rem; color: var(--muted); margin: 2px 0 10px; }
.contact { background: var(--grad-brand); color: #fff; text-align: center; padding: clamp(26px, 5vw, 40px); border-radius: var(--radius); margin-top: 20px; }
.contact h3 { color: #fff; margin-bottom: 18px; font-size: 1.3rem; }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Section blocks (portfolio + generic pages) */
section { margin: 34px 0; }
section > .section-title { margin-bottom: 18px; }
section p { color: var(--text-2); }
.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--brand-deep);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.hub-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: clamp(36px, 6vw, 56px) clamp(16px, 4vw, 40px) 28px;
}
.hub-footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(24px, 5vw, 48px);
}
.hub-footer__brand .hub-nav__logo { margin-bottom: 14px; }
.hub-footer__brand p { color: var(--muted); font-size: .95rem; max-width: 34em; }
.hub-footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hub-footer__col ul { list-style: none; }
.hub-footer__col li { margin-bottom: 9px; }
.hub-footer__col a { color: var(--text-2); font-size: .95rem; }
.hub-footer__col a:hover { color: var(--brand-deep); text-decoration: none; }
:root[data-theme='dark'] .hub-footer__col a:hover { color: var(--brand); }
.hub-footer__bottom {
  max-width: 1100px;
  margin: 32px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
}
@media (max-width: 760px) {
  .hub-footer__grid { grid-template-columns: 1fr; }
  .hub-footer__bottom { flex-direction: column; text-align: center; }
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.hub-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-deep);
  margin: 0 2px 18px;
}
:root[data-theme='dark'] .hub-back-link { color: var(--brand); }
.hub-back-link::before { content: '←'; }

/* Reading progress */
.hub-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: var(--grad-brand);
  z-index: 1200;
  border-radius: 0 999px 999px 0;
  transition: width .08s linear;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1100;
  border: none;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: #fff; text-decoration: none; transform: translateY(-3px); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
  .blog-content { padding: 24px 18px; border-radius: var(--radius); }
  .blog-meta { font-size: .78rem; }
  .section-title { font-size: 1.3rem; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
  .feature-list li, .protection-list li, .safety-list li, .tips-list li,
  .deals-list li, .tracking-list li, .benefits-list li, .coming-soon-list li,
  .process-list li, .rules-list li { padding-left: 26px; font-size: .98rem; }
}
