/* Cryptoverse palette shared by current and legacy user pages. */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --panel: #ffffff;
  --panel-2: #f0f4f9;
  --text: #122745;
  --muted: #65758b;
  --gold: #95691e;
  --gold-strong: #95691e;
  --gold-soft: rgba(201, 151, 62, .14);
  --line: rgba(244, 213, 138, .2);
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-border-color: var(--line);
  --bs-primary: #c9973e;
  --bs-primary-rgb: 201, 151, 62;
  --bs-link-color: #95691e;
  --bs-link-hover-color: #95691e;
}
body {
  color: var(--text);
  background: radial-gradient(ellipse at top, #f0f4f9 0, #ffffff 45%, #f5f7fb 100%) !important;
}
::selection { background: #f4d58a; color: #07172f; }
.form-select option { background: #ffffff; color: #122745; }
.form-control::placeholder { color: #65758b; opacity: 1; }
.form-control:disabled, .form-control[readonly] { background-color: #f0f4f9; color: #65758b; }
.form-check-input:checked { background-color: #c9973e; border-color: #f4d58a; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #f4d58a;
  outline-offset: 3px;
}
.btn-gold:hover, .btn-gold:focus-visible, .btn-gold:active {
  color: #07172f !important;
  background: linear-gradient(180deg, #ffe7ae, #dcae56) !important;
}
.table {
  --bs-table-color: #f4f7fc;
  --bs-table-bg: transparent;
  --bs-table-border-color: rgba(244, 213, 138, .18);
  --bs-table-striped-bg: rgba(169, 185, 207, .05);
  --bs-table-striped-color: #f4f7fc;
  --bs-table-hover-bg: rgba(201, 151, 62, .08);
  --bs-table-hover-color: #f4f7fc;
}
.modal-content, .dropdown-menu, .swal2-popup {
  background: #ffffff;
  color: #122745;
  border: 1px solid var(--line);
}
.dropdown-item { color: #122745; }
.dropdown-item:hover, .dropdown-item:focus { color: #95691e; background: #f0f4f9; }
.swal2-confirm, .btn-primary {
  background: linear-gradient(180deg, #f4d58a, #c9973e) !important;
  border-color: #c9973e !important;
  color: #07172f !important;
}
.page-link { background: #ffffff; border-color: var(--line); color: #95691e; }
.page-item.active .page-link { background: #c9973e; border-color: #c9973e; color: #07172f; }
/* Older user screens retain their layout while sharing the same palette. */
.app-wrapper, .app-content, .app-content main, .login-form-container { background-color: transparent !important; color: #122745; }
.app-wrapper .card, .app-wrapper .card-header, .app-wrapper .card-footer {
  background-color: #ffffff;
  border-color: var(--line);
  color: #122745;
}
.app-wrapper .header-main, .app-wrapper #app-sidebar {
  background: #ffffff !important;
  border-color: var(--line);
}
.app-wrapper .header-main a, .app-wrapper #app-sidebar a { color: #95691e; }
.app-wrapper .form-control, .app-wrapper .form-select { background-color: #ffffff; color: #122745; border-color: var(--line); }
.app-wrapper .text-muted { color: #65758b !important; }
.app-wrapper .main-title, .app-wrapper .card h5 { color: #95691e; }
/* Public landing page. */
.header-area, .footer-area, .footer-content-area { background-color: #ffffff; }
.welcome-area, .about-us-area, .features, .faq-area { background-color: #ffffff; color: #122745; }
.dream-btn { background: linear-gradient(135deg, #f4d58a, #c9973e); color: #07172f; border-color: #c9973e; }
/* Crypto workspace layout */
body { font-family: 'Poppins', sans-serif; }
.app-shell { display: block; padding: 0; }
.phone-frame { display: flex; max-width: none; width: 100%; min-height: 100vh; border: 0; border-radius: 0; overflow: visible; box-shadow: none; background: #f5f7fb; }
.screen { flex: 1; width: 0; min-width: 0; min-height: 100vh; padding: 26px clamp(22px, 3.5vw, 64px) 48px; background: radial-gradient(ellipse at 85% 0, rgba(32,60,96,.3), transparent 48%), #f5f7fb; }
.crypto-sidebar { flex: 0 0 248px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 32px 20px; background: #ffffff; border-right: 1px solid rgba(18, 39, 69, 0.12); }
.crypto-logo { display: flex; gap: 10px; align-items: center; font-size: 15px; font-weight: 700; letter-spacing: .04em; color: #122745; }
.crypto-logo small { display: block; margin-top: 3px; font-size: 9px; font-weight: 500; letter-spacing: .36em; color: #65758b; }
.crypto-symbol { font-size: 42px; line-height: 1; color: #95691e; }
.crypto-nav-label { margin: 38px 14px 13px; font-size: 10px; letter-spacing: .18em; color: #65758b; }
.crypto-nav { display: grid; gap: 7px; }
.crypto-nav a { display: flex; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; color: #65758b; transition: background .2s, color .2s; }
.crypto-nav i { font-size: 17px; }
.crypto-nav a:hover { color: #95691e; background: rgba(244,213,138,.04); }
.crypto-nav a.active { background: linear-gradient(90deg, rgba(201,151,62,.18),rgba(201,151,62,.04)); color: #95691e; border-color: rgba(201,151,62,.2); }
.crypto-sidebar-note { margin: 36px 8px 0; padding: 20px 15px; border: 1px solid rgba(201,151,62,.2); border-radius: 14px; background: radial-gradient(circle at top right, rgba(201,151,62,.12), transparent 75%); }
.crypto-sidebar-note .crypto-symbol { display: block; margin-bottom: 14px; }
.crypto-sidebar-note strong { font-size: 13px; line-height: 1.7; }
.crypto-sidebar-note p { font-size: 11px; color: #65758b; margin: 10px 0 0; }
.top-app-bar { margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid rgba(18, 39, 69, 0.12); }
.top-brand-mark { background: rgba(201,151,62,.1); color: #95691e; border: 1px solid rgba(201,151,62,.22); box-shadow: none; }
.top-brand-name { font-size: 16px; letter-spacing: -.02em; text-transform: none; }
.top-brand-meta { font-size: 10px; letter-spacing: .12em; margin-top: 5px; }
.hero-card, .section-panel, .metric-card, .account-card, .auth-card { border-radius: 18px; border-color: rgba(18, 39, 69, 0.12); background-color: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.hero-card { padding: 30px; background: radial-gradient(ellipse at top right, rgba(201,151,62,.14), transparent 65%), linear-gradient(135deg,#f0f4f9,#ffffff); }
.hero-card::after { pointer-events: none; }
.balance-figure { font-size: clamp(32px,4vw,52px); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.balance-actions { max-width: 420px; }
.section-title { letter-spacing: -.03em; }
.section-subtitle { line-height: 1.7; max-width: 560px; }
.metric-card.gold-surface, .account-card.gold-surface { background: linear-gradient(135deg,#f0f4f9,#f0f4f9); color: #122745; border-color: rgba(244,213,138,.28); }
.metric-card.gold-surface .value, .account-card.gold-surface .value { color: #95691e; }
.list-row { border-radius: 10px; background: rgba(169,185,207,.025); box-shadow: none; }
.bottom-nav { display: none; }
.mini-chart { height: 200px; }
.mini-chart svg { width: 100%; height: 100%; }
body[data-page='overview'] .screen { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 24px; align-content: start; }
body[data-page='overview'] .top-app-bar { grid-column: 1 / -1; margin-bottom: 0; }
body[data-page='overview'] .screen > section { margin-top: 0 !important; min-width: 0; }
body[data-page='overview'] .screen > section:last-of-type { grid-column: 1 / -1; }
body[data-page='overview'] .floating-accent { display: none; }
.auth-screen { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(340px, .8fr); gap: clamp(30px,7vw,120px); padding: 48px clamp(24px,7vw,110px); align-items: center; }
.crypto-auth-story { max-width: 620px; }
.crypto-auth-story h1 { font-size: clamp(32px,3.6vw,54px); font-weight: 600; letter-spacing: -.055em; line-height: 1.15; margin: 16px 0; }
.crypto-auth-story p { color: #65758b; font-size: 14px; line-height: 1.9; max-width: 420px; }
.crypto-eyebrow { color: #95691e; font-size: 10px; letter-spacing: .24em; }
.crypto-orbit { position: relative; width: min(330px,80%); margin: 25px auto; }
.crypto-orbit svg { width: 100%; filter: drop-shadow(0 0 18px rgba(201,151,62,.12)); }
.crypto-orbit > span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; color: #95691e; font-weight: 700; }
.crypto-auth-features { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 25px; font-size: 11px; color: #65758b; }
.crypto-auth-features i { color: #95691e; margin-right: 6px; }
.auth-card { padding: 36px; max-width: 500px; justify-self: center; background: linear-gradient(150deg,#f0f4f9,#ffffff); }
.auth-card .section-title { font-size: 28px; }
.auth-card .brand-chip { font-size: 10px; letter-spacing: .06em; }
@media (min-width: 1500px) { .screen { max-width: 1500px; margin: 0 auto; } }
@media (max-width: 1100px) {
  .crypto-sidebar { flex-basis: 218px; padding: 28px 12px; }
  .screen { padding: 24px; }
  body[data-page='overview'] .screen { grid-template-columns: minmax(0,1fr); }
  .auth-screen { grid-template-columns: minmax(0,1fr) minmax(320px,1fr); gap: 35px; padding: 35px; }
}
@media (max-width: 767px) {
  .crypto-sidebar { display: none; }
  .screen { width: 100%; padding: 20px 16px 110px; }
  .phone-frame { min-height: 100dvh; }
  .top-app-bar { margin-bottom: 22px; }
  .hero-card { padding: 22px; }
  .bottom-nav { display: grid; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 100; margin: 0 auto; max-width: 580px; padding: 8px 4px; background: rgba(11,27,48,.96); border-color: rgba(244,213,138,.2); }
  .nav-item-mobile { min-height: 50px; font-size: 9px; gap: 4px; letter-spacing: 0; }
  .nav-item-mobile i { font-size: 18px; }
  .auth-screen { display: flex; flex-direction: column; gap: 28px; padding: 28px 20px; align-items: stretch; }
  .crypto-auth-story .crypto-logo { justify-content: center; }
  .crypto-orbit { width: 155px; margin: 20px auto; }
  .crypto-auth-story h1 { font-size: 30px; text-align: center; }
  .crypto-auth-story > p, .crypto-auth-story .crypto-eyebrow, .crypto-auth-features { display: none; }
  .auth-card { padding: 26px 22px; max-width: 500px; width: 100%; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
.crypto-page-heading { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 5px 0 8px; }
.crypto-page-heading h1 { font-size: clamp(25px,3vw,36px); font-weight: 600; letter-spacing: -.045em; margin: 10px 0; }
.crypto-page-heading h1 span { color: #95691e; }
.crypto-page-heading p { font-size: 12px; color: #65758b; margin: 0; }
.crypto-heading-link { white-space: nowrap; color: #95691e; font-size: 11px; padding: 12px 16px; border: 1px solid rgba(244,213,138,.2); border-radius: 9px; }
.crypto-field-label { font-size: 12px; color: #65758b; margin-bottom: 9px; }
@media (max-width: 767px) { .crypto-page-heading { align-items: flex-start; flex-direction: column; gap: 12px; } }
