html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, Arial, sans-serif;
}

/* Shared top bar for support-like pages */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0f1930;
  border-bottom: 1px solid #1f2b47;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand { color: #fff; text-decoration: none; font-weight: 800; }

.topbar-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.topbar-nav a {
  color: #dbe5ff;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14px;
}
.topbar-nav a.active,
.topbar-nav a:hover { background: #243455; color: #fff; }

.page,
.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.shell { display: grid; gap: 20px; }

.card {
  background: #ffffff;
  border: 1px solid #cfd5e8;
  border-radius: 18px;
  padding: 24px;
}

h1, h2 { margin: 0 0 10px; }
p, li { line-height: 1.6; color: #4b5876; }

/* Landing */
.landing-page { background: #01030a; color: #fff; height: 100vh; height: 100vh; overflow: hidden; }

.landing-statusbar {
  height: 56px;
  box-sizing: border-box;
  background: #05070f;
  border-bottom: 1px solid #11182b;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
}

.landing-statusbar a {
  color: #cfd8f5;
  text-decoration: none;
  font-size: 14px;
}

.landing-main {
  height: calc(100vh - 56px);
  height: calc(100vh - 56px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}

.landing-shell {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-logo {
  width: 260px;
  max-width: 70%;
  margin-bottom: 12px;
}

.landing-actions {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: -88px;
}

.landing-actions a {
  text-decoration: none;
  text-align: center;
}

.landing-btn {
  width: 100%;
  border: 1px solid #2a3352;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 18px;
  font-weight: 500;
  color: #d9e6ff;
  background: transparent;
  box-sizing: border-box;
}

.landing-btn-google {
  background: #a7cdff;
  color: #23245f;
  border-color: #a7cdff;
}

.landing-btn-outline { background: #070b14; }

.landing-btn-small {
  width: 48%;
  max-width: 240px;
  background: #070b14;
}

/* In-app pages */
.app-page {
  background: #efecf4;
  color: #1b1d28;
  min-height: 100vh;
}

.app-page.theme-dark {
  background: #060a14;
  color: #eff3ff;
}

.phone-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 100vh;
  background: inherit;
}

.app-top {
  padding: 16px 24px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
}

.app-content {
  padding: 12px 24px 96px;
}

.app-card {
  background: #f8f5fc;
  border: 1px solid rgba(123,136,175,0.2);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}

.app-page.theme-dark .app-card { background: #121826; }

.app-title { font-size: 28px; margin: 0 0 8px; }
.app-sub { font-size: 14px; color: #5f667d; }
.app-page.theme-dark .app-sub { color: #b7bfd6; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip { background: #c7d2ea; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.app-page.theme-dark .chip { background: #24324f; }

.story-image {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: linear-gradient(160deg, #2f466f, #1a2234);
}

.grid-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}

.tile {
  min-height: 150px;
  border-radius: 12px;
  padding: 8px;
  font-size: 12px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, #d9d6de, #bcb8c5);
}

.app-page.theme-dark .tile { background: linear-gradient(180deg, #1b2030, #121726); }

.list-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(123,136,175,0.2);
}

.list-thumb { width: 36px; height: 36px; border-radius: 8px; background: #8b95b3; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  text-align: center;
  padding: 10px 10px 14px;
  font-size: 12px;
  border-top: 1px solid rgba(123,136,175,0.25);
  background: #efecf4;
}

.app-page.theme-dark .bottom-nav { background: #060a14; }

.bottom-nav a { text-decoration: none; color: inherit; }
.bottom-nav a.active { color: #2f5f9f; font-weight: 700; }

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.switch {
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #9ea6ba;
  position: relative;
  cursor: pointer;
}

.switch:after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s ease;
}

.switch.on { background: #3e6898; }
.switch.on:after { left: 22px; }

@media (max-width: 720px) {
  .landing-logo { width: 220px; }
  .app-top { padding: 14px 14px 8px; font-size: 15px; }
  .app-content { padding: 8px 12px 90px; }
  .story-image { height: 220px; }
  .app-title { font-size: 20px; }
}

.auth-status {
  color: #ffb4b4;
  min-height: 20px;
  margin: 8px 0 0;
}

.auth-page-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 14px;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #050d22;
  border: 1px solid #1a2b52;
  border-radius: 24px;
  padding: 18px 16px 20px;
  box-sizing: border-box;
}

.auth-card-lg { max-width: 680px; }

.auth-card h1 { color: #fff; margin: 0 0 14px; font-size: 56px; line-height: 1; }
.auth-back { color: #d1ddff; text-decoration: none; font-size: 24px; }
.auth-caption { color: #b0bad6; font-size: 13px; }
.auth-label { font-size: 13px; color: #d6deef; display: block; margin-top: 10px; margin-bottom: 6px; }

.auth-card input,
.auth-card textarea,
.auth-card button {
  width: 100%;
  margin-top: 10px;
  border-radius: 16px;
  border: 1px solid #3a4054;
  background: #353745;
  color: #f2f6ff;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 16px;
}

.auth-card textarea { min-height: 88px; }

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.interest-chip {
  border: 1px solid #24406b;
  background: #091220;
  color: #dce8ff;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.interest-chip.selected {
  background: #16447d;
  border-color: #6db0ff;
}

.auth-submit {
  border: 1px solid #424757;
  background: #323544;
  color: #e6eaf7;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-submit-enabled {
  background: #9bc3ef;
  border-color: #9bc3ef;
  color: #202a58;
}

.auth-submit-muted {
  background: #323544;
  border-color: #323544;
}

.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 1;
}

.vip-perks {
  margin-top: 10px;
  margin-bottom: 8px;
}

.vip-perks p {
  margin: 0 0 8px;
  color: #ccd7f3;
}

.news-feed #news-list {
  display: grid;
  gap: 10px;
}

.news-item {
  background: #f8f5fc;
  border: 1px solid rgba(123,136,175,0.2);
  border-radius: 14px;
  padding: 12px;
}

.news-item h3 { margin: 0 0 6px; }
.news-item p { margin: 0 0 6px; }
.news-item a { color: #2f5f9f; }

.mini-btn {
  border: 1px solid #355587;
  border-radius: 999px;
  background: #1c2c46;
  color: #dce8ff;
  padding: 8px 14px;
}

.auth-page {
  background: #01030a;
  color: #fff;
  min-height: 100vh;
  overflow-y: auto;
}

.auth-page .auth-page-wrap {
  min-height: auto;
  padding-bottom: 40px;
}

@media (max-width: 720px) {
  .auth-card { border-radius: 20px; padding: 14px; }
  .auth-card h1 { font-size: 48px; }
}