:root {
  --bg: #f5f5f7;
  --bg2: #fbfbfd;
  --card: #fff;
  --card-hover: #fafafa;
  --text: #1d1d1f;
  --text2: #6e6e73;
  --text3: #aeaeb2;
  --accent: #0066cc;
  --accent2: #0071e3;
  --green: #34c759;
  --yellow: #ffcc00;
  --orange: #ff9500;
  --red: #ff3b30;
  --purple: #af52de;
  --border: rgba(0,0,0,0.08);
  --glass: rgba(255,255,255,0.72);
  --radius: 18px;
  --radius-sm: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.5;
}

/* ── Nav (Apple-style, translucent light) ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245,245,247,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 22px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.2px;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.7; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.nav-link:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#authArea {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.nav-logout { color: var(--text3) !important; }
.nav-logout:hover { color: var(--text) !important; }

/* ── Calendar Trigger & Panel ── */
.cal-trigger {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
  font-size: 16px;
}
.cal-trigger:hover { background: rgba(0,0,0,0.04); }
.cal-panel {
  position: absolute;
  top: 44px;
  right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  min-width: 280px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.cal-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.cal-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cal-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.cal-panel-arrow {
  width: 28px; height: 28px;
  border: none;
  background: rgba(0,0,0,0.04);
  color: var(--text2);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.cal-panel-arrow:hover { background: rgba(0,0,0,0.08); color: var(--text); }
.cal-panel-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 4px;
}
.cal-panel-weekdays span {
  font-size: 10px;
  color: var(--text3);
  font-weight: 500;
  padding: 4px 0;
}
.cal-panel-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cp-day {
  position: relative;
  text-align: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text2);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-day:hover { background: rgba(0,0,0,0.04); color: var(--text); }
.cp-day.cp-today { color: var(--accent); font-weight: 700; }
.cp-day.cp-active { background: var(--accent); color: #fff; font-weight: 600; }
.cp-day.cp-future { color: var(--text3); opacity: 0.3; cursor: default; }
.cp-day.cp-future:hover { background: none; }
.cp-day.cp-has-data::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.cp-day.cp-active.cp-has-data::after { background: rgba(255,255,255,0.5); }
.cp-badge {
  position: absolute;
  top: 1px;
  right: 2px;
  font-size: 8px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.cp-empty { }

/* ── Main ── */
.main { padding-top: 44px; }

/* ── Hero ── */
.hero { padding: 48px 24px 32px; text-align: center; }
.hero-inner { max-width: 980px; margin: 0 auto; }
.hero-date {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.hero-headline {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text2);
}
.hero-chip strong {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}
.hero-chip.chip-red {
  background: rgba(255,69,58,0.1);
  border-color: rgba(255,69,58,0.25);
  color: #ff453a;
}
.hero-chip.chip-red strong { color: #ff453a; }
.hero-chip.chip-yellow {
  background: rgba(255,159,10,0.1);
  border-color: rgba(255,159,10,0.25);
  color: #ff9f0a;
}
.hero-chip.chip-yellow strong { color: #ff9f0a; }

/* ── Threat Radar Summary Bar ── */
.threat-radar-bar {
  margin: 20px auto 0;
  max-width: 980px;
  display: none;
}
.threat-radar-bar.has-threats { display: block; }
.threat-radar-inner {
  border-radius: 14px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.threat-radar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.threat-radar-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.threat-radar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
  text-decoration: none;
}
.threat-radar-item:hover { background: rgba(255,255,255,0.04); }
.threat-radar-item.level-red {
  background: rgba(255,69,58,0.06);
  border: 1px solid rgba(255,69,58,0.12);
}
.threat-radar-item.level-red:hover { background: rgba(255,69,58,0.1); }
.threat-radar-item.level-yellow {
  background: rgba(255,159,10,0.06);
  border: 1px solid rgba(255,159,10,0.12);
}
.threat-radar-item.level-yellow:hover { background: rgba(255,159,10,0.1); }
.tri-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.tri-badge.red { background: rgba(255,69,58,0.2); color: #ff453a; }
.tri-badge.yellow { background: rgba(255,159,10,0.2); color: #ff9f0a; }
.tri-info { flex: 1; min-width: 0; }
.tri-title { font-size: 13px; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tri-project { font-size: 11px; color: var(--text3); margin-top: 2px; }
.tri-score { font-size: 12px; font-weight: 600; flex-shrink: 0; }
.tri-score.red { color: #ff453a; }
.tri-score.yellow { color: #ff9f0a; }

/* ── Idea Spinner Section ── */
.idea-spinner-section {
  margin: 24px auto 0;
  max-width: 980px;
  padding: 0 24px;
}
.spinner-inner {
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 24px;
}
.spinner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.spinner-icon { font-size: 24px; }
.spinner-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.spinner-sub {
  font-size: 13px;
  color: var(--text3);
  margin-left: 8px;
}

/* Spin Button */
.spin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.spin-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
}
.spin-btn:active:not(.disabled) {
  transform: translateY(0);
}
.spin-btn.disabled {
  background: var(--text3);
  cursor: not-allowed;
  opacity: 0.6;
}
.spin-btn-text { pointer-events: none; }
.spin-btn-remaining {
  pointer-events: none;
  font-size: 12px;
  font-weight: 500;
  background: rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 6px;
}

/* Spin Result Card */
.spin-result {
  margin-top: 20px;
}
.spin-card {
  border-radius: 14px;
  padding: 20px;
  background: var(--level-bg);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.spin-card:hover {
  transform: translateY(-2px);
}
.sc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sc-badge {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.sc-if {
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}
.sc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 12px;
}
.sc-logic {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 14px;
}
.sc-logic strong { color: var(--text); font-weight: 600; }
.sc-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.sc-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.sc-meta-label {
  color: var(--text3);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.sc-meta-item span:last-child { color: var(--text2); }
.sc-risk {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text3);
  padding: 8px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  line-height: 1.5;
}

/* SSR Reveal Animation */
.ssr-reveal {
  animation: ssrPulse 1.5s ease-out;
}
@keyframes ssrPulse {
  0% { transform: scale(0.95); opacity: 0; }
  30% { transform: scale(1.02); opacity: 1; }
  50% { box-shadow: 0 0 40px rgba(255,107,107,0.3); }
  100% { transform: scale(1); }
}

/* Spin error */
.spin-error {
  text-align: center;
  padding: 20px;
  color: var(--text3);
  font-size: 14px;
}

/* ── Section Title ── */
.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
  color: var(--text);
}

/* ── Picks ── */
.picks { padding: 0 24px 48px; }
.picks-inner { max-width: 980px; margin: 0 auto; }
.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pick-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.pick-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0.8;
}
.pick-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.pick-rank { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.pick-title {
  font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -0.2px; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.pick-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pick-meta span { font-size: 12px; color: var(--text2); }
.pick-meta span:nth-child(2) { color: var(--accent); font-weight: 600; }
.pick-comment { font-size: 13px; line-height: 1.6; color: var(--text2); }
.pick-headline { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.pick-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pick-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,0.04); color: var(--text2); }
.pick-arrow {
  position: absolute; bottom: 20px; right: 20px; font-size: 18px; color: var(--text3); transition: all 0.2s;
}
.pick-card:hover .pick-arrow { color: var(--accent); transform: translateX(4px); }

/* ── Flash ── */
.flash { padding: 0 24px 48px; }
.flash-inner { max-width: 980px; margin: 0 auto; }
.flash-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.flash-sort { display: flex; gap: 6px; }
.sort-btn {
  padding: 5px 14px; background: transparent; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.sort-btn.active { background: rgba(0,0,0,0.06); color: var(--text); }
.sort-btn:hover { border-color: rgba(0,0,0,0.15); }

.flash-pager {
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 0 4px;
}
.page-btn {
  padding: 6px 16px; background: transparent; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.page-btn:hover { border-color: rgba(0,0,0,0.15); color: var(--text); }
.page-info { font-size: 13px; color: var(--text3); font-variant-numeric: tabular-nums; }
.page-input {
  width: 60px; padding: 5px 8px; background: #fff; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-size: 13px; text-align: center; outline: none; font-family: inherit;
}
.page-input:focus { border-color: var(--accent); }

.flash-list {
  display: flex; flex-direction: column; gap: 1px;
  background: rgba(0,0,0,0.04); border-radius: var(--radius); overflow: hidden;
}
.flash-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  cursor: pointer; transition: background 0.15s; background: var(--card);
}
.flash-row:hover { background: var(--card-hover); }
.flash-num { font-size: 12px; color: var(--text3); width: 20px; text-align: right; flex-shrink: 0; font-weight: 500; }
.flash-emoji { flex-shrink: 0; font-size: 14px; }
.flash-title { flex: 1; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-if { font-size: 12px; font-weight: 600; color: var(--accent); flex-shrink: 0; }
.flash-zone { font-size: 11px; color: var(--green); background: rgba(52,199,89,0.1); padding: 2px 8px; border-radius: 4px; flex-shrink: 0; }
.flash-rec { font-size: 11px; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; font-weight: 500; }
.rec-high { background: rgba(52,199,89,0.12); color: var(--green); }
.rec-mid { background: rgba(255,204,0,0.15); color: #b38600; }
.rec-low { background: rgba(0,0,0,0.03); color: var(--text3); }

/* ── Detail Section ── */
.detail-section { padding: 0 24px 64px; }
.detail-inner { max-width: 980px; margin: 0 auto; }
.detail-header-row {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  padding: 6px 14px; background: transparent; border: 1px solid var(--border);
  border-radius: 20px; color: var(--text2); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.filter-chip.active { background: rgba(0,0,0,0.06); color: var(--text); }
.filter-chip:hover { border-color: rgba(0,0,0,0.15); }

/* ── Cards ── */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.card.highlight {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px rgba(0,102,204,0.1);
}
/* ── Threat Radar ── */
.card.threat-red {
  border: 2px solid #ff453a;
  box-shadow: 0 0 0 1px #ff453a, 0 4px 24px rgba(255,69,58,0.15);
  position: relative;
  animation: redPulse 2s ease-in-out infinite;
}
.card.threat-red::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #ff453a, #ff6961, #ff453a);
  border-radius: var(--radius) var(--radius) 0 0;
  animation: redBarPulse 1.5s ease-in-out infinite;
}
@keyframes redPulse {
  0%, 100% { box-shadow: 0 0 0 1px #ff453a, 0 4px 24px rgba(255,69,58,0.15); }
  50% { box-shadow: 0 0 0 2px #ff453a, 0 4px 32px rgba(255,69,58,0.25); }
}
@keyframes redBarPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.card.threat-yellow {
  border: 1.5px solid #ff9f0a;
  box-shadow: 0 0 0 1px rgba(255,159,10,0.2), 0 2px 12px rgba(255,159,10,0.08);
}
.threat-banner {
  padding: 10px 14px; border-radius: 8px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.5;
}
.threat-banner.red {
  background: rgba(255,69,58,0.1); border: 1px solid rgba(255,69,58,0.2); color: #ff453a;
}
.threat-banner.yellow {
  background: rgba(255,159,10,0.1); border: 1px solid rgba(255,159,10,0.2); color: #ff9f0a;
}
.threat-banner .threat-title { font-weight: 600; margin-bottom: 4px; }
.threat-banner .threat-advice { font-size: 12px; opacity: 0.85; }
.threat-banner .threat-score {
  display: inline-block; font-weight: 700; font-size: 11px;
  padding: 2px 8px; border-radius: 4px; margin-left: 6px;
}
.threat-banner.red .threat-score { background: rgba(255,69,58,0.2); }
.threat-banner.yellow .threat-score { background: rgba(255,159,10,0.2); }
.card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.ctag { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.tag-tumor { background: rgba(255,59,48,0.08); color: var(--red); }
.tag-immune { background: rgba(0,102,204,0.08); color: var(--accent); }
.tag-inflammasome { background: rgba(255,149,0,0.08); color: var(--orange); }
.tag-organ { background: rgba(52,199,89,0.08); color: var(--green); }
.tag-tech { background: rgba(175,82,222,0.08); color: var(--purple); }
.tag-ferroptosis { background: rgba(255,59,48,0.08); color: var(--red); }
.tag-other { background: rgba(0,0,0,0.04); color: var(--text2); }

.cif { font-size: 13px; font-weight: 700; color: var(--accent); }
.czone { font-size: 11px; color: var(--green); background: rgba(52,199,89,0.08); padding: 2px 8px; border-radius: 4px; }
.cfield { font-size: 11px; color: var(--text3); background: rgba(0,0,0,0.03); padding: 2px 8px; border-radius: 4px; }
.crec { font-size: 11px; padding: 2px 10px; border-radius: 4px; font-weight: 600; margin-left: auto; }
.card-title { font-size: 17px; font-weight: 600; line-height: 1.45; letter-spacing: -0.2px; margin-bottom: 6px; }
.card-journal { font-size: 13px; color: var(--text2); font-style: italic; margin-bottom: 12px; }
.stags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.stag { font-size: 11px; color: var(--text2); background: rgba(0,0,0,0.04); padding: 3px 10px; border-radius: 6px; }

/* Analysis */
.analysis {
  background: rgba(0,0,0,0.02); border-radius: var(--radius-sm); padding: 16px 20px;
  margin-bottom: 4px; border-left: 3px solid var(--accent);
}
.ablock { margin-bottom: 14px; }
.ablock:last-child { margin-bottom: 0; }
.alabel { display: block; font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 6px; }
.ablock p { font-size: 14px; line-height: 1.65; color: var(--text2); }
.comment-block { border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.comment { font-size: 14px; line-height: 1.75; color: rgba(29,29,31,0.7); }

/* Details (collapsible) */
.card-details { margin-top: 8px; }
.card-details summary { font-size: 13px; color: var(--text3); cursor: pointer; padding: 8px 0; user-select: none; transition: color 0.2s; }
.card-details summary:hover { color: var(--text2); }
.snippet { font-size: 13px; line-height: 1.65; color: var(--text2); padding: 8px 0; }
.card-links { display: flex; align-items: center; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.card-links a { font-size: 14px; color: var(--accent); text-decoration: none; font-weight: 500; }
.card-links a:hover { text-decoration: underline; }
.card-links span { font-size: 11px; color: var(--text3); }

/* ── Loading / Empty ── */
.loading, .empty { text-align: center; padding: 80px 20px; color: var(--text3); font-size: 16px; }

/* ── Locked ── */
.locked-section {
  text-align: center; padding: 64px 24px;
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lock-icon { font-size: 48px; margin-bottom: 16px; }
.locked-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.locked-section p { font-size: 14px; color: var(--text2); margin-bottom: 24px; }
.btn-cta {
  display: inline-block; padding: 12px 32px; background: var(--accent); color: #fff;
  border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600;
  transition: opacity 0.2s; border: none; cursor: pointer; font-family: inherit;
}
.btn-cta:hover { opacity: 0.85; }

/* ── Landing Page ── */
.lp-hero {
  text-align: center; padding: 100px 24px 80px;
  background: linear-gradient(180deg, rgba(0,102,204,0.04) 0%, transparent 100%);
}
.lp-hero-inner { max-width: 680px; margin: 0 auto; }
.lp-eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.lp-headline { font-size: 52px; font-weight: 800; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
.lp-sub { font-size: 18px; color: var(--text2); line-height: 1.7; margin-bottom: 36px; }
.lp-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-btn-primary {
  display: inline-block; padding: 14px 32px; background: var(--accent); color: #fff;
  border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.lp-btn-primary:hover { transform: scale(1.04); box-shadow: 0 8px 30px rgba(0,102,204,0.2); }
.lp-btn-secondary {
  display: inline-block; padding: 14px 32px; border: 1.5px solid var(--border); color: var(--text);
  border-radius: 12px; font-size: 16px; font-weight: 500; text-decoration: none; transition: border-color 0.2s;
}
.lp-btn-secondary:hover { border-color: var(--text2); }

.lp-section { padding: 80px 24px; }
.lp-section-inner { max-width: 960px; margin: 0 auto; }
.lp-section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.lp-section-desc { text-align: center; font-size: 16px; color: var(--text2); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }
.lp-dark { background: rgba(0,0,0,0.02); }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.lp-feature {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lp-feature:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.lp-feature-icon { font-size: 32px; margin-bottom: 14px; }
.lp-feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.lp-feature p { font-size: 14px; color: var(--text2); line-height: 1.6; }

.lp-stats { display: flex; gap: 48px; justify-content: center; margin-top: 40px; }
.lp-stat { text-align: center; }
.lp-stat-num { font-size: 36px; font-weight: 800; color: var(--accent); }
.lp-stat-label { font-size: 14px; color: var(--text2); margin-top: 4px; }

.lp-cta { text-align: center; padding: 80px 24px 100px; }
.lp-cta-inner { max-width: 520px; margin: 0 auto; }
.lp-cta h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.lp-cta p { font-size: 16px; color: var(--text2); margin-bottom: 32px; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text3); }

/* ── Footer ── */
.footer {
  text-align: center; padding: 12px 24px; color: var(--text3); font-size: 13px; border-top: 0.5px solid var(--border);
}

/* ── Unlock Button ── */
.unlock-btn.premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.unlock-btn.premium:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(238,90,36,0.35);
}
.unlock-btn.premium:active {
  transform: translateY(0);
}

/* ── Deep Report Modal ── */
.deep-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.deep-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  overflow: hidden;
}
.deep-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deep-modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}
.deep-modal-close {
  width: 32px; height: 32px;
  border: none; background: rgba(0,0,0,0.05);
  border-radius: 8px; cursor: pointer;
  font-size: 18px; color: var(--text2);
  display: flex; align-items: center; justify-content: center;
}
.deep-modal-close:hover { background: rgba(0,0,0,0.1); }
.deep-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Skeleton Loading */
.skeleton-wrap { padding: 8px 0; }
.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  margin-bottom: 10px;
}
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w90 { width: 90%; }
.skeleton-line.w40 { width: 40%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-block {
  height: 120px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 10px;
  margin: 16px 0;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Deep Report Content */
.deep-report-content {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
}
.deep-report-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
}
.deep-report-content h3:first-child { margin-top: 0; }
.deep-report-content ul {
  padding-left: 20px;
  margin: 8px 0;
}
.deep-report-content li {
  margin-bottom: 4px;
}
.deep-report-content strong {
  color: var(--text);
  font-weight: 600;
}
.deep-report-content hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 20px 0;
}
.deep-report-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 12px;
  color: #ee5a24;
}

/* VIP required modal */
.vip-required {
  text-align: center;
  padding: 40px 20px;
}
.vip-required-icon { font-size: 48px; margin-bottom: 16px; }
.vip-required h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.vip-required p { font-size: 14px; color: var(--text2); margin-bottom: 24px; }
.vip-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { gap: 16px; }
  .nav-link { font-size: 11px; }
  .cal-panel { right: -10px; min-width: 260px; }
  .lp-headline { font-size: 32px; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-stats { gap: 24px; }
  .lp-stat-num { font-size: 28px; }
}

@media (max-width: 640px) {
  .hero { padding: 48px 20px 36px; }
  .hero-headline { letter-spacing: -1px; }
  .hero-stats { gap: 8px; }
  .hero-chip { font-size: 12px; padding: 4px 10px; }
  .picks-grid { grid-template-columns: 1fr; }
  .picks, .flash, .detail-section { padding-left: 16px; padding-right: 16px; }
  .flash-if { display: none; }
  .flash-zone { display: none; }
  .card { padding: 18px; }
  .nav-inner { padding: 0 16px; }
  .detail-header-row { flex-direction: column; align-items: flex-start; }
  .picks-grid { gap: 12px; }

  /* Hide nav text links on mobile */
  .nav-links { display: none; }

  /* Bottom Tab Bar */
  .tab-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 0.5px solid rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0 4px;
    text-decoration: none;
    color: #aeaeb2;
    -webkit-tap-highlight-color: transparent;
  }
  .tab-item:active { opacity: 0.6; }
  .tab-item.active { color: #0066cc; }
  .tab-icon { font-size: 18px; line-height: 1; }
  .tab-label { font-size: 9px; font-weight: 500; margin-top: 1px; }
  .tab-item.active .tab-label { font-weight: 600; }

  /* Compact content */
  .main { padding-bottom: 56px; }
  .hero { padding: 36px 20px 24px; }
  .hero-headline { font-size: clamp(26px, 7vw, 36px); }
  .hero-stats { gap: 6px; }
  .hero-chip { font-size: 11px; padding: 3px 8px; }
  .threat-radar-inner { padding: 12px 14px; }
  .section-title { font-size: 17px; margin-bottom: 14px; }
  .picks-grid { grid-template-columns: 1fr; gap: 10px; }
  .pick-card { padding: 14px; }
  .flash-list { background: none; border-radius: 0; gap: 6px; }
  .flash-row {
    background: #fff; border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px; padding: 10px 12px; gap: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    align-items: flex-start;
  }
  .flash-title {
    white-space: normal; font-size: 13px; line-height: 1.4;
    -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .card { padding: 14px; border-radius: 12px; }
  .card-title { font-size: 15px; margin-bottom: 4px; }
  .analysis { padding: 12px 14px; }
  .ablock p { font-size: 13px; line-height: 1.55; }
  .comment { font-size: 13px; line-height: 1.6; }
  .footer { padding: 8px 16px; }
}

/* ── Daily Brief Poster ── */
.daily-brief-section { margin-bottom: 32px; }
.daily-brief-inner { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.brief-poster {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 28px; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 0 0 0.5px rgba(0,0,0,0.04);
  color: var(--text); font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.brief-poster-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.brief-poster-badge {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24); color: #fff;
  padding: 5px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
}
.brief-poster-date { font-size: 13px; color: var(--text3); }
.brief-poster .brief-question {
  background: rgba(0,0,0,0.03); border-left: 3px solid var(--accent);
  padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 14px;
  color: var(--text2); margin-bottom: 20px; line-height: 1.6;
}
.brief-poster .brief-question::before { content: '💬 '; }
.brief-poster-content {
  font-size: 15px; line-height: 1.85; color: var(--text); white-space: pre-wrap;
}
.brief-poster-content .star-highlight { color: #ff6b6b; font-weight: 600; }
.brief-poster-footer {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text3);
  display: flex; align-items: center; justify-content: space-between;
}
.brief-edit-btn {
  color: var(--text2); background: rgba(0,0,0,0.04); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 10px; font-size: 12px; font-weight: 500;
  cursor: pointer; text-decoration: none; transition: all 0.2s;
}
.brief-edit-btn:hover { background: rgba(0,0,0,0.08); color: var(--text); }
