/* ==========================================================
   TogelLive — Dark Gold Theme
   Replaces: style.css, togel.css, theme.css, critical.css
   ========================================================== */

/* ---------- CSS Variables ---------- */
:root {
  /* Core Colors */
  --bg-base:        #0d0f1a;
  --bg-card:        #161929;
  --bg-card-hover:  #1e2238;
  --bg-header:      #0a0c15;
  --bg-sidebar:     #111422;
  --bg-input:       #1e2238;

  /* Accent */
  --gold:           #f5a623;
  --gold-dark:      #d4891a;
  --gold-glow:      rgba(245, 166, 35, 0.18);
  --live-green:     #00e676;
  --live-green-dim: rgba(0, 230, 118, 0.15);
  --danger:         #ff4757;
  --info:           #3d9be9;

  /* Text */
  --text-primary:   #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted:     #555f72;
  --text-gold:      #f5a623;

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-gold:    rgba(245,166,35,0.35);

  /* Spacing */
  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      24px;

  /* Shadows */
  --shadow-card:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-gold:    0 0 20px rgba(245,166,35,0.2);

  /* Transitions */
  --ease:           all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font:           'Inter', 'Roboto', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', 'Courier New', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; transition: var(--ease); }
a:hover { color: #ffc048; }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: var(--font);
  font-size: inherit;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }

/* ---------- Layout Containers ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-lg { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 20px; }

/* ---------- HEADER & NAV ---------- */
.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  white-space: nowrap;
}

.nav-brand .brand-dot { color: var(--live-green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: var(--ease);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: var(--gold-glow);
}

.nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--live-green-dim);
  border: 1px solid var(--live-green);
  color: var(--live-green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 99px;
}

.nav-live-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--live-green);
  border-radius: 50%;
  animation: pulse-live 1.5s ease infinite;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--ease);
}

/* ---------- HERO SECTION ---------- */
.hero-section {
  background: linear-gradient(135deg, #0d0f1a 0%, #161929 50%, #0d0f1a 100%);
  border-bottom: 1px solid var(--border);
  padding: 32px 0 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 6px;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-date-time {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.hero-date-time .clock {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* ---------- FILTER TABS ---------- */
.filter-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-tabs {
  display: flex;
  gap: 0;
  padding: 0 16px;
  min-width: max-content;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.filter-tab:hover { color: var(--text-secondary); }

.filter-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.filter-tab .tab-count {
  background: var(--bg-base);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-tab.active .tab-count {
  background: var(--gold-glow);
  color: var(--gold);
}

/* ---------- MAIN CONTENT AREA ---------- */
.main-content {
  padding: 24px 0 48px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

/* ---------- MARKET RESULTS GRID ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------- MARKET CARD ---------- */
.market-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.market-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.market-card.is-live {
  border-color: rgba(0,230,118,0.3);
}

.market-card.is-live::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--live-green), transparent);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-market-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-flag {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-base);
}

.card-flag-placeholder {
  width: 36px;
  height: 26px;
  border-radius: 4px;
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.card-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.card-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 99px;
}

.badge-live {
  background: var(--live-green-dim);
  border: 1px solid var(--live-green);
  color: var(--live-green);
  animation: pulse-border 2s ease infinite;
}

.badge-closed {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-upcoming {
  background: rgba(61,155,233,0.12);
  border: 1px solid rgba(61,155,233,0.4);
  color: var(--info);
}

/* Result Numbers */
.card-result {
  text-align: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

.result-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.result-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--gold);
  letter-spacing: 0;
}

.result-separator {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
}

.result-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
  padding: 8px 0;
}

/* Card Footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-countdown {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--info);
  font-weight: 600;
}

.card-link {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---------- SIDEBAR ---------- */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.widget-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.widget-header .icon { color: var(--gold); font-size: 0.9rem; }

.widget-body { padding: 8px 0; }

.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  transition: var(--ease);
}

.schedule-item:last-child { border-bottom: none; }
.schedule-item:hover { background: var(--bg-card-hover); }

.schedule-market {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.schedule-market img {
  width: 24px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
  flex-shrink: 0;
}

.schedule-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- YOUTUBE EMBED ---------- */
.live-draw-section {
  margin-bottom: 24px;
}

.youtube-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.youtube-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- SHIO CALCULATOR ---------- */
.shio-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}

.shio-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.shio-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.shio-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.shio-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-align: center;
  outline: none;
  transition: var(--ease);
}

.shio-input:focus { border-color: var(--gold); }

.btn-shio {
  background: var(--gold);
  color: #0d0f1a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--ease);
  white-space: nowrap;
}

.btn-shio:hover { background: var(--gold-dark); }

.shio-result {
  display: none;
  text-align: center;
  padding: 16px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
}

.shio-result.visible { display: block; }

.shio-animal {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
}

.shio-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.shio-info { font-size: 0.8rem; color: var(--text-muted); }

/* ---------- SEO CONTENT SECTION ---------- */
.seo-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 32px;
}

.seo-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.seo-section p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ---------- HISTORY PAGE ---------- */
.page-header {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.page-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.page-title span { color: var(--gold); }

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.filter-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-select, .filter-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  transition: var(--ease);
  cursor: pointer;
}

.filter-select:focus, .filter-input:focus { border-color: var(--gold); }

/* Data Table */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: var(--bg-base);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--bg-card-hover); }

.result-inline {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.result-inline .digit-sep { color: var(--text-muted); margin: 0 2px; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
}

.page-btn:hover { border-color: var(--border-gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #0d0f1a; border-color: var(--gold); font-weight: 700; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- ARTICLE / KNOWLEDGE PAGES ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.article-body h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.article-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 8px;
}

.article-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 14px;
}

.article-body ul, .article-body ol {
  margin: 10px 0 14px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-body li { list-style: disc; margin-bottom: 4px; }
.article-body ol li { list-style: decimal; }

.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.toc-widget {
  position: sticky;
  top: 80px;
}

.toc-list {
  padding: 8px 0;
}

.toc-list a {
  display: block;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-left: 2px solid transparent;
  transition: var(--ease);
}

.toc-list a:hover, .toc-list a.toc-active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-glow);
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: var(--ease);
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  color: var(--gold);
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 0 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-answer { display: block; }

/* ---------- PANDUAN (GUIDE) PAGE ---------- */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.guide-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 12px;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- KONTAK PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form-card, .contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
  transition: var(--ease);
  resize: vertical;
}

.form-control:focus { border-color: var(--gold); }

.btn-submit {
  width: 100%;
  background: var(--gold);
  color: #0d0f1a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--ease);
  margin-top: 8px;
}

.btn-submit:hover { background: var(--gold-dark); }

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: var(--ease);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.contact-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- PREDIKSI PAGE ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--gold);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hot-numbers, .cold-numbers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.num-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.num-chip.hot {
  background: rgba(255,71,87,0.12);
  border: 1px solid rgba(255,71,87,0.4);
  color: var(--danger);
}

.num-chip.cold {
  background: rgba(61,155,233,0.12);
  border: 1px solid rgba(61,155,233,0.4);
  color: var(--info);
}

.disclaimer-box {
  background: rgba(245,166,35,0.06);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
}

.disclaimer-box .icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border);
  padding: 32px 0 16px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.footer-links { display: flex; flex-direction: column; gap: 7px; }

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: #0d0f1a;
  border-color: var(--gold);
}

.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #0d0f1a; }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--border-gold);
}

.btn-outline:hover { background: var(--gold-glow); }

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--border-gold); color: var(--gold); }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg { padding: 12px 24px; font-size: 0.95rem; }

/* ---------- ALERTS ---------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.3); color: var(--live-green); }
.alert-error   { background: rgba(255,71,87,0.08);  border: 1px solid rgba(255,71,87,0.3);  color: var(--danger); }
.alert-info    { background: rgba(61,155,233,0.08); border: 1px solid rgba(61,155,233,0.3); color: var(--info); }
.alert-gold    { background: var(--gold-glow);       border: 1px solid var(--border-gold);   color: var(--gold); }

/* ---------- LOADING SKELETON ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---------- ANIMATIONS ---------- */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0.3); }
  50% { box-shadow: 0 0 0 4px rgba(0,230,118,0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 0.85rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open { display: flex; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg-header); border-bottom: 1px solid var(--border); padding: 8px 0; z-index: 99; }
  .nav-links.open a { border-radius: 0; padding: 12px 20px; }
  .nav-hamburger { display: flex; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .filter-panel { flex-direction: column; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 1.3rem; }
  .result-digit { width: 34px; height: 42px; font-size: 1.25rem; }
  .article-body { padding: 16px; }
}

/* ---------- PRINT ---------- */
@media print {
  .site-header, .sidebar, .filter-bar, .site-footer { display: none; }
  .market-card { break-inside: avoid; }
}
