/* =============================================
   DESIGN TOKENS — DARK THEME (default)
   ============================================= */
:root,
[data-theme="dark"] {
  --bg-900: #0f0c14;
  --bg-800: #16121d;
  --bg-700: #1f1928;
  --bg-card: #1c1726;
  --bg-card-hover: #231e2f;
  --bg-input: #19142200;

  /* Softer dusty rose */
  --accent: #b8607a;
  --accent-2: #8f4b62;
  --accent-glow: rgba(184, 96, 122, 0.18);
  --accent-subtle: rgba(184, 96, 122, 0.07);
  --accent-border: rgba(184, 96, 122, 0.22);

  --gold: #d4a85a;

  --text-1: #ece7f5;
  --text-2: #b8aece;
  --text-3: #7e7498;
  --text-4: #52496a;

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(184, 96, 122, 0.16);

  --shadow-card: 0 2px 18px rgba(0,0,0,0.38), 0 1px 3px rgba(0,0,0,0.22);
  --shadow-glow: 0 0 36px rgba(184, 96, 122, 0.09);

  --header-bg: rgba(15, 12, 20, 0.86);
  --hero-grad: radial-gradient(ellipse at 50% -5%, rgba(184,96,122,0.16) 0%, transparent 60%),
               radial-gradient(ellipse at 75% 95%, rgba(143,75,98,0.08) 0%, transparent 50%);
}

/* =============================================
   LIGHT THEME
   ============================================= */
[data-theme="light"] {
  --bg-900: #f7f4fc;
  --bg-800: #f0eaf8;
  --bg-700: #e8e0f2;
  --bg-card: #ffffff;
  --bg-card-hover: #fefcff;
  --bg-input: #faf8ff;

  /* Softer muted rose for light */
  --accent: #a0506a;
  --accent-2: #7a3d54;
  --accent-glow: rgba(160, 80, 106, 0.16);
  --accent-subtle: rgba(160, 80, 106, 0.07);
  --accent-border: rgba(160, 80, 106, 0.18);

  --gold: #b07830;

  --text-1: #1e1530;
  --text-2: #3a2c52;
  --text-3: #6a5e88;
  --text-4: #9a8eb8;

  --border: rgba(0, 0, 0, 0.07);
  --border-accent: rgba(160, 80, 106, 0.15);

  --shadow-card: 0 2px 14px rgba(80,50,120,0.08), 0 1px 3px rgba(80,50,120,0.05);
  --shadow-glow: 0 0 28px rgba(160, 80, 106, 0.07);

  --header-bg: rgba(247, 244, 252, 0.92);
  --hero-grad: radial-gradient(ellipse at 50% -10%, rgba(160,80,106,0.11) 0%, transparent 60%),
               radial-gradient(ellipse at 80% 90%, rgba(122,61,84,0.06) 0%, transparent 50%);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-900);
  color: var(--text-2);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.35s ease;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   AGE GATE
   ============================================= */
.age-gate {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-900);
}

[data-theme="dark"] .age-gate {
  background: radial-gradient(ellipse at center, #1a0d1f 0%, #07040a 100%);
}
[data-theme="dark"] .age-gate::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 35%, rgba(200,75,119,0.12) 0%, transparent 55%),
              radial-gradient(circle at 75% 65%, rgba(155,61,107,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.age-gate__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 24px;
  padding: 52px 44px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.86) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* 18+ badge */
.age-gate__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 8px 28px var(--accent-glow);
  letter-spacing: -1px;
}

.age-gate__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(22px, 4vw, 30px);
  color: var(--text-1);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.age-gate__subtitle {
  color: var(--text-3);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.age-gate__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.age-gate__legal {
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.5;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 100px;           /* pill shape */
  transition: all 0.22s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.015em;
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer on primary */
.btn--primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0) 60%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}
.btn--primary:hover::after { transform: translateX(100%); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 3px 12px var(--accent-glow), 0 1px 2px rgba(0,0,0,0.15);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px var(--accent-glow), 0 2px 4px rgba(0,0,0,0.12);
}
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent-border);
}
.btn--outline:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--bg-700);
  color: var(--text-2);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--bg-800); color: var(--text-1); }

.btn--small  { padding: 8px 18px; font-size: 13px; }
.btn--large  { padding: 16px 32px; font-size: 15px; width: 100%; }

/* =============================================
   THEME TOGGLE
   ============================================= */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--bg-700);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s ease;
  color: var(--text-2);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-border);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Show correct icon per theme */
.theme-toggle__icon { display: none; }

[data-theme="dark"]  .theme-toggle__icon--dark  { display: flex; }
[data-theme="light"] .theme-toggle__icon--light { display: flex; }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: background 0.35s ease, border-color 0.35s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: var(--text-1);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo__accent { color: var(--accent); }

.header__nav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.nav-link {
  font-size: 14px;
  color: var(--text-3);
  transition: color 0.2s;
  font-weight: 500;
}
.nav-link:hover { color: var(--text-1); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Language dropdown */
.lang-wrap { position: relative; }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  padding: 6px;
  min-width: 162px;
  box-shadow: var(--shadow-card);
  z-index: 50;
  transition: background 0.3s;
}
.lang-dropdown button {
  display: block; width: 100%;
  padding: 9px 13px;
  background: none; border: none;
  color: var(--text-2);
  font-size: 13px; cursor: pointer;
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.lang-dropdown button:hover { background: var(--accent-subtle); color: var(--text-1); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background: var(--hero-grad);
  pointer-events: none;
  transition: background 0.35s ease;
}

.hero__content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 5px 16px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
}

.hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 6.5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-1);
  margin-bottom: 18px;
}

[data-theme="dark"] .hero__title {
  background: linear-gradient(135deg, #f2eeff 0%, #c84b77 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 17px;
  color: var(--text-3);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================
   SEARCH BOX
   ============================================= */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto 44px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.35s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box__icon {
  padding: 0 12px 0 18px;
  color: var(--text-4);
  flex-shrink: 0;
}

.search-box__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-1);
  padding: 16px 0;
}
.search-box__input::placeholder { color: var(--text-4); }

.search-box__clear {
  background: none;
  border: none;
  color: var(--text-4);
  cursor: pointer;
  padding: 0 16px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.search-box__clear:hover { color: var(--accent); }

/* =============================================
   HERO STATS
   ============================================= */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 44px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__label {
  font-size: 11px;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* =============================================
   TAGS SECTION
   ============================================= */
.tags-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  transition: border-color 0.35s;
}

.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--text-1);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.tag:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-subtle);
  transform: translateY(-2px);
}
.tag.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.tag__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: rgba(255,255,255,0.18);
  border-radius: 100px;
  font-size: 11px;
}
[data-theme="light"] .tag__count { background: rgba(0,0,0,0.08); }
.tag.active .tag__count { background: rgba(255,255,255,0.28); }

/* =============================================
   FILTER BAR
   ============================================= */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 12px;
  margin-bottom: 28px;
  transition: background 0.35s, border-color 0.35s;
}
.filter-bar__label {
  font-size: 12px;
  color: var(--text-4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 11px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--accent);
}
.filter-chip__remove {
  cursor: pointer;
  font-size: 11px;
  opacity: 0.65;
  line-height: 1;
}
.filter-chip__remove:hover { opacity: 1; }

/* =============================================
   CATALOG
   ============================================= */
.catalog {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.catalog__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-2);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 13px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.35s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a7fa0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 32px;
}
.select:focus { border-color: var(--accent); }

/* =============================================
   STORIES GRID
   ============================================= */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.22s ease;
  animation: cardIn 0.35s ease both;
}
.story-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.story-card__inner { padding: 22px; }

.story-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
.story-card__badges { display: flex; gap: 6px; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge--lang {
  background: var(--bg-700);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.rating-stars { color: var(--gold); font-size: 13px; }

.story-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  color: var(--text-1);
  margin-bottom: 9px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 0.2s;
}
.story-card:hover .story-card__title { color: var(--accent); }

.story-card__desc {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 14px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 18px;
}
.story-card__tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 11px;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.18s ease;
}
.story-card__tag:hover { background: var(--accent); color: #fff; }

.story-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.story-card__meta { font-size: 12px; color: var(--text-4); }

/* =============================================
   NO RESULTS
   ============================================= */
.no-results { text-align: center; padding: 72px 24px; }
.no-results__icon { font-size: 52px; margin-bottom: 14px; }
.no-results__text { color: var(--text-3); margin-bottom: 22px; font-size: 15px; }

/* =============================================
   LOAD MORE
   ============================================= */
.load-more-wrap { text-align: center; margin-top: 44px; }

/* =============================================
   ABOUT
   ============================================= */
.about {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}
.about__card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 44px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  transition: background 0.35s;
}
.about__card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  color: var(--text-1);
  margin-bottom: 14px;
}
.about__card p { color: var(--text-3); margin-bottom: 10px; font-size: 15px; }
.link { color: var(--accent); }
.link:hover { text-decoration: underline; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 32px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__copy { font-size: 13px; color: var(--text-4); }
.footer__links { display: flex; gap: 18px; }
.footer__link { font-size: 13px; color: var(--text-4); transition: color 0.2s; }
.footer__link:hover { color: var(--accent); }

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-900); }
::-webkit-scrollbar-thumb { background: var(--bg-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* =============================================
   TRANSITIONS for theme switch
   ============================================= */
.header, .age-gate__card, .story-card, .about__card,
.filter-bar, .lang-dropdown, .tag, .select,
.search-box, .theme-toggle, .badge--lang {
  transition-property: background, border-color, color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: ease;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .hero { padding: 60px 0 48px; }
  .hero__stats { gap: 26px; }
  .stories-grid { grid-template-columns: 1fr; }
  .about__card { padding: 26px 18px; }
  .catalog__header { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; }
  .age-gate__card { padding: 32px 22px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero__stats { gap: 18px; }
  .stat__num { font-size: 24px; }
}

/* Like Button & Series */
.like-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 20px;
}
.like-btn:hover {
  color: var(--primary);
  background: rgba(183, 110, 121, 0.1);
}
.like-btn.liked {
  color: #e74c3c;
}
.like-btn.liked svg {
  fill: #e74c3c;
  stroke: #e74c3c;
}
.likes-count {
  font-size: 0.85rem;
  font-weight: 600;
}
.story-card__series {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.story-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.story-card__link {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
  border-bottom: 1px solid transparent;
  transition: border 0.3s ease;
}
.story-card:hover .story-card__link {
  border-bottom-color: var(--primary);
}
.like-btn {
  position: relative;
  z-index: 10;
}

/* Modern Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: rgba(30, 25, 28, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(183, 110, 121, 0.3);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) both, toastOut 0.3s ease 2.7s forwards;
}
.toast--error { border-left: 4px solid #e74c3c; }
.toast--success { border-left: 4px solid var(--primary); }
@keyframes toastIn {
  from { transform: translateX(100%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
  to { transform: translateY(-20px); opacity: 0; }
}

/* Logo Animation */
.logo__icon {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(183, 110, 121, 0.5));
  animation: heartbeat 1.5s ease-in-out infinite;
}
.logo:hover .logo__icon {
  animation: heartbeat 0.6s ease-in-out infinite;
  transform: scale(1.1);
}
.logo__accent {
  position: relative;
  text-shadow: 0 0 10px rgba(183, 110, 121, 0.3);
}
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Admin Tools */
.story-card__admin {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  margin: 10px 0;
  padding-top: 10px;
  border-top: 1px solid rgba(183, 110, 121, 0.1);
}
.btn--admin {
  background: rgba(183, 110, 121, 0.15);
  border: 1px solid rgba(183, 110, 121, 0.3);
  color: var(--primary);
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn--admin:hover {
  background: var(--primary);
  color: #fff;
}

/* Custom Confirmation Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-border);
  border-radius: 24px;
  padding: 32px;
  max-width: 400px; width: 90%;
  text-align: center;
  box-shadow: var(--shadow-glow), 0 20px 40px rgba(0,0,0,0.4);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal-card { transform: scale(1) translateY(0); }
.modal-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--text-1); margin-bottom: 12px; }
.modal-text { color: var(--text-3); font-size: 15px; margin-bottom: 24px; line-height: 1.5; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
