/* assets/css/style.css - Core Design System for 3D Anime Hay */

:root {
  /* Color Palette - Cyberpunk Dark & Neon Cinema */
  --bg-primary: #0b0d14;
  --bg-secondary: #131722;
  --bg-card: rgba(22, 27, 40, 0.85);
  --bg-card-hover: rgba(32, 40, 60, 0.95);
  --bg-glass: rgba(18, 22, 34, 0.75);
  --bg-overlay: rgba(11, 13, 20, 0.85);
  
  --primary: #8b5cf6;       /* Neon Purple */
  --primary-glow: rgba(139, 92, 246, 0.4);
  --secondary: #06b6d4;     /* Electric Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #f59e0b;        /* Gold / Star rating */
  --accent-glow: rgba(245, 158, 11, 0.35);
  --danger: #ef4444;        /* Crimson Hot Badge */

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(139, 92, 246, 0.3);

  /* Typography */
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, 0.6);
  --shadow-neon: 0 0 20px var(--primary-glow);
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================
   THEME CUSTOMIZER (SÁNG / TỐI, MÀU CHỦ ĐỀ & BACKGROUND BODY)
   ========================================= */
/* 1. Chế độ Sáng (Light Theme) */
body.theme-light {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-overlay: rgba(248, 250, 252, 0.92);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(139, 92, 246, 0.25);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.06);
  background-color: var(--bg-primary);
  color: var(--text-main);
}

/* Background Variants khi ở chế độ Sáng */
body.theme-light.bg-space {
  background-color: #f1f5f9 !important;
  background-image: 
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0.05) 45%, transparent 70%),
    radial-gradient(ellipse 75% 60% at 85% 65%, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0.04) 50%, transparent 75%),
    radial-gradient(circle at 55% 35%, rgba(236, 72, 153, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 30% 85%, rgba(59, 130, 246, 0.15) 0%, transparent 65%),
    radial-gradient(2px 2px at 45px 75px, #8b5cf6, rgba(0,0,0,0)),
    radial-gradient(2.5px 2.5px at 160px 190px, #06b6d4, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 290px 130px, #ec4899, rgba(0,0,0,0)) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300px 300px, 350px 350px, 280px 280px !important;
  background-attachment: fixed !important;
}

body.theme-light.bg-smoke {
  background-color: #f8fafc !important;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.08) 0%, transparent 60%) !important;
}

body.theme-light.bg-grid {
  background-color: #f8fafc !important;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
}

/* Header & Navigation trong Theme Sáng */
body.theme-light .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.theme-light .logo-text {
  background: linear-gradient(to right, #0f172a, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.theme-light .search-input-group {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
}

body.theme-light .search-input-group input {
  color: #0f172a;
}

body.theme-light .search-input-group:focus-within {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

body.theme-light .user-menu-btn {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

body.theme-light .user-menu-btn:hover,
body.theme-light .user-menu-dropdown.active .user-menu-btn {
  background: rgba(139, 92, 246, 0.12);
  color: var(--primary);
}

body.theme-light .dropdown-menu-list,
body.theme-light .search-results-popup {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #0f172a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

body.theme-light .dropdown-item {
  color: #334155;
}

body.theme-light .dropdown-item:hover {
  background: rgba(139, 92, 246, 0.08);
  color: var(--primary);
}

body.theme-light .dropdown-divider {
  background: rgba(0, 0, 0, 0.06);
}

/* Header Filters Bar */
body.theme-light .header-filter-bar {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .filter-select {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

body.theme-light .filter-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Category Switch Pills */
body.theme-light .category-pills {
  background: #e2e8f0;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .pill-btn {
  color: #64748b;
}

body.theme-light .pill-btn:hover:not(.active) {
  color: #0f172a;
}

body.theme-light .pill-btn.active {
  color: #ffffff;
}

/* Movie Card & Sidebar Leaderboard */
body.theme-light .movie-card,
body.theme-light .sidebar-leaderboard {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

body.theme-light .movie-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 12px var(--primary-glow);
}

body.theme-light .section-title,
body.theme-light .movie-title,
body.theme-light .leaderboard-title,
body.theme-light .rank-name {
  color: #0f172a;
}

body.theme-light .rank-item:hover {
  background: #f1f5f9;
}

body.theme-light .rank-number {
  background: #f1f5f9;
  color: #475569;
}

/* Site Footer trong Theme Sáng */
body.theme-light .site-footer {
  background: #f1f5f9;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .footer-col-title {
  color: #0f172a;
}

body.theme-light .footer-desc {
  color: #64748b;
}

body.theme-light .footer-link {
  color: #475569;
}

body.theme-light .footer-link:hover {
  color: var(--primary);
}

body.theme-light .footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: #64748b;
}

body.theme-light .social-btn {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  color: #475569;
}

body.theme-light .social-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

/* iOS Bottom Bar & Bottom Sheet Modals */
body.theme-light .ios-bottom-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

body.theme-light .ios-nav-item {
  color: #64748b;
}

body.theme-light .ios-nav-item.active {
  color: var(--primary);
}

body.theme-light .ios-bottom-sheet {
  background: #ffffff;
  color: #0f172a;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.15);
}

body.theme-light .ios-sheet-handle {
  background: rgba(0, 0, 0, 0.2);
}

body.theme-light .ios-sheet-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.theme-light .ios-sheet-title {
  color: #0f172a;
}

body.theme-light .ios-sheet-close {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

body.theme-light .ios-day-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.theme-light .ios-day-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

body.theme-light .ios-day-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border-color: transparent;
}

body.theme-light .filter-sheet-label {
  color: #0f172a;
}

body.theme-light .filter-sheet-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #475569;
}

body.theme-light .filter-sheet-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
  color: var(--primary);
}

body.theme-light .filter-sheet-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

/* Floating Hub Menu */
body.theme-light .floating-hub-menu {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15);
}

body.theme-light .floating-menu-title,
body.theme-light .customizer-label,
body.theme-light .contact-card-item div strong {
  color: #0f172a;
}

body.theme-light .customizer-toggle-group {
  background: #f1f5f9;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .theme-mode-btn {
  color: #475569;
}

body.theme-light .theme-mode-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
}

body.theme-light .bg-choice-btn,
body.theme-light .lang-btn {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.theme-light .bg-choice-btn:hover,
body.theme-light .lang-btn:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

body.theme-light .bg-choice-btn.active,
body.theme-light .lang-btn.active {
  background: rgba(139, 92, 246, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

body.theme-light .app-clip-hub-launch-btn {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

body.theme-light .app-clip-hub-launch-btn:hover {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

body.theme-light .contact-card-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .contact-card-item:hover {
  background: #f1f5f9;
  border-color: var(--primary);
}

/* Apple App Clip trong Theme Sáng */
body.theme-light .app-clip-banner {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

body.theme-light .app-clip-title strong {
  color: #0f172a;
}

body.theme-light .app-clip-banner-close {
  color: #64748b;
}

body.theme-light .app-clip-banner-close:hover {
  color: #0f172a;
}

body.theme-light .app-clip-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

body.theme-light .app-clip-card-header,
body.theme-light .app-clip-card-title,
body.theme-light .app-clip-card-header h3 {
  color: #0f172a;
}

body.theme-light .app-clip-card-sub {
  color: #475569;
}

body.theme-light .app-clip-badge-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

body.theme-light .app-clip-badge-item strong {
  color: #0f172a;
}

body.theme-light .ios-install-steps {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

body.theme-light .step-item span {
  color: #334155;
}

body.theme-light .app-clip-handle {
  background: rgba(0, 0, 0, 0.2);
}

/* 2. Các biến thể Màu Sắc Chủ Đề (Accent Colors) */
body.accent-purple {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.4);
}

body.accent-cyan {
  --primary: #06b6d4;
  --primary-glow: rgba(6, 182, 212, 0.4);
}

body.accent-red {
  --primary: #ef4444;
  --primary-glow: rgba(239, 68, 68, 0.4);
}

body.accent-gold {
  --primary: #f59e0b;
  --primary-glow: rgba(245, 158, 11, 0.4);
}

body.accent-emerald {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
}

/* 3. Các biến thể Background Body */
body.bg-space {
  background-color: #03050c !important;
  background-image: 
    /* Dải tinh vân cực quang tím cực sáng */
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(139, 92, 246, 0.45) 0%, rgba(139, 92, 246, 0.12) 45%, transparent 70%),
    /* Tinh vân xoáy xanh Cyan rực rỡ */
    radial-gradient(ellipse 75% 60% at 85% 65%, rgba(6, 182, 212, 0.42) 0%, rgba(6, 182, 212, 0.1) 50%, transparent 75%),
    /* Tâm bão siêu tân tinh hồng Neon */
    radial-gradient(circle at 55% 35%, rgba(236, 72, 153, 0.35) 0%, rgba(236, 72, 153, 0.08) 35%, transparent 60%),
    /* Sông thiên hà xanh biển thẳm */
    radial-gradient(ellipse 80% 50% at 30% 85%, rgba(59, 130, 246, 0.32) 0%, transparent 65%),
    /* Bầu trời đầy sao lấp lánh (Sao trắng, xanh ngọc, vàng kim) */
    radial-gradient(2.5px 2.5px at 45px 75px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(3px 3px at 160px 190px, #67e8f9, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 290px 130px, #e9d5ff, rgba(0,0,0,0)),
    radial-gradient(3.5px 3.5px at 320px 380px, #fef08a, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 90px 320px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 220px 420px, #a5f3fc, rgba(0,0,0,0)) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300px 300px, 350px 350px, 280px 280px, 400px 400px, 250px 250px, 320px 320px !important;
  background-attachment: fixed !important;
}

body.bg-smoke {
  background-color: #080b14 !important;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse at 100% 100%, rgba(6, 182, 212, 0.25) 0%, transparent 60%),
    radial-gradient(circle at 10% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(8, 11, 20, 0.8) 0%, rgba(8, 11, 20, 0.96) 100%) !important;
  background-attachment: fixed !important;
}

body.bg-grid {
  background-color: #060810 !important;
  background-image: 
    linear-gradient(rgba(139, 92, 246, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.14) 1px, transparent 1px) !important;
  background-size: 40px 40px !important;
  background-attachment: fixed !important;
}

/* Ảnh nền tùy chỉnh người dùng tải lên từ thiết bị */
body.has-custom-bg {
  background-size: cover !important;
  background-position: center center !important;
  background-attachment: fixed !important;
  background-repeat: no-repeat !important;
}

body.has-custom-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(11, 13, 20, 0.45);
  pointer-events: none;
  z-index: 0;
}

body.theme-light.has-custom-bg::before {
  background: rgba(248, 250, 252, 0.4);
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: 40%;
  right: -100px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button, select, input {
  font-family: inherit;
  border: none;
  outline: none;
  background: transparent;
}

.container {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Base Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.4);
}

.badge-hd {
  background: rgba(6, 182, 212, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-series {
  background: rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.badge-ep {
  background: rgba(139, 92, 246, 0.25);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* =========================================
   CUSTOM CYBER NEON SCROLLBAR
   ========================================= */
/* Dành cho Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #080a10;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 999px;
  box-shadow: 0 0 10px var(--primary-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a855f7, #22d3ee);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.6);
}

/* Dành cho Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #080a10;
}

/* =========================================
   SCROLL PROGRESS BAR (THANH TIẾN TRÌNH CUỘN)
   ========================================= */
.scroll-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), #a855f7);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8), 0 0 20px rgba(139, 92, 246, 0.6);
  z-index: 10000;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* =========================================
   NÚT ĐIỀU KHIỂN CUỘN LÊN ĐẦU TRANG (BACK TO TOP)
   ========================================= */
.back-to-top-btn {
  position: fixed;
  right: 26px;
  bottom: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 25, 38, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px rgba(139, 92, 246, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top-btn:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  box-shadow: 0 0 20px var(--primary-glow), 0 0 25px var(--secondary-glow);
  transform: translateY(-4px) scale(1.05);
}

.back-to-top-btn i {
  transition: transform 0.2s ease;
}

.back-to-top-btn:hover i {
  transform: translateY(-2px);
}

/* Điều chỉnh vị trí nút Back to top trên Mobile để không đè lên iOS bottom bar */
@media (max-width: 768px) {
  .back-to-top-btn {
    right: 18px;
    bottom: 80px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

/* ẨN TRIỆT ĐỂ THANH BANNER & TOOLBAR CỦA GOOGLE TRANSLATE */
iframe.goog-te-banner-frame,
iframe.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.VIpgJd-ZVi9od-OR9Pa-O3G1be,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf {
  display: none !important;
  visibility: hidden !important;
  height: 0px !important;
  width: 0px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: none !important;
}

body {
  top: 0px !important;
  position: static !important;
}

html {
  top: 0px !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

#google_translate_element {
  display: none !important;
}

.movies-pagination-container {
  width: 100%;
  margin-top: 36px;
}

.page-nav-btn,
.page-num-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.page-nav-btn:hover:not(:disabled),
.page-num-btn:hover:not(.active) {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.page-num-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 16px var(--secondary-glow);
}

.page-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.page-dots {
  color: var(--text-dim);
  font-weight: 700;
  padding: 0 4px;
}

/* =========================================
   GLOBAL CYBERPUNK TOAST NOTIFICATION & INPUT GLOW
   ========================================= */
@keyframes inputShakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.input-error-glow {
  animation: inputShakeError 0.45s ease-in-out !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.45) !important;
  outline: none !important;
}

#globalAnimeToastContainer {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
  max-width: 440px;
  width: calc(100vw - 48px);
}

@media (max-width: 640px) {
  #globalAnimeToastContainer {
    top: 16px;
    right: 16px;
    width: calc(100vw - 32px);
  }
}

