/* ==========================================================================
   ZENITH ANIME - Minimalist Theme Design System
   Modern Japanese Editorial & Swiss Precision Style
   ========================================================================== */

:root {
  /* Color Palette - Dark Obsidian (Default) */
  --bg-primary: #08090c;
  --bg-secondary: #0e1015;
  --bg-tertiary: #141720;
  --bg-surface: #171b26;
  --bg-glass: rgba(14, 16, 21, 0.75);
  --bg-glass-strong: rgba(20, 23, 32, 0.92);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(255, 51, 102, 0.5);

  --text-primary: #f3f4f8;
  --text-secondary: #9da3af;
  --text-muted: #626978;
  --text-inverse: #08090c;

  /* Accent Colors */
  --accent-crimson: #ff3366;
  --accent-crimson-hover: #ff4777;
  --accent-crimson-subtle: rgba(255, 51, 102, 0.12);
  --accent-glow: rgba(255, 51, 102, 0.25);

  --accent-vip: #ffd700;
  --accent-vip-subtle: rgba(255, 215, 0, 0.12);
  --accent-vip-border: rgba(255, 215, 0, 0.35);

  --accent-cyan: #00d2ff;
  --accent-emerald: #00e699;

  /* Typography */
  --font-main: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-main);
  --font-kanji: "Noto Sans JP", sans-serif;

  /* Elevation & Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px var(--accent-glow);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
}

/* Light Theme Mode */
[data-theme="light"] {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f3f6;
  --bg-surface: #e9ecef;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.96);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);
  --border-focus: rgba(255, 51, 102, 0.6);

  --text-primary: #12151b;
  --text-secondary: #4b5262;
  --text-muted: #8c93a3;
  --text-inverse: #ffffff;

  --accent-crimson-subtle: rgba(255, 51, 102, 0.08);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  transition: background-color var(--duration-normal) var(--ease-spring), color var(--duration-normal) var(--ease-spring);
}

/* Ambient glow accents */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.14;
}

.glow-top {
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, var(--accent-crimson), transparent 70%);
}

.glow-bottom {
  bottom: 0;
  left: -200px;
  background: radial-gradient(circle, #4f46e5, transparent 70%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Links & Buttons */
a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
  transition: all var(--duration-fast) var(--ease-spring);
}

input, select, textarea {
  font-family: inherit;
  outline: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px var(--accent-crimson-subtle);
}

/* Icons */
.icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-normal);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.logo-kanji {
  font-family: var(--font-kanji);
  font-weight: 700;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--accent-crimson), #ff80a0);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-dot {
  color: var(--accent-crimson);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-weight: 600;
}

/* Search Input */
.header-search {
  position: relative;
  flex: 1;
  max-width: 440px;
  display: flex;
  align-items: center;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 3rem 0 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-primary);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-muted);
  pointer-events: none;
}

.search-badge {
  position: absolute;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-crimson);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--text-secondary);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.btn-vip-pill {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 51, 102, 0.15));
  border: 1px solid var(--accent-vip-border);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-vip-pill:hover {
  border-color: var(--accent-vip);
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
}

.icon-sparkle {
  color: var(--accent-vip);
  width: 15px;
  height: 15px;
}

.vip-glow-pill {
  background: var(--accent-vip);
  color: #12141a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

/* Theme Toggle Icons */
[data-theme="dark"] .icon-sun {
  display: inline-block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: inline-block;
}

/* User Profile Nav Pill & Dropdown */
.user-profile-menu {
  position: relative;
}

.btn-avatar-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 4px 10px 4px 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.btn-avatar-pill:hover {
  border-color: var(--border-medium);
}

.avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-nav-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-tier-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--accent-crimson);
  color: #fff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* Profile Dropdown Popup */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  z-index: 200;
  transform-origin: top right;
  animation: dropdownPop var(--duration-fast) var(--ease-spring);
}

.profile-dropdown.open {
  display: flex;
}

@keyframes dropdownPop {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-header {
  padding: 0.75rem 0.65rem;
}

.dropdown-user-info {
  display: flex;
  flex-direction: column;
}

.dropdown-user-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.dropdown-user-info .email {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-chip {
  margin-top: 0.4rem;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-vip);
  background: var(--accent-vip-subtle);
  border: 1px solid var(--accent-vip-border);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.3rem 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
}

.dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.dropdown-item.text-danger:hover {
  color: #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
}

/* ==========================================================================
   HERO SPOTLIGHT SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.4) saturate(1.2);
  transition: background-image 0.6s ease-in-out;
  z-index: 0;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    var(--bg-primary) 20%,
    rgba(8, 9, 12, 0.88) 50%,
    rgba(8, 9, 12, 0.4) 100%
  ),
  linear-gradient(to top, var(--bg-primary) 0%, transparent 60%);
  z-index: 1;
}

[data-theme="light"] .hero-backdrop {
  filter: brightness(0.65) saturate(1.1);
}

[data-theme="light"] .hero-gradient-overlay {
  background: linear-gradient(
    to right,
    var(--bg-primary) 25%,
    rgba(248, 249, 250, 0.9) 60%,
    rgba(248, 249, 250, 0.4) 100%
  ),
  linear-gradient(to top, var(--bg-primary) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-tag-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-crimson);
  background: var(--accent-crimson-subtle);
  border: 1px solid rgba(255, 51, 102, 0.25);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-crimson);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-crimson);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-vip-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-vip);
  background: var(--accent-vip-subtle);
  border: 1px solid var(--accent-vip-border);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.hero-subtitle-jp {
  font-family: var(--font-kanji);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 215, 0, 0.14);
  color: #ffc400;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.star-icon {
  width: 14px;
  height: 14px;
}

.meta-dot {
  color: var(--text-muted);
}

.hero-synopsis {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Carousel dots */
.hero-carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-medium);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.hero-dot.active {
  width: 24px;
  background: var(--accent-crimson);
}

/* ==========================================================================
   STATS STRIP SECTION
   ========================================================================== */
.stats-strip-section {
  margin-top: -24px;
  position: relative;
  z-index: 10;
}

.stats-strip {
  background: var(--bg-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 0.25rem;
}

.stat-divider {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
}

.stat-card-vip .stat-vip-text {
  color: var(--accent-vip);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   WATCHLIST & CATALOG SECTION
   ========================================================================== */
.watchlist-section {
  padding: 3rem 1.5rem 4rem;
}

.controls-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.filter-tab.active {
  color: #fff;
  background: var(--text-primary);
}

[data-theme="dark"] .filter-tab.active {
  color: #08090c;
  background: #f3f4f8;
}

.tab-count {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-primary);
}

[data-theme="dark"] .filter-tab.active .tab-count {
  background: rgba(0, 0, 0, 0.15);
  color: #08090c;
}

/* Sorting select */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  height: 38px;
  padding: 0 2rem 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--text-muted);
  pointer-events: none;
}

/* Genre Pills */
.genre-pill-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
}

.genre-pill {
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.genre-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.genre-pill.active {
  color: var(--accent-crimson);
  border-color: var(--accent-crimson);
  background: var(--accent-crimson-subtle);
}

/* Filter Summary Bar */
.filter-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.btn-clear-filter {
  color: var(--accent-crimson);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   ANIME GRID & CARDS
   ========================================================================== */
.anime-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.5rem;
}

/* Anime Card */
.anime-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--duration-normal) var(--ease-spring);
  cursor: pointer;
}

.anime-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

/* Poster container */
.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.9;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.anime-card:hover .card-poster-img {
  transform: scale(1.05);
}

/* Badges on poster */
.card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}

.badge-rank {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-vip-tag {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-vip);
  color: #08090c;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.card-score-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffc400;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 2;
}

.card-score-badge svg {
  width: 11px;
  height: 11px;
}

/* Watch Status Strip on Card */
.card-status-pill {
  position: absolute;
  bottom: 0.65rem;
  left: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.status-watching {
  background: rgba(0, 209, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 209, 255, 0.4);
}

.status-completed {
  background: rgba(0, 230, 153, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 153, 0.4);
}

.status-planned {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.status-dropped {
  background: rgba(255, 77, 79, 0.2);
  color: #ff4d4f;
  border: 1px solid rgba(255, 77, 79, 0.4);
}

/* Card Hover Quick Controls Overlay */
.card-hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
  z-index: 3;
  padding: 1rem;
}

.anime-card:hover .card-hover-actions {
  opacity: 1;
  pointer-events: auto;
}

.btn-card-action {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-quick-ep {
  background: var(--accent-crimson);
  color: #fff;
}

.btn-quick-ep:hover {
  background: var(--accent-crimson-hover);
}

.btn-quick-details {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-quick-details:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Card Content Details */
.card-info {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-line {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.card-genre-chips {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.card-genre-chip {
  font-size: 0.68rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

/* Progress Bar at bottom of Card */
.card-progress-bar-wrap {
  width: 100%;
  height: 3px;
  background: var(--bg-tertiary);
  position: relative;
}

.card-progress-bar-fill {
  height: 100%;
  background: var(--accent-crimson);
  transition: width 0.3s ease;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.empty-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-icon {
  width: 32px;
  height: 32px;
}

.empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   VIP SHOWCASE SECTION (RAZORPAY)
   ========================================================================== */
.vip-showcase-section {
  padding: 2rem 1.5rem 5rem;
}

.vip-banner-box {
  background: linear-gradient(135deg, #10121a 0%, #171b26 100%);
  border: 1px solid var(--accent-vip-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .vip-banner-box {
  background: linear-gradient(135deg, #ffffff 0%, #f1f3f8 100%);
  border-color: rgba(255, 215, 0, 0.4);
}

.vip-banner-box::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.vip-pill-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent-vip);
  background: var(--accent-vip-subtle);
  border: 1px solid var(--accent-vip-border);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.vip-banner-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 0.85rem;
}

.vip-banner-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.vip-features-chips {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.vip-features-chips .chip {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.vip-action-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn-vip {
  background: linear-gradient(135deg, #ffd700, #ffaa00);
  color: #08090c;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.45);
}

.vip-guarantee {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Minimalist Mock VIP Credit Card visual */
.vip-banner-visual {
  display: flex;
  justify-content: center;
}

.mock-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1.6 / 1;
  background: linear-gradient(135deg, #1f2330 0%, #0d0f14 100%);
  border: 1px solid var(--accent-vip-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.mock-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-vip);
  letter-spacing: 0.1em;
}

.mock-id {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
}

.mock-plan {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.mock-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(0, 230, 153, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 153, 0.3);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}

.mock-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.6rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 3rem 0;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 480px;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.footer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.footer-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-spring);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.96) translateY(8px);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-sm { max-width: 440px; }
.modal-md { max-width: 680px; }
.modal-lg { max-width: 900px; }

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal-close-btn:hover {
  background: var(--border-medium);
  color: var(--text-primary);
}

/* 1. Anime Detail Modal Styles */
.modal-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.modal-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.modal-body {
  padding: 1.8rem;
}

.modal-header-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.badge-vip {
  background: var(--accent-vip-subtle);
  color: var(--accent-vip);
  border-color: var(--accent-vip-border);
}

.modal-anime-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-anime-jp {
  font-family: var(--font-kanji);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-score-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  text-align: center;
  flex-shrink: 0;
}

.modal-score-box .score-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffc400;
  display: block;
  line-height: 1;
}

.modal-score-box .score-caption {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* User Tracker Fields inside Modal */
.modal-user-tracker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.tracker-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tracker-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.form-select, .form-input {
  height: 38px;
  padding: 0 0.75rem;
  font-size: 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 100%;
}

.progress-stepper {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 38px;
}

.stepper-btn {
  width: 36px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
}

.stepper-btn:hover {
  background: var(--border-medium);
  color: var(--text-primary);
}

.progress-stepper input {
  width: 50px;
  height: 100%;
  border: none;
  background: transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.progress-total {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-right: 0.5rem;
}

.tracker-notes-wrap {
  margin-bottom: 1.5rem;
}

.tracker-notes-wrap label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.modal-synopsis-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.detail-cell {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.detail-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.genre-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Episodes Checklist */
.episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.episodes-subinfo {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 200px;
  overflow-y: auto;
}

.episode-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.episode-item:hover {
  border-color: var(--border-medium);
}

.ep-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ep-check-btn {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: transparent;
}

.ep-check-btn.checked {
  background: var(--accent-emerald);
  border-color: var(--accent-emerald);
  color: #fff;
}

.ep-check-btn.checked svg {
  stroke-width: 3;
}

.ep-title {
  color: var(--text-primary);
  font-weight: 600;
}

.ep-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-badge-vip {
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-vip);
  color: #08090c;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}

.ep-dur {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* ==========================================================================
   2. AUTH MODAL (LOGIN & DEMO CREDENTIALS)
   ========================================================================== */
.auth-card {
  padding: 2.2rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-logo-badge {
  font-family: var(--font-kanji);
  font-size: 1.4rem;
  font-weight: 800;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-crimson), #ff80a0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* DEFAULT DEMO CREDENTIALS CALLOUT */
.default-credentials-box {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
  border: 1px solid rgba(255, 51, 102, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.cred-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-crimson);
  margin-bottom: 0.65rem;
}

.icon-key {
  width: 15px;
  height: 15px;
}

.cred-rows {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.cred-label {
  color: var(--text-muted);
  font-weight: 600;
}

.cred-val {
  font-family: monospace;
  color: var(--text-primary);
  font-weight: 700;
}

.btn-copy-cred {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-crimson);
  background: var(--accent-crimson-subtle);
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.btn-copy-cred:hover {
  background: var(--accent-crimson);
  color: #fff;
}

.btn-one-click-login {
  width: 100%;
  padding: 0.65rem;
  background: linear-gradient(135deg, var(--accent-crimson), #ff4777);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-one-click-login:hover {
  transform: translateY(-1px);
}

/* Auth Form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-link {
  font-size: 0.72rem;
  color: var(--accent-crimson);
}

.form-row-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.btn-block {
  width: 100%;
}

.auth-quick-switches {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.quick-title {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.switch-btn-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.btn-outline-sm {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.btn-outline-sm:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* ==========================================================================
   3. RAZORPAY SUBSCRIPTION MODAL
   ========================================================================== */
.vip-modal-content {
  padding: 2.2rem;
}

.razorpay-branding-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: rgba(0, 102, 255, 0.08);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.rzp-shield {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: #0066ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rzp-text {
  display: flex;
  flex-direction: column;
}

.rzp-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.rzp-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vip-plan-modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.vip-plan-modal-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pricing-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--duration-fast);
}

.pricing-card.popular {
  border-color: var(--accent-vip);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.06) 0%, var(--bg-tertiary) 100%);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.12);
}

.popular-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-vip);
  color: #08090c;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.plan-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.plan-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-period {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.plan-features-list li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
}

.btn-plan-action {
  width: 100%;
  padding: 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

.pricing-card.popular .btn-plan-action {
  background: var(--accent-vip);
  color: #08090c;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
}

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

.btn-plan-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Razorpay Key Settings */
.razorpay-test-key-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
}

.rzp-key-summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rzp-key-content {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rzp-note {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.vip-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

.secure-tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

.icon-lock {
  width: 13px;
  height: 13px;
}

/* ==========================================================================
   4. ADD ANIME & PROFILE DRAWERS
   ========================================================================== */
.add-anime-card {
  padding: 2.2rem;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-subheading {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  gap: 0.85rem;
}

.col-6 {
  flex: 1;
}

/* 5. Profile Modal */
.profile-modal-body {
  padding: 2.2rem;
}

.profile-header-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.profile-modal-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-crimson);
}

.profile-header-info {
  display: flex;
  flex-direction: column;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.profile-name-row h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-handle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.profile-stat-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-tile {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.profile-tile .tile-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  line-height: 1;
}

.profile-tile .tile-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.35rem;
  display: block;
}

.profile-subscription-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--accent-vip-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.sub-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.sub-box-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.sub-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
}

.sub-status-pill.active {
  background: rgba(0, 230, 153, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(0, 230, 153, 0.3);
}

.sub-box-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.sub-action-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-secondary-sm {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  background: var(--accent-vip);
  color: #08090c;
  border-radius: var(--radius-sm);
}

.btn-ghost-sm {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
}

.btn-ghost-sm:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.profile-backup-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight var(--duration-normal) var(--ease-spring);
  transition: all var(--duration-fast);
}

.toast.toast-success {
  border-left: 3px solid var(--accent-emerald);
}

.toast.toast-vip {
  border-left: 3px solid var(--accent-vip);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), var(--bg-glass-strong));
}

.toast.toast-info {
  border-left: 3px solid var(--accent-crimson);
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.toast-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .vip-banner-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .vip-banner-visual {
    display: none;
  }
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
  .stats-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .stat-divider:nth-child(6),
  .stat-divider:nth-child(8) {
    display: none;
  }
}

@media (max-width: 680px) {
  .header-search {
    display: none;
  }
  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }
  .stat-card-vip {
    grid-column: span 2;
  }
  .stat-divider {
    display: none;
  }
  .modal-user-tracker {
    grid-template-columns: 1fr;
  }
  .modal-details-grid {
    grid-template-columns: 1fr;
  }
  .profile-stat-tiles {
    grid-template-columns: 1fr 1fr;
  }
}
