:root{
  /* fallback default (akan dioverride oleh <style>:root{...} dari index.php */
  --gold:#F5C84C;
  --gold2:#E7B73E;

  /* rgb fallback (akan dioverride jika index.php sudah output --gold_rgb/--gold2_rgb) */
  --gold_rgb: 245, 200, 76;
  --gold2_rgb: 231, 183, 62;

  --bg:#0B0B0B;
  --panel:#111111;
  --panel2:#0E0E0E;

  --text:#F6F2E6;
  --muted:#B9B0A0;

  /* border accent (bisa berupa rgba dari backend) */
  --border:rgba(245,200,76,.18);

  --radius:18px;
  --shadow: 0 28px 80px rgba(0,0,0,.62);
  --shadow2: 0 14px 45px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 650px at 50% -20%, rgba(var(--gold_rgb), .14), transparent 60%),
    radial-gradient(800px 520px at 18% 10%, rgba(var(--gold_rgb), .08), transparent 65%),
    radial-gradient(900px 520px at 90% 20%, rgba(var(--gold2_rgb), .07), transparent 60%),
    linear-gradient(180deg, #070707 0%, var(--bg) 55%, var(--bg) 100%);
}

/* ===== header logo center ===== */
.sitebar{
  position: sticky;
  top:0;
  z-index:50;
  height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(var(--gold_rgb), .12);
}
.sitebar-inner{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 0 14px;
}
.logo{
  height:58px;
}
.logo-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:1000;
  letter-spacing:.5px;
}

/* ===== page container ===== */
.page{
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 26px 16px 80px;
}

/* ===== hero ===== */
.hero{ margin-top: 14px; }
.hero-card{
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold_rgb), .14);
  background:
    radial-gradient(900px 280px at 20% 0%, rgba(var(--gold_rgb), .12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  box-shadow: var(--shadow2);
  padding: 18px 18px 16px;
  text-align:center;
}

.hero-title{
  margin: 0;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 1000;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.hero-desc{
  margin: 8px auto 0;
  color: rgba(185,176,160,.92);
  line-height: 1.6;
  font-weight: 650;
  font-size: 14px;
  max-width: 72ch;
}

/* ✅ meta 3 biji sebaris (desktop & mobile) + center */
.hero-meta{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  justify-items: stretch;
}
.meta-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold_rgb), .14);
  background: rgba(255,255,255,.03);
  font-size: 12px;
  font-weight: 850;
  text-align:center;
  min-height: 42px;
}
.meta-pill span{
  color: rgba(185,176,160,.88);
  text-transform: uppercase;
  letter-spacing:.4px;
  font-weight:900;
  white-space: nowrap;
}
.meta-pill b{
  color: rgba(var(--gold_rgb), .92);
  font-weight:1000;
  white-space: nowrap;
}

/* ===== action card (untuk tombol) ===== */
.action-card{
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold_rgb), .14);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
}

/* ===== Desktop: 2 tombol 100% lebar, presisi ===== */
.action-inner{
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 18px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.action-inner .btn{
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  font-size: 14px;
}

/* ===== buttons ===== */
.btn{
  appearance:none;
  border: 1px solid rgba(var(--gold_rgb), .16);
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-radius: 14px;
  font-weight: 950;
  letter-spacing:.35px;
  text-transform: uppercase;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

/* ===== PERMANENT SHINE ===== */
.btn::after{
  content:"";
  position:absolute;
  top:-50%;
  left:-85%;
  width:70%;
  height:200%;
  transform: rotate(25deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.30),
    transparent
  );
  animation: shineIdle 1s linear infinite;
  pointer-events:none;
}

@keyframes shineIdle{
  0% { left:-85%; }
  100% { left:140%; }
}

/* Hover boost */
.btn:hover{
  transform: translateY(-2px);
}
.btn:hover::after{
  animation: shineHover 1s linear infinite;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.60),
    transparent
  );
}

@keyframes shineHover{
  0% { left:-85%; }
  100% { left:140%; }
}

/* Gold glow pulse (ikut primary/secondary) */
.btn-gold{
  border:0;
  color:#1a1406;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0)),
    linear-gradient(90deg, var(--gold), var(--gold2));
  animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse{
  0%,100% {
    box-shadow:
      0 16px 40px rgba(0,0,0,.40),
      0 0 0 1px rgba(var(--gold_rgb), .20);
  }
  50% {
    box-shadow:
      0 16px 40px rgba(0,0,0,.40),
      0 0 30px rgba(var(--gold_rgb), .28);
  }
}

/* ===== form card ===== */
.card{
  margin-top: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--gold_rgb), .14);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.card-top{
  padding: 16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(var(--gold_rgb), .10);
  background:
    radial-gradient(900px 220px at 20% -20%, rgba(var(--gold_rgb), .10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
}
.card-title{
  font-weight: 1000;
  letter-spacing:.8px;
  text-transform: uppercase;
}
.card-sub{
  margin-top: 3px;
  color: rgba(185,176,160,.85);
  font-size: 12px;
  font-weight: 700;
}

.card-body{ padding: 18px; }

.alert{
  background: rgba(var(--gold_rgb), .10);
  border: 1px solid rgba(var(--gold_rgb), .22);
  color: rgba(246,242,230,.94);
  padding: 10px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
  font-weight: 850;
}

/* ===== form grid ===== */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label{
  display:block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing:.45px;
  text-transform: uppercase;
  color: rgba(var(--gold_rgb), .90);
}
.req{ color:#ef4444; font-weight: 1000; }

.input{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold_rgb), .14);
  background: rgba(0,0,0,.26);
  color: rgba(246,242,230,.96);
  padding: 12px 12px;
  outline:none;
}
.input::placeholder{ color: rgba(185,176,160,.55); }

.input:focus{
  border-color: rgba(var(--gold_rgb), .34);
  box-shadow: 0 0 0 4px rgba(var(--gold_rgb), .10);
}

textarea.input{ min-height: 120px; resize: vertical; }

.help{
  margin-top: 7px;
  font-size: 12px;
  color: rgba(185,176,160,.82);
  font-weight: 650;
  line-height: 1.45;
}

.field.full{ grid-column: 1 / -1; }

/* bottom actions */
.form-actions{
  margin-top: 14px;
  display:flex;
  justify-content:flex-start;
}
.btn-submit{
  border:0;
  border-radius: 14px;
  padding: 12px 16px;
  min-width: 100%;
  font-weight: 1000;
  letter-spacing:.5px;
  text-transform: uppercase;
  cursor:pointer;
  color:#1a1406;
  background:
    linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,0)),
    linear-gradient(90deg, var(--gold), var(--gold2));
  box-shadow: 0 16px 40px rgba(0,0,0,.40), 0 0 0 1px rgba(var(--gold_rgb), .20);
}
.btn-submit:hover{ filter: brightness(1.04); }

.note{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(var(--gold_rgb), .12);
  background: rgba(0,0,0,.20);
  color: rgba(185,176,160,.90);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.foot{
  text-align:center;
  margin-top: 14px;
  color: rgba(185,176,160,.75);
  font-size: 12px;
}

/* ===== responsive ===== */
@media (max-width: 820px){
  .grid{ grid-template-columns: 1fr; }

  /* tombol jadi rapi di mobile */
  .action-inner{ gap: 10px; }
  .btn{ width: 100%; min-width: 0; }

  /* submit full */
  .btn-submit{ width: 100%; min-width: 0; }

  /* meta tetap 3 sebaris, kecilkan padding */
  .meta-pill{ padding: 9px 8px; gap:6px; }
  .meta-pill span, .meta-pill b{ font-size: 11px; }
}

@media (max-width: 520px){
  .sitebar{ height: 74px; }
  .page{ padding-top: 5px; }
  .hero-card{ padding: 16px 14px 14px; }
  .card-body{ padding: 14px; }

  /* pastikan 3 meta masih muat 1 baris */
  .hero-meta{ gap: 8px; }
  .meta-pill{ min-height: 40px; }
  .meta-pill span{ display:none; }
  .meta-pill b{ font-size: 11px; }
}

/* ghost: border glow lembut */
.action-card .btn-ghost:hover{
  box-shadow: 0 10px 26px rgba(0,0,0,.35), 0 0 0 1px rgba(var(--gold_rgb), .25);
}

/* gold: glow ikut primary */
.action-card .btn-gold:hover{
  box-shadow: 0 12px 30px rgba(0,0,0,.38), 0 0 28px rgba(var(--gold_rgb), .18);
}

/* fokus keyboard */
.action-card .btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--gold_rgb), .22), 0 10px 26px rgba(0,0,0,.35);
}

/* reduce motion friendly */
@media (prefers-reduced-motion: reduce){
  .action-card .btn,
  .action-card .btn::after{
    transition: none !important;
    animation: none !important;
  }
}