/* assets/css/main.css – iGamingB2B.net Design System */

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

:root {
  --cream:      #FFFFFF;
  --cream-mid:  #F5F6FB;
  --green:      #5B4EFF;
  --green-dk:   #3226C9;
  --green-lt:   #a89bff;
  --text:       #0b1220;
  --text-mid:   #5b6472;
  --text-muted: #9399a8;
  --card:       #ffffff;
  --border:     #e7e9f2;
  --tag-bg:     #eeebff;
  --tag:        #5B4EFF;
  --gold:       #c5a82a;
  --gold-lt:    #f5e9a0;
  --gold-text:  #7a6010;
  --star:       #d4a017;
  --radius:     14px;
  --radius-sm:  9px;
  --radius-lg:  22px;
  --shadow:     0 2px 12px rgba(91,78,255,0.10);
  --shadow-hov: 0 4px 20px rgba(91,78,255,0.16);
  --transition: 0.15s ease;
  --container:  1100px;
  --font-mono:  'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body { background: var(--cream); font-family: 'Inter', sans-serif; color: var(--text); font-size: 15px; line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: 'Manrope', sans-serif; font-weight: 800; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(24px, 4vw, 40px); }
h2 { font-size: clamp(20px, 3vw, 28px); }
h3 { font-size: 18px; }
h4 { font-size: 14px; font-weight: 700; }

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 3rem 0; }

/* ── Navbar ──────────────────────────────────────────── */
.navbar { background: var(--green-dk); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,0.25); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; gap: 1.5rem; }
.logo { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 20px; color: var(--cream); letter-spacing: -0.5px; }
.logo span { color: var(--green-lt); }
.logo:hover { text-decoration: none; color: var(--cream); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--cream-mid); font-size: 14px; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover,
.nav-links a.active { color: #fff; text-decoration: none; }
.nav-cta { background: var(--green); color: #fff !important; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; transition: background var(--transition); white-space: nowrap; }
.nav-cta:hover { background: #3226C9; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--cream); font-size: 22px; cursor: pointer; margin-left: auto; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; font-family: 'Inter', sans-serif; text-align: center; }
.btn-primary  { background: var(--green); color: #fff; }
.btn-primary:hover { background: #3226C9; color: #fff; text-decoration: none; }
.btn-light    { background: var(--cream); color: var(--green-dk); }
.btn-light:hover { background: var(--cream-mid); color: var(--green-dk); text-decoration: none; }
.btn-outline  { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; text-decoration: none; }
.btn-outline-w { background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-w:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block { width: 100%; display: block; }

/* ── Cards ───────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.card + .card { margin-top: 1rem; }
.card-title { font-family: 'Manrope', sans-serif; font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 1rem; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--green); font-size: 18px; }

/* ── Tags ────────────────────────────────────────────── */
.tag { display: inline-block; background: var(--tag-bg); color: var(--tag); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.tag-gold { background: var(--gold-lt); color: var(--gold-text); }
.tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── Stars ───────────────────────────────────────────── */
.stars      { color: var(--star); }
.stars-sm   { font-size: 12px; color: var(--star); }
.rating-badge { background: var(--green); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-sm); display: inline-block; }
.rating-badge.empty { background: var(--cream-mid); color: var(--text-muted); font-weight: 500; font-size: 11px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { background: linear-gradient(155deg, var(--green-dk) 0%, var(--green) 70%, #3d8c34 100%); padding: 5rem 1.5rem 4rem; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--green-lt); margin-bottom: 1rem; }
.hero h1 { color: #fff; max-width: 680px; margin: 0 auto 1rem; }
.hero h1 em { color: #c9c4ff; font-style: normal; }
.hero > .container > p { color: var(--cream-mid); font-size: 16px; max-width: 480px; margin: 0 auto 2.5rem; }
.hero-stats { display: flex; gap: 2.5rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.hero-stat { text-align: center; color: var(--cream-mid); }
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; color: #fff; font-family: 'Manrope', sans-serif; }
.hero-stat span   { font-size: 12px; opacity: 0.75; }

/* ── Search bar ──────────────────────────────────────── */
.search-bar { background: #fff; border-radius: var(--radius); padding: 6px 6px 6px 16px; display: flex; align-items: center; gap: 8px; max-width: 580px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.search-bar input  { flex: 1; border: none; outline: none; font-size: 15px; color: var(--text); font-family: 'Inter', sans-serif; background: transparent; min-width: 0; }
.search-bar select { border: none; outline: none; font-size: 13px; color: var(--text-mid); background: transparent; font-family: 'Inter', sans-serif; padding: 4px 8px; border-left: 1px solid var(--border); flex-shrink: 0; }
.search-bar button { background: var(--green); color: #fff; border: none; padding: 10px 20px; border-radius: 7px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; transition: background var(--transition); }
.search-bar button:hover { background: #3226C9; }

/* ── Category strip ──────────────────────────────────── */
.cats-strip { background: var(--cream-mid); border-bottom: 1px solid var(--border); padding: 0.65rem 0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.cats-strip-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; display: flex; gap: 6px; }
.cat-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--cream); border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; font-size: 13px; color: var(--text-mid); cursor: pointer; white-space: nowrap; font-weight: 500; transition: all var(--transition); text-decoration: none; }
.cat-pill:hover, .cat-pill.active { background: var(--green); color: #fff; border-color: var(--green); text-decoration: none; }
.cat-pill i { font-size: 14px; }

/* ── Section header ──────────────────────────────────── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; flex-wrap: wrap; gap: 0.5rem; }
.section-title  { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 800; color: var(--text); }
.section-title span { color: var(--green); }
.view-all { font-size: 13px; color: var(--green); font-weight: 600; }

/* ── Company card (grid) ─────────────────────────────── */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }

.company-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; cursor: pointer; transition: box-shadow var(--transition), border-color var(--transition); position: relative; display: block; color: inherit; }
.company-card:hover { box-shadow: var(--shadow-hov); border-color: var(--green); text-decoration: none; color: inherit; }
.company-card.sponsor { border-color: var(--gold); }
.sponsor-badge { position: absolute; top: 12px; right: 12px; background: var(--gold-lt); color: var(--gold-text); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.5px; text-transform: uppercase; }

.card-top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 0.8rem; }
.card-logo { width: 46px; height: 46px; border-radius: 8px; background: var(--cream-mid); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--green-dk); flex-shrink: 0; font-family: 'Manrope', sans-serif; overflow: hidden; }
.card-logo img { width: 100%; height: 100%; object-fit: cover; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-weight: 700; font-size: 15px; color: var(--text); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-location { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; margin-bottom: 3px; }
.card-rating { display: flex; align-items: center; gap: 4px; font-size: 12px; }
.card-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Company row (list) ──────────────────────────────── */
.company-row { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: flex-start; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition); text-decoration: none; color: inherit; }
.company-row:hover { border-color: var(--green); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.company-row.sponsor { border-color: var(--gold); }
.row-logo { width: 50px; height: 50px; border-radius: 8px; background: var(--cream-mid); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; color: var(--green-dk); flex-shrink: 0; font-family: 'Manrope', sans-serif; overflow: hidden; }
.row-logo img { width: 100%; height: 100%; object-fit: cover; }
.row-body { flex: 1; min-width: 0; }
.row-name-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2px; }
.row-name { font-weight: 700; font-size: 15px; color: var(--text); }
.badge-claimed { font-size: 10px; background: var(--tag-bg); color: var(--green); padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.badge-sponsor { font-size: 10px; background: var(--gold-lt); color: var(--gold-text); padding: 2px 7px; border-radius: 4px; font-weight: 700; text-transform: uppercase; }
.row-loc  { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 3px; margin-bottom: 5px; }
.row-desc { font-size: 13px; color: var(--text-mid); line-height: 1.5; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; min-width: 90px; }
.review-count { font-size: 11px; color: var(--text-muted); text-align: right; }

/* ── Directory layout ────────────────────────────────── */
.dir-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; margin: 1.5rem auto; max-width: var(--container); padding: 0 1.5rem; }
.dir-sidebar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; height: fit-content; position: sticky; top: 76px; }
.sidebar-section { margin-bottom: 1.2rem; }
.sidebar-section:last-child { margin-bottom: 0; }
.sidebar-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; display: block; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.filter-item label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-mid); cursor: pointer; }
.filter-item input[type=checkbox] { accent-color: var(--green); width: 14px; height: 14px; }
.filter-count { font-size: 11px; color: var(--text-muted); background: var(--cream-mid); padding: 1px 7px; border-radius: 10px; }
.form-control { width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; color: var(--text); background: var(--cream); font-family: 'Inter', sans-serif; outline: none; transition: border-color var(--transition); }
.form-control:focus { border-color: var(--green); }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.result-count { font-size: 13px; color: var(--text-muted); }
.result-count strong { color: var(--text); }
.companies-list { display: flex; flex-direction: column; gap: 0.75rem; }

/* ── Pagination ──────────────────────────────────────── */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn { min-width: 34px; height: 34px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 13px; cursor: pointer; color: var(--text-mid); text-decoration: none; transition: all var(--transition); }
.page-btn:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.page-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; }

/* ── Profile hero ────────────────────────────────────── */
.profile-hero { background: linear-gradient(155deg, var(--green-dk) 0%, #1e5c18 100%); padding: 2.5rem 1.5rem; }
.profile-hero-inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.profile-logo-wrap { width: 84px; height: 84px; border-radius: 12px; background: var(--cream-mid); border: 2px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: var(--green-dk); flex-shrink: 0; font-family: 'Manrope', sans-serif; overflow: hidden; }
.profile-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { flex: 1; min-width: 200px; }
.profile-name { color: #fff; font-size: clamp(22px, 3vw, 30px); margin-bottom: 4px; }
.profile-loc { color: var(--cream-mid); font-size: 13px; margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.profile-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.profile-cat  { background: rgba(255,255,255,0.12); color: var(--cream-mid); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 4px; }
.profile-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

/* ── Profile tabs ────────────────────────────────────── */
.tabs-bar { background: var(--card); border-bottom: 1px solid var(--border); padding: 0 1.5rem; }
.tabs-inner { max-width: var(--container); margin: 0 auto; display: flex; gap: 0; overflow-x: auto; }
.tab { padding: 0.9rem 1.2rem; font-size: 13px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--transition); text-decoration: none; display: block; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ── Profile content ─────────────────────────────────── */
.profile-layout { max-width: var(--container); margin: 1.5rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; margin-top: 0.8rem; }
.service-item { background: var(--cream); border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; font-size: 12px; font-weight: 600; color: var(--text-mid); display: flex; align-items: center; gap: 6px; }
.service-item i { color: var(--green); font-size: 14px; }

/* ── Reviews ─────────────────────────────────────────── */
.review-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rev-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cream-mid); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--green-dk); flex-shrink: 0; }
.rev-meta { flex: 1; }
.rev-author { font-size: 13px; font-weight: 600; color: var(--text); }
.rev-date   { font-size: 11px; color: var(--text-muted); }
.rev-title  { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.rev-body   { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── Rating breakdown ────────────────────────────────── */
.rb-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; font-size: 12px; }
.rb-label { color: var(--text-muted); width: 55px; flex-shrink: 0; }
.rb-bar-wrap { flex: 1; height: 6px; background: var(--cream-mid); border-radius: 3px; overflow: hidden; }
.rb-bar  { height: 100%; background: var(--green); border-radius: 3px; }
.rb-val  { color: var(--text); font-weight: 700; width: 28px; text-align: right; flex-shrink: 0; }

/* ── Info rows (sidebar) ─────────────────────────────── */
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; gap: 8px; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.info-val   { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

/* ── News ────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.news-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; color: inherit; transition: box-shadow var(--transition); }
.news-card:hover { box-shadow: var(--shadow-hov); text-decoration: none; color: inherit; }
.news-thumb { height: 140px; background: var(--green-dk); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body  { padding: 1rem 1.1rem; }
.news-date  { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.news-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px; }
.news-excerpt { font-size: 12px; color: var(--text-mid); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── CTA strip ───────────────────────────────────────── */
.cta-strip { background: var(--green-dk); padding: 4rem 1.5rem; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: 0.7rem; }
.cta-strip p  { color: var(--cream-mid); font-size: 15px; margin-bottom: 1.5rem; }
.cta-buttons  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Page headers ────────────────────────────────────── */
.page-header { background: var(--green-dk); padding: 2rem 1.5rem 1.8rem; }
.page-header .container h1 { color: #fff; }
.page-header .container p  { color: var(--cream-mid); font-size: 14px; margin-top: 4px; }
.breadcrumb { background: var(--cream-mid); border-bottom: 1px solid var(--border); padding: 0.65rem 1.5rem; font-size: 12px; color: var(--text-muted); }
.breadcrumb a { color: var(--green); }

/* ── Footer ──────────────────────────────────────────── */
.footer { background: #241b99; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand .logo { display: inline-block; margin-bottom: 0.7rem; }
.footer-brand p { font-size: 13px; color: #9399a8; line-height: 1.6; margin-bottom: 1rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { color: #9399a8; font-size: 18px; transition: color var(--transition); }
.footer-social a:hover { color: var(--cream-mid); }
.footer-col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; color: var(--cream-mid); margin-bottom: 0.9rem; }
.footer-col a  { display: block; font-size: 13px; color: #9399a8; margin-bottom: 0.4rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--cream-mid); text-decoration: none; }
.footer-bottom { max-width: var(--container); margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1rem; font-size: 12px; color: #5b6472; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ── Forms ───────────────────────────────────────────── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.alert { padding: 0.8rem 1rem; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 1rem; }
.alert-success { background: var(--tag-bg); color: var(--green); border: 1px solid #d9d4ff; }
.alert-error   { background: #fdecea; color: #b00020; border: 1px solid #f5c4c4; }

/* ── Divider ─────────────────────────────────────────── */
.divider { height: 1px; background: var(--cream-mid); margin: 0.5rem 0 2rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .dir-layout { grid-template-columns: 1fr; }
  .dir-sidebar { position: static; }
  .profile-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links  { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--green-dk); padding: 1rem 1.5rem; gap: 0.8rem; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta    { display: none; }
  .hero       { padding: 3rem 1rem 2.5rem; }
  .search-bar { flex-wrap: wrap; }
  .search-bar select { border-left: none; border-top: 1px solid var(--border); width: 100%; }
  .profile-hero-inner { flex-direction: column; }
  .profile-actions    { flex-direction: row; width: 100%; }
  .profile-actions .btn { flex: 1; text-align: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .companies-grid { grid-template-columns: 1fr; }
  .company-row  { flex-direction: column; }
  .row-right    { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}

/* ══════════════════════════════════════════════════════
   MEGAMENU & NEW NAVBAR STYLES
══════════════════════════════════════════════════════ */

/* Logo update */
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 19px; color: var(--cream); letter-spacing: -0.5px; }
.logo em { color: var(--green-lt); font-style: normal; }
.logo-text { white-space: nowrap; }
.logo svg { flex-shrink: 0; }

/* Nav links become flex row with dropdown triggers */
.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-link { height: 60px; display: flex; align-items: center; gap: 4px; padding: 0 14px;
            color: rgba(255,255,255,.72); font-size: 13px; font-weight: 500; cursor: pointer;
            transition: color var(--transition), background var(--transition); white-space: nowrap; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link .ti { font-size: 11px; opacity: .75; }

/* Dropdowns */
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-panel { display: block; }
.dropdown-panel { display: none; position: absolute; top: 60px; left: 0; background: var(--cream-mid);
                  border: 1px solid #d8dbeb; border-radius: var(--radius); padding: .5rem 0;
                  min-width: 200px; box-shadow: 0 12px 36px rgba(11,18,32,.16); z-index: 200; }
.dropdown-panel--wide { display: none; min-width: 440px; padding: .75rem 0; }
.nav-dropdown:hover .dropdown-panel--wide { display: flex; }
.dropdown-panel--lang { min-width: 140px; left: auto; right: 0; }
.nav-dropdown:hover .dropdown-panel--lang { display: block; }

.dd-col { flex: 1; padding: 0 .5rem; }
.dd-col + .dd-col { border-left: 1px solid var(--border); }
.dd-col--right { background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0; }
.dd-heading { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px;
              color: var(--text-muted); padding: .4rem .6rem .2rem; }
.dd-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px;
           font-size: 13px; color: var(--text-mid); transition: background var(--transition);
           text-decoration: none; border-radius: 6px; margin: 1px 4px; }
.dd-item:hover { background: var(--tag-bg); color: var(--green); text-decoration: none; }
.dd-item .ti { font-size: 14px; color: var(--green); flex-shrink: 0; }
.dd-item--all { font-weight: 700; color: var(--green); border-top: 1px solid var(--border); margin-top: .3rem; padding-top: .5rem; }
.dd-cta { margin: .5rem .4rem 0; padding-top: .5rem; border-top: 1px solid var(--border); }
.dd-cta a { display: block; text-align: center; background: var(--green); color: #fff;
            padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }

/* Fix: .nav-links a (light color, meant for the dark navbar bar) has higher
   specificity than .dd-item and was leaking into the dropdown panels,
   making menu item text nearly invisible against their light background.
   These overrides are scoped to .dropdown-panel so they win regardless. */
.dropdown-panel a { color: var(--text-mid); }
.dropdown-panel a:hover { color: var(--green); background: var(--tag-bg); }
.dropdown-panel .dd-item--all { color: var(--green); }
.dropdown-panel .dd-cta a { color: #fff; }

/* Language button */
.lang-btn { height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 10px;
            background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
            border-radius: 6px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 600;
            cursor: pointer; font-family: 'Inter', sans-serif; white-space: nowrap; }
.lang-btn .ti { font-size: 10px; }
.lang-btn:hover { background: rgba(255,255,255,.18); }

/* nav-cta in the new navbar row: match .lang-btn's height/alignment so it doesn't look offset */
.nav-cta { display: inline-flex; align-items: center; justify-content: center; height: 36px; flex-shrink: 0; }

/* Category pill strip */
.cats-strip { background: var(--green-dk); border-bottom: 2px solid rgba(255,255,255,.07);
              padding: .55rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cats-strip::-webkit-scrollbar { height: 0; }
.cats-strip-inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem;
                    display: flex; gap: 5px; width: max-content; }
.cat-pill { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.09);
            border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 5px 13px;
            font-size: 12px; color: rgba(255,255,255,.75); cursor: pointer; white-space: nowrap;
            font-weight: 500; transition: all var(--transition); text-decoration: none; }
.cat-pill:hover, .cat-pill.active { background: var(--green-lt); border-color: var(--green-lt);
                                     color: var(--green-dk); font-weight: 700; text-decoration: none; }

/* Page header (for interior pages) */
.page-header { background: linear-gradient(135deg, var(--green-dk), #3226C9); padding: 2rem 1.5rem; }
.page-header .container { display: flex; flex-direction: column; gap: .4rem; }
.page-header h1 { color: #fff; }
.page-header p { color: var(--cream-mid); font-size: 14px; }

/* Breadcrumb */
.breadcrumb { background: var(--cream-mid); border-bottom: 1px solid var(--border); padding: .5rem 0; font-size: 12px; color: var(--text-muted); }
.breadcrumb .container { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--green); }

/* News thumb card style */
.news-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1rem; }
.news-card  { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
              overflow: hidden; display: block; transition: box-shadow var(--transition); color: inherit; }
.news-card:hover { box-shadow: var(--shadow-hov); text-decoration: none; }
.news-thumb { height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body  { padding: .9rem 1rem; }
.news-cat   { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--green); margin-bottom: 4px; }
.news-title { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1.4;
              display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-date  { font-size: 11px; color: var(--text-muted); margin-top: 5px; }

/* Section headers */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; flex-wrap: wrap; gap: .5rem; }
.section-title  { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); }
.section-title span, .section-title em { color: var(--green); font-style: normal; }
.view-all { font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.divider  { height: 1px; background: var(--cream-mid); margin: .5rem 0; }

/* CTA strip */
.cta-strip { background: linear-gradient(135deg, var(--green-dk), #3226C9); padding: 3rem 1.5rem; text-align: center; }
.cta-strip h2 { color: #fff; margin-bottom: .5rem; }
.cta-strip p  { color: var(--cream-mid); font-size: 14px; margin-bottom: 1.5rem; }
.cta-buttons  { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Stars */
.stars-sm { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.rev-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--cream-mid);
              display: flex; align-items: center; justify-content: center; font-size: 12px;
              font-weight: 700; color: var(--green-dk); flex-shrink: 0; }

/* ── Responsive megamenu ── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0;
               background: var(--green-dk); padding: 1rem 1.5rem; gap: 0; margin-left: 0; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block !important; }
  .nav-cta    { display: none; }
  .nav-link   { height: auto; padding: .6rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dropdown-panel { position: static; box-shadow: none; border: none; background: rgba(0,0,0,.12); }
  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:hover .dropdown-panel--wide { display: none; }  /* disable hover on mobile */
  .dropdown-panel--wide { flex-direction: column; }
  .dd-col + .dd-col { border-left: none; border-top: 1px solid rgba(255,255,255,.1); }
  .cats-strip-inner { width: max-content; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   AFFILIATE PROGRAMS — catalog & card styles
══════════════════════════════════════════════════════ */

/* Affiliate card row (listing) */
.aff-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition), border-color var(--transition);
  text-decoration: none;
  color: inherit;
}
.aff-row:hover { box-shadow: var(--shadow-hov); border-color: var(--green); }

/* Logo box */
.aff-logo {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 10px; border: 1px solid var(--border);
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.aff-logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.aff-logo-init {
  font-family: 'Manrope', sans-serif; font-weight: 900;
  font-size: 18px; color: var(--green-dk);
}

/* Commission badges */
.badge-rs    { background: #eeebff; color: #5B4EFF; }
.badge-cpa   { background: #e8f0fe; color: #1a56db; }
.badge-hybrid{ background: #f0e8fe; color: #6b21a8; }
.badge-freq  { background: var(--cream-mid); color: var(--text-mid); }

/* Traffic flag pills */
.flag-yes { background: #eeebff; color: #5B4EFF; }
.flag-no  { background: #fdecea; color: #b00020; }
.flag-unk { background: #f0f0f0; color: #888; }

/* Affiliate detail page — info grid */
.aff-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: .75rem;
}
.aff-info-cell {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem;
}
.aff-info-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted); margin-bottom: 4px;
}
.aff-info-value {
  font-size: 17px; font-weight: 800;
  font-family: 'Manrope', sans-serif;
}

/* GEO tag pills */
.geo-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); border-radius: 5px;
  color: var(--text-mid); background: var(--card);
  text-decoration: none; transition: border-color var(--transition);
}
.geo-pill:hover { border-color: var(--green); color: var(--green); }
.geo-pill-forbidden {
  background: #fdecea; border-color: #fca5a5; color: #b00020;
}

/* Section block (card) inside affiliate profile */
.aff-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.aff-block h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}

/* Language switcher (inside affiliate card) */
.lang-pills { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: .75rem; }
.lang-pill {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 4px; border: 1px solid var(--border);
  text-decoration: none; transition: all var(--transition);
}
.lang-pill.active { background: var(--green); color: #fff; border-color: var(--green); }
.lang-pill:not(.active) { background: var(--cream); color: var(--text-mid); }

/* Similar programs grid */
.similar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
  gap: .6rem;
}
.similar-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem;
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: inherit;
  transition: border-color var(--transition);
}
.similar-card:hover { border-color: var(--green); }

/* Suggest edits block */
.suggest-block {
  background: var(--cream); border: 1px dashed var(--cream-mid);
  border-radius: 8px; padding: .9rem 1rem;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: .5rem;
}
.suggest-toggle {
  font-size: 12px; font-weight: 600; color: var(--green);
  background: none; border: 1px solid var(--green);
  padding: 4px 10px; border-radius: 5px; cursor: pointer;
}

/* Affiliate filter sidebar enhancements */
.filter-scroll { max-height: 200px; overflow-y: auto; }
.filter-scroll::-webkit-scrollbar { width: 4px; }
.filter-scroll::-webkit-scrollbar-thumb { background: var(--cream-mid); border-radius: 2px; }

/* Status badges */
.status-active  { background: #eeebff; color: #5B4EFF; }
.status-paused  { background: #fef9e7; color: #7a6010; }
.status-closed  { background: #fdecea; color: #b00020; }
.status-unknown { background: #f0f0f0; color: #5B6472; }

/* ── Tag page hero ── */
.tag-hero {
  background: linear-gradient(135deg, var(--green-dk), #3226C9);
  padding: 2rem 1.5rem; margin-bottom: 1.5rem;
}
.tag-hero h1 { color: #fff; font-size: 22px; margin-bottom: .3rem; }
.tag-hero p  { color: var(--cream-mid); font-size: 14px; }

/* ── Affiliate homepage block ── */
.aff-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: .85rem;
}
.aff-home-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1rem;
  display: flex; gap: .75rem; align-items: flex-start;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.aff-home-card:hover { box-shadow: var(--shadow-hov); border-color: var(--green); }

/* ── Responsive: affiliates ── */
@media (max-width: 900px) {
  .aff-logo { width: 48px; height: 48px; }
  .aff-info-grid { grid-template-columns: 1fr 1fr; }
  .similar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .aff-row { flex-wrap: wrap; }
  .aff-info-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════
   MOBILE RESPONSIVE — full overhaul
══════════════════════════════════════════════════════ */

/* Base mobile resets */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img  { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: transparent; }

/* Container padding on mobile */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .wrap      { padding: 0 1rem; }
}

/* ── Navbar mobile ── */
@media (max-width: 900px) {
  .navbar .nav-inner { padding: 0 1rem; gap: .5rem; }
  .logo-text { font-size: 16px; }
  .nav-toggle { display: flex !important; align-items: center; justify-content: center; width: 38px; height: 38px; background: rgba(255,255,255,.1); border: none; border-radius: 6px; cursor: pointer; color: #fff; font-size: 18px; flex-shrink: 0; }
  .nav-links { display: none; position: fixed; top: 58px; left: 0; right: 0; bottom: 0; background: var(--green-dk); flex-direction: column; padding: 1rem; overflow-y: auto; z-index: 500; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-link { height: auto; padding: .75rem .5rem; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 14px; }
  .nav-cta  { display: none; }
  .lang-btn { display: none; }
  .dropdown-panel, .dropdown-panel--wide, .dropdown-panel--lang { position: static; box-shadow: none; border: none; background: rgba(0,0,0,.15); border-radius: 8px; margin-top: .25rem; }
  .nav-dropdown:hover .dropdown-panel,
  .nav-dropdown:hover .dropdown-panel--wide { display: none; }
  .dropdown-panel--wide { flex-direction: column; }
  .dd-col + .dd-col { border-left: none; border-top: 1px solid rgba(255,255,255,.07); }
  /* Inline nav search */
  .nav-inner > form { flex: 0 0 140px; }
}

/* ── Hero responsive ── */
@media (max-width: 768px) {
  .hero { padding: 2rem 1rem 1.5rem; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: .5rem; }
  .hero-h1 { font-size: clamp(22px,5vw,32px); }
  .search-tabs { max-width: 100%; }
  .search-box { border-radius: 0 8px 8px 8px; }
  .search-box input { font-size: 14px; }
}

/* ── Grid collapses ── */
@media (max-width: 900px) {
  .main-grid,
  .body-grid,
  .two-col,
  .dir-layout { grid-template-columns: 1fr !important; }
  .dir-sidebar { display: none; }   /* hide sidebar, show filters as accordion on mobile */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.2rem; }
}

@media (max-width: 600px) {
  .prog-grid         { grid-template-columns: 1fr; }
  .news-grid         { grid-template-columns: 1fr; }
  .tools-grid        { grid-template-columns: 1fr; }
  .people-grid       { grid-template-columns: 1fr; }
  .pay-grid          { grid-template-columns: 1fr 1fr; }
  .companies-grid    { grid-template-columns: 1fr; }
  .aff-home-grid     { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr !important; }
  .positions-grid    { grid-template-columns: 1fr !important; }
  .rel-grid          { grid-template-columns: 1fr; }
  .sim-grid          { grid-template-columns: 1fr; }
  .comm-grid         { grid-template-columns: 1fr 1fr; }
  .hero-stats        { grid-template-columns: repeat(2,1fr); }
}

/* ── Cards on mobile ── */
@media (max-width: 600px) {
  .prog-card,
  .aff-row,
  .company-row { flex-wrap: nowrap; gap: .6rem; }
  .prog-logo,
  .aff-logo    { width: 40px; height: 40px; }
  .prog-right,
  .aff-right   { display: none; }
  .prog-name   { font-size: 13px; }
  .cbadge      { font-size: 10px; }
  .card        { padding: .85rem; }
  .card-title  { font-size: 14px; }
  .section-title { font-size: 16px; }
}

/* ── Event cards ── */
@media (max-width: 600px) {
  .ev-card  { flex-wrap: nowrap; }
  .ev-date  { width: 52px; }
  .ev-day   { font-size: 18px; }
  .ev-name  { font-size: 12px; }
}

/* ── Buttons ── */
@media (max-width: 480px) {
  .cta-btns { flex-direction: column; align-items: center; }
  .btn-light, .btn-outline-w, .btn-ghost { width: 100%; max-width: 280px; justify-content: center; }
  .hero-btns { flex-direction: column; }
}

/* ── Type strip horizontal scroll (touch) ── */
.type-strip { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.type-strip::-webkit-scrollbar { display: none; }
.cats-strip { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cats-strip::-webkit-scrollbar { display: none; }

/* ── Forms on mobile ── */
@media (max-width: 640px) {
  .form-grid  { grid-template-columns: 1fr; }
  .grid2      { grid-template-columns: 1fr; }
  .grid3      { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px; }  /* prevent iOS zoom */
}

/* ── Pagination on mobile ── */
@media (max-width: 480px) {
  .pagination { gap: 2px; }
  .page-btn   { width: 32px; height: 32px; font-size: 12px; }
}

/* ── Newsletter strip ── */
@media (max-width: 600px) {
  #nl-form { flex-direction: column; }
  #nl-form input, #nl-form button { width: 100%; }
}

/* ── Sidebar mobile filters toggle ── */
.mobile-filters-toggle {
  display: none;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  margin-bottom: .75rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}
@media (max-width: 900px) {
  .mobile-filters-toggle { display: flex; align-items: center; justify-content: space-between; }
  .dir-sidebar.mobile-open { display: block !important; }
}

/* ── Improve tap targets ── */
@media (max-width: 768px) {
  .nav-link { min-height: 44px; }
  .btn      { min-height: 44px; }
  .page-btn { min-width: 44px; min-height: 44px; }
  .dd-item  { min-height: 44px; }
  a { min-height: 0; } /* don't force links */
}

/* ── Print styles ── */
@media print {
  nav, footer, .cta-strip, .dir-sidebar, .nav-toggle { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .container { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════
   MOBILE POLISH — Round 2 (compare, calculator, quiz, hot-deals)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Compare table horizontal scroll with sticky first col */
  table { font-size: 12px; }

  /* Calculator 2-col -> 1-col on mobile */
  .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Quiz options 2-col -> 1-col */
  .quiz-option { padding: 10px 12px; font-size: 12px; }

  /* Hot deals strip on homepage - smaller text, scroll */
  div[style*="Hot Deals"] { font-size: 11px; }

  /* Telegram community block - stack vertically */
  .container > div[style*="border-radius:14px"] { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  /* GEO landing pills wrap better */
  a[style*="border-radius:20px"] { font-size: 11px; padding: 4px 10px; }

  /* Job posting cards tighter padding */
  .card { padding: .75rem; }

  /* Reduce hero padding further on very small screens */
  .hero, section[style*="linear-gradient"] { padding: 1.5rem 1rem !important; }
}

/* Ensure all interactive range/number inputs are touch-friendly */
input[type="range"] { height: 24px; }
input[type="number"], input[type="text"], input[type="email"], input[type="date"] { min-height: 38px; }

/* Sticky compare bar improvements on mobile */
@media (max-width: 768px) {
  div[style*="overflow-x:auto"] table { min-width: 480px; }
}

/* ════════════════════════════════════════════════════════════
   ADDITIONS: interviews, tools, geo-markets, admin responsive
════════════════════════════════════════════════════════════ */

/* Interviews carousel card */
.interview-card { transition: box-shadow .15s, border-color .15s; }
.interview-card:hover { box-shadow: 0 6px 20px rgba(50,38,201,.1); border-color: var(--green); }

/* Tools grid */
@media (max-width: 640px) {
  div[style*="grid-template-columns:1fr 280px"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(300px"] { grid-template-columns: 1fr !important; }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(280px"] { grid-template-columns: 1fr 1fr !important; }
  div[style*="grid-template-columns:repeat(auto-fill,minmax(160px"] { grid-template-columns: 1fr 1fr 1fr !important; }
}

/* Category pills horizontal scroll */
div[style*="overflow-x:auto"] { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
div[style*="overflow-x:auto"]::-webkit-scrollbar { display: none; }

/* Breadcrumb */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-muted); padding: .5rem 0; }
.breadcrumb .container { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.tag { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--tag-bg, #eeebff); color: var(--green-dk); font-weight: 600; }

/* Pagination */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.page-btn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 7px; border: 1px solid var(--border); font-size: 13px; text-decoration: none; color: var(--text); background: #fff; font-weight: 600; }
.page-btn.active { background: var(--green); color: #fff; border-color: var(--green); }
.page-btn:hover:not(.active) { background: var(--cream); border-color: var(--green); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 5px; padding: 9px 18px; border-radius: 7px; font-size: 13px; font-weight: 700; cursor: pointer; border: 1px solid transparent; font-family: 'Inter', sans-serif; text-decoration: none; transition: opacity .15s, box-shadow .15s; }
.btn:hover { opacity: .88; }
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dk); }
.btn-outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn-outline-w { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light { background: #fff; color: var(--green-dk); border-color: transparent; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* Card base */
.card { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; }

/* Hot deals badge animation */
@keyframes pulse-gold { 0%,100% { opacity:1; } 50% { opacity:.75; } }
.hot-badge { animation: pulse-gold 2.5s ease-in-out infinite; }

/* ══════════════════════════════════════════════════════════════
   REDESIGN 2.0 — light theme + single indigo accent
   New components used site-wide: eyebrow badges, logo mark,
   mono numerals for data, and the hero "live feed" signature card.
══════════════════════════════════════════════════════════════ */
.mono { font-family: var(--font-mono); }

.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
           letter-spacing: .04em; text-transform: uppercase; color: var(--green-dk);
           background: var(--tag-bg); border-radius: 999px; padding: 6px 13px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--tag-bg); flex-shrink: 0; }

.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--green), #8B7CFF);
             display: flex; align-items: center; justify-content: center; color: #fff;
             font-family: 'Manrope', sans-serif; font-weight: 900; font-size: 14px; flex-shrink: 0; }

/* Live feed dashboard card (hero signature element) */
.live-card { background: var(--text); border-radius: var(--radius-lg); padding: 22px; color: #fff;
             box-shadow: 0 24px 60px rgba(11,18,32,.28); position: relative; overflow: hidden; }
.live-card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
             background: radial-gradient(120% 100% at 100% 0%, rgba(91,78,255,.35), transparent 60%); pointer-events: none; }
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; z-index: 1; }
.live-label { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em;
              text-transform: uppercase; color: #C9C4FF; }
.live-dotpulse { width: 7px; height: 7px; border-radius: 50%; background: #7CFFB2; position: relative; flex-shrink: 0; }
.live-dotpulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #7CFFB2;
              animation: live-pulse 1.8s ease-out infinite; }
@keyframes live-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dotpulse::after { animation: none; } }
.live-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.live-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 10px; }
.live-stat .num { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: #fff; }
.live-stat .lbl { font-size: 10px; color: #9FA5C0; text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.ticker { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.ticker-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed rgba(255,255,255,.08); }
.ticker-row:last-child { border-bottom: none; }
.ticker-time { font-family: var(--font-mono); color: #7CFFB2; font-size: 11px; flex-shrink: 0; width: 46px; }
.ticker-text { color: #D9DBEE; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-tag { flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: rgba(124,255,178,.14); color: #7CFFB2; }

/* Stat strip (mono numerals) */
.stat-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-strip .container { display: grid; grid-template-columns: repeat(6,1fr); }
.stat-cell { padding: 22px 10px; text-align: center; border-right: 1px solid var(--border); }
.stat-cell:last-child { border-right: none; }
.stat-cell .num { font-family: var(--font-mono); font-weight: 700; font-size: 22px; color: var(--text); }
.stat-cell .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .03em; }

@media (max-width: 900px) {
  .stat-strip .container { grid-template-columns: repeat(3,1fr); }
  .stat-cell:nth-child(3) { border-right: none; }
}
@media (max-width: 480px) {
  .stat-strip .container { grid-template-columns: repeat(2,1fr); }
  .stat-cell { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .stat-cell:nth-child(2n) { border-right: none; }
}

/* Hero grid used on homepage */
.hero-grid-2 { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
@media (max-width: 1024px) { .hero-grid-2 { grid-template-columns: 1fr; gap: 36px; } .live-card { max-width: 520px; } }