/* ==========================================================
   TRADER REBAHAN - Member Web Theme
   Vibe: trading santai tapi premium. Dark + aksen amber hangat.
   ========================================================== */
:root {
  /* ===== TEMA EMAS - Trader Rebahan ===== */
  --bg: #0d0d0c;
  --bg-2: #141411;
  --surface: #1b1b18;
  --surface-2: #141411;
  --border: rgba(243, 230, 164, 0.20);
  --line-kuat: rgba(243, 230, 164, 0.38);
  --text: #f8f4df;
  --muted: #b9b39d;
  --amber: #f3e6a4;
  --amber-2: #dcc274;
  --cyan: #dcc274;
  --red: #ff4d57;
  --green: #28e56f;
  --vip: #f3e6a4;
  --scalper: #dcc274;
  --free: #8f8a78;
  --rail-hi: rgba(243, 230, 164, 0.35);
  --radius: 16px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(245, 185, 66, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(67, 214, 196, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
img { max-width: 100%; }

/* ---------------- Layout shell ---------------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 256px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  padding: 4px 8px 20px;
  font-weight: 800; font-size: 1.15rem; letter-spacing: -.3px;
}
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--amber), #e0892b);
  display: grid; place-items: center;
  color: #16150f; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 6px 18px -6px rgba(245, 185, 66, .6);
}
.brand small { display: block; font-size: .68rem; color: var(--muted); font-weight: 500; }

.nav { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 11px;
  color: var(--muted); font-weight: 600; font-size: .94rem;
  transition: .15s;
}
.nav a svg { width: 19px; height: 19px; opacity: .85; }
.nav a:hover { background: var(--surface); color: var(--text); }
.nav a.active {
  background: linear-gradient(135deg, rgba(245, 185, 66, .18), rgba(245, 185, 66, .05));
  color: var(--amber-2);
  box-shadow: inset 0 0 0 1px rgba(245, 185, 66, .25);
}
.nav-sep { color: var(--muted); padding: 16px 14px 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 26px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 17, 32, .82); backdrop-filter: blur(10px);
}
.topbar .hamb { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }
.topbar h1 { font-size: 1.18rem; margin: 0; }

.userbadge {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px 6px 6px; border-radius: 40px;
}
.userbadge .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #2f9e8f);
  display: grid; place-items: center; font-weight: 800; color: #042722; font-size: .85rem;
}
.userbadge .uinfo { font-size: .8rem; line-height: 1.15; }
.userbadge .uinfo b { display: block; }

.content { padding: 26px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ---------------- Badges (grup) ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px; border-radius: 30px; font-size: .72rem; font-weight: 800;
  letter-spacing: .3px; text-transform: uppercase;
}
.badge-VIP { background: rgba(245, 185, 66, .16); color: var(--vip); box-shadow: inset 0 0 0 1px rgba(245,185,66,.35); }
.badge-Scalper { background: rgba(67, 214, 196, .14); color: var(--scalper); box-shadow: inset 0 0 0 1px rgba(67,214,196,.32); }
.badge-Free { background: rgba(138, 150, 173, .15); color: var(--free); box-shadow: inset 0 0 0 1px rgba(138,150,173,.3); }
.badge-pending { background: rgba(245,185,66,.15); color: var(--amber); }
.badge-approved { background: rgba(70,209,138,.15); color: var(--green); }
.badge-rejected { background: rgba(255,107,107,.15); color: var(--red); }
.badge-aktif { background: rgba(70,209,138,.15); color: var(--green); }
.badge-nonaktif { background: rgba(255,107,107,.15); color: var(--red); }

/* ---------------- Cards / grid ---------------- */
.grid { display: grid; gap: 18px; }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid-ea { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.stat .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -1px; }
.stat .lbl { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .ic { font-size: 1.4rem; margin-bottom: 6px; }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 14px; }
.section-title h2 { font-size: 1.15rem; margin: 0; }
.eyebrow { color: var(--amber); font-size: .72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }

/* ---------------- EA card ---------------- */
.ea-card { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.ea-card .ea-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ea-card h3 { font-size: 1.08rem; margin: 0; }
.ea-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.chip {
  font-size: .73rem; font-weight: 600; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 9px; border-radius: 8px;
}
.chip b { color: var(--text); }
.ea-desc { color: var(--muted); font-size: .88rem; }
.lock-flag { font-size: .7rem; color: var(--cyan); font-weight: 700; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; font-weight: 700; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; transition: .15s; font-family: var(--font);
}
.btn-primary { background: linear-gradient(135deg, var(--amber), #e0922f); color: #16150f; }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-cyan { background: linear-gradient(135deg, var(--cyan), #2f9e8f); color: #042722; }
.btn-danger { background: rgba(255,107,107,.14); color: var(--red); border-color: rgba(255,107,107,.3); }
.btn-success { background: rgba(70,209,138,.16); color: var(--green); border-color: rgba(70,209,138,.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 13px; font-size: .82rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-locked { background: var(--surface-2); color: var(--muted); border-color: var(--border); cursor: not-allowed; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row.full { grid-column: 1 / -1; }
label { font-size: .85rem; font-weight: 600; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font); font-size: .92rem;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,185,66,.12); }
textarea { resize: vertical; min-height: 90px; }
.hint { font-size: .76rem; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 9px; }
.check-row input { width: auto; }

/* ---------------- Table ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--bg-2); color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; }
tr:last-child td { border-bottom: 0; }
td .code { font-family: ui-monospace, monospace; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--amber-2); }

/* ---------------- Alerts ---------------- */
.alert { padding: 12px 16px; border-radius: 11px; margin-bottom: 16px; font-size: .9rem; font-weight: 600; }
.alert-success { background: rgba(70,209,138,.12); color: var(--green); border: 1px solid rgba(70,209,138,.3); }
.alert-error { background: rgba(255,107,107,.12); color: var(--red); border: 1px solid rgba(255,107,107,.3); }

/* ---------------- Login ---------------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 410px; }
.auth-card .brand { justify-content: center; padding-top: 0; }
.auth-sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: .92rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 20px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.contact-admin { text-align: center; }
.contact-admin .btn { width: 100%; }

/* ---------------- Footer social ---------------- */
.site-footer {
  margin-top: auto; padding: 24px 26px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  color: var(--muted); font-size: .85rem;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: .15s;
}
.socials a:hover { border-color: var(--amber); color: var(--amber); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }

/* ---------------- Detail EA ---------------- */
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.spec { background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px; }
.spec .k { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.spec .v { font-weight: 700; margin-top: 2px; }
.block-title { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--amber); margin: 22px 0 8px; font-weight: 800; }
.fxbook-embed { border-radius: 11px; overflow: hidden; border: 1px solid var(--border); }

/* ---------------- Modal ---------------- */
.modal-bg { position: fixed; inset: 0; background: rgba(4,8,18,.72); display: none; place-items: center; z-index: 100; padding: 20px; backdrop-filter: blur(3px); }
.modal-bg.open { display: grid; }
.modal { width: 100%; max-width: 440px; }
.modal h3 { margin-bottom: 4px; }
.modal .close { float: right; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }

/* ---------------- Promo / list items ---------------- */
.promo-item { display: flex; gap: 16px; align-items: flex-start; }
.promo-item img { width: 130px; border-radius: 11px; flex-shrink: 0; }
.upgrade-card { border-top: 3px solid var(--amber); }
.upgrade-card .price { font-size: 1.6rem; font-weight: 800; color: var(--amber-2); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { font-size: 2.2rem; margin-bottom: 8px; }

/* ---------------- Mobile ---------------- */
.backdrop { display: none; }
@media (max-width: 860px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 60;
    transform: translateX(-100%); transition: transform .25s;
    box-shadow: 0 0 60px rgba(0,0,0,.6);
  }
  .sidebar.open { transform: translateX(0); }
  .backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .topbar .hamb { display: block; }
  .form-grid, .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .content { padding: 18px; }
  .userbadge .uinfo { display: none; }
}

/* ---------------- Admin extras ---------------- */
.form-grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr 1fr; }
.req { color: var(--red); font-weight: 700; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
hr.divider { display: block; border: 0; border-top: 1px solid var(--border); margin: 22px 0; height: 0; }
hr.divider::before, hr.divider::after { content: none; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface-2, var(--bg-2)); padding: 3px 8px; border-radius: 6px;
  color: var(--amber-2, var(--amber)); font-size: .85rem;
}
code.copy { cursor: pointer; border: 1px dashed transparent; transition: border-color .15s, background .15s; }
code.copy:hover { border-color: var(--amber); background: rgba(245,185,66,.12); }
.info-box {
  background: rgba(67,214,196,.08); border: 1px solid rgba(67,214,196,.28);
  color: var(--text); padding: 13px 16px; border-radius: 12px; font-size: .9rem; line-height: 1.55;
}
.info-box code { background: rgba(0,0,0,.25); }

/* ---------------- Icon integration ---------------- */
.stat .ic { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2, var(--bg-2)); color: var(--amber); margin-bottom: 12px; }
.stat .ic svg { width: 22px; height: 22px; }
.empty .ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2, var(--bg-2)); color: var(--muted); margin: 0 auto 14px; }
.empty .ic svg { width: 28px; height: 28px; }
/* inline icon next to text (headings, buttons, badges, info) */
.ico { display: inline-flex; align-items: center; gap: 7px; }
.ico svg { flex: 0 0 auto; }
h2 .ico svg, h3 .ico svg { vertical-align: -3px; }
.btn svg { width: 17px; height: 17px; vertical-align: -3px; margin-right: 5px; }
.btn-sm svg { width: 15px; height: 15px; margin-right: 4px; }
.info-box { display: flex; align-items: flex-start; gap: 10px; }
.info-box svg { flex: 0 0 auto; margin-top: 1px; color: var(--cyan); }
.lock-flag svg, .badge svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.hint-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .85rem; margin-top: 10px; }
.hint-line svg { flex: 0 0 auto; color: var(--amber); }

/* ---------------- Tombol aksi berbentuk icon (Edit / Hapus) ---------------- */
.icon-actions { display: flex; gap: 8px; align-items: center; }
.icon-actions form { display: inline; margin: 0; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2, var(--bg-2));
  color: var(--muted); cursor: pointer; position: relative;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn-icon svg { width: 17px; height: 17px; margin: 0; }
.btn-icon:hover { transform: translateY(-1px); }
.btn-icon:active { transform: translateY(0); }
.btn-icon.edit:hover { background: rgba(245,185,66,.16); color: var(--amber); border-color: rgba(245,185,66,.45); }
.btn-icon.del:hover  { background: rgba(255,107,107,.16); color: var(--red);   border-color: rgba(255,107,107,.45); }
.btn-icon.copy-btn:hover { background: rgba(67,214,196,.16); color: var(--cyan); border-color: rgba(67,214,196,.45); }
/* tooltip kecil saat hover */
.btn-icon::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: #0d0d0c; color: #fff; font-size: .72rem; font-weight: 600;
  padding: 4px 8px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
  border: 1px solid var(--border); z-index: 20;
}
.btn-icon:hover::after { opacity: 1; }
/* Kolom Aksi menempel di kanan HANYA saat layar sempit (tabel perlu discroll).
   Di layar lebar tabel muat penuh, jadi sticky dimatikan supaya tidak menimpa kolom Status. */
@media (max-width: 900px) {
  .table td.actions, .table th.col-aksi {
    position: sticky; right: 0; background: var(--surface);
    box-shadow: -8px 0 12px -8px rgba(0,0,0,.75);
  }
  .table thead th.col-aksi { background: var(--surface-2, var(--bg-2)); }
}
@media (max-width: 720px) {
  .btn-icon { width: 34px; height: 34px; }
  .btn-icon::after { display: none; }
}

/* ---------------- Kalender News ---------------- */
.daybar{display:flex;gap:8px;overflow-x:auto;padding-bottom:14px;scrollbar-width:none}
.daybar::-webkit-scrollbar{display:none}
.day{
  flex-shrink:0;min-width:62px;text-align:center;padding:9px 14px;
  border-radius:11px;background:var(--surface);border:1px solid var(--border);
  text-decoration:none;color:var(--text);position:relative;transition:.15s
}
.day:hover{border-color:var(--amber)}
.day .d{display:block;font-size:.7rem;color:var(--muted)}
.day .n{display:block;font-weight:800;font-size:1.05rem;margin-top:1px}
.day.on{background:var(--amber);border-color:var(--amber)}
.day.on .d,.day.on .n{color:#16150f}
.day .dot{
  position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;
  background:var(--red)
}
.day.on .dot{background:#7a1f1f}
.legend{display:flex;flex-wrap:wrap;gap:14px;font-size:.76rem;color:var(--muted);margin-bottom:14px}
.legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.ev{
  display:flex;gap:12px;padding:13px 14px;margin-bottom:9px;
  background:var(--surface);border:1px solid var(--border);
  border-radius:11px;border-left:3px solid var(--border)
}
.ev.hi{border-left-color:var(--red)}
.ev.med{border-left-color:var(--amber)}
.ev.low{border-left-color:#4a473d}
.ev .t{
  font-family:ui-monospace,Menlo,monospace;font-size:.78rem;color:var(--muted);
  width:48px;flex-shrink:0;padding-top:2px
}
.ev .mid{flex:1;min-width:0}
.ev .cur{font-family:ui-monospace,Menlo,monospace;font-weight:700;font-size:.73rem;color:var(--amber);margin-bottom:2px}
.ev .ttl{font-size:.88rem;line-height:1.45}
.ev .nums{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px;font-size:.74rem;color:var(--muted)}
.ev .nums b{color:var(--text);font-family:ui-monospace,Menlo,monospace}

/* Rapatkan sedikit tabel yang punya banyak kolom (mis. Daftar Member),
   supaya kolom Aksi tidak terpotong di layar laptop. */
@media (min-width: 901px) {
  .table th, .table td { padding: 11px 10px; }
  .table td.actions, .table th.col-aksi { padding-right: 12px; }
  .icon-actions { gap: 6px; }
  .btn-icon { width: 33px; height: 33px; }
  .btn-icon svg { width: 16px; height: 16px; }
}

/* ============================================================
   TAMPILAN HP: bar menu bawah (jangkauan jempol)
   Di layar lebar, sidebar tetap dipakai seperti biasa.
   ============================================================ */
.tabbar { display: none; }
.only-mobile { display: none; }

@media (max-width: 900px) {
  /* bar menu tetap di bawah layar */
  .tabbar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 30px -18px rgba(0,0,0,.9);
  }
  .tabbar a {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 9px 2px 10px; min-height: 56px;
    text-decoration: none; color: var(--muted);
    font-size: .66rem; font-weight: 600; line-height: 1.2;
    border-top: 2px solid transparent;
  }
  .tabbar a svg { width: 21px; height: 21px; }
  .tabbar a span {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .tabbar a.on { color: var(--amber); border-top-color: var(--amber); }

  /* sidebar & hamburger tidak dipakai lagi di HP */
  .sidebar, .topbar .hamb, .backdrop { display: none !important; }
  .main { margin-left: 0; }

  /* beri ruang supaya isi tidak tertutup bar bawah */
  .content { padding-bottom: 80px; }
  .site-footer { margin-bottom: 62px; }

  /* statistik jadi 2 kolom, lebih padat */
  .grid { gap: 12px; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .grid-ea { grid-template-columns: 1fr; }
  .stat { padding: 14px; }
  .stat .num { font-size: 1.55rem; }
  .stat .lbl { font-size: .74rem; }

  .only-mobile { display: block; }
}

/* layar sangat sempit: label menu dikecilkan sedikit */
@media (max-width: 360px) {
  .tabbar a { font-size: .6rem; }
  .tabbar a svg { width: 19px; height: 19px; }
}

/* ---------------- Kontrol EA ---------------- */
.ctrl-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 0; border-top: 1px solid var(--border);
}
.ctrl-lab { font-size: .88rem; line-height: 1.35; }
.ctrl-lab small { display: block; color: var(--muted); font-size: .74rem; margin-top: 3px; }

/* saklar geser */
.sw { position: relative; flex-shrink: 0; cursor: pointer; display: inline-block; }
.sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.sw .sw-track {
  display: block; width: 50px; height: 28px; border-radius: 15px;
  background: #0b0b0a; border: 1px solid var(--border); transition: .2s; position: relative;
}
.sw .sw-track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px;
  border-radius: 50%; background: #6d6a5c; transition: .2s;
}
.sw input:checked + .sw-track { background: rgba(245,185,66,.25); border-color: var(--amber); }
.sw input:checked + .sw-track::after { left: 24px; background: var(--amber); }
.sw input:focus-visible + .sw-track { box-shadow: 0 0 0 3px rgba(245,185,66,.25); }

/* kotak angka */
.num-in {
  width: 92px; flex-shrink: 0; text-align: center; margin: 0;
  font-family: ui-monospace, Menlo, monospace; font-weight: 700;
}

/* kode sambungan */
.tok { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.tok summary {
  cursor: pointer; font-size: .84rem; color: var(--amber); font-weight: 600;
  list-style: none; min-height: 32px; display: flex; align-items: center;
}
.tok summary::-webkit-details-marker { display: none; }
.tok summary::before { content: '▸ '; margin-right: 6px; }
.tok[open] summary::before { content: '▾ '; }
.tok-box {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 9px; padding: 12px; word-break: break-all;
}
.tok-box code { font-size: .82rem; }

@media (max-width: 900px) {
  .ctrl-row { padding: 15px 0; }
  .num-in { width: 86px; min-height: 44px; }
}

/* ---- Kontrol EA ditonjolkan di tengah bar bawah ---- */
@media (max-width: 900px) {
  .tabbar a.tab-main {
    flex: 1.35;                 /* sedikit lebih lebar dari menu lain */
    color: var(--amber);
    font-size: .74rem;          /* tulisan lebih besar */
    font-weight: 700;
    padding-top: 7px;
  }
  .tabbar a.tab-main svg {
    width: 27px; height: 27px;  /* ikon lebih besar */
  }
  /* lingkaran penanda di belakang ikon */
  .tabbar a.tab-main svg {
    background: rgba(245,185,66,.13);
    border: 1px solid rgba(245,185,66,.35);
    border-radius: 11px;
    padding: 4px;
    box-sizing: content-box;
  }
  .tabbar a.tab-main.on {
    color: var(--amber);
    border-top-color: var(--amber);
  }
  .tabbar a.tab-main.on svg {
    background: var(--amber);
    border-color: var(--amber);
    color: #16150f;
  }
}
@media (max-width: 360px) {
  .tabbar a.tab-main { font-size: .68rem; }
  .tabbar a.tab-main svg { width: 24px; height: 24px; }
}

/* kotak total biaya di form kontrol EA */
.total-box {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 9px; padding: 11px 13px; font-size: .88rem; color: var(--muted);
}
.total-box b { color: var(--amber); font-family: ui-monospace, Menlo, monospace; font-size: 1rem; }

/* ---------------- Proses pemasangan EA ---------------- */
.install-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 11px; padding: 15px; margin-top: 10px;
}
.install-head { display: flex; align-items: center; gap: 10px; font-size: .95rem; margin-bottom: 12px; }
.spinner {
  width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid rgba(245,185,66,.25); border-top-color: var(--amber);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.install-bar {
  height: 6px; border-radius: 4px; background: var(--surface-2);
  overflow: hidden; position: relative;
}
.install-bar span {
  position: absolute; left: 0; top: 0; height: 100%; width: 38%;
  border-radius: 4px; background: linear-gradient(90deg, rgba(245,185,66,.35), var(--amber));
  animation: slide 1.8s ease-in-out infinite;
}
@keyframes slide {
  0%   { left: -40%; }
  100% { left: 100%; }
}
.install-note { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 12px 0 0; }
.install-steps { margin-top: 14px; display: grid; gap: 9px; }
.install-steps .st {
  display: flex; align-items: center; gap: 10px;
  font-size: .84rem; color: #6d6a5c;
}
.install-steps .st i {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  background: rgba(243,230,164,.22);
}
.install-steps .st.done { color: var(--text); }
.install-steps .st.done i { background: var(--green); box-shadow: 0 0 7px rgba(70,209,138,.5); }
.install-steps .st.now { color: var(--amber); font-weight: 600; }
.install-steps .st.now i { background: var(--amber); box-shadow: 0 0 8px rgba(245,185,66,.6); }

@media (prefers-reduced-motion: reduce) {
  .spinner, .install-bar span { animation: none; }
  .install-bar span { left: 0; width: 60%; }
}

/* form alasan penolakan di admin */
.tolak-form { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.tolak-form textarea { min-height: 68px; }

/* ---------------- Bilah pengurutan ---------------- */
.sortbar {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.sortlabel { font-size: .78rem; color: var(--muted); margin-right: 2px; }
.sortbtn {
  font-size: .78rem; padding: 7px 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; transition: .15s;
  min-height: 34px; display: inline-flex; align-items: center;
}
.sortbtn:hover { color: var(--text); border-color: var(--amber); }
.sortbtn.on { background: var(--amber); border-color: var(--amber); color: #16150f; font-weight: 700; }
@media (max-width: 900px) {
  .sortbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .sortbar::-webkit-scrollbar { display: none; }
  .sortbtn { flex-shrink: 0; min-height: 40px; }
}

/* ---------------- Panel penyaring ---------------- */
.filterbar { padding: 14px; margin-bottom: 12px; }
.filter-grid { display: grid; gap: 11px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.filter-grid label { font-size: .74rem; }
.filter-grid select { margin: 0; }
.filter-act { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.filter-act .btn { width: auto; padding: 0 18px; }
@media (max-width: 900px) {
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-act .btn { flex: 1; }
}
@media (max-width: 420px) {
  .filter-grid { grid-template-columns: 1fr; }
}

/* penanda warna pada tombol filter dampak & kode negara */
.sortbtn.imp-hi::before,
.sortbtn.imp-md::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 6px;
}
.sortbtn.imp-hi::before { background: var(--red); }
.sortbtn.imp-md::before { background: var(--amber); }
.sortbtn.imp-hi.on::before, .sortbtn.imp-md.on::before { background: #16150f; }
.sortbtn.cur { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .3px; }

/* ---- Filter berukuran kecil (Kalender News) ---- */
.sortbar-sm { gap: 5px; margin-bottom: 9px; }
.sortbar-sm .sortlabel { font-size: .7rem; }
.sortbar-sm .sortbtn {
  font-size: .7rem;
  padding: 4px 9px;
  min-height: 28px;
  border-radius: 6px;
}
.sortbar-sm .sortbtn.imp-hi::before,
.sortbar-sm .sortbtn.imp-md::before {
  width: 6px; height: 6px; margin-right: 5px;
}
@media (max-width: 900px) {
  .sortbar-sm .sortbtn { min-height: 30px; }
}

/* ---------------- Push notifikasi & pilihan mata uang ---------------- */
.push-status {
  font-size: .86rem; color: var(--muted); margin: 0 0 12px;
  padding: 10px 12px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--border);
}
.push-status.ok { color: var(--green); border-color: rgba(70,209,138,.3); background: rgba(70,209,138,.08); }
.push-status.warn { color: var(--amber); border-color: rgba(245,185,66,.3); background: rgba(245,185,66,.08); }

.chip-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-opt {
  font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: .76rem;
  padding: 7px 12px; border-radius: 8px; cursor: pointer;
  background: var(--surface-2, var(--bg-2)); border: 1px solid var(--border);
  color: var(--muted); transition: .15s; min-height: 34px;
  display: inline-flex; align-items: center;
}
.chip-opt input { display: none; }
.chip-opt:hover { border-color: var(--amber); color: var(--text); }
.chip-opt.on { background: var(--amber); border-color: var(--amber); color: #16150f; }

/* ---------------- Kepala halaman Kalender News ---------------- */
.news-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin: 4px 0 14px;
}
.news-title {
  font-size: .98rem; margin: 0; line-height: 1.3; font-weight: 700;
}
.news-title span {
  display: block; font-size: .78rem; font-weight: 500;
  color: var(--muted); letter-spacing: .2px; margin-top: 1px;
}
.news-act { display: flex; gap: 6px; flex-shrink: 0; }

/* tombol kecil: Alert & EA News */
.mini-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 600; font-family: inherit;
  padding: 5px 10px; min-height: 30px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); text-decoration: none; cursor: pointer;
  transition: .15s; white-space: nowrap;
}
.mini-btn:hover { color: var(--text); border-color: var(--rail-hi, var(--border)); }
.mini-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.mini-btn.hi {
  color: var(--amber);
  border-color: rgba(245,185,66,.35);
  background: rgba(245,185,66,.09);
}
.mini-btn.hi:hover { background: rgba(245,185,66,.16); }

/* tanggal diperkecil */
.daybar { gap: 6px; padding-bottom: 11px; }
.day {
  min-width: 48px; padding: 6px 10px; border-radius: 9px;
}
.day .d { font-size: .64rem; }
.day .n { font-size: .92rem; margin-top: 0; }
.day .dot { top: 5px; right: 6px; width: 5px; height: 5px; }

@media (max-width: 380px) {
  .news-head { gap: 8px; }
  .news-title { font-size: .92rem; }
  .mini-btn { font-size: .68rem; padding: 5px 8px; }
}

/* ================= Dasbor Kontrol EA ================= */
.up { color: var(--green); }
.down { color: var(--red); }
.warn { color: var(--amber); }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* info akun */
.akun-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.akun-broker { font-size: .95rem; font-weight: 700; line-height: 1.3; }
.akun-no { font-size: .78rem; color: var(--muted); font-family: ui-monospace, Menlo, monospace; margin-top: 2px; }
.akun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.akun-sel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 11px;
}
.akun-sel .k { display: block; font-size: .68rem; color: var(--muted); }
.akun-sel .v {
  display: block; font-family: ui-monospace, Menlo, monospace;
  font-weight: 700; font-size: 1rem; margin-top: 2px;
}
.akun-sel .v small { font-size: .68rem; color: var(--muted); font-weight: 500; }

/* bar statistik */
.stat-bar { margin-bottom: 10px; }
.sb-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem; color: var(--muted); margin-bottom: 5px;
}
.sb-head b { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.sb-track {
  height: 7px; border-radius: 4px; background: var(--surface-2, var(--bg-2));
  overflow: hidden; flex: 1;
}
.sb-fill { display: block; height: 100%; border-radius: 4px; transition: width .3s; }
.sb-fill.up { background: var(--green); }
.sb-fill.down { background: var(--red); }
.sb-fill.warn { background: var(--amber); }

/* masa sewa */
.sewa-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px; margin-top: 12px;
}

/* judul bagian kecil */
.sect-mini {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .78rem; font-weight: 700; color: var(--muted);
  letter-spacing: .3px; margin: 16px 0 8px;
}
.sect-mini b { color: var(--text); font-size: .82rem; }
.kosong-mini {
  color: var(--muted); font-size: .82rem; text-align: center;
  padding: 14px; background: var(--bg); border: 1px dashed var(--border);
  border-radius: 9px; margin: 0;
}

/* grafik harga */
.chart-box { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.chart-svg { width: 100%; height: 80px; display: block; }
.chart-kaki {
  display: flex; justify-content: space-between;
  font-size: .66rem; color: var(--muted);
  font-family: ui-monospace, Menlo, monospace; margin-top: 4px;
}

/* tabel posisi */
.pos-table th, .pos-table td { padding: 9px 8px; font-size: .78rem; }

/* perbandingan */
.banding { display: grid; gap: 9px; }
.bd-row { display: flex; align-items: center; gap: 9px; }
.bd-lab { font-size: .74rem; color: var(--muted); width: 54px; flex-shrink: 0; }
.bd-val { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; width: 78px; text-align: right; flex-shrink: 0; }

/* log sambungan */
.log-list { margin-top: 10px; display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.log-item {
  display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline;
  font-size: .74rem; padding: 7px 9px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
}
.log-wkt { font-family: ui-monospace, Menlo, monospace; color: var(--muted); font-size: .68rem; }
.log-jns {
  font-size: .64rem; font-weight: 700; padding: 2px 6px; border-radius: 4px;
  background: var(--surface-2, var(--bg-2)); color: var(--muted); white-space: nowrap;
}
.log-perintah { color: var(--amber); }
.log-notifikasi { color: var(--cyan); }
.log-error { color: var(--red); }
.log-psn { color: var(--text); line-height: 1.4; }

@media (max-width: 380px) {
  .akun-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .akun-sel .v { font-size: .9rem; }
  .log-item { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------------- Tawaran pasang aplikasi ---------------- */
.pasang-app {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 300;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 14px;
  box-shadow: 0 20px 50px -18px rgba(0,0,0,.85);
  transform: translateY(130%); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  max-width: 460px; margin: 0 auto;
}
.pasang-app.tampil { transform: translateY(0); opacity: 1; }
.pa-isi { display: flex; align-items: flex-start; gap: 11px; }
.pa-ikon img {
  width: 42px; height: 42px; border-radius: 10px; display: block; flex-shrink: 0;
}
.pa-teks { flex: 1; min-width: 0; }
.pa-teks b { display: block; font-size: .92rem; margin-bottom: 3px; }
.pa-teks span { display: block; font-size: .78rem; color: var(--muted); line-height: 1.5; }
.pa-x {
  background: none; border: 0; color: var(--muted); font-size: 1.4rem;
  line-height: 1; cursor: pointer; padding: 0 2px; flex-shrink: 0;
}
.pa-ios {
  margin-top: 10px; font-size: .8rem; color: var(--muted); line-height: 1.55;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px;
}
.pa-aksi { display: flex; gap: 8px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.pa-aksi .btn { width: auto; flex: 1; min-width: 110px; }
.pa-stop {
  background: none; border: 0; color: #6d6a5c; font-size: .72rem;
  cursor: pointer; text-decoration: underline; padding: 6px 2px;
  width: 100%; text-align: center;
}
.pa-stop:hover { color: var(--muted); }
@media (max-width: 900px) {
  .pasang-app { bottom: 76px; }   /* jangan menimpa bar menu bawah */
}

/* ---------------- QR akun pantau ---------------- */
.qr-card { text-align: center; }
.qr-img {
  width: 100%; max-width: 240px; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 12px; padding: 10px; display: block; margin: 0 auto;
}
.qr-note {
  color: var(--muted); font-size: .84rem; line-height: 1.6;
  margin: 12px 0 0; text-align: left;
}
.qr-admin { margin-top: 10px; }
.qr-admin img {
  width: 120px; height: 120px; object-fit: contain;
  background: #fff; border-radius: 9px; padding: 6px; display: block;
}
.qr-admin small { display: block; color: var(--muted); font-size: .72rem; margin-top: 5px; }

/* ---------------- Pilih berita EA News ---------------- */
.news-pick {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 11px; margin-bottom: 8px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; transition: .15s;
}
.news-pick:hover { border-color: var(--rail-hi, var(--border)); }
.news-pick.on { border-color: var(--amber); background: rgba(245,185,66,.07); }
.news-pick input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--amber); }
.np-wkt {
  font-family: ui-monospace, Menlo, monospace; font-size: .68rem;
  color: var(--muted); text-align: center; flex-shrink: 0; width: 46px; line-height: 1.4;
}
.np-wkt b { color: var(--text); font-size: .8rem; }
.np-isi { flex: 1; min-width: 0; font-size: .86rem; line-height: 1.4; }
.np-isi small { display: block; color: var(--muted); font-size: .74rem; margin-top: 4px; line-height: 1.5; }

/* ---------------- Halaman panduan ---------------- */
.pd { line-height: 1.7; }
.pd p { margin: 0 0 12px; font-size: .88rem; }
.pd p:last-child { margin-bottom: 0; }
.pd-note {
  color: var(--muted); font-size: .82rem !important;
  border-left: 2px solid var(--amber); padding-left: 11px; margin-top: 12px !important;
}
.pd-list { margin: 0; }
.pd-list dt {
  font-weight: 700; font-size: .86rem; color: var(--amber);
  margin-top: 13px;
}
.pd-list dt:first-child { margin-top: 0; }
.pd-list dd {
  margin: 4px 0 0; font-size: .85rem; color: var(--muted); line-height: 1.6;
}
.pd-ul { margin: 0 0 12px; padding-left: 19px; font-size: .86rem; line-height: 1.7; }
.pd-ul li { margin-bottom: 5px; }
.rumus {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px 14px; margin: 12px 0; font-size: .88rem; line-height: 2;
}
.contoh {
  background: var(--bg); border: 1px dashed var(--border); border-radius: 9px;
  padding: 12px 14px; font-size: .83rem; line-height: 1.9; color: var(--muted);
}
.contoh b { color: var(--text); }
.tabel-marti { margin-top: 14px; }
.tm-judul { font-size: .78rem; color: var(--muted); margin-bottom: 7px; }
.tabel-marti table { font-family: ui-monospace, Menlo, monospace; font-size: .76rem; }
.tabel-marti th, .tabel-marti td { padding: 7px 6px; text-align: center; }
.tabel-marti td:first-child, .tabel-marti th:first-child { text-align: left; font-family: var(--font); }

/* ---------------- Analisa AI ---------------- */
.tunggu {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--amber);
  border-radius: 11px; padding: 16px; margin-bottom: 14px;
}
.tunggu b { display: block; font-size: .92rem; }
.tunggu small { display: block; color: var(--muted); font-size: .78rem; margin-top: 3px; line-height: 1.5; }

.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ind {
  background: var(--bg); border: 1px solid var(--border);
  border-left-width: 3px; border-radius: 9px; padding: 10px 12px;
}
.ind.hijau { border-left-color: var(--green); }
.ind.merah { border-left-color: var(--red); }
.ind .k { display: block; font-size: .7rem; color: var(--muted); line-height: 1.4; }
.ind .v { display: block; font-weight: 700; font-size: .95rem; margin-top: 3px; }
.ind .tag {
  font-style: normal; font-size: .6rem; font-weight: 700;
  background: var(--surface-2, var(--bg-2)); padding: 1px 5px;
  border-radius: 4px; margin-left: 4px; vertical-align: 1px;
}

.hasil-ai {
  white-space: pre-line; line-height: 1.75; font-size: .88rem;
}

.brt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--border); }
.brt:first-child { border-top: 0; padding-top: 0; }
.brt-w { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; color: var(--muted); width: 42px; flex-shrink: 0; }
.brt-c { font-family: ui-monospace, Menlo, monospace; font-size: .72rem; font-weight: 700; width: 34px; flex-shrink: 0; }
.brt-t { flex: 1; min-width: 0; font-size: .84rem; line-height: 1.4; }
.brt-t small { display: block; color: var(--muted); font-size: .72rem; margin-top: 3px; }

.ajak-ic {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,185,66,.12); color: var(--amber);
}
.ajak { color: var(--text); }
.ajak:hover { border-color: var(--amber); }

@media (max-width: 380px) { .ind-grid { grid-template-columns: 1fr; } }

/* ---------------- Kuota & Auto Entry ---------------- */
.kuota-bar {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 13px; margin-bottom: 14px;
}
.kb-isi { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.kb-lab { font-size: .82rem; color: var(--muted); }
.kb-ang { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: .95rem; }
.kuota-bar small { display: block; color: var(--muted); font-size: .72rem; margin-top: 7px; }

.ae-tawar p { font-size: .88rem; line-height: 1.65; }
.ae-poin { display: grid; gap: 9px; margin-top: 12px; }
.ae-poin > div { display: flex; gap: 9px; align-items: flex-start; font-size: .84rem; line-height: 1.55; }
.ae-poin svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }
.ae-aktif { border-color: rgba(70,209,138,.35); }

.bayar {
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: 10px; padding: 14px; text-align: center;
}
.bayar-harga { font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.bayar-harga b { display: block; font-size: 1.25rem; color: var(--amber); margin-top: 3px;
  font-family: ui-monospace, Menlo, monospace; }
.qris {
  width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain;
  background: #fff; border-radius: 10px; padding: 8px; display: block; margin: 0 auto 8px;
}
.bayar small { color: var(--muted); font-size: .76rem; line-height: 1.5; display: block; }
.bayar-nota { color: var(--muted); font-size: .8rem; margin: 10px 0 0; line-height: 1.55; }

.bukti-mini {
  max-width: 130px; max-height: 130px; border-radius: 8px;
  border: 1px solid var(--border); display: block;
}

/* ---------------- Pemilih akun berlangganan ---------------- */
.akun-tab { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.akun-tab::-webkit-scrollbar { display: none; }
.at-item {
  flex-shrink: 0; display: flex; flex-direction: column; gap: 2px;
  padding: 9px 13px; border-radius: 9px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); transition: .15s; min-width: 108px;
}
.at-item:hover { border-color: var(--rail-hi, var(--border)); color: var(--text); }
.at-item.on { border-color: var(--amber); background: rgba(245,185,66,.09); color: var(--text); }
.at-no { font-family: ui-monospace, Menlo, monospace; font-weight: 700; font-size: .86rem; }
.at-br { font-size: .68rem; color: var(--muted); }
.at-add { flex-direction: row; align-items: center; gap: 7px; justify-content: center;
  border-style: dashed; font-size: .78rem; font-weight: 600; }

/* ---------------- Logo gambar ---------------- */
.brand img.logo {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; object-fit: contain;
  background: transparent; border: 0; padding: 0;
  display: block;
}
/* tema robotic memotong sudut elemen .logo — batalkan untuk gambar */
.brand img.logo { clip-path: none !important; }
.auth-card .brand img.logo { width: 46px; height: 46px; }

/* ==========================================================
   TEMA EMAS — lapisan penyelaras
   Menyamakan seluruh halaman dengan desain panel kontrol:
   kartu bergradasi bergaris emas, tombol emas berteks gelap.
   ========================================================== */

/* ---- kartu & panel ---- */
.card,
.auth-card .card,
.kuota-bar,
.install-box,
.sewa-box,
.bayar,
.filterbar,
.pasang-app {
  background: linear-gradient(145deg, rgba(31,31,27,.96), rgba(22,22,19,.98));
  border: 1px solid var(--line-kuat);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

/* ---- tombol utama: emas dengan teks gelap ---- */
.btn-primary {
  background: linear-gradient(180deg, #fff4bd, #dcc274);
  color: #16150f;
  font-weight: 800;
  border: 0;
  box-shadow: 0 6px 18px rgba(243,230,164,.18);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { filter: grayscale(.4) brightness(.7); }

.btn-ghost {
  background: #141411;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--line-kuat); }

.btn-danger {
  background: rgba(255,77,87,.12);
  border: 1px solid rgba(255,77,87,.45);
  color: var(--red);
}

/* ---- kotak isian ---- */
input, select, textarea {
  background: #141411;
  border: 1px solid rgba(243,230,164,.2);
  border-radius: 12px;
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(243,230,164,.12);
}

/* ---- bilah kemajuan ---- */
.sb-track, .install-bar {
  background: #0b0b0a;
  border: 1px solid rgba(243,230,164,.28);
  border-radius: 999px;
  height: 7px;
}
.sb-fill, .install-bar span {
  border-radius: 999px;
  background: linear-gradient(90deg, #f2dd88, #fff2ae, #76ef8c);
  box-shadow: 0 0 12px rgba(243,230,164,.35);
}
.sb-fill.down { background: linear-gradient(90deg, #ff8f96, #ff4d57); box-shadow: 0 0 12px rgba(255,77,87,.3); }
.sb-fill.warn { background: linear-gradient(90deg, #ffe08a, #dcc274); }

/* ---- kotak nilai kecil ---- */
.akun-sel, .ind, .log-item, .setting-group, .tok-box, .total-box {
  background: #141411;
  border: 1px solid rgba(243,230,164,.18);
  border-radius: 12px;
}
.ind.hijau { border-left: 3px solid var(--green); }
.ind.merah { border-left: 3px solid var(--red); }

/* ---- sidebar & topbar ---- */
.sidebar { background: #121210; border-right: 1px solid var(--border); }
.topbar {
  background: rgba(13,13,12,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav a { color: #aaa691; border-radius: 12px; }
.nav a:hover { background: rgba(243,230,164,.07); color: var(--text); }
.nav a.active {
  background: linear-gradient(180deg, rgba(243,230,164,.16), rgba(220,194,116,.08));
  color: var(--amber);
  border: 1px solid rgba(243,230,164,.28);
}

/* ---- bar menu bawah ---- */
@media (max-width: 900px) {
  .tabbar { background: #121210; border-top: 1px solid var(--border); }
  .tabbar a { color: #aaa691; }
  .tabbar a.on { color: var(--amber); border-top-color: var(--amber); }
  .tabbar a.tab-main svg {
    background: rgba(243,230,164,.14);
    border: 1px solid rgba(243,230,164,.4);
  }
  .tabbar a.tab-main.on svg { background: linear-gradient(180deg,#fff4bd,#dcc274); color: #16150f; }
}

/* ---- lencana status ---- */
.badge {
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
}
.badge-approved { background: rgba(40,229,111,.12); color: var(--green); border-color: rgba(40,229,111,.35); }
.badge-pending  { background: rgba(243,230,164,.12); color: var(--amber); border-color: rgba(243,230,164,.35); }
.badge-rejected { background: rgba(255,77,87,.12); color: var(--red); border-color: rgba(255,77,87,.35); }
.badge-VIP      { background: rgba(243,230,164,.14); color: var(--amber); border-color: rgba(243,230,164,.4); }
.badge-Scalper  { background: rgba(220,194,116,.12); color: var(--amber-2); border-color: rgba(220,194,116,.35); }
.badge-Free     { background: rgba(143,138,120,.14); color: var(--free); border-color: rgba(143,138,120,.35); }

/* ---- saklar ---- */
.sw .sw-track { background: #0b0b0a; border: 1px solid rgba(243,230,164,.25); }
.sw .sw-track::after { background: #6d6a5c; }
.sw input:checked + .sw-track {
  background: rgba(243,230,164,.22);
  border-color: var(--amber);
}
.sw input:checked + .sw-track::after { background: linear-gradient(180deg,#fff4bd,#dcc274); }

/* ---- pilihan chip & tab ---- */
.chip, .sortbtn, .chip-opt, .mini-btn, .at-item {
  background: #141411;
  border: 1px solid rgba(243,230,164,.2);
  color: var(--muted);
  border-radius: 10px;
}
.sortbtn.on, .chip-opt.on {
  background: linear-gradient(180deg,#fff4bd,#dcc274);
  border-color: var(--amber);
  color: #16150f;
}
.at-item.on, .mini-btn.hi {
  border-color: var(--amber);
  background: rgba(243,230,164,.1);
  color: var(--amber);
}

/* ---- tabel ---- */
.table th {
  background: #141411;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.table td { border-bottom: 1px solid rgba(243,230,164,.1); }
.table tr:hover td { background: rgba(243,230,164,.04); }

/* ---- kotak info ---- */
.info-box {
  background: rgba(243,230,164,.07);
  border: 1px solid rgba(243,230,164,.25);
  border-radius: 12px;
}
.info-box svg { color: var(--amber); }

/* ---- judul bagian ---- */
.eyebrow { color: var(--amber-2); letter-spacing: 1.2px; }
.section-title h2, .news-title { color: var(--text); }

/* ---- kalender berita ---- */
.day { background: #141411; border: 1px solid rgba(243,230,164,.18); }
.day.on { background: linear-gradient(180deg,#fff4bd,#dcc274); border-color: var(--amber); color: #16150f; }
.day.on .d, .day.on .n { color: #16150f; }
.ev { background: #141411; border: 1px solid rgba(243,230,164,.15); border-radius: 12px; }

/* ---- teks kecil ---- */
.pd-note { border-left-color: var(--amber); }
.spinner { border-color: rgba(243,230,164,.25); border-top-color: var(--amber); }

/* ---------------- Penyaring kategori EA ---------------- */
.filter-ea { margin-bottom: 14px; }
.fe-baris { display: flex; gap: 7px; flex-wrap: wrap; }
.chip-f {
  background: #141411; border: 1px solid rgba(243,230,164,.22);
  color: var(--muted); border-radius: 999px; padding: 6px 12px;
  font-size: .76rem; font-weight: 700; cursor: pointer; transition: .15s;
}
.chip-f:hover { border-color: var(--amber); color: var(--text); }
.chip-f.on {
  background: linear-gradient(180deg,#fff4bd,#dcc274);
  border-color: var(--amber); color: #16150f;
}
.fe-nota { font-size: .76rem; color: var(--muted); margin: 8px 2px 0; min-height: 1em; }

.ea-kat { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0 2px; }
.kat-tag {
  font-size: .66rem; font-weight: 700; letter-spacing: .3px;
  background: rgba(243,230,164,.1); border: 1px solid rgba(243,230,164,.28);
  color: var(--amber-2); padding: 2px 8px; border-radius: 999px;
}

/* pilihan kategori di form admin */
.kat-grup { margin-bottom: 10px; }
.kat-judul { font-size: .7rem; font-weight: 800; color: var(--amber-2); letter-spacing: .8px; margin-bottom: 6px; }
.kat-list { display: flex; gap: 7px; flex-wrap: wrap; }
.kat-item {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: #141411; border: 1px solid rgba(243,230,164,.2);
  border-radius: 999px; padding: 6px 12px; font-size: .78rem; font-weight: 600;
}
.kat-item input { width: 15px; height: 15px; accent-color: var(--amber); margin: 0; }
.kat-item:has(input:checked) {
  border-color: var(--amber); background: rgba(243,230,164,.1); color: var(--amber);
}

/* ---- informasi rekening di form pembayaran ---- */
.rekening-box {
  background: #141411; border: 1px solid rgba(243,230,164,.25);
  border-radius: 12px; padding: 11px 13px; margin-top: 10px; text-align: left;
}
.rek-judul {
  font-size: .68rem; font-weight: 800; letter-spacing: .8px;
  color: var(--amber-2); margin-bottom: 6px; text-transform: uppercase;
}
.rek-baris {
  font-family: ui-monospace, Menlo, monospace; font-size: .8rem;
  color: var(--text); line-height: 1.7;
}

/* ---------- Admin: kolom Masa Sewa di Request Kontrol EA ---------- */
.masa-sewa-sel { font-size: .8rem; line-height: 1.5; min-width: 140px; }
.masa-sewa-sel .ms-baris { color: var(--muted); }
.masa-sewa-sel .ms-baris b { color: var(--text, #f3efe0); font-weight: 700; }
.masa-sewa-sel .ms-kosong { color: var(--muted); }
.ms-sisa {
  display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: .72rem; font-weight: 800; letter-spacing: .2px;
}
.ms-aman  { background: rgba(40, 229, 111, .14); color: var(--green); }
.ms-dekat { background: rgba(243, 200, 90, .16); color: var(--amber); }
.ms-habis { background: rgba(255, 90, 95, .16); color: var(--red); }
.masa-sewa-sel .ms-isi { display: block; }
@media (max-width: 760px) {
  .masa-sewa-sel .ms-isi { text-align: right; }
  .masa-sewa-sel .ms-baris b { white-space: nowrap; }
}
