/* =========================================================
   FRONTEND — Dark + Gold Gradient (Public)
   ========================================================= */

:root{
  --f-bg: #0b0f17;
  --f-bg-2: #0f1624;
  --f-surface: rgba(255,255,255,.06);
  --f-surface-2: rgba(255,255,255,.08);
  --f-border: rgba(255,255,255,.10);

  --f-text: rgba(255,255,255,.92);
  --f-muted: rgba(255,255,255,.65);

  --gold-1:#f7d07a;
  --gold-2:#d7a33a;
  --gold-3:#9b6b18;

  --shadow-soft: 0 18px 60px rgba(0,0,0,.55);
}

.frontend-body{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(247,208,122,.14) 0%, transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(215,163,58,.12) 0%, transparent 60%),
              linear-gradient(180deg, var(--f-bg) 0%, var(--f-bg-2) 100%);
  min-height: 100vh;
  color: var(--f-text);
}

/* Navbar */
.frontend-nav{
  background: rgba(10,14,22,.55) !important;
  border-bottom: 1px solid var(--f-border);
  backdrop-filter: blur(10px);
}

.frontend-brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--f-text) !important;
  font-weight: 700;
  letter-spacing: .2px;
  text-decoration: none;
}

.brand-dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3));
  box-shadow: 0 0 0 6px rgba(247,208,122,.10);
}

.frontend-link{
  color: rgba(255,255,255,.78) !important;
  border-radius: 10px;
  padding: .5rem .75rem;
}

.frontend-link:hover{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.95) !important;
}

.frontend-btn-outline{
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  border-radius: 12px;
  padding: .45rem .75rem;
}

.frontend-btn-outline:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(247,208,122,.35);
  color: rgba(255,255,255,.95);
}

.frontend-toggler{
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 12px !important;
}

.frontend-toggler .navbar-toggler-icon{
  filter: invert(1);
  opacity: .9;
}

/* Typography helpers */
.frontend-muted{ color: var(--f-muted); }
.frontend-link-inline{
  color: rgba(247,208,122,.92);
  text-decoration: none;
}
.frontend-link-inline:hover{ text-decoration: underline; }

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.05) 100%);
  border: 1px solid var(--f-border) !important;
  box-shadow: var(--shadow-soft);
}

.card .text-muted{ color: var(--f-muted) !important; }

/* Inputs */
.form-label{
  color: rgba(255,255,255,.82);
  font-weight: 600;
}

.form-control, .form-select{
  background: rgba(0,0,0,.22) !important;
  color: var(--f-text) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 12px !important;
}

.form-control::placeholder{
  color: rgba(255,255,255,.45) !important;
}

.form-control:focus, .form-select:focus{
  border-color: rgba(247,208,122,.55) !important;
  box-shadow: 0 0 0 .2rem rgba(247,208,122,.15) !important;
}

/* Buttons */
.btn-primary{
  border: 0 !important;
  color: #1b1407 !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--gold-3)) !important;
  box-shadow: 0 10px 26px rgba(215,163,58,.22);
}

.btn-primary:hover{ filter: brightness(1.05); }

.btn-outline-secondary{
  color: rgba(255,255,255,.85) !important;
  border-color: rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.06) !important;
  border-radius: 12px !important;
}

.btn-outline-secondary:hover{
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(247,208,122,.35) !important;
}

/* Badge */
.badge.bg-light{
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

/* Alerts */
.alert{
  border-radius: 12px;
}

/* Footer */
.frontend-footer{
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(10,14,22,.45);
  backdrop-filter: blur(10px);
}
.frontend-body .text-muted,
.frontend-body .text-secondary {
  color: var(--f-muted) !important;
}

/* =========================================================
   CMS CONTENT (Privacy Policy / Terms) — Dark Mode Fix
   ========================================================= */

.frontend-cms-content,
.frontend-cms-content p,
.frontend-cms-content li,
.frontend-cms-content span,
.frontend-cms-content div {
  color: rgba(255,255,255,.88);
  line-height: 1.7;
  font-size: 15px;
}

/* Headings */
.frontend-cms-content h1,
.frontend-cms-content h2,
.frontend-cms-content h3,
.frontend-cms-content h4,
.frontend-cms-content h5 {
  color: rgba(255,255,255,.95);
  font-weight: 700;
  margin-top: 1.2rem;
  margin-bottom: .6rem;
}

/* List */
.frontend-cms-content ul,
.frontend-cms-content ol {
  padding-left: 1.2rem;
}

.frontend-cms-content li {
  margin-bottom: .4rem;
}

/* Links */
.frontend-cms-content a {
  color: rgba(247,208,122,.95);
  text-decoration: none;
}

.frontend-cms-content a:hover {
  text-decoration: underline;
}

/* Blockquote */
.frontend-cms-content blockquote {
  border-left: 3px solid rgba(247,208,122,.6);
  padding-left: .75rem;
  margin: 1rem 0;
  color: rgba(255,255,255,.75);
}

/* Table (TinyMCE often generates table) */
.frontend-cms-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.frontend-cms-content th,
.frontend-cms-content td {
  border: 1px solid rgba(255,255,255,.15);
  padding: .5rem .6rem;
}

.frontend-cms-content th {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.95);
}
/* ===== FORCE CMS CONTENT COLOR (override inline) ===== */
.frontend-cms-content *{
  color: rgba(255,255,255,.88) !important;
}

/* headings lebih terang */
.frontend-cms-content h1,
.frontend-cms-content h2,
.frontend-cms-content h3,
.frontend-cms-content h4,
.frontend-cms-content h5,
.frontend-cms-content h6{
  color: rgba(255,255,255,.96) !important;
}

/* link gold */
.frontend-cms-content a{
  color: rgba(247,208,122,.95) !important;
  text-decoration: none;
}
.frontend-cms-content a:hover{ text-decoration: underline; }
/* =========================================================
   FIX Select/Option UI (Mobile + Dark Theme)
   ========================================================= */

/* select control (tetap dark) */
.frontend-body .frontend-select{
  width: 100%;
  appearance: auto;           /* biarkan native agar popup tidak "nyebrang" di beberapa WebView */
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

/* dropdown list options (ikut dark) */
.frontend-body .frontend-select option{
  background: #0f1624;                 /* dark panel */
  color: rgba(255,255,255,.90);        /* teks terang */
}

/* highlight option yang dipilih (kalau browser support) */
.frontend-body .frontend-select option:checked{
  background: #1a2336;
  color: rgba(255,255,255,.95);
}

/* iOS/Android: cegah auto-zoom ketika tap select/input */
@media (max-width: 576px){
  .frontend-body .frontend-select,
  .frontend-body .form-control{
    font-size: 16px !important;
  }
}
/* CMS / Legal Content */
.frontend-cms-content {
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  font-size: 15px;
}

.frontend-cms-content p {
  margin-bottom: 1rem;
}

.frontend-cms-content h4 {
  margin-top: 1.75rem;
  margin-bottom: .75rem;
  font-weight: 600;
  color: #f5c46b; /* gold accent */
}

.frontend-cms-content ol,
.frontend-cms-content ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.frontend-cms-content li {
  margin-bottom: .5rem;
}
