:root {
  color-scheme: dark;
  --bg: #080d19;
  --bg-deep: #050812;
  --panel: rgba(16, 25, 48, 0.68);
  --panel-strong: rgba(18, 29, 57, 0.9);
  --border: rgba(124, 148, 255, 0.2);
  --border-strong: rgba(123, 92, 255, 0.48);
  --text: #f5f7ff;
  --muted: #a8b2ce;
  --soft: #7783a6;
  --primary: #7157ff;
  --primary-2: #4d7dff;
  --cyan: #00d9ff;
  --green: #54e6a4;
  --yellow: #ffd65a;
  --danger: #ff6d8d;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  --radius: 22px;
  --radius-small: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, rgba(113, 87, 255, 0.17), transparent 34%),
    radial-gradient(circle at 88% 30%, rgba(0, 217, 255, 0.12), transparent 32%),
    linear-gradient(145deg, #080d19 0%, #0c1224 44%, #090b18 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(112, 137, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 137, 205, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 92%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }

.background { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.22; }
.orb-one { width: 420px; height: 420px; background: #6f43ff; top: 8%; left: -180px; }
.orb-two { width: 500px; height: 500px; background: #00bfff; top: 42%; right: -240px; }
.orb-three { width: 360px; height: 360px; background: #6f43ff; bottom: -180px; left: 38%; opacity: 0.13; }

.container { width: min(var(--container), calc(100% - 38px)); margin: 0 auto; }
.section { padding: 96px 0; scroll-margin-top: 88px; }
.compact-section { padding-top: 56px; padding-bottom: 56px; }

.glass-panel {
  background: linear-gradient(145deg, rgba(20, 31, 59, 0.78), rgba(10, 17, 35, 0.64));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 21, 0.78);
  border-bottom: 1px solid rgba(122, 142, 205, 0.14);
  backdrop-filter: blur(18px);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-weight: 700; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.main-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: 0.9rem; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover { color: var(--text); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--border); background: var(--panel); border-radius: 10px; padding: 8px 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 12px 30px rgba(91, 88, 255, 0.3); }
.button-primary:hover { box-shadow: 0 16px 38px rgba(91, 88, 255, 0.42); }
.button-secondary { background: rgba(255, 255, 255, 0.055); border-color: var(--border); }
.button-secondary:hover { border-color: var(--border-strong); background: rgba(116, 94, 255, 0.1); }
.button-small { min-height: 40px; padding: 0 15px; font-size: 0.86rem; }

.hero { min-height: 690px; display: flex; align-items: center; padding-top: 112px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.eyebrow, .kicker, .mini-label { color: var(--cyan); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(0, 217, 255, .2); background: rgba(0, 217, 255, .07); text-transform: none; letter-spacing: .01em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
.hero h1 { margin: 24px 0 20px; max-width: 720px; font-family: "Space Grotesk", sans-serif; font-size: clamp(3rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { background: linear-gradient(90deg, #8f70ff, #39a8ff 55%, #00e1ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; gap: 13px; margin-top: 30px; flex-wrap: wrap; }
.verify-note { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 13px; border: 1px solid rgba(0,217,255,.20); background: rgba(0,217,255,.07); color: var(--muted); font-size: .82rem; }
.verify-note strong { color: var(--text); }
.verify-note-icon { width: 24px; height: 24px; flex: 0 0 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(84,230,164,.15); color: var(--green); font-weight: 900; }
.social-row { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 11px; border: 1px solid rgba(124,148,255,.16); border-radius: 11px; background: rgba(5,10,22,.34); color: var(--muted); font-size: .79rem; font-weight: 750; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.social-link svg { width: 16px; height: 16px; }
.social-link:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-2px); }
.hero-panel { border-radius: 30px; padding: 26px; position: relative; overflow: hidden; }
.hero-panel::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: rgba(0, 217, 255, .15); filter: blur(70px); }
.hero-logo { width: 132px; margin: 0 auto 25px; border-radius: 50%; box-shadow: 0 25px 60px rgba(0,0,0,.35); position: relative; z-index: 1; }
.hero-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; position: relative; z-index: 1; }
.social-metric { min-width: 0; padding: 14px; border-radius: 15px; background: rgba(4,10,24,.52); border: 1px solid rgba(131,155,229,.13); display: flex; align-items: center; gap: 11px; transition: transform .2s ease, border-color .2s ease; }
.social-metric:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.social-metric-icon { width: 37px; height: 37px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.social-metric-icon svg { width: 21px; height: 21px; }
.kick-icon { color: #53fc18; background: rgba(83,252,24,.11); }
.tiktok-icon { color: #fff; background: linear-gradient(135deg, rgba(37,244,238,.18), rgba(254,44,85,.18)); }
.youtube-icon { color: #ff4242; background: rgba(255,0,0,.12); }
.twitch-icon { color: #b994ff; background: rgba(145,70,255,.17); }
.social-metric-copy { min-width: 0; display: block; }
.metric-label { display: block; color: var(--soft); font-size: .67rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-metric strong { display: block; font-size: 1.04rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-metric small { display: block; color: var(--soft); font-size: .62rem; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Featured TerraMine offer */
.hot-offer-section { padding: 0 0 28px; }
.hot-offer-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 181, 72, .42);
  background: linear-gradient(115deg, rgba(255, 148, 35, .15), rgba(113, 87, 255, .12) 48%, rgba(0, 217, 255, .08));
  box-shadow: 0 18px 55px rgba(0, 0, 0, .23), inset 0 1px 0 rgba(255,255,255,.06);
}
.hot-offer-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: rgba(255, 150, 40, .15);
  filter: blur(34px);
  pointer-events: none;
}
.hot-offer-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffd78a;
  background: linear-gradient(145deg, rgba(255, 161, 47, .28), rgba(255, 92, 44, .16));
  border: 1px solid rgba(255, 190, 91, .34);
  box-shadow: 0 12px 28px rgba(255, 116, 34, .12);
}
.hot-offer-icon svg { width: 29px; height: 29px; fill: currentColor; }
.hot-offer-app-icon { overflow: hidden; padding: 0; position: relative; }
.hot-offer-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.hot-offer-icon-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 900; }
.hot-offer-copy { min-width: 0; position: relative; z-index: 1; }
.hot-offer-label {
  display: inline-flex;
  margin-bottom: 3px;
  color: #ffc66d;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hot-offer-copy strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.15rem; }
.hot-offer-copy p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.hot-offer-actions { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.hot-offer-primary {
  white-space: nowrap;
  background: linear-gradient(135deg, #ff9e2f, #ff5f38);
  box-shadow: 0 12px 28px rgba(255, 104, 46, .25);
}
.hot-offer-primary:hover { box-shadow: 0 16px 34px rgba(255, 104, 46, .34); }
.hot-offer-guide { white-space: nowrap; color: #ffd18a; font-size: .8rem; font-weight: 800; }
.hot-offer-guide:hover { color: #fff0cf; }

/* Passive income starter combo */
.starter-combo-section { padding: 0 0 30px; }
.starter-combo-card {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(91, 222, 255, .24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(17, 28, 50, .92), rgba(20, 25, 45, .82));
  box-shadow: 0 16px 48px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255,255,255,.04);
}
.starter-combo-copy { min-width: 0; }
.starter-combo-label {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.starter-combo-copy > strong { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.1rem; }
.starter-combo-copy p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.starter-combo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.starter-app {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(132, 157, 204, .17);
  border-radius: 12px;
  background: rgba(7, 13, 27, .42);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.starter-app:hover { transform: translateY(-2px); border-color: rgba(59, 220, 255, .42); background: rgba(15, 27, 49, .72); }
.starter-app-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #dff9ff;
  background: linear-gradient(145deg, rgba(0, 217, 255, .2), rgba(113, 87, 255, .2));
  border: 1px solid rgba(94, 221, 255, .22);
  font-size: .66rem;
  font-weight: 900;
  overflow: hidden;
  padding: 0;
}
.starter-app-icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.starter-app-fallback { width: 100%; height: 100%; display: grid; place-items: center; }
.starter-app > span:last-child { min-width: 0; }
.starter-app strong { display: block; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: .76rem; white-space: nowrap; }
.starter-app small { display: block; margin-top: 1px; color: var(--soft); font-size: .59rem; }
.starter-app-hot { border-color: rgba(255, 180, 76, .38); background: linear-gradient(145deg, rgba(255, 143, 35, .12), rgba(34, 22, 24, .4)); }
.starter-app-hot .starter-app-icon { color: #fff0cf; background: linear-gradient(145deg, rgba(255, 160, 50, .34), rgba(255, 78, 48, .22)); border-color: rgba(255, 191, 93, .32); }
.starter-app-hot small { color: #ffc873; font-weight: 800; }

.app-card.is-featured {
  border-color: rgba(255, 181, 72, .48);
  background: linear-gradient(145deg, rgba(48, 31, 21, .82), rgba(12, 18, 35, .78));
  box-shadow: 0 18px 58px rgba(255, 115, 37, .08), 0 16px 50px rgba(0,0,0,.22);
}
.app-card.is-featured:hover { border-color: rgba(255, 195, 95, .72); box-shadow: 0 25px 66px rgba(255, 115, 37, .12), 0 22px 58px rgba(0,0,0,.3); }
.hot-app-badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff1d4;
  background: linear-gradient(135deg, rgba(255, 151, 42, .9), rgba(255, 77, 48, .88));
  border: 1px solid rgba(255, 213, 146, .36);
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 8px 22px rgba(255, 88, 36, .22);
}
.app-card.is-featured .primary-link {
  background: linear-gradient(135deg, rgba(255, 150, 44, .9), rgba(255, 80, 55, .78));
  border-color: rgba(255, 199, 115, .42);
}

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 8px 0 10px; }
.section-heading p { color: var(--muted); margin: 0; max-width: 680px; }
.directory-total { min-width: 145px; text-align: right; }
.directory-total strong { display: block; font-size: 2rem; line-height: 1; }
.directory-total span { color: var(--soft); font-size: .76rem; }

.directory-toolbar { border-radius: var(--radius); padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-button { border: 1px solid transparent; background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 11px; cursor: pointer; font-weight: 700; font-size: .88rem; }
.filter-button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.filter-button.active { color: var(--text); background: linear-gradient(135deg, rgba(113,87,255,.8), rgba(77,125,255,.68)); border-color: rgba(158, 153, 255, .38); }
.search-wrap { min-width: 260px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; padding: 0 13px; background: rgba(4, 10, 24, .48); }
.search-wrap input { width: 100%; height: 43px; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-wrap input::placeholder { color: var(--soft); }
.search-wrap span { color: var(--soft); font-size: 1.2rem; }

.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-card { position: relative; overflow: hidden; min-height: 250px; padding: 20px; border-radius: 19px; background: linear-gradient(145deg, rgba(17, 28, 55, .8), rgba(8, 15, 31, .73)); border: 1px solid rgba(124, 148, 255, .17); box-shadow: 0 16px 50px rgba(0,0,0,.22); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; display: flex; flex-direction: column; }
.app-card::after { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; top: -85px; right: -55px; background: var(--card-accent, rgba(113,87,255,.18)); filter: blur(18px); pointer-events: none; }
.app-card:hover { transform: translateY(-4px); border-color: rgba(126, 107, 255, .48); box-shadow: 0 24px 65px rgba(0,0,0,.3); }
.app-card-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 1; }
.app-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; font-family: "Space Grotesk", sans-serif; font-weight: 800; background: linear-gradient(135deg, rgba(113,87,255,.94), rgba(0,207,255,.72)); box-shadow: 0 12px 24px rgba(54,85,255,.2); }
.app-icon img { width: 31px; height: 31px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,.94); padding: 3px; }
.app-icon-fallback { display: none; }
.app-title-wrap { min-width: 0; }
.app-title-wrap h3 { margin: 0; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-category { display: inline-flex; margin-top: 3px; color: var(--soft); font-size: .72rem; }
.app-description { color: var(--muted); font-size: .88rem; line-height: 1.52; margin: 17px 0 13px; position: relative; z-index: 1; }
.app-description a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; position: relative; z-index: 1; }
.meta-chip { border-radius: 999px; padding: 5px 9px; font-size: .68rem; color: #cad4f7; border: 1px solid rgba(130, 151, 218, .17); background: rgba(7, 13, 28, .55); }
.app-card-footer { margin-top: auto; display: flex; gap: 8px; position: relative; z-index: 1; }
.app-card-footer a { flex: 1; min-height: 39px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: .8rem; font-weight: 800; border: 1px solid var(--border); background: rgba(255,255,255,.035); }
.app-card-footer a:hover { background: rgba(113,87,255,.14); border-color: var(--border-strong); }
.app-card-footer .primary-link { background: linear-gradient(135deg, rgba(113,87,255,.82), rgba(77,125,255,.72)); border-color: rgba(147, 137, 255, .34); }
.empty-state { padding: 45px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.more-apps { margin-top: 22px; padding: 22px; border-radius: var(--radius); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.more-apps p { margin: 4px 0 0; color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card { border-radius: var(--radius); padding: 25px; }
.stat-card span { color: var(--muted); font-size: .83rem; }
.stat-card strong { display: block; margin: 7px 0 3px; font-family: "Space Grotesk", sans-serif; font-size: 1.85rem; }
.stat-card small { color: var(--soft); }
.updated-label { color: var(--soft); font-size: .78rem; }
.leaderboard-card { margin-top: 18px; border-radius: var(--radius); padding: 24px; }
.card-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.card-heading h3 { margin: 0 0 5px; font-size: 1.3rem; }
.card-heading p { margin: 0; color: var(--muted); font-size: .87rem; }
.card-heading > a { color: var(--cyan); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.leaderboard-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.leaderboard-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 12px; background: rgba(4, 10, 24, .45); border: 1px solid rgba(128, 149, 213, .11); }
.rank { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: rgba(113,87,255,.15); color: #bdb2ff; font-weight: 800; font-size: .78rem; }
.leaderboard-row:first-child .rank { background: rgba(255,214,90,.17); color: var(--yellow); }
.leaderboard-name { font-weight: 700; }
.leaderboard-amount { color: var(--green); font-weight: 800; }
.loading-row, .muted { color: var(--muted); }

.stock-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }
.learning-card, .broker-card { border-radius: var(--radius); padding: 24px; }
.learning-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.learning-tab { border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--muted); padding: 8px 11px; cursor: pointer; font-size: .78rem; font-weight: 700; }
.learning-tab.active { color: var(--text); background: rgba(113,87,255,.18); border-color: rgba(126,107,255,.5); }
.learning-content { color: var(--muted); }
.learning-content ul, .learning-content ol { padding-left: 20px; margin: 0; }
.learning-content li + li { margin-top: 8px; }
.broker-card { display: flex; flex-direction: column; align-items: flex-start; }
.broker-card h3 { font-size: 1.5rem; margin: 9px 0 10px; }
.broker-card p { color: var(--muted); margin: 0 0 20px; }
.broker-card .text-link { margin: 16px 0 15px; }
.broker-card small { color: var(--soft); margin-top: auto; }
.text-link { color: var(--cyan); font-weight: 700; }
.stock-chart-panel { margin-top: 18px; border-radius: var(--radius); padding: 22px 16px 14px; min-width: 0; overflow: hidden; }
.stock-chart-heading { padding: 0 7px 17px; }
.stock-chart-heading p { margin: 7px 0 0; color: var(--muted); font-size: .84rem; }
.stock-symbol-widget { width: 100%; height: 540px; min-height: 540px; min-width: 0; overflow: hidden; border-radius: 13px; background: #111a31; }
.stock-symbol-widget .tradingview-widget-container__widget,
.stock-symbol-widget iframe { width: 100% !important; height: 540px !important; min-height: 540px !important; display: block !important; border: 0 !important; }

.crypto-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 18px; align-items: stretch; }
.crypto-chart-panel, .portfolio-panel { border-radius: var(--radius); min-width: 0; }
.crypto-chart-panel { padding: 22px 16px 14px; overflow: hidden; }
.crypto-chart-heading { padding: 0 7px 17px; }
.crypto-symbol-widget { width: 100%; height: 500px; min-height: 500px; min-width: 0; overflow: hidden; border-radius: 13px; background: rgba(4,10,24,.32); }
.crypto-symbol-widget .tradingview-widget-container__widget,
.crypto-symbol-widget iframe { width: 100% !important; height: 500px !important; min-height: 500px !important; display: block !important; border: 0 !important; }
.portfolio-panel { padding: 23px; }
.icon-button { width: 39px; height: 39px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.04); cursor: pointer; }
.icon-button:hover { border-color: var(--border-strong); }
.portfolio-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.portfolio-metric { padding: 12px; border-radius: 12px; background: rgba(4,10,24,.5); border: 1px solid rgba(128,149,213,.1); }
.portfolio-metric span { display: block; color: var(--soft); font-size: .7rem; }
.portfolio-metric strong { display: block; margin-top: 4px; }
.asset-list { display: grid; gap: 7px; }
.asset-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 10px; background: rgba(4,10,24,.42); font-size: .78rem; }
.asset-name { min-width: 0; display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.coin-icon { width: 25px; height: 25px; flex: 0 0 25px; position: relative; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, rgba(113,87,255,.28), rgba(0,217,255,.18)); border: 1px solid rgba(148,163,255,.16); overflow: hidden; }
.coin-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coin-icon-fallback { display: none; color: var(--text) !important; font-family: Inter, system-ui, sans-serif !important; font-size: .57rem; font-weight: 900; letter-spacing: -.02em; }
.coin-icon-fallback.show { display: inline; }
.asset-row > span:last-child { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.risk-note { color: var(--soft); font-size: .76rem; margin: 16px 0 0; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.guide-card { border-radius: var(--radius); padding: 23px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 17px; transition: transform .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.guide-icon { width: 53px; height: 53px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(113,87,255,.35), rgba(0,217,255,.2)); font-size: 1.5rem; }
.guide-card h3 { margin: 5px 0 5px; }
.guide-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.guide-arrow { color: var(--cyan); font-size: 1.2rem; }
.proof-panel { border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.proof-panel h2 { margin: 6px 0; }
.proof-panel p { color: var(--muted); margin: 0; }
.partnership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.partnership-card { border-radius: var(--radius); padding: 27px; }
.partnership-card h3 { margin: 9px 0 9px; }
.partnership-card p { color: var(--muted); margin: 0 0 8px; }

.site-footer { margin-top: 70px; padding: 42px 0 28px; background: rgba(4, 7, 15, .78); border-top: 1px solid rgba(124,148,255,.13); }
.footer-grid { display: flex; align-items: center; justify-content: flex-start; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 46px; height: 46px; border-radius: 13px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { color: var(--soft); font-size: .77rem; }
.footer-links { display: flex; gap: 9px; color: var(--muted); font-size: .78rem; font-weight: 700; flex-wrap: wrap; justify-content: flex-end; }
.footer-social { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(124,148,255,.12); }
.footer-social svg { width: 15px; height: 15px; }
.footer-social:hover { color: var(--text); border-color: var(--border-strong); }
.legal-copy { border-top: 1px solid rgba(124,148,255,.1); margin-top: 28px; padding-top: 20px; display: flex; justify-content: space-between; gap: 24px; color: var(--soft); font-size: .73rem; }
.legal-copy p { margin: 0; max-width: 780px; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1020px) {
  .main-nav { position: absolute; top: 74px; left: 18px; right: 18px; display: none; flex-direction: column; align-items: stretch; padding: 15px; border-radius: 16px; background: rgba(7, 12, 25, .97); border: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 9px 6px; }
  .menu-toggle { display: inline-flex; }
  .desktop-join { display: none; }
  .hero-grid, .stock-layout, .crypto-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-panel { max-width: 660px; }
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .broker-card small { margin-top: 18px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, var(--container)); }
  .section { padding: 72px 0; }
  .hero { padding-top: 88px; }
  .hero-grid { gap: 42px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.1rem); }
  .hero-copy > p { font-size: .98rem; }
  .hero-panel { padding: 18px; border-radius: 23px; }
  .hero-logo { width: 112px; }
  .hero-live-grid { grid-template-columns: 1fr 1fr; }
  .verify-note { width: 100%; align-items: flex-start; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 26px; }
  .directory-total { text-align: left; }
  .directory-toolbar { align-items: stretch; flex-direction: column; }
  .search-wrap { min-width: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 230px; }
  .more-apps, .proof-panel { align-items: flex-start; flex-direction: column; }
  .stats-grid, .guide-grid, .partnership-grid { grid-template-columns: 1fr; }
  .portfolio-summary { grid-template-columns: 1fr; }
  .stock-symbol-widget,
  .stock-symbol-widget .tradingview-widget-container__widget,
  .stock-symbol-widget iframe { height: 470px !important; min-height: 470px !important; }
  .crypto-symbol-widget,
  .crypto-symbol-widget .tradingview-widget-container__widget,
  .crypto-symbol-widget iframe { height: 440px !important; min-height: 440px !important; }
  .footer-grid, .legal-copy { align-items: flex-start; flex-direction: column; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* v7: Freedom24 branding and icon-supported stock education */
.broker-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 12px 8px 8px; border: 1px solid rgba(72, 218, 120, .25); border-radius: 999px; background: rgba(17, 185, 84, .08); color: #eefbf2; font-weight: 800; font-size: .86rem; }
.broker-brand img { width: 30px; height: 30px; display: block; filter: drop-shadow(0 5px 12px rgba(0, 184, 78, .22)); }
.broker-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.broker-button img { width: 24px; height: 24px; border-radius: 7px; }
.learning-content .learning-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.learning-content .learning-list li { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(125, 149, 231, .10); background: rgba(7, 13, 30, .18); color: var(--muted); line-height: 1.55; }
.learning-content .learning-list li:hover { border-color: rgba(70, 219, 255, .22); background: rgba(39, 63, 109, .14); }
.learning-icon { flex: 0 0 32px; width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 10px; color: #65e7ff; background: rgba(0, 210, 255, .09); border: 1px solid rgba(80, 222, 255, .17); margin-top: 1px; }
.learning-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.learning-icon.icon-shield, .learning-icon.icon-plan, .learning-icon.icon-info { color: #8ce8b0; background: rgba(70, 220, 135, .08); border-color: rgba(91, 224, 145, .17); }
.learning-icon.icon-growth, .learning-icon.icon-price, .learning-icon.icon-inflation { color: #ffd96c; background: rgba(255, 206, 85, .08); border-color: rgba(255, 209, 95, .17); }
.learning-icon.icon-account, .learning-icon.icon-search, .learning-icon.icon-order { color: #b5a4ff; background: rgba(132, 103, 255, .10); border-color: rgba(141, 116, 255, .18); }
.learning-icon.icon-company, .learning-icon.icon-diversify, .learning-icon.icon-calendar, .learning-icon.icon-repeat, .learning-icon.icon-etf, .learning-icon.icon-base { color: #72d8ff; }
@media (max-width: 600px) {
  .learning-content .learning-list li { padding: 9px 10px; gap: 10px; }
  .learning-icon { flex-basis: 29px; width: 29px; height: 29px; border-radius: 9px; }
  .learning-icon svg { width: 15px; height: 15px; }
}

/* v8: compact mobile layout */
.mobile-app-toggle { display: none; }

@media (max-width: 720px) {
  :root {
    --radius: 17px;
    --radius-small: 11px;
  }

  body { line-height: 1.48; }
  .container { width: min(100% - 20px, var(--container)); }
  .section { padding: 46px 0; scroll-margin-top: 70px; }
  .compact-section { padding-top: 28px; padding-bottom: 28px; }

  .nav-wrap { min-height: 64px; gap: 12px; }
  .brand { gap: 8px; font-size: .94rem; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .menu-toggle { padding: 7px 10px; font-size: .82rem; }
  .main-nav { top: 64px; left: 10px; right: 10px; padding: 10px; gap: 2px; }
  .main-nav a { padding: 8px 6px; font-size: .86rem; }

  .button { min-height: 42px; padding: 0 16px; border-radius: 11px; font-size: .86rem; }
  .hero { padding-top: 68px; padding-bottom: 34px; }
  .hero-grid { gap: 22px; }
  .hero h1 { margin: 16px 0 13px; font-size: clamp(2.45rem, 12.8vw, 3.4rem); line-height: .97; }
  .hero-copy > p { font-size: .91rem; line-height: 1.48; }
  .eyebrow { padding: 6px 9px; font-size: .7rem; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-actions .button { flex: 1 1 145px; }
  .verify-note { margin-top: 10px; padding: 8px 10px; gap: 8px; border-radius: 11px; font-size: .75rem; }
  .verify-note-icon { width: 21px; height: 21px; flex-basis: 21px; border-radius: 7px; }
  .social-row { margin-top: 16px; gap: 7px; }
  .social-link { min-height: 32px; padding: 0 9px; font-size: .72rem; }

  .hero-panel { padding: 12px; border-radius: 18px; }
  .hero-logo { width: 74px; margin: 0 auto 11px; }
  .hero-live-grid { gap: 7px; }
  .social-metric { padding: 8px; gap: 8px; border-radius: 11px; }
  .social-metric-icon { width: 30px; height: 30px; border-radius: 9px; }
  .social-metric-icon svg { width: 17px; height: 17px; }
  .metric-label { font-size: .59rem; }
  .social-metric strong { font-size: .88rem; }
  .social-metric small { font-size: .56rem; }

  .section-heading { gap: 8px; margin-bottom: 18px; }
  .section-heading h2 { margin: 4px 0 6px; font-size: clamp(1.75rem, 8vw, 2.3rem); }
  .section-heading p { font-size: .84rem; line-height: 1.45; }
  .kicker, .mini-label { font-size: .68rem; }
  .directory-total { min-width: 0; display: flex; align-items: baseline; gap: 7px; }
  .directory-total strong { font-size: 1.35rem; }
  .directory-total span { font-size: .7rem; }

  .directory-toolbar { padding: 9px; margin-bottom: 12px; gap: 9px; }
  .filter-tabs { width: 100%; gap: 5px; flex-wrap: nowrap; }
  .filter-button { flex: 1; padding: 7px 5px; border-radius: 9px; font-size: .72rem; white-space: nowrap; }
  .search-wrap { padding: 0 10px; border-radius: 10px; }
  .search-wrap input { height: 38px; font-size: .84rem; }

  .app-grid { gap: 9px; }
  .app-card { min-height: 0; padding: 13px; border-radius: 15px; }
  .app-card-top { gap: 10px; }
  .app-icon { width: 39px; height: 39px; border-radius: 11px; }
  .app-icon img { width: 26px; height: 26px; border-radius: 7px; }
  .app-title-wrap h3 { font-size: .94rem; }
  .app-category { font-size: .65rem; }
  .app-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 9px 0 8px;
    font-size: .79rem;
    line-height: 1.4;
  }
  .app-meta { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 5px; margin-bottom: 9px; padding-bottom: 1px; }
  .app-meta::-webkit-scrollbar { display: none; }
  .meta-chip { flex: 0 0 auto; padding: 4px 7px; font-size: .61rem; }
  .app-card-footer a { min-height: 34px; border-radius: 9px; font-size: .74rem; }
  .mobile-app-toggle { display: inline-flex; width: 100%; margin-top: 12px; }
  .mobile-app-toggle[hidden] { display: none; }
  .empty-state { padding: 28px 12px; }

  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat-card { padding: 14px; }
  .stat-card:last-child { grid-column: 1 / -1; }
  .stat-card span { font-size: .72rem; }
  .stat-card strong { margin: 4px 0 1px; font-size: 1.28rem; }
  .stat-card small { font-size: .68rem; }
  .leaderboard-card { margin-top: 10px; padding: 14px; }
  .card-heading { gap: 10px; }
  .card-heading h3 { font-size: 1.05rem; }
  .card-heading p { font-size: .74rem; line-height: 1.4; }
  .card-heading > a { font-size: .72rem; }
  .leaderboard-list { margin-top: 12px; gap: 6px; }
  .leaderboard-row { grid-template-columns: 33px 1fr auto; gap: 7px; padding: 8px 9px; border-radius: 10px; font-size: .76rem; }
  .rank { width: 25px; height: 25px; border-radius: 8px; font-size: .68rem; }

  .stock-layout, .crypto-grid { gap: 10px; }
  .learning-card, .broker-card, .portfolio-panel { padding: 14px; }
  .learning-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; margin-bottom: 13px; }
  .learning-tabs::-webkit-scrollbar { display: none; }
  .learning-tab { flex: 0 0 auto; padding: 7px 9px; font-size: .7rem; }
  .learning-content .learning-list { gap: 7px; }
  .learning-content .learning-list li { padding: 7px 8px; gap: 8px; font-size: .78rem; line-height: 1.4; }
  .learning-icon { flex-basis: 27px; width: 27px; height: 27px; border-radius: 8px; }
  .learning-icon svg { width: 14px; height: 14px; }
  .broker-brand { margin-bottom: 11px; padding: 6px 9px 6px 6px; font-size: .76rem; }
  .broker-brand img { width: 26px; height: 26px; }
  .broker-card h3 { margin: 5px 0 7px; font-size: 1.25rem; }
  .broker-card p { margin-bottom: 12px; font-size: .81rem; }
  .broker-card .text-link { margin: 10px 0; font-size: .79rem; }
  .broker-card small { font-size: .68rem; }

  .stock-chart-panel, .crypto-chart-panel { margin-top: 10px; padding: 12px 8px 8px; }
  .stock-chart-heading, .crypto-chart-heading { padding: 0 4px 10px; }
  .stock-chart-heading p, .crypto-chart-heading p { margin-top: 4px; font-size: .73rem; }
  .stock-symbol-widget,
  .stock-symbol-widget .tradingview-widget-container__widget,
  .stock-symbol-widget iframe { height: 340px !important; min-height: 340px !important; }
  .crypto-symbol-widget,
  .crypto-symbol-widget .tradingview-widget-container__widget,
  .crypto-symbol-widget iframe { height: 330px !important; min-height: 330px !important; }

  .portfolio-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin: 12px 0; }
  .portfolio-metric { min-width: 0; padding: 8px 6px; border-radius: 9px; }
  .portfolio-metric span { font-size: .61rem; }
  .portfolio-metric strong { overflow: hidden; text-overflow: ellipsis; font-size: .76rem; white-space: nowrap; }
  .portfolio-content h4 { margin: 13px 0 7px; font-size: .84rem; }
  .asset-list { gap: 5px; }
  .asset-row { gap: 8px; padding: 7px 8px; font-size: .72rem; }
  .coin-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .asset-name { gap: 7px; }
  .risk-note { margin-top: 9px; font-size: .68rem; }

  .proof-panel { padding: 17px; gap: 13px; }
  .proof-panel h2 { margin: 4px 0; font-size: 1.35rem; }
  .proof-panel p { font-size: .79rem; }
  .partnership-grid { gap: 10px; }
  .partnership-card { padding: 17px; }
  .partnership-card h3 { margin: 5px 0; font-size: 1.05rem; }
  .partnership-card p, .partnership-card a { font-size: .78rem; }

  .site-footer { margin-top: 35px; padding: 24px 0 18px; }
  .footer-brand img { width: 38px; height: 38px; }
  .legal-copy { margin-top: 15px; padding-top: 13px; gap: 8px; font-size: .65rem; }
}

@media (max-width: 390px) {
  .hero-live-grid { grid-template-columns: 1fr 1fr; }
  .social-metric { padding: 7px 6px; gap: 6px; }
  .social-metric-icon { width: 27px; height: 27px; }
  .filter-button { font-size: .66rem; }
  .leaderboard-amount { font-size: .7rem; }
}


@media (max-width: 900px) {
  .starter-combo-card { grid-template-columns: 1fr; gap: 13px; }
  .starter-combo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .starter-combo-section { padding: 0 0 12px; }
  .starter-combo-card { gap: 10px; padding: 12px; border-radius: 15px; }
  .starter-combo-label { margin-bottom: 2px; font-size: .57rem; }
  .starter-combo-copy > strong { font-size: .94rem; }
  .starter-combo-copy p { margin-top: 3px; font-size: .7rem; line-height: 1.38; }
  .starter-combo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .starter-app { gap: 7px; padding: 7px 8px; border-radius: 10px; }
  .starter-app-icon { width: 27px; height: 27px; flex-basis: 27px; border-radius: 8px; font-size: .58rem; }
  .starter-app strong { font-size: .68rem; }
  .starter-app small { font-size: .54rem; }
}

@media (max-width: 900px) {
  .hot-offer-card { grid-template-columns: auto minmax(0, 1fr); }
  .hot-offer-actions { grid-column: 2; justify-content: flex-start; }
}

@media (max-width: 720px) {
  .hot-offer-section { padding: 0 0 12px; }
  .hot-offer-card { grid-template-columns: 40px minmax(0, 1fr); gap: 9px 11px; padding: 12px; border-radius: 15px; }
  .hot-offer-icon { width: 40px; height: 40px; border-radius: 12px; }
  .hot-offer-icon svg { width: 23px; height: 23px; }
  .hot-offer-app-icon img { width: 100%; height: 100%; }
  .hot-offer-label { font-size: .58rem; margin-bottom: 1px; }
  .hot-offer-copy strong { font-size: .94rem; line-height: 1.25; }
  .hot-offer-copy p { margin-top: 3px; font-size: .72rem; line-height: 1.38; }
  .hot-offer-actions { grid-column: 1 / -1; gap: 8px; }
  .hot-offer-actions .button { flex: 1; min-height: 37px; padding: 0 12px; font-size: .76rem; }
  .hot-offer-guide { padding: 8px 4px; font-size: .72rem; }
  .hot-app-badge { top: 9px; right: 9px; padding: 4px 7px; font-size: .55rem; }
  .app-card.is-featured .app-title-wrap { padding-right: 58px; }
}
