/*
Theme Name: CricketOnlineID
Theme URI: https://cricketonlineid.com/
Author: CricketOnlineID
Description: Custom dark-premium theme for CricketOnlineID — India's trusted online cricket ID provider. Navy + gold with WhatsApp-green conversion CTAs.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cricketonlineid
*/

:root {
  --bg: #0B0F1A;
  --bg-alt: #0D1220;
  --bg-deep: #070A12;
  --card: #10162A;
  --card-b: #1E2740;
  --line: #1A2236;
  --line2: #232C42;
  --text: #EDEFF5;
  --mid: #B9C0D4;
  --muted: #8B93A7;
  --dim: #5C6478;
  --gold: #E8B54A;
  --gold-l: #F2CA78;
  --green: #25D366;
  --green-d: #06210F;
  --border2: #3A4562;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-l); }
h1, h2, h3, h4 { font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; color: var(--text); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Top strip ---------- */
.topstrip { background: var(--bg-deep); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 10px; gap: 12px; }
.topstrip .left, .topstrip .right { display: flex; align-items: center; gap: 8px; }
.badge18 { border: 1px solid var(--border2); border-radius: 4px; padding: 1px 6px; font-weight: 600; color: var(--mid); font-size: 12px; }
.topstrip .num { color: var(--text); font-weight: 600; }
.topstrip .right a { color: var(--mid); }
.topstrip .right a:hover { color: var(--text); }

/* ---------- Nav ---------- */
.sitenav { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 26, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sitenav .wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand .wordmark { font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.brand .idbadge { background: var(--gold); color: #131A2C; padding: 1px 6px; border-radius: 5px; margin-left: 5px; font-size: 0.72em; font-weight: 800; letter-spacing: 0.5px; vertical-align: middle; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--mid); }
.nav-links a:hover { color: var(--text); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: var(--green); color: var(--green-d) !important; font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 8px; white-space: nowrap; }
.btn-wa:hover { background: #2EE077; color: var(--green-d); }
.btn-wa.big { font-size: 17px; padding: 16px 28px; border-radius: 10px; box-shadow: 0 8px 28px rgba(37, 211, 102, 0.25); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border2); color: var(--text) !important; font-weight: 600; font-size: 16px; padding: 15px 24px; border-radius: 10px; }
.btn-ghost:hover { border-color: var(--gold); }
.navtoggle, .burger { display: none; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.sec-head { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; margin-bottom: 44px; }
.sec-head.left { align-items: flex-start; text-align: left; }
.sec-title { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.2; }
.sec-sub { margin: 0; font-size: 16px; color: var(--muted); max-width: 560px; }
.sec-note { font-size: 15px; color: var(--muted); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 44px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(112deg, rgba(232, 181, 74, 0.09) 0%, rgba(232, 181, 74, 0) 42%), linear-gradient(248deg, rgba(232, 181, 74, 0.07) 0%, rgba(232, 181, 74, 0) 42%), radial-gradient(ellipse 900px 420px at 50% 112%, #182342 0%, rgba(11, 15, 26, 0) 65%), var(--bg); }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 72px; padding-bottom: 84px; }
.hero-pill { display: flex; align-items: center; gap: 9px; border: 1px solid rgba(232, 181, 74, 0.35); background: rgba(232, 181, 74, 0.07); border-radius: 999px; padding: 8px 18px; }
.hero-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero-pill span:last-child { font-size: 12.5px; font-weight: 600; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(33px, 4.6vw, 62px); line-height: 1.1; font-weight: 800; letter-spacing: -2px; text-align: center; max-width: 900px; }
.hero h1 .gold { color: var(--gold); }
.hero .lede { margin: 0; font-size: 18px; color: var(--mid); text-align: center; max-width: 640px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.chips { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; justify-content: center; }
.chip { display: flex; align-items: center; gap: 7px; }

/* ---------- Chat mock ---------- */
.chat { width: 100%; max-width: 880px; display: flex; flex-direction: column; gap: 16px; background: rgba(15, 21, 38, 0.92); border: 1px solid var(--line2); border-radius: 18px; padding: 24px 28px; margin-top: 10px; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4); }
.chat-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--card-b); padding-bottom: 14px; gap: 10px; }
.chat-id { display: flex; align-items: center; gap: 10px; }
.chat-ava { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(37, 211, 102, 0.14); flex-shrink: 0; }
.chat-name { font-size: 14px; font-weight: 600; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); }
.chat-status .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.chat-num { font-size: 13px; color: var(--muted); }
.msg-row { display: flex; }
.msg-row.me { justify-content: flex-end; }
.msg-row.last { align-items: flex-end; gap: 12px; }
.msg { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; max-width: 440px; font-size: 14.5px; line-height: 1.5; }
.msg.me { background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.25); border-radius: 14px 14px 4px 14px; max-width: 400px; }
.msg.them { background: #1A2236; border: 1px solid var(--line2); border-radius: 14px 14px 14px 4px; }
.msg .time { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }
.msg-badge { display: inline-flex; align-items: center; gap: 7px; background: rgba(232, 181, 74, 0.1); border: 1px solid rgba(232, 181, 74, 0.4); color: var(--gold); font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

/* ---------- Stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; font-size: 30px; font-weight: 800; color: var(--gold); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Cards ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; background: var(--card); border: 1px solid var(--card-b); border-radius: 14px; padding: 30px 26px; }
.card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.numchip { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: rgba(232, 181, 74, 0.1); font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; font-size: 18px; font-weight: 700; color: var(--gold); }
.platcard { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--card-b); border-radius: 14px; padding: 24px 26px; color: var(--text); transition: border-color 0.15s; }
.platcard:hover { border-color: var(--gold); color: var(--text); }
.platchip { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(232, 181, 74, 0.1); font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; font-size: 20px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.platcard .t { display: flex; flex-direction: column; gap: 3px; flex-grow: 1; }
.platcard .t b { font-size: 17px; font-weight: 600; }
.platcard .t span { font-size: 13px; color: var(--muted); }

/* ---------- Prose (long-form sections) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose p, .prose li { color: var(--mid); font-size: 16.5px; }
.prose strong { color: var(--text); }
.prose h3 { font-size: 20px; margin: 34px 0 10px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 10px; }
.prose ol.fancy { counter-reset: n; list-style: none; padding-left: 0; }
.prose ol.fancy li { counter-increment: n; position: relative; padding-left: 52px; margin-bottom: 16px; }
.prose ol.fancy li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 9px; background: rgba(232, 181, 74, 0.1); color: var(--gold); font-family: 'Sora', 'Segoe UI', system-ui, sans-serif; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 64px; }
.faq-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; position: sticky; top: 96px; align-self: start; }
.faq-side h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.2; }
.faq-side p { margin: 0; font-size: 15px; color: var(--muted); }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--card); border: 1px solid var(--card-b); border-radius: 12px; padding: 22px 26px; }
.faq-item h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif; }
.faq-item p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- CTA band ---------- */
.ctaband { text-align: center; }
.ctaband .wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 84px; padding-bottom: 84px; }
.ctaband h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.8px; }
.ctaband p { margin: 0; font-size: 16px; color: var(--mid); max-width: 560px; }

/* ---------- Responsible gaming ---------- */
.rg { border-top: 1px solid var(--line); background: var(--bg); }
.rg .wrap { display: flex; align-items: flex-start; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.rg svg { flex-shrink: 0; margin-top: 3px; }
.rg b { font-size: 15px; font-weight: 600; color: var(--mid); display: block; margin-bottom: 4px; }
.rg p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- Footer ---------- */
.sitefooter { background: var(--bg-deep); border-top: 1px solid var(--line); }
.sitefooter .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px 0 40px; }
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol .head { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; color: var(--mid); text-transform: uppercase; }
.fcol a { font-size: 14px; color: var(--muted); }
.fcol a:hover { color: var(--text); }
.fcol .blurb { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); max-width: 300px; }
.fbottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 24px 0; font-size: 13px; color: var(--dim); gap: 10px; flex-wrap: wrap; }

/* ---------- Inner pages / blog ---------- */
.pagehero { padding: 64px 0 20px; }
.pagehero h1 { margin: 0; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -1px; }
.article { padding: 24px 0 84px; }
.postcard { display: block; background: var(--card); border: 1px solid var(--card-b); border-radius: 14px; padding: 28px; margin-bottom: 20px; color: var(--text); }
.postcard:hover { border-color: var(--gold); color: var(--text); }
.postcard h2 { margin: 0 0 8px; font-size: 22px; }
.postcard p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-side { position: static; }
  .sitefooter .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .burger { display: block; cursor: pointer; padding: 6px; }
  .navtoggle:checked ~ .nav-links { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-deep); border-bottom: 1px solid var(--line); padding: 12px 20px 18px; }
  .navtoggle:checked ~ .nav-links a { padding: 10px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .sitenav .wrap { position: relative; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { letter-spacing: -1.2px; }
  .hero .lede { font-size: 15px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn-wa.big { width: 100%; justify-content: center; }
  .btn-ghost { display: none; }
  .chat { padding: 16px; }
  .msg { max-width: 88%; font-size: 13.5px; }
  .topstrip .left span:last-child { display: none; }
  .topstrip .right .lbl { display: none; }
  .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 20px; padding-bottom: 20px; }
  .stat { background: var(--card); border: 1px solid var(--card-b); border-radius: 10px; padding: 14px 0; }
  .stat + .stat { border-left: 1px solid var(--card-b); }
  .stat b { font-size: 22px; }
  .stat span { font-size: 12px; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .platgrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .platcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .platcard .t b { font-size: 14px; }
  .platcard .t span { display: none; }
  .platcard .arr { display: none; }
  .sitefooter .cols { grid-template-columns: 1fr; gap: 28px; }
  .fbottom { justify-content: center; text-align: center; }
  .split-head { flex-direction: column; align-items: flex-start; }
}
