/* ===== GLOBAL DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;600;700&display=swap');

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

:root {
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.8);
  --border-glass: rgba(0, 0, 0, 0.08);

  --text-primary: #1c2541;
  --text-secondary: #3a506b;
  --text-muted: #6c757d;

  --accent-gold: #c5a059;
  --accent-gold-dim: rgba(197, 160, 89, 0.15);
  --accent-teal: #2f6f88;
  --accent-teal-dim: rgba(47, 111, 136, 0.15);
  --accent-purple: #8e9aaf;
  --accent-purple-dim: rgba(142, 154, 175, 0.15);
  --accent-rose: #e07a5f;
  --accent-rose-dim: rgba(224, 122, 95, 0.15);

  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow-gold: 0 0 30px rgba(240, 192, 64, 0.2);
  --shadow-glow-teal: 0 0 30px rgba(0, 212, 170, 0.2);

  --font-body: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(240, 192, 64, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(0, 212, 170, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e0b030; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 39, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

/* Ochiq orqa fon faqat Olimlar sahifasi uchun */
.scholars-page .navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.scholars-page .nav-links a {
  color: var(--text-primary);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--bg-primary);
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-brand-text span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-gold);
  /* background olib tashlandi, shunda boshqa menyular kabi bir xil ko'rinadi */
}

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

.nav-cart-btn {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: var(--transition);
}

.nav-cart-btn:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-badge.visible { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #e0a020);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(240, 192, 64, 0.35);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: var(--accent-gold-dim);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.btn-teal {
  background: linear-gradient(135deg, var(--accent-teal), #00b090);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow-teal);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.35);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent-gold);
  color: var(--accent-gold);
}
.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 2rem 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(248, 249, 250, 0.3) 0%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.06) 0%, transparent 70%);
  animation: floatOrb 15s ease-in-out infinite reverse;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
}

.hero-content {
  max-width: 800px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--accent-gold-dim);
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: 50px;
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ===== STATS ===== */
.stats-section {
  padding: 60px 2rem;
  position: relative;
  z-index: 1;
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 2rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

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

/* ===== CARDS ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== BOOK CARDS ===== */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.book-cover {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.book-cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 2.5rem;
  position: relative;
}

.book-cover-placeholder .book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: transform 0.4s ease;
}

.book-title-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.book-card:hover .book-cover-img {
  transform: scale(1.05);
}

.book-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: rgba(0, 128, 128, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-paid {
  background: rgba(184, 134, 11, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-online {
  background: rgba(75, 0, 130, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-offline {
  background: rgba(199, 21, 133, 0.85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.book-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-category {
  font-size: 0.78rem;
  color: var(--accent-teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.book-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.book-author {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.book-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.book-rating {
  color: var(--accent-gold);
  font-weight: 600;
}

.book-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 14px;
}

.book-price.free {
  color: var(--accent-teal);
}

.book-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.book-actions .btn {
  flex: 1;
  justify-content: center;
}

/* ===== SCHOLAR CARDS ===== */
.scholars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.scholar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.scholar-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.scholar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.scholar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.scholar-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.scholar-title {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 500;
}

.scholar-dept {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scholar-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.scholar-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.scholar-field {
  padding: 3px 10px;
  background: var(--accent-teal-dim);
  color: var(--accent-teal);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.scholar-stats {
  display: flex;
  gap: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-glass);
}

.scholar-stat {
  text-align: center;
}

.scholar-stat-value {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

.scholar-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== NEWS CARDS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.news-card:hover {
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.news-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}

.news-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.news-body {
  padding: 20px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.news-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  margin-top: 12px;
  transition: var(--transition);
}

.news-read-more:hover {
  gap: 10px;
  color: #ffe080;
}

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 36px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.4s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.modal h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.modal p.subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select option {
  background: var(--bg-secondary);
}

.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.form-link {
  color: var(--accent-gold);
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}
.form-link:hover { color: #ffe080; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1500;
  display: none;
}

.cart-overlay.active { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-glass);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active { right: 0; }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.cart-close {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-close:hover {
  background: var(--danger);
  border-color: var(--danger);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--text-muted);
}

.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-glass);
  align-items: center;
}

.cart-item-cover {
  width: 50px;
  height: 65px;
  background: linear-gradient(135deg, var(--accent-gold-dim), var(--accent-teal-dim));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.cart-item-remove {
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 4px;
  transition: var(--transition);
}

.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-glass);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-total-price {
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

/* ===== CHECKOUT MODAL ===== */
.checkout-modal .modal {
  max-width: 540px;
}

.payment-info-box {
  background: var(--accent-gold-dim);
  border: 1px solid rgba(240, 192, 64, 0.25);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.payment-info-box h4 {
  color: var(--accent-gold);
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.payment-info-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.payment-card-number {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--accent-gold);
  font-weight: 700;
  letter-spacing: 2px;
}

.upload-area {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.upload-area:hover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.upload-area.has-file {
  border-color: var(--accent-teal);
  background: var(--accent-teal-dim);
}

.upload-icon { font-size: 2rem; margin-bottom: 8px; }

.upload-text { color: var(--text-muted); font-size: 0.88rem; }

.upload-preview {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* ===== PAGE HEADERS ===== */
.page-header {
  padding: 120px 2rem 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 8px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.filter-tab.active {
  background: var(--accent-gold);
  color: var(--bg-primary);
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-gold-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
}

/* ===== BOOK READER ===== */
.reader-container {
  padding: 90px 2rem 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.reader-header {
  max-width: 900px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

.reader-back:hover { gap: 4px; }

.reader-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}

.reader-title-bar {
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-glass);
}

.reader-title-bar h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.reader-title-bar .meta {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.reader-body {
  padding: 36px;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-secondary);
  white-space: pre-wrap;
}

/* ===== ADMIN ===== */
.admin-layout {
  padding: 90px 2rem 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.admin-header {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.admin-tab.active { background: var(--accent-gold); color: var(--bg-primary); border-color: var(--accent-gold); font-weight: 700; }

.admin-content {
  max-width: 1200px;
  margin: 0 auto;
}

.admin-panel {
  display: none;
}
.admin-panel.active { display: block; }

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id {
  font-weight: 700;
  color: var(--accent-gold);
}

.order-status {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending { background: var(--accent-gold-dim); color: var(--accent-gold); }
.status-approved { background: rgba(34,197,94,0.15); color: var(--success); }
.status-rejected { background: rgba(239,68,68,0.15); color: var(--danger); }

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.order-detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.order-screenshot {
  max-width: 300px;
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition);
}

.order-screenshot:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.order-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
  position: relative;
}

.user-avatar-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

.user-avatar-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.user-avatar-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bg-primary);
}

.user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 100;
}

.user-menu.active { display: block; }

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  text-decoration: none;
}

.user-menu-item:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.user-menu-item.danger:hover {
  background: rgba(239,68,68,0.1);
  color: var(--danger);
}

/* ===== PROFILE ORDERS ===== */
.profile-orders {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.profile-order {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.profile-order-title {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

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

/* ===== FOOTER ===== */
.footer {
  padding: 60px 2rem 30px;
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--accent-gold); }

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ===== FEATURED SECTION ===== */
.featured-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  min-width: 280px;
  animation: slideInRight 0.4s ease, fadeOut 0.4s ease 2.6s forwards;
}

.toast-success { border-left: 4px solid var(--success); }
.toast-error { border-left: 4px solid var(--danger); }
.toast-info { border-left: 4px solid var(--accent-gold); }

/* ===== NEWS DETAIL MODAL ===== */
.news-detail-body {
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-wrap;
}

/* ===== PROFILE ORDERS ===== */
.profile-orders {
  margin-top: 20px;
}

.profile-order {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
}

.profile-order-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.profile-order-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .books-grid, .news-grid, .scholars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 40px;
    background: rgba(10, 14, 39, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 2px solid var(--accent-gold);
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3000;
    overflow-y: auto;
  }
  .nav-links.active { 
    transform: translateX(0); 
  }
  
  .nav-links li {
    list-style: none;
  }

  .nav-links a {
    display: block;
    font-size: 1.1rem;
    padding: 16px 20px;
    text-align: left;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    transition: all 0.2s ease;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--accent-gold-dim);
    color: var(--accent-gold);
    border-bottom-color: transparent;
    padding-left: 28px;
  }

  /* Nav overlay — menyu ochiq bo'lganda for body */
  .navbar { padding: 0 1rem; height: 60px; }
  .nav-brand-icon { width: 36px; height: 36px; font-size: 1rem; }
  .nav-brand-text { font-size: 1.1rem; }
  .nav-cart-btn { width: 36px; height: 36px; font-size: 1rem; }
  
  /* Faqat bosh harfni ko'rsatish */
  #userNameDisplay { display: none; }
  .user-avatar-btn { padding: 4px; font-size: 0; }
  .user-avatar-small { margin: 0; }

  .hero h1 { font-size: 2rem; margin-bottom: 16px; }
  .hero p { font-size: 1rem; line-height: 1.6; }
  .hero { padding: 80px 1rem 2rem; }

  .section { padding: 40px 1rem; }
  .page-header { padding: 100px 1rem 30px; }
  .page-header h1 { font-size: 1.8rem; }
  
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .scholars-grid { grid-template-columns: 1fr; gap: 16px; }
  .news-grid { grid-template-columns: 1fr; gap: 16px; }
  
  .book-info h3 { font-size: 0.9rem; }
  .book-info { padding: 12px; }
  .book-price { font-size: 1rem; }
  
  .footer { padding: 40px 1rem 20px; }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }

  .modal { margin: 10px; width: calc(100vw - 20px); max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .modal { padding: 24px; }
}

/* ===== NEWS COVER IMAGES ===== */
.news-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.news-card:hover .news-cover-img {
  transform: scale(1.08);
  opacity: 0.9;
}

/* Reader styles → see css/reader.css */

/* ===== BOOKS SEARCH ===== */
.books-search-wrapper {
  margin-bottom: 28px;
}

.books-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 4px 20px;
  transition: var(--transition);
  max-width: 600px;
  margin: 0 auto;
}

.books-search-box:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
}

.books-search-icon {
  font-size: 1.2rem;
  margin-right: 12px;
  opacity: 0.6;
}

.books-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 14px 0;
}

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

.books-search-clear {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition);
}

.books-search-clear:hover {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}

.books-results-info {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding: 10px 16px;
  background: var(--accent-gold-dim);
  border-radius: var(--radius-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 24px;
}

/* ===== BOOK DETAIL MODAL ===== */
.book-detail-modal {
  max-width: 900px;
  width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
}

.book-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 500px;
}

.book-detail-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 400px;
}

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

.book-detail-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px;
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  font-weight: 600;
}

.book-detail-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.book-detail-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-detail-author {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.book-detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.book-detail-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-detail-meta-item .meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.book-detail-meta-item .meta-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.book-detail-description {
  margin-bottom: 24px;
  flex: 1;
}

.book-detail-description h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.book-detail-description p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.book-detail-price-section {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.book-detail-price {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.book-detail-price.free {
  color: var(--accent-teal);
}

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

/* ===== MY BOOKS PAGE ===== */
.my-books-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.my-books-empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.my-books-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.my-books-empty p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.my-books-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 0 auto;
}

.my-books-stat {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.my-books-stat:hover {
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-gold);
}

.my-books-stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.my-books-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.my-books-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.my-book-card {
  position: relative;
  overflow: hidden;
}

.my-book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  z-index: 2;
}

/* ===== SPINNER ===== */
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-glass);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ===== RESPONSIVE — Book Detail Modal ===== */
@media (max-width: 768px) {
  .book-detail-grid {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    min-height: 250px;
    max-height: 300px;
  }

  .book-detail-info {
    padding: 20px;
  }

  .book-detail-title {
    font-size: 1.3rem;
  }

  .book-detail-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
  }

  .book-detail-actions {
    flex-direction: column;
  }

  .book-detail-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .my-books-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .my-books-stat {
    padding: 16px 8px;
  }

  .my-books-stat-number {
    font-size: 1.5rem;
  }

  .books-search-box {
    padding: 2px 14px;
  }
}

@media (max-width: 480px) {
  .book-detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .my-books-stats {
    grid-template-columns: 1fr;
  }
}

/* End of main styles */
