/* ============================================================
   IMARABET KENYA — Main Stylesheet
   Colors: #0a0f1e (bg), #111827 (card), #29e029 (accent), #fff (text)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --bg:        #0a0f1e;
  --bg2:       #111827;
  --bg3:       #1a2235;
  --accent:    #29e029;
  --accent2:   #1ab01a;
  --accent3:   #00ff88;
  --gold:      #f5c518;
  --text:      #f0f4ff;
  --text2:     #9ba8c0;
  --border:    rgba(41,224,41,0.18);
  --card-bg:   rgba(17,24,39,0.95);
  --glass:     rgba(26,34,53,0.85);
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(41,224,41,0.10);
  --shadow-lg: 0 8px 40px rgba(41,224,41,0.18);
  --font:      'Inter', sans-serif;
  --font-head: 'Oswald', sans-serif;
  --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }

/* ── Accessibility ──────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
.skip-nav { position: absolute; top: -100px; left: 16px; background: var(--accent); color: #000; padding: 8px 16px; border-radius: 0 0 8px 8px; font-weight: 700; z-index: 10000; transition: top .2s; }
.skip-nav:focus { top: 0; }
[aria-hidden="true"] { pointer-events: none; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent3); }
ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 600; line-height: 1.25; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }
p  { color: var(--text2); margin-bottom: 1rem; }
p strong { color: var(--text); }

.accent { color: var(--accent); }
.section-label { font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .5rem; display: block; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-16 { gap: 16px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-weight: 700; font-size: .95rem; cursor: pointer; border: none; transition: all var(--transition); text-transform: uppercase; letter-spacing: .04em; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent3); color: #000; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(41,224,41,0.4); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; transform: translateY(-2px); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: 10px; }
.btn-gold { background: var(--gold); color: #000; }
.btn-gold:hover { background: #ffd700; color: #000; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(245,197,24,0.4); }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all var(--transition); }
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-icon { width: 52px; height: 52px; background: rgba(41,224,41,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.5rem; }

/* ── HEADER ──────────────────────────────────────────────── */
#site-header { position: sticky; top: 0; z-index: 1000; background: #0a0f1e; border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 24px; height: 72px; max-width: 1320px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: auto !important; height: 44px !important; }
.logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.logo-text span { color: var(--accent); }
.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main a { padding: 8px 14px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--text2); transition: all var(--transition); }
.nav-main a:hover, .nav-main a.active { color: var(--accent); background: rgba(41,224,41,.08); }
.header-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-cta .btn { padding: 9px 20px; font-size: .85rem; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; background: var(--accent); border: none; border-radius: 8px; flex-shrink: 0; width: 44px; height: 44px; justify-content: center; align-items: center; }
.burger span { display: block; width: 22px; height: 2px; background: #000; border-radius: 2px; transition: all var(--transition); }

/* Mobile Nav */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 999; background: var(--bg); padding: 90px 24px 40px; flex-direction: column; gap: 8px; overflow-y: auto; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 14px 18px; border-radius: 10px; color: var(--text); font-size: 1.05rem; font-weight: 500; border: 1px solid rgba(255,255,255,.07); transition: all var(--transition); display: block; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--accent); background: rgba(41,224,41,.08); border-color: var(--border); }
.mobile-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; }
.mobile-cta .btn { justify-content: center; width: 100%; text-align: center; display: flex; align-items: center; }
.mobile-cta .btn-outline { border: 2px solid var(--accent); color: var(--accent); background: transparent; }
.mobile-cta .btn-outline:hover { background: var(--accent); color: #000; }
.mobile-cta .btn-primary { background: var(--accent); color: #000; font-weight: 700; }

/* ── HERO ────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: 78px; }
.hero-bg { position: absolute; inset: 0; background-image: url('../img/hero.png'); background-size: cover; background-position: center; z-index: 0; }
.hero-bg::after { content:''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,15,30,.92) 40%, rgba(10,15,30,.65) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(41,224,41,.12); border: 1px solid var(--border); border-radius: 50px; padding: 6px 16px; margin-bottom: 24px; font-size: .82rem; color: var(--accent); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.hero-title { margin-bottom: 20px; }
.hero-title .highlight { color: var(--accent); }
.hero-desc { font-size: 1.1rem; color: var(--text2); margin-bottom: 36px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.stat-item { background: rgba(17,24,39,.8); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; backdrop-filter: blur(8px); }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text2); margin-top: 4px; }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header p { max-width: 600px; margin: 12px auto 0; font-size: 1.05rem; }

/* ── BONUS CARDS ─────────────────────────────────────────── */
.bonus-banner { background: linear-gradient(135deg, #0d1f0d 0%, #1a2a0a 50%, #0a0f1e 100%); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; position: relative; overflow: hidden; margin-bottom: 32px; }
.bonus-banner::before { content:''; position: absolute; top: -60px; right: 80px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(41,224,41,0.15) 0%, transparent 70%); pointer-events: none; }
.bonus-amount { font-family: var(--font-head); font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 700; color: var(--accent); line-height: 1; }
.bonus-desc { color: var(--text2); margin-top: 8px; font-size: 1rem; }

/* ── FEATURES ────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 24px; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg3); color: var(--accent); font-family: var(--font-head); font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
tbody td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.05); color: var(--text2); font-size: .93rem; }
tbody tr:hover td { background: rgba(41,224,41,.04); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
.td-green { color: var(--accent) !important; font-weight: 600; }
.td-gold { color: var(--gold) !important; font-weight: 600; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-green { background: rgba(41,224,41,.15); color: var(--accent); }
.badge-gold { background: rgba(245,197,24,.15); color: var(--gold); }
.badge-red { background: rgba(255,80,80,.15); color: #ff5050; }

/* ── STEPS ───────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 24px; counter-reset: steps; }
.step { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; counter-increment: steps; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #000; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-family: var(--font-head); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; cursor: pointer; font-weight: 600; color: var(--text); transition: all var(--transition); }
.faq-q:hover { color: var(--accent); }
.faq-q svg { flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text2); font-size: .95rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── AUTHOR BOX ──────────────────────────────────────────── */
.author-box { display: flex; gap: 24px; align-items: flex-start; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-top: 60px; }
.author-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); flex-shrink: 0; }
.author-name { font-family: var(--font-head); font-size: 1.2rem; color: var(--text); margin-bottom: 4px; }
.author-name a { color: var(--accent); }
.author-role { font-size: .82rem; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.author-bio { color: var(--text2); font-size: .93rem; margin: 0; }

/* ── FLOAT BONUS BANNER ──────────────────────────────────── */
#float-banner { position: fixed; bottom: 24px; right: 16px; z-index: 998; width: 220px; max-width: calc(100vw - 24px); background: var(--bg2); border: 2px solid var(--accent); border-radius: 16px; padding: 18px; text-align: center; box-shadow: 0 8px 32px rgba(41,224,41,0.25); animation: slideInRight .6s ease; box-sizing: border-box; }
#float-banner.hidden { display: none; }
#float-close { position: absolute; top: 8px; right: 10px; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.fb-badge { font-size: .7rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 6px; }
.fb-amount { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); font-weight: 700; line-height: 1; }
.fb-text { font-size: .8rem; color: var(--text2); margin: 6px 0 12px; }
.fb-img { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* ── FOOTER ──────────────────────────────────────────────── */
#site-footer { background: #060c18; border-top: 1px solid var(--border); padding: 60px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand .logo-text { font-size: 1.4rem; margin-bottom: 14px; display: block; }
.footer-brand p { font-size: .88rem; color: var(--text2); line-height: 1.7; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--text2); font-size: .9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .8rem; color: var(--text2); margin: 0; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .8rem; color: var(--text2); }
.footer-legal a:hover { color: var(--accent); }
.age-badge { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--text2); border-radius: 50%; font-weight: 800; font-size: .82rem; color: var(--text2); }
.payment-icons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.payment-icon { background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 6px 12px; font-size: .78rem; color: var(--text2); font-weight: 600; }

/* ── CHART / DIAGRAM ─────────────────────────────────────── */
.chart-bar-wrap { display: flex; flex-direction: column; gap: 14px; }
.chart-bar-item { display: flex; align-items: center; gap: 12px; }
.chart-bar-label { width: 130px; flex-shrink: 0; font-size: .88rem; color: var(--text2); }
.chart-bar-track { flex: 1; height: 10px; background: var(--bg3); border-radius: 50px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--accent2), var(--accent)); transition: width 1.2s ease; }
.chart-bar-val { width: 44px; text-align: right; font-size: .88rem; color: var(--accent); font-weight: 600; flex-shrink: 0; }

/* ── RATING STARS ────────────────────────────────────────── */
.stars { color: var(--gold); font-size: 1rem; letter-spacing: .04em; }
.rating-num { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--bg) 0%, var(--bg3) 100%); padding: 120px 0 60px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content:''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.page-hero-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.page-hero p { max-width: 680px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; font-size: .83rem; color: var(--text2); }
.breadcrumb a { color: var(--text2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text2); }

/* ── ARTICLE CONTENT ─────────────────────────────────────── */
.article-body h2 { margin: 2rem 0 1rem; }
.article-body h3 { margin: 1.75rem 0 .75rem; color: var(--accent); }
.article-body p { color: var(--text2); margin-bottom: 1.1rem; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.article-body ul li, .article-body ol li { color: var(--text2); margin-bottom: .4rem; }
.article-body ul li::marker { color: var(--accent); }
.article-body strong { color: var(--text); }
.article-body .table-wrap { margin: 1.5rem 0; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInUp { from { transform: translateY(120%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(41,224,41,.4); } 50% { box-shadow: 0 0 0 10px rgba(41,224,41,0); } }
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.pulse { animation: pulse 2s infinite; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  /* ── Mobile header: logo left + burger right ── */
  .header-inner { justify-content: space-between; padding: 0 16px; }
  .logo img { height: 36px !important; }
  .nav-main { display: none !important; }
  .header-cta { display: none !important; }
  .burger { display: flex !important; flex-shrink: 0; }

  /* ── Rest of mobile ── */
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .stat-value { font-size: 1.5rem; }
  .bonus-banner { grid-template-columns: 1fr; text-align: center; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 52px 0; }
  #float-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
    animation: slideInUp .4s ease both;
  }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  table { min-width: 0; width: 100%; }
  .article-content { overflow-x: hidden; max-width: 100%; }
  .steps { overflow: hidden; }
  ol.steps-numbered { padding-left: 20px; overflow: hidden; }
  .article-body ol { padding-left: 18px; }
  .article-body ol li { word-break: break-word; }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  h1 { font-size: 1.8rem; }
}



/* ── FLOAT BANNER ────────────────────────────────────────── */
#float-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 300px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  animation: slideInRight .6s ease both;
}
#float-banner.hidden { display: none !important; }
#float-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(0,0,0,0.5); border: none; color: #fff;
  cursor: pointer; font-size: 1rem; width: 28px; height: 28px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.fb-img { width: 100%; height: 70px; object-fit: cover; display: block; }
.fb-badge { background: var(--accent); color: #000; font-size: .72rem; font-weight: 700; padding: 4px 12px; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.fb-amount { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--accent); text-align: center; padding: 8px 16px 0; }
.fb-text { font-size: .85rem; color: var(--text2); text-align: center; padding: 4px 16px 12px; }
#float-banner .btn { margin: 0 16px 16px; }

/* ── GLOBAL OVERFLOW PROTECTION ─────────────────────────── */
.container { max-width: 100%; }
img, video, iframe, embed, object { max-width: 100% !important; height: auto; }
pre, code { overflow-x: auto; white-space: pre-wrap; word-break: break-word; }
/* Badge — wrap in tables, no clip */
.badge { white-space: normal; word-break: break-word; }
td .badge, th .badge { white-space: normal; word-break: break-word; overflow: visible; text-overflow: unset; }
/* Flex step lists — text div must have min-width:0 or it overflows */
div[style*="display:flex"][style*="align-items:flex-start"] > div,
div[style*="display:flex"][style*="align-items:flex-start"] > *:last-child { min-width: 0; overflow-wrap: break-word; word-break: break-word; flex: 1 1 0; }
/* List items */
ol li, ul li { word-break: break-word; overflow-wrap: anywhere; }
