
:root {
  --blue: #1769d2;
  --blue-dark: #104fa8;
  --ink: #172b43;
  --muted: #718096;
  --line: #e5ebf2;
  --surface: #f5f8fc;
  --green: #16865c;
  --red: #d94b55;
  --white: #fff;
  --font: "DM Sans", sans-serif;
  --heading: "Manrope", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.6; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #90bfff; outline-offset: 3px; }
.section-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.announcement { min-height: 33px; padding: 7px 24px; background: #112944; color: #eaf2ff; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #35c991; flex-shrink: 0; }
.announcement-note { color: #b7c5d7; font-weight: 400; letter-spacing: 0; margin-left: 5px; }

.site-header { height: 82px; padding: 0 max(24px, calc((100vw - 1160px) / 2)); display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { color: #627287; font-size: 13px; font-weight: 600; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions[hidden],
#homePage[hidden],
#authStartupStatus[hidden] { display: none !important; }
.auth-startup-status {
  min-height: 42vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}
.button { border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 17px; border-radius: 5px; font-size: 12px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--blue); color: white; box-shadow: 0 4px 12px #1769d21c; }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 7px 17px #1769d230; }
.button-light { background: white; color: var(--ink); border-color: var(--line); }
.button-light:hover, .button-outline:hover { background: var(--surface); }
.button-large { padding: 14px 20px; font-size: 13px; }
.button-outline { border-color: #cbd7e5; color: var(--ink); margin-top: 22px; }
.mobile-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 25px; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 62px; padding-top: 82px; padding-bottom: 80px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; color: var(--blue); }
.eyebrow-line { height: 2px; width: 23px; background: var(--blue); }
.hero h1 { font: 800 clamp(37px, 4.4vw, 59px)/1.15 var(--heading); letter-spacing: -2.5px; margin: 23px 0 20px; }
.hero h1 span { color: var(--blue); }
.hero-copy > p { max-width: 490px; font-size: 14px; line-height: 1.95; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 29px; flex-wrap: wrap; }
.text-link { color: var(--ink); font-size: 12px; font-weight: 700; }
.text-link span { color: var(--blue); margin-left: 5px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 32px; color: #728197; font-size: 11px; }
.note-icon { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #e5f5ee; color: var(--green); font-weight: 800; }

.hero-panel { border: 1px solid #e1e9f3; border-radius: 10px; padding: 25px 25px 18px; box-shadow: 0 20px 65px #1b47710b; background: linear-gradient(145deg, #fff 40%, #f8fbff); }
.panel-top, .panel-bottom, .chart-card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.mini-label { display: block; color: #8492a5; font-size: 9px; letter-spacing: 1.4px; font-weight: 800; }
.panel-top h3, .chart-card-header h3 { font: 700 17px var(--heading); margin-top: 4px; }
.market-data-status { display: inline-block; color: #416caa; background: #eaf2ff; border: 1px solid #dce9ff; border-radius: 3px; padding: 4px 7px; font-size: 9px; letter-spacing: .7px; font-weight: 800; }
.snapshot-value { font: 800 28px var(--heading); letter-spacing: -.8px; margin-top: 27px; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: #7d8999 !important; }
.snapshot-value .positive { font: 700 12px var(--font); margin-left: 8px; letter-spacing: 0; }
.snapshot-subtitle { color: #8a98a9; font-size: 10px; margin-top: 4px; }
.hero-chart { margin-top: 20px; }
.hero-chart svg { width: 100%; display: block; }
.chart-axis { display: flex; justify-content: space-between; color: #9aa7b7; font-size: 8px; letter-spacing: .6px; margin-top: 6px; }
.panel-bottom { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 15px; }
.panel-bottom div { display: flex; flex-direction: column; gap: 5px; }
.panel-bottom small { color: #8a98a9; font-size: 9px; }
.panel-bottom strong { font-size: 11px; }
.panel-bottom .status-dot { margin-right: 5px; }

.ticker-strip { min-height: 77px; background: #f5f8fc; border-top: 1px solid #e9eef5; border-bottom: 1px solid #e9eef5; display: flex; justify-content: center; align-items: center; gap: 0; overflow-x: auto; }
.ticker-label { font-size: 9px; font-weight: 800; letter-spacing: 1.3px; white-space: nowrap; padding: 0 26px; }
.ticker-label span { color: var(--blue); background: #e3edff; padding: 3px 5px; border-radius: 3px; margin-left: 5px; font-size: 8px; }
.ticker-item { min-width: 185px; padding: 0 23px; border-left: 1px solid #e1e8f1; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 10px; white-space: nowrap; }
.ticker-item strong { font-size: 10px; }
.ticker-item span { color: #627287; text-align: right; }
.ticker-item em { font-size: 10px; font-style: normal; font-weight: 700; }
.ticker-item em:last-child { text-align: right; }

.markets-section { padding-top: 83px; padding-bottom: 85px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.section-heading h2, .chart-intro h2, .about-layout h2 { font: 800 31px/1.25 var(--heading); letter-spacing: -1px; margin-top: 10px; }
.section-heading p { color: var(--muted); font-size: 12px; margin-top: 9px; }
.section-tag { border: 1px solid #e2eaf3; border-radius: 3px; padding: 7px 9px; font-size: 9px; letter-spacing: .8px; color: #728197; font-weight: 800; white-space: nowrap; }
.market-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.market-card { border: 1px solid var(--line); border-radius: 7px; padding: 19px 17px 15px; min-width: 0; transition: transform .2s, box-shadow .2s, border-color .2s; }
.market-card:hover { transform: translateY(-3px); border-color: #c7d9f1; box-shadow: 0 10px 25px #1d4e7a0c; }
.asset-heading { display: flex; align-items: center; gap: 9px; }
.coin { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.coin-btc { color: #b87519; background: #fff1dc; }
.coin-eth { color: #566a9a; background: #e9edfa; }
.coin-sol { color: #6a50c5; background: #eee8ff; }
.coin-usdt { color: #168d6c; background: #e0f5ee; }
.asset-heading > div { display: flex; flex-direction: column; min-width: 0; }
.asset-heading strong { font-size: 12px; }
.asset-heading small { font-size: 10px; color: #8b99aa; }
.card-menu { margin-left: auto; color: #9ba7b7; font-size: 14px; letter-spacing: 1px; }
.asset-price { font: 800 21px var(--heading); letter-spacing: -.5px; margin-top: 22px; white-space: nowrap; }
.asset-change { font-size: 11px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.asset-change span { display: block; color: #9aa6b5; font-size: 9px; font-weight: 400; margin-top: 3px; }
.mini-chart { margin: 14px 0 13px; height: 42px; }
.mini-chart svg { width: 100%; height: 100%; overflow: visible; }
.mini-chart path { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-chart-blue path { stroke: #2878e8; }
.mini-chart-green path { stroke: #1b9a73; }
.mini-chart-red path { stroke: #d94b55; }
.mini-chart-gray path { stroke: #98a5b4; }
.watch-button { width: 100%; border: 1px solid #e0e8f2; background: #fff; color: #52657c; border-radius: 4px; padding: 9px 5px; font-size: 10px; font-weight: 700; transition: .2s; }
.watch-button:hover, .watch-button.is-added { background: #edf5ff; border-color: #c8dcfb; color: var(--blue); }

.chart-section { background: #f5f8fc; border-top: 1px solid #e9eef5; border-bottom: 1px solid #e9eef5; padding: 78px 0; }
.chart-layout { display: grid; grid-template-columns: .72fr 1.28fr; align-items: center; gap: 55px; }
.chart-intro h2 { max-width: 360px; margin-top: 17px; }
.chart-intro > p { font-size: 13px; color: var(--muted); line-height: 1.9; margin-top: 18px; max-width: 370px; }
.chart-legend { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; margin-top: 23px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.chart-facts { display: flex; gap: 29px; margin-top: 35px; }
.chart-facts div { display: flex; flex-direction: column; gap: 7px; }
.chart-facts small { color: #8795a6; font-size: 8px; letter-spacing: 1px; font-weight: 800; }
.chart-facts strong { font: 800 18px var(--heading); }
.chart-card { background: white; border: 1px solid #e2eaf3; border-radius: 8px; padding: 23px 22px 17px; min-width: 0; box-shadow: 0 12px 40px #1c477008; }
.time-buttons { display: flex; gap: 3px; }
.time-buttons button { border: 0; border-radius: 3px; background: transparent; padding: 6px 9px; color: #7e8da0; font-size: 10px; }
.time-buttons button.selected, .time-buttons button:hover { background: #eaf2ff; color: var(--blue); font-weight: 800; }

.research-section { padding-top: 82px; padding-bottom: 85px; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.research-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 7px; min-height: 235px; transition: .2s; }
.research-card:hover { border-color: #bfd4f0; box-shadow: 0 12px 30px #1c47700c; transform: translateY(-2px); }
.research-number { color: #8594a7; font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.research-icon { width: 38px; height: 38px; border-radius: 6px; background: #edf4ff; color: var(--blue); display: grid; place-items: center; font-size: 24px; margin-top: 20px; }
.research-card h3 { font: 700 15px var(--heading); margin-top: 17px; }
.research-card p { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 9px; }
.research-card a { display: inline-flex; gap: 10px; color: var(--blue); font-size: 11px; font-weight: 800; margin-top: 17px; }
.about-section { background: #112944; color: white; padding: 65px 0; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-layout .eyebrow { color: #8bbaff; }
.about-layout h2 { max-width: 420px; font-size: 30px; }
.about-layout p { color: #c0cede; font-size: 12px; line-height: 1.95; }
.about-layout .button-outline { border-color: #50677f; color: white; }
.about-layout .button-outline:hover { background: #203d5d; }

.risk-section { display: flex; gap: 16px; align-items: flex-start; padding-top: 36px; padding-bottom: 36px; }
.risk-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #9a6814; background: #fff3d8; font-weight: 800; flex-shrink: 0; }
.risk-section strong { font-size: 12px; }
.risk-section p { color: #748398; font-size: 10px; line-height: 1.85; margin-top: 4px; }
.site-footer { border-top: 1px solid var(--line); padding: 25px max(24px, calc((100vw - 1160px) / 2)) 18px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 23px; }
.footer-top > p, .footer-top > a:last-child { color: #78889b; font-size: 10px; }
.footer-top > a:last-child:hover { color: var(--blue); }
.footer-brand { display: block; width: 104px; height: 104px; }
.footer-logo-image { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.footer-bottom { border-top: 1px solid #edf1f6; padding-top: 15px; display: flex; justify-content: space-between; gap: 15px; color: #95a1b0; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; background: #0b1c30b8; display: grid; place-items: center; overflow-y: auto; }
.modal-backdrop[hidden] { display: none; }
.auth-modal { position: relative; width: min(100%, 420px); background: white; border-radius: 10px; padding: 32px; box-shadow: 0 25px 90px #00142b4d; }
.modal-close { position: absolute; top: 13px; right: 17px; border: 0; background: transparent; color: #7c8ba0; font-size: 27px; }
.modal-brand { display: block; width: 104px; height: 104px; margin-bottom: 28px; }
.modal-brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.auth-modal h2 { font: 800 27px var(--heading); margin-top: 12px; }
.modal-description { color: var(--muted); font-size: 12px; margin-top: 7px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); margin: 22px 0; }
.auth-tabs button { border: 0; background: white; color: #8795a7; font-size: 12px; font-weight: 700; padding: 11px 5px; border-bottom: 2px solid transparent; }
.auth-tabs button.selected { color: var(--blue); border-bottom-color: var(--blue); }
.auth-modal form { display: flex; flex-direction: column; }
.auth-modal label { color: #475970; font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.auth-modal input { border: 1px solid #dce5ef; border-radius: 5px; padding: 12px; margin-bottom: 15px; font-size: 12px; color: var(--ink); background: white; width: 100%; }
.auth-modal .password-input-wrap { position: relative; width: 100%; margin-bottom: 15px; }
.auth-modal .password-input-wrap input { margin-bottom: 0; padding-right: 64px; }
.auth-modal .password-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 5px 7px; border: 0; border-radius: 4px; background: transparent; color: var(--blue); font-size: 11px; font-weight: 700; }
.auth-modal .password-toggle:hover { background: var(--surface); }
.auth-modal input:focus { outline: 2px solid #c3dbff; border-color: var(--blue); }
.auth-modal input[hidden], .auth-modal label[hidden] { display: none; }
.auth-submit { width: 100%; margin-top: 3px; padding: 13px; }
.auth-message { font-size: 11px; line-height: 1.6; margin-top: 12px; color: var(--blue); overflow-wrap: anywhere; }
.auth-message:empty { display: none; }
.auth-footnote { color: #8a98a9; font-size: 10px; line-height: 1.7; margin-top: 18px; text-align: center; }

@media (max-width: 1050px) {
  .site-header { gap: 20px; }
  .main-nav { gap: 17px; }
  .header-actions { gap: 7px; }
  .header-actions .button { padding: 9px 11px; }
  .hero { gap: 35px; }
  .market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chart-layout { gap: 30px; }
  .ticker-item { min-width: 160px; padding-inline: 15px; }
}
@media (max-width: 760px) {
  .section-wrap { width: min(100% - 36px, 560px); }
  .announcement { justify-content: flex-start; overflow: hidden; white-space: nowrap; font-size: 9px; padding-inline: 12px; }
  .announcement-note { display: none; }
  .site-header { height: 70px; padding: 0 18px; gap: 12px; }
  .mobile-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 13px 22px 19px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px #17344b0d; align-items: stretch; gap: 0; }
  .main-nav.open { display: flex; flex-direction: column; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #f0f3f7; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding: 8px 10px; font-size: 10px; }
  .header-actions #loginButton {
  display: inline-flex;
  white-space: nowrap;
}
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 55px; padding-bottom: 45px; }
  .hero h1 { font-size: clamp(39px, 10vw, 54px); letter-spacing: -1.8px; }
  .hero-copy > p { font-size: 13px; }
  .hero-panel { padding: 20px 17px 15px; }
  .snapshot-value { font-size: 25px; }
  .ticker-strip { justify-content: flex-start; }
  .ticker-label { position: sticky; left: 0; background: #f5f8fc; height: 77px; display: flex; align-items: center; padding-inline: 14px; }
  .ticker-item { min-width: 165px; }
  .markets-section, .research-section { padding-top: 55px; padding-bottom: 55px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading h2, .chart-intro h2 { font-size: 27px; }
  .market-grid { gap: 11px; }
  .market-card { padding: 15px 12px 12px; }
  .asset-price { font-size: 18px; }
  .asset-heading { gap: 7px; }
  .coin { width: 30px; height: 30px; font-size: 16px; }
  .asset-heading strong { font-size: 11px; }
  .card-menu { display: none; }
  .asset-change { font-size: 10px; }
  .watch-button { font-size: 9px; }
  .chart-section { padding: 55px 0; }
  .chart-layout { grid-template-columns: 1fr; gap: 28px; }
  .chart-intro h2 { max-width: 440px; }
  .chart-facts { margin-top: 23px; }
  .chart-card { padding: 17px 12px 14px; }
  .time-buttons { gap: 0; }
  .time-buttons button { padding: 6px; }
  .research-grid { grid-template-columns: 1fr; gap: 12px; }
  .research-card { min-height: auto; padding: 20px; }
  .research-icon { margin-top: 14px; }
  .about-section { padding: 48px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 20px; }
  .about-layout h2 { font-size: 27px; }
  .risk-section { padding-top: 27px; padding-bottom: 27px; }
  .footer-top { align-items: flex-start; flex-wrap: wrap; }
  .footer-top > p { order: 3; width: 100%; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .auth-modal { padding: 26px 21px; }
  .footer-brand { width: 92px; height: 92px; }
  .modal-brand { width: 92px; height: 92px; }
}
@media (max-width: 380px) {
  .header-actions #signupButton { font-size: 9px; padding-inline: 8px; }
  .market-grid { grid-template-columns: 1fr; }
  .market-card { padding: 18px; }
  .asset-price { font-size: 22px; }
}


/* SIGNED-IN HEADER STYLING */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.header-welcome {
  color: #172b4d;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header-actions button {
  cursor: pointer;
  transition: background-color 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

.header-actions button:hover {
  transform: translateY(-2px);
}

.header-actions button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

/* MOBILE HEADER */

@media (max-width: 600px) {
  .header-actions {
    gap: 8px;
    flex-wrap: wrap;
  }

  .header-welcome {
    font-size: 12px;
    max-width: 130px;
    overflow-wrap: anywhere;
  }

  .header-actions .button {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* User-provided blue palette for light mode. */
html[data-theme="light"] {
  --ink: #0e2f76;
  --muted: #526987;
  --line: #d5e2f1;
  --surface: #aac0e1;
  --white: #f5feff;
  --blue: #0e2f76;
  --blue-dark: #09245b;
  color-scheme: light;
  background: #f5feff;
  color: #0e2f76;
}
html[data-theme="light"] body,
html[data-theme="light"] .hero,
html[data-theme="light"] .markets-section,
html[data-theme="light"] .research-section,
html[data-theme="light"] .dashboard-section {
  background: #f5feff;
  color: #0e2f76;
}
html[data-theme="light"] .site-header,
html[data-theme="light"] .main-nav,
html[data-theme="light"] .site-footer {
  background: #f5feff;
  color: #0e2f76;
  border-color: #d5e2f1;
}
html[data-theme="light"] .site-header {
  box-shadow: 0 8px 24px rgba(14, 47, 118, .08);
}
html[data-theme="light"] .hero-panel,
html[data-theme="light"] .chart-card,
html[data-theme="light"] .market-card,
html[data-theme="light"] .research-card,
html[data-theme="light"] .dashboard-summary-grid .dashboard-card,
html[data-theme="light"] .dashboard-section .dashboard-card,
html[data-theme="light"] .dashboard-section .dashboard-panel,
html[data-theme="light"] .dashboard-section .plan-status-card,
html[data-theme="light"] .dashboard-section .investment-plan-card,
html[data-theme="light"] .auth-modal {
  background: #fff;
  color: #0e2f76;
  border-color: #d5e2f1;
  box-shadow: 0 8px 24px rgba(14, 47, 118, .07);
}
html[data-theme="light"] .ticker-strip,
html[data-theme="light"] .chart-section {
  background: #aac0e1;
  color: #0e2f76;
  border-color: #9db5d8;
}
html[data-theme="light"] .about-section {
  background: #0e2f76;
  color: #f5feff;
  border-color: #0e2f76;
}
html[data-theme="light"] .about-section .eyebrow,
html[data-theme="light"] .about-section h2,
html[data-theme="light"] .about-section p {
  color: #f5feff;
}
html[data-theme="light"] .about-section .text-link,
html[data-theme="light"] .about-section .text-link:hover {
  color: #aac0e1;
}
html[data-theme="light"] .dashboard-summary-grid .dashboard-card:nth-child(even),
html[data-theme="light"] .deposit-instructions,
html[data-theme="light"] .dashboard-notice,
html[data-theme="light"] .profile-notice,
html[data-theme="light"] .section-tag,
html[data-theme="light"] .market-data-status {
  background: #e8f1fc;
  color: #0e2f76;
  border-color: #c7d8ed;
}
html[data-theme="light"] .button-primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .deposit-submit-button,
html[data-theme="light"] .withdrawal-form button[type="submit"],
html[data-theme="light"] #saveProfileButton {
  background: #0e2f76;
  color: #f5feff;
  border-color: #0e2f76;
  box-shadow: 0 5px 14px rgba(14, 47, 118, .18);
}
html[data-theme="light"] .button-primary:hover,
html[data-theme="light"] .auth-submit:hover,
html[data-theme="light"] .deposit-submit-button:hover,
html[data-theme="light"] .withdrawal-form button[type="submit"]:hover,
html[data-theme="light"] #saveProfileButton:hover {
  background: #09245b;
  color: #fff;
  border-color: #09245b;
}
html[data-theme="light"] .button-light,
html[data-theme="light"] .button-outline,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .watch-button,
html[data-theme="light"] .time-buttons button {
  background: #f5feff;
  color: #0e2f76;
  border-color: #aac0e1;
}
html[data-theme="light"] .button-light:hover,
html[data-theme="light"] .button-outline:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .watch-button:hover,
html[data-theme="light"] .watch-button.is-added,
html[data-theme="light"] .time-buttons button:hover,
html[data-theme="light"] .time-buttons button.selected {
  background: #e8f1fc;
  color: #0e2f76;
  border-color: #8eaad2;
}
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a.active,
html[data-theme="light"] .header-welcome,
html[data-theme="light"] .text-link,
html[data-theme="light"] .research-card a {
  color: #0e2f76;
}
html[data-theme="light"] .main-nav a::after,
html[data-theme="light"] .dashboard-summary-grid .dashboard-card::before {
  background: linear-gradient(90deg, #aac0e1, #0e2f76);
}
html[data-theme="light"] .deposit-form input,
html[data-theme="light"] .deposit-form select,
html[data-theme="light"] .deposit-form textarea,
html[data-theme="light"] .withdrawal-form input,
html[data-theme="light"] .withdrawal-form select,
html[data-theme="light"] .withdrawal-form textarea,
html[data-theme="light"] .profile-field input,
html[data-theme="light"] .profile-field select,
html[data-theme="light"] .profile-field textarea,
html[data-theme="light"] .auth-modal input {
  background: #fff;
  color: #0e2f76;
  border-color: #aac0e1;
}
html[data-theme="light"] .deposit-form input:focus,
html[data-theme="light"] .deposit-form select:focus,
html[data-theme="light"] .withdrawal-form input:focus,
html[data-theme="light"] .withdrawal-form select:focus,
html[data-theme="light"] .profile-field input:focus,
html[data-theme="light"] .profile-field select:focus,
html[data-theme="light"] .profile-field textarea:focus,
html[data-theme="light"] .auth-modal input:focus {
  border-color: #0e2f76;
  box-shadow: 0 0 0 4px rgba(14, 47, 118, .13);
}
/* Keep transaction history copy black in both color themes. */
.dashboard-panel:has(#transactionHistory) > .dashboard-panel-heading h2,
#transactionHistory .transaction-item,
#transactionHistory .transaction-item-header h3,
#transactionHistory .transaction-amount,
#transactionHistory .transaction-network,
#transactionHistory .transaction-date,
#transactionHistory .transaction-empty,
#transactionHistory .transaction-empty h3,
#transactionHistory .transaction-empty p {
  color: #000;
}

/* User-supplied image overlay on the main About section. */
#about.about-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

#about.about-section::before {
  position: absolute;
  z-index: -1;
  inset: -10px;
  background: url("images/about-markets.jpg") center 46% / cover no-repeat;
  content: "";
  filter: blur(10px);
  opacity: .4;
  pointer-events: none;
}

#cboe .text-link,
#market-information .text-link,
#cboe .text-link:hover,
#market-information .text-link:hover {
  color: #ed9e59;
}


/* USER DASHBOARD */

.dashboard-section {
  min-height: 70vh;
  padding: 80px 0;
  background: #f7f9fc;
}

.dashboard-section[hidden] {
  display: none !important;
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-heading h1 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 48px);
  color: #172b4d;
}

.dashboard-heading h1 span {
  color: #2878e8;
}

.dashboard-heading p {
  color: #68758a;
  line-height: 1.7;
}

.dashboard-notice {
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #d9e6fb;
  border-radius: 14px;
  background: #edf4ff;
}

.dashboard-notice strong {
  color: #205fb7;
}

.dashboard-notice p {
  margin-top: 8px;
  color: #52637a;
  line-height: 1.7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-card {
  padding: 26px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 42, 75, 0.04);
}

.dashboard-card h2 {
  margin: 16px 0 10px;
  color: #172b4d;
  font-size: 20px;
}

.dashboard-card p {
  color: #68758a;
  line-height: 1.7;
  font-size: 14px;
}

.dashboard-home-link {
  display: inline-flex;
  margin-top: 28px;
}

@media (max-width: 700px) {
  .dashboard-section {
    padding: 48px 0;
  }

  .dashboard-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    padding: 22px;
  }
}


/* KEEP DASHBOARD VISIBILITY CONSISTENT */

#userDashboard[hidden] {
  display: none !important;
}

#userDashboard:not([hidden]) {
  display: block;
}

#userDashboard .section-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 760px) {
  #userDashboard .section-wrap {
    width: min(100% - 36px, 560px);
  }
}
/* KEEP DASHBOARD VISIBILITY CONSISTENT */

#userDashboard[hidden] {
  display: none !important;
}

#userDashboard:not([hidden]) {
  display: block;
}

#userDashboard .section-wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 760px) {
  #userDashboard .section-wrap {
    width: min(100% - 36px, 560px);
  }
}


/* DASHBOARD ACCOUNT SUMMARY */

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-summary-grid .dashboard-card {
  min-width: 0;
}

.dashboard-summary-grid .dashboard-card h2 {
  overflow-wrap: anywhere;
}

.dashboard-status {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 8px;
  background: #eef4ff;
  color: #205fb7;
  font-size: 14px;
  font-weight: 700;
}

.status-unavailable {
  background: #f1f3f6;
  color: #657187;
}

/* DASHBOARD PANELS */

.dashboard-panel {
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #e5eaf1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 42, 75, 0.04);
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-panel-heading h2 {
  margin-top: 8px;
  color: #172b4d;
  font-size: 22px;
}

.dashboard-panel > p {
  max-width: 720px;
  margin-bottom: 20px;
  color: #68758a;
  font-size: 14px;
  line-height: 1.8;
}

.dashboard-panel button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* EMPTY TRANSACTION HISTORY */

.transaction-empty {
  padding: 32px 16px;
  border: 1px dashed #d9e1ec;
  border-radius: 12px;
  text-align: center;
}

.transaction-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #eef4ff;
  color: #205fb7;
  font-size: 24px;
}

.transaction-empty h3 {
  margin-bottom: 8px;
  color: #172b4d;
  font-size: 17px;
}

.transaction-empty p {
  max-width: 480px;
  margin: 0 auto;
  color: #68758a;
  font-size: 14px;
  line-height: 1.7;
}

/* RESPONSIVE DASHBOARD */

@media (max-width: 1000px) {
  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dashboard-summary-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    padding: 20px;
  }

  .dashboard-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =================================
   WITHDRAWAL PANEL
================================= */

.withdrawal-panel {
  overflow: hidden;
}

.withdrawal-panel .dashboard-panel-heading {
  margin-bottom: 22px;
}

.withdrawal-panel .dashboard-panel-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.withdrawal-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 22px;
  margin-bottom: 26px;
  border: 1px solid #dce9fb;
  border-radius: 10px;
  background: linear-gradient(135deg, #f1f6ff, #f9fbff);
}

.withdrawal-balance span {
  color: #627287;
  font-size: 13px;
  font-weight: 600;
}

.withdrawal-balance strong {
  color: var(--blue);
  font: 800 25px var(--heading);
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}

/* Form layout */

.withdrawal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.withdrawal-form .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.withdrawal-form label {
  margin-bottom: 8px;
  color: #475970;
  font-size: 12px;
  font-weight: 700;
}

.withdrawal-form input,
.withdrawal-form select {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.withdrawal-form input::placeholder {
  color: #a0acbb;
}

.withdrawal-form input:focus,
.withdrawal-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1769d21a;
}

.withdrawal-form select {
  cursor: pointer;
}

.withdrawal-form input:focus-visible,
.withdrawal-form select:focus-visible {
  outline: 2px solid #90bfff;
  outline-offset: 2px;
}

/* Bank and crypto fields */

#bankWithdrawalFields,
#cryptoWithdrawalFields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  border: 1px solid #e5ebf2;
  border-radius: 9px;
  background: #f8faff;
}

#bankWithdrawalFields[hidden],
#cryptoWithdrawalFields[hidden] {
  display: none !important;
}

#bankWithdrawalFields .form-group,
#cryptoWithdrawalFields .form-group {
  min-width: 0;
}

/* Submit button and feedback */

#withdrawalSubmit {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 45px;
  padding: 12px 20px;
  font-size: 12px;
}

#withdrawalSubmit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

#withdrawalMessage {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#withdrawalMessage:empty {
  display: none;
}

/* Mobile layout */

@media (max-width: 600px) {
  .withdrawal-balance {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 17px;
  }

  .withdrawal-balance strong {
    font-size: 23px;
  }

  .withdrawal-form {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  #bankWithdrawalFields,
  #cryptoWithdrawalFields {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 15px;
  }

  #withdrawalSubmit {
    width: 100%;
    justify-self: stretch;
  }
}

/* =================================
   DEPOSIT PANEL
================================= */

.deposit-panel {
  overflow: hidden;
}

.deposit-panel .dashboard-panel-heading {
  margin-bottom: 22px;
}

.deposit-panel .dashboard-panel-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.deposit-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid #e5ebf2;
  border-radius: 9px;
  background: #f8faff;
  font-size: 13px;
}

.deposit-status-row span {
  color: var(--muted);
}

.deposit-status-row strong {
  color: var(--blue);
  text-transform: capitalize;
}

.deposit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.deposit-form .form-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.deposit-form label {
  margin-bottom: 8px;
  color: #475970;
  font-size: 12px;
  font-weight: 700;
}

.deposit-form input,
.deposit-form select {
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.deposit-form input:focus,
.deposit-form select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #1769d21a;
}

.deposit-form input[type="file"] {
  height: auto;
  min-height: 47px;
  padding: 9px;
}

.deposit-method-group,
.deposit-method-fields,
.deposit-instructions,
.deposit-upload-group,
#depositSubmit,
#depositFormMessage {
  grid-column: 1 / -1;
}

.deposit-method-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 20px;
  border: 1px solid #e5ebf2;
  border-radius: 10px;
  background: #f8faff;
}

.deposit-method-fields[hidden] {
  display: none !important;
}

.deposit-instructions {
  padding: 16px;
  border: 1px solid #dce9fb;
  border-radius: 8px;
  background: #eff5ff;
}

.deposit-instructions strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
}

.deposit-instructions p {
  margin: 5px 0 0;
  color: #627287;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.field-help {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.gift-card-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5ebf2;
  border-radius: 8px;
  background: #fff;
}

.gift-card-preview[hidden] {
  display: none !important;
}

.gift-card-preview img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 5px;
  background: #f5f8fc;
}

.remove-image-button {
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #e5ebf2;
  border-radius: 6px;
  background: #fff;
  color: #b42332;
  font-family: var(--font);
  font-size: 12px;
  cursor: pointer;
}

#depositSubmit {
  justify-self: start;
  min-height: 45px;
  padding: 12px 20px;
  font-size: 12px;
}

#depositSubmit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#depositFormMessage {
  margin: 0;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#depositFormMessage:empty {
  display: none;
}

@media (max-width: 600px) {
  .deposit-form,
  .deposit-method-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .deposit-method-fields {
    padding: 15px;
  }

  .deposit-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #depositSubmit {
    width: 100%;
    justify-self: stretch;
  }
}


/* DEPOSIT WALLET ADDRESS AND COPY BUTTON */

.deposit-wallet-group {
  grid-column: 1 / -1;
  min-width: 0;
}

.deposit-wallet-address-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}

.deposit-wallet-address-row input {
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f5f8fc;
  color: #243b53;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.deposit-wallet-address-row input:focus {
  outline: none;
  border-color: var(--blue);
}

.copy-deposit-address-button {
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}

.copy-deposit-address-button:hover:not(:disabled) {
  filter: brightness(0.92);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(23, 105, 210, 0.18);
}

.copy-deposit-address-button:focus-visible {
  outline: 3px solid rgba(23, 105, 210, 0.25);
  outline-offset: 3px;
}

.copy-deposit-address-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

@media (max-width: 480px) {
  .deposit-wallet-address-row {
    flex-direction: column;
  }

  .deposit-wallet-address-row input {
    width: 100%;
  }

  .copy-deposit-address-button {
    width: 100%;
  }
}


/* ==============================
   THEME TOGGLE
============================== */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--blue);
}

.theme-toggle [data-theme-icon] {
  font-size: 17px;
  line-height: 1;
}

/* ==============================
   DARK MODE
============================== */


/* Premium charcoal and gold dark theme */

html[data-theme="dark"] {
  color-scheme: dark;

  --ink: #f5f5f5;
  --muted: #a5a5a5;
  --line: #333333;
  --surface: #1e1e1e;
  --white: #121212;
  --blue: #d6ad60;
  --blue-dark: #b58b42;
  --green: #39c98a;
  --red: #ff6b72;
}

html[data-theme="dark"] body {
  background: #121212;
  color: #f5f5f5;
}

html[data-theme="dark"] header,
html[data-theme="dark"] .site-header {
  background: #151515;
  border-color: #303030;
}

html[data-theme="dark"] section,
html[data-theme="dark"] .dashboard,
html[data-theme="dark"] .dashboard-content {
  background-color: #121212;
  color: #f5f5f5;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .auth-modal,
html[data-theme="dark"] .modal-content {
  background: #1e1e1e;
  color: #f5f5f5;
  border-color: #333333;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] p,
html[data-theme="dark"] label,
html[data-theme="dark"] strong {
  color: inherit;
}

html[data-theme="dark"] a {
  color: #e0bd79;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: #191919;
  color: #f5f5f5;
  border-color: #404040;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #909090;
}

html[data-theme="dark"] table th,
html[data-theme="dark"] table td {
  border-color: #333333;
}

html[data-theme="dark"] .primary-button,
html[data-theme="dark"] button.primary-button {
  background: #d6ad60;
  color: #171717;
  border-color: #d6ad60;
}

html[data-theme="dark"] .primary-button:hover,
html[data-theme="dark"] button.primary-button:hover {
  background: #e5c47f;
  border-color: #e5c47f;
}

html[data-theme="dark"] .theme-toggle {
  background: #292929;
  color: #e0bd79;
  border-color: #484848;
}

html[data-theme="dark"] .theme-toggle:hover {
  background: #353535;
}

html[data-theme="dark"] footer {
  background: #0c0c0c;
  color: #c8c8c8;
  border-color: #292929;
}

@media (max-width: 760px) {
  .theme-toggle {
    padding: 8px 9px;
    gap: 5px;
  }

  .theme-toggle-label {
    display: none;
  }
}

@media (max-width: 600px) {
  .site-header {
    gap: 6px;
    padding-inline: 10px;
  }

  .header-actions {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .header-actions .button {
    padding: 8px 7px;
    font-size: 10px;
    white-space: nowrap;
  }

  .header-actions #loginButton {
    display: inline-flex;
  }

  .mobile-toggle {
    font-size: 22px;
  }
}


/* TradingView live chart */
.tradingview-chart-container {
  width: 100%;
  height: 480px;
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
}

.tradingview-chart-container .tradingview-widget-container {
  width: 100%;
  height: 100%;
}

.tradingview-chart-container
.tradingview-widget-container__widget {
  width: 100%;
  height: calc(100% - 32px);
}

@media (max-width: 600px) {
  .tradingview-chart-container {
    height: 390px;
  }
}


/* Live mini charts inside market cards */
.live-market-card {
  overflow: hidden;
}

.live-mini-chart {
  width: 100%;
  height: 180px;
  margin: 12px 0;
  overflow: hidden;
}

.live-mini-chart tv-mini-chart {
  display: block;
  width: 100%;
  height: 100%;
}

.live-market-card .watch-button {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}


/* Live market snapshot */
.snapshot-live-widget {
  width: 100%;
  min-height: 65px;
  overflow: hidden;
  margin-top: 12px;
}

.snapshot-live-widget .tradingview-widget-container {
  width: 100%;
  min-height: 65px;
}

.hero-chart-live {
  width: 100%;
  height: 180px;
  overflow: hidden;
  margin-top: 12px;
}

.hero-chart-live .tradingview-widget-container,
.hero-chart-live .tradingview-widget-container__widget {
  width: 100%;
  height: 100%;
}

.snapshot-subtitle {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.75;
}


/* Live Market Watch ticker */
.live-ticker-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
}

.live-ticker-strip .ticker-label {
  flex-shrink: 0;
}

.live-ticker-strip .live-ticker-widget {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.live-ticker-strip .tradingview-widget-container {
  width: 100%;
}

@media (max-width: 600px) {
  .live-ticker-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .live-ticker-strip .live-ticker-widget {
    width: 100%;
  }
}

/* TRANSACTION HISTORY */

.transaction-history {
display: flex;
flex-direction: column;
gap: 16px;
width: 100%;
margin-top: 20px;
}

.transaction-item {
display: block;
width: 100%;
box-sizing: border-box;
padding: 20px;
border: 1px solid #e2e8f0;
border-radius: 12px;
background: #ffffff;
color: #1e293b;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.transaction-item-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
margin-bottom: 12px;
}

.transaction-item-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: #0f172a;
}

.transaction-status {
display: inline-block;
padding: 6px 10px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
}

.transaction-status.status-pending {
background: #fff7ed;
color: #c2410c;
}

.transaction-status.status-confirmed {
background: #dcfce7;
color: #166534;
}

.transaction-status.status-rejected {
background: #fee2e2;
color: #b91c1c;
}

.transaction-amount {
margin: 8px 0;
font-size: 15px;
font-weight: 600;
color: #0f172a;
}

.transaction-network,
.transaction-date {
margin: 6px 0 0;
font-size: 13px;
line-height: 1.6;
color: #64748b;
}

.transaction-empty {
padding: 30px 20px;
text-align: center;
border: 1px dashed #cbd5e1;
border-radius: 12px;
color: #64748b;
}

.transaction-empty h3 {
margin: 10px 0;
color: #0f172a;
}

.transaction-empty p {
margin: 0;
font-size: 14px;
}

@media (max-width: 600px) {
.transaction-item {
padding: 15px;
}

.transaction-item-header {
align-items: flex-start;
}
}


/* Profile & Verification */

.profile-verification {
  margin-top: 24px;
}

.profile-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.profile-heading h2 {
  margin: 0 0 8px;
}

.profile-heading p {
  margin: 0;
  line-height: 1.6;
  opacity: 0.75;
  font-size: 13px;
}

.verification-badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(218, 177, 70, 0.12);
  color: #d8b451;
  border: 1px solid rgba(218, 177, 70, 0.25);
}

.verification-badge.verified {
  color: #55d6a0;
  background: rgba(49, 190, 128, 0.10);
  border-color: rgba(49, 190, 128, 0.3);
}

.verification-badge.rejected {
  color: #ff8888;
  background: rgba(240, 80, 80, 0.10);
  border-color: rgba(240, 80, 80, 0.3);
}

.profile-notice {
  padding: 14px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(218, 177, 70, 0.22);
  border-radius: 10px;
  background: rgba(218, 177, 70, 0.06);
  font-size: 12px;
  line-height: 1.7;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.profile-field label {
  font-size: 12px;
  font-weight: 600;
}

.profile-field input,
.profile-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid #343947;
  background: #151923;
  color: inherit;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-field input:focus,
.profile-field textarea:focus {
  border-color: #d8b451;
  box-shadow: 0 0 0 3px rgba(218, 177, 70, 0.1);
}

.profile-field textarea {
  resize: vertical;
}

#profileFormMessage {
  font-size: 12px;
  line-height: 1.6;
  margin: 16px 0;
  overflow-wrap: anywhere;
}

#saveProfileButton {
  padding: 13px 20px;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #e1c56f, #b99032);
  color: #17140c;
  font-weight: 700;
  cursor: pointer;
}

#saveProfileButton:hover:not(:disabled) {
  filter: brightness(1.08);
}

#saveProfileButton:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .profile-form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-field-wide {
    grid-column: auto;
  }

  .profile-heading {
    flex-direction: column;
  }
}


/* Investment plans — side-by-side layout */
.investment-plans-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.investment-plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
  padding: 22px 16px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transform: none;
}

.investment-plan-card:hover {
  border-color: #b7c5d8;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

.investment-plan-card .mini-label {
  margin: 0;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: #64748b;
}

.investment-plan-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #172033;
}

.investment-plan-card .investment-plan-price {
  margin: 4px 0 0;
  font-size: clamp(19px, 1.6vw, 27px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.6px;
  color: #111827;
  overflow-wrap: anywhere;
}

.investment-plan-card .investment-plan-description {
  margin: 0;
  min-height: 38px;
  font-size: 12px;
  line-height: 1.6;
  color: #64748b;
}

.investment-plan-card .select-investment-plan {
  width: 100%;
  max-width: none;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 8px;
  font-size: 12px;
  white-space: normal;
  border-radius: 8px;
}

.investment-plan-card .select-investment-plan:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Medium screens: three plans per row */
@media (max-width: 1100px) {
  .investment-plans-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tablets: two plans per row */
@media (max-width: 700px) {
  .investment-plans-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .investment-plan-card {
    padding: 18px 14px;
  }
}

/* Small phones: one plan per row */
@media (max-width: 380px) {
  .investment-plans-grid {
    grid-template-columns: 1fr;
  }
}


/* Investment plan status and cancellation controls */

.plan-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.plan-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
}

.plan-status-badge.pending {
  background: #fff7ed;
  color: #9a3412;
}

.plan-status-badge.review {
  background: #eff6ff;
  color: #1d4ed8;
}

.plan-status-badge.active {
  background: #ecfdf5;
  color: #047857;
}

.plan-status-badge.cancelled,
.plan-status-badge.rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.cancel-plan-request-button {
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid #dc2626;
  border-radius: 8px;
  background: transparent;
  color: #b91c1c;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.cancel-plan-request-button:hover {
  background: #dc2626;
  color: #ffffff;
}

.cancel-plan-request-button:disabled {
  opacity: 0.6;
  cursor: wait;
}


/* Dashboard readability and dark-mode contrast fix */
.dashboard-section,
.dashboard-panel,
.investment-plans-panel,
.plan-status-card {
  color: #1e293b;
}

.dashboard-section h1,
.dashboard-section h2,
.dashboard-section h3,
.dashboard-section p,
.dashboard-panel label,
.investment-plan-card h3,
.investment-plan-card p,
.plan-status-card h3,
.plan-status-card p {
  color: #1e293b;
}

.dashboard-section .dashboard-panel,
.dashboard-section .plan-status-card,
.dashboard-section .investment-plan-card {
  background-color: #ffffff;
}

.dashboard-section input,
.dashboard-section select,
.dashboard-section textarea {
  background-color: #ffffff;
  color: #1e293b;
  border-color: #cbd5e1;
}

.dashboard-section input::placeholder,
.dashboard-section textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.dashboard-section input:focus,
.dashboard-section select:focus,
.dashboard-section textarea:focus {
  outline: 2px solid #6478e5;
  outline-offset: 1px;
}

.dashboard-section button:disabled {
  opacity: 0.65;
}


/* FIX: Dark-mode welcome text and logout button only */

html[data-theme="dark"] .header-welcome {
  color: #ffffff !important;
}

html[data-theme="dark"] .header-actions .button-light {
  background-color: #263449 !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
}

html[data-theme="dark"] .header-actions .button-light:hover {
  background-color: #3b4c63 !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}


.forgot-password-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 16px;
}

.forgot-password-row a {
  color: #2563eb;
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-row a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}


/* Dashboard username — larger and easier to read */
.dashboard-heading .eyebrow #dashboardUserName {
display: inline-block;
font-family: var(--heading);
font-size: clamp(20px, 2.5vw, 28px);
font-weight: 800;
letter-spacing: 0.5px;
line-height: 1.4;
color: var(--blue);
text-transform: uppercase;
overflow-wrap: anywhere;
}

@media (max-width: 600px) {
.dashboard-heading .eyebrow #dashboardUserName {
font-size: 22px;
letter-spacing: 0.3px;
}
}

/* Header logo sizing fix */
.site-header .brand {
display: flex;
align-items: center;
flex-shrink: 0;
width: fit-content;
max-width: 180px;
overflow: hidden;
}

.site-header .brand .site-logo {
display: block;
width: 150px !important;
height: 40px !important;
max-width: 100%;
object-fit: contain;
object-position: left center;
}

/* Smaller logo on mobile */
@media (max-width: 600px) {
.site-header .brand {
max-width: 135px;
}

.site-header .brand .site-logo {
    width: 115px !important;
    height: 32px !important;
}

}

/* MODERN VISUAL POLISH */
:root {
  --blue: #1769d2;
  --blue-dark: #1056b3;
  --ink: #14253d;
  --muted: #687991;
  --line: #e2eaf3;
  --surface: #f4f7fb;
  --ease-smooth: cubic-bezier(.2, .75, .25, 1);
  --shadow-soft: 0 10px 30px rgba(20, 42, 75, .06);
  --shadow-hover: 0 18px 42px rgba(20, 42, 75, .11);
}

html { scroll-padding-top: 100px; }
body {
  background: #fbfcfe;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #dceaff; color: #102d52; }

button, a, input, select, textarea {
  transition-duration: .22s;
  transition-timing-function: var(--ease-smooth);
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(38, 120, 232, .32);
  outline-offset: 3px;
}

.site-header {
  height: 76px;
  background: rgba(255, 255, 255, .9);
  border-bottom-color: rgba(220, 229, 240, .82);
  box-shadow: 0 4px 20px rgba(22, 43, 70, .035);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
}

.site-header .site-logo { transition: transform .28s var(--ease-smooth), opacity .2s ease; }
.site-header .brand:hover .site-logo { transform: translateY(-1px); opacity: .9; }
.main-nav { gap: clamp(16px, 2vw, 28px); }
.main-nav a {
  position: relative;
  padding: 10px 0;
  transition: color .2s ease;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s var(--ease-smooth);
}
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* Keep the desktop navigation links on the header surface without a nav-shaped box. */
@media (min-width: 761px) {
  .site-header > #mainNav {
    background: transparent;
    background-image: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .site-header > #mainNav > a {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

.button, .watch-button, .theme-toggle, .copy-deposit-address-button,
.cancel-plan-request-button, .remove-image-button {
  border-radius: 10px;
  transition: transform .22s var(--ease-smooth), box-shadow .22s var(--ease-smooth),
    background-color .22s ease, color .22s ease, border-color .22s ease;
}
.button { min-height: 42px; }
.button:hover:not(:disabled), .watch-button:hover:not(:disabled),
.theme-toggle:hover, .copy-deposit-address-button:hover:not(:disabled),
.remove-image-button:hover:not(:disabled) {
  transform: translateY(-2px);
}
.button:active:not(:disabled), .watch-button:active:not(:disabled) { transform: translateY(0) scale(.985); }
.button-primary { box-shadow: 0 7px 18px rgba(23, 105, 210, .18); }
.button-primary:hover:not(:disabled) { box-shadow: 0 12px 25px rgba(23, 105, 210, .24); }
.button-light, .button-outline { border-radius: 10px; }

.hero { padding-top: clamp(58px, 7vw, 86px); }
.hero h1 { letter-spacing: -2.8px; }
.hero-copy > p { max-width: 520px; }
.hero-panel, .chart-card {
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .28s var(--ease-smooth), box-shadow .28s var(--ease-smooth), border-color .28s ease;
}
.hero-panel:hover, .chart-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ticker-strip { background: linear-gradient(100deg, #f2f6fc, #f8faff 50%, #f2f6fc); }

.market-card, .research-card, .dashboard-card, .dashboard-panel,
.investment-plan-card, .plan-status-card, .profile-verification {
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(20, 42, 75, .035);
  transition: transform .26s var(--ease-smooth), box-shadow .26s var(--ease-smooth),
    border-color .26s ease, background-color .26s ease;
}
.market-card { padding: 21px 19px 17px; }
.market-card:hover, .research-card:hover, .investment-plan-card:hover {
  transform: translateY(-5px);
  border-color: #c6d9f2;
  box-shadow: var(--shadow-hover);
}
.research-card { background: linear-gradient(160deg, #fff 0%, #fbfdff 100%); }
.research-card:hover { transform: translateY(-4px); }
.watch-button { min-height: 40px; background: #f8faff; }

.chart-section { background: linear-gradient(145deg, #f2f6fb, #f8faff 55%, #f1f6fc); }
.live-mini-chart, .hero-chart-live, .snapshot-live-widget, .live-ticker-widget {
  overflow: hidden;
  border-radius: 12px;
}

.dashboard-section {
  padding: clamp(42px, 6vw, 76px) 0;
  background: linear-gradient(180deg, #f4f7fc 0%, #fbfcfe 420px);
}
.dashboard-heading { margin-bottom: 30px; }
.dashboard-heading h1 { letter-spacing: -1.6px; }
.dashboard-summary-grid { gap: 16px; }
.dashboard-summary-grid .dashboard-card,
.dashboard-section .dashboard-card,
.dashboard-section .dashboard-panel,
.dashboard-section .plan-status-card,
.dashboard-section .investment-plan-card {
  background: #fff;
  border-color: #e4ebf4;
  box-shadow: 0 7px 24px rgba(24, 47, 78, .05);
}
.dashboard-summary-grid .dashboard-card { position: relative; overflow: hidden; }
.dashboard-summary-grid .dashboard-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 3px;
  background: linear-gradient(90deg, #2f80ed, #76afff);
  border-radius: 0 0 4px 4px;
  content: "";
  opacity: .75;
}
.dashboard-summary-grid .dashboard-card:hover,
.dashboard-section .dashboard-panel:hover,
.dashboard-section .plan-status-card:hover {
  transform: translateY(-3px);
  border-color: #cfdef0;
  box-shadow: var(--shadow-hover);
}
.dashboard-panel { padding: clamp(19px, 2.8vw, 28px); }
.dashboard-panel-heading { align-items: flex-start; }
.investment-plan-card { overflow: hidden; }

.deposit-instructions, .dashboard-notice, .profile-notice {
  border-radius: 12px;
}
.deposit-form input, .deposit-form select, .deposit-form textarea,
.withdrawal-form input, .withdrawal-form select, .withdrawal-form textarea,
.profile-field input, .profile-field select, .profile-field textarea,
.auth-modal input {
  min-height: 46px;
  border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.deposit-form input:focus, .deposit-form select:focus,
.withdrawal-form input:focus, .withdrawal-form select:focus,
.profile-field input:focus, .profile-field select:focus, .profile-field textarea:focus,
.auth-modal input:focus {
  border-color: #6aa5f2;
  box-shadow: 0 0 0 4px rgba(47, 128, 237, .12);
}
.deposit-submit-button, .withdrawal-form button[type="submit"],
#saveProfileButton, .auth-submit { min-height: 46px; border-radius: 10px; }
.auth-modal {
  border: 1px solid rgba(226, 234, 243, .9);
  border-radius: 20px;
  box-shadow: 0 30px 100px rgba(2, 20, 45, .24);
  animation: aurevon-modal-in .24s var(--ease-smooth) both;
}
.modal-backdrop { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.modal-close { width: 36px; height: 36px; border-radius: 50%; }
.modal-close:hover { color: var(--ink); background: #f0f4f9; }

.site-footer, .dashboard-footer { color: var(--muted); }
.site-footer a, .text-link, .research-card a { transition: color .2s ease, gap .2s var(--ease-smooth); }
.site-footer a:hover, .text-link:hover, .research-card a:hover { color: var(--blue); }

@keyframes aurevon-modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

html[data-theme="dark"] body { background: #101720; color: #e7edf6; }
html[data-theme="dark"] .site-header {
  background: rgba(18, 27, 39, .9);
  border-color: #293646;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .main-nav a { color: #aab7c8; }
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active { color: #e0bd79; }
html[data-theme="dark"] .main-nav a::after { background: #d6ad60; }
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .research-card,
html[data-theme="dark"] .dashboard-summary-grid .dashboard-card,
html[data-theme="dark"] .dashboard-section .dashboard-card,
html[data-theme="dark"] .dashboard-section .dashboard-panel,
html[data-theme="dark"] .dashboard-section .plan-status-card,
html[data-theme="dark"] .dashboard-section .investment-plan-card,
html[data-theme="dark"] .auth-modal {
  background: #182332;
  color: #e7edf6;
  border-color: #2a3a4e;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .research-card { background-image: linear-gradient(150deg, #1b2939, #172231); }
html[data-theme="dark"] .dashboard-section {
  background: linear-gradient(180deg, #131e2b 0%, #101720 420px);
  color: #e7edf6;
}
html[data-theme="dark"] .dashboard-section h1,
html[data-theme="dark"] .dashboard-section h2,
html[data-theme="dark"] .dashboard-section h3,
html[data-theme="dark"] .dashboard-section p,
html[data-theme="dark"] .dashboard-panel label,
html[data-theme="dark"] .investment-plan-card h3,
html[data-theme="dark"] .investment-plan-card p,
html[data-theme="dark"] .plan-status-card h3,
html[data-theme="dark"] .plan-status-card p { color: #e7edf6; }
html[data-theme="dark"] .dashboard-heading p,
html[data-theme="dark"] .dashboard-section .mini-label,
html[data-theme="dark"] .research-card p { color: #aab7c8; }
html[data-theme="dark"] .deposit-form input,
html[data-theme="dark"] .deposit-form select,
html[data-theme="dark"] .deposit-form textarea,
html[data-theme="dark"] .withdrawal-form input,
html[data-theme="dark"] .withdrawal-form select,
html[data-theme="dark"] .withdrawal-form textarea,
html[data-theme="dark"] .profile-field input,
html[data-theme="dark"] .profile-field select,
html[data-theme="dark"] .profile-field textarea,
html[data-theme="dark"] .auth-modal input {
  background: #111b28;
  color: #e7edf6;
  border-color: #35465b;
}
html[data-theme="dark"] .ticker-strip { background: #151f2c; border-color: #2a3849; }
html[data-theme="dark"] .chart-section { background: linear-gradient(145deg, #121c29, #172332); border-color: #283748; }
html[data-theme="dark"] .watch-button { background: #1b2a3b; border-color: #33465c; color: #d0d9e5; }
html[data-theme="dark"] .watch-button:hover,
html[data-theme="dark"] .watch-button.is-added { background: #263b54; color: #e5c47f; border-color: #566f8e; }
html[data-theme="dark"] .button-light,
html[data-theme="dark"] .button-outline { background: #202e3f; color: #eef3fa; border-color: #3b4c61; }
html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .button-outline:hover { background: #2a3b50; }
html[data-theme="dark"] .button-primary { color: #17202b; }
html[data-theme="dark"] .button-primary:hover { color: #17202b; }
html[data-theme="dark"] .site-footer { background: #0e151e; border-color: #273545; }

@media (max-width: 760px) {
  .site-header { height: 70px; }
  .main-nav { border-radius: 0 0 16px 16px; }
  .main-nav a::after { display: none; }
  .hero { padding-top: 48px; }
  .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-panel-heading { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .dashboard-summary-grid { grid-template-columns: 1fr; }
  .dashboard-summary-grid .dashboard-card { padding: 20px; }
  .market-card:hover, .research-card:hover,
  .dashboard-summary-grid .dashboard-card:hover,
  .dashboard-section .dashboard-panel:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* USER-PROVIDED DARK PALETTE */
html[data-theme="dark"] {
  --ink: #ffe3bb;
  --muted: #c2dd6c;
  --line: rgba(255, 227, 187, .16);
  --surface: #303430;
  --white: #303430;
  --blue: #30b155;
  --blue-dark: #248d45;
  --dark-base: #242424;
  --dark-panel: #303430;
  --dark-raised: #3c443b;
  --dark-coral: #79ce67;
  --dark-orange: #c2dd6c;
  --dark-pink: #ffe3bb;
  color-scheme: dark;
  background: var(--dark-base);
  color: var(--dark-pink);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .dashboard-section {
  background: var(--dark-base);
  color: var(--dark-pink);
}
html[data-theme="dark"] .hero,
html[data-theme="dark"] .markets-section,
html[data-theme="dark"] .research-section,
html[data-theme="dark"] .risk-section {
  background: var(--dark-base);
  color: var(--dark-pink);
}
html[data-theme="dark"] .about-section { background: var(--dark-panel); }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .ticker-strip,
html[data-theme="dark"] .chart-section,
html[data-theme="dark"] .site-footer {
  background: var(--dark-base);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .hero-panel,
html[data-theme="dark"] .chart-card,
html[data-theme="dark"] .market-card,
html[data-theme="dark"] .dashboard-summary-grid .dashboard-card,
html[data-theme="dark"] .dashboard-section .dashboard-card,
html[data-theme="dark"] .dashboard-section .dashboard-panel,
html[data-theme="dark"] .dashboard-section .plan-status-card,
html[data-theme="dark"] .dashboard-section .investment-plan-card,
html[data-theme="dark"] .auth-modal {
  background-color: var(--dark-panel);
  background-image: none;
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .research-card,
html[data-theme="dark"] .dashboard-summary-grid .dashboard-card:hover,
html[data-theme="dark"] .dashboard-section .dashboard-panel:hover,
html[data-theme="dark"] .dashboard-section .plan-status-card:hover,
html[data-theme="dark"] .market-card:hover,
html[data-theme="dark"] .research-card:hover,
html[data-theme="dark"] .investment-plan-card:hover {
  background-color: var(--dark-raised);
  color: var(--dark-pink);
  border-color: rgba(237, 158, 89, .5);
}
html[data-theme="dark"] .site-header {
  background-color: rgba(27, 25, 49, .94);
  box-shadow: 0 8px 28px rgba(15, 8, 28, .25);
}
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .dashboard-heading p,
html[data-theme="dark"] .dashboard-section .mini-label,
html[data-theme="dark"] .research-card p,
html[data-theme="dark"] .asset-heading small,
html[data-theme="dark"] .ticker-item span,
html[data-theme="dark"] .chart-axis,
html[data-theme="dark"] .snapshot-subtitle,
html[data-theme="dark"] .panel-bottom small {
  color: #d4a7b0;
}
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .header-welcome,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .research-card a,
html[data-theme="dark"] .site-footer a:hover {
  color: var(--dark-orange);
}
html[data-theme="dark"] .main-nav a::after,
html[data-theme="dark"] .dashboard-summary-grid .dashboard-card::before {
  background: var(--dark-orange);
}
html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .hero h1 span,
html[data-theme="dark"] .dashboard-heading h1 span,
html[data-theme="dark"] .dashboard-heading .eyebrow #dashboardUserName {
  color: var(--dark-orange);
}
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .auth-submit,
html[data-theme="dark"] .deposit-submit-button,
html[data-theme="dark"] .withdrawal-form button[type="submit"],
html[data-theme="dark"] #saveProfileButton {
  background: var(--dark-orange);
  color: var(--dark-base);
  border-color: var(--dark-orange);
}
html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .auth-submit:hover,
html[data-theme="dark"] .deposit-submit-button:hover,
html[data-theme="dark"] .withdrawal-form button[type="submit"]:hover,
html[data-theme="dark"] #saveProfileButton:hover {
  background: #f2ae70;
  color: var(--dark-base);
  border-color: #f2ae70;
}
html[data-theme="dark"] .button-light,
html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .theme-toggle {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .button-outline:hover,
html[data-theme="dark"] .theme-toggle:hover {
  background: var(--dark-coral);
  color: var(--dark-pink);
  border-color: rgba(237, 158, 89, .55);
}
html[data-theme="dark"] .watch-button,
html[data-theme="dark"] .time-buttons button {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .watch-button:hover,
html[data-theme="dark"] .watch-button.is-added,
html[data-theme="dark"] .time-buttons button:hover,
html[data-theme="dark"] .time-buttons button.selected {
  background: var(--dark-coral);
  color: #fff0e3;
  border-color: var(--dark-orange);
}
html[data-theme="dark"] .deposit-form input,
html[data-theme="dark"] .deposit-form select,
html[data-theme="dark"] .deposit-form textarea,
html[data-theme="dark"] .withdrawal-form input,
html[data-theme="dark"] .withdrawal-form select,
html[data-theme="dark"] .withdrawal-form textarea,
html[data-theme="dark"] .profile-field input,
html[data-theme="dark"] .profile-field select,
html[data-theme="dark"] .profile-field textarea,
html[data-theme="dark"] .auth-modal input {
  background: var(--dark-base);
  color: var(--dark-pink);
  border-color: rgba(233, 188, 185, .28);
}
html[data-theme="dark"] .deposit-form input:focus,
html[data-theme="dark"] .deposit-form select:focus,
html[data-theme="dark"] .withdrawal-form input:focus,
html[data-theme="dark"] .withdrawal-form select:focus,
html[data-theme="dark"] .profile-field input:focus,
html[data-theme="dark"] .profile-field select:focus,
html[data-theme="dark"] .profile-field textarea:focus,
html[data-theme="dark"] .auth-modal input:focus {
  border-color: var(--dark-orange);
  box-shadow: 0 0 0 4px rgba(237, 158, 89, .16);
}
html[data-theme="dark"] .deposit-instructions,
html[data-theme="dark"] .dashboard-notice,
html[data-theme="dark"] .profile-notice {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: rgba(233, 188, 185, .2);
}
html[data-theme="dark"] .section-tag,
html[data-theme="dark"] .market-data-status {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .modal-backdrop { background: rgba(13, 10, 25, .78); }
html[data-theme="dark"] .modal-close:hover { background: var(--dark-raised); color: var(--dark-pink); }
html[data-theme="dark"] .risk-symbol { background: var(--dark-coral); color: #fff0e3; }
html[data-theme="dark"] .status-dot { box-shadow: 0 0 0 4px rgba(237, 158, 89, .12); }

@media (max-width: 760px) {
  html[data-theme="dark"] .main-nav { background: var(--dark-base); }
  html[data-theme="dark"] .main-nav a { border-color: var(--line); }
}

/* Green and cream accents from the current dark-mode palette. */
html[data-theme="dark"] .site-header {
  background-color: rgba(36, 36, 36, .95);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .dashboard-heading p,
html[data-theme="dark"] .dashboard-section .mini-label,
html[data-theme="dark"] .research-card p,
html[data-theme="dark"] .asset-heading small,
html[data-theme="dark"] .ticker-item span,
html[data-theme="dark"] .chart-axis,
html[data-theme="dark"] .snapshot-subtitle,
html[data-theme="dark"] .panel-bottom small {
  color: #c2dd6c;
}
html[data-theme="dark"] .main-nav a:hover,
html[data-theme="dark"] .main-nav a.active,
html[data-theme="dark"] .header-welcome,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .research-card a,
html[data-theme="dark"] .site-footer a:hover {
  color: #79ce67;
}
html[data-theme="dark"] .main-nav a::after,
html[data-theme="dark"] .dashboard-summary-grid .dashboard-card::before {
  background: linear-gradient(90deg, #c2dd6c, #30b155);
}
html[data-theme="dark"] .button-primary,
html[data-theme="dark"] .auth-submit,
html[data-theme="dark"] .deposit-submit-button,
html[data-theme="dark"] .withdrawal-form button[type="submit"],
html[data-theme="dark"] #saveProfileButton {
  background: linear-gradient(105deg, #ffe3bb, #c2dd6c 48%, #30b155);
  color: #242424;
  border-color: #79ce67;
}
html[data-theme="dark"] .button-primary:hover,
html[data-theme="dark"] .auth-submit:hover,
html[data-theme="dark"] .deposit-submit-button:hover,
html[data-theme="dark"] .withdrawal-form button[type="submit"]:hover,
html[data-theme="dark"] #saveProfileButton:hover {
  background: #79ce67;
  color: #242424;
  border-color: #79ce67;
}
html[data-theme="dark"] .button-light,
html[data-theme="dark"] .button-outline,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .watch-button,
html[data-theme="dark"] .time-buttons button {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .button-light:hover,
html[data-theme="dark"] .button-outline:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .watch-button:hover,
html[data-theme="dark"] .watch-button.is-added,
html[data-theme="dark"] .time-buttons button:hover,
html[data-theme="dark"] .time-buttons button.selected {
  background: #30b155;
  color: #242424;
  border-color: #79ce67;
}
html[data-theme="dark"] .deposit-form input:focus,
html[data-theme="dark"] .deposit-form select:focus,
html[data-theme="dark"] .withdrawal-form input:focus,
html[data-theme="dark"] .withdrawal-form select:focus,
html[data-theme="dark"] .profile-field input:focus,
html[data-theme="dark"] .profile-field select:focus,
html[data-theme="dark"] .profile-field textarea:focus,
html[data-theme="dark"] .auth-modal input:focus {
  border-color: #79ce67;
  box-shadow: 0 0 0 4px rgba(121, 206, 103, .2);
}
html[data-theme="dark"] .deposit-instructions,
html[data-theme="dark"] .dashboard-notice,
html[data-theme="dark"] .profile-notice,
html[data-theme="dark"] .section-tag,
html[data-theme="dark"] .market-data-status {
  background: var(--dark-raised);
  color: var(--dark-pink);
  border-color: var(--line);
}
html[data-theme="dark"] .status-dot {
  box-shadow: 0 0 0 4px rgba(121, 206, 103, .18);
}

/* Keep longer labels and values inside their cards on narrow screens. */
.dashboard-section,
.dashboard-summary-grid,
.dashboard-card,
.dashboard-panel,
.plan-status-card,
.investment-plan-card,
.chart-card,
.market-card,
.research-card,
.auth-modal,
.deposit-form,
.withdrawal-form,
.profile-field {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.dashboard-card *,
.dashboard-panel *,
.plan-status-card *,
.investment-plan-card *,
.chart-card *,
.market-card *,
.research-card *,
.auth-modal *,
.deposit-form *,
.withdrawal-form *,
.profile-field * {
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-card :is(h1, h2, h3, h4, p, small, label, a, span),
.dashboard-panel :is(h1, h2, h3, h4, p, small, label, a, span),
.plan-status-card :is(h1, h2, h3, h4, p, small, label, a, span),
.investment-plan-card :is(h1, h2, h3, h4, p, small, label, a, span),
.chart-card :is(h1, h2, h3, h4, p, small, label, a, span),
.market-card :is(h1, h2, h3, h4, p, small, label, a, span),
.research-card :is(h1, h2, h3, h4, p, small, label, a, span),
.auth-modal :is(h1, h2, h3, h4, p, small, label, a, span) {
  overflow-wrap: anywhere;
}

.deposit-form :is(input, select, textarea),
.withdrawal-form :is(input, select, textarea),
.profile-field :is(input, select, textarea) {
  width: 100%;
  max-width: 100%;
}

/* Let only a cancelled plan notice sit directly on the investment panel surface. */
.dashboard-section .plan-status-card:has(.plan-status-badge.cancelled),
.dashboard-section .plan-status-card:has(.plan-status-badge.cancelled):hover {
  background: transparent;
  background-image: none;
  border-color: transparent;
  outline: none;
  box-shadow: none;
  transform: none;
}

@media (max-width: 600px) {
  .dashboard-card,
  .dashboard-panel,
  .plan-status-card,
  .investment-plan-card,
  .chart-card,
  .market-card,
  .research-card {
    padding-inline: clamp(14px, 4vw, 20px);
  }
}

/* Final narrow-screen layout adjustments for phones. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .section-wrap,
  #userDashboard .section-wrap {
    width: calc(100% - 32px);
    max-width: 560px;
  }

  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: auto;
    min-height: 66px;
    padding: 9px 12px;
    gap: 8px;
  }

  .site-header > .brand { order: 1; margin-right: auto; }
  .site-header > .theme-toggle { order: 2; padding: 8px 10px; }
  .site-header > .mobile-toggle { order: 3; margin: 0; padding: 3px 2px; }

  .site-header .brand,
  .site-header .brand .site-logo {
    max-width: 125px;
  }

  .site-header .brand .site-logo {
    width: 115px !important;
    height: 32px !important;
  }

  .site-header .header-actions {
    order: 4;
    display: flex;
    width: 100%;
    justify-content: stretch;
    gap: 8px;
  }

  .site-header .header-actions .button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
    white-space: normal;
  }

  .site-header .main-nav {
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    padding-inline: 18px;
  }

  .site-header .main-nav a { min-height: 44px; }

  .hero,
  .chart-layout,
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero > *,
  .chart-layout > *,
  .about-layout > *,
  .dashboard-panel,
  .deposit-form > *,
  .withdrawal-form > * {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 48px);
    letter-spacing: -1.3px;
    overflow-wrap: anywhere;
  }

  .section-heading,
  .dashboard-panel-heading,
  .transaction-item-header,
  .withdrawal-balance,
  .footer-top,
  .footer-bottom {
    min-width: 0;
    flex-wrap: wrap;
  }

  .dashboard-summary-grid,
  .investment-plans-grid,
  .market-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-summary-grid .dashboard-card,
  .dashboard-panel,
  .investment-plan-card,
  .chart-card,
  .market-card,
  .research-card {
    min-width: 0;
    padding: 16px;
  }

  .deposit-form,
  .deposit-method-fields,
  .withdrawal-form,
  #bankWithdrawalFields,
  #cryptoWithdrawalFields,
  .profile-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .deposit-method-fields,
  #bankWithdrawalFields,
  #cryptoWithdrawalFields {
    padding: 14px;
  }

  .deposit-wallet-address-row {
    flex-wrap: wrap;
  }

  .deposit-wallet-address-row input {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .deposit-wallet-address-row button,
  #withdrawalSubmit,
  #depositSubmit {
    width: 100%;
    justify-self: stretch;
  }

  .tradingview-chart-container,
  .hero-chart-live,
  .live-mini-chart,
  .snapshot-live-widget {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .auth-modal {
    width: min(100%, 440px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 22px 18px;
  }

  .site-footer { padding-inline: 16px; }
  .footer-bottom > * { overflow-wrap: anywhere; }
}

@media (max-width: 380px) {
  .section-wrap,
  #userDashboard .section-wrap {
    width: calc(100% - 24px);
  }

  .site-header { padding-inline: 10px; gap: 6px; }
  .site-header .brand,
  .site-header .brand .site-logo { max-width: 108px; }
  .site-header .brand .site-logo { width: 100px !important; }
  .site-header .header-actions { gap: 6px; }
  .site-header .header-actions .button { padding-inline: 7px; font-size: 10px; }
  .hero-panel { padding: 16px 12px; }
  .panel-top,
  .chart-card-header { align-items: flex-start; flex-wrap: wrap; }
  .snapshot-value { font-size: clamp(20px, 7vw, 25px); }
  .chart-card { padding-inline: 10px; }
  .time-buttons button { padding: 6px 5px; font-size: 10px; }
}

.site-header .brand {
  width: auto;
  max-width: none;
  gap: 10px;
  overflow: visible;
}

.brand-company-name {
  color: var(--ink);
  font-family: var(--heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .15px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .site-header .brand,
  .site-header .brand .site-logo {
    max-width: none;
  }

  .site-header > .brand {
    width: auto;
    flex-wrap: nowrap;
    margin-right: auto;
    row-gap: 0;
  }

  .site-header .brand .site-logo {
    width: 72px !important;
    height: 32px !important;
  }

  .brand-company-name {
    display: block;
    width: auto;
    max-width: none;
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
    -webkit-text-stroke: .2px currentColor;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .site-header > .brand {
    width: auto;
    flex-wrap: nowrap;
    margin-right: auto;
    row-gap: 0;
  }

  .site-header .brand .site-logo { width: 62px !important; }
  .brand-company-name {
    width: auto;
    max-width: none;
    font-size: 15px;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  #headerActions:has(.header-welcome) {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    margin-left: 30px;
    margin-top: -3%;
  }

  #headerActions .header-welcome {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  #headerActions .header-welcome + .button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 20px;
    padding: 4px 7px;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }
}

.mobile-nav-logout[hidden] { display: none !important; }

.main-nav a[data-auth-action="visit-main"],
.main-nav a[data-auth-action="back-dashboard"] {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 760px) {
  #mainNav.open .mobile-nav-logout:not([hidden]) {
    display: block;
    order: 99;
    width: 100%;
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  #mainNav.open .mobile-nav-logout .header-logout-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
  }
}

/* Public site footer: consistent navy, white, and gold styling in both themes. */
.site-footer {
  background: #101c30;
  color: #f7f9fc;
  border-top: 1px solid rgba(224, 189, 121, .42);
  padding: 38px max(24px, calc((100vw - 1160px) / 2)) 20px;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(190px, 1.05fr) minmax(190px, .9fr) minmax(235px, 1.25fr) minmax(125px, .65fr);
  gap: clamp(18px, 3vw, 42px);
  padding-bottom: 30px;
}
.footer-brand-column > p {
  max-width: 250px;
  margin: 15px 0 0;
  color: #c1cad7;
  font-size: 13px;
  line-height: 1.6;
}
.footer-headquarters h2,
.footer-contact h2,
.footer-links h2 {
  margin: 1px 0 14px;
  color: #e0bd79;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.footer-headquarters address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #f7f9fc;
  font-size: 13px;
  font-style: normal;
  line-height: 1.75;
}
.footer-location-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  color: #e0bd79;
}
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-contact-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: #f7f9fc;
  font-size: 12px;
  line-height: 1.55;
}
.footer-contact-list li > svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #e0bd79;
}
.footer-contact-list li > span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-contact-label { color: #e0bd79; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.site-footer .footer-contact-list a {
  width: fit-content;
  max-width: 100%;
  color: #f7f9fc;
  overflow-wrap: anywhere;
  text-decoration: none;
}
.site-footer .footer-contact-list a:hover,
.site-footer .footer-contact-list a:focus-visible { color: #e0bd79; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact-list strong { color: #f7f9fc; font-weight: 500; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links h2 { margin-bottom: 4px; }
.site-footer .footer-links a {
  color: #d2d9e3;
  font-size: 13px;
  text-decoration: none;
}
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible { color: #e0bd79; }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 16px;
  color: #aab6c7;
  font-size: 11px;
}

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 34px; row-gap: 28px; }
}

@media (max-width: 760px) {
  .site-footer { padding: 30px 20px 18px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-bottom: 24px; }
  .footer-brand-column > p { margin-top: 11px; }
  .footer-headquarters h2, .footer-contact h2, .footer-links h2 { margin-bottom: 10px; }
  .footer-links { gap: 9px; }
  .site-footer .footer-bottom { flex-direction: column; gap: 7px; }
}

/* Carry the requested light palette through public sections and the user dashboard. */
html[data-theme="light"] .site-header,
html[data-theme="light"] .main-nav {
  background-color: #f5feff;
  color: #0e2f76;
  border-color: #d5e2f1;
}
html[data-theme="light"] .main-nav a,
html[data-theme="light"] .dashboard-section h1,
html[data-theme="light"] .dashboard-section h2,
html[data-theme="light"] .dashboard-section h3,
html[data-theme="light"] .dashboard-panel label {
  color: #0e2f76;
}
html[data-theme="light"] .risk-section,
html[data-theme="light"] .ticker-strip,
html[data-theme="light"] .chart-section {
  background: #aac0e1;
  color: #0e2f76;
  border-color: #9db5d8;
}
html[data-theme="light"] .risk-section p { color: #294878; }
html[data-theme="light"] .hero-panel,
html[data-theme="light"] .chart-card,
html[data-theme="light"] .market-card,
html[data-theme="light"] .research-card,
html[data-theme="light"] .dashboard-section .dashboard-card,
html[data-theme="light"] .dashboard-section .dashboard-panel,
html[data-theme="light"] .dashboard-section .plan-status-card,
html[data-theme="light"] .dashboard-section .investment-plan-card,
html[data-theme="light"] .dashboard-section .investment-plan-notice,
html[data-theme="light"] .auth-modal {
  background-color: #fff;
  color: #0e2f76;
  border-color: #d5e2f1;
  box-shadow: 0 8px 24px rgba(14, 47, 118, .07);
}
html[data-theme="light"] .dashboard-summary-grid .dashboard-card:nth-child(even),
html[data-theme="light"] .deposit-instructions,
html[data-theme="light"] .dashboard-notice,
html[data-theme="light"] .profile-notice,
html[data-theme="light"] .section-tag,
html[data-theme="light"] .market-data-status {
  background-color: #e8f1fc;
  color: #0e2f76;
  border-color: #c7d8ed;
}
html[data-theme="light"] .button-primary,
html[data-theme="light"] .auth-submit,
html[data-theme="light"] .deposit-submit-button,
html[data-theme="light"] .withdrawal-form button[type="submit"],
html[data-theme="light"] #saveProfileButton {
  background-color: #0e2f76;
  color: #f5feff;
  border-color: #0e2f76;
}
html[data-theme="light"] .button-primary:hover,
html[data-theme="light"] .auth-submit:hover,
html[data-theme="light"] .deposit-submit-button:hover,
html[data-theme="light"] .withdrawal-form button[type="submit"]:hover,
html[data-theme="light"] #saveProfileButton:hover {
  background-color: #09245b;
  border-color: #09245b;
}
html[data-theme="light"] .button-light,
html[data-theme="light"] .button-outline,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .watch-button,
html[data-theme="light"] .time-buttons button {
  background-color: #f5feff;
  color: #0e2f76;
  border-color: #aac0e1;
}
html[data-theme="light"] .button-light:hover,
html[data-theme="light"] .button-outline:hover,
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .watch-button:hover,
html[data-theme="light"] .watch-button.is-added,
html[data-theme="light"] .time-buttons button:hover,
html[data-theme="light"] .time-buttons button.selected {
  background-color: #e8f1fc;
  color: #0e2f76;
  border-color: #8eaad2;
}
html[data-theme="light"] .main-nav a:hover,
html[data-theme="light"] .main-nav a.active { color: #0e2f76; }
html[data-theme="light"] .text-link,
html[data-theme="light"] .research-card a,
html[data-theme="light"] .header-welcome { color: #0e2f76; }
html[data-theme="light"] .site-footer {
  background: #0e2f76;
  color: #f5feff;
  border-color: #0e2f76;
}
html[data-theme="light"] .dashboard-section input,
html[data-theme="light"] .dashboard-section select,
html[data-theme="light"] .dashboard-section textarea,
html[data-theme="light"] .auth-modal input {
  background-color: #fff;
  color: #0e2f76;
  border-color: #aac0e1;
}
html[data-theme="light"] .dashboard-section input:focus,
html[data-theme="light"] .dashboard-section select:focus,
html[data-theme="light"] .dashboard-section textarea:focus,
html[data-theme="light"] .auth-modal input:focus {
  border-color: #0e2f76;
  box-shadow: 0 0 0 4px rgba(14, 47, 118, .13);
}

/* Keep the public footer black in either color theme. */
.site-footer,
html[data-theme="light"] .site-footer,
html[data-theme="dark"] .site-footer {
  background-color: #000;
}

/* Dark mode applies a background to every section; keep these footer groups unboxed. */
html[data-theme="dark"] .site-footer .footer-headquarters,
html[data-theme="dark"] .site-footer .footer-contact {
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
}
