/* KENCANA dashboard - v12: tema ungu gelap (warna aksen tetap memakai nama --gold supaya aturan lama ikut berubah) */
:root {
  --bg: #09090F; --card: #111019; --card2: #15131F; --line: #22202F; --line2: #35315A;
  --gold: #7564F0; --goldhi: #A99BFF; --ivory: #EEEDF7; --muted: #8E8CA6; --muted2: #C3C1D9;
  --pos: #6EE7A8; --neg: #FF8A9A; --note: #15132A;
  --r: 18px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ivory);
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; line-height: 1.45;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--goldhi); }
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 700; }
.small-mono { font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.strong { font-weight: 700; }
.gold { color: var(--gold); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.mt { margin-top: 12px; }
.inline { display: inline; margin: 0; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.top-right { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .18em; }
.brand img { border-radius: 8px; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid #2A2840; background: transparent;
  color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid #2A2840; display: inline-flex; align-items: center; font-size: 13px; }

.title { margin: 0; font-size: 22px; font-weight: 700; }
.logo-sm { font-family: 'Cinzel', serif; letter-spacing: .14em; }
.sub { margin: 6px 0 0; font-size: 16px; }
.eyebrow { font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.lbl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.big { font-size: 36px; line-height: 1.15; }
.xl { display: block; font-size: 22px; }

/* cards */
.card, .acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card { display: flex; flex-direction: column; gap: 6px; }
.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 22px;
  background: var(--card2); border: 1px solid var(--line2); display: flex; flex-direction: column; gap: 10px;
}
.hero-bg { position: absolute; right: -60px; top: -60px; opacity: .12; pointer-events: none; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.grid3 .mono { font-size: 14px; }
.cards .card { padding: 12px 14px; gap: 0; }
.divider { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.list { display: flex; flex-direction: column; gap: 12px; }
a.acc { display: block; color: var(--ivory); }
a.acc:hover { border-color: var(--line2); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.badge { font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.badge.on { background: #13291F; color: var(--pos); }
.badge.off { background: #33161C; color: var(--neg); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot.on { background: var(--pos); } .dot.off { background: var(--neg); }

.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.bar.red i { background: var(--neg); }

/* chart */
.chart { height: 140px; display: flex; align-items: stretch; gap: 3px; border-bottom: 1px dashed #2A2840; margin-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.chart .up, .chart .dn { height: 70px; display: flex; }
.chart .up { align-items: flex-end; } .chart .dn { align-items: flex-start; }
.chart i { display: block; width: 100%; }
.chart .up i { background: var(--gold); border-radius: 3px 3px 0 0; }
.chart .dn i { background: var(--neg); border-radius: 0 0 3px 3px; }
.mrow { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); gap: 10px; }
.mrow .mono + .mono { margin-left: 12px; }

/* forms */
.stack { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted2); }
input:not([type=checkbox]):not([type=radio]) {
  height: 50px; border-radius: 14px; border: 1px solid #2A2840; background: #0E0D16; color: var(--ivory);
  padding: 0 14px; font: inherit; font-size: 16px; width: 100%;
}
input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.btn, .btn-sm {
  border: none; cursor: pointer; font: inherit; font-weight: 700; border-radius: 14px;
  background: var(--gold); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn { height: 54px; font-size: 16px; width: 100%; letter-spacing: .03em; }
.btn:hover, .btn-sm:hover { background: var(--goldhi); color: #FFFFFF; }
.btn-sm { height: 44px; padding: 0 16px; font-size: 14px; }
.btn-sm.ghost { background: transparent; color: var(--muted2); border: 1px solid #2A2840; }
.btn-sm.ghost:hover { color: var(--ivory); background: transparent; border-color: var(--line2); }
.btn-sm.danger { background: transparent; color: #F2A08F; border: 1px solid #6A2A36; }
.btn-sm.danger:hover { background: #2A1218; color: #FFB8AA; border-color: #8A3A30; }

.group { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.group legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); padding: 0; margin-bottom: 10px; }
.frow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
}
.frow[hidden] { display: none; }
.frow.bad { border-color: var(--neg); }
.frow.bad .fl span { color: var(--neg); }
.fl { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fl label { font-size: 14px; font-weight: 600; }
.fl span { font-size: 12px; color: var(--muted); }
.fi { display: flex; align-items: center; gap: 6px; flex: none; }
.fi input:not([type=checkbox]) {
  width: 96px; height: 44px; border-radius: 12px; background: var(--bg); text-align: right;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; padding: 0 10px;
}
.fi span { font-size: 12px; color: var(--muted); width: 34px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; height: 44px; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; color: var(--muted2); cursor: pointer; }
.seg input:checked + span { background: var(--gold); color: #FFFFFF; }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: #2A2840; transition: .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--muted2); transition: .2s; }
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::after { left: 25px; background: #FFFFFF; }
.switch input:focus-visible + i { outline: 2px solid var(--goldhi); outline-offset: 2px; }

.note { border-radius: 14px; padding: 12px 14px; background: var(--note); border: 1px solid var(--line2); font-size: 13px; color: #D9D5F5; }
.flash { border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.flash.ok { background: #13291F; color: var(--pos); }
.flash.err { background: #33161C; color: var(--neg); }

details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 12px; background: var(--card); }
.tbl tr.dim { opacity: .5; }

/* login */
.login { position: relative; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.login-bg { position: absolute; top: -170px; left: 50%; margin-left: -260px; opacity: .09; pointer-events: none; }
.login-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.login-head img { border-radius: 18px; }
.logo { margin: 0; font-family: 'Cinzel', serif; font-weight: 700; font-size: 34px; letter-spacing: .22em; padding-left: .22em; color: var(--gold); }
.login form { position: relative; }

.foot { text-align: center; font-size: 11px; color: var(--muted); margin-top: 16px; }

@media (max-width: 380px) {
  .big { font-size: 30px; }
  .fi input:not([type=checkbox]) { width: 84px; }
}
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; }
.grid3 .muted.small { display: block; margin-top: 2px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.power { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0;
  border-radius: 18px; padding: 16px; background: var(--card); border: 1px solid var(--line); }
.power.is-on { border-color: #24533A; }
.power.is-off { border-color: #6A2A36; background: #1B1016; }
.power-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.power-txt strong { font-size: 16px; }
.power.is-on strong { color: var(--pos); } .power.is-off strong { color: var(--neg); }
.switch-btn { position: relative; flex: none; width: 64px; height: 36px; border-radius: 99px; border: none; cursor: pointer; background: #2A2840; }
.switch-btn i { position: absolute; top: 4px; left: 4px; width: 28px; height: 28px; border-radius: 50%; background: var(--muted2); transition: .2s; }
.switch-btn[aria-pressed="true"] { background: var(--gold); }
.switch-btn[aria-pressed="true"] i { left: 32px; background: #FFFFFF; }
.switch-btn:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 2px; }

/* --- v4: konversi mata uang, cari/filter/halaman admin --- */
.conv { display: block; font-family: 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; letter-spacing: .1px; }
.big + .conv { font-size: 13px; margin-top: -2px; }
.grid3 .conv { font-size: 11px; }
.conv.right { text-align: right; }
.tbl .conv { font-size: 11px; margin-top: 1px; }
.block { display: block; }
.min0 { min-width: 0; }
.warn { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--neg); }
.warn:hover { color: #FFB8AA; }
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.tabs a { flex: 1; text-align: center; padding: 10px 8px; border-radius: 10px; color: var(--muted2); font-weight: 700; font-size: 14px; }
.tabs a .muted { font-weight: 500; font-size: 12px; margin-left: 4px; }
.tabs a.act { background: var(--gold); color: #FFFFFF; }
.tabs a.act .muted { color: #3B3470; }
.search { display: flex; gap: 8px; margin: 0; }
.search input { height: 46px !important; }
.search .btn-sm { height: 46px; flex: none; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -6px; }
.fchip { padding: 7px 12px; border-radius: 999px; border: 1px solid #2A2840; color: var(--muted2); font-size: 13px; font-weight: 600; }
.fchip.sm { padding: 5px 10px; font-size: 12px; }
.fchip:hover { color: var(--ivory); border-color: var(--line2); }
.fchip.act { background: #1C1936; border-color: var(--gold); color: var(--goldhi); }
.list.tight { gap: 8px; }
.acc.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--ivory); }
.acc.row .block { margin-top: 2px; }
.acc.row .dot { width: 7px; height: 7px; margin-right: 5px; }
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pg { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid #2A2840; color: var(--muted2); font-weight: 700; font-size: 14px; }
.pg:hover { border-color: var(--line2); color: var(--ivory); }
.pg.cur { background: var(--gold); border-color: var(--gold); color: #FFFFFF; }
.pg.dis { opacity: .35; border-color: transparent; }

/* --- v7: kartu lebar profit bulan & DD --- */
.card.wide { padding: 16px 18px; gap: 4px; }
.card.wide .lbl { margin: 0; }
.wide-val { display: block; font-size: 28px; line-height: 1.2; margin-top: 2px; }
.dd-val { font-size: 20px; }
@media (max-width: 380px) { .wide-val { font-size: 24px; } .dd-val { font-size: 18px; } }

/* --- v9: setting sederhana/lanjutan, beranda, admin, arah trend --- */
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.tabs button { flex: 1; padding: 10px 8px; border: none; border-radius: 10px; background: transparent; color: var(--muted2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.tabs button.act { background: var(--gold); color: #FFFFFF; }
.tabs button:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 2px; }

/* isian dalam satu kartu */
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; }
.fcard .frow { background: transparent; border: none; border-radius: 0; padding: 12px 0; }
.fcard .frow + .frow { border-top: 1px solid var(--line); }
.fcard .frow[hidden] + .frow { border-top: none; }
.fcard .frow.bad .fi input { border-color: var(--neg); }
.frow.chg .fi input { border-color: var(--gold); color: var(--goldhi); background: #16142A; }
.erow { display: flex; flex-direction: column; gap: 6px; }
.erow.chg .seg { border-color: var(--gold); }

.riskbox { border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; background: var(--card); border: 1px solid var(--line); color: var(--muted2); }
.riskbox b { color: var(--ivory); }
.riskbox.warn { background: #1C1936; border-color: #3B3470; color: #D9D5F5; }
.riskbox.warn b { color: var(--goldhi); }
.riskbox.danger { background: #2A1218; border-color: #6A2A36; color: #F2C2B8; }
.riskbox.danger b { color: #FFB8AA; }
.riskbox .muted { font-size: 11px; }

/* lembar konfirmasi simpan */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(5, 5, 10, .72); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.sheet-bg[hidden] { display: none; }
.sheet { width: 100%; max-width: 528px; background: var(--card2); border: 1px solid var(--line2); border-radius: 22px; padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
.sheet h3 { margin: 0 0 4px; font-size: 17px; }
.chgrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.chgrow s { color: var(--muted); }
.chgrow b { color: var(--goldhi); font-family: 'JetBrains Mono', monospace; }
.ghostbtn { background: transparent; color: var(--muted2); border: 1px solid #2A2840; }
.ghostbtn:hover { background: transparent; color: var(--ivory); border-color: var(--line2); }
.btn:disabled { opacity: .6; cursor: wait; }

/* arah trend M5/M15/M30 */
.pwgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.pwtf { border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg); }
.pwtf span { font-size: 11px; color: var(--muted); }
.pwtf b { font-family: 'JetBrains Mono', monospace; font-size: 12px; white-space: nowrap; }
.pwtf.buy { border-color: #3B3470; } .pwtf.buy b { color: var(--goldhi); }
.pwtf.sell { border-color: #5A2430; } .pwtf.sell b { color: var(--neg); }
.pwtf.flat b { color: var(--muted2); }
.pwsaran { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.pwsaran span { font-size: 12px; color: var(--muted); flex: none; }
.pwsaran b { font-size: 13px; text-align: right; }
.pwsaran.buy b { color: var(--goldhi); } .pwsaran.sell b { color: var(--neg); }

/* beranda customer */
.hello { margin: 0 0 2px; }
.live { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.live i { width: 9px; height: 9px; border-radius: 50%; }
.live.on { background: #13291F; color: var(--pos); } .live.on i { background: var(--pos); box-shadow: 0 0 0 3px rgba(110, 231, 168, .25); }
.live.off { background: #33161C; color: var(--neg); } .live.off i { background: var(--neg); }
.acc2 { display: flex !important; flex-direction: column; gap: 12px; }
.acc2.is-off { border-color: #6A2A36; background: #1B1016; }
.acc-login { font-size: 18px; }
.acc-pl { font-size: 20px; line-height: 1.2; }
.acc-foot { align-items: flex-end; }
.spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; flex: none; }
.spark i { display: block; width: 6px; border-radius: 2px; }
.spark i.p { background: #7564F0; } .spark i.n { background: #C4616F; } .spark i.z { background: var(--line2); }
.acc2.is-off .spark { opacity: .6; }

/* admin */
.stat4 { gap: 10px; }
.stat { padding: 14px 16px; gap: 2px; }
.stat .lbl { margin: 0; }
.stat-v { font-size: 20px; line-height: 1.25; }
a.conv:hover { color: var(--gold); }
.eyebrow2 { margin: 4px 0 -6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 14px; font-size: 14px; color: var(--ivory); border: 1px solid var(--line); }
.alert.red { background: #33161C; border-color: #6A2A36; } .alert.red b { color: #FFB8AA; }
.alert.gold { background: #1C1936; border-color: #3B3470; } .alert.gold b { color: var(--goldhi); }
.alert.ok { background: #112118; border-color: #24533A; color: var(--pos); }
a.alert:hover { color: var(--ivory); filter: brightness(1.12); }
.qlist { gap: 0; padding: 14px 16px; }
.qlist > .lbl, .qlist > .row-between { margin-bottom: 4px; }
.qrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.qrow .min0 { display: flex; flex-direction: column; }
.qright { display: flex; align-items: center; gap: 12px; flex: none; text-align: right; }
.switch-btn.sm { width: 50px; height: 28px; }
.switch-btn.sm i { width: 20px; height: 20px; }
.switch-btn.sm[aria-pressed="true"] i { left: 26px; }
.arow { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14px; }
.arow:first-of-type { border-top: none; }
@media (max-width: 380px) {
  .pwtf b { font-size: 11px; }
  .stat-v { font-size: 18px; }
}

/* --- v10: tampilan PC (lebar), admin ringkas, kartu akun admin, minta daftar akun --- */
select {
  height: 50px; border-radius: 14px; border: 1px solid #2A2840; background: #0E0D16; color: var(--ivory);
  padding: 0 12px; font: inherit; font-size: 15px; width: 100%;
}
select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
details > summary.row-between { display: flex; }
.acc.dim, .card.dim { opacity: .55; }

/* kolom: di HP bertumpuk, di PC berdampingan */
.cols, .col, .adm, .adm-top, .adm-extra, .adm-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* kartu akun di halaman customer (admin) = sama dengan kartu Akun Saya */
.acc2-link { display: flex; flex-direction: column; gap: 12px; color: var(--ivory); }
.acc2-link:hover { color: var(--ivory); }
.kelola { border-top: 1px dashed var(--line); padding-top: 10px; }
.kelola summary { display: block; overflow-wrap: anywhere; }
.kelola summary::before { content: '⚙ '; color: var(--gold); }
.kelola .actions { margin-top: 10px; }

.ustat { gap: 10px; }
.badge.gold { background: #1C1936; color: var(--goldhi); border: 1px solid #3B3470; }

/* permintaan daftar akun */
.reqlist { border-color: #3B3470; background: #16142A; }
.reqlist .qright { gap: 6px; }
.reqcard { gap: 0; }
.reqcard .qrow:first-of-type { margin-top: 10px; }

/* daftar customer (admin) */
.cpl { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.cpl .conv { margin-top: 1px; }
.cgrid .acc.row { padding: 10px 14px; }

@media (min-width: 960px) {
  .wrap.mid { max-width: 820px; }
  .wrap.wide { max-width: 1240px; padding-left: 24px; padding-right: 24px; }
  .wrap.wide > .btn { max-width: 420px; align-self: center; }

  /* beranda admin: kiri ringkasan + aksi cepat, kanan daftar customer/akun */
  .adm { display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-areas: "top main" "extra main"; grid-template-rows: auto 1fr;
    align-items: start; gap: 16px 24px; }
  .adm-top { grid-area: top; }
  .adm-extra { grid-area: extra; }
  .adm-main { grid-area: main; }
  .cgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* halaman customer & set: kiri utama, kanan samping */
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 24px; }
  .cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wrap.mid .cols { grid-template-columns: minmax(0, 1fr) 300px; }
  .col.side { position: sticky; top: 16px; }

  /* kartu akun 2 kolom */
  .agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .agrid > .card.muted { grid-column: 1 / -1; }
  .tbl { min-width: 0; }
}
@media (min-width: 1200px) { .agrid.a3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v11: akun kena margin */
.mcard { border-color: #3B3470; background: linear-gradient(180deg, #17152A, var(--card, #111019)); }
.mcard p { margin: 6px 0 2px; line-height: 1.5; }
.mcard .qrow .min0 { gap: 2px; }
.mnote { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #33161C; color: #FFB8AA; }
.mcard .btn-sm { white-space: nowrap; flex-shrink: 0; }
.mcard .qrow:first-child { border-top: 0; padding-top: 0; }
.mcard .qrow:last-child { padding-bottom: 0; }

/* --- v12: tema ungu gelap + dua EA (KENCANA / ARUNA) --- */
body { background: radial-gradient(900px 420px at 50% -120px, rgba(117, 100, 240, .22), transparent 70%) no-repeat, var(--bg); }
.brand, .logo, .logo-sm, .eyebrow { font-family: 'Inter', system-ui, sans-serif; }
.brand { letter-spacing: .12em; }
.logo { letter-spacing: .16em; padding-left: .16em; color: var(--ivory); text-shadow: 0 0 24px rgba(140, 124, 255, .45); }
.title.gold { color: var(--ivory); }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .14em; }
.hero-bg, .login-bg { color: var(--goldhi); }
.card, .acc, .hero, .fcard, .frow, .power, .seg, .tabs { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.hero { background: linear-gradient(180deg, #17142A, var(--card2)); }
.btn, .btn-sm:not(.ghost):not(.danger), .tabs a.act, .tabs button.act, .seg input:checked + span, .pg.cur {
  background: linear-gradient(180deg, #8C7CFF, #6A58EE); color: #fff;
}
.btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px rgba(117, 100, 240, .3); }
.btn:hover, .btn-sm:not(.ghost):not(.danger):hover { background: linear-gradient(180deg, #9A8BFF, #7564F0); color: #fff; }
.tabs a.act .muted { color: rgba(255, 255, 255, .75); }
.switch input:checked + i, .switch-btn[aria-pressed="true"] { background: var(--gold); box-shadow: 0 0 14px rgba(117, 100, 240, .45); }
.switch input:checked + i::after, .switch-btn[aria-pressed="true"] i { background: #fff; }
.fchip.act { color: #fff; }
.chgrow b { color: var(--goldhi); }
.iconbtn { color: var(--muted2); }

/* nomor akun + label EA kecil di sampingnya */
.idline { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.eatag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line2);
  font-family: 'Inter', system-ui, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted2); background: rgba(255, 255, 255, .03); }
.title .eatag { height: 22px; font-size: 10px; }

/* kotak ON / OFF */
.power-big { font-size: 22px !important; line-height: 1.1; }

/* tombol − / + */
.stepper { display: flex; align-items: center; gap: 6px; flex: none; }
.stepper button { width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--ivory); font: inherit; font-size: 18px; cursor: pointer; }
.stepper button:active { transform: scale(.96); }
.stepper input:not([type=checkbox]) { width: 78px; height: 44px; border-radius: 12px; background: var(--bg); text-align: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; padding: 0 2px; }
.stepper.chg input, .frow.chg .stepper input { border-color: var(--gold); color: var(--goldhi); background: #16142A; }
.stepper.bad input { border-color: var(--neg); }

/* tabel Grid A / Grid B berdampingan */
.gtab { padding: 12px 14px; }
.ghead, .grow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.ghead span { display: flex; flex-direction: column; align-items: center; padding-bottom: 6px; }
.ghead b { font-size: 15px; color: var(--goldhi); }
.ghead b.tb { color: #8EC5FF; }
.ghead small { font-size: 11px; color: var(--muted); }
.grow { padding: 6px 0 10px; }
.gname { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted2); }
.gname small { font-weight: 500; color: var(--muted); text-align: right; }
.grow .stepper { gap: 4px; min-width: 0; }
.grow .stepper button { width: 36px; flex: none; }
.grow .stepper input:not([type=checkbox]) { flex: 1; min-width: 0; width: auto; }

/* --- v12: nama web RYUKUZAN --- */
.login-tag { margin: 4px 0 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--txt, #EEEDF7); text-shadow: 0 0 24px rgba(169,155,255,.35); }
.login-head .logo { letter-spacing: .14em; }
.brand span { color: #EEEDF7; }

/* --- v12: logo baru + font (judul lebar Archivo, teks Inter) --- */
h1, h2, .brand span, .logo, .logo-sm, .hello h1 { font-family: 'Sora', 'Inter', system-ui, sans-serif; font-weight: 700; }
.brand img, .login-head img { border-radius: 0; }
.brand span { letter-spacing: .08em; }
.login-head { gap: 6px; }
.login-head img { margin-bottom: 14px; filter: drop-shadow(0 10px 30px rgba(117, 100, 240, .35)); }
.login-head .logo { font-size: 38px; letter-spacing: .08em; padding-left: .08em; color: transparent;
  background: linear-gradient(180deg, #FFFFFF 30%, #C9C0FF 100%); -webkit-background-clip: text; background-clip: text; }
.login-tag { font-family: 'Inter', system-ui, sans-serif; font-weight: 500; font-size: 19px; text-shadow: none; }
.login-head .muted { letter-spacing: .3em; font-size: 12px; padding-left: .3em; }
.btn-go { position: relative; background: linear-gradient(90deg, #7564F0 0%, #8F80FF 55%, #E6E1FF 100%); }
.btn-go span { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #fff; }
@media (max-width: 380px) { .login-head .logo { font-size: 30px; } }
.login-head { padding-top: 28px; }


/* --- v13: satu nomor MT5 untuk dua EA (kartu per nomor, baris per EA) --- */
.accbal b { color: #EEEDF7; font-weight: 600; }
.earows { display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.07); }
.earow { display: grid; grid-template-columns: auto auto minmax(0,1fr) auto auto; align-items: center; gap: 10px; padding: 12px 0; color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05); }
.earow:last-child { border-bottom: 0; padding-bottom: 0; }
.earow:hover { color: inherit; }
.earow:hover .chev { color: #A99BFF; }
.earow-pos { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.earow-pl { font-size: 16px; text-align: right; white-space: nowrap; }
.chev { color: #5C5A70; font-size: 20px; line-height: 1; }
.eastate { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.eastate i { width: 7px; height: 7px; border-radius: 50%; }
.eastate.is-on { color: #6EE7A8; } .eastate.is-on i { background: #6EE7A8; box-shadow: 0 0 8px #6EE7A8; }
.eastate.is-off { color: #FF8A9A; } .eastate.is-off i { background: #FF8A9A; }
.easwitch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.easwitch a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #8E8CA6; text-decoration: none; }
.easwitch a .mono { font-size: 14px; letter-spacing: 0; }
.easwitch a.on { background: linear-gradient(135deg, rgba(169,155,255,.22), rgba(117,100,240,.18)); color: #EEEDF7; box-shadow: inset 0 0 0 1px rgba(169,155,255,.35); }
.kelola-ea { display: flex; flex-direction: column; gap: 6px; }

/* kartu akun bisa diklik di mana saja (baris EA tetap ke EA masing-masing) */
.acc-click { position: relative; cursor: pointer; }
.acc-click .cardlink { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.acc-click > :not(.cardlink) { position: relative; z-index: 2; pointer-events: none; }
.acc-click .earow, .acc-click .kelola, .acc-click .kelola * { pointer-events: auto; }
.acc-click:hover { border-color: rgba(169,155,255,.45); }
.brand span { letter-spacing: .1em; }
.login-head .logo { letter-spacing: .12em; padding-left: .12em; }
h2.title { letter-spacing: .02em; }

/* v15: pilih set */
.setpick { display: grid; gap: 12px; }
.setchips { display: flex; flex-wrap: wrap; gap: 8px; }
.setchip { font: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card2); color: var(--muted2); cursor: pointer; }
.setchip:hover { color: var(--ivory); border-color: var(--goldhi); }
.setchip.act { background: linear-gradient(180deg, #8C7CFF, #6A58EE); color: #fff; border-color: transparent; }
.setchip.manual { cursor: default; border-style: dashed; background: transparent; font-weight: 500; }
.setchip.manual.act { background: transparent; color: var(--ivory); border-color: var(--muted); }
.setchip:focus-visible { outline: 2px solid var(--goldhi); outline-offset: 2px; }
.setadmin summary { cursor: pointer; display: grid; gap: 2px; list-style: none; }
.setadmin summary::-webkit-details-marker { display: none; }
.setadmin[open] summary { margin-bottom: 12px; }
.setadmin input { width: 100%; }
.setrow { padding-top: 10px; border-top: 1px solid var(--line); gap: 12px; }
.linkbtn { font: inherit; font-size: 13px; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.setadmin .btn { background: transparent; border: 1px solid var(--line2); box-shadow: none; color: var(--ivory); }
.setadmin .btn:hover { border-color: var(--goldhi); }
.resetbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line2); border-radius: 14px; background: var(--card2); }
.btn-reset { font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--ivory); cursor: pointer; }
.btn-reset:hover { border-color: var(--goldhi); }

/* v16: top profit member */
.topbar { display: flex; align-items: center; gap: 12px; min-width: 0; }
.toplbl { flex: none; font-size: 12px; font-weight: 600; color: var(--muted2); letter-spacing: .02em; }
.toprow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding: 2px; }
.toprow::-webkit-scrollbar { display: none; }
.bub { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line2); font-size: 13px; white-space: nowrap; }
.bub .rk { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #221F38; color: var(--goldhi); font-size: 11px; }
.bub.first { border-color: rgba(169, 155, 255, .55); box-shadow: 0 0 0 3px rgba(117, 100, 240, .12); }
.bub.first .rk { background: linear-gradient(180deg, #8C7CFF, #6A58EE); color: #fff; }
.bub .nm { color: var(--ivory); font-weight: 600; }
.bub .nm small { color: var(--goldhi); font-weight: 600; margin-left: 2px; }
.bub.me { border-color: var(--goldhi); }
@media (max-width: 640px) { .topbar { flex-direction: column; align-items: stretch; gap: 8px; } .toprow { mask-image: linear-gradient(90deg, #000 88%, transparent); } }

/* v17: ganti nama akun */
.rename { margin-top: 6px; }
.rename summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ivory); }
.rename summary::-webkit-details-marker { display: none; }
.rename .pen { font-size: 13px; color: var(--goldhi); }
.rename[open] summary { display: none; }
.renameform { display: flex; gap: 8px; align-items: center; max-width: 360px; }
.renameform input { flex: 1; min-width: 0; height: 40px; }

/* v20: bubble top profit berjalan ke kiri, tanpa peringkat */
.marq { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marq-track { display: flex; width: max-content; animation: marq var(--dur, 40s) linear infinite; }
.marq:hover .marq-track { animation-play-state: paused; }
.marq-set { display: flex; gap: 8px; padding: 2px 8px 2px 0; }
.marq .bub { padding: 0 14px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marq-track { animation: none; } .marq { overflow-x: auto; } .marq-set[aria-hidden] { display: none; } }
@media (max-width: 640px) { .marq { flex: none; width: 100%; } }

/* v23: akun demo dipisah dari total */
.demotag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px;
  color: #FFD38A; background: rgba(255, 196, 92, .12); border: 1px solid rgba(255, 196, 92, .35); vertical-align: middle; }
.demoline { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(255, 255, 255, .1); color: var(--muted, #9a96b8); }

/* v25: ARUNA grid ATR + sesi trading */
.grow[hidden] { display: none; }
.fi input[type=time] { width: 112px; text-align: center; color-scheme: dark; }
.sessrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 80px auto 80px; align-items: center; gap: 10px; }
.sesstime { min-width: 0; }
.sessname { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sessname small { font-size: 12px; font-weight: 400; }
.sessrow .sesstime input { width: 100%; min-width: 0; height: 44px; border-radius: 12px; background: var(--bg); text-align: center; color-scheme: dark;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; padding: 0 2px; }
.sessrow.chg .sesstime input, .sesstime.chg input { border-color: var(--gold); color: var(--goldhi); background: #16142A; }
.sessrow:has(input[type=checkbox]:not(:checked)) .sesstime input { opacity: .45; }
@media (max-width: 420px) { .sessrow .sesstime input { font-size: 14px; } .sessrow { grid-template-columns: auto minmax(0, 1fr) 70px auto 70px; gap: 6px; padding-left: 12px; padding-right: 12px; } }

/* v28: pemberitahuan update EA di halaman akun, tombol download di samping */
.note.upd { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-color: rgba(245, 196, 81, .45); background: rgba(245, 196, 81, .08); }
.note.upd > div { display: flex; flex-direction: column; gap: 3px; }
.note.upd strong { color: #F5C451; font-size: 14px; }
.note.upd span { color: #D9D5F5; }
.note.upd .upd-dl { flex: none; display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
@media (max-width: 420px) { .note.upd .upd-dl { padding: 0 12px; font-size: 13px; height: 40px; } }
