@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg: #0B0E11;
  --bg-card: #1E2329;
  --bg-input: #2B3139;
  --bg-hover: #2B3139;
  --primary: #F0B90B;
  --primary-soft: rgba(240,185,11,0.12);
  --primary-border: rgba(240,185,11,0.25);
  --green: #0ECB81;
  --green-soft: rgba(14,203,129,0.12);
  --red: #F6465D;
  --red-soft: rgba(246,70,93,0.12);
  --text-1: #EAECEF;
  --text-2: #848E9C;
  --text-3: #5E6673;
  --border: #2B3139;
  --border-soft: #1E2329;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --navbar-h: 56px;
  --bottombar-h: 60px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { font-size:16px; min-height:100%; }
body {
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  background:var(--bg); color:var(--text-1);
  min-height:100vh; min-height:100dvh; max-width:430px; margin:0 auto;
  position:relative; overflow-x:hidden; overflow-y:auto;
  overscroll-behavior-y:auto; -webkit-overflow-scrolling:touch;
  -webkit-font-smoothing:antialiased;
}

body {
  background:#0B0E11;
}

/* Loading screen sebelum JS ready */
.app-loading {
  position:fixed; inset:0; z-index:9999;
  background:#0B0E11;
  display:flex; align-items:center; justify-content:center;
}

.app-loading.hide {
  opacity:0;
  transition:opacity 0.3s;
  pointer-events:none;
}

.app-loading-spinner {
  width:32px; height:32px;
  border:3px solid rgba(255,255,255,0.1);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:appSpin 0.8s linear infinite;
}

@keyframes appSpin {
  to { transform:rotate(360deg); }
}
/* Smooth page transition */
.page {
  animation:pageIn 0.25s ease-out;
}

@keyframes pageIn {
  from { opacity:0; transform:translateY(8px); }
  to { opacity:1; transform:translateY(0); }
}

/* Auth pages juga */
.auth-page.active {
  animation:pageIn 0.25s ease-out;
}

/* Landing page */
.landing-page.active {
  animation:pageFade 0.3s ease-out;
}

@keyframes pageFade {
  from { opacity:0; }
  to { opacity:1; }
}
/* ══════════════════════════════════════════════════════════════
   PROFILE PAGE — REDESIGN
   ══════════════════════════════════════════════════════════════ */
#page-profile {
  padding-left:0; padding-right:0;
  padding-top:calc(var(--navbar-h) + 4px);
}

.prof-head {
  display:flex; align-items:center; gap:14px; padding:18px 20px 0;
}
.prof-avatar-wrap {
  position:relative; width:60px; flex-shrink:0;
}
.prof-avatar-lg {
  width:60px; height:60px; border-radius:50%;
  background:linear-gradient(155deg, #EFC878, #D8A94E);
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:22px; color:#1A1400;
  overflow:hidden;
}
.prof-avatar-lg img {
  width:100%; height:100%; object-fit:cover; border-radius:50%;
}
.prof-tier-ring {
  position:absolute; inset:-3px; border-radius:50%;
  border:2px solid var(--primary); opacity:0.5; pointer-events:none;
}
.profile-avatar-edit {
  position:absolute; bottom:0; right:-4px;
  width:22px; height:22px; border-radius:50%;
  background:var(--primary); border:2px solid var(--bg-card);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.profile-avatar-edit svg { width:10px; height:10px; color:#1A1400; }

.prof-info { flex:1; min-width:0; }
.prof-name-row { display:flex; align-items:center; gap:6px; }
.prof-name { font-size:16.5px; font-weight:700; }
.prof-verified { color:var(--green); display:flex; flex-shrink:0; }
.prof-uid-row { display:flex; align-items:center; gap:6px; margin-top:4px; }
.prof-uid { font-size:12px; color:var(--text-3); font-family:'Space Grotesk',sans-serif; }
.prof-copy-ico { background:none; border:none; color:var(--text-3); display:flex; cursor:pointer; }
.prof-tier-badge {
  display:inline-flex; align-items:center; gap:4px; margin-top:7px;
  font-size:10.5px; font-weight:700; color:#1A1400;
  background:linear-gradient(120deg, #EFC878, #D8A94E);
  padding:3px 9px; border-radius:100px;
}

.prof-stat-strip {
  display:flex; margin:18px 20px 0;
  background:var(--bg-card); border-radius:16px; overflow:hidden;
}
.prof-stat-cell {
  flex:1; padding:14px 12px; text-align:center;
  border-left:1px solid rgba(255,255,255,0.05);
}
.prof-stat-cell:first-child { border-left:none; }
.prof-stat-cell .v { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:15px; }
.prof-stat-cell .l { font-size:10.5px; color:var(--text-3); margin-top:4px; }

.prof-sec-level {
  margin:12px 20px 0; padding:16px 18px;
  border-radius:16px; background:var(--bg-card);
}
.prof-sec-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.prof-sec-top .t1 { font-size:13.5px; font-weight:600; }
.prof-sec-top .badge { font-size:11px; font-weight:700; color:#EFC878; }
.prof-meter { height:5px; border-radius:100px; background:var(--bg-hover); overflow:hidden; }
.prof-meter-fill { height:100%; width:66%; background:linear-gradient(90deg, #D8A94E, #EFC878); border-radius:100px; }
.prof-sec-foot { display:flex; justify-content:space-between; margin-top:9px; font-size:11px; color:var(--text-3); }
.prof-sec-foot .cta { color:#EFC878; font-weight:600; }

.prof-section { padding:22px 20px 0; }
.prof-section-title {
  font-size:11.5px; font-weight:700; color:var(--text-3);
  letter-spacing:.06em; text-transform:uppercase; margin-bottom:10px; padding:0 2px;
}
.prof-menu-list { background:var(--bg-card); border-radius:16px; overflow:hidden; }
.prof-menu-row {
  display:flex; align-items:center; gap:13px;
  padding:14px 16px; border-bottom:1px solid rgba(255,255,255,0.05);
}
.prof-menu-row:last-child { border-bottom:none; }
.prof-menu-ico {
  width:32px; height:32px; border-radius:9px;
  background:var(--bg-hover); display:flex; align-items:center; justify-content:center;
  flex-shrink:0; color:var(--text-2);
}
.prof-menu-txt { flex:1; min-width:0; font-size:13.5px; font-weight:500; }
.prof-menu-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.prof-menu-status { font-size:11.5px; font-weight:600; }
.prof-menu-status.warn { color:var(--red); }
.prof-menu-status.ok { color:var(--green); }
.prof-menu-status.mid { color:var(--text-3); }
.prof-chev { color:var(--text-3); display:flex; }

.prof-btn-danger {
  width:calc(100% - 40px); margin:22px 20px 0; padding:14px 0;
  border-radius:13px; background:var(--bg-card);
  border:1px solid rgba(246,70,93,0.25); color:var(--red);
  font-size:13.5px; font-weight:600; cursor:pointer; font-family:inherit;
}
.prof-btn-delete {
  width:calc(100% - 40px); margin:8px 20px 0; padding:14px 0;
  border-radius:13px; background:transparent;
  border:1px solid rgba(255,255,255,0.06); color:var(--text-3);
  font-size:12px; font-weight:500; cursor:pointer; font-family:inherit;
}
.prof-version {
  text-align:center; font-size:11px; color:var(--text-3);
  margin-top:16px; padding-bottom:20px;
}
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

h1 { font-size:1.6rem; font-weight:800; }
h2 { font-size:1.25rem; font-weight:700; }
h3 { font-size:1.05rem; font-weight:700; }
h4 { font-size:0.92rem; font-weight:600; }
p { font-size:0.85rem; color:var(--text-2); line-height:1.6; }

/* ── BUTTONS ── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:12px 20px; border-radius:var(--radius);
  font-size:0.85rem; font-weight:600; cursor:pointer;
  border:none; outline:none; transition:all 0.15s;
  font-family:inherit; white-space:nowrap;
}
.btn:hover { filter:brightness(1.04); }
.btn:active { transform:scale(0.97); }
.btn-primary {
  background:linear-gradient(135deg, #F8D33A 0%, var(--primary) 100%);
  color:#0B0E11;
  box-shadow:0 10px 24px rgba(240,185,11,0.18);
}
.btn-green { background:var(--green); color:#fff; }
.btn-red { background:var(--red); color:#fff; }
.btn-outline { background:transparent; border:1px solid var(--border); color:var(--text-2); }
.btn-secondary { background:var(--bg-input); color:var(--text-1); }
.btn-full { width:100%; }
.btn-lg { padding:14px 24px; font-size:0.9rem; font-weight:700; }
.btn-sm { padding:8px 14px; font-size:0.78rem; }
.btn:disabled { opacity:0.5; cursor:not-allowed; }

/* ── CARDS ── */
.card {
  background:var(--bg-card); border-radius:var(--radius-lg);
  padding:16px; border:1px solid var(--border);
}

/* ── FORMS ── */
.form-group { margin-bottom:14px; }
.form-label { font-size:0.75rem; font-weight:700; color:#B7BDC6; margin-bottom:7px; display:block; }
.form-input {
  width:100%; padding:12px 14px;
  background:var(--bg-input); border:1px solid var(--border);
  border-radius:var(--radius); color:var(--text-1);
  font-size:0.85rem; font-family:inherit; outline:none;
  transition:border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color:var(--primary); background:#303740; box-shadow:0 0 0 3px rgba(240,185,11,0.08); }
.form-input::placeholder { color:var(--text-3); }
.form-input:disabled { opacity:0.4; cursor:not-allowed; }
.form-input-icon { position:relative; }
.form-input-icon .form-input { padding-left:42px; }
.form-input-icon .input-icon {
  position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; color:var(--text-3);
  transition:color 0.2s;
}
.form-input-icon:focus-within .input-icon { color:var(--primary); }

/* ── TAGS ── */
.tag {
  display:inline-flex; align-items:center; gap:3px;
  padding:2px 8px; border-radius:var(--radius-full);
  font-size:0.68rem; font-weight:600;
}
.tag-green { background:var(--green-soft); color:var(--green); }
.tag-red { background:var(--red-soft); color:var(--red); }
.tag-yellow { background:var(--primary-soft); color:var(--primary); }

/* ── NAVBAR ── */
.navbar {
  position:fixed; top:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; height:var(--navbar-h);
  background:rgba(13,17,23,0.94);
  border-bottom:1px solid rgba(255,255,255,0.06);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 14px; z-index:100;
  gap:8px;
}
.navbar-brand { display:flex; align-items:center; gap:8px; text-decoration:none; }
.navbar-logo {
  width:29px; height:29px; background:var(--primary); border-radius:8px;
  display:flex; align-items:center; justify-content:center;
}
.navbar-logo svg { width:16px; height:16px; }
.brand-mark {
  color:#0B0E11; font-size:0.72rem; font-weight:900;
  line-height:1; font-family:'Inter',system-ui,-apple-system,sans-serif;
}
.navbar-title { font-size:0.72rem; font-weight:800; color:var(--text-1); letter-spacing:0.25px; }
.navbar-title span { color:var(--primary); }
.navbar-actions { display:flex; align-items:center; gap:9px; }
.navbar-balance {
  min-width:82px; height:32px; padding:5px 9px;
  display:flex; flex-direction:column; justify-content:center; align-items:flex-end;
  border:1px solid rgba(255,255,255,0.08); border-radius:7px;
  background:rgba(255,255,255,0.035);
  text-decoration:none; line-height:1.05;
}
.navbar-balance span {
  color:#636E7B; font-size:0.48rem; font-weight:600;
  letter-spacing:0.45px; text-transform:uppercase;
}
.navbar-balance strong {
  display:block; max-width:92px; margin-top:3px; overflow:hidden;
  color:#E6EDF3; font-size:0.63rem; font-weight:750;
  text-overflow:ellipsis; white-space:nowrap; letter-spacing:-0.15px;
}
.navbar-icon-btn {
  width:31px; height:31px; border-radius:50%;
  background:transparent; border:1px solid rgba(255,255,255,0.07);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center; position:relative;
}
.navbar-icon-btn svg { width:16px; height:16px; color:var(--text-2); }
.badge {
  position:absolute; top:3px; right:3px; width:7px; height:7px;
  background:var(--red); border-radius:50%; border:1.5px solid var(--bg-card);
}
.badge.hidden { display:none; }
.avatar-sm {
  width:30px; height:30px; border-radius:50%;
  background:var(--primary); color:#0B0E11;
  display:flex; align-items:center; justify-content:center;
  font-size:0.7rem; font-weight:800; cursor:pointer; text-decoration:none;
  box-shadow:0 0 0 2px rgba(240,185,11,0.1);
}

/* ── BOTTOM BAR ── */
.bottom-bar {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px; height:var(--bottombar-h);
  background:var(--bg-card); border-top:1px solid var(--border);
  display:flex; align-items:center; justify-content:space-around;
  z-index:100; padding-bottom:env(safe-area-inset-bottom,0);
}
.bb-item {
  display:flex; flex-direction:column; align-items:center; gap:2px;
  flex:1; cursor:pointer; text-decoration:none; padding:6px 0;
}
.bb-item svg { width:20px; height:20px; color:var(--text-3); transition:color 0.15s; }
.bb-item span { font-size:0.62rem; font-weight:500; color:var(--text-3); transition:color 0.15s; }
.bb-item.active svg { color:var(--primary); }
.bb-item.active span { color:var(--primary); font-weight:700; }

/* ── PAGES ── */
.page {
  padding:calc(var(--navbar-h) + 12px) 14px calc(var(--bottombar-h) + 14px);
  min-height:100vh; display:none;
}
.page.active { display:block; }

/* ── AUTH PAGES ── */
.auth-page {
  max-width:430px; margin:0 auto; min-height:100vh; min-height:100dvh;
  background:
    radial-gradient(circle at 16% 0%, rgba(240,185,11,0.13), transparent 28%),
    radial-gradient(circle at 100% 24%, rgba(14,203,129,0.08), transparent 24%),
    linear-gradient(180deg, #11161C 0%, var(--bg) 46%, #07090C 100%);
  display:none; position:relative; overflow-x:hidden; overflow-y:visible;
}
.auth-page::before {
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size:38px 38px; mask-image:linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 70%);
  pointer-events:none;
}
.auth-page.active { display:flex; flex-direction:column; }
.auth-shell {
  position:relative; z-index:1; width:100%; min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; justify-content:center;
  padding:clamp(58px, 9dvh, 78px) 20px clamp(14px, 3dvh, 24px);
  overflow:visible;
}
.auth-back-btn {
  position:absolute; top:24px; left:20px; width:36px; height:36px;
  border-radius:10px; border:1px solid rgba(255,255,255,0.08);
  background:rgba(20,24,30,0.9); color:#C9D0DA;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  backdrop-filter:blur(12px);
}
.auth-back-btn svg { width:18px; height:18px; }
.auth-panel {
  position:relative; padding:22px 18px 18px;
  border:1px solid rgba(255,255,255,0.08); border-radius:16px;
  background:linear-gradient(180deg, rgba(20,24,30,0.96), rgba(12,15,19,0.96));
  box-shadow:0 18px 46px rgba(0,0,0,0.34);
  backdrop-filter:blur(18px);
  overflow:visible;
}
.auth-panel-register { padding-top:22px; }
.auth-header { padding:0 0 16px; }
.auth-body { padding:0; flex:1; }
.auth-logo { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.auth-logo-icon {
  width:38px; height:38px; background:linear-gradient(135deg, #F8D33A 0%, var(--primary) 100%); border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 22px rgba(240,185,11,0.16);
}
.auth-brand-kicker { font-size:0.6rem; color:var(--text-3); font-weight:700; letter-spacing:1.5px; text-transform:uppercase; }
.auth-brand-name { font-size:0.85rem; font-weight:900; letter-spacing:0.6px; }
.auth-badge {
  display:inline-flex; align-items:center; margin-bottom:12px;
  padding:4px 8px; border-radius:6px;
  border:1px solid var(--primary-border); background:var(--primary-soft);
  color:var(--primary); font-size:0.62rem; font-weight:800;
  letter-spacing:0.8px; text-transform:uppercase;
}
.auth-header h2 { font-size:1.22rem; font-weight:800; line-height:1.2; margin-bottom:6px; }
.auth-header p { font-size:0.78rem; color:#9AA4B2; line-height:1.5; }
.auth-panel .form-input {
  min-height:44px; border-radius:10px;
  background:rgba(35,40,47,0.92); border-color:rgba(255,255,255,0.075);
}
.auth-panel .form-input-icon .form-input { padding-left:44px; }
.auth-panel .btn-lg { min-height:46px; border-radius:10px; }
.auth-security-note {
  display:flex; align-items:center; gap:8px;
  margin:-2px 0 12px; padding:8px 9px;
  border:1px solid rgba(14,203,129,0.12); border-radius:10px;
  background:rgba(14,203,129,0.045);
  color:#98A2B0; font-size:0.7rem; line-height:1.4;
}
.auth-security-note svg { width:15px; height:15px; color:var(--green); flex-shrink:0; }
.auth-register-link {
  display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:14px; padding-top:13px; border-top:1px solid rgba(255,255,255,0.07);
  color:var(--text-2); font-size:0.78rem;
}
.auth-register-link button {
  border:none; background:transparent; color:var(--primary);
  font:inherit; font-weight:800; cursor:pointer; padding:0;
}

#auth-register .auth-shell { padding-top:clamp(84px, 10dvh, 98px); padding-bottom:clamp(16px, 2.8dvh, 24px); }
#auth-register .auth-shell { justify-content:flex-start; }
#auth-register .auth-panel { padding:18px 16px 14px; }
#auth-register .auth-header { padding-bottom:12px; }
#auth-register .auth-logo { margin-bottom:12px; }
#auth-register .form-group { margin-bottom:10px; }

/* ══════════════════════════════════════════════════════════════
   LANDING PAGE — INSTITUTIONAL REDESIGN
   ══════════════════════════════════════════════════════════════ */
.landing-page {
  max-width:100%; margin:0 auto; min-height:100vh; min-height:100dvh;
  background:#0A0D12; display:none; flex-direction:column;
  overflow-x:hidden; overflow-y:auto; color:#EDEFF2;
}
.landing-page.active { display:flex; }

.land-wrap { max-width:1200px; margin:0 auto; padding:0 32px; }
@media(max-width:640px) { .land-wrap { padding:0 18px; } }

/* ── NAV ── */
.land-header {
  position:sticky; top:0; z-index:50;
  background:rgba(10,13,18,0.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #1B212B;
}
.land-nav {
  display:flex; align-items:center; justify-content:space-between;
  height:64px; gap:12px;
}
.land-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.land-brand-logo { width:32px; height:32px; border-radius:7px; object-fit:contain; }
.land-brand-text { display:flex; flex-direction:column; line-height:1.1; }
.land-b1 { font-size:9.5px; letter-spacing:.14em; color:#5C6675; font-weight:600; }
.land-b2 { font-size:14.5px; font-weight:700; color:#EDEFF2; }
.land-nav-links { display:flex; align-items:center; gap:30px; }
.land-nav-links a { font-size:14px; color:#9AA4B2; font-weight:500; text-decoration:none; transition:color .15s; }
.land-nav-links a:hover { color:#EDEFF2; }
.land-nav-cta { display:flex; align-items:center; gap:10px; }

@media(max-width:860px) { .land-nav-links { display:none; } }
@media(max-width:480px) { .land-nav { height:58px; } }

/* ── BUTTONS ── */
.land-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-size:13.5px; font-weight:600; padding:9px 18px; border-radius:6px;
  cursor:pointer; border:1px solid transparent; transition:all .15s;
  white-space:nowrap; font-family:inherit;
}
.land-btn-ghost { color:#EDEFF2; border-color:#242B36; background:transparent; }
.land-btn-ghost:hover { border-color:#9AA4B2; }
.land-btn-gold { background:#E8B33D; color:#181200; border:none; }
.land-btn-gold:hover { background:#FFD36A; }
.land-btn-lg { padding:13px 26px; font-size:15px; }

/* ── TICKER ── */
.land-ticker-bar {
  background:#10141B; border-bottom:1px solid #1B212B;
  overflow:hidden; height:38px; display:flex; align-items:center;
}
.land-ticker-track {
  display:flex; gap:40px; white-space:nowrap;
  animation:landTickScroll 32s linear infinite; padding-left:32px;
}
.land-ticker-bar:hover .land-ticker-track { animation-play-state:paused; }
@keyframes landTickScroll { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.land-tick { display:flex; align-items:center; gap:8px; font-size:12.5px; }
.land-tick .sym { color:#9AA4B2; font-weight:600; }
.land-tick .px { font-weight:600; font-family:'Space Grotesk',sans-serif; }
.land-tick .chg { font-family:'Space Grotesk',sans-serif; font-weight:600; }
.land-tick .chg.up { color:#19D3AE; }
.land-tick .chg.dn { color:#F0546A; }
@media(max-width:640px) {
  .land-ticker-bar { height:34px; }
  .land-ticker-track { gap:26px; padding-left:18px; }
  .land-tick { font-size:11.5px; }
}

/* ── HERO ── */
.land-hero { padding:88px 0 64px; }
.land-hero-grid { display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
.land-eyebrow {
  display:inline-flex; align-items:center; gap:7px;
  font-size:12.5px; color:#FFD36A; font-weight:600;
  padding:6px 12px; border:1px solid rgba(232,179,61,0.35); border-radius:100px;
  background:rgba(232,179,61,0.06); margin-bottom:22px;
}
.land-dot { width:6px; height:6px; border-radius:50%; background:#19D3AE; animation:landPulse 2s infinite; }
@keyframes landPulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.land-h1 {
  font-family:'Space Grotesk',sans-serif; font-weight:600;
  font-size:clamp(30px,6vw,52px); line-height:1.1; letter-spacing:-0.01em;
  color:#EDEFF2; margin-bottom:20px;
}
.land-h1 span { color:#E8B33D; }
.land-hero-sub { font-size:clamp(14.5px,2vw,16.5px); line-height:1.65; color:#9AA4B2; max-width:460px; margin-bottom:30px; }
.land-hero-actions { display:flex; gap:14px; margin-bottom:32px; flex-wrap:wrap; }
.land-hero-meta { display:flex; gap:28px; flex-wrap:wrap; row-gap:16px; }
.land-hero-meta div { display:flex; flex-direction:column; }
.land-meta-v { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:19px; }
.land-meta-l { font-size:12px; color:#5C6675; margin-top:2px; }

@media(max-width:900px) { .land-hero { padding:44px 0 48px; } .land-hero-grid { grid-template-columns:1fr; gap:36px; } }
@media(max-width:640px) {
  .land-hero { padding:32px 0 40px; }
  .land-hero-actions { flex-direction:column; }
  .land-hero-actions .land-btn { width:100%; }
}

/* ── CHART PANEL ── */
.land-chart-panel {
  background:#10141B; border:1px solid #242B36; border-radius:10px;
  padding:22px 22px 0; overflow:hidden;
}
.land-chart-head { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:14px; }
.land-chart-pair { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:16px; }
.land-chart-price { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:26px; margin-top:4px; }
.land-chart-pct { font-size:13px; color:#19D3AE; font-weight:600; }
.land-chart-tabs { display:flex; gap:6px; }
.land-chart-tabs span { font-size:11.5px; color:#5C6675; padding:4px 8px; border-radius:5px; }
.land-chart-tabs span.on { background:#161B24; color:#EDEFF2; }
.land-chart-svg { display:block; width:100%; height:200px; }
.land-depth-rows { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid #1B212B; }
.land-depth-col { padding:14px 20px; }
.land-depth-col + .land-depth-col { border-left:1px solid #1B212B; }
.land-depth-row { display:flex; justify-content:space-between; font-size:12px; padding:3px 0; font-family:'Space Grotesk',sans-serif; }
.land-bid .land-depth-row { color:#19D3AE; }
.land-ask .land-depth-row { color:#F0546A; }

@media(max-width:640px) {
  .land-chart-panel { padding:18px 16px 0; }
  .land-chart-price { font-size:22px; }
  .land-chart-svg { height:150px; }
}

/* ── SECTIONS ── */
.land-section { padding:76px 0; }
.land-sec-head { max-width:560px; margin-bottom:46px; }
.land-sec-head h2 { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:clamp(24px,4.5vw,32px); letter-spacing:-.01em; margin-bottom:12px; color:#EDEFF2; }
.land-sec-head p { color:#9AA4B2; font-size:15.5px; line-height:1.6; }
@media(max-width:640px) { .land-section { padding:48px 0; } .land-sec-head { margin-bottom:30px; } }

/* ── MARKET TABLE ── */
.land-market-table { background:#10141B; border:1px solid #242B36; border-radius:10px; overflow:hidden; }
.land-mt-row {
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr;
  align-items:center; padding:16px 24px; border-bottom:1px solid #1B212B;
  transition:background .15s;
}
.land-mt-row:last-child { border-bottom:none; }
.land-mt-row.head { color:#5C6675; font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:600; padding:14px 24px; }
.land-mt-row:not(.head):hover { background:#161B24; cursor:pointer; }
.land-mt-asset { display:flex; align-items:center; gap:12px; }
.land-coin-ico {
  width:30px; height:30px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:12px; flex-shrink:0;
}
.land-mt-name { font-weight:600; font-size:14.5px; }
.land-mt-name small { display:block; color:#5C6675; font-size:12px; font-weight:500; }
.land-mt-price { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:14.5px; }
.land-mt-chg { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:13.5px; }
.land-mt-chg.up { color:#19D3AE; }
.land-mt-chg.dn { color:#F0546A; }
.land-mt-vol { color:#9AA4B2; font-size:13.5px; font-family:'Space Grotesk',sans-serif; }

@media(max-width:760px) { .land-mt-row { grid-template-columns:1.6fr 1fr 1fr; } .land-mt-row :nth-child(4) { display:none; } }
@media(max-width:420px) { .land-mt-row { grid-template-columns:1.5fr 1fr .8fr; padding:12px; } .land-coin-ico { width:26px; height:26px; } .land-mt-name { font-size:13px; } }

/* ── FEATURES ── */
.land-feat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:#1B212B; border:1px solid #1B212B; border-radius:10px; overflow:hidden; }
.land-feat-card { background:#10141B; padding:32px 28px; }
.land-feat-ico { width:38px; height:38px; border-radius:8px; background:#161B24; border:1px solid #242B36; display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.land-feat-card h3 { font-size:16.5px; font-weight:600; margin-bottom:8px; color:#EDEFF2; }
.land-feat-card p { font-size:14px; color:#9AA4B2; line-height:1.6; }
@media(max-width:760px) { .land-feat-grid { grid-template-columns:1fr; } }

/* ── STATS ── */
.land-stats-bar { background:#10141B; border:1px solid #242B36; border-radius:10px; display:grid; grid-template-columns:repeat(4,1fr); }
.land-stat { padding:30px 24px; text-align:center; border-left:1px solid #1B212B; }
.land-stat:first-child { border-left:none; }
.land-stat-v { font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:28px; color:#E8B33D; }
.land-stat-l { font-size:12.5px; color:#9AA4B2; margin-top:6px; }
@media(max-width:700px) { .land-stats-bar { grid-template-columns:repeat(2,1fr); } .land-stat:nth-child(3) { border-left:none; } }
@media(max-width:480px) { .land-stat { padding:22px 14px; } .land-stat-v { font-size:22px; } }

/* ── SECURITY ── */
.land-sec-list { display:flex; flex-direction:column; gap:1px; background:#1B212B; border:1px solid #1B212B; border-radius:10px; overflow:hidden; }
.land-sec-item { background:#10141B; display:grid; grid-template-columns:44px 1fr auto; align-items:center; gap:20px; padding:22px 26px; }
.land-sec-n { font-family:'Space Grotesk',sans-serif; color:#5C6675; font-size:13px; }
.land-sec-item h4 { font-size:15px; font-weight:600; margin-bottom:4px; color:#EDEFF2; }
.land-sec-item p { font-size:13.5px; color:#9AA4B2; }
.land-check { width:22px; height:22px; border-radius:50%; background:rgba(25,211,174,.12); display:flex; align-items:center; justify-content:center; }
@media(max-width:560px) { .land-sec-item { grid-template-columns:28px 1fr auto; gap:12px; padding:18px 16px; } }

/* ── CTA ── */
.land-cta-band {
  background:linear-gradient(120deg,#161200,#0A0D12 55%);
  border:1px solid #242B36; border-radius:14px;
  padding:56px; display:flex; justify-content:space-between; align-items:center; gap:40px;
  position:relative; overflow:hidden;
}
.land-cta-band::before {
  content:''; position:absolute; top:-60%; right:-10%; width:420px; height:420px;
  background:radial-gradient(circle,rgba(232,179,61,0.16),transparent 70%);
}
.land-cta-band h3 { font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:600; margin-bottom:8px; color:#EDEFF2; }
.land-cta-band p { color:#9AA4B2; font-size:14.5px; max-width:420px; }
.land-cta-actions { display:flex; gap:12px; flex-shrink:0; position:relative; z-index:1; }
@media(max-width:760px) { .land-cta-band { flex-direction:column; align-items:flex-start; padding:40px 28px; } }
@media(max-width:480px) { .land-cta-band { padding:30px 20px; } .land-cta-actions { flex-direction:column; width:100%; } .land-cta-actions .land-btn { width:100%; } }

/* ── FOOTER ── */
.land-footer { border-top:1px solid #1B212B; padding:56px 0 32px; }
.land-foot-grid { display:grid; grid-template-columns:1.4fr repeat(4,1fr); gap:32px; margin-bottom:44px; }
.land-foot-col h5 { font-size:12.5px; color:#5C6675; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.land-foot-col a { display:block; font-size:13.5px; color:#9AA4B2; margin-bottom:11px; text-decoration:none; transition:color .15s; }
.land-foot-col a:hover { color:#EDEFF2; }
.land-foot-bottom { display:flex; justify-content:space-between; padding-top:28px; border-top:1px solid #1B212B; }
.land-foot-bottom p { font-size:12.5px; color:#5C6675; }
.land-disclaimer { font-size:12px; color:#5C6675; line-height:1.7; margin-top:20px; max-width:820px; }
@media(max-width:800px) { .land-foot-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:560px) { .land-foot-grid { grid-template-columns:1fr 1fr; gap:28px 20px; } .land-foot-col:first-child { grid-column:1/-1; } }
/* Rapetin semua section landing */
.land-section { padding:40px 0 !important; }
.land-sec-head { margin-bottom:24px !important; }
.land-hero { padding:36px 0 28px !important; }
.land-eyebrow { margin-bottom:16px !important; }
.land-h1 { margin-bottom:14px !important; }
.land-hero-sub { margin-bottom:20px !important; }
.land-hero-actions { margin-bottom:20px !important; }
.land-hero-meta { gap:20px !important; }
.land-feat-card { padding:22px 20px !important; }
.land-stat { padding:20px 14px !important; }
.land-sec-item { padding:16px 18px !important; }
.land-cta-band { padding:32px 20px !important; }
.land-footer { padding:36px 0 24px !important; }
.land-foot-grid { margin-bottom:28px !important; }
/* Mobile menu button */
.land-menu-btn {
  display:none; width:36px; height:36px; flex-shrink:0;
  border-radius:6px; border:1px solid #242B36;
  background:transparent; cursor:pointer;
  align-items:center; justify-content:center;
}
.land-menu-btn span {
  display:block; width:16px; height:1.5px; background:#EDEFF2; position:relative;
}
.land-menu-btn span::before, .land-menu-btn span::after {
  content:''; position:absolute; left:0; width:16px; height:1.5px;
  background:#EDEFF2; transition:transform .2s;
}
.land-menu-btn span::before { top:-5px; }
.land-menu-btn span::after { top:5px; }
.land-menu-btn.open span { background:transparent; }
.land-menu-btn.open span::before { transform:translateY(5px) rotate(45deg); }
.land-menu-btn.open span::after { transform:translateY(-5px) rotate(-45deg); }

.land-mobile-drawer {
  display:none; max-height:0; overflow:hidden;
  background:#10141B; border-bottom:1px solid #1B212B;
  transition:max-height .25s;
}
.land-mobile-drawer.open { max-height:340px; }
.land-drawer-inner { padding:8px 18px 20px; display:flex; flex-direction:column; }
.land-mlink {
  padding:13px 2px; font-size:15px; color:#9AA4B2; font-weight:500;
  border-bottom:1px solid #1B212B; text-decoration:none;
}
.land-mbtns { display:flex; gap:10px; margin-top:16px; }
.land-mbtns .land-btn { flex:1; }

@media(max-width:860px) {
  .land-nav-links { display:none !important; }
  .land-menu-btn { display:flex; }
  .land-mobile-drawer { display:block; }
}
@media(max-width:480px) {
  .land-nav-cta .land-btn-ghost { display:none; }
}
/* ══════════════════════════════════════════════════════════════
   TICKER BAR — SEAMLESS SMOOTH MARQUEE
   ══════════════════════════════════════════════════════════════ */
.ticker-wrap {
  background:transparent;
  padding:4px 0 16px;
  overflow:hidden;
  border-radius:0;
  margin-bottom:4px;
  border:none;
  position:relative;
}

.ticker-track {
  display:flex;
  gap:20px;
  white-space:nowrap;
  width:max-content;
  /* Animation is set dynamically via JS for perfect seamless loop */
  will-change:transform;
}

.ticker-track.ticker-animate {
  animation:tickerScroll var(--ticker-dur, 30s) linear infinite;
}

@keyframes tickerScroll {
  0%   { transform:translate3d(0, 0, 0); }
  100% { transform:translate3d(calc(-1 * var(--ticker-half, 50%)), 0, 0); }
}

.ticker-item {
  display:inline-flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
  padding:8px 14px;
  background:#131920;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:8px;
}

.ticker-item span {
  font-size:0.68rem;
  font-weight:650;
  color:var(--text-2);
}

.ticker-item .t-price {
  color:#C9D1D9;
  font-weight:700;
}

.ticker-item .t-up { color:var(--green); }
.ticker-item .t-dn { color:var(--red); }

/* ── PORTFOLIO/SALDO HERO ── */
.saldo-hero {
  background:linear-gradient(135deg, #1E2329 0%, #2B3139 100%);
  border-radius:var(--radius-lg); padding:20px 16px;
  margin-bottom:14px; border:1px solid var(--border);
  position:relative; overflow:hidden;
}
.saldo-hero::after {
  content:''; position:absolute; top:-30px; right:-30px;
  width:100px; height:100px; border-radius:50%;
  background:rgba(240,185,11,0.08);
}
.saldo-hero .label { font-size:0.72rem; color:var(--text-3); font-weight:500; }
.saldo-hero .amount { font-size:1.8rem; font-weight:800; margin:4px 0; position:relative; z-index:1; }
.saldo-hero .sub { font-size:0.78rem; color:var(--text-2); }

/* ── COIN ROW ── */
.coin-row {
  display:flex; align-items:center; gap:10px;
  padding:10px 0; border-bottom:1px solid rgba(43,49,57,0.6);
  cursor:pointer; text-decoration:none;
}
.coin-row:last-child { border-bottom:none; }
.coin-icon {
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
  border-radius:50% !important;
  overflow:hidden;
}
.coin-info { flex:1; min-width:0; }
.coin-name { font-size:0.82rem; font-weight:700; color:var(--text-1); }
.coin-symbol { font-size:0.68rem; color:var(--text-3); font-weight:500; text-transform:uppercase; }
.coin-price-wrap { text-align:right; }
.coin-price { font-size:0.82rem; font-weight:700; color:var(--text-1); }
.coin-change { font-size:0.7rem; font-weight:600; }
.coin-change.up { color:var(--green); }
.coin-change.dn { color:var(--red); }

/* ── SECTION ── */
.section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.section-title { font-size:0.88rem; font-weight:700; color:var(--text-1); }
.section-link { font-size:0.75rem; font-weight:600; color:var(--primary); text-decoration:none; }

/* ── TABS ── */
.tabs {
  display:flex; gap:3px; background:var(--bg-input); padding:3px;
  border-radius:var(--radius); margin-bottom:14px;
}
.tab-btn {
  flex:1; padding:8px; border:none; background:transparent;
  border-radius:6px; font-size:0.75rem; font-weight:600;
  color:var(--text-3); cursor:pointer; transition:all 0.15s;
  font-family:inherit;
}
.tab-btn.active { background:var(--bg-card); color:var(--primary); }

/* ── TIMEFRAME PILLS ── */
.tf-row { display:flex; gap:4px; margin-bottom:10px; overflow-x:auto; padding-bottom:2px; }
.tf-row::-webkit-scrollbar { display:none; }
.tf-pill {
  padding:5px 10px; border-radius:var(--radius-full);
  font-size:0.7rem; font-weight:600; cursor:pointer;
  border:1px solid var(--border); color:var(--text-2);
  background:transparent; white-space:nowrap; transition:all 0.15s;
  font-family:inherit;
}
.tf-pill.active { background:var(--primary); color:#0B0E11; border-color:var(--primary); }

/* ── ORDER FORM ── */
.order-form {
  background:var(--bg-card); border-radius:var(--radius-lg);
  padding:14px; border:1px solid var(--border);
}
.order-tabs { display:flex; gap:0; margin-bottom:14px; border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); }
.order-tab {
  flex:1; padding:10px; text-align:center;
  font-size:0.8rem; font-weight:700; cursor:pointer;
  border:none; background:transparent; transition:all 0.15s;
  font-family:inherit; color:var(--text-2);
}
.order-tab.buy.active { background:var(--green); color:#fff; }
.order-tab.sell.active { background:var(--red); color:#fff; }

/* ── NEWS CARD ── */
.section-caption {
  display:block; margin-top:2px; color:var(--text-3);
  font-size:0.63rem; font-weight:500;
}
.news-section-header { align-items:flex-end; }
.news-item {
  display:flex; align-items:center; gap:12px; padding:13px 2px;
  border-bottom:1px solid rgba(43,49,57,0.55);
  border-radius:0; cursor:pointer; transition:opacity 0.18s ease;
}
.news-item:last-child { border-bottom:none; }
.news-item:active { opacity:0.68; }
.news-index {
  align-self:flex-start; width:25px; padding-top:2px; flex-shrink:0;
  color:#59616D; font-size:0.58rem; font-weight:750;
  letter-spacing:0.6px;
}
.news-item:first-child .news-index { color:var(--primary); }
.news-content { flex:1; min-width:0; }
.news-title {
  margin-top:5px; font-size:0.75rem; font-weight:650;
  color:var(--text-1); line-height:1.42;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.news-meta { display:flex; align-items:center; gap:7px; min-width:0; }
.news-source {
  max-width:58%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:var(--primary); font-size:0.58rem; font-weight:700;
  letter-spacing:0.3px; text-transform:uppercase;
}
.news-time { color:var(--text-3); font-size:0.6rem; white-space:nowrap; }
.news-time::before { content:'•'; margin-right:7px; color:#525B68; }
.news-arrow { width:15px; height:15px; color:#59616D; flex-shrink:0; }

@media (hover:hover) {
  .news-item:hover { opacity:0.76; }
}

/* ── STAT CARDS ── */
.stat-card {
  background:var(--bg-card); border-radius:var(--radius);
  padding:14px; border:1px solid var(--border);
}
.stat-label { font-size:0.68rem; color:var(--text-3); font-weight:500; margin-bottom:3px; }
.stat-value { font-size:1.15rem; font-weight:800; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ── NOTIFICATION PANEL ── */
.notif-panel {
  position:fixed; top:var(--navbar-h); right:0; left:0; max-width:430px;
  margin:0 auto; background:var(--bg-card);
  border-bottom-left-radius:var(--radius-lg); border-bottom-right-radius:var(--radius-lg);
  border:1px solid var(--border); border-top:none;
  z-index:99; padding:14px;
  transform:translateY(-110%); opacity:0;
  transition:all 0.25s ease; pointer-events:none;
}
.notif-panel.open { transform:translateY(0); opacity:1; pointer-events:all; }
.notif-item { display:flex; gap:10px; align-items:flex-start; padding:8px 0; border-bottom:1px solid var(--border); }
.notif-item:last-child { border-bottom:none; }
.notif-dot { width:6px; height:6px; border-radius:50%; background:var(--primary); margin-top:5px; flex-shrink:0; }
.notif-dot.read { background:var(--text-3); }

/* ── PROFILE ── */
.profile-avatar-lg {
  width:72px; height:72px; border-radius:50%;
  background:var(--primary); color:#0B0E11;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; font-weight:800; margin:0 auto;
}

/* ── DIVIDER ── */
.divider { height:1px; background:var(--border); margin:14px 0; }

/* ── SPINNER ── */
.spinner {
  width:18px; height:18px; border-radius:50%;
  border:2px solid rgba(255,255,255,0.2);
  border-top-color:#fff; animation:spin 0.6s linear infinite;
  display:inline-block;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── TOAST ── */
.toast {
  position:fixed;
  bottom:80px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100% - 40px) !important;
  width:auto !important;
  white-space:normal !important;
  word-wrap:break-word !important;
  text-align:center !important;
  line-height:1.4 !important;
  padding:12px 20px !important;
  border-radius:12px !important;
  font-size:0.75rem !important;
  z-index:9999;
}
.toast-success { background:var(--green); color:#fff; }
.toast-error { background:var(--red); color:#fff; }
.toast-info { background:var(--primary); color:#0B0E11; }
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(10px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }

/* ── CHART ── */
#chart-container,
#fut-chart-container {
  width:100%; min-width:0; overflow:hidden;
  border-radius:var(--radius); background:var(--bg-card);
}
#chart-container { height:350px; }

/* ── LEVERAGE SLIDER ── */
.leverage-row { display:flex; align-items:center; gap:8px; margin-bottom:12px; }
.leverage-val { font-size:0.8rem; font-weight:800; color:var(--primary); min-width:40px; }
input[type="range"] {
  -webkit-appearance:none; flex:1; height:4px;
  background:var(--bg-input); border-radius:2px; outline:none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance:none; width:16px; height:16px;
  background:var(--primary); border-radius:50%; cursor:pointer;
}

/* ── PERCENT BUTTONS ── */
.pct-row { display:flex; gap:4px; margin-bottom:10px; }
.pct-btn {
  flex:1; padding:5px; text-align:center; font-size:0.68rem; font-weight:600;
  background:var(--bg-input); border:1px solid var(--border); border-radius:4px;
  color:var(--text-2); cursor:pointer; font-family:inherit;
}
.pct-btn:active { background:var(--primary-soft); color:var(--primary); border-color:var(--primary-border); }

/* ── UTILITIES ── */
.mt-8 { margin-top:8px; }
.mt-12 { margin-top:12px; }
.mt-14 { margin-top:14px; }
.mt-16 { margin-top:16px; }
.mb-8 { margin-bottom:8px; }
.mb-10 { margin-bottom:10px; }
.mb-12 { margin-bottom:12px; }
.mb-14 { margin-bottom:14px; }
.text-green { color:var(--green); }
.text-red { color:var(--red); }
.text-muted { color:var(--text-3); }

/* ── ORDERBOOK ── */
.ob-row {
  display:flex; align-items:center; font-size:0.7rem; font-weight:600;
  padding:1.5px 0; position:relative;
}
.ob-row .ob-bar {
  position:absolute; top:0; bottom:0; right:0; opacity:0.08; border-radius:2px;
}
.ob-row.ask .ob-bar { background:var(--red); }
.ob-row.bid .ob-bar { background:var(--green); }
.ob-row .ob-price { flex:1; text-align:right; position:relative; z-index:1; }
.ob-row .ob-amount { flex:1; text-align:right; color:var(--text-2); position:relative; z-index:1; padding-right:4px; }
.ob-row.ask .ob-price { color:var(--red); }
.ob-row.bid .ob-price { color:var(--green); }

/* ── RECENT TRADES ── */
.rt-row {
  display:flex; align-items:center; font-size:0.68rem; padding:2px 0;
  border-bottom:1px solid rgba(43,49,57,0.3);
}
.rt-row:last-child { border-bottom:none; }
.rt-row .rt-time { flex:0.8; color:var(--text-3); }
.rt-row .rt-price { flex:1; font-weight:700; text-align:center; }
.rt-row .rt-amount { flex:1; text-align:right; color:var(--text-2); }
.rt-row.buy .rt-price { color:var(--green); }
.rt-row.sell .rt-price { color:var(--red); }

/* ── PRICE FLASH ── */
@keyframes flashGreen { 0%{background:rgba(14,203,129,0.25)} 100%{background:transparent} }
@keyframes flashRed { 0%{background:rgba(246,70,93,0.25)} 100%{background:transparent} }
.price-flash-up { animation:flashGreen 0.5s ease; }
.price-flash-dn { animation:flashRed 0.5s ease; }

/* ── SPARKLINE ── */
.sparkline-canvas { width:60px; height:24px; flex-shrink:0; }

.hidden { display:none !important; }

/* ══════════════════════════════════════════════════════════════
   HOME DASHBOARD
   ══════════════════════════════════════════════════════════════ */

#page-home {
  padding-left:18px;
  padding-right:18px;
  padding-top:calc(var(--navbar-h) + 8px);
  background:
    radial-gradient(circle at 100% 0%, rgba(240,185,11,0.045), transparent 26%),
    var(--bg);
}

/* ── HOME HERO CARD (PREMIUM) ── */
.home-hero-card {
  position:relative;
  background:
    linear-gradient(135deg, rgba(240,185,11,0.03) 0%, transparent 40%),
    linear-gradient(320deg, rgba(14,203,129,0.02) 0%, transparent 30%),
    linear-gradient(145deg, #191D22 0%, #1B1F25 50%, #171B20 100%);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:0;
  margin-bottom:14px;
  overflow:hidden;
}

.home-hero-card::before {
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(240,185,11,0.2) 30%, rgba(240,185,11,0.08) 70%, transparent);
}

/* ── UPPER SECTION ── */
.home-hero-upper {
  padding:18px 18px 14px;
  position:relative;
}

.home-hero-upper::after {
  content:'';
  position:absolute;
  top:-50px; right:-30px;
  width:140px; height:140px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(240,185,11,0.06) 0%, transparent 70%);
  pointer-events:none;
}

.home-hero-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:18px;
  position:relative;
  z-index:1;
}

.home-hero-greeting {
  color:#7E8996;
  font-size:0.7rem;
  font-weight:500;
}

.home-hero-greeting span {
  color:#E6EDF3;
  font-weight:700;
}

.home-hero-status {
  display:flex;
  align-items:center;
  gap:5px;
  padding:4px 10px;
  border-radius:20px;
  background:rgba(14,203,129,0.08);
  border:1px solid rgba(14,203,129,0.15);
}

.home-hero-status .dot {
  width:5px; height:5px; border-radius:50%;
  background:var(--green);
  box-shadow:0 0 8px rgba(14,203,129,0.5);
  animation:statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%,100% { box-shadow:0 0 4px rgba(14,203,129,0.3); }
  50% { box-shadow:0 0 10px rgba(14,203,129,0.6); }
}

.home-hero-status span {
  font-size:0.58rem;
  font-weight:700;
  color:var(--green);
  text-transform:uppercase;
  letter-spacing:0.5px;
}

.home-hero-label {
  color:#4E5763;
  font-size:0.56rem;
  font-weight:650;
  letter-spacing:0.8px;
  text-transform:uppercase;
  margin-bottom:6px;
  position:relative;
  z-index:1;
}

.home-hero-amount {
  display:flex;
  align-items:baseline;
  gap:5px;
  margin-bottom:8px;
  position:relative;
  z-index:1;
}

.home-hero-amount .currency {
  color:#5A6370;
  font-size:0.95rem;
  font-weight:600;
}

.home-hero-amount .value {
  color:#F0F2F5;
  font-size:clamp(1.85rem, 8.5vw, 2.3rem);
  font-weight:800;
  letter-spacing:-0.04em;
  line-height:1;
  background:linear-gradient(180deg, #FFFFFF 20%, #B8BEC6 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

.home-hero-tags {
  display:flex;
  align-items:center;
  gap:8px;
  position:relative;
  z-index:1;
}

.home-hero-profit {
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:3px 8px;
  border-radius:5px;
  background:rgba(14,203,129,0.1);
  border:1px solid rgba(14,203,129,0.12);
  font-size:0.6rem;
  font-weight:700;
  color:var(--green);
}

.home-hero-profit svg {
  width:10px; height:10px;
}

.home-hero-realtime {
  display:flex;
  align-items:center;
  gap:4px;
  font-size:0.58rem;
  color:#4E5763;
  font-weight:500;
}

.home-hero-realtime .dot {
  width:4px; height:4px; border-radius:50%;
  background:#4E5763;
}

/* ── LOWER SECTION (ACTIONS) ── */
.home-hero-lower {
  padding:14px 18px 16px;
  background:rgba(0,0,0,0.15);
  border-top:1px solid rgba(255,255,255,0.04);
}

.home-hero-actions {
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
}

.home-hero-btn {
  height:44px;
  border:1px solid rgba(255,255,255,0.07);
  border-radius:10px;
  background:rgba(255,255,255,0.03);
  color:#B0B8C4;
  font-family:inherit;
  font-size:0.7rem;
  font-weight:650;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  transition:all 0.15s;
  position:relative;
  overflow:hidden;
}

.home-hero-btn::before {
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
  pointer-events:none;
}

.home-hero-btn svg {
  width:14px; height:14px; flex-shrink:0;
  opacity:0.8;
}

.home-hero-btn:active {
  transform:scale(0.96);
  background:rgba(255,255,255,0.06);
}

.home-hero-btn-primary {
  background:linear-gradient(135deg, #F8D33A 0%, #D4A00A 100%);
  border:none;
  color:#0D1117;
  font-weight:700;
  box-shadow:
    0 4px 14px rgba(240,185,11,0.2),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

.home-hero-btn-primary svg {
  opacity:1;
}

.home-hero-btn-primary:active {
  background:linear-gradient(135deg, #E6C20E 0%, #C4940A 100%);
  transform:scale(0.96);
}


/* SECTIONS */

.home-section {
  margin-bottom:25px;
}

#page-home .section-header {
  align-items:flex-end;
  margin-bottom:12px;
}

#page-home .section-title {
  color:#C9D1D9;
  font-size:0.79rem;
  font-weight:700;
}

#page-home .section-link {
  color:#848E9C;
  font-size:0.7rem;
  font-weight:500;
}

.section-caption-inline {
  color:#586270;
  font-size:0.62rem;
  font-weight:500;
}
.profile-avatar-wrap {
  position:relative;
  width:72px;
  margin:0 auto;
}

.profile-avatar-lg {
  width:72px; height:72px; border-radius:50%;
  background:var(--primary); color:#0B0E11;
  display:flex; align-items:center; justify-content:center;
  font-size:1.6rem; font-weight:800;
  overflow:hidden;
}

.profile-avatar-lg img {
  width:100%; height:100%;
  object-fit:cover;
  border-radius:50%;
}

.profile-avatar-edit {
  position:absolute;
  bottom:0; right:-4px;
  width:26px; height:26px;
  border-radius:50%;
  background:var(--primary);
  border:2px solid var(--bg-card);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}

.profile-avatar-edit svg {
  width:12px; height:12px;
  color:#0B0E11;
}
/* TOP GAINER */

.home-market-list {
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.07);
  border-radius:12px;
  background:#131920;
}
.ticker-track {
  display:flex;
  gap:20px;
  white-space:nowrap;
  width:max-content;
  will-change:transform;
  animation:tickerScroll 30s linear infinite;
}
.home-market-list .coin-row {
  gap:11px;
  min-height:54px;
  padding:10px 13px;
  border-bottom:1px solid rgba(255,255,255,0.05);
}

.home-market-list .coin-row:last-child {
  border-bottom:none;
}

.home-market-list .coin-icon,
.home-market-list .coin-row > img {
  width:32px !important;
  height:32px !important;
}

.home-market-list .coin-name {
  color:#E6EDF3;
  font-size:0.77rem;
}

.home-market-list .coin-symbol {
  margin-top:2px;
  color:#636E7B;
  font-size:0.61rem;
}

.home-market-list .coin-price {
  color:#E6EDF3;
  font-size:0.76rem;
}

.home-market-list .coin-change {
  margin-top:2px;
  font-size:0.63rem;
}

/* HOT COINS */

.home-hot-scroll {
  display:flex;
  gap:8px;
  margin:0 -18px;
  padding:0 18px 3px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  scrollbar-width:none;
}

.home-hot-scroll::-webkit-scrollbar {
  display:none;
}

.hot-coin-card {
  width:105px;
  min-width:105px;
  padding:11px;
  border:1px solid rgba(255,255,255,0.07);
  border-radius:10px;
  background:#131920;
  cursor:pointer;
  scroll-snap-align:start;
}

.hot-coin-head {
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:9px;
}

.hot-coin-head img,
.hot-coin-fallback {
  width:20px;
  height:20px;
  flex-shrink:0;
  border-radius:50%;
}

.hot-coin-fallback {
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:0.54rem;
  font-weight:800;
}

.hot-coin-symbol {
  overflow:hidden;
  color:#848E9C;
  font-size:0.66rem;
  font-weight:700;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hot-coin-price {
  overflow:hidden;
  margin-bottom:3px;
  color:#E6EDF3;
  font-size:0.75rem;
  font-weight:800;
  letter-spacing:-0.02em;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.hot-coin-change {
  font-size:0.61rem;
  font-weight:650;
}

/* NEWS */

.home-news-section {
  margin-bottom:4px;
}

.section-caption {
  margin-top:3px;
  color:#586270;
  font-size:0.61rem;
}

.home-news-list {
  padding:0;
}

.home-news-list .news-item {
  align-items:flex-start;
  gap:11px;
  padding:13px 0;
  border-bottom:1px solid rgba(255,255,255,0.055);
}

.home-news-list .news-item:last-child {
  border-bottom:none;
}

.home-news-list .news-index {
  width:20px;
  padding-top:2px;
  color:#3F4854;
  font-size:0.57rem;
}

.home-news-list .news-item:first-child .news-index {
  color:var(--primary);
}

.home-news-list .news-meta {
  margin-bottom:5px;
}

.home-news-list .news-source {
  color:var(--primary);
  font-size:0.57rem;
  letter-spacing:0.4px;
}

.home-news-list .news-time {
  color:#4B5562;
  font-size:0.58rem;
}

.home-news-list .news-title {
  margin-top:0;
  color:#C9D1D9;
  font-size:0.73rem;
  font-weight:520;
  line-height:1.48;
}

.home-news-list .news-arrow {
  align-self:center;
  width:14px;
  height:14px;
  color:#414A56;
}
/* ══════════════════════════════════════════════════════════════
   WALLET PAGE — REDESIGN
   ══════════════════════════════════════════════════════════════ */
#page-wallet {
  padding-left:0; padding-right:0;
  padding-top:calc(var(--navbar-h) + 8px);
  background:var(--bg);
}

.wallet-balance {
  margin:0 20px; padding:22px;
  border-radius:18px; background:var(--bg-card);
  position:relative; overflow:hidden;
}
.wallet-balance::before {
  content:''; position:absolute; top:-70%; right:-20%;
  width:220px; height:220px;
  background:radial-gradient(circle,rgba(240,185,11,0.12),transparent 70%);
}
.wallet-balance .wl { font-size:0.72rem; color:var(--text-3); font-weight:500; position:relative; z-index:1; }
.wallet-balance .wamt {
  font-family:'Space Grotesk',sans-serif; font-weight:600;
  font-size:2rem; letter-spacing:-0.015em; margin-top:6px;
  position:relative; z-index:1;
}
.wallet-balance .wsub { font-size:0.72rem; color:var(--text-2); margin-top:5px; position:relative; z-index:1; }

.wallet-tabs {
  display:flex; gap:6px; margin-top:20px;
  background:var(--bg-input); border-radius:12px; padding:4px;
  position:relative; z-index:1;
}
.wallet-tab {
  flex:1; padding:11px 0; border:none; background:transparent;
  border-radius:9px; font-size:0.8rem; font-weight:600;
  color:var(--text-3); cursor:pointer; font-family:inherit;
  display:flex; align-items:center; justify-content:center; gap:7px;
  transition:all .18s;
}
.wallet-tab.on { background:var(--primary); color:#181200; }
.wallet-tab svg { width:14px; height:14px; }

.wallet-panel {
  margin:16px 20px 0; padding:22px;
  border-radius:18px; background:var(--bg-card);
}
.wallet-panel h3 { font-size:0.88rem; font-weight:600; margin-bottom:18px; }

.wallet-field { margin-bottom:16px; }
.wallet-field label { display:block; font-size:0.72rem; color:var(--text-2); font-weight:500; margin-bottom:8px; }

.wallet-amount-box {
  background:var(--bg-input); border:1px solid var(--border);
  border-radius:13px; padding:14px 16px;
  display:flex; align-items:center; gap:10px;
}
.wallet-amount-box .prefix {
  font-family:'Space Grotesk',sans-serif; font-weight:600;
  color:var(--text-3); font-size:1rem;
}
.wallet-amount-box input {
  flex:1; background:transparent; border:none; outline:none;
  font-family:'Space Grotesk',sans-serif; font-weight:600;
  font-size:1.1rem; color:var(--text-1); min-width:0;
}
.wallet-amount-box input::placeholder { color:var(--text-3); }
.wallet-amount-box .curr {
  font-size:0.68rem; font-weight:700; color:var(--text-3);
  background:var(--bg-hover); padding:5px 9px; border-radius:100px;
}

.wallet-quick {
  display:flex; gap:8px; margin-top:10px;
}
.wallet-quick button {
  flex:1; padding:8px 0; border-radius:9px;
  background:var(--bg-input); border:1px solid var(--border);
  font-size:0.7rem; font-weight:600; color:var(--text-2);
  cursor:pointer; font-family:inherit; transition:all .15s;
}
.wallet-quick button:active {
  background:var(--bg-hover); color:var(--text-1); border-color:var(--text-3);
}

.wallet-select {
  background:var(--bg-input); border:1px solid var(--border);
  border-radius:13px; padding:13px 16px;
  display:flex; align-items:center; justify-content:space-between;
}
.wallet-select .ws1 { font-size:0.82rem; font-weight:600; }
.wallet-select .ws2 { font-size:0.68rem; color:var(--text-3); margin-top:2px; }

.wallet-va {
  margin-top:10px; background:var(--bg-input);
  border:1px dashed var(--border); border-radius:13px;
  padding:14px 16px; display:flex; align-items:center;
  justify-content:space-between; gap:10px;
}
.wallet-va .va1 { font-size:0.68rem; color:var(--text-3); }
.wallet-va .va2 { font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:0.88rem; margin-top:3px; }
.wallet-va-copy {
  flex-shrink:0; display:flex; align-items:center; gap:5px;
  font-size:0.7rem; font-weight:600; color:var(--primary);
  background:var(--primary-soft); padding:7px 11px;
  border-radius:9px; border:none; cursor:pointer; font-family:inherit;
}

.wallet-summary { margin-top:16px; padding-top:14px; border-top:1px solid var(--border); }
.wallet-summary-row {
  display:flex; justify-content:space-between;
  font-size:0.72rem; color:var(--text-2); padding:5px 0;
}
.wallet-summary-row b {
  color:var(--text-1); font-weight:600;
  font-family:'Space Grotesk',sans-serif;
}

.wallet-btn-main {
  width:100%; margin-top:18px; padding:15px 0;
  border-radius:13px; border:none;
  background:var(--primary); color:#181200;
  font-size:0.85rem; font-weight:700; cursor:pointer;
  font-family:inherit; display:flex; align-items:center;
  justify-content:center; gap:8px;
}
.wallet-btn-main svg { width:15px; height:15px; }

.wallet-btn-ghost {
  width:100%; margin-top:10px; padding:14px 0;
  border-radius:13px; background:transparent;
  border:1px solid var(--border); color:var(--text-2);
  font-size:0.8rem; font-weight:600; cursor:pointer; font-family:inherit;
}

/* Wallet History */
.wallet-history { padding:24px 20px 0; }
.wallet-history-head {
  display:flex; align-items:baseline; justify-content:space-between;
  margin-bottom:14px;
}
.wallet-history-head h2 { font-size:0.9rem; font-weight:600; }

.wallet-tx {
  display:flex; align-items:center; gap:13px;
  padding:12px 0; border-bottom:1px solid var(--border);
}
.wallet-tx:last-child { border-bottom:none; }
.wallet-tx-ico {
  width:38px; height:38px; border-radius:11px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg-card);
}
.wallet-tx-ico.dep { color:var(--green); }
.wallet-tx-ico.wd { color:var(--text-1); }
.wallet-tx-ico svg { width:16px; height:16px; }
.wallet-tx-meta { flex:1; min-width:0; }
.wallet-tx-meta .t1 { font-size:0.82rem; font-weight:600; }
.wallet-tx-meta .t2 { font-size:0.68rem; color:var(--text-3); margin-top:2px; }
.wallet-tx-figs { text-align:right; flex-shrink:0; }
.wallet-tx-figs .amt { font-size:0.82rem; font-weight:600; font-family:'Space Grotesk',sans-serif; }
.wallet-tx-figs .amt.pos { color:var(--green); }
.wallet-tx-status {
  font-size:0.62rem; font-weight:600; margin-top:3px;
  padding:2px 8px; border-radius:100px; display:inline-block;
}
.wallet-tx-status.ok { color:var(--green); background:var(--green-soft); }
.wallet-tx-status.pending { color:var(--primary); background:var(--primary-soft); }
.wallet-method-btn {
  flex:1; padding:8px 0; border-radius:9px;
  background:var(--bg-input); border:1px solid var(--border);
  font-size:0.68rem; font-weight:600; color:var(--text-2);
  cursor:pointer; font-family:inherit; transition:all .15s;
}
.wallet-method-btn.on {
  background:var(--primary-soft); color:var(--primary);
  border-color:var(--primary-border);
}
/* SMALL MOBILE */
@media (max-width:360px) {
  #page-home {
    padding-left:15px;
    padding-right:15px;
  }

  .home-hot-scroll {
    margin-left:-15px;
    margin-right:-15px;
    padding-left:15px;
    padding-right:15px;
  }

  .navbar {
    padding-left:12px;
    padding-right:12px;
  }

  .navbar-actions {
    gap:6px;
  }

  .navbar-balance {
    min-width:75px;
  }
}

@media (max-width:350px) {
  .navbar { padding-left:12px; padding-right:12px; }
  .navbar-title { display:none; }
}

/* ── LOCKED BANNER ── */
.locked-banner {
  background:rgba(240,185,11,0.08);
  border:1px solid var(--primary-border);
  border-radius:var(--radius); padding:12px 14px;
  display:flex; align-items:flex-start; gap:10px; margin-bottom:14px;
}
.locked-banner svg { width:18px; height:18px; color:var(--primary); flex-shrink:0; margin-top:1px; }
.locked-banner-text h4 { font-size:0.8rem; color:var(--primary); }
.locked-banner-text p { font-size:0.72rem; color:var(--text-2); margin-top:2px; }