:root {
  --bg: #eef1f6;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f7f8fb;
  --text: #1a1d26;
  --text-muted: #6b7280;
  --text-dim: #9aa3b2;
  --accent: #4f6fd8;
  --accent-soft: rgba(79, 111, 216, 0.1);
  --accent-border: rgba(79, 111, 216, 0.28);
  --gold: #d4a017;
  --gold-soft: rgba(212, 160, 23, 0.12);
  --success: #2ea86a;
  --border: rgba(26, 29, 38, 0.08);
  --shadow: 0 4px 20px rgba(26, 29, 38, 0.06);
  --radius: 16px;
  --radius-sm: 14px;
  --nav-h: 72px;
  --daily-bg: #faf3e0;
  --invite-bg: #e8f0fa;
  --topbar-bg: rgba(238, 241, 246, 0.94);
  --nav-bg: rgba(255, 255, 255, 0.96);
  --nav-active-border: #1a1d26;
  --nav-active-bg: #ffffff;
  --profile-banner-bg: linear-gradient(180deg, #dfe8ff 0%, #eef1f6 100%);
  --profile-row-bg: #f7f9fc;
  --tile-gray-bg: #f1f3f7;
  --invite-icon-bg: #ffffff;
  --invite-btn-bg: #2f4575;
  --error-bg: rgba(220, 53, 69, 0.08);
  --error-border: rgba(220, 53, 69, 0.18);
  --error-text: #b42318;
}

html[data-theme="dark"] {
  --bg: #0b0d12;
  --bg-elevated: #12151d;
  --bg-card: #171b26;
  --bg-card-hover: #1e2433;
  --text: #eef0f6;
  --text-muted: #8a90a5;
  --text-dim: #5c6378;
  --accent: #8b7cf7;
  --accent-soft: rgba(139, 124, 247, 0.14);
  --accent-border: rgba(139, 124, 247, 0.35);
  --gold: #e3b341;
  --gold-soft: rgba(227, 179, 65, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --daily-bg: rgba(227, 179, 65, 0.1);
  --invite-bg: rgba(79, 111, 216, 0.12);
  --topbar-bg: rgba(11, 13, 18, 0.94);
  --nav-bg: rgba(11, 13, 18, 0.96);
  --nav-active-border: #eef0f6;
  --nav-active-bg: #171b26;
  --profile-banner-bg: linear-gradient(180deg, #1a2030 0%, #0b0d12 100%);
  --profile-row-bg: #171b26;
  --tile-gray-bg: #1e2433;
  --invite-icon-bg: #171b26;
  --invite-btn-bg: #4f6fd8;
  --error-bg: rgba(255, 100, 100, 0.08);
  --error-border: rgba(255, 100, 100, 0.2);
  --error-text: #ffb4b4;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
}

#app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 12px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--topbar-bg);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 16px 16px 8px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #5b6fd8, #8b7cf7);
  border: none;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-greeting {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 20px 0 10px;
}

.section-label--premium {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.daily-card {
  background: var(--daily-bg);
  border: 1px solid rgba(212, 160, 23, 0.12);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.daily-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.daily-sign-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #8b7cf7, #6b5ce7);
  display: grid;
  place-items: center;
  font-size: 1.45rem;
}

.daily-sign-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4b5563;
}

.daily-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #374151;
}

.daily-more {
  margin-top: 12px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px 12px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow);
  min-height: 118px;
}

.home-tile:active {
  transform: scale(0.98);
}

.home-tile.is-locked {
  opacity: 0.72;
}

.tile-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.82rem;
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tile-icon--yellow { background: #fff4d6; }
.tile-icon--blue { background: #e8efff; }
.tile-icon--purple { background: #f0e8ff; }
.tile-icon--pink { background: #ffe8f0; }
.tile-icon--indigo { background: #e8ecff; }
.tile-icon--violet { background: #efe8ff; }
.tile-icon--gray { background: var(--tile-gray-bg); }

.tile-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tile-desc {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.invite-card {
  margin-top: 16px;
  background: var(--invite-bg);
  border: 1px solid rgba(79, 111, 216, 0.12);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.invite-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--invite-icon-bg);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.invite-copy {
  flex: 1;
  min-width: 0;
}

.invite-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.invite-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.invite-btn {
  border: none;
  background: var(--invite-btn-bg);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.quota-card {
  margin-top: 10px;
  margin-bottom: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow);
}

.quota-card-icon {
  color: var(--gold);
  font-size: 1rem;
  line-height: 1.2;
}

.quota-card-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.quota-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.horoscope-card {
  background: linear-gradient(135deg, rgba(227, 179, 65, 0.08), rgba(139, 124, 247, 0.06));
  border: 1px solid rgba(227, 179, 65, 0.15);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.horoscope-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sign-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(139, 124, 247, 0.18);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.horoscope-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.horoscope-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.horoscope-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  color: inherit;
  font: inherit;
}

.feature-card:active {
  transform: scale(0.98);
  background: var(--bg-card-hover);
}

.feature-emoji {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.feature-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 0.76rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.profile-page {
  margin: 0 -16px;
  padding-bottom: 8px;
}

.profile-banner {
  text-align: center;
  padding: 12px 16px 24px;
  background: var(--profile-banner-bg);
  position: relative;
  overflow: hidden;
}

.profile-banner::before,
.profile-banner::after {
  content: "✦";
  position: absolute;
  color: var(--accent);
  opacity: 0.25;
  font-size: 0.9rem;
}

.profile-banner::before {
  top: 18px;
  left: 24px;
}

.profile-banner::after {
  top: 28px;
  right: 32px;
}

.profile-sign {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #8b7cf7, #6b5ce7);
  border: none;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: var(--shadow);
}

.profile-zodiac-name {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.profile-zodiac-meta {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-page .info-grid {
  padding: 0 16px;
  margin-top: 4px;
}

.profile-page .stats-card {
  margin: 12px 16px 0;
}

.stats-card-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.profile-row {
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  background: var(--profile-row-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow);
}

.profile-row--static {
  cursor: default;
}

.profile-row--premium {
  cursor: default;
}

.profile-row:active:not(.profile-row--static):not(.profile-row--premium) {
  background: var(--bg-card-hover);
}

.profile-row-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.profile-row-copy {
  flex: 1;
  min-width: 0;
}

.profile-row-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.profile-row-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.profile-row-arrow,
.profile-row-check {
  color: var(--text-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.profile-row-check {
  color: var(--success);
  font-weight: 700;
}

.profile-buy-btn {
  border: none;
  background: var(--invite-btn-bg);
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-switch {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3px;
  flex-shrink: 0;
}

.theme-switch-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-switch-btn.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.profile-hero {
  text-align: center;
  padding: 8px 0 18px;
}

.profile-name {
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.info-value {
  font-size: 0.92rem;
  font-weight: 600;
}

.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 10px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 800;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.action-card {
  margin-top: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.action-card:active {
  background: var(--bg-card-hover);
}

.action-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.action-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.premium-banner {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(139, 124, 247, 0.12), rgba(90, 209, 154, 0.08));
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.premium-banner.hidden {
  display: none;
}

.premium-hero {
  text-align: center;
  padding: 12px 0 20px;
}

.premium-hero h2 {
  margin: 0;
  font-size: 1.5rem;
}

.premium-hero p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-card {
  background: linear-gradient(135deg, rgba(227, 179, 65, 0.1), rgba(139, 124, 247, 0.08));
  border: 1px solid rgba(227, 179, 65, 0.18);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}

.price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
}

.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.feature-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.feature-list-item:last-child {
  border-bottom: none;
}

.feature-list-item .emoji {
  font-size: 1.2rem;
}

.feature-list-item .title {
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-list-item .desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.feature-list-item .check {
  margin-left: auto;
  color: var(--accent);
}

.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-stars {
  background: linear-gradient(135deg, #f0a030, #e07820);
  color: #fff;
}

.btn:active {
  opacity: 0.9;
}

.muted {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: var(--nav-h);
  display: flex;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}

.nav-item.active {
  color: var(--text);
  border-color: var(--nav-active-border);
  background: var(--nav-active-bg);
}

.nav-item.hidden {
  display: none;
}

.nav-icon {
  font-size: 1.15rem;
}

.loading {
  text-align: center;
  padding: 40px 16px;
  color: var(--text-muted);
}

.nav-item {
  flex: 1;
  border: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.72rem;
  cursor: pointer;
  border-radius: 14px;
}

.error-box {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  color: var(--error-text);
  font-size: 0.88rem;
}

.page-root {
  padding: 0 16px 16px;
}

.back-btn {
  border: none;
  background: var(--bg-card);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1.4rem;
  line-height: 1;
  margin-right: 8px;
  cursor: pointer;
}

.back-btn.hidden {
  display: none;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.btn-sm {
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.hub-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  cursor: pointer;
}

.hub-emoji {
  font-size: 1.2rem;
}

.hub-title {
  flex: 1;
  text-align: left;
  font-weight: 600;
}

.hub-arrow {
  color: var(--text-dim);
}

.list-item {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 44px 14px 14px;
  margin-bottom: 10px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.list-text {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
}

.fav-btn.active {
  color: var(--gold);
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sign-btn {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  font-size: 0.88rem;
}

.select {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
}

.input {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
}

.field-label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.settings-note {
  margin-top: 12px;
  font-size: 0.82rem;
  text-align: center;
}

.natal-svg-wrap--error {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 8px;
}

.pre-wrap {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.92rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.natal-svg-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 12px;
}

.natal-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
}

.chat-msg {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-msg.user {
  border-color: var(--accent-border);
}

.horoscope-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.horoscope-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.period-choose {
  padding: 8px 0 4px;
}

.period-choose-lead {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.period-choose-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.period-choose-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow);
}

.period-choose-btn:active {
  background: var(--bg-card-hover);
}

.period-choose-emoji {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.period-choose-copy {
  flex: 1;
  min-width: 0;
}

.period-choose-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.period-choose-hint {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.period-choose-arrow {
  color: var(--text-dim);
  font-size: 1.3rem;
}

.period-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.period-bar-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.period-bar-btn.active {
  background: var(--accent);
  color: #fff;
}

.premium-page {
  margin-top: 4px;
}

.premium-intro {
  border-radius: var(--radius);
  padding: 20px 18px;
  background: linear-gradient(135deg, rgba(79, 111, 216, 0.18), rgba(46, 168, 106, 0.14));
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
}

.premium-intro-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.premium-intro-title {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.15;
}

.premium-intro-text {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.premium-rub-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.premium-rub-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.premium-rub-price {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.paywall-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.premium-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.premium-benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.premium-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.premium-benefit-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.premium-benefit-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.35;
}

.premium-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.premium-plan {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  box-shadow: var(--shadow);
}

.premium-plan--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg-card));
}

.premium-plan-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}

.premium-plan-days {
  font-size: 0.88rem;
  font-weight: 700;
}

.premium-plan-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 3px 7px;
}

.premium-plan-stars {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
}

.premium-plan-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.premium-active-card {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(46, 168, 106, 0.12);
  border: 1px solid rgba(46, 168, 106, 0.25);
}

.premium-active-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.premium-active-title {
  font-size: 0.92rem;
  font-weight: 700;
}

.premium-active-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.premium-legal {
  margin: 14px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: center;
}

.home-footnote-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.home-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.home-spotlight-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.home-spotlight-sign {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.home-spotlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.home-spotlight-date {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 2px;
}

.home-spotlight-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.home-spotlight-text.is-collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.home-spotlight-toggle {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.home-spotlight-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.chip-btn {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.home-section {
  margin-bottom: 14px;
}

.home-section--premium {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 10px 10px 4px;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 6px 8px;
}

.home-section-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.home-section-link {
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-row {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: var(--shadow);
}

.menu-row--locked {
  opacity: 0.78;
}

.menu-row-emoji {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.menu-row-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
}

.menu-row-lock {
  font-size: 0.82rem;
}

.menu-row-chevron {
  color: var(--text-dim);
  font-size: 1.2rem;
}

.home-footnote {
  margin-top: 8px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.premium-plan:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.chat-role {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 4px;
}
