/* ==========================================
   ALPHA-HEN PREMIUM ANIMATION & DESIGN SYSTEM
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Color Palette */
  --bg-main: #06060a;
  --bg-card: #0f0f18;
  --bg-card-hover: #161626;
  --bg-glass: rgba(15, 15, 24, 0.65);
  --bg-glass-heavy: rgba(10, 10, 16, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.05);
  --border-color-hover: rgba(255, 46, 147, 0.3);
  
  --text-primary: #f3f3f7;
  --text-secondary: #9ea2c0;
  --text-muted: #646884;
  
  /* Accent Colors */
  --accent-pink: #ff2e93;
  --accent-orange: #ff7a00;
  --accent-purple: #8b3cff;
  --accent-cyan: #00f0ff;
  --accent-green: #00ff88;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-orange) 100%);
  --gradient-purple: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-pink) 100%);
  --gradient-dark: linear-gradient(180deg, rgba(6, 6, 10, 0) 0%, rgba(6, 6, 10, 0.95) 90%);
  --gradient-glow: linear-gradient(135deg, rgba(255, 46, 147, 0.25) 0%, rgba(255, 122, 0, 0.25) 100%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  /* Shadows & Blur */
  --glow-shadow: 0 0 25px rgba(255, 46, 147, 0.35);
  --glass-blur: blur(16px);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 46, 147, 0.15);
  
  /* Spacing & Transitions */
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-in-out);
  --transition-normal: 0.35s var(--ease-in-out);
  --transition-slow: 0.6s var(--ease-in-out);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 20%, rgba(139, 60, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(255, 46, 147, 0.06) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card);
  border: 2px solid var(--bg-main);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color-hover);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Page Frame/Grid System */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4%;
}

/* Header & Navigation Styles */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 6, 10, 0.75);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-color);
  transition: padding var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(255, 46, 147, 0.15);
}

.logo-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  background: var(--gradient-purple);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 0 15px rgba(139, 60, 255, 0.3);
}

/* Tabs and Controls in Header */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50px;
  padding: 10px 22px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-tab-btn i {
  font-size: 1rem;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.nav-tab-btn.active {
  background: rgba(255, 46, 147, 0.08);
  color: var(--accent-pink);
  border-color: rgba(255, 46, 147, 0.2);
}

.header-search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 4px 4px 4px 18px;
  width: 320px;
  transition: all var(--transition-normal);
}

.header-search:focus-within {
  width: 380px;
  background: rgba(0, 0, 0, 0.3);
  border-color: var(--accent-pink);
  box-shadow: 0 0 20px rgba(255, 46, 147, 0.1);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}

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

.search-icon-btn {
  background: var(--gradient-primary);
  border: none;
  outline: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.search-icon-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(255, 46, 147, 0.3);
}

/* Hero Section */
.hero-section {
  position: relative;
  margin-top: 40px;
  margin-bottom: 50px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background-color: #0c0d12;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform var(--transition-slow);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 6, 10, 0.95) 0%, rgba(6, 6, 10, 0.7) 40%, rgba(6, 6, 10, 0.1) 100%), var(--gradient-dark);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 60%;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-tag {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-pink);
  margin-bottom: 20px;
  background: rgba(255, 46, 147, 0.12);
  border: 1px solid rgba(255, 46, 147, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  font-family: var(--font-display);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(255, 46, 147, 0.25);
  transition: all var(--transition-fast);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Grid & Cards section */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 26px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--card-shadow);
}

.card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--border-color-hover);
  box-shadow: var(--card-shadow-hover);
}

.card-img-wrapper {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: #09090f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-placeholder {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.15;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-img {
  transform: scale(1.08);
}

.card-favorite-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 15, 24, 0.7);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-favorite-btn:hover {
  transform: scale(1.15);
  background: var(--bg-card);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.card-favorite-btn.active {
  color: var(--accent-pink);
  border-color: rgba(255, 46, 147, 0.4);
  background: rgba(255, 46, 147, 0.1);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  margin-bottom: 12px;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 44px; /* fixed height for alignment */
}

.card-meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-badge {
  background: rgba(139, 60, 255, 0.1);
  color: var(--accent-purple);
  padding: 4px 10px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(139, 60, 255, 0.18);
}

.card-badge.airing {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  border-color: rgba(0, 255, 136, 0.18);
}

.card-badge.end {
  background: rgba(255, 46, 147, 0.08);
  color: var(--accent-pink);
  border-color: rgba(255, 46, 147, 0.18);
}

.card-info-text {
  font-weight: 500;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 50px 0;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
  background: rgba(255, 46, 147, 0.05);
}

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

.page-label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-secondary);
}

/* Video Player Panel */
.player-section {
  display: none;
  margin-top: 30px;
  margin-bottom: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  animation: slideDown 0.5s var(--ease-in-out);
  position: relative;
  overflow: hidden;
}

.player-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.player-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.player-panel-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.player-panel-tag {
  font-size: 0.75rem;
  color: var(--accent-pink);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.player-panel-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.close-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
}

.close-btn:hover {
  background: rgba(255, 46, 147, 0.1);
  color: var(--accent-pink);
  border-color: rgba(255, 46, 147, 0.3);
  transform: rotate(90deg);
}

.video-frame-container {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Customizing PLYR */
.plyr {
  border-radius: 16px;
  --plyr-color-main: var(--accent-pink);
}

/* Quality Selector Styles in Player Controls Bar */
.player-controls-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 15px 10px 0 10px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.quality-selector-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quality-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.quality-options-container {
  display: flex;
  gap: 8px;
}

.quality-opt-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 6px 14px;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quality-opt-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.quality-opt-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 46, 147, 0.35);
}

.player-shortcut-legend {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  gap: 15px;
}

.player-shortcut-legend span kbd {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: var(--font-code);
  color: var(--text-secondary);
}

/* Episodes panel */
.episodes-section {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 40px;
  box-shadow: var(--card-shadow);
  animation: slideDown 0.5s var(--ease-in-out);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.ep-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

.ep-btn:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 46, 147, 0.3);
}

.ep-btn.active {
  background: var(--gradient-purple);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(139, 60, 255, 0.3);
}

.ep-btn-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
}

/* Favorites / History Tabs */
.library-tab-menu {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.lib-tab-btn {
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 5px 10px;
  position: relative;
  transition: all var(--transition-fast);
}

.lib-tab-btn:hover {
  color: var(--text-primary);
}

.lib-tab-btn.active {
  color: var(--text-primary);
}

.lib-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.library-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 18px;
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.library-empty i {
  font-size: 2.5rem;
  color: var(--text-muted);
}

/* History horizontal lists */
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 46, 147, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.history-img-wrapper {
  width: 100px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #09090f;
}

.history-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.history-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.history-anime-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-ep-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-progress-text {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 500;
}

.history-progress-bar-bg {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.history-progress-bar-fill {
  height: 100%;
  background: var(--accent-cyan);
}

.history-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.history-delete-btn:hover {
  color: var(--accent-pink);
  background: rgba(255, 46, 147, 0.1);
}

/* Loader Styles */
.spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

.quantum-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 46, 147, 0.08);
  border-radius: 50%;
  border-top-color: var(--accent-pink);
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

/* API Documentation Styles */
.docs-wrapper {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.docs-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.doc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: border-color var(--transition-normal);
}

.doc-card:hover {
  border-color: rgba(139, 60, 255, 0.2);
}

.doc-card-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: rgba(255,255,255,0.01);
}

.doc-route {
  display: flex;
  align-items: center;
  gap: 15px;
}

.method-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 6px;
  text-transform: uppercase;
}

.method-tag.get {
  background: rgba(0, 255, 136, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.route-path {
  font-family: var(--font-code);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
}

.route-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-left: 2px solid var(--accent-purple);
  padding-left: 12px;
}

.doc-card-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 380px;
}

@media (max-width: 1024px) {
  .doc-card-body {
    grid-template-columns: 1fr;
  }
}

.doc-body-left {
  padding: 30px;
  border-right: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
  .doc-body-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

.doc-body-right {
  padding: 30px;
  background: #040407;
  display: flex;
  flex-direction: column;
}

.table-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

.doc-table th, .doc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.doc-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.doc-table td {
  font-size: 0.85rem;
}

.param-name {
  font-family: var(--font-code);
  color: var(--accent-pink);
  font-weight: 600;
}

.param-type {
  font-family: var(--font-code);
  color: var(--accent-purple);
}

.param-req {
  color: var(--accent-orange);
  font-weight: 600;
}

/* Sandbox Playground UI */
.sandbox-action-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.sandbox-input {
  flex: 1;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.sandbox-input:focus {
  border-color: var(--accent-purple);
  outline: none;
}

.btn-sandbox {
  background: rgba(139, 60, 255, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(139, 60, 255, 0.25);
  font-family: var(--font-display);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sandbox:hover {
  background: var(--gradient-purple);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(139, 60, 255, 0.35);
}

.response-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.code-viewer-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.code-viewer-title::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.code-view-container {
  flex: 1;
  background: #020204;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  overflow: auto;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: #d1d5db;
  max-height: 380px;
  position: relative;
}

.json-property { color: var(--accent-pink); }
.json-string { color: var(--accent-orange); }
.json-number { color: var(--accent-green); }
.json-boolean { color: var(--accent-purple); }

/* Floating toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(15, 15, 24, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 46, 147, 0.2);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: all var(--transition-fast);
}

.toast.success {
  border-color: rgba(0, 255, 136, 0.2);
}

.toast.success i {
  color: var(--accent-green);
}

.toast.info {
  border-color: rgba(0, 240, 255, 0.2);
}

.toast.info i {
  color: var(--accent-cyan);
}

.toast.error {
  border-color: rgba(255, 46, 147, 0.2);
}

.toast.error i {
  color: var(--accent-pink);
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastIn {
  from { transform: translateY(20px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Responsive Overrides */
@media (max-width: 850px) {
  .hero-content {
    max-width: 100%;
    padding: 30px;
  }
  .hero-section {
    height: 380px;
  }
  .hero-title {
    font-size: 2rem;
  }
  .nav-container {
    height: auto;
    padding: 15px 0;
    flex-direction: column;
    gap: 15px;
  }
  .header-search {
    width: 100%;
  }
  .header-search:focus-within {
    width: 100%;
  }
}
