/* ═══════════════════════════════════════════════
   RTS Chart — Style Sheet
   Reversal Trading System
   ═══════════════════════════════════════════════ */

:root {
  --bg:      #0a0c0f;
  --surface: #111318;
  --surface2:#1a1d24;
  --border:  #252830;
  --green:   #00e676;
  --red:     #ff3d57;
  --gold:    #ffd740;
  --blue:    #40c4ff;
  --text:    #e8eaf0;
  --muted:   #6b7280;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,230,118,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,118,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── HEADER ── */
header{

position:relative;

height:64px;

display:flex;

align-items:center;

justify-content:center;

padding:0;

}



/* logo BENAR-BENAR tengah */

.logo-img{

position:absolute;

left:50%;

top:50%;

transform:
translate(
-50%,
-50%
);

height:42px;

z-index:2;

}



/* spacer kanan kiri */

header:before,

header:after{

content:"";

width:44px;

height:44px;

display:block;

}



/* desktop */

@media(min-width:992px){

.btn-ham{

display:flex!important;

position:absolute;

left:15px;

top:50%;

transform:
translateY(-50%);

z-index:4;

}

}



/* mobile */

@media(max-width:991px){

.btn-ham{

display:none;

}

}
}
.btn-ham span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }
.btn-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-ham.open span:nth-child(2) { opacity: 0; }
.btn-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── DRAWER ── */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0); z-index: 150;
  pointer-events: none; transition: background .3s;
}
.drawer-overlay.open { background: rgba(0,0,0,.65); pointer-events: all; backdrop-filter: blur(4px); }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 270px;
  background: var(--surface); border-right: 1px solid var(--border);
  z-index: 160; transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }

/*.drawer-hdr {
  padding: 1rem 1.2rem .9rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.drawer-logo-img { height: 34px; }
.drawer-close {
  width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--muted);
  font-size: .9rem; display: flex; align-items: center; justify-content: center;
}*/
/* drawer header normal */

.drawer-hdr{

display:flex;

align-items:center;

justify-content:center;

padding:16px;

min-height:70px;

}


.drawer-logo-img{

height:38px;

object-fit:contain;

}



/* saat drawer terbuka */

body.drawer-open #hamBtn{

left:260px;

transition:.3s;

z-index:99999;

}


/* animasi X */

body.drawer-open #hamBtn span:nth-child(1){

transform:
translateY(7px)
rotate(45deg);

}


body.drawer-open #hamBtn span:nth-child(2){

opacity:0;

}


body.drawer-open #hamBtn span:nth-child(3){

transform:
translateY(-7px)
rotate(-45deg);

}

.drawer-nav { padding: .7rem 0; flex: 1; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: .8rem 1.2rem; cursor: pointer;
  font-size: .87rem; font-weight: 600; color: var(--muted);
  transition: all .18s; border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--surface2); color: var(--text); }
.nav-item.active { color: var(--green); border-left-color: var(--green); background: rgba(0,230,118,.05); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; }
.drawer-div { height: 1px; background: var(--border); margin: .4rem 1.2rem; }
.drawer-footer {
  padding: .8rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.avatar {
  width: 30px; height: 30px; background: var(--green); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .78rem;
}
.btn-logout { background: none; border: none; color: var(--muted); cursor: pointer; font-size: .73rem; font-family: 'Syne', sans-serif; }
.btn-logout:hover { color: var(--red); }

/* ── MAIN LAYOUT ── */
.main { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 1.8rem 1.2rem 4rem; }
.page { display: none; }
.page.active { display: block; }

.pg-title { text-align: center; margin-bottom: 1.6rem; }
.pg-title h1 {
  font-size: 2rem; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pg-title p { color: var(--muted); font-size: .82rem; margin-top: 5px; font-family: 'JetBrains Mono', monospace; }

/* ── AUTH TABS ── */
.auth-tabs {
  display: flex; margin-bottom: 1.2rem;
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.auth-tab {
  flex: 1; padding: .55rem 0; font-size: .85rem; font-weight: 700;
  text-align: center; cursor: pointer; font-family: 'Syne', sans-serif;
  color: var(--muted); background: var(--bg); border: none; transition: all .18s;
}
.auth-tab:first-child { border-right: 1px solid var(--border); }
.auth-tab.active { background: var(--green); color: #000; }

/* ── LOGIN GATE & APP WRAPPER ── */
#loginGate  { display: block; }
#appWrapper { display: none; }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  text-align: left;
  max-width: 420px;
  margin: 2rem auto 0;
}
.fg { margin-bottom: .8rem; text-align: left; }
.fg label {
  display: block; font-size: .73rem; color: var(--muted);
  margin-bottom: 3px; font-family: 'JetBrains Mono', monospace; letter-spacing: .05em;
}
.fg input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .86rem;
  transition: border-color .2s; outline: none;
}
.fg input:focus { border-color: var(--green); }
.btn-sub {
  width: 100%; background: var(--green); color: #000;
  border: none; border-radius: 8px; padding: 11px;
  font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 700;
  cursor: pointer; margin-top: .4rem;
}
.btn-sub:hover { opacity: .87; }
.divider { color: var(--muted); font-size: .74rem; margin: .8rem 0; }
.btn-goog {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px;
  font-family: 'Syne', sans-serif; font-size: .85rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-goog:hover { border-color: #4285f4; }
.login-ft { margin-top: .8rem; font-size: .74rem; color: var(--muted); }
.login-ft a { color: var(--green); text-decoration: none; }

/* ── PLAN BAR ── */
.plan-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1.2rem;
}
.plan-info { font-size: .81rem; }
.plan-badge {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 7px;
  font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--muted); margin-left: 6px;
}
.plan-badge.pro { border-color: var(--gold); color: var(--gold); background: rgba(255,215,64,.08); }
.quota-txt { font-size: .73rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.qbar-wrap { width: 96px; height: 4px; background: var(--border); border-radius: 3px; margin-top: 4px; }
.qbar-fill { height: 100%; border-radius: 3px; background: var(--green); transition: width .5s; }
.btn-up {
  background: linear-gradient(135deg, #ffd740, #ff9800); color: #000;
  border: none; border-radius: 6px; padding: 6px 12px;
  font-family: 'Syne', sans-serif; font-size: .76rem; font-weight: 700; cursor: pointer;
}

/* ── CARD ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.4rem; margin-bottom: 1.2rem;
}
.card-title { font-size: .9rem; font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; background: var(--green); border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── REQUEST FORM ── */
.ticker-row { display: flex; gap: 8px; }
.ticker-wrap { flex: 1; }
.ticker-wrap input {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .96rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: border-color .2s; outline: none;
}
.ticker-wrap input:focus { border-color: var(--green); }
.ticker-wrap input::placeholder { color: var(--muted); font-weight: 400; letter-spacing: 0; }

.tf-grp { display: flex; gap: 5px; }
.tf-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--muted);
  border-radius: 8px; padding: 0 13px;
  font-family: 'Syne', sans-serif; font-size: .78rem; font-weight: 600;
  cursor: pointer; transition: all .18s;
}
.tf-btn:hover { border-color: var(--green); color: var(--green); }
.tf-btn.active { background: var(--green); border-color: var(--green); color: #000; }

.btn-req {
  width: 100%; background: var(--green); color: #000; border: none;
  border-radius: 8px; padding: 11px;
  font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 700;
  cursor: pointer; margin-top: .85rem;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity .2s;
}
.btn-req:hover { opacity: .88; }
.btn-req:disabled { opacity: .5; cursor: not-allowed; }

/* Status message below request button */
#status-msg {
  margin-top: .7rem; font-size: .8rem; font-family: 'JetBrains Mono', monospace;
  color: var(--muted); min-height: 1.2rem; text-align: center;
}
#status-msg.ok  { color: var(--green); }
#status-msg.err { color: var(--red); }
#status-msg.pending { color: var(--gold); }

/* ── WATCHLIST CHIPS ── */
.wl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .9rem; }
.wl-chip {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .75rem; font-weight: 600;
  cursor: pointer; transition: all .18s;
  display: flex; align-items: center; gap: 5px;
}
.wl-chip:hover { border-color: var(--green); color: var(--green); }
.wl-chip-tf { font-size: .62rem; color: var(--muted); }
.wl-empty { color: var(--muted); font-size: .78rem; font-family: 'JetBrains Mono', monospace; }

/* ── CHART PREVIEW ── */
.chart-prev {
  margin-top: 1rem; border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; display: none;
}
.chart-prev.show { display: block; }

.cp-hdr {
  background: var(--surface2); padding: .55rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.cp-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .88rem; color: var(--green); }
.cp-meta   { font-size: .68rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.chart-img-wrap { position: relative; }
.chart-img-wrap img { width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

/* loading overlay */
.chart-overlay {
  display: none;
  position: absolute; inset: 0;
  background: rgba(10,12,15,.65);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
}
.chart-overlay.show { display: flex; }
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border); border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay-txt { font-size: .73rem; color: var(--green); font-family: 'JetBrains Mono', monospace; }

/* ── REFRESH BAR ── */
.chart-refresh-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: .6rem .9rem; background: var(--surface2); border-top: 1px solid var(--border);
}
.refresh-left { display: flex; align-items: center; gap: 7px; }
.btn-refresh-manual {
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); padding: 5px 12px; font-size: .76rem; font-weight: 600;
  cursor: pointer; font-family: 'Syne', sans-serif;
  display: flex; align-items: center; gap: 5px; transition: all .18s;
}
.btn-refresh-manual:hover { border-color: var(--green); color: var(--green); }
.btn-refresh-manual.spinning .refresh-icon { animation: spin .7s linear infinite; display: inline-block; }
.refresh-last { font-size: .67rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.auto-refresh-wrap { display: flex; align-items: center; gap: 6px; }
.auto-refresh-label { font-size: .72rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; white-space: nowrap; }
.ar-select {
  background: var(--surface); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); padding: 5px 22px 5px 8px;
  font-size: .73rem; font-family: 'JetBrains Mono', monospace; cursor: pointer;
  outline: none; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center;
}
.ar-select:focus { border-color: var(--green); }

.ar-countdown-wrap { display: flex; align-items: center; gap: 5px; }
.ar-progress { width: 36px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.ar-progress-fill { height: 100%; background: var(--green); border-radius: 2px; transition: width 1s linear; }
.ar-timer { font-size: .67rem; color: var(--green); font-family: 'JetBrains Mono', monospace; min-width: 28px; text-align: right; }

/* ── MARKET STRIP ── */
.strip-tabs {
  display: flex; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-bottom: .8rem;
}
.strip-tab {
  flex: 1; padding: .45rem 0; font-size: .72rem; font-weight: 700;
  text-align: center; cursor: pointer; font-family: 'Syne', sans-serif;
  color: var(--muted); background: var(--bg); border: none; transition: all .18s;
}
.strip-tab:not(:last-child) { border-right: 1px solid var(--border); }
.strip-tab.active { background: var(--surface2); color: var(--text); }

.strip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.strip-scroll::-webkit-scrollbar { height: 3px; }
.strip-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.strip-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: .55rem .8rem;
  min-width: 100px; flex-shrink: 0; cursor: pointer; transition: border-color .18s;
}
.strip-item:hover { border-color: var(--green); }
.si-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .82rem; }
.si-name { font-size: .65rem; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 88px; }
.si-val  { font-family: 'JetBrains Mono', monospace; font-size: .78rem; font-weight: 600; margin-top: 3px; }
.si-val.up { color: var(--green); }
.si-val.dn { color: var(--red); }
.si-vol { font-size: .65rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ── HISTORY ── */
.hi-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 7px; border-bottom: 1px solid var(--border);
  cursor: pointer; border-radius: 8px; margin: 0 -3px;
  transition: background .18s; animation: fadeIn .3s ease;
}
.hi-item:last-child { border-bottom: none; }
.hi-item:hover { background: var(--surface2); }
.hi-item:hover .hi-reuse { opacity: 1; }

.hi-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: .89rem; }
.hi-tf { font-size: .67rem; padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.hi-tf.daily   { background: rgba(64,196,255,.1); color: var(--blue); }
.hi-tf.weekly  { background: rgba(0,230,118,.1);  color: var(--green); }
.hi-tf.monthly { background: rgba(255,215,64,.08); color: var(--gold); }
.hi-name   { font-size: .72rem; color: var(--muted); }
.hi-time   { font-family: 'JetBrains Mono', monospace; font-size: .67rem; color: var(--muted); }
.hi-status { font-size: .67rem; padding: 2px 6px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.hi-status.done    { background: rgba(0,230,118,.1); color: var(--green); }
.hi-status.pending { background: rgba(255,215,64,.08); color: var(--gold); }
.hi-reuse { opacity: 0; transition: opacity .18s; font-size: .67rem; color: var(--blue); margin-top: 3px; font-family: 'JetBrains Mono', monospace; }

/* ── WATCHLIST PAGE ── */
.wl-add-row { display: flex; gap: 8px; margin-bottom: 1rem; }
.wl-add-row input {
  flex: 1; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace; font-size: .9rem; font-weight: 600;
  text-transform: uppercase; outline: none; transition: border-color .2s;
}
.wl-add-row input:focus { border-color: var(--green); }
.btn-wl-add {
  background: var(--green); color: #000; border: none; border-radius: 8px;
  padding: 0 16px; font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.wl-list { display: flex; flex-direction: column; gap: 8px; }
.wl-row {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: space-between;
  animation: fadeIn .25s ease;
}
.wl-row-left { display: flex; align-items: center; gap: 10px; }
.wl-row-ticker { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: .95rem; }
.wl-row-tf     { font-size: .67rem; padding: 2px 7px; border-radius: 4px; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.wl-row-name   { font-size: .74rem; color: var(--muted); }
.wl-row-actions { display: flex; gap: 6px; }
.wl-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: .7rem; cursor: pointer;
  font-family: 'Syne', sans-serif; font-weight: 600; color: var(--muted); transition: all .18s;
}
.wl-btn.del:hover   { border-color: var(--red); color: var(--red); }
.wl-btn.chart:hover { border-color: var(--green); color: var(--green); }
.wl-btn.edit-save   { border-color: var(--blue); color: var(--blue); }
.wl-edit-row {
  background: var(--surface2); border: 1px solid var(--blue);
  border-radius: 10px; padding: .8rem 1rem;
  display: flex; align-items: center; gap: 8px; animation: fadeIn .2s ease;
}
.wl-edit-row input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace; font-size: .88rem; font-weight: 600;
  text-transform: uppercase; outline: none; width: 90px;
}

/* ── PROFILE PAGE ── */
.profile-hero {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 1.7rem; margin-bottom: 1rem; text-align: center;
}
.profile-avatar {
  width: 64px; height: 64px; background: var(--green); color: #000;
  border-radius: 50%; margin: 0 auto .8rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800;
}
.profile-plan-badge {
  display: inline-block; margin-top: .6rem; padding: 3px 11px;
  border-radius: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
}
.profile-plan-badge.free { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.profile-plan-badge.pro  { background: rgba(255,215,64,.1); color: var(--gold); border: 1px solid rgba(255,215,64,.3); }

.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1rem; }
.sbox { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; }
.sbox-label { font-size: .67rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }
.sbox-val   { font-size: 1.5rem; font-weight: 800; margin: .22rem 0; line-height: 1; }
.sbox-sub   { font-size: .67rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }
.sbox.hi .sbox-val { color: var(--green); }
.sbox.hi { border-color: rgba(0,230,118,.3); background: rgba(0,230,118,.04); }
.sbox.warn .sbox-val { color: var(--gold); }

/* countdown ring */
.countdown-wrap { display: flex; flex-direction: column; align-items: center; padding: 1.1rem 0; }
.ring-container  { position: relative; width: 108px; height: 108px; margin-bottom: .6rem; }
.ring-svg  { transform: rotate(-90deg); }
.ring-bg   { fill: none; stroke: var(--border); stroke-width: 8; }
.ring-fill { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-time { font-size: 1.3rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1; }
.ring-sub  { font-size: .61rem; color: var(--muted); margin-top: 2px; }

.sub-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; margin-bottom: 1rem; }
.sub-card h3 { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.sub-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.sub-row:last-child { border-bottom: none; }
.sr-l { font-size: .79rem; color: var(--muted); }
.sr-v { font-size: .79rem; font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.sr-v.green { color: var(--green); }
.sr-v.gold  { color: var(--gold); }

/* ── PREMIUM MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75); backdrop-filter: blur(8px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.8rem;
  max-width: 480px; width: 100%; position: relative;
  animation: slideUp .3s ease; max-height: 90vh; overflow-y: auto;
}
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.modal-close {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--surface2); border: 1px solid var(--border); color: var(--muted);
  width: 27px; height: 27px; border-radius: 50%; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-title { font-size: 1.3rem; font-weight: 800; margin-bottom: .3rem; background: linear-gradient(135deg,#ffd740,#ff9800); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.modal-sub   { color: var(--muted); font-size: .79rem; margin-bottom: 1.4rem; }

.plans { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 1.3rem; }
.plan {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: 10px; padding: .9rem; cursor: pointer;
  transition: border-color .2s, background .2s; position: relative;
}
.plan:hover    { border-color: var(--gold); }
.plan.selected { border-color: var(--gold); background: rgba(255,215,64,.04); }
.plan-name     { font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .06em; }
.plan-price    { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.plan-period   { font-size: .68rem; font-weight: 400; color: var(--muted); }
.plan-days     { font-size: .67rem; color: var(--blue); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.plan-features { margin-top: .55rem; font-size: .69rem; color: var(--muted); line-height: 1.85; }
.plan-features li { list-style: none; }
.plan-features li::before { content: '✓ '; color: var(--green); font-weight: 700; }
.plan-popular {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000;
  font-size: .6rem; font-weight: 800; padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.gpay-btn {
  width: 100%; background: #000; color: #fff; border: none;
  border-radius: 9px; padding: 12px; font-size: .9rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Syne', sans-serif;
}
.gpay-btn:hover { background: #1a1a1a; }
.secure-note { text-align: center; font-size: .67rem; color: var(--muted); margin-top: .6rem; font-family: 'JetBrains Mono', monospace; }

/* ── TOAST & FLASH ── */
#toast {
  position: fixed; bottom: 1.6rem; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface); border: 1px solid var(--green); color: var(--green);
  padding: 8px 18px; border-radius: 40px;
  font-size: .77rem; font-family: 'JetBrains Mono', monospace;
  z-index: 300; transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 0 20px rgba(0,230,118,.13); white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

.flash {
  position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
  background: rgba(64,196,255,.12); border: 1px solid var(--blue); color: var(--blue);
  padding: 6px 16px; border-radius: 26px;
  font-size: .74rem; font-family: 'JetBrains Mono', monospace;
  z-index: 250; opacity: 0; pointer-events: none; transition: opacity .3s; white-space: nowrap;
}
.flash.show { opacity: 1; }

/* ── ANIMATIONS ── */
@keyframes fadeIn { from { opacity:0; transform:translateX(-4px); } to { opacity:1; transform:translateX(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 580px) {
  .plans             { grid-template-columns: 1fr; }
  .ticker-row        { flex-direction: column; }
  .tf-grp            { flex-wrap: wrap; }
  .tf-btn            { flex: 1; padding: 9px 0; text-align: center; }
  .strip-tabs        { overflow-x: auto; }
  .strip-tab         { min-width: 80px; font-size: .66rem; }
  .drawer            { width: 255px; }
  .wl-add-row        { flex-wrap: wrap; }
  .chart-refresh-bar { flex-direction: column; align-items: flex-start; gap: 6px; }
}


@keyframes proFlow{

0%{
background-position:200% center;
}

100%{
background-position:0% center;
}

}

.plan-badge.pro{

background:
linear-gradient(
90deg,
#FFD700,
#ff9800
);

color:black;

font-weight:700;

box-shadow:
0 0 12px
rgba(255,215,0,.5);

}

.wizard-page{

display:none;

animation:fade .3s;

}

.wizard-page.active{

display:block;

}

@keyframes fade{

from{

opacity:0;
transform:translateY(10px);

}

to{

opacity:1;
transform:none;

}

}

.step-wrap{

display:flex;

justify-content:center;

align-items:center;

gap:8px;

margin:18px 0;

}

.step{

width:34px;
height:34px;

border-radius:50%;

display:flex;
align-items:center;
justify-content:center;

background:#222;

font-weight:700;

transition:.3s;

}

.step.active{

background:
linear-gradient(
90deg,
#FFD700,
#ff9800
);

color:black;

}

.step-line{

width:40px;
height:3px;

background:#333;

border-radius:99px;

}

.wizard-btns{

display:flex;

gap:10px;

}

.wiz-btn{

flex:1;

height:48px;

border:none;

border-radius:12px;

cursor:pointer;

font-weight:700;

}

.back{

background:#222;
color:white;

}

.next{

background:
linear-gradient(
90deg,
#FFD700,
#ff9800
);

color:black;

}

.done-wrap{

padding:30px;
text-align:center;

}

.done-icon{

font-size:50px;

margin-bottom:12px;

color:#5ee27a;

}

.pay-box{

padding:16px;

border-radius:16px;

background:#161616;

text-align:center;

}




/*terbaru*/

:root{

--bg:#060912;
--card:#0d111d;
--line:#1f2637;

--text:#fff;
--soft:#8b93aa;

--green:#00F57A;
--yellow:#FFD23B;

--nav:#2b2f37;
--navActive:#3d434f;

}



.light{

--bg:#f5f6fa;

--card:#ffffff;

--line:#e8e8e8;

--text:#111;

--soft:#666;

--green:#00D764;

--nav:#efefef;

--navActive:#dcdcdc;

}



body{

background:var(--bg);

color:var(--text);

transition:.3s;

}



/* agar halaman tidak ketiban nav */

.main{

padding-bottom:120px;

}



/* TOP */

.profile-top{

display:flex;

justify-content:space-between;

align-items:center;

margin-bottom:25px;

}


.top-right{

display:flex;

gap:10px;

align-items:center;

}


.theme-btn{

background:var(--card);

border:1px solid var(--line);

width:45px;

height:45px;

border-radius:14px;

color:var(--text);

cursor:pointer;

}



.streak{

padding:10px 15px;

background:#2b220d;

border-radius:999px;

color:#ffb347;

}





/* TAB */

.profile-tabs{

display:flex;

gap:10px;

overflow:auto;

padding-bottom:5px;

margin-bottom:25px;

}


.profile-tabs::-webkit-scrollbar{

display:none;

}


.tab{

background:var(--card);

border:1px solid var(--line);

color:var(--soft);

padding:12px 18px;

border-radius:14px;

white-space:nowrap;

cursor:pointer;

transition:.25s;

}


.tab.active{

background:#132238;

color:var(--green);

border:1px solid var(--green);

}





/* CARD */

.dark-card{

background:var(--card);

border:1px solid var(--line);

padding:20px;

border-radius:20px;

margin-bottom:20px;

}



.progress{

height:7px;

background:#1a2235;

border-radius:99px;

margin-top:15px;

overflow:hidden;

}



.fill{

height:100%;

width:20%;

border-radius:99px;

background:

linear-gradient(

90deg,

#00F57A,

#FFD23B

);

}





/* PACKAGE */

.slider-bg{

display:flex;

gap:18px;

overflow:auto;

padding:15px;

border-radius:28px;

background:

linear-gradient(

135deg,

#162544,

#101722

);

}


.slider-bg::-webkit-scrollbar{

display:none;

}


.package-card{

min-width:250px;

background:var(--card);

border:1px solid var(--line);

border-radius:25px;

padding:25px;

position:relative;

flex-shrink:0;

}



.package-card.pro{

border:1px solid gold;

box-shadow:

0 0 20px

rgba(255,215,0,.25);

}



.popular{

position:absolute;

top:14px;

right:14px;

background:gold;

padding:5px 10px;

border-radius:20px;

font-size:11px;

font-weight:700;

color:black;

}



.price{

font-size:28px;

font-weight:700;

margin:14px 0;

color:var(--green);

}



.package-card button{

width:100%;

border:none;

background:var(--green);

padding:14px;

border-radius:14px;

font-weight:700;

cursor:pointer;

margin-top:15px;

}





/* GLOBAL BOTTOM MENU */

/* ========= MOBILE APP NAV ========= */

/* ===== MOBILE NAV RTS ===== */

/* ========= MOBILE DEFAULT ========= */

.mobile-nav{

display:flex;

position:fixed;

left:0;
right:0;
bottom:0;

height:63px;

justify-content:space-around;
align-items:center;

background:#0d111d;

border-top:
1px solid #1f2637;

z-index:99999;

}



/* ITEM MOBILE */

.mobile-nav .m-item{

all:unset;

flex:1;

height:100%;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

gap:4px;

cursor:pointer;

color:#70798d;

position:relative;

transition:.25s;

border-radius:14px;

box-sizing:border-box;

}



.mobile-nav .m-icon{

font-size:18px;

line-height:1;

}



.mobile-nav .m-label{

font-size:.65rem;

font-weight:600;

font-family:'Syne',sans-serif;

}



/* ACTIVE */

.mobile-nav .m-item.active{

background:
rgba(0,245,122,.10);

color:var(--green);

box-shadow:
inset 0 0 12px
rgba(0,245,122,.08);

}



.mobile-nav .m-item.active .m-icon,

.mobile-nav .m-item.active .m-label{

color:var(--green);

}



.mobile-nav .m-item.active:before{

content:"";

position:absolute;

top:0;

left:50%;

transform:translateX(-50%);

width:28px;

height:2px;

border-radius:99px;

background:var(--green);

box-shadow:
0 0 10px
var(--green);

}



/* ===== DESKTOP ===== */

.btn-ham{

display:none;

}



@media screen and (min-width:992px){

.mobile-nav{

display:none !important;

}


.btn-ham{

width:42px;
height:42px;

background:#131822;

border:1px solid #222b3a;

border-radius:12px;

display:flex!important;

flex-direction:column;

justify-content:center;
align-items:center;

gap:5px;

padding:0;

cursor:pointer;

z-index:9999;

}



.btn-ham span{

display:block!important;

width:18px;

height:2px;

background:#fff;

border-radius:99px;

}


.main{

padding-bottom:20px;

}

}

/* DRAWER DESKTOP */

.drawer{

display:block;

}


/* desktop tidak perlu ruang nav */

.main{

padding-bottom:20px;

}

}