/* Satta786 theme (2026 refresh)
   Goal: modern, distinct look + improved UX */

   :root{
    /* Core palette (distinct from old red/blue/maroon look) */
    --ref-yellow:#22c55e;        /* emerald accent */
    --ref-blue:#7c3aed;          /* violet */
    --ref-blue-dark:#111827;     /* slate */
    --ref-maroon:#0b1220;        /* deep slate */
    --ref-border:#e5e7eb;        /* soft border */
    --ref-red:#ef4444;           /* danger */
    --ref-green:#10b981;         /* success */
    --ref-black:#0b1220;
    --ref-white:#f8fafc;

    --ui-surface:#ffffff;
    --ui-surface-2:#f1f5f9;
    --ui-text:#0b1220;
    --ui-muted:#475569;
    --ui-shadow: 0 18px 50px rgba(2,6,23,.12);
  }
  
  html, body{
    background: var(--ref-white);
    color: var(--ref-black);
  }
  
  /* Persist preview change: tighter global line-height on themed pages */
  body.bg-white{
    line-height:22px;
  }
  
  /* Persist preview change: compact footer spacing */
  footer.px-6{
    margin-top:10px !important;
    padding:10px 14px 18px !important;
  }

  /* Freshness + disclaimer (homepage top block) */
  .freshness-wrap{
    width:calc(100% - 10px);
    margin:10px 5px 6px 5px;
    border:2px solid #000;
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 10px 24px rgba(0,0,0,.10);
  }
  .freshness-headline{
    padding:12px 10px;
    font-weight:900;
    font-size:12px;
    line-height:1.45;
    letter-spacing:.02em;
    text-transform:none;
  }
  .freshness-disclaimer{
    padding:12px 10px;
    background:#ef4444;
    color:#fff;
    font-weight:800;
    font-size:12px;
    line-height:1.45;
    border-top:2px solid #000;
    border-bottom:2px solid #000;
  }
  .freshness-more{
    color:#fff;
    font-weight:900;
    text-decoration:underline;
    margin-left:6px;
    white-space:nowrap;
  }
  .freshness-updated{
    padding:10px 10px;
    text-align:center;
    font-weight:900;
    font-size:12px;
    color:#065f46;
    background:#d1fae5;
  }

  /* Markets quick record rows */
  .quick-record-box{ padding:10px 10px; }
  .quick-record-table{
    width:100%;
    border-collapse:collapse;
    border:2px solid #000;
    background:#fff;
  }
  .quick-record-table th{
    background:#111827;
    color:#fff;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-size:11px;
    padding:12px 10px;
    border:1px solid #000;
    white-space:nowrap;
  }
  .quick-record-table td{
    font-weight:900;
    font-size:13px;
    padding:12px 10px;
    border:1px solid #000;
    text-align:center;
    white-space:nowrap;
  }
  .quick-record-table .qr-market{
    text-align:left;
    white-space:normal;
  }
  .quick-record-table .qr-time{ color:#374151; }
  .quick-record-table .qr-link a{
    color:#2563eb;
    text-decoration:underline;
    font-weight:900;
  }
  .quick-record-table .qr-link span{
    color:#6b7280;
    font-weight:900;
  }
  .quick-record-table tr.is-featured td{
    background:#facc15;
  }
  @media (max-width: 720px){
    .freshness-headline{ font-size:11px; }
    .freshness-disclaimer{ font-size:11px; }
    .freshness-updated{ font-size:11px; }
    .quick-record-table th{ font-size:10px; padding:10px 8px; }
    .quick-record-table td{ font-size:12px; padding:10px 8px; }
  }
  
  /* Modern navbar (site-wide) */
  .site-header{
    position:sticky;
    top:0;
    z-index:9999;
    background: rgba(248, 250, 252, .82);
    backdrop-filter: blur(14px);
    border-bottom:1px solid rgba(2,6,23,.08);
  }
  .site-header__inner{
    width: min(1100px, calc(100% - 20px));
    margin: 0 auto;
    padding: 6px 0;
    display:flex;
    gap:12px;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
  }
  .site-brand{
    display:inline-flex;
    align-items:baseline;
    gap:2px;
    text-decoration:none;
    font-weight:1000;
    letter-spacing:.02em;
    line-height:1;
  }
  .site-brand__mark{
    font-size:16px;
    color: var(--ui-text);
  }
  .site-brand__num{
    font-size:16px;
    color: #fff;
    background: linear-gradient(135deg, var(--ref-blue) 0%, #22c55e 100%);
    padding:3px 7px;
    border-radius:10px;
    box-shadow: 0 10px 22px rgba(124,58,237,.18);
  }
  .site-nav{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .site-nav__link,
  .site-nav__cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:34px;
    padding:0 10px;
    border-radius:12px;
    text-decoration:none;
    font-weight:900;
    font-size:11px;
    letter-spacing:.08em;
    text-transform:uppercase;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
    border:1px solid rgba(2,6,23,.10);
  }
  .site-nav__link{
    color: var(--ui-text);
    background: rgba(255,255,255,.65);
  }
  .site-nav__link:hover{
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(2,6,23,.10);
    background:#fff;
  }
  .site-nav__link.is-active{
    color:#fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--ref-blue) 0%, #06b6d4 100%);
    box-shadow: 0 14px 28px rgba(124,58,237,.20);
  }
  .site-nav__cta{
    color:#0b1220;
    border-color: transparent;
    background: linear-gradient(135deg, #22c55e 0%, #a3e635 100%);
    box-shadow: 0 14px 28px rgba(16,185,129,.18);
  }
  .site-nav__cta:hover{ transform: translateY(-1px); filter:brightness(1.03); }

  .site-ticker{
    border-top:1px solid rgba(2,6,23,.06);
    background: linear-gradient(90deg, rgba(124,58,237,.10) 0%, rgba(16,185,129,.10) 100%);
  }
  .site-ticker__mask{
    width:min(1100px, calc(100% - 20px));
    margin:0 auto;
    overflow:hidden;
    padding:8px 0;
  }

  @media (max-width: 520px){
    .site-header__inner{ padding:5px 0; }
    .site-brand__mark{ font-size:15px; }
    .site-brand__num{ font-size:15px; padding:3px 6px; border-radius:9px; }
    .site-header__inner{ flex-wrap:nowrap; }
    .site-brand{ flex:0 0 auto; }
    .site-nav{
      gap:8px;
      flex-wrap:nowrap;
      flex:1 1 auto;
      min-width:0;
      max-width:100%;
      margin-left:auto;
      justify-content:flex-start;
      overflow-x:auto;
      overflow-y:hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width:none; /* Firefox */
    }
    .site-nav::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
    .site-nav__link,
    .site-nav__cta{
      height:32px;
      padding:0 9px;
      font-size:10px;
      border-radius:11px;
      flex:0 0 auto;
    }
    .site-ticker__mask{ padding:7px 0; }
    .site-ticker__item{ font-size:10px; }
  }
  .site-ticker__track{
    display:inline-flex;
    gap:18px;
    align-items:center;
    white-space:nowrap;
    animation: tickerScroll 26s linear infinite;
    will-change: transform;
  }
  .site-ticker__item{
    font-weight:900;
    font-size:11px;
    letter-spacing:.06em;
    text-transform:uppercase;
    color: rgba(2,6,23,.78);
  }
  .site-ticker__sep{ color: rgba(2,6,23,.35); font-weight:900; }
  @keyframes tickerScroll{
    0%{ transform: translateX(0); }
    100%{ transform: translateX(-33.33%); }
  }
  @media (prefers-reduced-motion: reduce){
    .site-ticker__track{ animation:none; }
  }

  /* Legacy navigation (no longer used) */
  table.top-link{
    width:100%;
    border-collapse: collapse;
    display:none;
  }
  .top-link td{
    padding:6px 5px;
    text-align:center;
  vertical-align:middle;
    border:2px solid var(--ref-white);
    background: var(--ref-blue);
    color: var(--ref-white);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.02em;
  }
  .top-link td:first-child{
    width:12%;
    background:red;
  }
  .top-link a{
    color:var(--ref-white);
    text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  }
  .top-link img{
    width:45px;
    height:45px;
  display:block;
    object-fit:contain;
  }
  
  /* Marquee bar */
  .marke-box{
    background: var(--ref-maroon);
    padding:12px;
    margin:1px 2px;
    font-weight:800;
    color:var(--ref-white);
    text-transform:uppercase;
    letter-spacing:.04em;
    display:none;
  }
  
  /* Yellow logo title bar */
  .logo{
    text-align:center;
    background: var(--ref-yellow);
    margin:6px 5px;
    border:2px solid rgba(0,0,0,.1);
    display:none;
  }
  .logo h1{
    margin:0;
    padding:10px 8px;
    font-size:18px;
    font-weight:900;
    letter-spacing:.02em;
  }
  
  /* Section boxes similar to "leakb" blocks */
  .leakb{
    margin:8px 5px;
    border:2px solid var(--ref-border);
    background:#000;
    color:#fff;
    text-align:center;
    padding:12px;
  }
  .leakb.ref-yellow{
    background: var(--ref-yellow);
    color: #000;
  }
  .leakajjki{
    font-weight:900;
    font-size:18px;
    margin:0 0 6px 0;
  }
  .leakajjkisml{
    font-weight:900;
    font-size:14px;
    margin:0 0 6px 0;
  }
  .white{ color:#fff; }
  .red{ color: var(--ref-red); }
  
  /* Buttons */
  .buttonb{
    border:0;
    padding:12px 16px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.08em;
    cursor:pointer;
    border-radius:4px;
    min-width:180px;
    display:inline-block;
    text-decoration:none;
    text-align:center;
  }
  .bgred{ background: var(--ref-red); color: #fff; }
  .bggreen{ background: var(--ref-green); color: #fff; }
  .bgblue{ background: var(--ref-blue); color:#fff; }
  .bgyellow{ background: var(--ref-yellow); color:#000; border:3px solid var(--ref-yellow); }
  .buttonb:active{ transform: scale(.99); }
  
  /* Headings used in results sections */
  .result-heading{
    background: var(--ref-blue-dark);
    text-align:center;
    font-size:20px;
    border:1px solid var(--ref-blue);
    padding:15px 0;
    margin:8px 5px 0 5px;
  }
  .result-heading a{
    color:var(--ref-white);
    font-weight:900;
    text-decoration:none;
    font-size:22px;
  }
  
  .result-heading p{
    color:#fff;
    font-size:13px;
    font-weight:900;
    margin:4px 0 0 0;
    letter-spacing:.06em;
    text-transform:uppercase;
  }
  
  .resultmain{
    background-color:#fff;
    width:calc(100% - 10px);
    margin:0 5px;
    text-align:center;
    border-left:1px solid var(--ref-blue);
    border-right:1px solid var(--ref-blue);
    border-bottom:1px solid var(--ref-blue);
    padding:14px 10px 18px 10px;
  }
  .resultmaintime{
    color:#cf065a;
    font-size:24px;
    font-weight:900;
    margin:0 0 6px 0;
  }
  .resultmaintoday{
    font-weight:900;
    color:#000;
    font-size:20px;
    margin:0 0 10px 0;
  }
  .livegame{
    color:red;
    font-size:34px;
    font-weight:900;
    margin:2px 0;
    text-transform:uppercase;
  }
  .liveresult{
    color:green;
    font-size:34px;
    font-weight:900;
    margin:0;
  }
  
  .result-bottom{
    background: var(--ref-blue-dark);
    text-align:center;
    border:1px solid var(--ref-blue);
    padding:15px 0;
    margin:0 5px 10px 5px;
    /* blinking / color change effect */
    animation: resultBottomPulse 1.1s infinite;
  }
  .result-bottom a{
    color:#fff;
    font-weight:900;
    text-decoration:none;
    font-size:18px;
    text-transform:uppercase;
    display:block;
  }
  
  @keyframes resultBottomPulse{
    0%{
      background:#0b3aa4;
      border-color:#ff0;
      box-shadow: 0 0 0 rgba(255,255,0,0);
      filter: saturate(1);
    }
    50%{
      background:#e11d48; /* pink/red */
      border-color:#00ff6a;
      box-shadow: 0 0 18px rgba(255,255,0,.55);
      filter: saturate(1.15);
    }
    100%{
      background:#16a34a; /* green */
      border-color:#fff;
      box-shadow: 0 0 28px rgba(0,255,106,.55);
      filter: saturate(1.25);
    }
  }
  
  @media (prefers-reduced-motion: reduce){
    .result-bottom{ animation:none; }
  }
  
  /* Market/result boards (approx of reference "gboard" blocks) */
  .gboard-wrap{
    width:calc(100% - 10px);
    margin:12px 5px;
  }
  .gboardfull,
  .gboardhalf{
    border:2px solid var(--ref-yellow);
    background:#000;
    color:#fff;
    text-align:center;
    padding:10px 8px;
    margin:6px 0;
    font-weight:900;
  }
  .gboardfull a{
    color:#fff;
    text-decoration:none;
    font-size:22px;
    font-weight:900;
    text-transform:uppercase;
  }
  .gbfullresult{
    font-size:30px;
    color:#ff0;
    font-weight:900;
  }
  .gbgamehalf{
    font-size:18px;
    font-weight:900;
    text-transform:uppercase;
  }
  .gbhalfresultn{ color:#ff0; font-size:22px; font-weight:900; }
  .gbhalfresulto{ color:#fff; font-size:22px; font-weight:900; }
  
  /* Simple record list row style (reference list/list4) */
  .list, .list4{
    border-style:double;
    border-color:var(--ref-border);
    text-align:center;
    padding:10px 8px;
    margin:8px 5px;
    border-radius:10px;
    font-weight:900;
  }
  .list{ background:#fff; color:#000; }
  .list4{ background:#000; color:#fff; }
  .list a{ color:#11499d; text-decoration:none; font-size:18px; font-weight:900; }
  .list4 a{ color:#fff; text-decoration:none; font-size:18px; font-weight:900; }
  
  .hotlink, .hotlink-black{
    width:calc(100% - 10px);
    margin:8px 5px;
    border-collapse:collapse;
  }
  .hotlink td, .hotlink-black td{
    padding:10px 8px;
    border:2px solid var(--ref-yellow);
    text-align:center;
    width:50%;
    font-weight:900;
  }
  .hotlink td{ background:#000; }
  .hotlink-black td{ background:blue; }
  .hotlink a, .hotlink-black a{
    color:#fff;
    text-decoration:none;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.04em;
    display:block;
  }
  
  /* 4-links-in-one-line version (used by archive_vault.php when rendered as a table) */
  .hotlink.yearline{
    width:100% !important;        /* fit full screen */
    margin:6px 0 !important;      /* no side overflow */
    table-layout:fixed;           /* force 4 equal columns */
  }
  .hotlink.yearline td{
    width:25% !important;
    padding:10px 4px !important;
    border-width:2px !important;
  }
  .hotlink.yearline a{
    font-size:10px !important;
    letter-spacing:.01em !important;
    white-space:normal !important;    /* wrap inside cell, but keep 4 columns */
    word-break:break-word;
    overflow-wrap:anywhere;
    line-height:1.15; 
  }
  
  @media (max-width: 520px){
    .hotlink.yearline a{ font-size:9px !important; }
  }
  
  /* Compact per-year record links (fit-to-screen, no horizontal overflow) */
  .yearline-grid{
    width:calc(100% - 10px);
    margin:0 5px 14px 5px;
  }
  .yearline-row{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:0;
    margin:6px 0;
    border:2px solid #ff0;
    background:#000;
  }
  .yearline-row a{
    display:block;
    padding:10px 6px;
    border-right:1px solid #ff0;
    border-bottom:1px solid #ff0;
    color:#fff;
    text-decoration:none;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.01em;
    font-size:11px;
    line-height:1.2;
    text-align:center;
    word-break:break-word;   /* prevents overflow for long labels */
    overflow-wrap:anywhere;
  }
  .yearline-row a:nth-child(4n){ border-right:0; }
  
  @media (max-width: 900px){
    .yearline-row{ grid-template-columns: repeat(2, 1fr); }
    .yearline-row a:nth-child(2n){ border-right:0; }
  }
  
  /* Content boxes for long SEO text */
  .seo-box{
    width:calc(100% - 10px);
    margin:6px 5px;
    background: var(--ui-surface);
    color: var(--ui-text);
    border:1px solid rgba(2,6,23,.10);
    border-radius:16px;
    padding:12px 10px;
    box-shadow: 0 14px 34px rgba(2,6,23,.08);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  }
  .seo-box.dark{
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    color:#fff;
    border-color: rgba(34,197,94,.35);
  }
  .seo-box:hover{
    transform: translateY(-2px);
    box-shadow: var(--ui-shadow);
    border-color: rgba(124,58,237,.22);
  }
  .seo-box{ box-sizing:border-box; }
  
  /* Mobile: chart container full-width + compact typography */
  @media (max-width: 900px){
    #monthly-record .seo-box{
      width:100%;
      margin:6px 0;
      padding:8px 6px;
      border-radius:8px;
      border-width:3px;
    }
    #monthly-record .chart-table th{
      font-size:10px;
      padding:8px 6px;
      letter-spacing:.03em;
    }
    #monthly-record .chart-table td{
      font-size:12px;
      padding:8px 6px;
    }
    #monthly-record .chart-table .date-cell{
      font-size:10px;
    }
  }
  .seo-box h2, .seo-box h3{
    margin:0 0 8px 0;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.06em;
    line-height:1.2;
  }
  .seo-box p{
    margin:0 0 6px 0;
    font-weight:700;
    line-height:1.6;
  }
  .seo-box p:last-child{ margin-bottom:0; }
  .faq-q{
    font-weight:900;
    margin:0 0 6px 0;
    text-transform:uppercase;
  }
  .faq-a{
    font-weight:700;
    margin:0;
    line-height:1.6;
  }

  /* FAQ accordion (homepage) */
  .faq-accordion{
    display:grid;
    gap:10px;
    margin-top:10px;
  }
  details.faq-item{
    border:1px solid rgba(2,6,23,.10);
    border-radius:14px;
    background: linear-gradient(180deg, rgba(255,255,255,.90) 0%, rgba(241,245,249,.90) 100%);
    overflow:hidden;
    box-shadow: 0 10px 22px rgba(2,6,23,.06);
  }
  details.faq-item summary{
    cursor:pointer;
    list-style:none;
    padding:12px 12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
    font-size:12px;
    color: var(--ui-text);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  details.faq-item summary::-webkit-details-marker{ display:none; }
  details.faq-item summary::after{
    content:"+";
    width:28px;
    height:28px;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: rgba(124,58,237,.12);
    color: rgba(2,6,23,.78);
    font-weight:1000;
    flex: 0 0 auto;
  }
  details.faq-item[open] summary::after{
    content:"–";
    background: rgba(34,197,94,.16);
  }
  .faq-answer{
    padding:0 12px 14px 12px;
    color: rgba(2,6,23,.82);
    font-weight:800;
    line-height:1.7;
  }

  /* SEO jump links */
  .seo-jump{
    width:calc(100% - 10px);
    margin:10px 5px 0 5px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
  }
  .seo-jump a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:34px;
    padding:0 12px;
    border-radius:999px;
    background: rgba(124,58,237,.10);
    border:1px solid rgba(124,58,237,.18);
    color: rgba(2,6,23,.88);
    text-decoration:none;
    font-weight:950;
    font-size:11px;
    letter-spacing:.06em;
    text-transform:uppercase;
    transition: transform .12s ease, background .12s ease;
  }
  .seo-jump a:hover{ transform: translateY(-1px); background: rgba(34,197,94,.14); }
  
  /* Khaiwal tables */
  .khaiwal-table{
    width:100%;
    border-collapse:collapse;
    margin-top:10px;
  }
  .khaiwal-table th,
  .khaiwal-table td{
    border:2px solid var(--ref-yellow);
    padding:10px 8px;
    text-align:center;
    font-weight:900;
  }
  .khaiwal-table th{
    background:blue;
    color:#fff;
    text-transform:uppercase;
    letter-spacing:.06em;
  }
  .khaiwal-table td{
    background:#000;
    color:#fff;
    text-transform:uppercase;
  }
  
  /* Chart filter form (chart.php) */
  .chart-filter-form{
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap:14px;
    align-items:end;
  }
  .chart-filter-form label{
    display:block;
    font-weight:900;
    font-size:12px;
    letter-spacing:.06em;
    text-transform:uppercase;
    margin-bottom:6px;
    color:#ff0;
  }
  .chart-select{
    width:100%;
    background:#111;
    color:#fff;
    border:2px solid #333;
    border-radius:10px;
    padding:14px 14px;
    font-weight:900;
    font-size:16px;
    outline:none;
  }
  .chart-select:focus{ border-color:#ff0; }
  .chart-submit{
    wid