:root {
      --bg:#050505; --bg2:#0b0b0b; --card:rgba(12,12,12,.82); --card2:rgba(20,18,12,.78);
      --gold:#f5c84c; --gold2:#d89b1d; --gold3:#fff0a5; --gold-soft:rgba(245,200,76,.18);
      --line:rgba(245,200,76,.32); --text:#fff8df; --muted:#c9bea3; --shadow:rgba(0,0,0,.7);
      --radius:22px; --max:1100px;
    }
    *{box-sizing:border-box} html{scroll-behavior:smooth}
    body{margin:0;font-family:"Noto Sans Thai",system-ui,sans-serif;color:var(--text);background:#050505;min-height:100vh;padding-bottom:86px}
    body::before{content:"";position:fixed;inset:0;z-index:-3;background-image:linear-gradient(rgba(0,0,0,.66),rgba(0,0,0,.86)),url('/images/bg-pattern-1.jpg');background-size:cover;background-position:center;background-attachment:fixed}
    body::after{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:radial-gradient(circle at 50% 5%,rgba(245,200,76,.14),transparent 28%),linear-gradient(180deg,rgba(255,210,80,.025),transparent 35%)}
    a{color:inherit} img{max-width:100%;display:block}
    .container{width:min(calc(100% - 28px),var(--max));margin:auto}
    .section{margin-top:24px}
    .glass{background:linear-gradient(180deg,rgba(18,17,13,.88),rgba(5,5,5,.9));border:1px solid var(--line);box-shadow:0 18px 50px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.04);backdrop-filter:blur(12px)}
    .hero{padding:42px 0 20px;text-align:center}
    .logo{width:min(370px,78vw);margin:0 auto 12px;filter:drop-shadow(0 10px 32px rgba(245,200,76,.18))}
    .eyebrow{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line);background:rgba(0,0,0,.48);padding:7px 13px;border-radius:999px;color:var(--gold3);font-size:12px;font-weight:700}
    .hero h1{font-size:clamp(26px,6vw,48px);line-height:1.14;margin:16px auto 10px;max-width:820px;letter-spacing:-.02em}
    .gold-text{background:linear-gradient(180deg,#fff8c8 0%,#f5c84c 46%,#c98212 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
    .hero p{max-width:760px;margin:0 auto;color:var(--muted);font-size:clamp(14px,3.5vw,17px);line-height:1.75}
    .cta-row{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:22px}
    .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:190px;padding:13px 22px;border-radius:13px;text-decoration:none;font-weight:800;border:1px solid var(--line);transition:.25s ease}
    .btn-primary{color:#181000;background:linear-gradient(180deg,#fff0a5,#f5c84c 55%,#c98a14);box-shadow:0 0 0 1px rgba(255,235,150,.15) inset,0 12px 28px rgba(216,155,29,.22)}
    .btn-primary:hover{transform:translateY(-2px);filter:brightness(1.06);box-shadow:0 16px 35px rgba(216,155,29,.32)}
    .btn-ghost{background:rgba(0,0,0,.52);color:var(--gold3)} .btn-ghost:hover{background:rgba(245,200,76,.08);transform:translateY(-2px)}
    .trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}
    .trust-item{padding:13px 10px;border-radius:14px;background:rgba(0,0,0,.48);border:1px solid rgba(245,200,76,.16);font-size:12px;color:var(--muted)}
    .trust-item strong{display:block;color:var(--gold3);font-size:14px;margin-bottom:2px}
    .promo{max-width:760px;margin:18px auto 0;padding:14px 16px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:14px}
    .promo strong{color:var(--gold);font-size:15px} .promo p{margin:3px 0 0;color:#ddd0ad;font-size:13px;line-height:1.5}
    .promo a{white-space:nowrap;text-decoration:none;color:#120d02;background:var(--gold);font-weight:800;padding:9px 14px;border-radius:10px}
    .section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
    .section-title h2{font-size:clamp(19px,4vw,26px);margin:0} .section-title span{font-size:12px;color:var(--muted)}
    .provider-box{overflow:hidden;border-radius:var(--radius);padding:15px 0}
    .provider-track{display:flex;width:max-content;gap:12px;animation:marquee 24s linear infinite;padding:0 12px}
    .provider-box:hover .provider-track{animation-play-state:paused}
    .provider-item{width:180px;padding:8px;border-radius:14px;background:linear-gradient(145deg,rgba(51,39,12,.9),rgba(11,10,7,.95));border:1px solid rgba(245,200,76,.25);box-shadow:inset 0 0 18px rgba(245,200,76,.04)}
    .provider-item img{width:100%;height:64px;object-fit:cover;border-radius:9px}
    @keyframes marquee{to{transform:translateX(-50%)}}
    .content-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:18px}
    .panel{border-radius:var(--radius);padding:18px}
    .games-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
    .game-card{text-decoration:none;overflow:hidden;border-radius:14px;background:#080808;border:1px solid rgba(245,200,76,.2);transition:.25s ease}
    .game-card:hover{transform:translateY(-3px);border-color:var(--gold2);box-shadow:0 12px 25px rgba(0,0,0,.28)}
    .game-card img{width:100%;aspect-ratio:16/9;object-fit:cover;background:#111}
    .game-meta{display:flex;justify-content:space-between;align-items:center;padding:9px 10px;color:#d7caa7;font-size:11px}
    .online{display:flex;align-items:center;gap:6px;color:var(--gold3);font-weight:700} .online::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--gold);box-shadow:0 0 10px var(--gold)}
    .insight-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
    .insight{border:1px solid rgba(245,200,76,.2);background:rgba(255,255,255,.025);border-radius:15px;padding:10px;text-align:center}
    .insight img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:11px;border:1px solid rgba(245,200,76,.2)}
    .insight .label{font-size:12px;margin-top:7px;color:#eadfbf} .bar{height:9px;border-radius:999px;background:#060606;border:1px solid rgba(245,200,76,.24);overflow:hidden;margin-top:6px}
    .bar>span{display:block;height:100%;background:linear-gradient(90deg,#9c6510,#f5c84c,#fff0a5);box-shadow:0 0 10px rgba(245,200,76,.4)}
    .small-note{font-size:11px;color:#9e947b;line-height:1.5;margin-top:10px}
    .process{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
    .step{padding:15px;border:1px solid rgba(245,200,76,.18);border-radius:15px;background:rgba(0,0,0,.3)}
    .step b{display:flex;align-items:center;gap:8px;color:var(--gold3);font-size:14px} .step p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
    .step-num{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--gold);color:#171006;font-size:12px}
    .cta-stack{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
    .big-cta{display:block;padding:15px;text-align:center;text-decoration:none;border-radius:14px;font-size:18px;font-weight:900}
    .big-cta.primary{background:linear-gradient(180deg,#fff1a9,#f5c84c 58%,#bf7f10);color:#171006;box-shadow:0 12px 28px rgba(216,155,29,.25)}
    .big-cta.secondary{border:1px solid var(--gold2);background:rgba(0,0,0,.58);color:var(--gold3)}
    footer{text-align:center;color:#8f866e;font-size:11px;padding:24px 10px 6px;line-height:1.7}
    .bottom-nav{position:fixed;z-index:9999;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);background:rgba(5,5,5,.96);border-top:1px solid var(--gold2);box-shadow:0 -10px 28px rgba(0,0,0,.45);backdrop-filter:blur(12px)}
    .nav-item{text-decoration:none;color:#9f9478;text-align:center;padding:9px 4px 8px;font-size:10px;font-weight:600} .nav-item svg{width:22px;height:22px;display:block;margin:0 auto 3px;stroke:currentColor;fill:none;stroke-width:1.8}
    .nav-item.active{color:var(--gold)}
    @media(max-width:820px){.content-grid{grid-template-columns:1fr}.trust-grid{grid-template-columns:1fr}.process{grid-template-columns:1fr}}
    @media(max-width:520px){.hero{padding-top:28px}.container{width:min(calc(100% - 18px),var(--max))}.panel{padding:13px;border-radius:17px}.promo{align-items:flex-start;flex-direction:column}.promo a{width:100%;text-align:center}.games-grid{gap:9px}.cta-stack{grid-template-columns:1fr}.provider-item{width:145px}.provider-item img{height:54px}}
    @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* ==================== NEXT STYLE BLOCK ==================== */

/* Mobile-first refinements */
.img-fallback::after{content:"9 มังกร";display:grid;place-items:center;min-height:54px;color:#f5c84c;font-weight:800;letter-spacing:.08em;background:linear-gradient(145deg,#16120a,#090909);border:1px solid rgba(245,200,76,.25);border-radius:12px}
@media (max-width: 640px){
  :root{--radius:16px}
  body{padding-bottom:78px;background:#050505}
  .container{width:min(100% - 20px,1100px)}
  .hero{padding:18px 0 10px}
  .hero-inner{padding:18px 14px;border-radius:18px}
  .brand-logo{max-width:190px}
  .hero h1{font-size:clamp(25px,8vw,36px);line-height:1.12}
  .hero p{font-size:14px;line-height:1.6}
  .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .btn{min-height:48px;width:100%;font-size:15px}
  .trust-grid{grid-template-columns:1fr;gap:8px}
  .promo{display:grid;grid-template-columns:1fr;gap:12px;padding:14px}
  .promo a{width:100%;text-align:center;min-height:46px;display:grid;place-items:center}
  .section{margin-top:14px}
  .section-title{align-items:flex-start;gap:4px;margin-bottom:10px}
  .section-title h2{font-size:18px}
  .section-title span{font-size:11px}
  .content-grid{grid-template-columns:1fr;gap:14px}
  .panel{padding:12px;border-radius:16px}
  .games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .game-card{border-radius:12px}
  .game-card img{aspect-ratio:1/1;object-fit:cover}
  .game-meta{padding:8px 7px;font-size:10px;gap:4px;align-items:flex-start}
  .game-meta span:last-child{max-width:74%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .insight-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .insight{padding:8px;border-radius:12px}
  .insight img{aspect-ratio:1/1;object-fit:cover}
  .provider-box{border-radius:14px;padding:8px}
  .provider-item{min-width:126px}
  .process{grid-template-columns:1fr;gap:8px}
  .bottom-nav{height:66px;padding-bottom:max(4px,env(safe-area-inset-bottom))}
  .bottom-nav a{font-size:10px;min-width:0}
}
@media (max-width: 380px){
  .container{width:min(100% - 14px,1100px)}
  .games-grid,.insight-grid{gap:7px}
  .game-meta{font-size:9px}
}

/* ==================== NEXT STYLE BLOCK ==================== */

/* v2 sales content */
.hero-subtitle{font-size:clamp(16px,4vw,21px)!important;color:#fff2c4!important;font-weight:800;margin-top:10px!important}
.hero-desc{max-width:820px!important}
.feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:20px;text-align:left}
.feature-card{padding:16px;border-radius:16px;background:linear-gradient(145deg,rgba(26,21,10,.92),rgba(6,6,6,.92));border:1px solid rgba(245,200,76,.28);box-shadow:inset 0 1px rgba(255,255,255,.03)}
.feature-card strong{display:block;color:var(--gold3);font-size:15px;margin-bottom:5px}.feature-card p{font-size:12px!important;line-height:1.6!important;margin:0!important;color:#cfc3a5!important}
.feature-card.feature-main{grid-column:1/-1;border-color:rgba(245,200,76,.5);box-shadow:0 10px 28px rgba(0,0,0,.25),inset 0 0 24px rgba(245,200,76,.05)}
.cta-row.three .btn{min-width:210px}.btn-login{background:linear-gradient(180deg,#29200d,#120e06);color:#ffe89a;border-color:#c98a14}



@media(max-width:640px){.feature-grid{grid-template-columns:1fr}.feature-card.feature-main{grid-column:auto}.cta-row.three{display:grid;grid-template-columns:1fr;gap:9px}.cta-row.three .btn{width:100%;min-width:0}}

/* ==================== NEXT STYLE BLOCK ==================== */

.cycle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .cycle-card{position:relative;overflow:hidden;border-radius:16px;padding:8px;background:linear-gradient(180deg,rgba(30,22,4,.96),rgba(5,5,5,.98));border:1px solid rgba(255,200,70,.55);box-shadow:0 8px 24px rgba(0,0,0,.38),inset 0 0 18px rgba(255,181,0,.06)}
  .cycle-thumb{aspect-ratio:1/1;border-radius:12px;overflow:hidden;border:1px solid rgba(255,208,91,.58);background:#090909}
  .cycle-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:opacity .42s ease,transform .42s ease}
  .cycle-name{margin:7px 2px 5px;color:#fff;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .cycle-label{font-size:10px;color:#e9d39b;margin:0 2px 5px}
  .cycle-bar{height:14px;border-radius:999px;position:relative;overflow:hidden;background:#050505;border:1px solid rgba(255,198,47,.62)}
  .cycle-fill{height:100%;width:0;background:linear-gradient(90deg,#9a6500,#ffd65a,#fff0a6);box-shadow:0 0 12px rgba(255,198,47,.45);transition:width .45s ease}
  .cycle-pct{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;font-weight:900;color:#15100a;text-shadow:0 1px 0 rgba(255,255,255,.25)}
  .cycle-countdown{margin-top:6px;text-align:center;color:#ffd76a;font-size:10px;font-weight:700}
  .cycle-countdown.pulse{animation:cyclePulse .42s ease-out}
  @keyframes cyclePulse{35%{transform:scale(1.06);text-shadow:0 0 9px #ffc83d}}
  @media(max-width:576px){
    .cycle-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
    .cycle-card{padding:7px;border-radius:14px}
    .cycle-name{font-size:11px}
    .cycle-countdown{font-size:9px}
  }

/* ==================== NEXT STYLE BLOCK ==================== */

/* เกมยอดนิยม: ปรับรูปและกริดตามทุกอุปกรณ์โดยอัตโนมัติ */
  .games-grid{
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:12px !important;
    width:100% !important;
  }
  .games-grid .game-card{
    width:100% !important;
    min-width:0 !important;
    overflow:hidden !important;
  }
  .games-grid .game-card > img{
    display:block !important;
    width:100% !important;
    height:auto !important;
    aspect-ratio:16/9 !important;
    object-fit:cover !important;
    object-position:center !important;
  }
  .games-grid .game-meta{
    min-width:0 !important;
  }
  .games-grid .game-meta span:last-child{
    overflow:hidden !important;
    text-overflow:ellipsis !important;
    white-space:nowrap !important;
  }

  /* Tablet */
  @media (max-width:900px){
    .games-grid{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
  }

  /* Mobile */
  @media (max-width:576px){
    .games-grid{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      gap:8px !important;
    }
    .games-grid .game-card > img{
      aspect-ratio:16/9 !important;
    }
    .games-grid .game-meta{
      padding:7px 8px !important;
      font-size:10px !important;
    }
  }

  /* Very small mobile */
  @media (max-width:360px){
    .games-grid{gap:6px !important;}
    .games-grid .game-meta{padding:6px !important;}
  }

  /* จุดเด่น 3 ช่อง */
  .feature-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:12px !important;
  }
  .feature-grid > *{
    min-width:0 !important;
  }
  @media (max-width:760px){
    .feature-grid{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      gap:7px !important;
    }
    .feature-grid .feature-card,
    .feature-grid > div{
      padding:10px 7px !important;
    }
    .feature-grid h3,
    .feature-grid b,
    .feature-grid strong{
      font-size:11px !important;
      line-height:1.35 !important;
    }
    .feature-grid p{
      font-size:9px !important;
      line-height:1.4 !important;
    }
  }

/* ==================== NEXT STYLE BLOCK ==================== */

/* Desktop: ให้ส่วนเกมยอดนิยมใช้ความกว้างเต็ม เพื่อให้ภาพใหญ่และชัดขึ้น */
  @media (min-width: 901px){
    .content-grid{
      grid-template-columns:1fr !important;
      gap:18px !important;
    }

    .games-grid{
      grid-template-columns:repeat(4,minmax(0,1fr)) !important;
      gap:16px !important;
    }

    .games-grid .game-card{
      width:100% !important;
      min-width:0 !important;
    }

    .games-grid .game-card > img{
      width:100% !important;
      height:auto !important;
      aspect-ratio:16/9 !important;
      object-fit:cover !important;
    }

    .games-grid .game-meta{
      padding:11px 12px !important;
      font-size:12px !important;
    }

    /* จุดเด่นทั้ง 3 ช่องให้อยู่แถวเดียวกัน */
    .feature-grid{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
      align-items:stretch !important;
    }

    .feature-grid .feature-card,
    .feature-grid .feature-card.feature-main{
      grid-column:auto !important;
      width:auto !important;
      min-width:0 !important;
      height:100% !important;
      padding:16px !important;
    }
  }

  /* Tablet: รูปยังใหญ่พอดีด้วย 2 คอลัมน์ */
  @media (min-width:577px) and (max-width:900px){
    .content-grid{
      grid-template-columns:1fr !important;
    }
    .games-grid{
      grid-template-columns:repeat(2,minmax(0,1fr)) !important;
      gap:12px !important;
    }
    .feature-grid{
      grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
    .feature-grid .feature-card.feature-main{
      grid-column:auto !important;
    }
  }

  /* Mobile: จุดเด่น 3 ช่องยังคงอยู่แถวเดียว */
  @media (max-width:576px){
    .feature-grid .feature-card.feature-main{
      grid-column:auto !important;
    }
  }

/* ==================== NEXT STYLE BLOCK ==================== */

:root {
  --bg:#1a0305;
  --bg2:#2a0508;
  --card:rgba(39,5,8,.86);
  --card2:rgba(64,8,10,.76);
  --gold:#f6c64c;
  --gold2:#c88619;
  --gold3:#ffe8a1;
  --gold-soft:rgba(246,198,76,.16);
  --line:rgba(246,198,76,.34);
  --text:#fff7e8;
  --muted:#e0cbb0;
  --shadow:rgba(0,0,0,.72);
}
body {
  background:#210407 !important;
}
body::before {
  background-image:
    linear-gradient(rgba(38,2,5,.58),rgba(18,2,3,.84)),
    url('/images/bg-pattern-2.jpg') !important;
  background-size:cover !important;
  background-position:center top !important;
  background-repeat:no-repeat !important;
  background-attachment:fixed !important;
}
.glass,
.panel,
.hero-inner {
  background:linear-gradient(145deg,rgba(57,6,9,.88),rgba(17,3,4,.90)) !important;
  border-color:rgba(246,198,76,.30) !important;
}
.mangkorn-logo {
  width:min(330px,72vw) !important;
  max-width:none !important;
  height:auto !important;
  display:block !important;
  margin:0 auto 10px !important;
  filter:drop-shadow(0 14px 26px rgba(0,0,0,.55)) !important;
}
.btn-primary {
  background:linear-gradient(180deg,#ffd96f,#c58214) !important;
  color:#2b0906 !important;
}
.btn-login,.btn-ghost {
  background:linear-gradient(180deg,#5a0b10,#250306) !important;
  border-color:rgba(246,198,76,.36) !important;
  color:#ffe3a2 !important;
}
.feature-card,
.game-card,
.cycle-card,
.provider-box,
.step {
  background:linear-gradient(145deg,rgba(75,9,13,.68),rgba(14,3,4,.90)) !important;
  border-color:rgba(246,198,76,.24) !important;
}
.bottom-nav {
  background:rgba(34,3,6,.96) !important;
  border-top-color:#c88619 !important;
}
@media (max-width:640px) {
  body::before { background-attachment:scroll !important; }
  .mangkorn-logo { width:min(250px,78vw) !important; }
}

/* Dynamic Marquee & Jackpot */
.marquee-bar {
  background: rgba(43, 6, 9, 0.85);
  border: 1px solid rgba(246, 198, 76, 0.35);
  border-radius: 30px;
  padding: 8px 16px;
  margin: 12px auto 16px;
  max-width: 680px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.marquee-inner {
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #ffe3a2;
  animation: marquee-scroll 25s linear infinite;
}
@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.jackpot-badge {
  background: linear-gradient(180deg, #5a0b10, #220306);
  border: 2px solid #ffd96f;
  border-radius: 12px;
  padding: 10px 24px;
  margin: 8px auto 18px;
  display: inline-block;
  text-align: center;
  box-shadow: 0 0 20px rgba(246, 198, 76, 0.35);
}
.jackpot-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffd96f;
  letter-spacing: 2px;
}
.jackpot-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 217, 111, 0.6);
}

/* ========================================================
   9MANGKORN LOTTO HUB STYLES (เซียมซีทอง - หวยออนไลน์)
   ======================================================== */
.lotto-hub-wrapper {
  margin: 15px auto 35px;
  max-width: 960px;
  padding: 0 10px;
}

.lotto-filter-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 25px;
  padding: 6px;
  background: rgba(20, 2, 4, 0.6);
  border: 1px solid rgba(246, 198, 76, 0.25);
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.lotto-filter-btn {
  background: rgba(45, 6, 9, 0.85);
  border: 1px solid rgba(246, 198, 76, 0.3);
  color: #e6c585;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lotto-filter-btn:hover {
  background: rgba(246, 198, 76, 0.2);
  color: #ffd96f;
  border-color: #ffd96f;
  transform: translateY(-1px);
}

.lotto-filter-btn.active {
  background: linear-gradient(135deg, #f6c64c, #d49e1e) !important;
  color: #1a0204 !important;
  border-color: #ffd96f !important;
  box-shadow: 0 4px 14px rgba(246, 198, 76, 0.5);
  transform: translateY(-2px);
}

.lotto-group-block {
  margin-bottom: 28px;
}

.lotto-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(246, 198, 76, 0.25);
  padding-bottom: 8px;
}

.lotto-group-dot {
  width: 10px;
  height: 10px;
  background: #ffd96f;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffd96f;
}

.lotto-group-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffd96f;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lotto-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.lotto-card {
  background: linear-gradient(135deg, rgba(45, 6, 10, 0.95), rgba(20, 2, 4, 0.98));
  border: 1px solid rgba(246, 198, 76, 0.3);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.25s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.08);
}

.lotto-card:hover {
  border-color: #ffd96f;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(246, 198, 76, 0.25);
}

.lotto-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  box-shadow: inset 0 0 8px rgba(255,255,255,0.3), 0 3px 8px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
}

.lotto-info {
  flex: 1;
  min-width: 0;
}

.lotto-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.lotto-note {
  font-size: 0.78rem;
  color: #d4a373;
  margin-top: 2px;
}

.lotto-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #e0e0e0;
  margin-top: 5px;
}

.status-dot.live {
  width: 8px;
  height: 8px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.timer-label {
  color: #aaa;
}

.timer-val {
  font-family: 'Chakra Petch', monospace, sans-serif;
  font-weight: 800;
  color: #ffd96f;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(246, 198, 76, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.88rem;
}

.lotto-bet-btn {
  background: linear-gradient(180deg, #c0392b, #871414);
  border: 1px solid #ffd96f;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 9px 14px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lotto-bet-btn:hover {
  background: linear-gradient(180deg, #e74c3c, #a91b1b);
  box-shadow: 0 0 14px rgba(255, 217, 111, 0.6);
  transform: scale(1.06);
  color: #ffffff;
}

/* Lotto Payout Table */
.lotto-payout-card {
  background: linear-gradient(135deg, rgba(40, 5, 8, 0.96), rgba(18, 1, 3, 0.98));
  border: 1px solid rgba(246, 198, 76, 0.4);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 30px auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.08);
}

.lotto-payout-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffd96f;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(246, 198, 76, 0.4);
}

.lotto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lotto-table th,
.lotto-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(246, 198, 76, 0.18);
}

.lotto-table th {
  background: rgba(246, 198, 76, 0.12);
  color: #ffd96f;
  font-weight: 800;
  font-size: 0.95rem;
}

.lotto-table tr:hover {
  background: rgba(246, 198, 76, 0.06);
}

.lotto-rate-gold {
  font-weight: 900;
  color: #ffd96f;
  text-align: right;
  font-size: 1.15rem;
  text-shadow: 0 0 8px rgba(255, 217, 111, 0.5);
}

/* Recent Results Grid */
.lotto-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.result-card {
  background: linear-gradient(135deg, rgba(35, 4, 7, 0.95), rgba(18, 1, 3, 0.98));
  border: 1px solid rgba(246, 198, 76, 0.35);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  transition: all 0.25s ease;
}

.result-card:hover {
  border-color: #ffd96f;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(246, 198, 76, 0.2);
}

.result-card-header {
  font-size: 1rem;
  font-weight: 800;
  color: #ffd96f;
  margin-bottom: 4px;
}

.result-main-prize {
  font-family: 'Chakra Petch', monospace, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(192, 57, 43, 0.7), rgba(126, 16, 16, 0.9));
  border: 1px solid rgba(246, 198, 76, 0.45);
  border-radius: 10px;
  padding: 8px;
  margin: 8px 0;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
  box-shadow: inset 0 0 12px rgba(0,0,0,0.5), 0 3px 8px rgba(0,0,0,0.4);
}

.result-sub-prizes {
  display: flex;
  justify-content: space-around;
  font-size: 0.85rem;
  color: #d4a373;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(246, 198, 76, 0.15);
}

.result-sub-val {
  font-family: 'Chakra Petch', monospace, sans-serif;
  font-weight: 800;
  color: #ffd96f;
  font-size: 1.05rem;
}

@media (max-width: 480px) {
  .lotto-cards-grid {
    grid-template-columns: 1fr;
  }
  .lotto-filter-btn {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
  .result-main-prize {
    font-size: 1.6rem;
  }
}