:root {
  --bg: #050608;
  --surface: #0b0d12;
  --surface-2: #171a20;
  --surface-3: #1d2027;
  --text: #f4f5f7;
  --muted: #9ea6b3;
  --line: rgba(218, 165, 32, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #daa520;
  --gold-dark: #b8860b;
  --green: #22d58b;
  --mint: #2be7b4;
  --blue: #2f9fff;
  --violet: #b85dff;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: #000000;
}
body.light-theme {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #edf1f9;
  --text: #111827;
  --muted: #5b6577;
  --line: rgba(196, 152, 38, 0.28);
  --line-soft: rgba(17, 24, 39, 0.12);
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  background: #f3f6fb;
}
body.light-theme .app-shell {
  background: #f8faff;
}
body.light-theme .card,
body.light-theme .modal-shell {
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
}
body.light-theme .main-nav button,
body.light-theme .chip-btn,
body.light-theme .chip {
  background: rgba(17,24,39,.03);
}
body.light-theme .invest-summary {
  background: linear-gradient(180deg, rgba(244,247,255,.95), rgba(239,243,252,.95));
}
body.light-theme .property-modal::backdrop {
  background: rgba(10, 17, 32, 0.35);
}
body.light-theme .topbar,
body.light-theme .main-nav {
  border-color: rgba(17, 24, 39, 0.12);
}
body.light-theme .main-nav button.active,
body.light-theme .main-nav button:hover,
body.light-theme .chip-btn:hover,
body.light-theme .chip.active {
  color: #8b5e00;
  border-color: rgba(139, 94, 0, 0.32);
  background: rgba(218,165,32,.14);
}
body.light-theme .advice-title,
body.light-theme #homeExpertAdvice,
body.light-theme .section-head span {
  color: #9a6700;
}
body.light-theme .section-head h2,
body.light-theme .section-head h3,
body.light-theme .section-head-flex h3,
body.light-theme .card h3,
body.light-theme .card h4,
body.light-theme .card h5 {
  color: #101827;
}
body.light-theme .card p,
body.light-theme .ticker__track span,
body.light-theme .video-feature .video-desc,
body.light-theme .video-feature .video-meta,
body.light-theme .video-card-mini .author,
body.light-theme .invest-note,
body.light-theme .activity-details p,
body.light-theme .resource-panel p,
body.light-theme .resource-panel li {
  color: #4b5565;
}
body.light-theme .card small,
body.light-theme .small-label {
  color: #667285;
}
body.light-theme .hero-rich {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-color: rgba(17, 24, 39, 0.12);
}
body.light-theme .ticker,
body.light-theme .market,
body.light-theme .resource-panel,
body.light-theme .video-feature,
body.light-theme .video-card-mini,
body.light-theme .activity-item,
body.light-theme .settings-list,
body.light-theme .profile-card-wallet,
body.light-theme .stat-box {
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}
body.light-theme .category-card {
  background: linear-gradient(180deg, #ffffff, #f4f7ff);
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 24px rgba(15, 23, 42, 0.07);
}
body.light-theme .category-card h3 {
  color: #0f172a;
}
body.light-theme .category-card p {
  color: #445166;
}
body.light-theme .category-card small {
  color: #556175;
  opacity: 1;
}
body.light-theme .meta span,
body.light-theme .chips-row span {
  background: rgba(41, 89, 66, 0.10);
  border-color: rgba(41, 89, 66, 0.28);
  color: #28553f;
}
body.light-theme .progress {
  background: #dbe3f1;
}
body.light-theme .avatar-dot {
  background: linear-gradient(180deg, #dbe3f3, #ccd7ea);
  color: #1f2b3f;
  border-color: rgba(17,24,39,.14);
}
body.light-theme .icon-dot {
  border-color: rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72), 0 6px 14px rgba(15,23,42,.14);
}
body.light-theme .profile-hero {
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  border-color: rgba(17,24,39,.14);
}
body.light-theme .avatar-large {
  background: linear-gradient(180deg, #d5dcea, #c8d1e3);
  color: #1b2435;
  border-color: rgba(17,24,39,.18);
}
body.light-theme .wallet-action-btn,
body.light-theme .settings-item {
  color: #1f2937;
}
body.light-theme .settings-item svg,
body.light-theme .settings-item .arrow {
  color: #64748b;
}
body.light-theme .modal-shell {
  background: #f8fbff;
  border-color: rgba(17,24,39,.15);
}
body.light-theme .close-btn {
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.18);
  color: #0f172a;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(218,165,32,.13) 0%, rgba(218,165,32,.04) 16%, rgba(10,14,22,.30) 30%, rgba(3,6,12,0) 50%),
    radial-gradient(circle at 50% -24%, rgba(24,44,78,.15) 0%, rgba(6,10,16,0) 56%),
    linear-gradient(180deg, #000204 0%, #02060d 52%, #010306 100%);
  transition: opacity .5s ease, visibility .5s ease;
  overflow: hidden;
}
.splash-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,.36) 100%);
  pointer-events: none;
}
.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 18%, rgba(0,0,0,.16) 100%);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.ring {
  position: absolute;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  animation: ringPulse 7s ease-in-out infinite;
}
.r1 { width: 250px; height: 250px; opacity: .20; }
.r2 { width: 350px; height: 350px; opacity: .14; animation-delay: .9s; }
.r3 { width: 450px; height: 450px; opacity: .10; animation-delay: 1.8s; }
@keyframes ringPulse {
  0%, 100% { opacity: .10; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: .20; transform: translate(-50%, -50%) scale(1.016); }
}

.splash-content {
  text-align: center;
  position: relative;
  z-index: 2;
  width: min(90vw, 500px);
  margin-top: 12px;
  animation: splashFloat 3.6s ease-in-out infinite;
}
@keyframes splashFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.splash-mark {
  width: 128px;
  height: 128px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #04070b;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 0 34px rgba(218,165,32,.15), inset 0 0 0 1px rgba(255,255,255,.03);
}
.splash-mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from -38deg,
    var(--gold) 0deg 78deg,
    transparent 78deg 170deg,
    var(--gold) 170deg 252deg,
    transparent 252deg 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
}
.splash-own {
  color: var(--gold);
  font-size: 47px;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1;
}
.splash-content h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 360;
  line-height: 1.14;
  text-wrap: balance;
  letter-spacing: .005em;
}
.splash-content p {
  margin: 10px 0 0;
  color: #9ca4b4;
  font-size: 21px;
  font-weight: 400;
  letter-spacing: .01em;
}
.loading-dots { margin-top: 18px; display: flex; justify-content: center; gap: 10px; }
.loading-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .35; transform: scale(.75);} 50% { opacity: 1; transform: scale(1);} }
.splash-screen small {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  color: #626e82;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: .8;
}

@media (max-width: 768px) {
  .splash-content {
    width: 290px;
    margin-top: 20px;
  }
  .splash-mark {
    width: 96px;
    height: 96px;
    margin-bottom: 16px;
  }
  .splash-own {
    font-size: 18px;
    font-weight: 650;
  }
  .splash-content h1 {
    font-size: 17px;
    font-weight: 350;
    line-height: 1.2;
  }
  .splash-content p {
    margin-top: 6px;
    font-size: 12px;
    color: #9098a8;
  }
  .loading-dots {
    margin-top: 14px;
  }
}

.app-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 16px auto 24px;
  padding: 0 22px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: #000000;
  box-shadow: var(--shadow);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.brand-logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
}
.brand-copy .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand-copy h1 {
  margin: 3px 0 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.1;
}
.header-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.profile-jump {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(218, 165, 32, 0.22);
  background: rgba(218,165,32,.11);
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--line-soft);
}
.utility-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  padding: 8px 0 0;
}
.utility-bar .chip-btn {
  min-width: 92px;
}
html[dir="rtl"] .utility-bar {
  justify-content: flex-start;
}
html[dir="rtl"] .main-nav {
  direction: rtl;
}
html[dir="rtl"] .screen-panel,
html[dir="rtl"] .card,
html[dir="rtl"] .modal-content {
  text-align: right;
}
html[dir="rtl"] .r {
  text-align: left;
}
.main-nav button,
.chip-btn,
.chip {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255,255,255,.02);
  color: var(--muted);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s ease;
}
.main-nav button:hover,
.main-nav button.active,
.chip-btn:hover,
.chip.active {
  color: var(--gold);
  border-color: rgba(218,165,32,.55);
  background: rgba(218,165,32,.10);
}

.screen-wrap {
  min-height: 72vh;
  padding-top: 20px;
}
.screen-panel {
  display: none;
  max-width: 1120px;
  margin: 0 auto;
}
.screen-panel.active {
  display: block;
  animation: fadeIn .22s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.screen-head {
  margin-bottom: 12px;
  display: flex;
  justify-content: flex-start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.15;
}
.section-head span {
  padding: 4px 10px;
  border-radius: 9px;
  color: var(--gold);
  background: rgba(218,165,32,.11);
  border: 1px solid rgba(218,165,32,.28);
  font-size: 12px;
  font-weight: 700;
}

.grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.stack { display: grid; gap: 18px; }

/* Global spacing between major blocks/cards in every screen */
.screen-panel > .card + .card,
.screen-panel > .card + .stack,
.screen-panel > .card + .grid,
.screen-panel > .stack + .card,
.screen-panel > .stack + .stack,
.screen-panel > .grid + .card,
.screen-panel > .grid + .stack {
  margin-top: 16px;
}

.hero-rich {
  padding: 20px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(29, 31, 38, 0.94), rgba(23, 26, 33, 0.94));
  border-color: rgba(218, 165, 32, 0.3);
}
.hero-rich__badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(218,165,32,.35);
  color: var(--gold);
  background: rgba(218,165,32,.08);
  font-size: 11px;
  margin-bottom: 10px;
}
.hero-rich h2 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 40px);
}
.hero-rich p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}
.mini-stat-grid {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}
.mini-stat-card {
  border: 1px solid rgba(218,165,32,.2);
  border-radius: 14px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(32,35,43,.92), rgba(25,28,35,.92));
}
.mini-stat-card strong {
  display: block;
  font-size: 20px;
  color: var(--gold);
}
.mini-stat-card small {
  color: var(--muted);
}

.ticker {
  overflow: hidden;
  margin-bottom: 14px;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(30, 33, 41, 0.92), rgba(24, 27, 35, 0.92));
  border: 1px solid rgba(218,165,32,.24);
}
.ticker__track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding-inline: 14px;
  animation: tickerMove 28s linear infinite;
}
.ticker__track span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}
.ticker__track b { color: var(--text); margin-left: 4px; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.trust-grid {
  margin: 14px 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.trust-item {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

#goldList,
#landList,
#startupList,
#properties,
#videoList,
#articleList,
#tipsList,
#profileView {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}
#goldList,
#landList,
#startupList,
#properties,
#videoList,
#articleList,
#tipsList {
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}
#goldList > *,
#landList > *,
#startupList > *,
#properties > *,
#videoList > *,
#articleList > *,
#tipsList > * { grid-column: span 1; }
#featuredVideo > * { width: 100%; }
#profileView > :nth-child(1) { grid-column: span 4; }
#profileView > :nth-child(2) { grid-column: span 8; }
#profileView > :nth-child(3) { grid-column: span 6; }
#profileView > :nth-child(4) { grid-column: span 6; }
#profileView > :nth-child(5) { grid-column: span 12; }
#profileView > .profile-container {
  grid-column: 1 / -1;
  width: 100%;
}

#screen-home #categoryGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  margin: 0 auto;
}

#screen-home .section-head:first-child {
  margin-top: 2px;
}

#screen-home > .grid.two:last-child > * {
  text-align: center;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(218, 165, 32, 0.22);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  padding: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.24);
}
.card h3, .card h4, .card h5 { margin: 0 0 6px; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card small { color: #8d96a6; }

.category-card { text-align: center; min-height: 172px; cursor: pointer; }
.category-card {
  min-height: 248px;
  border-radius: 18px;
  padding: 22px 18px 18px;
  border: 1px solid rgba(218,165,32,.25);
  background: linear-gradient(180deg, rgba(33,36,44,.94), rgba(26,29,36,.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 20px rgba(0,0,0,.32);
}
.category-card h3 {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #f2f4f8;
}
.category-card p {
  font-size: 13px;
  color: #b9c1cf;
}
.category-card small {
  display: block;
  margin-top: 8px;
  line-height: 1.45;
}
.icon-dot {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(0,0,0,.25);
}
.icon-dot svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.selected-filter { outline: 2px solid rgba(218,165,32,.5); }

.market { grid-column: 1 / -1; }
.market strong { font-size: clamp(34px, 4vw, 46px); }
.triples { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.triples div { text-align: center; }
.triples strong { display: block; font-size: 24px; }

.property-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; }
.property-thumb {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  background: #2b3340;
}

.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.meta span {
  border: 1px solid rgba(218,165,32,.2);
  background: rgba(218,165,32,.08);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.gold-item { padding: 0; overflow: hidden; }
.gold-top {
  background: linear-gradient(130deg, #efd446, #efac31);
  color: #1f190c;
  text-align: center;
  padding: 14px;
}
.gold-top b {
  display: inline-block;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0,0,0,.65);
}
.gold-top h4 { margin: 8px 0 2px; font-size: 26px; }
.gold-top p { margin: 0; color: rgba(0,0,0,.72); }
.gold-body { padding: 14px; }
.split { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.small-label { font-size: 12px; color: #8d96a6; }
.invest-btn {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  background: linear-gradient(135deg, #f6d41f, #f2b71e);
  color: #181409;
  cursor: pointer;
}

.two-col { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.r { text-align: right; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chips-row span {
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(45, 96, 72, 0.6);
  border: 1px solid rgba(45, 96, 72, 0.8);
  color: #d2e8de;
}
.action-green,
.action-gradient {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.action-green { background: linear-gradient(90deg, #20cf8c, #11c4a1); }
.action-gradient { background: linear-gradient(90deg, #3a9dff, #b35dff); }

/* Startup Invest button matches the funding progress bar color */
#startupList .action-gradient,
#startupInvestNow.action-gradient {
  background: linear-gradient(90deg, #3a9dff, #d067ff);
}

.startup-head { display: flex; justify-content: space-between; gap: 10px; }
.avatar-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #3c4352, #313847);
  color: #eef3ff;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.startup-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(255,255,255,.16);
  background: #2f3542;
  filter: saturate(.8) contrast(.95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.tag-row { display: flex; gap: 6px; margin-top: 4px; }
.tag-row span { font-size: 11px; border-radius: 999px; padding: 3px 8px; }
.tag-blue { background: rgba(55,153,255,.16); color: #64b4ff; }
.tag-violet { background: rgba(179,93,255,.16); color: #ca92ff; }
.progress {
  height: 6px;
  border-radius: 999px;
  background: #2f3440;
  overflow: hidden;
  margin: 9px 0;
}
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #3a9dff, #d067ff); }

.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.video-feature .video-thumb {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  font-size: 52px;
  background: linear-gradient(180deg, #1f79be, #184f84);
}

.profile-header { text-align: center; }
.avatar-big {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(180deg, #464d5a, #373d48);
  color: #eef3ff;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.wallet-card {
  border-radius: 14px;
  background: linear-gradient(135deg, #e5b526, #d39e1a);
  color: #1d1608;
  padding: 14px;
}
.wallet-card h4 { margin: 2px 0 4px; }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.quick-actions button {
  border: 1px solid rgba(218,165,32,.2);
  background: rgba(255,255,255,.02);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 12px;
  cursor: pointer;
}

.property-modal {
  width: min(920px, 95vw);
  border: 0;
  padding: 0;
  background: transparent;
}
.property-modal::backdrop { background: rgba(0,0,0,.65); }
.invest-modal .modal-shell {
  max-width: 560px;
  margin: 0 auto;
}
.invest-summary {
  border: 1px solid rgba(218,165,32,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20,28,39,.78), rgba(13,18,26,.78));
  padding: 14px;
  margin: 10px 0 12px;
}
.invest-summary p { margin: 0 0 6px; }
.invest-note {
  color: var(--muted);
  font-size: 13px;
}
.modal-shell {
  border-radius: 18px;
  border: 1px solid rgba(218,165,32,.2);
  background: #0d121a;
  color: var(--text);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  max-height: 90vh;
  overflow: auto;
}
.close-btn {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}
.modal-hero { position: relative; }
.modal-hero img { width: 100%; height: 260px; object-fit: cover; background: #2b3648; }
.hero-controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.hero-controls button {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(0,0,0,.4);
  color: #fff;
  cursor: pointer;
}
.modal-content { padding: 16px; }
.modal-content h2 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.modal-content h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.modal-content .card h3 {
  font-size: 22px;
  font-weight: 700;
}
.modal-content p {
  color: var(--muted);
  line-height: 1.5;
}
.modal-content small {
  color: #93a0b3;
}
.modal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin: 10px 0 12px;
}
.modal-tabs button {
  border: 0;
  background: transparent;
  color: #aeb8c7;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.modal-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.action-row button,
.action-row a {
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
  padding-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-tab {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.02);
  color: #9dafc9;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 18px;
  letter-spacing: .01em;
  cursor: pointer;
  transition: all .2s ease;
  border-bottom: 1px dotted rgba(157,175,201,.4);
}
.footer-tab:hover {
  color: #c7d4ea;
  border-color: rgba(255,255,255,.2);
}
.footer-tab.is-active {
  color: #d8dee9;
  border-color: rgba(255,255,255,.65);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset;
}
/* Profile Screen Styles */
.profile-container {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.profile-hero {
  grid-column: 1 / -1;
  width: min(100%, 380px);
  margin: 0 auto 10px;
  padding: 22px 22px 18px;
  background: linear-gradient(180deg, rgba(27, 30, 37, .96), rgba(21, 24, 31, .96));
  border-radius: 20px;
  border: 1px solid rgba(218, 165, 32, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02), 0 10px 24px rgba(0,0,0,.28);
}

.profile-avatar-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  display: grid;
  place-items: center;
}

.profile-card-wallet {
  grid-column: 1;
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  border: 1px solid rgba(218, 165, 32, 0.2);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stats-dashboard {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.stat-box {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-activity-section {
  grid-column: 1;
}

.profile-settings-section {
  grid-column: 2;
}

.profile-resources-section {
  grid-column: 1 / -1;
}
.profile-resource-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.profile-resource-tab {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.015);
  color: #a8b5c9;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 16px;
  cursor: pointer;
  border-bottom: 1px dotted rgba(168,181,201,.45);
}
.profile-resource-tab.active {
  color: #f1f4fa;
  border-color: rgba(255,255,255,.62);
  box-shadow: 0 0 0 2px rgba(255,255,255,.08) inset;
}
.resource-panel {
  border-radius: 16px;
  border: 1px solid rgba(218, 165, 32, 0.24);
  background: linear-gradient(180deg, #1d2027, #171a20);
  padding: 20px;
}
.resource-panel h3 {
  margin: 0 0 8px;
}
.resource-panel p,
.resource-panel li {
  color: var(--muted);
  line-height: 1.5;
}
.resource-list {
  margin: 12px 0 0;
  padding-left: 18px;
}
.deck-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.deck-thumb {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: block;
}
.deck-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.deck-thumb:hover img {
  transform: translateY(-2px);
  border-color: rgba(218,165,32,.42);
  box-shadow: 0 8px 20px rgba(0,0,0,.28);
}

@media (max-width: 980px) {
  .profile-container {
    grid-template-columns: 1fr;
  }
  .profile-hero, .profile-card-wallet, .stats-dashboard, .profile-activity-section, .profile-settings-section {
    grid-column: 1;
  }
  .profile-hero h2 {
    font-size: 34px;
  }
  .profile-hero p {
    font-size: 23px;
  }
  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-box small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.stat-box strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.avatar-large {
  width: 120px;
  height: 120px;
  background: #3b4049;
  color: #f4f6fa;
  font-size: 40px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
}

.avatar-edit {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.22);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0b0d;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.profile-hero-copy {
  display: grid;
  gap: 4px;
}

.profile-hero h2 {
  margin: 0;
  font-size: 42px;
  color: var(--text);
  line-height: 1.08;
}

.profile-hero p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 29px;
}

.member-since {
  margin-top: 4px;
  color: #98a2b3;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wallet-label {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.wallet-balance {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.wallet-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.wallet-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 12px 8px;
  border-radius: 12px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.wallet-action-btn:hover {
  background: rgba(218, 165, 32, 0.1);
  border-color: rgba(218, 165, 32, 0.3);
  color: var(--gold);
}

.section-title-flex h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.section-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
}

.activity-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.activity-details {
  flex: 1;
}

.activity-details h4 {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

.activity-details p {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.activity-amount {
  text-align: right;
}

.activity-amount strong {
  display: block;
  font-size: 15px;
}

.activity-amount small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.settings-list {
  display: flex;
  flex-direction: column;
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 100%;
  text-align: left;
  transition: background 0.2s ease;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.settings-item svg {
  color: var(--muted);
}

.settings-item span {
  flex: 1;
  font-size: 15px;
}

.settings-item .arrow {
  color: var(--muted);
}

.gold { color: var(--gold); }
.green { color: var(--green); }
.mint { color: var(--mint); }
.blue { color: var(--blue); }
.violet { color: var(--violet); }
.gold-bg { background: #f1c22f; }
.land-bg { background: #2ad7a2; }
.startup-bg { background: #7b67f8; }
.re-blue { background: #29b4ff; }
.re-gold { background: #d9ac1b; }
.re-orange { background: #ff7c5e; }
.re-green { background: #2bdba9; }

@media (max-width: 980px) {
  .app-shell { width: min(100%, calc(100% - 16px)); padding: 0 12px 16px; }
  .brand-copy h1 { font-size: 28px; }
  #screen-home #categoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stat-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  #profileView > :nth-child(1),
  #profileView > :nth-child(2),
  #profileView > :nth-child(3),
  #profileView > :nth-child(4),
  #profileView > :nth-child(5) { grid-column: span 12; }
}

@media (max-width: 760px) {
  .app-shell {
    width: 100%;
    margin: 0;
    padding: 0 12px 18px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
  }
  .screen-wrap {
    min-height: auto;
    padding-top: 10px;
  }
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px 0 10px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #000;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .topbar::after { display: none; }
  .brand-logo {
    width: 56px;
    height: 56px;
  }
  .brand-copy .eyebrow {
    font-size: 10px;
    letter-spacing: .06em;
  }
  .brand-copy h1 {
    font-size: 18px;
    margin-top: 1px;
  }
  .header-subtitle {
    font-size: 12px;
    margin-top: 2px;
  }
  .profile-jump {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .main-nav {
    display: none;
  }
  .utility-bar {
    justify-content: flex-start;
    padding: 8px 0 2px;
  }
  .utility-bar .chip-btn {
    min-width: 76px;
    padding: 7px 10px;
    font-size: 12px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav button {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 12px;
  }

  .screen-head {
    margin-bottom: 8px;
  }
  .screen-head .chip-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .section-head {
    margin: 8px 0 10px;
    gap: 8px;
  }
  .section-head h2,
  .section-head h3 {
    font-size: 20px;
  }

  .grid.two { grid-template-columns: 1fr; gap: 12px; }
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mini-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  #screen-home #categoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #reTypes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  .hero-rich {
    padding: 14px;
    margin-bottom: 10px;
  }
  .hero-rich__badge { font-size: 10px; margin-bottom: 8px; }
  .hero-rich h2 { font-size: 18px; margin-bottom: 4px; }
  .hero-rich p { font-size: 12px; }
  .ticker {
    margin-bottom: 10px;
    padding: 8px 0;
  }
  .ticker__track { gap: 20px; }
  .ticker__track span { font-size: 12px; }
  #screen-home .hero-rich,
  #screen-home .ticker,
  #screen-home .trust-grid {
    display: none;
  }

  .category-card {
    min-height: 162px;
    padding: 14px 10px 10px;
    border-radius: 14px;
  }
  .icon-dot {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    font-size: 14px;
  }
  .category-card h3 { font-size: 14px; margin-top: 0; }
  .category-card p { font-size: 11px; margin-bottom: 4px; }
  .category-card small {
    font-size: 11px;
    line-height: 1.25;
    opacity: .7;
    display: block;
  }

  .card {
    padding: 12px;
    border-radius: 14px;
  }
  .market strong { font-size: 18px; }
  .triples { gap: 8px; }
  .triples strong { font-size: 17px; }
  .triples small { font-size: 10px; }

  #goldList > *,
  #landList > *,
  #startupList > *,
  #properties > *,
  #videoList > *,
  #articleList > *,
  #tipsList > *,
  #profileView > * { grid-column: span 12; }

  #goldList, #landList, #startupList, #properties, #videoList, #profileView {
    gap: 12px;
  }

  .gold-top {
    padding: 10px;
  }
  .gold-top h4 { font-size: 22px; }
  .gold-body { padding: 10px; }
  .small-label { font-size: 11px; }
  .chips-row span {
    font-size: 10px;
    padding: 4px 8px;
  }
  .invest-btn, .action-green, .action-gradient {
    padding: 9px 12px;
    font-size: 13px;
  }

  .startup-head {
    align-items: flex-start;
    gap: 8px;
  }
  .startup-head h3 { font-size: 17px; }
  .startup-item p { font-size: 13px; line-height: 1.35; }
  .tag-row span { font-size: 10px; padding: 3px 7px; }

  .property-row { grid-template-columns: 1fr; gap: 10px; }
  .property-thumb { height: 140px; }

  .section-head-flex {
    margin: 10px 0 8px;
  }
  .section-head-flex h3 { font-size: 18px; }
  .advice-header {
    margin-bottom: 12px;
  }
  .advice-eyebrow { font-size: 14px; }
  .advice-title { font-size: 28px; margin: 2px 0 6px; }
  .advice-subtitle { font-size: 13px; max-width: none; }
  .horizontal-scroll {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .chip {
    font-size: 12px;
    padding: 7px 11px;
  }
  .video-feature .video-thumb {
    height: 160px;
  }
  .video-feature h3 {
    font-size: 16px;
    line-height: 1.3;
  }
  .video-card-mini {
    padding: 10px;
  }

  .site-footer {
    display: none;
  }

  .footer-tab {
    font-size: 15px;
    padding: 8px 12px;
  }
  .deck-grid {
    grid-template-columns: 1fr;
  }
  #goldList > *,
  #landList > *,
  #startupList > *,
  #properties > *,
  #videoList > *,
  #articleList > *,
  #tipsList > *,
  #profileView > * { grid-column: span 12; }
  .profile-jump { grid-column: 2; justify-self: end; }
  .profile-hero {
    width: 100%;
    max-width: 280px;
    padding: 16px 12px 12px;
  }
  .avatar-large {
    width: 90px;
    height: 90px;
    font-size: 31px;
  }
  .profile-avatar-wrap {
    width: 96px;
    height: 96px;
  }
  .profile-hero h2 {
    font-size: 18px;
    font-weight: 650;
  }
  .profile-hero p {
    font-size: 12px;
  }
  .member-since { font-size: 11px; }
  .profile-container { gap: 12px; padding-top: 6px; }
  .profile-card-wallet { padding: 14px; }
  .wallet-balance { font-size: 24px; margin-bottom: 12px; }
  .wallet-actions { gap: 8px; }
  .wallet-action-btn { padding: 8px 4px; font-size: 11px; }
  .stats-dashboard { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-box { padding: 12px; }
  .activity-item { padding: 10px 12px; }
  .activity-details h4 { font-size: 14px; }
}

/* Advice / Tips Screen Styles */
.header-bookmark {
  margin-left: auto;
}

.advice-header {
  margin-bottom: 24px;
}
.advice-eyebrow {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  font-weight: 300;
}
.advice-title {
  margin: 4px 0 12px;
  color: var(--gold);
  font-size: 32px;
  font-weight: 700;
}
.advice-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 400px;
  line-height: 1.4;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  scrollbar-width: none; /* Firefox */
}
.horizontal-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.horizontal-scroll .chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 12px;
  border: 1px solid rgba(218, 165, 32, 0.3);
  background: rgba(20, 15, 5, 0.4);
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 8px;
}
.horizontal-scroll .chip.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}
.horizontal-scroll .chip.Startup {
  color: #3a9dff;
  border-color: rgba(58, 157, 255, 0.3);
  background: rgba(5, 15, 30, 0.4);
}
.horizontal-scroll .chip.Startup.active {
  background: #3a9dff;
  color: #000;
  border-color: #3a9dff;
}

.section-head-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 10px;
}
.section-head-flex h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.youtube-link {
  color: #ff4444;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

/* Featured Video Card */
.video-feature {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 24px;
}
.video-feature .video-thumb {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border-radius: 0;
}
.video-feature .play-btn {
  width: 64px;
  height: 64px;
  background: #ff4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.4);
}
.video-feature .duration-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.video-feature .youtube-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-feature .youtube-badge svg {
  color: #ff4444;
}
.video-feature .video-content {
  padding: 20px;
}
.video-feature h3 {
  font-size: 20px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text);
}
.video-feature .video-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.video-feature .video-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.video-feature .video-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.video-feature .category-tag {
  color: var(--blue);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.video-feature .watch-link {
  color: #ff4444;
  text-decoration: none;
  font-size: 14px;
}

/* Mini Video Cards */
.video-card-mini {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  align-items: center;
}
.video-card-mini .thumb-wrap {
  position: relative;
  height: 90px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.video-card-mini .mini-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card-mini .mini-play svg {
  width: 32px;
  height: 32px;
  fill: #ff4444;
}
.video-card-mini .duration {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}
.video-card-mini .details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.video-card-mini .title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.video-card-mini h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  color: var(--text);
}
.video-card-mini .badge-new {
  background: #ff4444;
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.video-card-mini .author {
  color: var(--muted);
  font-size: 13px;
}
.video-card-mini .mini-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.video-card-mini .mini-tag {
  font-size: 12px;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}
.video-card-mini .mini-tag.Portfolio { color: var(--violet); }
.video-card-mini .mini-tag.General { color: var(--green); }
.video-card-mini .mini-tag.Real { color: var(--gold); }
.video-card-mini .mini-tag.Risk { color: #ff4444; }

.video-card-mini .yt-link {
  color: #ff4444;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

/* Final light-theme header overrides (kept near file end for priority) */
body.light-theme .app-shell {
  background: #f8faff;
  border-color: rgba(17, 24, 39, 0.14);
}
body.light-theme .topbar {
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  border-bottom-color: rgba(17, 24, 39, 0.12);
}
body.light-theme .brand-copy .eyebrow {
  color: #5f6b7f;
}
body.light-theme .brand-copy h1 {
  color: #0f172a;
}
body.light-theme .header-subtitle {
  color: #4b5565;
}
body.light-theme .profile-jump {
  background: rgba(218, 165, 32, 0.14);
  border-color: rgba(139, 94, 0, 0.28);
  color: #9a6700;
}
