/*
Theme Name: OKVIP TH
Theme URI: https://okvipth.club/
Author: OKVIP
Author URI: https://okvipth.club/
Description: Theme WordPress untuk okvipth.club - dark theme, menu lengkap (desktop + mobile hamburger), halaman link masuk, artikel, dan legal pages. Semua halaman dibuat otomatis saat theme diaktifkan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: okvipth
Tags: dark, one-column, custom-menu, featured-images, translation-ready
*/

/* ============ RESET & BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0c0e16;
  color: #d7dbe8;
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #f5c518; text-decoration: none; }
a:hover { color: #ffe27a; }
ul { list-style: none; }
h1, h2, h3, h4 { color: #ffffff; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 92%); margin: 0 auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #10131f;
  border-bottom: 1px solid #232838;
  box-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.site-logo img { height: 150px; width: auto; }
.site-logo a { display: inline-block; line-height: 0; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 10px 13px; color: #c9cede; font-size: 15px; font-weight: 500;
  border-radius: 8px; white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current > a,
.main-nav > ul > li.current-menu-item > a { color: #10131f; background: #f5c518; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  background: #171b2b; border: 1px solid #2a3044; border-radius: 10px;
  padding: 6px; display: none; box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 50;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { display: block; padding: 9px 13px; color: #c9cede; font-size: 14px; border-radius: 6px; }
.main-nav .sub-menu a:hover { color: #10131f; background: #f5c518; }
.main-nav .has-drop > a::after { content: "▾"; margin-left: 6px; font-size: 11px; opacity: .8; }

/* ============ HAMBURGER ============ */
.menu-toggle {
  display: none; background: none; border: 1px solid #2a3044; border-radius: 10px;
  width: 46px; height: 42px; cursor: pointer; position: relative; z-index: 120;
}
.menu-toggle span {
  position: absolute; left: 11px; right: 11px; height: 3px; background: #f5c518;
  border-radius: 3px; transition: .25s;
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ============ HERO (HOME & LINK PAGE) ============ */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(245,197,24,.16), transparent 60%),
              radial-gradient(900px 420px at 10% 110%, rgba(120,84,255,.14), transparent 60%),
              #0c0e16;
  padding: 64px 0 72px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(245,197,24,.12); color: #f5c518;
  border: 1px solid rgba(245,197,24,.35); padding: 5px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 18px; }
.hero p.lead { font-size: 17px; color: #aab2c8; max-width: 620px; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 520px; margin: 0 auto; }

/* ============ BUTTONS ============ */
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: .2s; }
.btn-solid { background: #f5c518; color: #10131f !important; }
.btn-solid:hover { background: #ffe27a; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(245,197,24,.25); }
.btn-ghost { border: 1px solid #3a4160; color: #e8ebf5 !important; background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: #f5c518; color: #f5c518 !important; }
.btn-big { padding: 15px 32px; font-size: 17px; }

/* ============ SECTIONS ============ */
.section { padding: 52px 0; }
.section.alt { background: #10131f; border-top: 1px solid #1d2233; border-bottom: 1px solid #1d2233; }
.section h2 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 14px; }
.section .sub { color: #9aa2bb; margin-bottom: 26px; }
.section h3 { font-size: 19px; margin: 1.2em 0 .5em; }
.page-main { padding: 44px 0 60px; min-height: 55vh; }
.page-main .page-title { font-size: clamp(24px, 3.4vw, 38px); margin-bottom: 8px; }
.page-main .page-desc { color: #9aa2bb; margin-bottom: 28px; font-size: 17px; }
.page-main h2 { font-size: 22px; margin: 1.6em 0 .6em; color: #f5c518; }
.page-main h3 { font-size: 18px; margin: 1.3em 0 .5em; }
.page-main ul, .page-main ol { margin: 0 0 1.2em 1.4em; }
.page-main ul { list-style: disc; }
.page-main ol { list-style: decimal; }
.page-main li { margin-bottom: .45em; }

/* ============ KEYWORD STRIP ============ */
.keyword-strip { background: #10131f; border-top: 1px solid #1d2233; border-bottom: 1px solid #1d2233; padding: 14px 0; }
.keyword-strip .wrap { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.keyword-strip a {
  font-size: 13px; padding: 6px 14px; border: 1px solid #2a3044; border-radius: 999px;
  color: #b6bdd3; transition: .2s;
}
.keyword-strip a:hover { border-color: #f5c518; color: #f5c518; }

/* ============ FEATURE / CARD GRID ============ */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: #151927; border: 1px solid #232838; border-radius: 14px; padding: 24px 20px;
  transition: .25s;
}
.card:hover { transform: translateY(-4px); border-color: #f5c518; }
.card .card-icon { font-size: 30px; margin-bottom: 10px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14px; color: #aab2c8; margin: 0; }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(120deg, #f5c518, #ff9f1c);
  border-radius: 16px; padding: 34px 30px; text-align: center; color: #10131f;
}
.cta-band h2, .cta-band h3 { color: #10131f; margin-bottom: 8px; }
.cta-band p { color: #3a2f00; margin-bottom: 16px; }
.cta-band .btn { background: #10131f; color: #f5c518 !important; }
.cta-band .btn:hover { background: #1d2233; }

/* ============ NOTE / INFO BOX ============ */
.note {
  background: rgba(245,197,24,.07); border-left: 4px solid #f5c518;
  padding: 14px 18px; border-radius: 8px; margin: 1em 0; color: #e8e3c8;
  font-size: 15px;
}
.note.blue { background: rgba(88,132,255,.08); border-left-color: #5884ff; color: #d5defb; }
.note.green { background: rgba(70,220,130,.07); border-left-color: #46dc82; color: #d2f4e0; }

/* ============ LINK CARDS (LINK PAGE) ============ */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 22px 0 10px; }
.link-card {
  display: block; background: #151927; border: 1px solid #232838; border-radius: 14px;
  padding: 26px 20px; text-align: center; transition: .25s; color: inherit;
}
.link-card:hover { transform: translateY(-5px); border-color: #f5c518; }
.link-card .lc-icon { font-size: 34px; margin-bottom: 10px; }
.link-card .lc-title { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.link-card .lc-desc { font-size: 14px; color: #9aa2bb; margin-bottom: 14px; }
.link-card .lc-btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; }
.link-card.lc-main .lc-btn { background: #f5c518; color: #10131f; }
.link-card.lc-main:hover { box-shadow: 0 16px 40px rgba(245,197,24,.18); }
.link-card.lc-alt .lc-btn { background: #2a3044; color: #e8ebf5; }
.link-card.lc-fix .lc-btn { background: #46dc82; color: #0c2214; }

/* ============ STEPS (numbered) ============ */
.steps { counter-reset: step; display: grid; gap: 12px; margin: 20px 0; }
.step {
  counter-increment: step; display: flex; gap: 14px; align-items: flex-start;
  background: #151927; border: 1px solid #232838; border-radius: 12px; padding: 16px 18px;
}
.step::before {
  content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: #f5c518; color: #10131f; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.step strong { color: #fff; display: block; }
.step p { margin: 2px 0 0; font-size: 14px; color: #aab2c8; }

/* ============ FAQ ============ */
.faq-item { background: #151927; border: 1px solid #232838; border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; color: #fff;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::after { content: "+"; font-size: 22px; color: #f5c518; transition: .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 18px 16px; color: #aab2c8; font-size: 15px; }

/* ============ PROVIDER BADGES ============ */
.providers { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px 0; }
.providers span {
  font-size: 13px; font-weight: 600; color: #c9cede; background: #151927;
  border: 1px solid #2a3044; border-radius: 999px; padding: 7px 16px;
}

/* ============ TABLE (promo/deposit) ============ */
.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.tbl th { background: #1a1f31; color: #f5c518; text-align: left; padding: 11px 14px; border: 1px solid #2a3044; }
.tbl td { padding: 11px 14px; border: 1px solid #232838; color: #c6cce0; }
.tbl tr:nth-child(even) td { background: #12151f; }

/* ============ FOOTER ============ */
.site-footer { background: #0a0c12; border-top: 1px solid #1d2233; padding: 46px 0 26px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
.footer-grid h4 { color: #f5c518; font-size: 15px; margin-bottom: 12px; }
.footer-grid p { font-size: 14px; color: #8d94ab; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid ul a { color: #b6bdd3; font-size: 14px; }
.footer-grid ul a:hover { color: #f5c518; }
.footer-slot { text-align: center; margin: 18px 0; }
.footer-slot img { width: 240px; margin: 0 auto; opacity: .9; }
.footer-bottom { border-top: 1px solid #1d2233; padding-top: 18px; text-align: center; font-size: 13px; color: #6f7690; }
.footer-bottom a { color: #8d94ab; }
.footer-bottom a:hover { color: #f5c518; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .link-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .site-logo img { height: 64px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; background: rgba(9,11,18,.97); z-index: 110;
    display: none; align-items: flex-start; justify-content: center; padding: 110px 20px 40px; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; align-items: stretch; width: 100%; max-width: 480px; gap: 2px; }
  .main-nav > ul > li > a { padding: 13px 14px; font-size: 16px; border-radius: 8px; }
  .main-nav .sub-menu { position: static; display: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 0 14px; background: transparent; }
  .main-nav li.open-sub > .sub-menu { display: block; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 50px; }
  .page-main { padding: 30px 0 44px; }
  .section { padding: 38px 0; }
}
