/* Ragna Next — tema FluxCP. Token & komponen disamakan dengan assets/style.css website. */
:root {
  --ink: #06120d;
  --night: #0b1f17;
  --cream: #effaf1;
  --text: #e3f1e6;
  --muted: #9fbcaa;
  --gold: #5fd38d;
  --gold-hi: #b8f5cf;
  --gold-lo: #23905a;
  --line: rgba(95, 211, 141, .35);
  --serif: Cinzel, Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; color: var(--text); font-family: "Noto Sans", system-ui, sans-serif; line-height: 1.6;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, #164a33, transparent 70%), linear-gradient(180deg, #0b1f17, var(--ink) 40%); background-color: var(--ink); background-attachment: fixed; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }

/* ---------- top bar (sama dengan website) ---------- */
.topbar { position: sticky; top: 0; height: 64px; z-index: 50; display: flex; align-items: center; gap: 32px; padding: 0 24px; background: rgba(4, 14, 10, .92); box-shadow: 0 1px 0 var(--line); }
.topbar a { text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; letter-spacing: 3px; font-size: 1.05rem; color: var(--cream); }
.brand b { color: var(--gold); }
.brand-mark { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 2; }
.menu { display: flex; gap: 28px; flex: 1; }
.menu a { font-size: .92rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.menu a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: all .25s; }
.menu a:hover, .menu a.on { color: var(--cream); }
.menu a:hover::after, .menu a.on::after { left: 0; width: 100%; }
.topbar-actions { display: flex; gap: 14px; align-items: center; }
.btn-sm { padding: 6px 18px; border-radius: 20px; font-size: .85rem; border: 1px solid var(--line); color: var(--cream); transition: all .2s; }
.btn-sm:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm.gold { background: linear-gradient(var(--gold-hi), var(--gold)); color: #04150c; border-color: transparent; font-weight: 700; }
.avatar { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--cream); }
.avatar svg { width: 36px; height: 36px; padding: 6px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 32, 23, .7); fill: none; stroke: var(--gold-hi); stroke-width: 1.6; stroke-linecap: round; transition: all .2s; }
.avatar:hover svg { border-color: var(--gold); box-shadow: 0 0 12px rgba(95, 211, 141, .5); }
.burger { display: none; width: 32px; height: 24px; flex-direction: column; justify-content: space-between; }
.burger span { height: 2px; background: var(--cream); border-radius: 2px; }

/* ---------- judul halaman ---------- */
.cp-hero { text-align: center; padding: 48px 16px 24px; }
.cp-kicker { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; font-family: var(--serif); letter-spacing: 6px; font-size: .8rem; color: var(--gold-hi); text-transform: uppercase; }
.cp-kicker span { width: 40px; height: 1px; background: var(--gold); }
.cp-hero h1 { margin: 8px 0 0; font-family: "Cinzel Decorative", var(--serif); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15;
  background: linear-gradient(180deg, #f4fff8 10%, var(--gold-hi) 55%, var(--gold) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- menu panel ---------- */
.cp-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 16px 24px; position: relative; z-index: 20; }
.cp-drop { position: relative; }
.cp-drop > button { padding: 8px 18px; font-family: var(--serif); font-weight: 700; font-size: .85rem; letter-spacing: 1px; color: var(--muted); border: 1px solid rgba(95, 211, 141, .2); border-radius: 20px; background: rgba(10, 32, 23, .6); transition: all .2s; }
.cp-drop > button::after { content: " ▾"; font-size: .7em; }
.cp-drop:hover > button, .cp-drop.open > button { color: var(--gold-hi); border-color: var(--gold); }
.cp-drop-list { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); min-width: 200px; padding: 6px; background: #0b1f17; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.cp-drop-list::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.cp-drop:hover .cp-drop-list, .cp-drop.open .cp-drop-list { display: block; }
.cp-drop-list a { display: block; padding: 8px 12px; border-radius: 4px; color: var(--text); font-size: .9rem; white-space: nowrap; }
.cp-drop-list a:hover { background: rgba(95, 211, 141, .12); color: var(--gold-hi); text-decoration: none; }

/* ---------- konten ---------- */
.cp-main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.cp-card { position: relative; padding: 32px; background: linear-gradient(180deg, rgba(26, 33, 64, .85), rgba(16, 21, 42, .9)); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow-x: auto; }
.cp-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(95, 211, 141, .12); border-radius: 5px; pointer-events: none; }
.cp-card h2, .cp-card h3, .cp-card h4 { font-family: var(--serif); color: var(--cream); letter-spacing: 1px; line-height: 1.3; }
.cp-card h2 { font-size: 1.5rem; margin: 0 0 16px; }
.cp-card h3 { font-size: 1.15rem; margin: 28px 0 12px; color: var(--gold-hi); }
.cp-card p { margin: 0 0 12px; }

/* pesan FluxCP */
.message, .red, .green, .notice, .info-text { padding: 12px 16px; border-radius: 4px; border-left: 3px solid; margin: 0 0 16px; }
.message, .green { background: rgba(110, 190, 130, .1); border-color: #6ebe82; color: #bfe8c8; }
.red { background: rgba(255, 120, 100, .1); border-color: #ff7a64; color: #ffb4a6; }
.notice, .info-text { background: rgba(95, 211, 141, .1); border-color: var(--gold); color: var(--cream); }
.not-applicable { color: var(--muted); font-style: italic; }
.keyword { color: var(--gold-hi); }

/* sub menu & page menu */
#submenu, #pagemenu { margin: 0 0 20px; padding: 10px 14px; font-size: .85rem; color: var(--muted); background: rgba(3, 10, 7, .4); border: 1px solid rgba(95, 211, 141, .15); border-radius: 4px; }
#submenu a, #pagemenu a { color: var(--text); }
#submenu a.current-sub-menu { color: var(--gold-hi); font-weight: 700; }

/* tabel */
table { border-collapse: collapse; width: 100%; }
.horizontal-table, .vertical-table { margin: 0 0 20px; font-size: .9rem; }
.horizontal-table th, .vertical-table th { text-align: left; font-weight: 600; color: var(--gold-hi); background: rgba(95, 211, 141, .08); }
.horizontal-table th, .horizontal-table td, .vertical-table th, .vertical-table td { padding: 10px 12px; border: 1px solid rgba(95, 211, 141, .15); vertical-align: top; }
.horizontal-table tr:hover td { background: rgba(255, 255, 255, .02); }
.vertical-table th { width: 30%; }
.generic-form-table th { text-align: left; padding: 8px 12px 8px 0; color: var(--muted); font-weight: 500; font-size: .85rem; vertical-align: middle; white-space: nowrap; }
.generic-form-table td { padding: 6px 0; }

/* input umum */
input[type=text], input[type=password], input[type=email], input[type=number], input[type=file], select, textarea {
  padding: 10px 12px; font: inherit; font-size: .95rem; color: var(--cream); background: rgba(3, 10, 7, .6);
  border: 1px solid rgba(95, 211, 141, .25); border-radius: 4px; outline: none; transition: border-color .2s, box-shadow .2s; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(95, 211, 141, .15); }
select option { background: #0b1f17; }
input[type=submit], button[type=submit], .button { padding: 10px 24px; font-family: var(--serif); font-weight: 700; letter-spacing: 1px; color: #04150c; border: 0; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); }
input[type=submit]:hover, button[type=submit]:hover { filter: brightness(1.1); }
input[type=radio], input[type=checkbox] { accent-color: var(--gold); }

/* paging */
.pages { margin: 16px 0; text-align: center; }
.pages a, .pages span { display: inline-block; padding: 4px 10px; margin: 2px; border: 1px solid rgba(95, 211, 141, .2); border-radius: 4px; }
.pages .current-page { color: #04150c; background: var(--gold); }

/* ---------- form masuk / daftar (sama dengan modal website) ---------- */
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card h2 { text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label, .auth-form legend { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--muted); letter-spacing: .5px; padding: 0; }
.auth-form input:not([type=radio]), .auth-form select { width: 100%; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.auth-form legend { margin-bottom: 6px; }
.auth-gender { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.auth-gender legend { width: 100%; }
.auth-gender label { flex-direction: row; align-items: center; gap: 6px; color: var(--cream); font-size: .9rem; }
.auth-birth select { width: auto !important; padding: 10px 4px; margin: 0 4px 4px 0; }
.auth-hint { font-size: .78rem; color: var(--muted); margin: -6px 0 0 !important; }
.auth-captcha { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: end; }
.auth-captcha img { display: block; height: 44px; width: auto; border-radius: 4px; border: 1px solid var(--line); background: #fff; }
.captcha-refresh { width: 36px; height: 44px; font-size: 1.3rem; color: var(--gold-hi); border: 1px solid var(--line); border-radius: 4px; }
.btn-auth { display: block; text-align: center; margin-top: 6px; padding: 13px 24px; font-family: var(--serif); font-weight: 700; letter-spacing: 2px; color: #04150c !important; border-radius: 4px; text-decoration: none !important;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); box-shadow: 0 0 0 1px rgba(225, 255, 236, .5) inset; }
.btn-auth:hover { filter: brightness(1.1); }
.btn-line { display: block; text-align: center; margin-top: 6px; padding: 12px 24px; font-family: var(--serif); font-weight: 700; letter-spacing: 2px; border: 1px solid var(--gold); border-radius: 4px; color: var(--gold-hi); }
.auth-alt { text-align: center; font-size: .82rem; color: var(--muted); }

/* beranda panel */
.cp-welcome { text-align: center; }
.cp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.cp-tiles a { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(180deg, rgba(95, 211, 141, .08), transparent); color: var(--text); transition: all .2s; }
.cp-tiles a:hover { border-color: var(--gold); box-shadow: 0 0 16px rgba(95, 211, 141, .25); text-decoration: none; transform: translateY(-2px); }
.cp-tiles strong { font-family: var(--serif); color: var(--gold-hi); }
.cp-tiles span { font-size: .85rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(95, 211, 141, .15); padding: 24px 16px; text-align: center; color: var(--muted); font-size: .8rem; }
.footer p { margin: 4px 0; }
.footer select { padding: 4px 8px; font-size: .8rem; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .topbar { padding: 0 16px; gap: 16px; }
  .burger { display: flex; }
  .menu, .topbar-actions .btn-sm.gold, .avatar span { display: none; }
  .topbar-actions { margin-left: auto; }
  .menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; padding: 16px; gap: 8px; background: rgba(4, 14, 10, .97); border-bottom: 1px solid var(--line); }
  .cp-card { padding: 20px 16px; }
  .auth-row, .cp-actions { grid-template-columns: 1fr; }
  .vertical-table th { width: auto; }
}
