/* ============================================
   NGÔN TÌNH CỦA TÔI — Design System
   Theme: Romantic dark, dusty rose + champagne
   ============================================ */

:root {
  /* Colors */
  --bg: #14111a;
  --bg-elevated: #1d1828;
  --surface: #261f33;
  --surface-hover: #302642;
  --border: #3a2f4d;

  --text: #f5f0eb;
  --text-muted: #a89cb5;
  --text-dim: #6b5e7d;

  --accent: #e8a5c0;          /* dusty rose */
  --accent-hover: #f0b8d0;
  --accent-soft: #4a2a3a;     /* dark rose for backgrounds */

  --gold: #d4af37;            /* VIP gold */
  --gold-soft: #3d3220;

  --success: #8fcb9b;
  --danger: #e57373;

  /* Typography */
  --font-ui: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-read: 'Lora', Georgia, serif;

  /* Spacing & layout */
  --container: 1200px;
  --radius: 10px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 17, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-read);
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.logo::before {
  content: '❀ ';
  font-style: normal;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav a.active, .nav a:hover {
  color: var(--text);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 24px;
  gap: 8px;
  flex: 0 1 280px;
}

.search-box input {
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 100%;
}

.search-box input::placeholder { color: var(--text-dim); }

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

.btn-vip {
  background: linear-gradient(135deg, #d4af37, #f4d56d);
  color: #2a1f00;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-vip:hover { color: #2a1f00; transform: translateY(-1px); }

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--bg);
  font-size: 14px;
}

/* ============================================
   HERO BANNER
   ============================================ */

.hero {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2a1f3a 0%, #4a2a3a 100%);
  padding: 60px 48px;
  display: flex;
  gap: 48px;
  align-items: center;
  min-height: 380px;
  box-shadow: var(--shadow-lg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(232, 165, 192, 0.15), transparent 50%);
  pointer-events: none;
}

.hero-cover {
  width: 220px;
  height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d4a5b8, #8b6480);
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-read);
  font-style: italic;
  color: var(--bg);
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: rgba(232, 165, 192, 0.2);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-read);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-author {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.hero-author strong { color: var(--accent); font-weight: 600; }

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta span strong { color: var(--text); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover { background: rgba(255,255,255,0.14); color: var(--text); }

/* ============================================
   SECTIONS
   ============================================ */

section.row {
  margin-top: 48px;
}

.row-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}

.row-title {
  font-family: var(--font-read);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-title .icon { color: var(--accent); }

.row-link {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   STORY GRID
   ============================================ */

.story-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.story-card {
  cursor: pointer;
  transition: transform 0.2s;
}

.story-card:hover { transform: translateY(-4px); }

.story-card .cover {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #d4a5b8, #8b6480);
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-read);
  font-style: italic;
  color: var(--bg);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  padding: 12px;
}

.story-card .cover.c2 { background: linear-gradient(135deg, #b8a5d4, #6b5e8b); }
.story-card .cover.c3 { background: linear-gradient(135deg, #d4c8a5, #8b7e5e); }
.story-card .cover.c4 { background: linear-gradient(135deg, #a5d4c8, #5e8b7e); }
.story-card .cover.c5 { background: linear-gradient(135deg, #d4a5a5, #8b5e5e); }
.story-card .cover.c6 { background: linear-gradient(135deg, #a5b8d4, #5e6b8b); }

.story-card .badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #d4af37, #f4d56d);
  color: #2a1f00;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.story-card .badge.hot {
  background: linear-gradient(135deg, #ff6b9d, #ff4778);
  color: white;
}

.story-card h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card .meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
}

/* ============================================
   RANKING (Hương Hỏa)
   ============================================ */

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.ranking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ranking-card h4 {
  font-family: var(--font-read);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ranking-list {
  list-style: none;
}

.ranking-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.rank-num {
  font-family: var(--font-read);
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  width: 30px;
  text-align: center;
  color: var(--text-dim);
}

.ranking-list li:nth-child(1) .rank-num { color: var(--gold); }
.ranking-list li:nth-child(2) .rank-num { color: #c0c0c0; }
.ranking-list li:nth-child(3) .rank-num { color: #cd7f32; }

.rank-info { flex: 1; min-width: 0; }
.rank-info h5 {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-info .stat {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-dim);
  text-align: center;
  font-size: 13px;
}

.footer a { color: var(--text-muted); margin: 0 12px; }

/* ============================================
   STORY DETAIL PAGE
   ============================================ */

.story-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0;
}

.story-header .cover-large {
  aspect-ratio: 2/3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #d4a5b8, #8b6480);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-read);
  font-style: italic;
  color: var(--bg);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}

.story-info h1 {
  font-family: var(--font-read);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.story-info .author {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.story-info .author strong { color: var(--accent); }

.story-info .tags {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tag {
  background: var(--surface);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
}

.story-stats {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.story-stats .stat {
  text-align: left;
}
.story-stats .stat-value {
  font-family: var(--font-read);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.story-stats .stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.story-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.story-actions {
  display: flex;
  gap: 12px;
}

.chapter-list-section {
  margin-top: 40px;
}

.chapter-list {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chapter-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}

.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover { background: var(--surface-hover); }

.chapter-row .ch-num {
  font-family: var(--font-read);
  font-style: italic;
  color: var(--text-dim);
  font-size: 15px;
  width: 50px;
  flex-shrink: 0;
}

.chapter-row .ch-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}

.chapter-row .ch-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-right: 16px;
}

.lock-icon {
  color: var(--gold);
  font-size: 14px;
}

/* ============================================
   READER PAGE
   ============================================ */

.reader {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
}

.reader-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.reader-breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.reader-breadcrumb a:hover { color: var(--accent); }

.reader-title {
  font-family: var(--font-read);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.reader-meta {
  font-size: 13px;
  color: var(--text-dim);
}

.reader-content {
  font-family: var(--font-read);
  font-size: 19px;
  line-height: 1.95;
  color: #e8dfd0;
}

.reader-content p {
  margin-bottom: 1.4em;
  text-indent: 1.5em;
}

.reader-content p:first-child { text-indent: 0; }
.reader-content p:first-child::first-letter {
  font-size: 4em;
  float: left;
  line-height: 0.85;
  margin: 6px 8px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.reader-controls {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  padding: 12px 8px;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.reader-controls button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.reader-controls button:hover {
  background: var(--surface-hover);
  color: var(--accent);
}

.reader-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  gap: 16px;
}

.reader-nav .btn { flex: 1; justify-content: center; }

.donate-prompt {
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent-soft), #2a1f3a);
  border-radius: var(--radius-lg);
  text-align: center;
}

.donate-prompt h4 {
  font-family: var(--font-read);
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--accent);
}

.donate-prompt p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Comments */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comments-section h3 {
  font-family: var(--font-read);
  font-size: 22px;
  margin-bottom: 20px;
}

.comment-form {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-form textarea {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 60px;
  outline: none;
}

.comment-form textarea:focus { border-color: var(--accent); }

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.comment .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--bg);
  font-size: 13px;
  flex-shrink: 0;
}

.comment .body { flex: 1; }
.comment .name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.comment .name .vip-badge {
  background: linear-gradient(135deg, #d4af37, #f4d56d);
  color: #2a1f00;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-left: 6px;
  font-weight: 700;
}
.comment .name .time {
  color: var(--text-dim);
  font-weight: 400;
  margin-left: 8px;
  font-size: 11px;
}
.comment .text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ============================================
   VIP PAGE
   ============================================ */

.vip-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.vip-hero h1 {
  font-family: var(--font-read);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--gold), #f4d56d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vip-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.2s;
}

.price-card:hover { transform: translateY(-4px); }

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-soft) 0%, var(--surface) 50%);
}

.price-card.featured::before {
  content: 'Phổ biến nhất';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #f4d56d);
  color: #2a1f00;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.price-card h3 {
  font-family: var(--font-read);
  font-size: 22px;
  margin-bottom: 8px;
}

.price-card .price {
  margin: 16px 0 8px;
}
.price-card .price .num {
  font-family: var(--font-read);
  font-size: 42px;
  font-weight: 700;
  color: var(--accent);
}
.price-card.featured .price .num { color: var(--gold); }
.price-card .price .unit {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 4px;
}

.price-card .save {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  margin: 24px 0;
}

.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

.price-card .btn { width: 100%; justify-content: center; }

.qr-modal-demo {
  margin-top: 60px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.qr-modal-demo h3 {
  font-family: var(--font-read);
  font-size: 24px;
  margin-bottom: 12px;
}

.qr-placeholder {
  background: white;
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  text-align: center;
  padding: 20px;
  position: relative;
}

.qr-placeholder::after {
  content: '';
  position: absolute;
  inset: 30px;
  background:
    linear-gradient(45deg, #000 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(-45deg, #000 25%, transparent 25%) 0 0/14px 14px,
    linear-gradient(45deg, transparent 75%, #000 75%) 0 0/14px 14px,
    linear-gradient(-45deg, transparent 75%, #000 75%) 0 0/14px 14px;
  opacity: 0.4;
}

/* ============================================
   ADMIN PAGE
   ============================================ */

.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 0;
}

.admin-sidebar .logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.admin-nav { list-style: none; }
.admin-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.admin-nav li a:hover { color: var(--text); background: var(--surface); }
.admin-nav li a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--surface);
}

.admin-main {
  padding: 32px 40px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-family: var(--font-read);
  font-size: 28px;
  font-weight: 700;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.stat-card .label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.stat-card .value {
  font-family: var(--font-read);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}
.stat-card .delta {
  font-size: 12px;
  color: var(--success);
  margin-top: 4px;
}

.admin-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-collapse: collapse;
}

.admin-table th, .admin-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-elevated);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-hover); }

.admin-table .pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.pill.published { background: rgba(143, 203, 155, 0.2); color: var(--success); }
.pill.draft { background: rgba(168, 156, 181, 0.2); color: var(--text-muted); }
.pill.vip { background: rgba(212, 175, 55, 0.2); color: var(--gold); }

.admin-table .row-actions a {
  color: var(--accent);
  font-size: 13px;
  margin-right: 12px;
  font-weight: 500;
}

/* Editor */
.editor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.field input[type="text"],
.field textarea,
.field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
}

.field textarea.editor-area {
  min-height: 400px;
  font-family: var(--font-read);
  font-size: 15px;
  line-height: 1.7;
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toggle-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.toggle-row label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.toggle-row .gold-icon { color: var(--gold); }

.editor-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .story-grid { grid-template-columns: repeat(4, 1fr); }
  .ranking-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: 16px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .search-box { flex: 1; }
  .hero { flex-direction: column; padding: 40px 24px; text-align: center; }
  .hero-title { font-size: 32px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .story-header { grid-template-columns: 1fr; }
  .story-header .cover-large { max-width: 200px; margin: 0 auto; }
  .reader-controls { right: 12px; padding: 8px 6px; }
  .reader-controls button { width: 32px; height: 32px; font-size: 14px; }
  .reader-content { font-size: 17px; }
  .reader-title { font-size: 24px; }
  .qr-modal-demo { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
