/* Prediksi 4D Prize Group — 100% Exact Frontier WP Theme + Tool Parity (Strict Nonce-CSP Compliant) */
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/roboto-condensed-v25-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/roboto-condensed-v25-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/arimo-v27-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Arimo';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/arimo-v27-latin-700.woff2') format('woff2');
}

:root {
  --top-bar: #1e75bc;
  --menu-main: #1e73be;
  --accent: #1e73be;
  --bottom-bar: #222222;
  --bg-page: #25bbed;
  --bg-card: #ffffff;
  --border: #d9e1ea;
  --text: #303030;
  --muted: #6c757d;
}

* { box-sizing: border-box; }
body.fr-body {
  margin: 0;
  font-family: 'Arimo', Arial, sans-serif;
  background-color: #000e28;
  background-image: url('/static/img/bgpage.png');
  background-position: center center;
  background-size: auto;
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Condensed', sans-serif;
  color: #3a3a3a;
  line-height: 1.25;
}
a { color: #0e4d7a; text-decoration: none; }
a:hover { color: #0000ee; text-decoration: underline; }

#container.fr-shell-box {
  max-width: 1061px;
  width: 100%;
  margin: 0 auto;
  background: transparent;
  box-shadow: 0 0 6px #000;
}
.fr-shell-blue {
  background-color: #25bbed;
  padding: 5px 5px 0;
}
.d-none { display: none !important; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mt-6 { margin-top: 6px; }
.w-100 { width: 100px !important; }
.fw-bold { font-weight: 700; }
.fr-text-center { text-align: center; }
.txt-blue, .biru { color: #0e4d7a; font-weight: 600; }
.txt-red, .merah { color: red !important; }

/* Top Bar (#1e75bc, right-aligned menu-top) */
#top-bar {
  background-color: var(--top-bar);
  color: #eee;
  padding: 6px 10px;
  box-shadow: 0 0 2px #000;
  position: relative;
  z-index: 90;
}
.fr-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
  gap: 10px;
  flex-wrap: wrap;
}
.fr-top-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.fr-top-links li {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0 8px;
  line-height: 1.2;
}
.fr-top-links li:first-child { border-left: none; }
.fr-top-link {
  font-family: 'Roboto Condensed', sans-serif;
  color: #eee;
  font-size: 13px;
  text-shadow: 0 0 2px #000;
}
.fr-top-link:hover { color: #fff; text-decoration: underline; }
.fr-top-badge {
  background: rgba(0, 0, 0, 0.32);
  padding: 2px 8px;
  border-radius: 3px;
}

/* Main Navigation (Exact w30 Metallic Gradient: #1e73be -> #353526) */
#nav-main.fr-navbar {
  background: linear-gradient(to bottom, #1e73be, #353526);
  padding: 8px 12px;
}
.fr-navmain-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  min-height: 44px;
  flex-wrap: wrap;
}
.fr-brand-link { display: inline-flex; align-items: center; padding: 2px 0; }
.fr-brand-logo { height: 40px; width: auto; max-width: 220px; display: block; border-radius: 0; }
.fr-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 18px;
  cursor: pointer;
}
.fr-menu-main {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}
.fr-menu-main a.nav-link {
  display: block;
  font-family: 'Roboto Condensed', sans-serif;
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 2px 2px #000000;
  letter-spacing: -0.10px;
  padding: 8px 10px;
  text-decoration: none;
}
.fr-menu-main a.nav-link:hover,
.fr-menu-main a.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  text-decoration: none;
}

/* Banner Area (#below-menu / #widgets-wrap-below-menu exact w30 sizing) */
#below-menu { margin: 0; }
#widgets-wrap-below-menu { background-color: #0060bc; padding: 0; }
.frontier-widget {
  background-color: #ffffff;
  border: 1px solid #555555;
  box-shadow: 0 0 2px #333333;
  padding: 10px;
  margin: 0 0 10px 0;
}
.fr-banner-widget { margin: 0; }
.row1 { margin: 0; }
.row1::after { content: ""; display: table; clear: both; }
.fr-banner-top-link { display: block; margin-bottom: 1px; }
.tunggal {
  width: 100%;
  height: 80px;
  border: 1px solid #0060bc;
  display: block;
}
.column1 {
  float: left;
  width: 50%;
  padding: 1px;
}
.tampil {
  width: 100%;
  height: 60px;
  max-height: 60px;
  border: 1px solid #0060bc;
  display: block;
}

/* 2-Column Main Layout inside Sky-Blue #main (71% Content / 29% Sidebar) */
.fr-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 71%) minmax(0, 29%);
  gap: 0;
  align-items: start;
}
.fr-content-col { padding: 5px; min-width: 0; }
.fr-sidebar-col { padding: 5px; min-width: 0; }

/* Live WIB Clock Widget inside Left Column */
.fr-clock-widget { padding: 10px; margin-bottom: 10px; }
.fr-clock-bar {
  background: #103d65;
  color: #ffffff;
  text-align: center;
  font-size: 16px;
  padding: 5px;
}

/* Article / Single-View Card */
.single-view.fr-card {
  background-color: #ffffff;
  border: 1px solid #555555;
  box-shadow: 0 0 2px #333333;
  padding: 12px 14px;
  margin: 0 0 10px 0;
}
.entry-header { margin-bottom: 10px; }
.entry-title, .fr-entry-title {
  margin: 0 0 10px 0;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 26px;
  font-weight: 400;
  color: #3a3a3a;
}
.entry-title a { color: #3a3a3a; }
.fr-subhead { font-size: 18px; font-weight: 700; margin: 14px 0 8px 0; color: #3a3a3a; }
.fr-muted { color: var(--muted); font-size: 13px; margin: 0; }
.fr-hr { border: none; border-top: 1px solid rgba(0, 0, 0, 0.12); margin: 16px 0; }

/* Welcome Hero & 2-Column Featured Market Cards (.card.depan) */
.fr-h2-center {
  text-align: center;
  font-size: 24px;
  margin: 6px 0 10px 0;
  color: #3a3a3a;
}
.fr-intro-center {
  text-align: center;
  font-size: 14px;
  color: #303030;
  margin: 0 0 14px 0;
  line-height: 1.55;
}
.fr-hero-img-wrap { text-align: center; margin: 0 0 16px 0; }
.fr-hero-img { max-width: 100%; height: auto; display: block; margin: 0 auto; }

.fr-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}
.card.depan.fr-mkt-card {
  background: rgba(30, 115, 190, 0.17);
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 4px;
  padding: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.card-header.gold.fr-mkt-card-head,
.widget-title,
.fr-widget-title {
  background: linear-gradient(to bottom, #1e73be, #353526);
  color: #ffffff;
}
.card-header.gold.fr-mkt-card-head {
  font-family: 'Arimo', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 3px 3px 0 0;
  text-align: center;
}
.fr-mkt-card-body { padding: 8px 4px; flex: 1; }
.fr-mkt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 6px 0;
  font-size: 14px;
  color: #212529;
}
.fr-mkt-date { text-align: center; }
.fr-mkt-res { font-weight: 700; text-align: center; font-size: 14.5px; color: #212529; }
.fr-mkt-res.is-today { color: #0941cc; }
.fr-mkt-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 8px 4px 2px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.fr-mkt-card-foot .fr-btn {
  flex: 1 1 0;
  padding: 4px 4px;
  font-size: 12.5px;
  font-weight: 400;
  border-radius: 3.2px;
}
.fr-cta-center { text-align: center; margin: 16px 0 12px; font-size: 20px; }
.fr-pasaran-link { color: #0e4d7a; text-decoration: none; }
.fr-pasaran-link:hover { color: #0000ee; text-decoration: underline; }

/* Right Sidebar Widgets (Exact w30 Frontier + Green Chat/Tablet Icons) */
.fr-widget { padding: 10px; margin: 0 0 10px 0; }
.fr-widget-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 6px 10px;
  margin: 0 0 8px 0;
}
.fr-widget-list { list-style: none; margin: 0; padding: 0; }
.fr-widget-list li {
  border-bottom: 1px solid #eeeeee;
  padding: 5px 0;
  margin: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fr-widget-list li:last-child { border-bottom: none; }
.fr-ico-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #7a7a7a;
}
.fr-ico-chat { color: #007200; }
.fr-widget-list a { color: #0e4d7a; font-weight: 400; }
.fr-widget-list a:hover { color: #0000ee; text-decoration: underline; }

/* Buttons & Forms (Bootstrap 4 Color Palette Matching w30) */
.fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.fr-btn:hover { filter: brightness(92%); text-decoration: none; color: #ffffff; }
.fr-btn-primary { background: #007bff; border-color: #007bff; }
.fr-btn-warn { background: #ffc107; border-color: #ffc107; color: #212529; }
.fr-btn-warn:hover { color: #212529; }
.fr-btn-danger { background: #dc3545; border-color: #dc3545; }
.fr-btn-success { background: #28a745; border-color: #28a745; }
.fr-btn-sm { padding: 4px 10px; font-size: 12.5px; }
.fr-btn-lg { padding: 10px 20px; font-size: 15px; }
.fr-btn-block { width: 100%; }

.fr-input, .fr-select, .fr-textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #212529;
}
.fr-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
.fr-filter-bar .fr-select, .fr-filter-bar .fr-input { flex: 1 1 150px; }
.fr-form-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.fr-field { display: flex; flex-direction: column; gap: 4px; }
.fr-field label { font-size: 13px; font-weight: 700; color: #334155; }

/* Tables */
.fr-table-wrap { overflow-x: auto; border: 1px solid #dee2e6; }
.fr-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: center; }
.fr-table th, .fr-table td { padding: 6px 8px; border: 1px solid #dee2e6; vertical-align: middle; }
.fr-table thead th { background: #343a40; color: #ffffff; font-weight: 700; border-color: #454d55; }
.fr-muka-table tbody tr:hover { background-color: rgba(0, 0, 0, 0.04); }

/* Muka Search, Dropdown & 3D Sphere Balls (Exact muka.php) */
.fr-search-row { display: flex; align-items: stretch; margin-bottom: 14px; }
.fr-search-label {
  color: #ffffff;
  font-weight: 700;
  padding: 7px 14px;
  margin: 0;
  border-radius: 4px 0 0 4px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.fr-search-input { background: #f8f9fa; border-radius: 0 4px 4px 0; }
.fr-muka-date { line-height: 1.25; min-width: 110px; }
.fr-dd-wrap { position: relative; }
.fr-dd-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  z-index: 40;
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 4px 0;
}
.fr-dd-menu a { padding: 4px 12px; font-size: 14px; color: #212529; text-decoration: none; }
.fr-dd-menu a:hover { background: #f8f9fa; color: #16181b; text-decoration: none; }

.fr-balls-wrap { display: flex; flex-wrap: nowrap; justify-content: center; align-items: center; overflow-x: auto; }
.rescir, .fr-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 17px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 50%;
  color: #ffffff;
  margin: 2px;
  flex-shrink: 0;
  transition: transform 0.2s, filter 0.2s;
}
.rescir:hover { filter: brightness(85%); transform: scale(1.1); }
.badge-primary, .fr-ball-blue {
  background: radial-gradient(circle at 65% 15%, white 1px, #80808052 1%, #0941cc 60%, black 100%);
  color: #ffffff;
}
.badge-secondary, .fr-ball-red {
  background: radial-gradient(circle at 65% 15%, white 1px, #13111152 1%, #979796 60%, #bb1717 100%);
  color: #f8f9ff;
}
.show-xs-only { display: none; font-size: 12px; margin-top: 4px; border-top: 1px solid #dee2e6; padding-top: 2px; }

/* Paito Warna Interactive Grid (CSP Class-based Paint!) */
.fr-paito-stage { position: relative; }
.fr-paito-scroll {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  background: #fff;
}
.fr-paito-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: clamp(9.5px, 2.3vw, 13.5px);
  border: 1px solid #cbd5e1;
}
.fr-paito-table th {
  background: #103d65;
  color: #fff;
  padding: 5px 2px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
}
.fr-paito-table td {
  border: 1px solid #d9d9d9;
  text-align: center;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
}
.fr-paito-table td.p-empty { color: #94a3b8; cursor: default; font-weight: 400; }
.fr-paito-table td.p-sep { border-right: 2px solid #94a3b8; }

.fr-paito-table td.paint-c1, .sw-c1 { background-color: #ef4444; color: #fff; }
.fr-paito-table td.paint-c2, .sw-c2 { background-color: #8e44ad; color: #fff; }
.fr-paito-table td.paint-c3, .sw-c3 { background-color: #0a9344; color: #fff; }
.fr-paito-table td.paint-c4, .sw-c4 { background-color: #f39c12; color: #fff; }
.fr-paito-table td.paint-c5, .sw-c5 { background-color: #3498db; color: #fff; }
.fr-paito-table td.paint-c6, .sw-c6 { background-color: #1abc9c; color: #fff; }
.fr-paito-table td.paint-c7, .sw-c7 { background-color: #d35400; color: #fff; }
.fr-paito-table td.paint-c8, .sw-c8 { background-color: #114edf; color: #fff; }

.fr-colormenu {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: flex;
  gap: 5px;
  padding: 7px 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-top: 2px solid #94a3b8;
}
.fr-cm-btn, .fr-cm-swatch {
  flex: 1 1 0;
  height: 26px;
  border: 1px solid #334155;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.fr-cm-btn { background: #fff; color: #0f172a; }
.fr-cm-swatch.active, .fr-cm-btn.active { outline: 2px solid #0f172a; transform: scale(1.04); }

/* Prediksi (Exact prediksi.php card & 2-col directory) & Sitemap */
.fr-pred-card {
  max-width: 600px;
  margin: 24px auto;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: Arial, sans-serif;
  color: #343a40;
}
.fr-pred-title { font-family: Arial, sans-serif; font-weight: 700; font-size: 22px; margin: 0 0 15px 0; color: #343a40; }
.fr-pred-meta { font-size: 15px; margin: 0 0 22px 0; }
.fr-pred-block { margin-bottom: 20px; }
.fr-pred-block h3 { font-family: Arial, sans-serif; font-weight: 700; margin: 0 0 6px 0; font-size: 18px; color: #343a40; }
.fr-pred-nums { word-break: break-word; line-height: 1.65; margin: 0 0 8px 0; font-size: 14.5px; }
.fr-pred-bom { font-weight: 700; font-size: 15.5px; }
.fr-disclaimer { text-align: center; margin-top: 15px; font-style: italic; color: #6c757d; font-size: 14px; }
.fr-links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fr-sitemap-list { margin: 0 0 16px 18px; padding: 0; line-height: 1.8; }

.fr-stat-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 14px; }
.fr-stat-pill { background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 6px; padding: 8px; text-align: center; }
.fr-two-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.fr-chips-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.fr-chip { padding: 4px 8px; border-radius: 4px; font-size: 12.5px; border: 1px solid #cbd5e1; }
.fr-chip.hot { background: #fef2f2; border-color: #fca5a5; }
.fr-chip.cold { background: #eff6ff; border-color: #93c5fd; }

.fr-cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.fr-cal-table th { background: #1e293b; color: #fff; padding: 6px; border: 1px solid #cbd5e1; }
.fr-cal-table td { border: 1px solid #cbd5e1; padding: 6px 4px; text-align: center; vertical-align: top; }
.fr-cal-table td.cal-other { background: #f8fafc; opacity: 0.55; }
.fr-cal-table td.cal-today { background: #fef9c3; border: 2px solid #eab308; }
.cal-day { font-weight: 800; font-size: 15px; }
.cal-pasaran { font-size: 11.5px; font-weight: 700; color: #0e4d7a; }
.cal-ctai { font-size: 11px; color: #dc2626; font-weight: 700; }
.cal-jamah { font-size: 10.5px; color: #475569; }

.fr-ai-banner {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  font-size: 15px;
  text-align: center;
}

.fr-ld-box { max-width: 460px; margin: 10px auto; border-radius: 10px; overflow: hidden; border: 1px solid #cbd5e1; background: #fff; }
.fr-ld-head { color: #fff; font-weight: 800; font-size: 17px; padding: 12px; text-align: center; background: #1e75bc; }
.fr-ld-box.ld-syd .fr-ld-head { background: #009933; }
.fr-ld-date { text-align: center; padding: 8px; border-bottom: 1px solid #e2e8f0; font-weight: 600; }
.fr-ld-prize { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #e2e8f0; font-weight: 700; }
.fr-ld-prize.p1 { background: #eff6ff; }
.fr-ld-balls { display: flex; gap: 4px; }
.fr-ld-ball {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 15%, #fff 1px, #1d4ed8 55%, #0f172a 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.fr-ld-box.ld-syd .fr-ld-ball { background: radial-gradient(circle at 65% 15%, #fff 1px, #16a34a 55%, #064e3b 100%); }

/* Footer (#bottom-bar #222222 left-aligned text matching w30) */
#bottom-bar {
  background-color: var(--bottom-bar);
  border-top: 1px solid #000000;
  padding: 9px 12px;
  margin-top: 0;
}
#bottom-bar-text {
  display: block;
  color: #eeeeee;
  text-shadow: 0 0 2px #000000;
  font-size: 13.5px;
}

.fr-alert-err { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; padding: 10px; border-radius: 5px; margin-bottom: 12px; }
.fr-prose p { margin: 0 0 14px 0; color: #303030; line-height: 1.6; }

/* WordPress Login (wp-login.php) & wp-admin + Frontier Options Framework */
body.wp-login-body {
  margin: 0;
  min-height: 100vh;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.wp-login-wrap { width: 320px; max-width: 100%; }
.wp-login-logo { text-align: center; margin-bottom: 20px; }
.wp-login-logo img { max-width: 240px; height: auto; background: #1e73be; padding: 8px 14px; border-radius: 4px; }
.wp-login-error {
  border-left: 4px solid #d63638;
  padding: 12px;
  margin-bottom: 16px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.wp-login-card {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: 26px 24px;
}
.wp-login-field { margin-bottom: 16px; }
.wp-login-field label { display: block; margin-bottom: 4px; font-size: 14px; color: #3c434a; }
.wp-input, .wp-select, .wp-textarea {
  width: 100%;
  padding: 5px 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #2c3338;
  background-color: #ffffff;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-sizing: border-box;
}
.wp-login-card .wp-input { font-size: 18px; padding: 4px 10px; }
.wp-input:focus, .wp-select:focus, .wp-textarea:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}
.wp-login-actions { display: flex; justify-content: flex-end; }
.wp-login-back { margin: 16px 0 0 0; padding: 0 24px; }
.wp-login-back a { color: #50575e; text-decoration: none; font-size: 13px; }
.wp-login-back a:hover { color: #135e96; }

/* Header & Top-bar Extras on Public Layout when Frontier Options enabled */
.fr-header-bar { padding: 10px 14px; display: flex; align-items: center; }
.fr-header-logo-img { max-width: 100%; height: auto; display: block; }
.fr-top-site-title { color: #ffffff; font-weight: 700; margin-right: 10px; font-size: 13px; }
.fr-top-site-desc { color: #e2e8f0; font-size: 12px; }

/* WordPress wp-admin Shell */
body.wp-admin-body {
  margin: 0;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}
.wp-adminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #1d2327;
  color: #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 9999;
}
.wp-ab-left, .wp-ab-right { display: flex; align-items: center; gap: 2px; height: 100%; }
.wp-ab-item {
  background: transparent;
  border: none;
  color: #f0f0f1;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
}
.wp-ab-item:hover { background: #2c3338; color: #72aee6; }
.wp-ab-mobile-btn { display: none; font-size: 16px; }
.wp-ab-howdy { padding: 0 10px; color: #c3c4c7; font-size: 13px; }
.wp-ab-howdy strong { color: #ffffff; }
.wp-ab-logout-form { margin: 0; }
.wp-ab-logout-btn {
  background: #2c3338;
  border: 1px solid #50575e;
  color: #f0f0f1;
  border-radius: 3px;
  padding: 2px 9px;
  font-size: 12px;
  cursor: pointer;
}
.wp-ab-logout-btn:hover { background: #d63638; border-color: #d63638; color: #ffffff; }

.wp-shell {
  display: flex;
  min-height: 100vh;
  padding-top: 32px;
}
.wp-sidebar {
  width: 168px;
  flex-shrink: 0;
  background: #1d2327;
  color: #f0f0f1;
}
.wp-menu { list-style: none; margin: 10px 0 0 0; padding: 0; }
.wp-menu-item { margin: 0; }
.wp-menu-top {
  width: 100%;
  background: transparent;
  border: none;
  color: #f0f0f1;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.wp-menu-top:hover { background: #2c3338; color: #72aee6; }
.wp-menu-top.active { background: #2271b1; color: #ffffff; font-weight: 600; }
.wp-submenu {
  list-style: none;
  margin: 0;
  padding: 5px 0;
  background: #2c3338;
  display: none;
}
.wp-menu-item.open .wp-submenu { display: block; }
.wp-sub-link {
  width: 100%;
  background: transparent;
  border: none;
  color: #c3c4c7;
  padding: 5px 12px 5px 34px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
}
.wp-sub-link:hover { color: #72aee6; }
.wp-sub-link.active { color: #ffffff; font-weight: 700; }

.wp-content {
  flex: 1;
  min-width: 0;
  padding: 18px 22px 40px 22px;
}
.wp-loading { color: #646970; font-size: 14px; }
.wp-h1 {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 14px 0;
  padding: 4px 0;
  color: #1d2327;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* WordPress Buttons */
.wp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  min-height: 30px;
  line-height: 28px;
  font-size: 13px;
  border-radius: 3px;
  border: 1px solid #2271b1;
  background: #f6f7f7;
  color: #2271b1;
  cursor: pointer;
  text-decoration: none;
}
.wp-btn:hover { background: #f0f0f1; border-color: #0a4b78; color: #0a4b78; }
.wp-btn-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #ffffff;
  font-weight: 500;
}
.wp-btn-primary:hover { background: #135e96; border-color: #135e96; color: #ffffff; }
.wp-btn-danger {
  border-color: #d63638;
  color: #d63638;
  background: #ffffff;
}
.wp-btn-danger:hover { background: #d63638; color: #ffffff; }
.wp-btn-sm { min-height: 26px; line-height: 24px; padding: 0 8px; font-size: 12px; }

/* WordPress Nav Tabs (Options Framework) */
.wp-nav-tab-wrapper {
  border-bottom: 1px solid #c3c4c7;
  margin: 0 0 0 0;
  padding-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.wp-nav-tab {
  border: 1px solid #c3c4c7;
  border-bottom: none;
  margin-left: 4px;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  background: #dcdcde;
  color: #50575e;
  cursor: pointer;
  position: relative;
  top: 1px;
}
.wp-nav-tab:hover { background: #ffffff; color: #1d2327; }
.wp-nav-tab.active {
  border-bottom: 1px solid #ffffff;
  background: #ffffff;
  color: #000000;
}

/* Authentic Frontier #optionsframework + Right Metabox Sidebar */
.of-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 840px) 260px;
  gap: 20px;
  align-items: start;
}
#optionsframework {
  max-width: 840px;
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-top: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.of-section {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f1;
}
.of-section:last-child { border-bottom: none; }
.of-heading {
  margin: 0 0 10px 0;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  background: #f6f7f7;
  border: 1px solid #e2e4e7;
}
.of-row {
  display: grid;
  grid-template-columns: 56% 42%;
  gap: 2%;
  align-items: start;
}
.of-row-full { display: block; }
.of-explain {
  font-size: 12px;
  line-height: 1.5;
  color: #646970;
}
.of-check-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #2c3338;
  cursor: pointer;
}
.of-mini-input {
  width: 90px !important;
  display: inline-block;
  margin-right: 6px;
}
.of-code-area {
  width: 100%;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  background: #fbfbfc;
  color: #1d2327;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 10px;
}

/* Frontier Layout Image Radio Selector (col-cs.png .. col-ssc.png) */
.of-layout-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.of-layout-opt {
  border: 3px solid #f0f0f1;
  padding: 3px;
  background: #ffffff;
  cursor: pointer;
  border-radius: 3px;
  text-align: center;
}
.of-layout-opt:hover { opacity: 0.85; border-color: #c3c4c7; }
.of-layout-opt.selected { border-color: #2271b1; box-shadow: 0 0 0 1px #2271b1; }
.of-layout-opt img { display: block; width: 45px; height: 36px; margin: 0 auto 3px auto; }
.of-layout-opt span { display: block; font-size: 10.5px; color: #50575e; font-weight: 600; }

/* Frontier Range Sliders (Container Width / 2-Col / 3-Col) */
.of-slider-box {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 10px 12px;
}
.of-slider-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.of-slider-pill {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  padding: 2px 8px;
  font-weight: 600;
  color: #1d2327;
}
.of-range { width: 100%; accent-color: #2271b1; cursor: pointer; }

/* WordPress Iris + Alpha Custom Color Picker (No HTML5 input[type=color]) */
.of-color-wrap {
  position: relative;
  display: inline-block;
}
.of-color-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.of-wp-color-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  height: 30px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
  background: #f6f7f7;
  color: #2c3338;
  font-size: 12px;
  cursor: pointer;
  overflow: hidden;
}
.of-wp-color-btn:hover { border-color: #2271b1; color: #1d2327; }
.of-swatch-canvas {
  display: block;
  width: 32px;
  height: 28px;
  border-right: 1px solid #c3c4c7;
}
.of-wp-color-lbl {
  padding: 0 9px;
  line-height: 28px;
  white-space: nowrap;
}
.of-color-hex {
  width: 168px !important;
  font-family: Consolas, Monaco, monospace;
  font-size: 12.5px;
}
.of-iris-pop {
  position: absolute;
  top: 36px;
  left: 0;
  z-index: 500;
  background: #ffffff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  padding: 10px;
  width: 266px;
}
.of-iris-top {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.of-iris-sv,
.of-iris-hue,
.of-iris-alpha,
.of-iris-pal {
  display: block;
  border: 1px solid #8c8f94;
  border-radius: 2px;
  cursor: crosshair;
  touch-action: none;
}
.of-iris-hue,
.of-iris-alpha { cursor: ns-resize; }
.of-iris-pal {
  margin-top: 8px;
  cursor: pointer;
}
.of-iris-foot {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #50575e;
}
.of-grad-preview-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.of-grad-canvas {
  display: block;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Options Framework Submit Bar (#optionsframework-submit) */
.of-submit-bar {
  padding: 12px 16px;
  border-top: 1px solid #dcdcde;
  background: #f6f7f7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* WordPress Postbox / Metabox Cards */
.wp-postbox {
  background: #ffffff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}
.wp-postbox-head {
  padding: 8px 12px;
  border-bottom: 1px solid #c3c4c7;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wp-postbox-body { padding: 12px 14px; }
.wp-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.wp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.wp-stat-card {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-left: 4px solid #2271b1;
  padding: 10px 12px;
}
.wp-stat-num { font-size: 22px; font-weight: 600; color: #1d2327; }
.wp-stat-lbl { font-size: 12px; color: #646970; }

/* WordPress List Table (wp-list-table) */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid #c3c4c7;
}
.wp-list-table th, .wp-list-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f0f0f1;
  font-size: 13px;
}
.wp-list-table th { border-bottom: 1px solid #c3c4c7; font-weight: 600; color: #1d2327; }
.wp-list-table tr:nth-child(even) td { background: #f6f7f7; }

.adm-item-box {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 10px;
}
.adm-row-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 10050; }
.adm-modal.hidden { display: none; }
.adm-modal-card { background: #ffffff; color: #1d2327; border: 1px solid #c3c4c7; border-radius: 4px; padding: 20px; max-width: 420px; width: 100%; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25); }
.adm-toast-host { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 10060; }
.adm-toast { background: #ffffff; color: #1d2327; border: 1px solid #c3c4c7; border-left: 4px solid #00a32a; padding: 10px 14px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); font-size: 13px; }
.adm-toast.err { border-left-color: #d63638; }

@media (max-width: 960px) {
  .of-layout-grid { grid-template-columns: 1fr; }
  .of-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 782px) {
  .wp-ab-mobile-btn { display: inline-flex; }
  .wp-ab-lbl { display: none; }
  .wp-sidebar { position: fixed; top: 32px; bottom: 0; left: 0; z-index: 9990; display: none; overflow-y: auto; }
  .wp-sidebar.open { display: block; }
}

/* Paito Warna Classic Style (Exact 100% Parity with paitowarna.php + get_color_menu3 + Frontier style.css) */
.fr-paito-classic { background: #ffffff; }
#colormenu.menu2 {
  display: flex;
  align-items: center;
  padding: 5px;
  background: #f0f0f0;
  border-bottom: 1px solid #cccccc;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.pw-color-fieldset {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  border: none;
  margin: 0;
  padding: 0;
}
.pw-reset-btn {
  flex: 1 1 0;
  height: 20px;
  cursor: pointer;
  background: transparent;
  border: 1px solid #6f6969;
  border-radius: 3px;
  text-align: center;
  font-size: 10px;
  color: #000000;
  padding: 0;
}
.pw-color {
  flex: 1 1 0;
  height: 20px;
  cursor: pointer;
  border: 1px solid #000000;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-color.sw-c1 { background: red; }
.pw-color.sw-c2 { background: #8e44ad; }
.pw-color.sw-c3 { background: #0a9344; }
.pw-color.sw-c4 { background: #f39c12; }
.pw-color.sw-c5 { background: #3498db; }
.pw-color.sw-c6 { background: #1abc9c; }
.pw-color.sw-c7 { background: #d35400; }
.pw-color.sw-c8 { background: #114edf; }
.pw-color.pw-eraser {
  font-size: 10px;
  color: #000000;
  background: #ffffff;
}
.pw-color.active {
  outline: 2px solid #000000;
}

.pw-filter-wrap { margin: 10px 0; }
.fr-paito-filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.fr-paito-sel {
  padding: 4px 8px;
  height: 31px;
  font-size: 14px;
  border: 1px solid #ced4da;
  border-radius: 3.2px;
  background: #ffffff;
  color: #495057;
}

.pw-table-box { text-align: center; }
.pw-mode-h3 {
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #3a3a3a;
  margin: 8px 0;
}
.pw-scroll {
  overflow-x: auto;
  text-align: center;
}
#drawing-table.fr-paito-table {
  border-collapse: collapse;
  width: auto;
  margin: 10px auto;
  background: #ffffff;
  user-select: none;
}
#drawing-table.fr-paito-table th {
  background-color: #dddddd;
  color: #303030;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #aaaaaa;
  padding: 0 3px;
  text-align: center;
}
#drawing-table.fr-paito-table th.asux {
  background: #ffffff;
  color: #d7d1d1;
  font-weight: 400;
}
#drawing-table.fr-paito-table td {
  border: 1px solid #d9d9d9;
  text-align: center;
  padding: 0;
  width: 20px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s;
}
#drawing-table.fr-paito-table td.asut {
  width: auto;
  padding: 0 6px;
  font-weight: 400;
  color: #303030;
  cursor: default;
}
#drawing-table.fr-paito-table td.asu {
  font-weight: 700;
  color: #303030;
}
#drawing-table.fr-paito-table td.asux {
  background: #ffffff;
  color: #d7d1d1;
  font-weight: 400;
}
#drawing-table.fr-paito-table tbody tr:nth-last-child(5n+1) {
  background: #e8e4e7 !important;
}
#drawing-table.fr-paito-table td.paint-c1 { background-color: red !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c2 { background-color: #8e44ad !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c3 { background-color: #0a9344 !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c4 { background-color: #f39c12 !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c5 { background-color: #3498db !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c6 { background-color: #1abc9c !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c7 { background-color: #d35400 !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.paint-c8 { background-color: #114edf !important; color: #ffffff !important; box-shadow: rgb(157, 154, 154) 0 0 22px; }
#drawing-table.fr-paito-table td.warna-merah { background-color: red !important; color: #ffffff !important; }
#drawing-table.fr-paito-table td.warna-hijau { background-color: green !important; color: #ffffff !important; }
#drawing-table.fr-paito-table td.warna-biru { background-color: blue !important; color: #ffffff !important; }
#drawing-table.fr-paito-table td.warna-coklat { background-color: brown !important; color: #ffffff !important; }
#drawing-table.fr-paito-table td.warna-ungu { background-color: purple !important; color: #ffffff !important; }

.fr-paito-finder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}
.fr-finder-input {
  width: 30px;
  height: 30px;
  text-align: center;
  font-size: 14px;
  color: #212529;
  background: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 4px;
}
.fr-finder-reset {
  padding: 5px 10px;
  font-size: 14px;
  background: #e74c3c;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.fr-finder-reset:hover { background: #c0392b; }

/* Rekap 2D Classic Style (Exact Parity with rekap2d.php) */
.rek2d-frame {
  background-color: #d6314c;
  margin: -12px -14px;
  padding: 10px;
}
.rek2d-header {
  text-align: center;
  margin: 0 0 8px 0;
}
.rek2d-title {
  margin: 0;
  color: #ffffff;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 17px;
  font-weight: 400;
  text-align: center;
}
.rek2d-shell {
  background: #dd9393;
  padding: 10px;
}
.rek2d-dasar-lbl {
  font-size: 13.5px;
  color: #1f2937;
  margin-bottom: 3px;
}
.rek2d-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.rek2d-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 5px;
}
.rek2d-in {
  width: 100%;
  background: #efefef;
  border: 1px solid #000;
  color: #000;
  padding: 4px 6px;
  font-size: 12.5px;
}
.rek2d-full { margin-bottom: 5px; }
.rek2d-sel {
  width: 100%;
  background: #dcfee2;
  border: 1px solid #000;
  color: #000;
  padding: 4px 4px;
  font-size: 12.5px;
}
.rek2d-panel, .rek2d-out-panel {
  background: #d56363;
  margin-top: 8px;
}
.rek2d-panel-head {
  background: #000;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 12.5px;
  padding: 5px 8px;
}
.rek2d-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rek2d-ta {
  width: 100%;
  display: block;
  background: #fefbda;
  border: 1px solid #000;
  color: #000;
  padding: 6px;
  font-family: Arial, sans-serif;
  font-size: 13px;
}
.rek2d-idoff { border: 2px solid #dc2626; }
.rek2d-ai { background: #ebf9ff; }
.rek2d-dasar { border: 2px solid #0d9a10; }
.rek2d-out-ta { padding: 8px; font-weight: 600; }
.rek2d-btn {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #000;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}
.rek2d-btn-gen { background: #e91e63; }
.rek2d-btn-gen:hover { background: #c2185b; }
.rek2d-btn-rst { background: #dc2626; }
.rek2d-btn-rst:hover { background: #b91c1c; }
.rek2d-ln-table {
  width: 100%;
  max-width: 340px;
  margin: 10px auto;
  border-collapse: collapse;
  background: #000;
  table-layout: fixed;
}
.rek2d-ln-table td {
  border: 1px solid #2d2d2d;
  color: #595454;
  height: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}
.rek2d-ln-table td.sponz {
  background: linear-gradient(135deg, #499bea 0%, #207ce5 100%);
  color: #fff;
}
.rek2d-kontrol {
  width: 100%;
  border-collapse: collapse;
  background: #023376;
  border: 2px solid #5f5f5f;
  text-align: center;
  margin-bottom: 6px;
}
.rek2d-kontrol td.oke {
  background: #008000;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 5px;
}
.rek2d-kontrol .oke-dig {
  display: inline-block;
  margin: 0 3px;
  padding: 0 5px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}
.rek2d-kontrol td.oke1 {
  color: #fff;
  font-size: 11.5px;
  padding: 6px;
  line-height: 1.5;
}

/* Rekap 3D & 4D Classic Style (Exact 100% Parity with plugins/shortcodes/rekap3d.php & rekap4d.php) */
.mb-6 { margin-bottom: 5px; }
.rek34-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.rek34-pair, .rek4d-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 5px; }
.rek4d-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-items: start; }
.rek4d-card {
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
}
.rek4d-card-head {
  background-color: #6c757d;
  background-image: linear-gradient(to bottom, #1e73be, #353526);
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.rek4d-bg-primary { background: #007bff; }
.rek4d-bg-success { background: #28a745; }
.rek4d-bg-danger { background: #dc3545; }
.rek4d-card-body { padding: 8px; background: #ffffff; }
.rek3d-grey-body { background: #eeeeee; }

.rek4d-sum-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  table-layout: fixed;
}
.rek4d-sum-table td {
  border: 1px solid #dee2e6;
  padding: 2px 1px;
  text-align: center;
  vertical-align: middle;
}
.rek4d-chk-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  margin: 3px 0;
}
.rek4d-chk-lbl {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  color: #000000;
  font-weight: 700;
  font-size: 12px;
  background-color: #ffffff;
  padding: 1px 2px;
}
.rek4d-chk-wrap input:checked + .rek4d-chk-lbl {
  color: #ffffff;
  background-color: #ff0000;
}
.rek4d-sum-act {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}
.rek4d-act-green { background: #28a745; }
.rek4d-act-red { background: #dc3545; }
.rek4d-act-blue { background: #007bff; }
.rek4d-sum-act:hover { filter: brightness(92%); }

.rek4d-dark-box {
  background: #343a40;
  color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.rek4d-dark-head {
  text-align: center;
  padding: 5px 6px;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.rek4d-dark-body { padding: 4px; background: #343a40; }

.rek4d-ta-plain {
  width: 100%;
  display: block;
  background: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #212529;
  padding: 6px 8px;
  font-size: 13px;
  font-family: inherit;
}
.rek4d-out-wrap { padding: 4px 0; }
.rek4d-out-card {
  background: #28a745;
  color: #ffffff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.125);
  overflow: hidden;
}
.rek4d-out-head {
  text-align: center;
  padding: 6px 8px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}
.rek4d-out-body { padding: 4px; background: #28a745; }
.rek4d-out-ta {
  width: 100%;
  height: 150px;
  display: block;
  background: #ffffff;
  color: #212529;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 8px;
  font-size: 13.5px;
  font-family: inherit;
}

.rek34-card { border: 1px solid #94a3b8; background: #eee; }
.rek34-head {
  background: #2a5a8e;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 6px 8px;
}
.rek34-subhead {
  background: #2a5a8e;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  padding: 4px;
  margin-top: 6px;
}
.rek34-body { padding: 8px; background: #eee; }
.rek34-sum-body { background: #fff; padding: 6px; }
.rek34-sum-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.rek34-sum-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #cbd5e1;
  padding: 2px;
  cursor: pointer;
  background: #fff;
}
.rek34-sum-cell span {
  display: inline-block;
  width: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: #000;
  background: #fff;
  border-radius: 2px;
}
.rek34-sum-cell input:checked + span {
  background: #ff0000;
  color: #fff;
}
.rek34-sum-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.rek34-in {
  width: 100%;
  background: #efefef;
  border: 1px solid #1400ff;
  border-radius: 0;
  color: #000;
  font-size: 12px;
  padding: 2px 5px;
  height: 25px;
}
.rek34-sel {
  width: 100%;
  background: #fdeded;
  border: 1px solid #ca0606;
  border-radius: 0;
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 4px;
  height: 27px;
}
.rek34-sel:disabled {
  background: #e9ecef;
  opacity: 0.85;
}
.rek34-ta {
  width: 100%;
  height: 100px;
  display: block;
  background: #ffffff;
  border: 2px solid #0ae89f;
  border-radius: 0;
  color: #000;
  padding: 10px;
  font-size: 12px;
}

/* Rekap Kumat Classic Style */
.kumat-panel { border: 1px solid #cbd5e1; background: #fff; border-radius: 4px; overflow: hidden; }
.kumat-head { background: #2a5a8e; color: #fff; text-align: center; font-weight: 700; padding: 8px 10px; font-size: 13.5px; }
.kumat-body { padding: 10px; }
.kumat-ta { width: 100%; background: #ebf9ff; border: 1px solid #94a3b8; padding: 8px; font-size: 13px; color: #000; }
.kumat-count { font-size: 13px; color: #334155; }
.kumat-ct { color: #ff0707; font-weight: 800; letter-spacing: 2px; padding: 0 8px; }

/* Bola Merah */
.fr-bm-palette { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.fr-btn-dark { background: #1e293b; border-color: #0f172a; }
.fr-btn-secondary { background: #64748b; border-color: #475569; }
.fr-bm-table td.bm-date { font-weight: 700; color: #334155; }
.fr-bm-table td.bm-balls { display: flex; justify-content: center; gap: 6px; padding: 6px; }
.ballhk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.ballhk.bm-red { background: #dc2626; color: #fff; }
.ballhk.bm-blue { background: #2563eb; color: #fff; }
.ballhk.bm-green { background: #16a34a; color: #fff; }
.ballhk.bm-brown { background: #78350f; color: #fff; }
.ballhk.bm-black { background: #111827; color: #fff; }
.ballhk.paint-c1 { background: #ef4444; color: #fff; }
.ballhk.paint-c2 { background: #8e44ad; color: #fff; }
.ballhk.paint-c3 { background: #0a9344; color: #fff; }
.ballhk.paint-c4 { background: #f39c12; color: #fff; }
.ballhk.paint-c5 { background: #3498db; color: #fff; }
.ballhk.paint-c6 { background: #1abc9c; color: #fff; }
.ballhk.paint-c7 { background: #d35400; color: #fff; }
.ballhk.paint-c8 { background: #114edf; color: #fff; }

/* Pola Dasar 24-Column Matrix */
.fr-pd-table { font-size: 11px; }
.fr-pd-table th, .fr-pd-table td { padding: 4px 3px; font-weight: 700; }
.fr-pd-table td.pd-res { background: #f8fafc; color: #0f172a; font-weight: 800; }
.fr-pd-table td.pd-red { background: #dc2626; color: #fff; }
.fr-pd-table td.pd-green { background: #16a34a; color: #fff; }
.fr-pd-table td.pd-blue { background: #2563eb; color: #fff; }
.fr-pd-table td.pd-yellow { background: #facc15; color: #111827; }
.fr-pd-table td.pd-cyan { background: #06b6d4; color: #fff; }

/* Statistik Visualisasi Data & Analisa AI (Exact Parity with 188.166.217.193/statistik-togel/) */
.fr-stat-card { border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; background: #fff; }
.fr-stat-head { padding: 8px 12px; color: #fff; font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.stat-head-danger { background: #dc2626; }
.stat-head-primary { background: #1d4ed8; }
.stat-head-secondary { background: #475569; }
.stat-head-success { background: #16a34a; }
.fr-stat-freq-table .stat-cnt-col { width: 120px; font-weight: 700; background: #f8fafc; }
.fr-stat-freq-table .stat-nums-col { text-align: left; line-height: 1.8; }
.stat-num-pill { display: inline-block; background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 4px; padding: 1px 6px; font-weight: 700; font-size: 12px; }
.stat-num-pill.stat-never { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }

@keyframes wlaSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.wla-stat-wrapper {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  color: #334155;
}
.wla-stat-header { text-align: center; margin-bottom: 20px; }
.wla-stat-header h3 { color: #0f172a; margin: 0 0 5px 0; font-weight: 800; font-size: 22px; }
.wla-stat-header p { color: #64748b; margin: 0; font-size: 14px; }
.wla-stat-controls { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; justify-content: center; }
.wla-stat-select {
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  outline: none;
  background: #f8fafc;
  color: #334155;
  font-size: 13.5px;
}
.wla-stat-btn {
  padding: 10px 20px;
  background: #d50000;
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
}
.wla-stat-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(213, 0, 0, 0.3);
}
.wla-stat-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.wla-stat-loading { text-align: center; padding: 30px; }
.wla-stat-spinner { animation: wlaSpin 1s linear infinite; display: inline-block; }
.wla-stat-loading-txt { margin-top: 10px; color: #64748b; font-weight: 600; }
.wla-stat-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 16px;
}
.wla-stat-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 5px;
}
.stat-tab {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-weight: 700;
  border-radius: 20px;
  color: #64748b;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 13px;
}
.stat-tab:hover { background: #e2e8f0; }
.stat-tab.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.wla-stat-toggle-right { text-align: right; margin-bottom: 10px; }
.wla-stat-toggle-center { text-align: center; margin-bottom: 15px; }
.wla-chart-toggle-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: 0.2s;
}
.wla-chart-toggle-btn:hover { background: #e2e8f0; color: #0f172a; }
.wla-toggle-ico { width: 12px; height: 12px; }
.wla-stat-chart-wrap {
  position: relative;
  height: 300px;
  width: 100%;
  margin-bottom: 25px;
}
.wla-stat-chart-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.wla-stat-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-box { padding: 15px; border-radius: 10px; text-align: center; }
.hot-box { background: linear-gradient(135deg, #fff1f2, #ffe4e6); border: 1px solid #fecdd3; }
.cold-box { background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border: 1px solid #bae6fd; }
.hot-box-2d { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); border: 1px solid #d8b4fe; }
.cold-box-2d { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); border: 1px solid #cbd5e1; }
.stat-box h4 { margin: 0 0 10px 0; font-size: 15px; font-weight: 800; }
.hot-box h4 { color: #e11d48; }
.cold-box h4 { color: #0284c7; }
.hot-box-2d h4 { color: #7e22ce; }
.cold-box-2d h4 { color: #475569; }
.stat-nums { display: flex; justify-content: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.stat-num {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #ffffff;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.12);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}
.hot-box .stat-num { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.cold-box .stat-num { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.hot-box-2d .stat-num { background: linear-gradient(135deg, #9333ea, #c084fc); }
.cold-box-2d .stat-num { background: linear-gradient(135deg, #64748b, #94a3b8); }
.stat-box small { color: #64748b; font-weight: 600; font-size: 11px; }
.wla-stat-sep { border: 0; border-top: 1px dashed #cbd5e1; margin: 28px 0; }
.wla-stat-sec-title { text-align: center; font-weight: 800; color: #0f172a; margin: 0 0 8px 0; font-size: 18px; }
.wla-2d-group-box { text-align: center; margin-bottom: 22px; }
.wla-2d-group-title { margin: 0 0 8px 0; font-weight: 700; color: #0f172a; font-size: 14px; }
.wla-2d-group-ta {
  width: 100%;
  max-width: 500px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  font-weight: 700;
  color: #d50000;
  text-align: center;
  resize: none;
  background: #f8fafc;
}
.wla-stat-block-pola2d { padding: 0 4px; }
.wla-pola2d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wla-pola-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.wla-pola-card-full { grid-column: 1 / -1; }
.wla-pola-head {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  text-transform: uppercase;
  text-align: center;
}
.wla-pola-vals {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 5px;
}
.wla-pola-red { color: #e11d48; }
.wla-pola-green { color: #059669; margin: 0 10px; }
.wla-pola-blue { color: #0284c7; }
.wla-pola-svg { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }

.wla-ai-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  color: #334155;
  margin-top: 28px;
}
.wla-ai-title {
  color: #0f172a;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px 0;
  font-size: 16px;
}
.wla-ai-bulb { font-size: 20px; }
.wla-ai-para { line-height: 1.7; color: #475569; font-size: 14px; margin: 0 0 14px 0; }
.wla-ai-dark { color: #0f172a; }
.wla-ai-crimson { color: #e11d48; }
.wla-ai-center { text-align: center; }
.wla-ai-kicker {
  color: #0f172a;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 22px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.wla-ai-star { width: 16px; height: 16px; color: #f59e0b; }
.wla-ai-sublabel {
  color: #64748b;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.wla-ai-sublabel-muted {
  color: #94a3b8;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.wla-ai-am-wrap { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.wla-ai-am-ball {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  border: 2px solid #fecaca;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.12);
}
.wla-ai-top-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-width: 320px;
  margin: 0 auto 24px auto;
}
.wla-ai-top-pill {
  background: #ffffff;
  border: 2px solid #0ea5e9;
  color: #0369a1;
  padding: 6px 0;
  border-radius: 8px;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.1);
  text-align: center;
}
.wla-ai-cad-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  width: 100%;
  margin: 0 auto;
}
.wla-ai-cad-pill {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 5px 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 600px) {
  .wla-stat-wrapper { padding: 14px; }
  .wla-stat-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .wla-stat-select { width: 100%; font-size: 13px; padding: 8px 10px; }
  .wla-stat-btn { grid-column: 1 / -1; width: 100%; }
  .wla-stat-summary { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-box { padding: 10px; }
  .stat-box h4 { font-size: 13px; }
  .stat-nums { gap: 4px; }
  .stat-num { width: 28px; height: 28px; font-size: 12px; border-radius: 6px; }
  .stat-box small { font-size: 10px; }
  .wla-stat-tabs { justify-content: flex-start; }
  .stat-tab { padding: 6px 12px; font-size: 11px; }
  .wla-stat-chart-wrap { height: 220px; margin-bottom: 16px; }
  .wla-stat-chart-2d-wrap { height: 260px; }
  .wla-pola2d-grid { grid-template-columns: 1fr; }
  .wla-ai-cad-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Prediksi Statistik & AI — Elegant Layout (/prediksi-<slug>/) */
.pv {
  --pv-ink: #111827;
  --pv-text: #374151;
  --pv-muted: #6b7280;
  --pv-line: #e5e7eb;
  --pv-soft: #f9fafb;
  --pv-gold: #b8891a;
  --pv-gold-l: #f2d27a;
  --pv-red: #dc2626;
  --pv-blue: #0369a1;
  color: var(--pv-text);
  font-size: 14px;
}
.pv-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin: 0 0 16px 0;
}
.pv-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--pv-ink);
  font-size: 13px;
  font-weight: 600;
}
.pv-select:focus { outline: none; border-color: var(--pv-gold); box-shadow: 0 0 0 3px rgba(184, 137, 26, 0.15); }
.pv-btn {
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 8px;
  background: var(--pv-ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.pv-btn:hover { background: #1f2937; }

/* Hero */
.pv-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
  color: #f9fafb;
  background: linear-gradient(145deg, #0b1220 0%, #1f2937 58%, #3a2c0c 100%);
  border: 1px solid rgba(184, 137, 26, 0.35);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}
.pv-hero::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 210, 122, 0.22) 0%, rgba(242, 210, 122, 0) 70%);
  pointer-events: none;
}
.pv-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.pv-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--pv-gold-l);
  margin-bottom: 6px;
}
.pv-hero-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}
.pv-hero-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #d1d5db;
}
.pv-hero-date strong { color: #ffffff; font-weight: 700; }
.pv-ico { width: 14px; height: 14px; color: var(--pv-gold-l); flex-shrink: 0; }
.pv-last { text-align: right; }
.pv-last-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}
.pv-balls { display: flex; gap: 6px; justify-content: flex-end; }
.pv-ball {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #1f1300;
  background: radial-gradient(circle at 32% 28%, #fff7d6 0%, #f2d27a 38%, #c9971f 78%, #8a6410 100%);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 3px 8px rgba(0, 0, 0, 0.35);
}
.pv-last-date { display: block; margin-top: 6px; font-size: 11.5px; color: #9ca3af; }
.pv-recent {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.pv-recent-item {
  text-align: center;
  padding: 7px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pv-recent-item:first-child { border-color: rgba(242, 210, 122, 0.45); background: rgba(242, 210, 122, 0.1); }
.pv-recent-dt { display: block; font-size: 10.5px; color: #9ca3af; }
.pv-recent-num { display: block; font-size: 15px; font-weight: 800; letter-spacing: 1px; color: #ffffff; margin: 1px 0; }
.pv-recent-tag { display: block; font-size: 9.5px; color: var(--pv-gold-l); font-weight: 600; }
.pv-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.pv-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: 0.15s;
}
.pv-link:hover { color: #1f1300; background: var(--pv-gold-l); border-color: var(--pv-gold-l); text-decoration: none; }

/* Cards */
.pv-card {
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
.pv-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}
.pv-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--pv-ink);
}
.pv-card-mark {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pv-gold-l), var(--pv-gold));
}
.pv-card-sub { font-size: 11.5px; color: var(--pv-muted); font-weight: 600; }
.pv-text { margin: 0 0 12px 0; line-height: 1.75; color: var(--pv-text); }
.pv-text:last-child { margin-bottom: 0; }
.pv-text strong { color: var(--pv-ink); }
.pv-hl { color: var(--pv-red); font-weight: 700; }

.pv-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--pv-line);
}
.pv-bar-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin-bottom: 4px;
}
.pv-bar-vals { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.pv-bar-l { color: var(--pv-red); }
.pv-bar-r { color: var(--pv-blue); }
.pv-bar-svg { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }

/* Racikan */
.pv-bbfs {
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #111827, #1f2937);
  margin-bottom: 12px;
}
.pv-bbfs-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}
.pv-chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pv-chip-gold {
  width: 34px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 19px;
  font-weight: 900;
  color: #1f1300;
  background: linear-gradient(180deg, #f8e3a3, #d9a933);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.pv-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-tile {
  padding: 12px;
  border-radius: 10px;
  background: var(--pv-soft);
  border: 1px solid var(--pv-line);
  text-align: center;
}
.pv-tile-lbl {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin-bottom: 8px;
}
.pv-tile .pv-chips { gap: 5px; }
.pv-chip {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  color: var(--pv-ink);
  background: #ffffff;
  border: 1px solid #d1d5db;
}
.pv-chip-red { color: #ffffff; background: var(--pv-red); border-color: var(--pv-red); }
.pv-chip-shio { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; font-size: 12px; }
.pv-chip-shio small { margin-left: 3px; font-weight: 600; opacity: 0.75; }

/* Line Invest */
.pv-invest { text-align: center; }
.pv-invest .pv-card-head { justify-content: center; }
.pv-star { width: 15px; height: 15px; color: var(--pv-gold); }
.pv-sec-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--pv-muted);
  margin: 0 0 10px 0;
}
.pv-am { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.pv-am-ball {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  color: #ffffff;
  background: radial-gradient(circle at 32% 28%, #fca5a5 0%, #ef4444 40%, #b91c1c 100%);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, 0.2), 0 4px 10px rgba(220, 38, 38, 0.3);
}
.pv-bom {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 0 auto 20px auto;
}
.pv-bom-pill {
  padding: 8px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--pv-blue);
  background: #f0f9ff;
  border: 1.5px solid #7dd3fc;
}
.pv-cad {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  margin-bottom: 18px;
}
.pv-cad-pill {
  padding: 5px 0;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  background: var(--pv-soft);
  border: 1px solid var(--pv-line);
}
.pv-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--pv-line);
}
.pv-copy-btn {
  height: 36px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--pv-ink);
  transition: 0.15s;
}
.pv-copy-btn:hover { border-color: var(--pv-gold); background: #fffbeb; }
.pv-copy-primary { background: var(--pv-ink); border-color: var(--pv-ink); color: #ffffff; }
.pv-copy-primary:hover { background: #1f2937; border-color: #1f2937; color: #ffffff; }
.pv-disclaimer {
  margin: 4px 0 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--pv-muted);
  text-align: center;
  font-style: italic;
}

/* Directory /prediksi/ */
.pv-dir-search { margin-bottom: 14px; }
.pred-dir-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--pv-line);
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
  color: var(--pv-ink);
  text-decoration: none;
  transition: 0.15s;
}
.pred-dir-card:hover { border-color: var(--pv-gold); background: #fffbeb; color: var(--pv-ink); text-decoration: none; }
.pred-dir-arrow { font-size: 12px; color: var(--pv-gold); font-weight: 700; }

@media (max-width: 600px) {
  .pv-toolbar { grid-template-columns: 1fr 1fr; }
  .pv-btn { grid-column: 1 / -1; }
  .pv-hero { padding: 16px; }
  .pv-last { text-align: left; width: 100%; }
  .pv-balls { justify-content: flex-start; }
  .pv-recent-num { font-size: 13px; }
  .pv-bars, .pv-tiles, .pv-copy { grid-template-columns: 1fr; }
  .pv-cad { grid-template-columns: repeat(5, 1fr); }
}

/* Rekap 2D / 3D / 4D / Kumat */
.fr-rek-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 12px; }
.fr-rek-card { border: 1px solid #cbd5e1; border-radius: 6px; overflow: hidden; background: #fff; }
.fr-rek-head { background: #1e293b; color: #fff; font-weight: 800; padding: 8px 12px; font-size: 13.5px; display: flex; justify-content: space-between; align-items: center; }
.fr-rek-body { padding: 12px; background: #f8fafc; }
.fr-form-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fr-form-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fr-ln-grid { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; font-size: 12px; background: #fff; }
.fr-ln-grid td { border: 1px solid #cbd5e1; padding: 4px 2px; font-weight: 600; color: #64748b; }
.fr-ln-grid td.sponz { background: #16a34a; color: #fff; font-weight: 800; }
.fr-patah-title { font-weight: 700; font-size: 12.5px; color: #0f172a; margin-bottom: 4px; }
.fr-sum-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.fr-sum-item { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid #cbd5e1; border-radius: 4px; padding: 4px 2px; cursor: pointer; font-weight: 700; font-size: 12px; }
.fr-kumat-line { padding: 4px 0; border-bottom: 1px dashed #cbd5e1; font-family: monospace; font-size: 13px; }
.fr-kumat-table th.kumat-lbl { width: 150px; text-align: left; background: #f1f5f9; color: #0f172a; }
.fr-kumat-table td.kumat-vals { text-align: left; word-break: break-all; font-family: monospace; font-size: 12.5px; }

/* Rumus Angkanet Classic Style (Exact 100% Parity with plugins/shortcodes/rumusbaru.php) */
.contentrumus {
  width: 400px;
  max-width: 100%;
  margin: 0 auto;
}
.rm-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.rm-form-group { margin: 0; }
.rm-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.rm-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rm-sel {
  width: 100%;
  padding: 2px 4px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background: #ffffff;
  color: #212529;
  font-size: 14px;
}
.rm-sel-pasaran {
  background: #f5fbd6;
  height: 40px;
}
.rm-sel-mode {
  background: #d1ffdb;
  font-weight: 700;
  height: 30px;
}
.rm-sel-key { background: #ffe3e3; }
.rm-in-baris {
  width: 100%;
  border: 2px solid #28a745;
  border-radius: 4px;
  background: #fffefe;
  font-size: 20px;
  padding: 4px 10px;
  color: #212529;
}
.rm-btn-submit {
  width: 100%;
  padding: 10px;
  background: #28a745;
  border: none;
  color: #ffffff;
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
}
.rm-btn-submit:hover { background: #218838; }

.selected-keys-info,
.hidden-values-info {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #dddddd;
  background-color: #f9f9f9;
  font-size: 14.5px;
  color: #212529;
}
.rm-warning {
  margin-top: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: #856404;
}

.ExcelTable2007 {
  border: 1px solid #B0CBEF;
  border-width: 1px 0 0 1px;
  font-family: Calibri, Arial, sans-serif;
  border-spacing: 0;
  border-collapse: collapse;
  width: auto;
  margin: 0;
  line-height: 1.3;
}
.ExcelTable2007 th {
  background: #dfe8f9;
  font-weight: 400;
  font-size: 14px;
  border: 1px solid #9EB6CE;
  height: 17px;
  width: 30px;
  text-align: center;
  padding: 0;
  cursor: pointer;
}
.ExcelTable2007 th.rm-res-head { width: auto; padding: 0 6px; cursor: default; }
.ExcelTable2007 th.bottom-header.hidden-marker { background: #98abce; }
.ExcelTable2007 td {
  background-color: #ffffff;
  padding: 0 4px 0 2px;
  border: 1px solid #D0D7E5;
  text-align: center;
  font-size: 16px;
  color: #212529;
}
.ExcelTable2007 td.hasil {
  background: #b1b1b1;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #fffefe;
  text-shadow: 1px 1px #515151;
}
.ExcelTable2007 td.rm-blue { background-color: blue !important; color: #ffffff !important; }
.ExcelTable2007 td.rm-orange { background-color: #fd7715 !important; color: #ffffff !important; }
.ExcelTable2007 td.rm-red { background-color: red !important; color: #ffffff !important; }
.ExcelTable2007 td.rm-green { background-color: green !important; color: #ffffff !important; }
.ExcelTable2007 td.rm-purple { background-color: purple !important; color: #ffffff !important; }
.ExcelTable2007 td.rm-miss-cell { background-color: #f9efe3; font-size: 8px; }

/* Kalender Modal & Live Draw Crimson/Emerald Starter/Consolation */
.kal-cell { cursor: pointer; }
.kal-cell:hover { background: #f1f5f9; }
.fr-modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.68); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 120; }
.fr-modal-box { background: #fff; border-radius: 10px; padding: 20px; max-width: 460px; width: 100%; max-height: 82vh; overflow-y: auto; text-align: center; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.fr-modal-body p { margin: 8px 0; font-size: 13.5px; }
.fr-ld-box.ld-hk .fr-ld-head { background: #990000; }
.fr-ld-box.ld-hk .fr-ld-prize.p1 { background: #fff1f2; }
.fr-ld-box.ld-hk .fr-ld-ball { background: radial-gradient(circle at 65% 15%, #fff 1px, #ef4444 25%, #7f1d1d 70%, #facc15 100%); }
.fr-ld-box.ld-hk .fr-ld-subhead { background: #990000; color: #fff; }
.fr-ld-box.ld-syd .fr-ld-subhead { background: #009933; color: #fff; }
.fr-ld-subhead { font-weight: 800; font-size: 14px; text-align: center; padding: 7px; }
.fr-ld-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; background: #f8fafc; }
.fr-ld-pill { background: #fff; border: 1px solid #cbd5e1; border-radius: 5px; padding: 4px 10px; font-weight: 800; font-size: 14px; color: #0f172a; }

@media (max-width: 820px) {
  .fr-main-grid { grid-template-columns: 1fr; }
  .fr-featured-grid { grid-template-columns: 1fr; }
  .fr-links-grid { grid-template-columns: 1fr; }
  .fr-nav-toggle { display: inline-block; }
  .fr-menu-main { display: none; width: 100%; padding-top: 6px; }
  .fr-menu-main.open { display: block; columns: 2; }
  .fr-form-grid4 { grid-template-columns: repeat(2, 1fr); }
  .fr-form-grid2, .fr-form-grid3 { grid-template-columns: 1fr; }
  .rek2d-cols, .rek34-grid2, .rek4d-grid3 { grid-template-columns: 1fr; }
  .rek34-sum-grid { grid-template-columns: repeat(7, 1fr); }
  .hide-xs { display: none; }
  .show-xs-only { display: block; }
}
@media screen and (max-width: 600px) {
  .column1 { width: 100%; }
  .tampil { width: 100%; height: 50px; max-height: 50px; }
  .tunggal { width: 100%; height: 50px; }
}

/* Rumus Angkanet — Modern AJAX Layout (/rumus-angkanet/) */
.rmx {
  --rx-ink: #111827;
  --rx-text: #374151;
  --rx-muted: #6b7280;
  --rx-line: #e5e7eb;
  --rx-soft: #f9fafb;
  --rx-gold: #b8891a;
  --rx-gold-l: #f2d27a;
  color: var(--rx-text);
  font-size: 14px;
}
.rmx-lead { margin: 0 0 14px 0; color: var(--rx-muted); line-height: 1.6; }
.rmx-form {
  background: #ffffff;
  border: 1px solid var(--rx-line);
  border-radius: 14px;
  padding: 6px 16px 16px 16px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}
/* Rumus Angkanet — Compact Executive Console */
.rmx-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #3a2a0b 100%);
  color: #f8fafc;
}
.rmx-hero-left { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rmx-hero-title { margin: 0; font-size: 16px; font-weight: 800; color: #ffffff; letter-spacing: 0.2px; }
.rmx-hero-sub { font-size: 11.5px; color: #cbd5e1; }
.rmx-hero-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.rmx-form {
  background: #ffffff;
  border: 1px solid var(--rx-line);
  border-top: none;
  border-radius: 0 0 9px 9px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
.rmx-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.65fr 1.25fr 1.05fr;
  gap: 7px;
  padding-bottom: 9px;
  border-bottom: 1px dashed var(--rx-line);
}
.rmx-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rmx-lbl { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.55px; color: var(--rx-muted); }
.rmx-input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: var(--rx-ink);
  font-size: 12.5px;
  font-weight: 600;
  min-width: 0;
}
.rmx-input:focus, .rmx-op-sel:focus { outline: none; border-color: var(--rx-gold); box-shadow: 0 0 0 2px rgba(184, 137, 26, 0.18); }
.rmx-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 32px;
  padding: 2px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}
.rmx-seg-opt { position: relative; display: flex; cursor: pointer; }
.rmx-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rmx-seg-opt span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rx-muted);
  transition: 0.15s;
}
.rmx-seg-opt input:checked + span { background: #0f172a; color: #ffffff; }
.rmx-seg-opt input:focus-visible + span { outline: 2px solid var(--rx-gold); }

.rmx-formula-box { padding: 8px 0; border-bottom: 1px dashed var(--rx-line); }
.rmx-formula-head { margin-bottom: 5px; }
.rmx-builder { display: flex; flex-direction: column; gap: 5px; }
.rmx-term {
  display: grid;
  grid-template-columns: 24px 1fr 1fr 1fr 40px;
  gap: 6px;
  align-items: center;
  padding: 5px 6px;
  border-radius: 7px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.rmx-term-badge {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #0f172a;
}
.rmx-term-badge-eq {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--rx-gold-l), var(--rx-gold));
  color: #1f1300;
  font-size: 14px;
}
.rmx-key { border-color: #fca5a5; background: #fff8f8; }
.rmx-op-sel {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--rx-ink);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}
.rmx-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.rmx-final-inline { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; }
.rmx-final-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; color: var(--rx-muted); white-space: nowrap; }
.rmx-final-sel { max-width: 180px; }
.rmx-act-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rmx-btn {
  height: 34px;
  padding: 0 16px;
  border: none;
  border-radius: 7px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: filter 0.15s;
}
.rmx-btn:hover { filter: brightness(1.15); }
.rmx-btn:disabled { opacity: 0.6; cursor: wait; }
.rmx-auto { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--rx-muted); cursor: pointer; }

.rmx-status {
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
@keyframes rmxBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
.rmx-result { position: relative; margin-top: 10px; transition: opacity 0.15s; }
.rmx-result.is-loading { opacity: 0.45; pointer-events: none; }
.rmx-result.is-loading::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 40%;
  height: 2.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--rx-gold), transparent);
  animation: rmxBar 0.9s linear infinite;
}
.rmx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 18px 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  color: var(--rx-muted);
  text-align: center;
  font-size: 12.5px;
  background: #f8fafc;
}
.rmx-empty-ico { font-size: 22px; font-weight: 800; color: var(--rx-gold); }
.rmx-empty-err { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.rmx-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  color: #f9fafb;
  background: linear-gradient(145deg, #0b1220 0%, #1f2937 60%, #3a2c0c 100%);
}
.rmx-sum-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rmx-sum-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.9px; color: var(--rx-gold-l); }
.rmx-sum-desc { font-size: 13px; font-weight: 700; color: #ffffff; word-break: break-word; }
.rmx-sum-stats { display: flex; gap: 5px; flex-wrap: wrap; }
.rmx-stat {
  font-size: 11px;
  color: #e2e8f0;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.rmx-stat b { color: #ffffff; }
.rmx-hidden-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; font-size: 11.5px; color: var(--rx-muted); }
.rmx-hidden-list { display: flex; gap: 4px; flex-wrap: wrap; }
.rmx-hidden-chip {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--rx-ink);
  cursor: pointer;
}
.rmx-hidden-chip:hover { border-color: var(--rx-gold); background: #fffbeb; }
.rmx-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}
.rmx-table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rmx-table th, .rmx-table td {
  text-align: center;
  padding: 4px 3px;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
  min-width: 26px;
}
.rmx-table thead th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  border-bottom: 1px solid #cbd5e1;
}
.rmx-th-col { cursor: pointer; user-select: none; }
.rmx-th-col:hover { color: #b91c1c; background: #fee2e2; }
.rmx-th-res, .rmx-td-res {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #ffffff;
  font-weight: 800;
  color: var(--rx-ink);
  letter-spacing: 0.4px;
  padding-left: 8px !important;
  padding-right: 8px !important;
  border-right: 1px solid #e2e8f0;
}
.rmx-table thead .rmx-th-res { background: #f1f5f9; z-index: 2; color: #475569; }
.rmx-table tbody tr:hover td { background: #fffbeb; }
.rmx-cell { color: var(--rx-text); font-weight: 600; }
.rmx-cell.rm-blue, .rmx-cell.rm-orange, .rmx-cell.rm-red, .rmx-cell.rm-green, .rmx-cell.rm-purple { color: #ffffff; font-weight: 800; }
.rmx-cell.rm-blue { background: #2563eb !important; }
.rmx-cell.rm-orange { background: #f97316 !important; }
.rmx-cell.rm-red { background: #dc2626 !important; }
.rmx-cell.rm-green { background: #16a34a !important; }
.rmx-cell.rm-purple { background: #9333ea !important; }
.rmx-table tbody tr.rmx-tr-next td { background: #fffbeb; border-top: 2px solid var(--rx-gold-l); font-weight: 800; color: var(--rx-ink); }
.rmx-table tbody tr.rmx-tr-next .rmx-td-res { color: var(--rx-gold); }
.rmx-tr-status td { font-size: 11px; font-weight: 800; background: #f8fafc; border-bottom: none; }
.rmx-tr-status .rmx-td-res { font-size: 10px; color: var(--rx-muted); text-transform: uppercase; background: #f8fafc; }
.rmx-ok { color: #16a34a; }
.rmx-miss { color: #dc2626; background: #fef2f2 !important; }
.rmx-lemah {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding: 7px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.rmx-lemah-lbl { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--rx-muted); }
.rmx-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.rmx-chip {
  min-width: 26px;
  height: 24px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  color: #b91c1c;
  background: #ffffff;
  border: 1px solid #fecaca;
}
.rmx-muted { color: var(--rx-muted); }
.rmx-note { margin: 7px 0 0 0; font-size: 11.5px; color: var(--rx-muted); line-height: 1.45; }
.rmx-prose { margin: 10px 0 0 0; font-size: 11.5px; color: var(--rx-muted); line-height: 1.5; }

@media (max-width: 720px) {
  .rmx-top-grid { grid-template-columns: 1fr 1fr; }
  .rmx-f-mkt { grid-column: 1 / -1; }
  .rmx-term { grid-template-columns: 22px 1fr 1fr 36px; }
  .rmx-term select[name="mistik[]"] { grid-column: 2 / 4; }
  .rmx-actions { flex-direction: column; align-items: stretch; }
  .rmx-final-sel { max-width: none; }
  .rmx-act-right { justify-content: space-between; }
}

/* =========================================================
   PUBLIC DYNAMIC WIDGET ZONES (After Content, Footer, Text, Banner)
   ========================================================= */
.fr-after-content-widgets {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fr-widget-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #1f2937;
  white-space: pre-line;
  word-break: break-word;
}
.fr-widget-banner-link {
  display: block;
  text-align: center;
}
.fr-widget-banner-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
}
.fr-footer-widgets {
  display: grid;
  gap: 12px;
  padding: 12px;
  background: #f5f5f5;
  border-top: 1px solid #d9d9d9;
}
.fr-fw-cols-1 { grid-template-columns: 1fr; }
.fr-fw-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fr-fw-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fr-fw-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fr-fw-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fr-fw-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 768px) {
  .fr-footer-widgets { grid-template-columns: 1fr; }
}

/* =========================================================
   LIVE RESULT MARQUEE TICKER WIDGET (10 LATEST MARKETS)
   ========================================================= */
.fr-below-menu-widgets {
  width: 100%;
}
.fr-marquee-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #162032;
  border-top: 2px solid #8a5a18;
  border-bottom: 1px solid #26334a;
  padding: 7px 10px;
  overflow: hidden;
  box-sizing: border-box;
}
.fr-mq-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(180deg, #b56a2c 0%, #8e4c19 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.fr-mq-clock {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}
.fr-mq-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 2%, #000 98%, transparent 100%);
}
.fr-mq-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 26px;
  animation: frMarqueeScroll 38s linear infinite;
  will-change: transform;
}
.fr-marquee-bar:hover .fr-mq-track {
  animation-play-state: paused;
}
@keyframes frMarqueeScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}
.fr-mq-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 2px 0;
}
.fr-mq-item:hover .fr-mq-name {
  color: #fbbf24;
}
.fr-mq-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.fr-mq-c0 { background: #dc2626; }
.fr-mq-c1 { background: #2563eb; }
.fr-mq-c2 { background: #059669; }
.fr-mq-c3 { background: #d97706; }
.fr-mq-c4 { background: #7c3aed; }
.fr-mq-c5 { background: #0284c7; }
.fr-mq-name {
  color: #f8fafc;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.15s;
}
.fr-mq-res {
  background: #2b3648;
  border: 1px solid #3c4a62;
  color: #fbbf24;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.8px;
  padding: 2px 9px;
  border-radius: 5px;
}
.wpm-type-marquee {
  background: #ffedd5;
  color: #9a3412;
}
@media (max-width: 600px) {
  .fr-marquee-bar { gap: 8px; padding: 6px 8px; }
  .fr-mq-badge { font-size: 11px; padding: 5px 8px; }
  .fr-mq-name { font-size: 11.5px; }
  .fr-mq-res { font-size: 12px; padding: 2px 7px; }
}

/* =========================================================
   HOMEPAGE UNIQUE TEMPLATES (MARKET TABLE 3D BALLS, CARDS, COMPACT)
   ========================================================= */
.hp-wrap { display: flex; flex-direction: column; gap: 12px; }
.hp-intro-box { text-align: center; padding: 6px 8px; }
.hp-intro-title { margin: 0 0 6px 0; font-size: 20px; font-weight: 800; color: #1e293b; }
.hp-intro-desc { margin: 0; font-size: 13.5px; color: #475569; line-height: 1.55; }

.hp-search-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.hp-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  flex-shrink: 0;
}
.hp-search-lbl {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
.hp-search-in {
  flex: 1;
  min-width: 0;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 6px;
  padding: 7px 12px;
  font-size: 13.5px;
  color: #0f172a;
}
.hp-search-in:focus {
  outline: none;
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.hp-tbl-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.hp-tbl {
  width: 100%;
  border-collapse: collapse;
}
.hp-tbl thead th {
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 12px 12px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.hp-tbl thead th:first-child { text-align: left; border-top-left-radius: 7px; }
.hp-tbl thead th:last-child { border-right: none; border-top-right-radius: 7px; }
.hp-tbl tbody td {
  padding: 11px 10px;
  border-bottom: 1px solid #eef2f6;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
}
.hp-tbl tbody td:last-child { border-right: none; }
.hp-tbl tbody tr:hover td { background: #f8fafc; }

.hp-td-mkt { width: 42%; }
.hp-td-date { width: 26%; text-align: center; }
.hp-td-res { width: 32%; text-align: center; }

.hp-mkt-dd { position: relative; display: block; }
.hp-mkt-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: filter 0.15s, transform 0.1s;
}
.hp-mkt-btn:hover { filter: brightness(1.07); }
.hp-mkt-btn:active { transform: translateY(1px); }
.hp-mkt-ico { width: 14px; height: 14px; flex-shrink: 0; }
.hp-mkt-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-mkt-caret { font-size: 11px; opacity: 0.9; flex-shrink: 0; }

.hp-mkt-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hp-mkt-menu a {
  display: block;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  border-radius: 5px;
}
.hp-mkt-menu a:hover { background: #eff6ff; color: #1d4ed8; }

.hp-date-val {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}
.hp-date-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.hp-balls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: nowrap;
}
.hp-ball {
  width: 31px;
  height: 31px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #1e293b;
  background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e2e8f0 62%, #cbd5e1 100%);
  box-shadow: inset 0 -2px 4px rgba(15, 23, 42, 0.14), 0 2px 4px rgba(15, 23, 42, 0.16);
  border: 1px solid #cbd5e1;
}
.hp-ball.is-today {
  color: #ffffff;
  border-color: #1d4ed8;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(37, 99, 235, 0.35);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.hp-more-wrap { text-align: center; margin-top: 4px; }
.hp-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 10px 26px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(29, 78, 216, 0.3);
}
.hp-more-btn:hover { filter: brightness(1.06); }

.hp-tools-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
}
.hp-tool-chip {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 5px 12px;
  text-decoration: none;
}
.hp-tool-chip:hover { background: #2563eb; border-color: #2563eb; color: #ffffff; }

/* Template 3: Cards Grid */
.hp-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hp-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.05);
}
.hp-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 12px;
  color: #ffffff;
}
.hp-card-name { font-size: 13px; font-weight: 800; }
.hp-card-time { font-size: 11px; opacity: 0.9; white-space: nowrap; }
.hp-card-body { padding: 12px 10px; text-align: center; }
.hp-card-date { font-size: 11.5px; color: #64748b; margin-bottom: 8px; font-weight: 600; }
.hp-card-foot {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: #f8fafc;
  border-top: 1px solid #eef2f6;
}
.hp-mini-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 3px 9px;
  text-decoration: none;
}
.hp-mini-link:hover { background: #1d4ed8; color: #ffffff; }

/* Template 4: Compact List */
.hp-compact-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.hp-compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.hp-compact-row:last-child { border-bottom: none; }
.hp-compact-row:hover { background: #f8fafc; }
.hp-compact-left { display: flex; flex-direction: column; min-width: 0; }
.hp-compact-name { font-size: 13.5px; font-weight: 700; color: #0f172a; text-decoration: none; }
.hp-compact-name:hover { color: #2563eb; }
.hp-compact-meta { font-size: 11.5px; color: #64748b; }
.hp-compact-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hp-compact-res {
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 5px;
  background: #e2e8f0;
  color: #1e293b;
}
.hp-compact-res.is-today { background: #2563eb; color: #ffffff; }

/* Admin Homepage Template Picker Cards */
.hp-tpl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hp-tpl-card {
  text-align: left;
  background: #ffffff;
  border: 2px solid #dcdcde;
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.hp-tpl-card:hover { border-color: #2271b1; background: #f6faff; }
.hp-tpl-card.active {
  border-color: #2271b1;
  background: #f0f6fc;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}
.hp-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.hp-tpl-name { font-size: 14px; font-weight: 700; color: #1d2327; }
.hp-tpl-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #4b5563;
}
.hp-tpl-tag.active { background: #2271b1; color: #ffffff; }
.hp-tpl-desc { font-size: 12px; color: #50575e; line-height: 1.45; }

@media (max-width: 640px) {
  .hp-tbl thead th, .hp-tbl tbody td { padding: 8px 6px; }
  .hp-mkt-btn { font-size: 11.5px; padding: 7px 8px; }
  .hp-ball { width: 25px; height: 25px; font-size: 12px; }
  .hp-balls { gap: 3px; }
  .hp-cards-grid, .hp-tpl-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HOMEPAGE DUAL WIDGET: PAITO TERPOPULER & NEXT LIVE 8 PASARAN
   ========================================================= */
.fr-mq-logo {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.hp-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.hp-dual-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.hp-dual-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hp-dual-hico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.hp-dual-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hp-dual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.hp-dual-row:hover {
  border-color: #2563eb;
  background: #f8fafc;
  transform: translateY(-1px);
}
.hp-dual-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.hp-dual-logo {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.hp-dual-mono {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
}
.hp-dual-name {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-dual-chev {
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  font-weight: 700;
  flex-shrink: 0;
}
.hp-live-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.hp-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1.5px solid #0f172a;
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
.hp-live-dot-red {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #dc2626;
  display: inline-block;
}
.hp-live-time {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 720px) {
  .hp-dual-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   POPUP MEGA MENU (ANGKANET38-STYLE FLOATING MODAL)
   ========================================================= */
body.fr-mega-open { overflow: hidden; }
.fr-mega-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.fr-mega-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9995;
  width: min(94vw, 660px);
  max-height: 86vh;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: frMegaPop 0.16s ease-out;
}
@keyframes frMegaPop {
  from { opacity: 0; transform: translate(-50%, -47%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.fr-mega-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #3a2a0b 100%);
  color: #ffffff;
}
.fr-mega-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.fr-mega-hico {
  width: 16px;
  height: 16px;
  color: #fbbf24;
  flex-shrink: 0;
}
.fr-mega-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fr-mega-close:hover { background: #dc2626; border-color: #dc2626; }
.fr-mega-body {
  padding: 14px 16px 18px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fr-mega-sec {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #64748b;
  padding-top: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.fr-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fr-mega-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 700;
  transition: border-color 0.15s, background-color 0.15s, transform 0.1s;
}
.fr-mega-link:hover, .fr-mega-link.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8 !important;
  transform: translateY(-1px);
}
.fr-mega-ico {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fr-mega-ico svg { width: 13px; height: 13px; display: block; }
.fr-mega-link:hover .fr-mega-ico, .fr-mega-link.is-active .fr-mega-ico {
  background: #2563eb;
  color: #ffffff;
}
.fr-mega-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.fr-mega-hot {
  font-size: 9.5px;
  font-weight: 800;
  background: #dc2626;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0.4px;
}
@media (max-width: 600px) {
  .fr-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .fr-mega-link { padding: 8px 8px; font-size: 12px; }
}

/* =========================================================
   4 MODERN TOP NAVBAR PRESETS (CLASSIC / GLASS / DARK LUXURY / CENTERED)
   ========================================================= */
.fr-nav-toggle-lbl { display: none; font-size: 12.5px; font-weight: 700; margin-left: 5px; }

/* Preset 2: Modern Glass Pill */
#nav-main.fr-nav-preset-glass {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}
#nav-main.fr-nav-preset-glass .fr-navmain-inner {
  justify-content: space-between;
  padding: 6px 14px;
}
#nav-main.fr-nav-preset-glass .fr-menu-main {
  gap: 4px;
}
#nav-main.fr-nav-preset-glass .fr-menu-main a.nav-link {
  color: #1e293b;
  text-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.15s, color 0.15s;
}
#nav-main.fr-nav-preset-glass .fr-menu-main a.nav-link:hover,
#nav-main.fr-nav-preset-glass .fr-menu-main a.nav-link.active {
  background: rgba(255, 255, 255, 0.22);
}
#nav-main.fr-nav-preset-glass .fr-nav-toggle {
  display: inline-flex !important;
  align-items: center;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 6px 13px;
  margin-left: auto;
}
#nav-main.fr-nav-preset-glass .fr-nav-toggle:hover { background: rgba(15, 23, 42, 0.92); }
#nav-main.fr-nav-preset-glass .fr-nav-toggle-lbl { display: inline; }

/* Preset 3: Dark Executive Gold */
#nav-main.fr-nav-preset-dark_luxury {
  background: linear-gradient(135deg, #0b1120 0%, #172033 65%, #2b210c 100%);
  border-bottom: 2px solid #d97706;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
#nav-main.fr-nav-preset-dark_luxury .fr-navmain-inner {
  justify-content: space-between;
  padding: 7px 14px;
}
#nav-main.fr-nav-preset-dark_luxury .fr-menu-main {
  gap: 2px;
}
#nav-main.fr-nav-preset-dark_luxury .fr-menu-main a.nav-link {
  color: #e2e8f0;
  text-shadow: none !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}
#nav-main.fr-nav-preset-dark_luxury .fr-menu-main a.nav-link:hover,
#nav-main.fr-nav-preset-dark_luxury .fr-menu-main a.nav-link.active {
  background: rgba(251, 191, 36, 0.16);
  border-bottom-color: #fbbf24;
}
#nav-main.fr-nav-preset-dark_luxury .fr-nav-toggle {
  display: inline-flex !important;
  align-items: center;
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  margin-left: auto;
}
#nav-main.fr-nav-preset-dark_luxury .fr-nav-toggle:hover { filter: brightness(1.1); }
#nav-main.fr-nav-preset-dark_luxury .fr-nav-toggle-lbl { display: inline; }

/* Preset 4: Centered Minimalist Split */
#nav-main.fr-nav-preset-centered_split .fr-navmain-inner {
  justify-content: space-between;
  padding: 6px 14px;
}
#nav-main.fr-nav-preset-centered_split .fr-menu-main {
  margin: 0 auto;
  gap: 6px;
}
#nav-main.fr-nav-preset-centered_split .fr-menu-main a.nav-link {
  text-shadow: none !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 11px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, opacity 0.15s;
}
#nav-main.fr-nav-preset-centered_split .fr-menu-main a.nav-link:hover,
#nav-main.fr-nav-preset-centered_split .fr-menu-main a.nav-link.active {
  background: transparent;
  border-bottom-color: #ffffff;
}
#nav-main.fr-nav-preset-centered_split .fr-nav-toggle {
  display: inline-flex !important;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 5px 12px;
}
#nav-main.fr-nav-preset-centered_split .fr-nav-toggle:hover { background: rgba(255, 255, 255, 0.28); }
#nav-main.fr-nav-preset-centered_split .fr-nav-toggle-lbl { display: inline; }

@media (max-width: 768px) {
  #nav-main.fr-nav-preset-glass .fr-menu-main,
  #nav-main.fr-nav-preset-dark_luxury .fr-menu-main,
  #nav-main.fr-nav-preset-centered_split .fr-menu-main {
    display: none !important;
  }
}

/* =========================================================
   PREDIKSI FLAT-FILE COMMENT SYSTEM (.cmt-*)
   ========================================================= */
.cmt-card { margin-top: 16px; }
.cmt-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.cmt-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.cmt-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #e2e8f0;
}
.cmt-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #1e293b;
}
.cmt-reply-cancel {
  border: none;
  background: transparent;
  color: #dc2626;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 6px;
}
.cmt-input,
.cmt-ta {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
  font-family: inherit;
  font-size: 13px;
  color: #111827;
  background: #ffffff;
  transition: border-color 0.15s;
}
.cmt-input:focus,
.cmt-ta:focus {
  outline: none;
  border-color: #2563eb;
}
.cmt-ta { resize: vertical; min-height: 70px; line-height: 1.5; }
.cmt-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.cmt-hint { font-size: 11.5px; color: #64748b; }
.cmt-submit {
  height: 36px;
  padding: 0 18px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #1e293b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cmt-submit:disabled { opacity: 0.6; cursor: wait; }
.cmt-alert {
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 600;
}
.cmt-alert-ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.cmt-alert-err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.cmt-list { display: flex; flex-direction: column; gap: 10px; }
.cmt-empty {
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding: 16px 8px;
  margin: 0;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px dashed #e2e8f0;
}
.cmt-item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 13px;
  background: #ffffff;
}
.cmt-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.cmt-author-wrap { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cmt-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #1e293b;
  color: #ffffff;
  flex-shrink: 0;
}
.cmt-author { font-size: 13px; font-weight: 800; color: #111827; }
.cmt-time { font-size: 11px; color: #6b7280; }
.cmt-body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1f2937;
  white-space: pre-wrap;
  word-break: break-word;
}
.cmt-item-foot { margin-top: 6px; display: flex; align-items: center; gap: 10px; }
.cmt-reply-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
}
.cmt-reply-btn:hover { text-decoration: underline; }
.cmt-replies {
  margin-top: 9px;
  margin-left: 18px;
  padding-left: 12px;
  border-left: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cmt-reply-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 11px;
}

/* =========================================================
   ELEGANT SEO INTRO BLOCK (.fr-seo-intro)
   ========================================================= */
.fr-seo-intro {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 3.5px solid var(--accent, #1e73be);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 14px 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.fr-seo-intro p {
  margin: 0;
}
.fr-seo-intro strong {
  color: #0f172a;
  font-weight: 700;
}

/* =========================================================
   HTML SITEMAP DIRECTORY (.sm-*)
   ========================================================= */
.sm-xml-link { font-weight: 700; text-decoration: underline; }
.sm-wrap { display: flex; flex-direction: column; gap: 14px; }
.sm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.sm-card-head {
  margin: 0;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(to bottom, #1e73be, #353526);
}
.sm-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.sm-chip {
  display: block;
  padding: 7px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  color: #1e293b;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.14s ease;
}
.sm-chip:hover {
  border-color: #1e73be;
  background: #eff6ff;
  color: #1e3a8a;
  text-decoration: none;
}
.sm-mkt-list { display: flex; flex-direction: column; }
.sm-mkt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.sm-mkt-row:last-child { border-bottom: none; }
.sm-mkt-row:hover { background: #f8fafc; }
.sm-mkt-name { font-size: 13px; font-weight: 800; color: #0f172a; }
.sm-mkt-links { display: flex; gap: 5px; flex-wrap: wrap; }
.sm-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  text-decoration: none;
  transition: all 0.14s ease;
}
.sm-pill:hover {
  background: #1e73be;
  border-color: #1e73be;
  color: #ffffff;
  text-decoration: none;
}
@media (max-width: 680px) {
  .sm-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
