/* ── TOKENS (LIGHT — DEFAULT) ─────────────────────────────────────── */
:root {
  --blue-deep: #2E6BDE;
  --blue:      #2563EB;
  --blue2:     #3B82F6;
  --blue3:     #60A5FA;
  --blueL:     #60a5fa;
  --blue-dim:  rgba(37,99,235,0.07);
  --blue-mid:  rgba(37,99,235,0.14);
  --white:     #FFFFFF;
  --black:     #000000;
  --bg:        #F3F7FF;
  --bg2:       #FFFFFF;
  --bg3:       #EBF2FF;
  --surface:   #FFFFFF;
  --surface0: rgba(255,255,255,0.5);
  --surface1:  #FFFFFF;
  --surface-2: rgba(255,255,255,.75);
  --overlay:   rgba(255,255,255,0.1);
  --box-shdw:  0 4px 12px rgb(0 0 0 / 10%);
  --ink:       #0E1626;
  --text:      #0F172A;
  --text1:     rgba(0,0,0,0.75);
  --textW:     #fff;
  --muted:     #64748B;
  --muted2:    #c1cdde;
  --border1:   transparent;
  --border:    rgba(37,99,235,0.18);
  --border2:   rgba(15,23,42,0.08);
  --borderW:   rgba(255,255,255,0.15);
  --red:       #EF4444;
  --red1:      #c0392b;
  --green:     #10B981;
  --navy:      #0f172a;
  --navy3:     #334155;
  --light:     #94a3b8;
  --radius:    8px;
  --rad-lg:    16px;
  --shadow:    0 4px 24px rgba(37,99,235,0.07);
  --shadow-hv: 0 20px 56px rgba(37,99,235,0.15);
  --glass-bg:     linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.16));
  --glass-border: rgba(255,255,255,.25);
  --overlay-bg:   rgba(0,0,0,.16);
  --sidebar-bg:   rgba(255,255,255,.80);
  --sidebar-edge: var(--white);
  --toast-bg:     #10141a;
  --toast-text:   #e8edf5;
  --input-text:   #0F172A;
  --img-filter:   none;
  --bd-filter:    blur(16px);
  color-scheme:   light;
}

/* ── TOKENS (DARK) ───────────────────────────────────────────────── */
html[data-theme="dark"] {
  --blue-deep: #FFFFFF;
  --blue:      #2563EB;
  --blue2:     #3B82F6;
  --blue3:     #60A5FA;
  --blueL:     #60a5fa;
  --blue-dim:  rgba(37,99,235,0.07);
  --blue-mid:  rgba(37,99,235,0.14);
  --white:     #000000;
  --black:     #FFFFFF;
  --bg:        #0C1220;
  --bg2:       #0F172A;
  --bg3:       #111C31;
  --surface:   #0F172A;
  --surface0:  rgba(0,0,0,0.5);
  --surface1:  rgba(255,255,255,0.9);
  --surface-2: rgba(0,0,0,.75);
  --overlay:   rgba(25,100,255,0.1);
  --box-shdw:  0 0 52px rgb(255 255 255 / 20%);
  --ink:       #D7E3FC;
  --text:      #F8FAFC;
  --text1:     rgba(255,255,255,0.75);
  --textW:     #000000;
  --muted:     #94A3B8;
  --muted2:    #475569;
  --border1:   rgba(255,255,255,0.2);
  --border:    rgba(96,165,250,0.28);
  --border2:   rgba(248,250,252,0.08);
  --borderW:   rgba(0,0,0,0.15);
  --red:       #EF4444;
  --red1:      #c0392b;
  --green:     #10B981;
  --navy:      #F0E8D5;
  --navy3:     #334155;
  --light:     #94a3b8;
  --radius:    8px;
  --rad-lg:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.25);
  --shadow-hv: 0 20px 56px rgba(0,0,0,0.40);
  --glass-bg:     linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  --glass-border: rgba(255,255,255,.12);
  --overlay-bg:   rgba(255,255,255,0.16);
  --sidebar-bg:   rgba(15,23,42,.80);
  --sidebar-edge: #000000;
  --toast-bg:     #E8EDF5;
  --toast-text:   #10141A;
  --input-text:   #F8FAFC;
  --img-filter:   brightness(0) invert(1);
  --bd-filter:    none;
  color-scheme:   dark;
}

/* Smooth, non-flashy transition when switching themes */
html.theme-transition, html.theme-transition *{
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease !important;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }
* { -webkit-tap-highlight-color: transparent; }

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

.noscroll { overflow: hidden; scrollbar-gutter: stable; }
body.nobodyscroll { overflow: hidden; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── TOPBAR ──────────────────────────────────────────────────────── */
.topbar {
  background: #4287f5; color: #fff; text-align: center;
  padding: 8px 20px; font-size: 12px; font-weight: 500; letter-spacing: .3px;
  position: relative;
}
.topbar span { opacity: .55; margin: 0 10px; }
.topbar-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,.65); font-size: 18px; line-height: 1;
}
.topbar-close:hover { color: #fff; }

/* ── HEADER ──────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 1000; overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.04);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.04);
  border-bottom: 1px solid var(--borderW);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 12px 45px rgba(37,99,235,.12), inset 0 1px rgba(255,255,255,.15), inset 0 -1px rgba(255,255,255,.05);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; gap: 24px; height: 68px;
}
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 5px; border-radius: 200px; padding: 5px 10px; filter: var(--img-filter); }
.footerLogo { flex-shrink: 0; display: flex; align-items: center; gap: 5px; position: relative; bottom: 25px; filter: var(--img-filter); }
.nav-main { display: flex; gap: 2px; }
.nav-main a {
  background: var(--glass-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,.06), inset 0 1px rgba(255,255,255,.2);
  padding: 7px 14px; font-size: 13px; font-weight: 500;
  color: var(--muted); border-radius: 911px; transition: color .2s, background .2s;
}
.nav-main a:hover { color: var(--text); background: var(--bg3); }
.nav-main a.active { color: var(--blue); background: var(--surface-2); border: 1px solid var(--blue); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 6px; }
.search-bar {
  flex: 1; max-width: 420px; display: flex; align-items: center;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--border2); border-radius: 100px; padding: 0 16px; gap: 8px;
  transition: border-color .2s, background .2s;
}
.search-bar:focus-within { background: var(--surface); border: 1.5px solid var(--blue); }
.search-bar input { background: none; border: none; outline: none; color: var(--input-text); font-size: 15px; font-weight: 600; flex: 1; padding: 9px 0; }
.search-bar input::placeholder { color: var(--muted); font-size: 14px; font-weight: 400; }
.search-bar svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2; flex-shrink: 0; }

.icon-btn {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--border2);
  box-shadow: 0 2px 12px rgba(0,0,0,.06), inset 0 1px rgba(255,255,255,.2);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
  transition: transform .35s, box-shadow .35s, background .35s;
}
.icon-btn:hover { transform: translateY(-2px); background: var(--bg3); color: var(--blue); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hd-badge {
  position: absolute; top: 1px; right: 1px; min-width: 17px; height: 17px;
  background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; padding: 0 2px;
}
.btn-account {
  background: var(--blue); color: #fff; padding: 8px 20px; border-radius: 100px;
  font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
  transition: background .2s, transform .2s;
}
.btn-account:hover { background: var(--blue2); transform: translateY(-1px); }

.header-profile {
  width: 40px; height: 40px; background: var(--blue); border: 1px solid var(--bg3);
  overflow: hidden; cursor: pointer; color: var(--blue3); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.header-profile:hover { transform: translateY(-2px); }
.header-profile img { width: 30px; height: 30px; border-radius: 50%; filter: brightness(0) invert(1); }

/* ── PAGE-LEVEL SECTION SHELL ────────────────────────────────────── */
.aff-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.aff-container-narrow { max-width: 760px; }
.aff-section { padding: 88px 0; }
.aff-section-alt { background: var(--bg3); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .8px;
  color: var(--blue); background: var(--blue-dim); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-head h2 { font-family: 'Outfit', sans-serif; font-size: 32px; font-weight: 600; line-height: 1.25; color: var(--text); }

/* Scroll reveal (IntersectionObserver-driven) */
.io-reveal { opacity: 0; transform: translateY(25px); transition: opacity .6s ease, transform .6s ease; }
.io-reveal.in { opacity: 1; transform: translateY(0); }

/* ── AFFILIATE HERO ──────────────────────────────────────────────── */
.aff-hero {
  position: relative; overflow: hidden;
  padding: 96px 28px 88px; text-align: center;
  background: var(--surface); border-bottom: 1px solid var(--border2);
}
.aff-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; animation: drift 22s ease-in-out infinite; }
.blob-1 { width: 480px; height: 480px; top: -220px; right: -160px; background: radial-gradient(circle, var(--blue-mid) 0%, transparent 70%); }
.blob-2 { width: 360px; height: 360px; bottom: -200px; left: -120px; background: radial-gradient(circle, var(--blue-dim) 0%, transparent 70%); animation-duration: 28s; animation-direction: reverse; }
.blob-3 { width: 220px; height: 220px; top: 30%; left: 8%; background: radial-gradient(circle, rgba(96,165,250,.10) 0%, transparent 70%); animation-duration: 18s; }
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(24px,-18px) scale(1.05); } }

.aff-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.aff-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .8px;
  color: var(--blue); background: var(--blue-dim); border: 1px solid var(--border);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 22px;
}
.aff-hero-inner h1 { font-family: 'Outfit', sans-serif; font-size: 48px; font-weight: 600; line-height: 1.2; color: var(--text); margin-bottom: 18px; }
.aff-hero-inner h1 .accent { color: var(--blue); }
.aff-hero-lead { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.aff-hero-desc { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 540px; margin: 0 auto 34px; }
.aff-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Sequenced entrance for the hero (single orchestrated moment) */
.reveal { opacity: 0; transform: translateY(16px); animation: heroIn .7s ease forwards; animation-delay: calc(var(--d) * .12s + .05s); }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.btn-primary-lg {
  background: var(--blue); color: #fff; padding: 15px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 10px 26px rgba(37,99,235,.25);
}
.btn-primary-lg:hover { background: var(--blue2); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,99,235,.32); }
.btn-outline-lg {
  background: transparent; color: var(--blue); border: 1.5px solid var(--border);
  padding: 15px 28px; border-radius: 100px; font-size: 15px; font-weight: 600;
  transition: border-color .2s, background .2s, transform .2s;
}
.btn-outline-lg:hover { border-color: var(--blue); background: var(--blue-dim); transform: translateY(-2px); }

/* ── BENEFITS ────────────────────────────────────────────────────── */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--rad-lg);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hv); border-color: var(--border); }
.benefit-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--blue-dim); color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 16px;
}
.benefit-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.benefit-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ── TIMELINE ────────────────────────────────────────────────────── */
.timeline { list-style: none; max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 23px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--border), transparent);
}
.timeline-step { display: flex; gap: 22px; padding-bottom: 34px; position: relative; }
.timeline-step:last-child { padding-bottom: 0; }
.ts-num {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 700; z-index: 1;
}
.ts-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; padding-top: 10px; color: var(--text); }
.ts-body p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ── STATS STRIP ─────────────────────────────────────────────────── */
.stats-strip { background: var(--bg3); border-top: 1px solid var(--border2); border-bottom: 1px solid var(--border2); padding: 24px 0; }
.stats-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
}
.stat-it { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.stat-it svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; flex-shrink: 0; }
.stat-it strong { color: var(--text); font-weight: 700; }

/* ── AUDIENCE ────────────────────────────────────────────────────── */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.audience-card {
  background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 20px 14px; text-align: center; transition: transform .2s, border-color .2s;
}
.audience-card:hover { transform: translateY(-3px); border-color: var(--border); }
.audience-card i { font-size: 20px; color: var(--blue); margin-bottom: 10px; display: block; }
.audience-card span { font-size: 12.5px; font-weight: 600; color: var(--text); }

/* ── CHANNELS ────────────────────────────────────────────────────── */
.channels-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.channel-card {
  width: 128px; background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius);
  padding: 22px 10px; text-align: center; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.channel-card:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: var(--shadow); }
.channel-card i { font-size: 24px; color: var(--blue); margin-bottom: 10px; display: block; }
.channel-card span { font-size: 12.5px; font-weight: 600; color: var(--text); }

/* ── COMMISSION FLOW ─────────────────────────────────────────────── */
.flow-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 0 auto 22px; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 118px; }
.flow-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--border);
  color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: var(--shadow);
}
.flow-step-final .flow-icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.flow-step span { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }
.flow-arrow { color: var(--muted2); font-size: 14px; }
.flow-note { text-align: center; font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ── DASHBOARD MOCKUP ────────────────────────────────────────────── */
.dash-mock { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--rad-lg); box-shadow: var(--shadow); overflow: hidden; }
.dash-mock-hd { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border2); }
.dash-mock-title { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; color: var(--text); }
.dash-mock-badge { font-size: 11px; font-weight: 700; color: var(--blue); background: var(--blue-dim); padding: 5px 12px; border-radius: 100px; }
.dash-mock-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border2); }
.dash-kpi { background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; }
.dash-kpi-label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dash-kpi-label i { color: var(--blue); font-size: 12px; }
.dash-kpi-value { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 600; color: var(--text); }
.dash-mock-chart { width: 100%; height: 90px; display: block; padding: 16px 20px 0; }
.dash-mock-chart polyline { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dash-mock-foot { padding: 10px 24px 20px; font-size: 11.5px; color: var(--muted); font-style: italic; }

/* ── CTA FINAL ───────────────────────────────────────────────────── */
.aff-cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 100%); padding: 76px 28px; text-align: center; }
.aff-cta-inner { max-width: 560px; margin: 0 auto; }
.aff-cta h2 { font-family: 'Outfit', sans-serif; font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.aff-cta p { font-size: 14.5px; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.6; }
.aff-cta .btn-primary-lg { background: #fff; color: var(--blue); box-shadow: 0 10px 26px rgba(0,0,0,.15); }
.aff-cta .btn-primary-lg:hover { background: rgba(255,255,255,.9); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border2); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; text-align: left; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.faq-q i { color: var(--blue); transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-a p { padding: 0 20px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.faq-item.open .faq-a { max-height: 240px; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer { background: var(--surface); position: relative; top: 50px; border-radius: 50px 50px 0 0; padding: 60px 24px 0; }
.footer-grid { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 48px; border-bottom: 1px solid var(--border2); }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 240px; margin-bottom: 20px; }
.social-links { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; transition: border-color .2s, transform .2s; }
.social-btn:hover { border-color: var(--blue); transform: scale(1.1); }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--blue); }
.footer-links a.active { color: var(--blue); font-weight: 700; }
.footer-bottom { max-width: 1400px; margin: 0 auto; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 12px; color: var(--muted); }
.payment-icons { display: flex; justify-content: center; gap: 8px; }
.pay-icon { background: var(--surface); border: 1px solid var(--border2); border-radius: 10px; padding: 4px 10px; }

/* ── OVERLAY + SIDEBARS (cart / fav / notif / more / acc) ───────── */
.overlay { position: fixed; inset: 0; background: var(--overlay-bg); backdrop-filter: blur(16px); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity .3s; }
.overlay.on { opacity: 1; pointer-events: all; }

.cart-sb, .fav-sb, .notif-sb, .more-sb, .acc-sb {
  position: fixed; right: 0; top: 0; bottom: 0; width: 420px;
  border: 3px solid var(--sidebar-edge);
  background: var(--sidebar-bg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 72px rgba(0,0,0,.35);
  border-top-left-radius: 25px; border-bottom-left-radius: 25px;
  z-index: 9999; transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.more-sb, .acc-sb { width: 400px; }
.cart-sb.on, .fav-sb.on, .notif-sb.on, .more-sb.on, .acc-sb.on { transform: translateX(0); }

.cart-hd, .fav-hd, .notif-hd, .more-hd, .acc-hd {
  padding: 24px; background: var(--white); border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 22px 0 30px 30px;
}
.cart-hd h3, .fav-hd h3, .notif-hd h3, .more-hd h3, .acc-hd h3 { font-family: 'Outfit'; font-size: 22px; font-weight: 500; color: var(--text); }
.cart-cls, .fav-cls, .notif-cls, .more-cls, .acc-cls {
  width: 34px; height: 34px; aspect-ratio: 1/1; border-radius: 50%; border: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: center; color: var(--text);
  transition: border-color .3s, color .3s, transform .3s, box-shadow .3s;
}
.cart-cls:hover, .fav-cls:hover, .notif-cls:hover, .more-cls:hover, .acc-cls:hover { border-color: var(--red); color: var(--red); transform: scale(1.15); box-shadow: 0 0 15px rgba(239,68,68,.35); }
.cart-cls svg, .fav-cls svg, .notif-cls svg, .more-cls svg, .acc-cls svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.cart-body, .fav-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.notif-body, .more-body, .acc-body { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.cart-empty-st, .fav-empty-st, .notif-empty-st, .more-empty-st {
  display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--muted); gap: 12px;
}
.cart-empty-st span, .fav-empty-st span, .notif-empty-st span { font-size: 44px; }

.cart-ft, .fav-ft { padding: 20px; background: var(--white); border-top: 1px solid var(--border2); border-radius: 30px 30px 0 20px; }
.notif-ft { width: 100%; padding: 20px; border-top: 1px solid var(--border2); background: var(--white); border-radius: 30px 30px 0 20px; }
.cart-tots, .fav-tots { margin-bottom: 16px; }
.ct-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; color: var(--text); }
.ct-row .lbl { color: var(--muted); }
.ct-row.ttl { font-size: 15px; font-weight: 600; padding-top: 10px; margin-top: 10px; }
.ct-row.ttl .amt { font-family: 'Outfit', serif; font-size: 22px; color: var(--blue); }

.btn-ckout {
  width: 100%; background: var(--blue); color: #fff; padding: 14px; border-radius: 100px;
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s; margin-bottom: 10px;
}
.btn-ckout:hover { background: var(--blue2); }
.btn-cont { width: 100%; background: none; border: 1px solid var(--border2); color: var(--muted); padding: 11px; border-radius: 100px; font-size: 12px; }
.btn-cont:hover { border-color: var(--blue); color: var(--blue); }

/* Theme switch, inside the More sidebar */
.theme-switch-wrap { padding: 6px 10px 14px; }
.acc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; padding-left: 5px; }
.theme-switch { display: flex; gap: 6px; background: var(--bg3); border-radius: 100px; padding: 4px; }
.theme-opt {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 6px; border-radius: 100px; font-size: 10.5px; font-weight: 600; color: var(--muted);
  transition: background .2s, color .2s, box-shadow .2s;
}
.theme-opt i { font-size: 14px; }
.theme-opt:hover { color: var(--text); }
.theme-opt[aria-checked="true"] { background: var(--surface); color: var(--blue); box-shadow: var(--shadow); }

.btn-menu3, .btn-acc-option {
  width: 100%; color: var(--text); border: 1px solid var(--border2); background: var(--white);
  padding: 14px; border-radius: 16px; transition: transform .2s, background .2s, border-color .2s;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px;
}
.btn-content { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 1; }
.btn-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.btn-title i { color: var(--blue); width: 18px; text-align: center; }
.btn-txt { font-weight: 500; font-size: 12.5px; color: var(--muted); text-align: left; }
.btn-arrow { font-size: 15px; font-weight: 700; color: var(--muted2); transition: transform .3s, color .3s; }
.btn-menu3:hover, .btn-acc-option:hover { transform: scale(1.015); border-color: var(--border); }
.btn-menu3:hover .btn-arrow, .btn-acc-option:hover .btn-arrow { color: var(--blue); transform: translateX(4px); }
.btn-acc-option.active { border-color: var(--blue); background: var(--blue-dim); }

.acc-menu-group { display: flex; flex-direction: column; border-radius: 22px; background: var(--white); padding: 10px; gap: 4px; }
.acc-profile-summary { background: var(--white); padding: 24px; border-radius: 22px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow); transition: transform .2s; cursor: pointer; width: 100%; text-align: left; }
.acc-profile-summary:hover { transform: scale(1.02); }
.acc-avatar-large { width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--blue); box-shadow: 0 0 20px rgba(37,99,235,.35); overflow: hidden; flex-shrink: 0; }
.acc-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.acc-info { display: flex; flex-direction: column; min-width: 0; }
.acc-info strong { font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-info span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acc-ft { margin-top: auto; padding-top: 10px; }
.btn-logout-sb { width: 100%; padding: 14px; border-radius: 150px; background: var(--surface); color: var(--red); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
.btn-logout-sb:hover { background: var(--red); color: #fff; transform: scale(1.02); }

/* ── PRODUCT MODAL (structural — kept for global compatibility) ──── */
.modal-ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.modal-ov.on { opacity: 1; pointer-events: all; }
.modal { box-shadow: 0 10px 30px rgba(0,0,0,.25); background: var(--surface); border-radius: 36px; max-width: 860px; width: min(860px, calc(100% - 24px)); max-height: 90vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; }
.modal-img-area { position: relative; background: var(--bg3); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.modal-img { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 72px; position: relative; }
.mcls, .btn-mwish1 { position: absolute; top: 12px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; color: var(--text); }
.mcls { right: 12px; } .btn-mwish1 { left: 12px; }
.mcls svg, .btn-mwish1 svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.m-qty-ctrl1 { display: none; }
.modal-gallery { display: flex; gap: 8px; margin-top: 12px; }
.modal-info { padding: 32px; display: flex; flex-direction: column; }
.m-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.m-name { font-family: 'Outfit'; font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.m-desc { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.m-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.m-price { font-family: 'Outfit'; font-size: 26px; font-weight: 600; color: var(--blue); }
.m-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.m-disc { font-size: 12px; font-weight: 700; color: var(--green); }
.m-feats { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.m-div { border: none; border-top: 1px solid var(--border2); margin: 16px 0; }
.m-qty-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.m-qty-lbl { font-size: 13px; color: var(--muted); }
.m-qty-ctrl, .m-qty-ctrl1 { display: flex; align-items: center; gap: 10px; }
.qb { color: var(--text); min-width: 34px; min-height: 34px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; transition: border-color .15s, color .15s; }
.qb:hover { border-color: var(--blue); color: var(--blue); }
.m-qty-num { font-size: 13px; font-weight: 600; min-width: 20px; text-align: center; }
.m-btns { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.m-price1 { font-family: 'Outfit'; font-size: 19px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.btn-madd { flex: 1; background: var(--blue); color: #fff; padding: 13px; border-radius: 100px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .2s; }
.btn-madd:hover { background: var(--blue2); }
.btn-mwish { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; color: var(--muted); flex-shrink: 0; }
.btn-mwish svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ── TOAST / BACK-TO-TOP ─────────────────────────────────────────── */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--toast-bg); border: 1px solid var(--border2); color: var(--toast-text); padding: 12px 20px; border-radius: 100px; font-size: 13px; font-weight: 500; z-index: 11000; display: flex; align-items: center; gap: 8px; transition: transform .3s cubic-bezier(.4,0,.2,1); white-space: nowrap; }
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-icon { width: 20px; height: 20px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; }
.back-top {
  position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-hv); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s; z-index: 900;
}
.back-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-top:hover { background: var(--blue2); }
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ── REDUCED MOTION ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .io-reveal { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .blob { animation: none; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-mock-grid { grid-template-columns: repeat(3, 1fr); }
  .aff-hero-inner h1 { font-size: 40px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-main { display: none; }
  .header-inner { height: auto; flex-wrap: wrap; padding: 14px 16px; gap: 12px; justify-content: space-between; }
  .search-bar { order: 4; max-width: 100%; width: 100%; }

  .aff-hero { padding: 64px 20px 56px; }
  .aff-hero-inner h1 { font-size: 32px; }
  .aff-hero-lead { font-size: 16px; }
  .aff-section { padding: 60px 0; }
  .section-head h2 { font-size: 26px; }

  .benefits-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-row { gap: 6px; }
  .flow-arrow { transform: rotate(90deg); }
  .dash-mock-grid { grid-template-columns: repeat(2, 1fr); }

  .stats-inner { gap: 16px; justify-content: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; align-items: center; }
  .footerLogo { justify-content: center; }
  .footer-brand p { margin: 0 auto 20px; }
  .social-links { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .payment-icons { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
}

@media (max-width: 600px) {
  .aff-hero-btns { flex-direction: column; width: 100%; }
  .aff-hero-btns button { width: 100%; }
  .channels-grid { gap: 10px; }
  .channel-card { width: calc(33.333% - 7px); }
}

@media (max-width: 480px) {
  .aff-hero-inner h1 { font-size: 27px; }
  .section-head h2 { font-size: 22px; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-mock-grid { grid-template-columns: repeat(2, 1fr); }
  .aff-cta h2 { font-size: 24px; }
}

@media (max-width: 420px) {
  .cart-sb, .fav-sb, .notif-sb, .more-sb, .acc-sb { width: 100%; border-radius: 20px 20px 0 0; }
}

@media (max-width: 375px) {
  .channel-card { width: calc(50% - 5px); }
  .benefit-card { padding: 22px 18px; }
}

@media (max-width: 320px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .dash-mock-grid { grid-template-columns: 1fr; }
  .aff-container { padding: 0 16px; }
}
