/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #e8f4fd; }
::-webkit-scrollbar-thumb { background: #0b66a0; border-radius: 3px; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f0f6fb; color: #1a1a2e; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TICKER ===== */
.ticker-wrap { background: #0b66a0; overflow: hidden; padding: 6px 0; }
.ticker-text { display: inline-block; white-space: nowrap; animation: ticker 30s linear infinite; font-size: 13px; font-weight: 600; color: #fff; padding-left: 100%; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== HEADER ===== */
header { background: linear-gradient(135deg, #0b3d6b 0%, #0b66a0 50%, #0b3d6b 100%); border-bottom: 3px solid #ffd700; padding: 12px; text-align: center; }
.site-title { font-size: 30px; font-weight: 900; color: #ffd700; text-shadow: 0 2px 8px rgba(0,0,0,0.4); letter-spacing: 1px; }
.site-subtitle { font-size: 14px; color: #cce8ff; margin-top: 4px; font-weight: 500; }
.site-date { font-size: 13px; color: #ffd700; margin-top: 5px; font-weight: 600; }
.blink { animation: blink 1.2s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ===== NAV ===== */
nav.main-nav { background: #0b3d6b; border-bottom: 2px solid #ffd700; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 8px 10px; }
nav.main-nav a { color: #cce8ff; font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s; }
nav.main-nav a:hover, nav.main-nav a.active { background: #ffd700; color: #0b3d6b; border-color: #ffd700; }

/* ===== CONTAINER ===== */
.container { max-width: 920px; margin: 0 auto; padding: 0 10px; }

/* ===== SECTION WRAPPERS ===== */
.section-box { background: #fff; border-radius: 8px; margin: 12px 0; overflow: hidden; box-shadow: 0 2px 10px rgba(11,102,160,0.12); border: 1px solid #d0e8f5; }
.section-head { background: linear-gradient(90deg, #0b66a0, #1a8fd1, #0b66a0); padding: 10px 14px; text-align: center; }
.section-head h2 { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }
.section-head p { font-size: 12px; color: #cce8ff; margin-top: 3px; }
.section-head.gold { background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b); }
.section-head.gold h2 { color: #1a1a2e; text-shadow: none; }

/* ===== LIVE RESULT ROWS (Satta King style) ===== */
.result-box { background: #fff; border-radius: 8px; margin: 12px 0; overflow: hidden; box-shadow: 0 2px 12px rgba(11,102,160,0.15); border: 2px solid #0b66a0; }
.result-box-header { background: linear-gradient(90deg, #0b3d6b, #0b66a0, #0b3d6b); padding: 10px 14px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 8px; }
.result-box-header h2 { font-size: 17px; font-weight: 800; color: #ffd700; }
.live-dot { display: inline-block; width: 9px; height: 9px; background: #00e676; border-radius: 50%; animation: pulse 1.4s infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

.result-row { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid #e8f4fd; transition: background 0.15s; }
.result-row:last-child { border-bottom: none; }
.result-row:hover { background: #f0f8ff; }
.result-game { flex: 1; }
.result-game-name { font-size: 15px; font-weight: 700; color: #0b3d6b; }
.result-game-time { font-size: 11px; color: #888; margin-top: 2px; }
.result-number { font-size: 42px; font-weight: 900; color: #0b66a0; text-shadow: 0 2px 6px rgba(11,102,160,0.2); min-width: 90px; text-align: center; line-height: 1; }
.result-number.pending { font-size: 18px; color: #aaa; font-weight: 500; }
.result-number.declared { color: #e60000; }
.result-status { flex: 1; text-align: right; }
.result-status span { font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 600; }
.status-live { background: #e8f5e9; color: #2e7d32; }
.status-upcoming { background: #fff3e0; color: #e65100; }
.status-declared { background: #e3f2fd; color: #0b66a0; }

/* ===== MARKET CARDS ===== */
.market-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
@media(min-width:500px){ .market-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:700px){ .market-grid { grid-template-columns: repeat(6, 1fr); } }
.market-card { background: linear-gradient(135deg, #0b3d6b, #0b66a0); border-radius: 8px; padding: 14px 8px; text-align: center; color: #fff; font-size: 13px; font-weight: 700; transition: all 0.2s; border: 1px solid rgba(255,215,0,0.3); }
.market-card:hover { background: linear-gradient(135deg, #ffd700, #ffb300); color: #0b3d6b; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(11,102,160,0.3); }
.market-card .mc-emoji { font-size: 22px; display: block; margin-bottom: 5px; }
.market-card .mc-name { font-size: 12px; }

/* ===== CHART ===== */
.chart-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; background: #f0f6fb; border-bottom: 1px solid #d0e8f5; }
.chart-tab { padding: 7px 16px; border-radius: 5px; border: 1px solid #0b66a0; color: #0b66a0; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; background: #fff; }
.chart-tab:hover, .chart-tab.active { background: #0b66a0; color: #fff; }
.year-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 12px; background: #f8fbff; border-bottom: 1px solid #e0eef8; }
.year-tab { padding: 4px 11px; border-radius: 4px; border: 1px solid #aac8e0; color: #0b66a0; font-size: 12px; cursor: pointer; transition: all 0.2s; background: #fff; }
.year-tab:hover, .year-tab.active { background: #0b66a0; color: #fff; border-color: #0b66a0; }
.chart-wrap { overflow-x: auto; padding: 10px; }
.chart-table { width: 100%; border-collapse: collapse; min-width: 650px; font-size: 12px; }
.chart-table th { background: #0b3d6b; color: #ffd700; padding: 8px 6px; text-align: center; font-weight: 700; border: 1px solid #0b66a0; }
.chart-table td { padding: 6px 5px; text-align: center; border: 1px solid #e0eef8; color: #1a1a2e; font-weight: 600; }
.chart-table tr:nth-child(even) td { background: #f0f8ff; }
.chart-table tr:hover td { background: #ddeeff; }
.chart-table .date-col { color: #0b66a0; font-size: 11px; background: #f0f6fb !important; font-weight: 700; }
.chart-table .num { color: #0b3d6b; font-size: 13px; font-weight: 800; }
.chart-table .pending-num { color: #ccc; }

/* ===== NOTICE BOARD ===== */
.notice-board { background: linear-gradient(135deg, #fffde7, #fff9c4); border: 2px solid #ffd700; border-radius: 8px; margin: 12px 0; padding: 14px 16px; text-align: center; }
.notice-board h3 { font-size: 16px; font-weight: 800; color: #b8860b; margin-bottom: 8px; }
.notice-board p { font-size: 14px; color: #5d4037; line-height: 1.6; font-weight: 500; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, #0b3d6b, #0b66a0); border-radius: 8px; margin: 12px 0; padding: 20px 16px; text-align: center; border: 1px solid #ffd700; }
.page-hero h1 { font-size: 24px; font-weight: 900; color: #ffd700; text-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.page-hero p { font-size: 14px; color: #cce8ff; margin-top: 8px; }

/* ===== INFO SECTION ===== */
.info-section { background: #fff; border-radius: 8px; margin: 12px 0; padding: 16px; box-shadow: 0 2px 8px rgba(11,102,160,0.08); border: 1px solid #d0e8f5; }
.info-section h2 { font-size: 17px; font-weight: 800; color: #0b3d6b; margin-bottom: 10px; text-align: center; padding-bottom: 8px; border-bottom: 2px solid #e0eef8; }
.info-section p { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 8px; }
.info-section strong { color: #0b66a0; }

/* ===== GUESSING FORUM ===== */
.guessing-section { background: #fff; border-radius: 8px; margin: 12px 0; overflow: hidden; box-shadow: 0 2px 10px rgba(11,102,160,0.1); border: 1px solid #d0e8f5; }
.guessing-head { background: linear-gradient(90deg, #0b3d6b, #0b66a0); padding: 10px 14px; text-align: center; }
.guessing-head h2 { font-size: 17px; font-weight: 800; color: #ffd700; }
.guessing-form { padding: 14px; background: #f8fbff; border-bottom: 1px solid #e0eef8; }
.guessing-form input, .guessing-form textarea, .guessing-form select { width: 100%; padding: 9px 12px; background: #fff; border: 1px solid #b0d0e8; border-radius: 5px; color: #1a1a2e; font-size: 14px; margin-bottom: 8px; font-family: inherit; }
.guessing-form input:focus, .guessing-form textarea:focus, .guessing-form select:focus { outline: none; border-color: #0b66a0; box-shadow: 0 0 0 2px rgba(11,102,160,0.1); }
.guessing-form button { background: linear-gradient(90deg, #0b3d6b, #0b66a0); color: #ffd700; border: none; padding: 10px 24px; border-radius: 5px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%; font-family: inherit; transition: opacity 0.2s; }
.guessing-form button:hover { opacity: 0.9; }
.guessing-posts { padding: 12px; max-height: 420px; overflow-y: auto; }
.guessing-post { background: #f0f8ff; border: 1px solid #d0e8f5; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; }
.guessing-post .post-header { display: flex; justify-content: space-between; margin-bottom: 4px; }
.guessing-post .post-name { font-size: 13px; font-weight: 700; color: #0b3d6b; }
.guessing-post .post-time { font-size: 11px; color: #888; }
.guessing-post .post-game { font-size: 12px; color: #0b66a0; font-weight: 600; margin-bottom: 4px; }
.guessing-post .post-text { font-size: 14px; color: #333; }

/* ===== FAQ ===== */
.faq-wrap { padding: 10px 14px; }
.faq-item { border-bottom: 1px solid #e0eef8; }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; background: none; border: none; color: #0b3d6b; font-size: 14px; font-weight: 600; padding: 12px 0; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-family: inherit; }
.faq-q::after { content: '+'; font-size: 20px; color: #0b66a0; flex-shrink: 0; }
.faq-q.open::after { content: '−'; }
.faq-a { display: none; padding: 0 0 12px; font-size: 13px; color: #555; line-height: 1.6; }
.faq-a.open { display: block; }

/* ===== TIMING TABLE ===== */
.timing-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.timing-table th { background: #0b3d6b; color: #ffd700; padding: 9px 10px; text-align: center; font-weight: 700; }
.timing-table td { padding: 8px 10px; text-align: center; border-bottom: 1px solid #e0eef8; color: #333; }
.timing-table tr:nth-child(even) td { background: #f0f8ff; }
.timing-table tr:hover td { background: #ddeeff; }
.timing-table .market-name { font-weight: 700; color: #0b3d6b; text-align: left; }

/* ===== FLOATING BUTTONS ===== */
.float-btns { position: fixed; bottom: 16px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.float-btn { padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; color: #fff; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.25); transition: transform 0.2s; display: block; }
.float-btn:hover { transform: scale(1.05); }
.btn-refresh { background: linear-gradient(135deg, #0b66a0, #0b3d6b); }
.btn-call { background: linear-gradient(135deg, #1565c0, #0d47a1); }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

/* ===== FOOTER ===== */
footer { background: #0b3d6b; border-top: 3px solid #ffd700; padding: 20px 12px 12px; margin-top: 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 920px; margin: 0 auto; }
@media(min-width:600px){ .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-col h3 { font-size: 14px; font-weight: 700; color: #ffd700; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,215,0,0.3); }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13px; color: #cce8ff; transition: color 0.2s; }
.footer-col ul li a:hover { color: #ffd700; }
.footer-bottom { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: #aac8e0; }

/* ===== LOADING ===== */
.loading-spinner { text-align: center; padding: 28px; color: #888; font-size: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid #d0e8f5; border-top-color: #0b66a0; border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HIGHLIGHT BOX ===== */
.highlight-box { background: linear-gradient(135deg, #fffde7, #fff9c4); border: 1px solid #ffd700; border-radius: 6px; padding: 12px; margin: 10px 0; text-align: center; color: #5d4037; font-weight: 600; font-size: 14px; }

/* ===== DISCLAIMER ===== */
.disclaimer { background: #fff8f8; border: 1px solid #ffcdd2; border-radius: 8px; margin: 12px 0; padding: 14px 16px; }
.disclaimer h2 { font-size: 15px; font-weight: 700; color: #c62828; margin-bottom: 8px; }
.disclaimer p { font-size: 12px; color: #777; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media(max-width:480px){
  .site-title { font-size: 22px; }
  .result-number { font-size: 32px; min-width: 70px; }
  .result-row { padding: 10px 12px; }
  nav.main-nav a { font-size: 12px; padding: 5px 9px; }
}
