:root {
  --bg: #0b0f1d;
  --bg-elevated: #12182c;
  --surface: #161d35;
  --surface-hover: #1d2747;
  --text: #f3f4f8;
  --muted: #9aa4c2;
  --gold: #f5b942;
  --gold-hover: #e5a528;
  --gold-soft: rgba(245, 185, 66, 0.14);
  --accent: #7c6cff;
  --accent-soft: rgba(124, 108, 255, 0.16);
  --border: rgba(255, 255, 255, 0.09);
  --success: #34d399;
  --warn-bg: rgba(245, 158, 11, 0.16);
  --warn-text: #fbbf24;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top, #151e3d 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(11, 15, 29, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-logo {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-decoration: none;
}

.brand-tag {
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-pill-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.nav-pill-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch,
.currency-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-elevated);
}

.lang-btn,
.mini-toggle {
  border: none;
  background: transparent;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.lang-btn.active,
.mini-toggle.active {
  background: var(--gold);
  color: #14110a;
}

.status-badge {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.status-badge.active {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--success);
  font-weight: 600;
}

/* Buttons */
.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.small-btn {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-gold {
  background: var(--gold);
  color: #151109;
}

.btn-gold:hover:not(:disabled) {
  background: var(--gold-hover);
}

.btn-secondary {
  background: var(--accent-soft);
  color: #c8c0ff;
  border: 1px solid rgba(124, 108, 255, 0.35);
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.full-width {
  width: 100%;
}

/* Main Content & Spotlight */
.main-content {
  padding: 28px 20px 72px;
}

.spotlight-hero {
  background: linear-gradient(135deg, rgba(28, 38, 72, 0.95), rgba(17, 23, 45, 0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .spotlight-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px;
  }

  .spotlight-cover-wrap {
    margin: 0 auto;
  }

  .spotlight-badges,
  .spotlight-actions {
    justify-content: center;
  }
}

.spotlight-cover-wrap {
  width: 170px;
}

.spotlight-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 6px;
}

.spotlight-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.spotlight-summary {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-bottom: 14px;
}

.spotlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* 2:3 Vertical Illustrated Book Cover */
.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  width: 100%;
  border-radius: 8px 14px 14px 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 12px 12px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.48), inset 8px 0 14px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.book-cover::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22), rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 3;
}

.cover-art-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  z-index: 1;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 22, 0.35) 0%, rgba(8, 11, 22, 0.88) 100%);
  z-index: 2;
}

.cover-top,
.cover-bottom {
  position: relative;
  z-index: 4;
}

.cover-genre-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(11, 15, 29, 0.72);
  color: var(--gold);
  border: 1px solid rgba(245, 185, 66, 0.35);
}

.cover-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff6e0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.cover-meta {
  font-size: 0.68rem;
  color: rgba(243, 244, 248, 0.78);
  margin-top: 4px;
}

/* Discovery Toolbar */
.discovery-toolbar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.search-input {
  flex: 1 1 260px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--gold);
  color: #14110a;
  border-color: var(--gold);
}

/* Badges & Banners */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.badge-accent {
  background: var(--accent-soft);
  color: #c8c0ff;
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.badge-ai {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}

.badge-free {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.badge-warn {
  background: var(--warn-bg);
  color: var(--warn-text);
}

.banner-ad {
  background: var(--bg-elevated);
  border: 1px dashed rgba(245, 185, 66, 0.35);
  border-radius: 12px;
  padding: 11px 16px;
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--muted);
}

.banner-ad.compact {
  margin-top: 24px;
  margin-bottom: 0;
}

.ad-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--gold-soft);
  color: var(--gold);
}

/* Shelves */
.shelf-section {
  margin-bottom: 36px;
}

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  gap: 12px;
}

.shelf-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: var(--text);
}

.muted-count {
  font-size: 0.84rem;
  color: var(--muted);
}

.reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.reading-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.reading-card:hover {
  background: var(--surface-hover);
}

.reading-meta-line {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  margin: 4px 0 8px;
}

.reading-meta-line.completed-line {
  color: var(--success);
}

.progress-bar-bg {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 999px;
}

.progress-bar-fill.completed-fill {
  background: var(--success);
}

.hot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.hot-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.hot-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
}

.hot-cover-box {
  width: 68px;
  flex-shrink: 0;
}

.hot-rank {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 4px;
}

.hot-card h3 {
  font-size: 0.98rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hot-stats {
  font-size: 0.78rem;
  color: var(--muted);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: rgba(245, 185, 66, 0.35);
}

.story-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.story-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.story-card p {
  font-size: 0.86rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--muted);
}

/* Story Overview Screen */
.overview-screen {
  min-height: 100vh;
  width: 100%;
  background: radial-gradient(circle at top, #151e3d 0%, var(--bg) 52%);
  color: var(--text);
}

.overview-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(11, 15, 29, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.overview-topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.overview-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.overview-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

@media (max-width: 680px) {
  .overview-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .overview-cover-wrap {
    max-width: 175px;
    margin: 0 auto;
  }
}

.overview-cover-wrap {
  width: 100%;
}

.overview-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 6px;
}

.overview-genre-line {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.overview-summary {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.overview-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.chapter-list-section {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.chapter-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chapter-list-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.overview-chapter-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.chapter-row-item:hover {
  background: var(--surface-hover);
  border-color: rgba(245, 185, 66, 0.4);
}

.chapter-row-item.is-read {
  opacity: 0.45;
  background: rgba(15, 21, 41, 0.65);
}

.chapter-row-item.is-read:hover {
  opacity: 0.72;
}

.chapter-row-item.is-unread {
  opacity: 1;
  border-color: rgba(245, 185, 66, 0.25);
}

.chapter-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chapter-row-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.chapter-row-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.chapter-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ch-status-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.ch-tag-read {
  background: rgba(154, 164, 194, 0.14);
  color: var(--muted);
}

.ch-tag-unread {
  background: var(--gold-soft);
  color: var(--gold);
}

.ch-tag-locked {
  background: rgba(251, 191, 36, 0.14);
  color: var(--warn-text);
}

/* Full-Screen Reader View */
.reader-screen {
  min-height: 100vh;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease;
}

.reader-theme-midnight {
  background: #0b0f1d;
  color: #f1f3f9;
}

.reader-theme-sepia {
  background: #f4ead5;
  color: #2c2416;
}

.reader-theme-daylight {
  background: #ffffff;
  color: #181a20;
}

.reader-topbar {
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.reader-theme-midnight .reader-topbar {
  background: rgba(11, 15, 29, 0.9);
}

.reader-theme-sepia .reader-topbar {
  background: rgba(244, 234, 213, 0.92);
}

.reader-theme-daylight .reader-topbar {
  background: rgba(255, 255, 255, 0.92);
}

.reader-topbar-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reader-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reader-title-group {
  min-width: 0;
}

.reader-story-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-progress-label {
  font-size: 0.78rem;
  opacity: 0.75;
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-progress-track {
  height: 3px;
  background: rgba(128, 128, 128, 0.2);
  width: 100%;
}

.reader-progress-fill {
  height: 100%;
  background: var(--gold);
  transition: width 0.2s ease;
}

.reader-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.reader-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chapter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.chapter-tab {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(128, 128, 128, 0.3);
  background: transparent;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.chapter-tab.active {
  background: var(--gold);
  color: #14110a;
  border-color: var(--gold);
}

.reader-body h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  margin-bottom: 18px;
  line-height: 1.35;
}

.reader-body p {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.9;
  margin-bottom: 18px;
}

.font-size-sm p {
  font-size: 0.98rem;
}

.font-size-md p {
  font-size: 1.12rem;
}

.font-size-lg p {
  font-size: 1.28rem;
}

.finish-story-bar {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.finish-status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--success);
}

.chapter-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(128, 128, 128, 0.22);
}

/* Modals */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 17, 0.76);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 60;
}

.hidden {
  display: none !important;
}

.modal-card {
  background: var(--surface);
  color: var(--text);
  border-radius: 18px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.appearance-card {
  max-width: 400px;
}

.sub-card {
  max-width: 580px;
}

.warning-card {
  max-width: 480px;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.custom-section {
  margin-bottom: 18px;
}

.custom-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.rtheme-option {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.rtheme-option.active {
  background: var(--gold);
  color: #14110a;
  border-color: var(--gold);
}

.font-size-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
}

.font-indicator {
  font-size: 0.88rem;
  font-weight: 700;
}

.warning-desc,
.warning-notes {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.warning-notes {
  background: var(--warn-bg);
  color: var(--warn-text);
  padding: 10px 12px;
  border-radius: 8px;
}

.ad-gate {
  margin-top: 20px;
  padding: 22px;
  border-radius: 14px;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px dashed rgba(245, 185, 66, 0.45);
  text-align: center;
}

.ad-gate h3 {
  margin-bottom: 8px;
}

.ad-gate p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.pass-eval-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.countdown {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.gate-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.plan-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.plan-box.featured {
  border-color: var(--gold);
  background: rgba(245, 185, 66, 0.06);
}

.plan-name {
  font-weight: 700;
  font-size: 1rem;
}

.plan-price {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--gold);
}

.plan-price span {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.plan-perks {
  list-style: none;
  font-size: 0.86rem;
  color: var(--muted);
}

.plan-perks li {
  margin-bottom: 6px;
}

.sub-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  font-size: 0.86rem;
  font-weight: 600;
}

.cover-photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
