/* GOTOBET88 Signal Hub - Stylesheet Utama */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --text: #1e293b;
  --text-muted: #475569;
  --emerald: #047857;
  --emerald-dark: #065f46;
  --emerald-light: #ecfdf5;
  --emerald-border: #a7f3d0;
  --accent: #10b981;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --danger: #b91c1c;
  --danger-bg: #fef2f2;
  --border: #e2e8f0;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navbar */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar {
  background: var(--emerald-dark);
  color: #ecfdf5;
  font-size: 0.8125rem;
  padding: 6px 0;
  text-align: center;
}
.topbar a { color: #a7f3d0; font-weight: 600; }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--emerald));
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}
.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}
.nav-cta {
  background: var(--emerald) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--accent) !important; }

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  color: #fff;
  padding: 52px 0 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.hero p {
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #052e16; }
.btn-primary:hover { background: #34d399; }
.btn-outline {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
}
.btn-outline:hover { background: rgba(255,255,255,0.16); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); }

/* Cards & Sections */
.section { padding: 44px 0; }
.section-alt { background: var(--surface-alt); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 0.96rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-light);
  color: var(--emerald-dark);
  border: 1px solid var(--emerald-border);
  margin-bottom: 10px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.35;
}
.card p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.93rem; }
.card-link { font-weight: 700; font-size: 0.9rem; color: var(--emerald-dark); }

/* Calculator Widget */
.calc-card {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22);
}
.calc-card h2, .calc-card h3 { margin: 0 0 6px; color: var(--navy); }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: var(--navy);
}
.form-control:focus {
  outline: 2px solid var(--accent);
  border-color: var(--emerald);
}
.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.preset-btn {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.preset-btn.active, .preset-btn:hover {
  background: var(--emerald-light);
  border-color: var(--emerald);
  color: var(--emerald-dark);
}
.calc-result {
  background: var(--emerald-light);
  border: 1px solid var(--emerald-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 4px 0;
  color: var(--navy-soft);
}
.calc-total {
  border-top: 1px dashed var(--emerald-border);
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--emerald-dark);
}

/* Search & Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.filter-bar input {
  flex: 1 1 240px;
}
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Checklist */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.checklist-item.checked {
  background: var(--emerald-light);
  border-color: var(--emerald-border);
}
.checklist-item input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--emerald);
  cursor: pointer;
}
.score-banner {
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* Breadcrumb & Page Banner */
.page-banner {
  background: var(--navy);
  color: #fff;
  padding: 36px 0;
}
.breadcrumb {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 10px;
}
.breadcrumb a { color: #a7f3d0; }
.page-banner h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-banner p { margin: 0; color: #cbd5e1; max-width: 720px; }

/* Notice */
.notice {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  color: #78350f;
  font-size: 0.9rem;
}


.media-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 14px;
}
.media-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.author-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 24px;
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 42px 0 28px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.98rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.88rem; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #a7f3d0; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #94a3b8;
}
