/* ======================================================
   MY SATTA — style.css  (UI exactly like a7satta.com)
   ====================================================== */
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@500;600;700&family=Roboto:wght@400;500;700;900&display=swap');

*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Roboto',sans-serif;background:#f0f0f0;color:#111;font-size:13px;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;}

/* ── TOP BAR ── */
.top-bar{
  background:#222;
  color:#ccc;
  font-size:11px;
  padding:4px 10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:4px;
}
.top-bar .share-icons a{
  color:#fff;
  background:#555;
  padding:2px 7px;
  border-radius:3px;
  font-size:11px;
  margin-left:4px;
}
.top-bar .share-icons a.fb{background:#1877f2;}
.top-bar .share-icons a.tw{background:#1da1f2;}
.top-bar .share-icons a.wa{background:#25d366;}

/* ── HEADER ── */
.site-header{
  background:#fff;
  border-bottom:3px solid #e8e800;
  padding:8px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.header-logo{
  font-family:'Teko',sans-serif;
  font-size:34px;
  font-weight:700;
  color:#d10000;
  line-height:1;
  letter-spacing:1px;
}
.header-logo span{color:#111;font-size:14px;display:block;font-family:'Roboto',sans-serif;font-weight:700;letter-spacing:0;}
.header-wa{display:flex;flex-wrap:wrap;gap:6px;}
.header-wa a{
  background:#25d366;
  color:#fff;
  padding:7px 14px;
  border-radius:4px;
  font-size:12px;
  font-weight:700;
  display:inline-flex;
  align-items:center;
  gap:5px;
}

/* ── MARQUEE / TICKER ── */
.ticker-bar{
  background:#d10000;
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:5px 0;
  overflow:hidden;
}
.ticker-bar marquee{line-height:1.4;}

/* ── GAME TITLE BLOCK (top of each game page) ── */
.game-title-block{
  background:#fff;
  border:2px solid #ddd;
  border-top:4px solid #d10000;
  padding:10px;
  text-align:center;
  margin:8px 6px;
}
.gtb-date{font-size:11px;color:#555;font-weight:700;}
.gtb-name{
  font-family:'Teko',sans-serif;
  font-size:42px;
  font-weight:700;
  color:#d10000;
  line-height:1.1;
  letter-spacing:1px;
  text-transform:uppercase;
}
.gtb-result{
  font-family:'Teko',sans-serif;
  font-size:90px;
  font-weight:700;
  color:#111;
  line-height:1;
  letter-spacing:-2px;
}
.gtb-result.pending{color:#bbb;font-size:60px;}
.gtb-time{font-size:12px;color:#555;margin-top:2px;}

/* ── WA KHAIWAL BOX ── */
.khaiwal-box{
  background:#fffbe6;
  border:2px solid #e8c800;
  border-radius:4px;
  padding:10px 12px;
  margin:6px;
  text-align:center;
}
.khaiwal-box .kb-title{
  font-size:13px;
  font-weight:700;
  color:#333;
  margin-bottom:6px;
  line-height:1.4;
}
.khaiwal-box .kb-numbers{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.khaiwal-box .kb-num{
  background:#25d366;
  color:#fff;
  padding:8px 14px;
  border-radius:4px;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

/* ── SCROLLING NOTICE ── */
.notice-bar{
  background:#111;
  color:#e8c800;
  font-size:11px;
  font-weight:700;
  padding:4px 0;
}

/* ── SECTION TITLE ── */
.sec-title{
  background:#111;
  color:#e8c800;
  font-family:'Teko',sans-serif;
  font-size:20px;
  font-weight:700;
  padding:7px 12px;
  letter-spacing:1px;
  border-left:4px solid #d10000;
  margin:0;
}

/* ── TODAY / YESTERDAY TABLE ── */
.aaj-kal-table{
  width:100%;
  border-collapse:collapse;
  margin:0;
}
.aaj-kal-table th{
  background:#d10000;
  color:#fff;
  font-size:13px;
  font-weight:700;
  padding:8px 6px;
  text-align:center;
  border:1px solid #b00000;
}
.aaj-kal-table td{
  padding:8px 6px;
  text-align:center;
  border:1px solid #ddd;
  vertical-align:middle;
}
.aaj-kal-table td.game-name-cell{
  font-weight:700;
  font-size:13px;
  color:#111;
  text-align:left;
  padding-left:10px;
  background:#fafafa;
}
.aaj-kal-table td.game-name-cell a{color:#d10000;font-weight:700;}
.aaj-kal-table td.result-cell{
  font-family:'Teko',sans-serif;
  font-size:28px;
  font-weight:700;
  color:#d10000;
}
.aaj-kal-table td.result-cell.empty{color:#bbb;font-size:22px;}
.aaj-kal-table tr:nth-child(even) td{background:#f9f9f9;}
.aaj-kal-table tr:hover td{background:#fff5f5;}

/* ── MONTHLY CHART TABLE ── */
.chart-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}
.monthly-chart{
  width:100%;
  border-collapse:collapse;
  min-width:700px;
  font-size:12px;
}
.monthly-chart thead tr th{
  background:#111;
  color:#e8c800;
  padding:7px 4px;
  text-align:center;
  font-size:11px;
  font-weight:700;
  border:1px solid #333;
  white-space:nowrap;
}
.monthly-chart tbody tr:nth-child(odd){background:#fff;}
.monthly-chart tbody tr:nth-child(even){background:#f2f2f2;}
.monthly-chart tbody tr.today-row{background:#fff0f0!important;}
.monthly-chart tbody tr:hover{background:#fff8f8!important;}
.monthly-chart td{
  padding:5px 3px;
  text-align:center;
  border:1px solid #ddd;
  font-family:'Teko',sans-serif;
  font-size:16px;
  font-weight:700;
  color:#d10000;
}
.monthly-chart td.dt{
  font-family:'Roboto',sans-serif;
  font-size:11px;
  font-weight:700;
  color:#333;
  background:#e8e8e8!important;
  white-space:nowrap;
  padding:5px 6px;
}
.monthly-chart td.empty-r{color:#bbb;font-size:13px;}
.monthly-chart td.today-mark{background:#ffd6d6!important;color:#d10000;}

/* ── GAME INDIVIDUAL PAGE: BIG RESULT BOXES ── */
.big-res-row{
  display:flex;
  gap:0;
  border:1px solid #ddd;
  margin:6px;
  border-radius:4px;
  overflow:hidden;
}
.big-res-box{
  flex:1;
  text-align:center;
  padding:14px 8px;
  border-right:1px solid #ddd;
}
.big-res-box:last-child{border-right:none;}
.big-res-box .br-label{
  font-size:11px;
  font-weight:700;
  color:#888;
  text-transform:uppercase;
  letter-spacing:1px;
}
.big-res-box .br-date{
  font-size:11px;
  color:#555;
  margin:2px 0;
}
.big-res-box .br-num{
  font-family:'Teko',sans-serif;
  font-size:80px;
  font-weight:700;
  color:#d10000;
  line-height:1;
}
.big-res-box .br-num.empty{color:#ccc;font-size:50px;}
.countdown-txt{
  font-size:12px;
  color:#2a8c2a;
  font-weight:700;
  margin-top:4px;
}

/* ── GAME HISTORY TABLE (individual page) ── */
.hist-month-head{
  background:#111;
  color:#e8c800;
  font-family:'Teko',sans-serif;
  font-size:18px;
  font-weight:700;
  padding:6px 12px;
  letter-spacing:1px;
}
.hist-table{width:100%;border-collapse:collapse;}
.hist-table th{
  background:#d10000;
  color:#fff;
  padding:6px 8px;
  font-size:12px;
  font-weight:700;
  text-align:center;
  border:1px solid #b00000;
}
.hist-table td{
  padding:6px 8px;
  border:1px solid #ddd;
  font-size:13px;
  text-align:center;
}
.hist-table td.d{
  background:#f5f5f5;
  font-weight:700;
  font-size:12px;
  color:#333;
  text-align:left;
}
.hist-table td.r{
  font-family:'Teko',sans-serif;
  font-size:22px;
  font-weight:700;
  color:#d10000;
}
.hist-table td.r.emp{color:#ccc;font-size:16px;}
.hist-table tr:nth-child(even) td{background:#f9f9f9;}
.hist-table tr.tr-today td{background:#fff0f0!important;}
.hist-table tr.tr-today td.d{background:#ffd6d6!important;}

/* ── SEO TEXT BLOCKS ── */
.seo-block{
  background:#fff;
  border:1px solid #ddd;
  padding:14px;
  margin:6px;
  font-size:12px;
  line-height:1.8;
  color:#333;
  border-radius:2px;
}
.seo-block h2,.seo-block h3{
  font-size:15px;
  font-weight:700;
  color:#d10000;
  margin-bottom:6px;
}
.seo-block p{margin-bottom:8px;}

/* ── QUICK GAME LINKS GRID ── */
.game-links-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:4px;
  padding:6px;
}
.gl-item{
  background:#111;
  color:#e8c800;
  text-align:center;
  padding:10px 4px;
  border-radius:3px;
  font-family:'Teko',sans-serif;
  font-size:16px;
  font-weight:700;
  border-bottom:3px solid #d10000;
  display:block;
  line-height:1.2;
}
.gl-item span{
  display:block;
  font-family:'Roboto',sans-serif;
  font-size:10px;
  color:#aaa;
  font-weight:400;
}
.gl-item:hover{background:#d10000;color:#fff;}

/* ── ADMIN ── */
.admin-wrap{max-width:900px;margin:0 auto;padding:20px;}
.admin-header-bar{
  background:#111;
  color:#e8c800;
  font-family:'Teko',sans-serif;
  font-size:26px;
  font-weight:700;
  padding:12px 20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.admin-card{background:#fff;border-radius:6px;box-shadow:0 2px 8px rgba(0,0,0,.1);padding:20px;margin-bottom:16px;}
.admin-card h4{font-size:18px;font-weight:700;color:#d10000;border-bottom:2px solid #eee;padding-bottom:8px;margin-bottom:14px;}
.btn-red{background:#d10000;color:#fff;border:none;padding:9px 24px;border-radius:4px;font-size:14px;font-weight:700;cursor:pointer;}
.btn-red:hover{background:#a00000;}

/* ── FOOTER ── */
.site-footer{
  background:#111;
  color:#aaa;
  padding:16px 10px;
  margin-top:16px;
  font-size:12px;
  line-height:1.7;
}
.footer-links{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px;}
.footer-links a{color:#e8c800;font-size:11px;}
.footer-disclaimer{
  background:rgba(255,255,255,.05);
  border-left:3px solid #d10000;
  padding:10px 12px;
  margin:10px 0;
  font-size:11px;
  color:#999;
  border-radius:2px;
}
.footer-copy{text-align:center;font-size:11px;color:#555;margin-top:12px;}

/* ── WRAPPER ── */
.page-wrap{max-width:480px;margin:0 auto;background:#fff;min-height:100vh;box-shadow:0 0 20px rgba(0,0,0,.15);}

.monthly-chart {
  border-collapse: collapse;
  width: 100%;
}

.monthly-chart th,
.monthly-chart td {
  padding: 8px;
  white-space: nowrap;
}

/* 🔥 DATE COLUMN FIX */
.monthly-chart th:first-child,
.monthly-chart td:first-child {
  position: sticky;
  left: 0;
  background: #111; /* header color */
  z-index: 3;
}

/* body cells ke liye */
.monthly-chart td:first-child {
  background: #fff;
  z-index: 2;
}

/* ── RESPONSIVE ── */
@media(max-width:600px){
  .header-logo{font-size:26px;}
  .gtb-result{font-size:70px;}
  .big-res-box .br-num{font-size:60px;}
  .game-links-grid{grid-template-columns:repeat(3,1fr);}
}
