:root{--bg:#f5f6f8;--surface:#fff;--ink:#17191d;--muted:#69707d;--line:#e6e8ec;--soft:#eef0f3;--accent:#17191d;--radius:18px;--shadow:0 8px 28px rgba(24,30,40,.055);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color-scheme:light}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);line-height:1.5}.shell{width:min(1440px,calc(100% - 40px));margin-inline:auto}.site-header{position:sticky;top:0;z-index:30;background:rgba(255,255,255,.9);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-inner{height:72px;display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-weight:800;letter-spacing:-.03em;font-size:20px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#17191d;color:#fff;font-size:16px;letter-spacing:-.06em}.main-nav{display:flex;align-items:center;gap:8px}.main-nav a{color:#606774;text-decoration:none;font-size:14px;font-weight:650;padding:9px 12px;border-radius:10px}.main-nav a:hover,.main-nav .active{background:#f0f1f3;color:#17191d}.hero{padding:70px 0 38px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:end}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:11px;font-weight:800;color:#858b95;margin:0 0 8px}.hero h1{font-size:clamp(38px,5vw,72px);line-height:1.02;letter-spacing:-.055em;margin:0;max-width:800px}.hero h1 span{color:#8a9099}.hero-copy{font-size:17px;color:var(--muted);margin:18px 0 0}.live-panel{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px 15px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;box-shadow:var(--shadow);min-width:330px}.live-dot{width:9px;height:9px;border-radius:50%;background:#22a06b;box-shadow:0 0 0 5px rgba(34,160,107,.1)}.live-panel strong,.live-panel span{display:block}.live-panel strong{font-size:13px}.live-panel div span{font-size:11px;color:var(--muted);margin-top:2px}.refresh{border:0;background:#f1f2f4;border-radius:10px;padding:9px 11px;font-weight:700;cursor:pointer}.quick-check{background:#191b1f;color:#fff;border-radius:22px;padding:26px 28px;display:grid;grid-template-columns:minmax(260px,1fr) minmax(320px,.8fr);gap:18px 32px;align-items:center;margin-bottom:54px}.quick-check .eyebrow{color:#969da8}.quick-check h2{font-size:20px;letter-spacing:-.02em;margin:0}.check-form{display:flex;background:#fff;border-radius:13px;padding:5px}.check-form input{width:100%;border:0;outline:0;padding:10px 13px;font-size:18px;letter-spacing:.12em;font-weight:750}.check-form button{border:0;background:#17191d;color:#fff;border-radius:9px;padding:0 18px;font-weight:750;cursor:pointer}.check-result{grid-column:1/-1;font-size:13px;color:#d9dce1;display:none}.check-result.show{display:block;border-top:1px solid #34373d;padding-top:16px}.results-section{padding-bottom:40px}.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.section-head h2{font-size:30px;letter-spacing:-.04em;margin:0}.section-head>p{font-size:13px;color:var(--muted)}.results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.provider-card{--brand:#333;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);min-width:0}.provider-card::before{content:"";display:block;height:5px;background:var(--brand)}.card-head{display:flex;align-items:center;gap:12px;padding:16px 17px 13px}.provider-logo{width:44px;height:44px;object-fit:contain;border-radius:10px;background:#fff;border:1px solid #eceef1;padding:4px}.logo-fallback{width:44px;height:44px;border-radius:10px;display:grid;place-items:center;background:color-mix(in srgb,var(--brand) 11%,white);color:var(--brand);font-weight:900;font-size:13px}.provider-title{min-width:0;flex:1}.provider-title h3{font-size:16px;letter-spacing:-.02em;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.provider-meta{font-size:11px;color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.status-pill{font-size:9px;text-transform:uppercase;letter-spacing:.08em;font-weight:850;padding:5px 7px;border-radius:999px;background:#f1f2f4;color:#6c727c}.session-tabs{display:flex;gap:6px;padding:0 17px 12px;overflow:auto}.session-tabs button{border:1px solid var(--line);background:#fff;color:#656b75;padding:6px 9px;border-radius:8px;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}.session-tabs button.active{background:var(--brand);border-color:var(--brand);color:#fff}.top-three{display:grid;grid-template-columns:repeat(3,1fr);margin:0 17px 15px;border:1px solid var(--line);border-radius:13px;overflow:hidden}.prize{text-align:center;padding:12px 5px}.prize+ .prize{border-left:1px solid var(--line)}.prize span{display:block;font-size:9px;font-weight:850;letter-spacing:.12em;color:#8b919b;margin-bottom:4px}.prize strong{font-size:22px;letter-spacing:.055em;font-variant-numeric:tabular-nums}.prize.first{background:color-mix(in srgb,var(--brand) 6%,white)}.board{padding:0 17px 16px}.board-group+.board-group{margin-top:12px}.board-label{display:flex;justify-content:space-between;font-size:9px;text-transform:uppercase;letter-spacing:.12em;font-weight:850;color:#888e98;margin-bottom:7px}.number-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:5px}.number-grid span{background:#f5f6f8;border-radius:7px;text-align:center;padding:5px 2px;font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.035em}.card-foot{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:11px 17px;font-size:10px;color:#818791}.card-foot a{color:var(--brand);text-decoration:none;font-weight:800}.empty-card{padding:20px 17px 22px;color:var(--muted);font-size:13px}.ad-slot{grid-column:1/-1;border:1px dashed #d6d9df;border-radius:16px;background:#f0f1f3;min-height:112px;display:grid;place-items:center;text-align:center;margin:8px 0}.ad-slot>span{align-self:end;font-size:9px;text-transform:uppercase;letter-spacing:.14em;color:#989ea8}.ad-space{align-self:start;font-size:12px;color:#a2a7af;margin-top:5px}.loading-card{height:360px;background:linear-gradient(90deg,#fff,#f3f4f6,#fff);background-size:200% 100%;animation:shimmer 1.4s infinite;border-radius:18px;border:1px solid var(--line)}@keyframes shimmer{to{background-position:-200% 0}}.more-tools{padding:54px 0}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.tool-grid article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px}.tool-grid article>span{font-size:11px;color:#9a9fa8;font-weight:800}.tool-grid h3{margin:18px 0 6px;font-size:17px}.tool-grid p{margin:0;color:var(--muted);font-size:13px}.trust-strip{margin-top:8px;margin-bottom:64px;background:#e9ebee;border-radius:18px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.trust-strip strong{font-size:17px}.trust-strip p{margin:3px 0 0;color:var(--muted);font-size:12px}.trust-strip a{white-space:nowrap;color:#17191d;font-weight:800;text-decoration:none;font-size:13px}.site-footer{background:#17191d;color:#fff;padding:50px 0 24px}.footer-grid{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:34px}.footer-brand{color:#fff}.footer-brand .brand-mark{background:#fff;color:#17191d}.footer-grid p{color:#969ca6;font-size:12px}.footer-grid h2{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#7e858f;margin:0 0 14px}.footer-grid>div>a:not(.brand){display:block;color:#d5d8dd;text-decoration:none;font-size:12px;margin:8px 0}.footer-bottom{border-top:1px solid #2c2f35;margin-top:36px;padding-top:18px;display:flex;justify-content:space-between;color:#777e88;font-size:10px}.simple-page{width:min(850px,calc(100% - 36px));margin:50px auto}.simple-page>.brand{margin-bottom:28px}.legal-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:clamp(24px,5vw,52px)}.legal-card h1{font-size:38px;letter-spacing:-.04em}.legal-card h2{margin-top:30px;font-size:19px}.legal-card p,.legal-card li{color:#5f6671}.legal-card a{color:#17191d}.button{display:inline-block;background:#17191d;color:#fff!important;text-decoration:none;padding:10px 14px;border-radius:10px;font-weight:750}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1050px){.results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr}.live-panel{min-width:0;width:max-content}.footer-grid{grid-template-columns:2fr 1fr 1fr}.footer-grid>div:last-child{grid-column:1/-1}}@media(max-width:720px){.shell{width:min(100% - 24px,1440px)}.header-inner{height:64px}.main-nav a:not(.active){display:none}.hero{padding:42px 0 28px;gap:24px}.hero h1{font-size:42px}.live-panel{width:100%}.quick-check{grid-template-columns:1fr;padding:22px 18px;border-radius:18px;margin-bottom:40px}.check-result{grid-column:auto}.results-grid{grid-template-columns:1fr;gap:14px}.section-head h2{font-size:26px}.provider-card{border-radius:15px}.tool-grid{grid-template-columns:1fr}.trust-strip{align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr 1fr}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}.footer-bottom{flex-direction:column;gap:5px}.number-grid span{font-size:11px}.ad-slot{min-height:96px}}




/* 4D Result Hub v4.1 — bright live-draw presentation
   APPEND this entire file to the END of public/assets/styles.css */

:root{
  --page-bg:#f4f7fb;
  --surface:#ffffff;
  --ink:#172033;
  --muted:#667085;
  --line:#e3e8ef;
}
html,body{background:var(--page-bg)!important;color:var(--ink)!important}
body{color-scheme:light}
header,.site-header,.hero{background:#fff!important;color:var(--ink)!important}
h1,h2,h3,strong{color:var(--ink)}
.hub-subtitle{margin:.35rem 0 0;color:#667085;font-size:clamp(.95rem,2vw,1.08rem);font-weight:500}

#resultsGrid{align-items:start}
.provider-card{
  --brand:#64748b;
  background:#fff!important;
  color:var(--ink)!important;
  border:3px solid var(--brand)!important;
  border-radius:16px!important;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(15,23,42,.08)!important;
}
.provider-card .provider-head{
  border:0!important;
  border-bottom:3px solid var(--brand)!important;
  background:color-mix(in srgb,var(--brand) 10%,white)!important;
  padding:14px 16px!important;
}
.provider-title h3{color:#172033!important}
.provider-meta{color:#667085!important}
.provider-logo{
  width:48px!important;height:48px!important;object-fit:contain!important;
  background:#fff;border:1px solid color-mix(in srgb,var(--brand) 35%,#e5e7eb);
  border-radius:10px;padding:4px;
}
.logo-fallback{
  display:grid;width:48px;height:48px;place-items:center;
  border-radius:10px;background:var(--brand);color:#fff!important;font-weight:900;
}
.logo-fallback[hidden]{display:none!important}
.status-pill{
  background:#fff!important;color:var(--brand)!important;
  border:1.5px solid var(--brand)!important;font-weight:800!important;
}

.draw-stack{display:grid;gap:14px;padding:14px;background:#fff}
.draw-panel{
  background:#fff;
  border:2px solid var(--brand);
  border-radius:12px;
  overflow:hidden;
}
.draw-head{
  display:flex;justify-content:space-between;gap:12px;align-items:center;
  padding:10px 12px;
  background:color-mix(in srgb,var(--brand) 8%,white);
  border-bottom:2px solid var(--brand);
}
.draw-head>div{display:grid;gap:2px}
.draw-head strong{font-size:1rem}
.draw-head span{font-size:.78rem;color:#667085}
.draw-time{
  flex:0 0 auto;padding:5px 9px;border-radius:999px;
  background:var(--brand)!important;color:#fff!important;
  font-size:.78rem!important;font-weight:900!important;
}
.top-three{padding:12px!important;background:#fff!important}
.prize{
  background:#f8fafc!important;border:1px solid #dfe5ec!important;color:#172033!important;
}
.prize.first{
  border:2px solid var(--brand)!important;
  background:color-mix(in srgb,var(--brand) 7%,white)!important;
}
.prize span{color:#667085!important}
.prize strong{color:#111827!important}
.board{background:#fff!important;padding:0 12px 12px!important}
.board-group{
  background:#fff!important;border:1px solid #e2e8f0!important;
  border-radius:10px!important;overflow:hidden;margin-top:10px;
}
.board-label{
  background:#f8fafc!important;color:#475467!important;
  border-bottom:1px solid #e2e8f0!important;
}
.number-grid span{
  background:#fff!important;color:#111827!important;
  border:1px solid #e5e7eb!important;font-weight:800!important;
}
.card-foot{
  background:#f8fafc!important;color:#667085!important;
  border-top:1px solid #e2e8f0!important;padding:8px 12px!important;
}
.empty-card{background:#fff!important;color:#667085!important}
.loading-card{background:#fff!important;border:1px solid #e2e8f0!important}

/* keep advertisements restrained */
.ad-slot,.advertisement{background:#f8fafc!important;color:#98a2b3!important;border-color:#e2e8f0!important}

/* Magnum needs dark text on its yellow identity */
.provider-card[data-provider="MAGNUM"] .draw-time,
.provider-card[data-provider="MAGNUM"] .logo-fallback{
  color:#171717!important;
}
.provider-card[data-provider="NINE_LOTTO"] .draw-time,
.provider-card[data-provider="NINE_LOTTO"] .logo-fallback{
  color:#171717!important;
}

/* responsive: all sessions remain visible */
@media(max-width:760px){
  .draw-stack{padding:10px;gap:10px}
  .provider-card{border-width:2px!important}
  .provider-card .provider-head{border-bottom-width:2px!important}
  .draw-panel{border-width:2px}
  .draw-head{padding:9px 10px}
  .draw-head strong{font-size:.92rem}
  .top-three{padding:10px!important}
  .board{padding:0 10px 10px!important}
}




/* v4.4.1 HISTORY FIX — APPEND after the previous v4.4 history CSS */
.history-page-hero{margin-bottom:8px}
.history-search{
  background:#fff;border:1px solid var(--line);border-radius:20px;
  padding:24px 26px;margin:0 0 44px;box-shadow:var(--shadow)
}
.history-search-title{margin-bottom:18px}
.history-search-title .eyebrow{margin-bottom:5px}
.history-controls{
  display:grid;grid-template-columns:minmax(220px,1.2fr) minmax(180px,.8fr) auto auto;
  gap:12px;align-items:end
}
.history-controls label{display:grid;gap:7px;color:#606774;font-size:12px;font-weight:750}
.history-controls select,.history-controls input{
  min-height:44px;width:100%;border:1px solid var(--line);border-radius:11px;
  padding:0 12px;background:#fff;color:var(--ink);font:inherit
}
.history-primary,.history-secondary{
  min-height:44px;border-radius:11px;padding:0 16px;font-weight:800;cursor:pointer
}
.history-primary{border:1px solid #17191d;background:#17191d;color:#fff}
.history-secondary{border:1px solid var(--line);background:#f5f6f8;color:#343941}
.history-message{font-size:12px;color:var(--muted);margin:14px 0 0}
.history-results-section{padding-bottom:24px}
.history-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.history-draw{
  --brand:#333;background:#fff;border:3px solid var(--brand);border-radius:16px;
  overflow:hidden;box-shadow:var(--shadow);min-width:0
}
.history-draw-head{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:13px 14px;background:color-mix(in srgb,var(--brand) 9%,white);
  border-bottom:2px solid var(--brand)
}
.history-draw-head h3{margin:0;font-size:15px;letter-spacing:-.02em}
.history-draw-head p{margin:3px 0 0;font-size:10px;color:var(--muted)}
.history-draw .draw-time{
  flex:0 0 auto;padding:5px 9px;border-radius:999px;background:var(--brand)!important;
  color:#fff!important;font-size:10px!important;font-weight:900!important
}
.history-draw .top-three{margin:12px 12px 14px!important;padding:0!important}
.history-draw .board{padding:0 12px 12px!important}
.history-draw .board-group{margin-top:10px}
.history-draw .card-foot{padding:10px 12px!important}
.history-empty{
  grid-column:1/-1;background:#fff;border:1px dashed #d6d9df;border-radius:16px;
  min-height:150px;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted);font-size:13px
}
.history-empty.compact{min-height:110px;border:0;border-radius:0}
@media(max-width:1050px){
 .history-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .history-controls{grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
 .history-results{grid-template-columns:1fr}
 .history-controls{grid-template-columns:1fr}
 .history-search{padding:20px 16px;margin-bottom:36px}
 .history-page-hero{padding-bottom:26px}
 .history-draw{border-width:2px}
}


/* v4.5 COMPACT HEADER + MOBILE NAV + QUICK CHECK VISIBILITY */
.site-header{min-height:0!important}
.header-inner{height:54px!important;position:relative}
.site-header .brand{font-size:17px!important;gap:8px!important}
.site-header .brand-mark{width:32px!important;height:32px!important;border-radius:9px!important;font-size:13px!important}
.main-nav{gap:3px!important}
.main-nav a{font-size:12px!important;padding:7px 9px!important}
.main-nav .mobile-extra{display:none}
.menu-toggle{display:none;border:1px solid var(--line);background:#f5f6f8;color:var(--ink);border-radius:9px;height:36px;padding:0 11px;font:inherit;font-size:12px;font-weight:800;align-items:center;gap:6px;cursor:pointer}
.menu-toggle>span[aria-hidden="true"]{font-size:17px;line-height:1}
/* remove oversized space above useful content */
.hero{padding-top:30px!important;padding-bottom:24px!important;gap:24px!important}
.simple-page{margin-top:30px!important}
/* make Quick Check input visibly separate from its dark container */
.check-form{background:#fff!important;border:2px solid #c7ccd4!important;box-shadow:0 0 0 1px rgba(255,255,255,.14),0 4px 14px rgba(0,0,0,.16)!important}
.check-form:focus-within{border-color:#ffffff!important;box-shadow:0 0 0 3px rgba(255,255,255,.28),0 5px 16px rgba(0,0,0,.2)!important}
.check-form input{background:#f8fafc!important;color:#111827!important;border:1px solid #d9dde4!important;border-radius:8px!important}
.check-form input::placeholder{color:#737b87!important;opacity:1}
.check-form button{margin-left:5px!important;min-width:78px!important;border:1px solid #050607!important}
@media(max-width:760px){
  .header-inner{height:50px!important}
  .site-header .brand{font-size:16px!important}
  .site-header .brand-mark{width:30px!important;height:30px!important;font-size:12px!important}
  .menu-toggle{display:inline-flex}
  .main-nav{display:none!important;position:absolute!important;top:calc(100% + 7px);right:0;width:min(280px,calc(100vw - 24px));padding:7px!important;background:#fff!important;border:1px solid var(--line)!important;border-radius:13px!important;box-shadow:0 16px 38px rgba(17,24,39,.18)!important;z-index:100!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important}
  .site-header.menu-open .main-nav{display:flex!important}
  .main-nav a,.main-nav a:not(.active){display:block!important;padding:10px 12px!important;border-radius:8px!important;font-size:13px!important}
  .main-nav .mobile-extra{display:block!important}
  .main-nav a.active{background:#f0f1f3!important;color:#17191d!important}
  .hero{padding-top:20px!important;padding-bottom:18px!important;gap:16px!important}
  .hero h1{font-size:36px!important}
  .quick-check{padding:18px 16px!important;margin-bottom:30px!important;gap:14px!important}
  .check-form{padding:4px!important}
  .check-form input{min-width:0!important;font-size:16px!important;padding:10px!important}
  .check-form button{padding:0 14px!important;min-width:70px!important}
  .simple-page{margin-top:22px!important}
}

/* v4.6 MOBILE FIRST-RESULT OPTIMIZATION — presentation only */
.check-result.show{border-radius:9px}
@media(max-width:760px){
  /* Keep the identity, but get users to the boards faster. */
  .hero{padding:12px 0 10px!important;gap:9px!important}
  .hero .eyebrow{margin-bottom:3px!important;font-size:9px!important}
  .hero h1{font-size:29px!important;line-height:1.02!important}
  .live-panel{padding:8px 10px!important;border-radius:12px!important;gap:9px!important;min-height:46px!important}
  .live-panel strong{font-size:12px!important}
  .live-panel div span{font-size:9px!important;line-height:1.25!important;margin-top:1px!important}
  .live-dot{width:8px!important;height:8px!important;box-shadow:0 0 0 4px rgba(34,160,107,.1)!important}
  .refresh{padding:7px 10px!important;font-size:11px!important;border-radius:8px!important}

  .quick-check{padding:12px!important;margin-bottom:20px!important;gap:8px!important;border-radius:15px!important}
  .quick-check>div:first-child{display:flex!important;align-items:baseline!important;gap:9px!important}
  .quick-check .eyebrow{margin:0!important;font-size:9px!important;white-space:nowrap!important}
  .quick-check h2{font-size:15px!important;line-height:1.1!important}
  .check-form{padding:3px!important;border-radius:11px!important}
  .check-form input{font-size:15px!important;padding:8px 10px!important}
  .check-form button{height:36px!important;min-width:66px!important;padding:0 11px!important;font-size:12px!important}
  .check-result.show{padding:8px 9px!important;margin-top:2px!important;border-top:1px solid #34373d!important;background:#202328!important;font-size:11px!important;line-height:1.35!important;color:#f3f4f6!important}

  .results-section{padding-bottom:28px!important}
  .section-head{margin-bottom:12px!important;align-items:end!important}
  .section-head .eyebrow{margin-bottom:4px!important;font-size:9px!important}
  .section-head h2{font-size:23px!important}
  .section-head>p{font-size:11px!important;margin-bottom:2px!important}
}
@media(max-width:390px){
  .hero h1{font-size:27px!important}
  .quick-check{margin-bottom:18px!important}
  .section-head h2{font-size:22px!important}
}
