/* ============================================================
   STYLE.CSS — Site Cărți PDF  ·  Stripe / Linear style
   ============================================================ */

/* ── 1. RESET & VARIABILE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tema ZI — Librărie clasică (maro & auriu) */
:root {
  --primary:       #5d3a1a;
  --primary-dark:  #4a2d14;
  --primary-light: #a07040;
  --accent:        #c9901a;
  --accent-dark:   #b07a14;

  --bg:            #fdf6ec;
  --bg-secondary:  #f5e6d0;
  --bg-card:       #fefaf4;
  --bg-card-hover: #fdf0dc;
  --bg-modal:      #fefaf4;

  --text-primary:  #2c1a0e;
  --text-secondary:#6b4226;
  --text-muted:    #9e7a5a;

  --border:        rgba(93,58,26,0.1);
  --border-strong: rgba(93,58,26,0.18);
  --shadow-sm:     0 1px 3px rgba(93,58,26,0.1), 0 1px 2px rgba(93,58,26,0.06);
  --shadow-md:     0 6px 24px rgba(93,58,26,0.12), 0 2px 8px rgba(93,58,26,0.06);
  --shadow-lg:     0 20px 60px rgba(93,58,26,0.15), 0 8px 24px rgba(93,58,26,0.08);
  --shadow-glow:   0 0 40px rgba(93,58,26,0.12);

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

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --nav-height: 68px;

  --nav-scrolled-bg: rgba(253,246,236,0.9);
  --nav-mobile-bg:   rgba(253,246,236,0.98);
  --footer-bg:       #f5e6d0;
  --contact-bg:      #f5e6d0;
  --overlay-xs:      rgba(93,58,26,0.025);
  --overlay-sm:      rgba(93,58,26,0.05);
  --overlay-md:      rgba(93,58,26,0.07);
  --overlay-lg:      rgba(93,58,26,0.1);
  --overlay-xl:      rgba(93,58,26,0.14);
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }
input, textarea { font-family: inherit; }

/* ── Animație radiere linkuri ─────────────────────────────── */
@keyframes link-radiate {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Linkuri nav (nu și butonul CTA) */
.nav-menu a:not(.nav-cta):hover {
  background: linear-gradient(90deg, #c9901a, #f5d06e, #ff9a3c, #e8b84b, #c9901a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: link-radiate 1.6s linear infinite;
  filter: drop-shadow(0 0 5px rgba(201,144,26,0.55));
}

/* Linkuri footer — radiere aurie pe fundal negru */
.footer-col ul li a:hover,
.footer-bottom-links a:hover {
  background: linear-gradient(90deg, #c9901a, #f5d06e, #ffb347, #f5c842, #c9901a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: link-radiate 1.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(201,144,26,0.6));
}

/* Linkuri din modal legal */
.legal-content a:hover,
.legal-section a:hover {
  background: linear-gradient(90deg, #5d3a1a, #c9901a, #f5c842, #c9901a, #5d3a1a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: link-radiate 2s linear infinite;
  filter: drop-shadow(0 0 3px rgba(201,144,26,0.4));
}

/* ── 2. TIPOGRAFIE & UTILITARE ────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 112px 0; }

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

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(93,58,26,0.08);
  border: 1px solid rgba(93,58,26,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Butoane */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: #111111;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,144,26,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.btn-primary:hover {
  background: #1e1e1e;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,144,26,0.25);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: var(--overlay-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--overlay-lg);
  color: var(--text-primary);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(201,144,26,0.3);
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,144,26,0.4);
}

.btn-sm  { padding: 9px 18px; font-size: 0.875rem; }
.btn-lg  { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius-md); }

/* ── 3. NAVBAR ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border), var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 2px 8px rgba(93,58,26,0.35);
}
.nav-logo .logo-icon svg { width: 18px; height: 18px; }

/* SVG icon sizing */
.fc-icon svg          { width: 28px; height: 28px; }
.feature-icon svg     { width: 20px; height: 20px; }
.contact-item-icon svg{ width: 20px; height: 20px; }
.search-icon svg      { width: 15px; height: 15px; }
.legal-icon svg       { width: 28px; height: 28px; }
.no-results-icon svg  { width: 40px; height: 40px; display: block; margin: 0 auto; }
.coming-soon-cover-icon svg { width: 64px; height: 64px; opacity: 0.35; }
.success-icon svg     { width: 52px; height: 52px; color: #22c55e; }
.download-btn svg     { width: 18px; height: 18px; }
.btn svg              { width: 17px; height: 17px; flex-shrink: 0; }
.payment-info .lock-icon svg { width: 16px; height: 16px; }

.nav-logo span:last-child {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-menu a {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  letter-spacing: -0.01em;
}

.nav-menu a:hover {
  color: var(--text-primary);
  background: var(--overlay-sm);
}

.nav-cta {
  background: #111 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.06) !important;
}
.nav-cta:hover {
  background: #1e1e1e !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.45), 0 0 0 1px rgba(201,144,26,0.25) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 7px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 4. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Gradient mesh — signature Stripe/Linear */
.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(93,58,26,0.1) 0%, transparent 65%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 55%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(201,144,26,0.07) 0%, transparent 65%);
  animation: heroGlow 10s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}


@keyframes heroGlow {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(93,58,26,0.08);
  border: 1px solid rgba(93,58,26,0.2);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 32px;
  animation: fadeInDown 0.7s ease forwards;
  letter-spacing: -0.01em;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.08s both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
  animation: fadeInUp 0.7s ease 0.16s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.24s both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  animation: fadeInUp 0.7s ease 0.32s both;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-item { display: flex; flex-direction: column; }

.stat-number {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 5px;
  letter-spacing: -0.01em;
}

/* Hero visual */
.hero-visual {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 38%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-end;
  padding-right: 32px;
  z-index: 1;
}

.floating-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  max-width: 270px;
  width: 100%;
  animation: floatCard 6s ease-in-out infinite;
}
.floating-card:nth-child(2) { animation-delay: -2s; animation-duration: 7s; }
.floating-card:nth-child(3) { animation-delay: -4s; animation-duration: 5s; }

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

.fc-icon { font-size: 1.6rem; flex-shrink: 0; }

.fc-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.fc-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── 5. SECȚIUNEA CĂRȚI ───────────────────────────────────── */
.books-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.books-controls {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.search-wrapper .search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-style: normal;
  pointer-events: none;
  font-size: 0.95rem;
}

#search-input {
  width: 100%;
  padding: 11px 14px 11px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
#search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,58,26,0.12);
}
#search-input::placeholder { color: var(--text-muted); }

.filter-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  letter-spacing: -0.01em;
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(93,58,26,0.3);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.no-results-icon { font-size: 2.5rem; display: block; margin-bottom: 14px; }

/* ── 6. CARD CARTE ────────────────────────────────────────── */
.book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(93,58,26,0.25);
}

.book-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--bg-secondary);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.book-card:hover .book-cover img { transform: scale(1.05); }

.book-overlay {
  position: absolute;
  inset: 0;
  background: rgba(93,58,26,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.book-cover:hover .book-overlay { opacity: 1; }
.book-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 22px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  letter-spacing: -0.01em;
}

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

.book-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(93,58,26,0.08);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.book-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.35;
  cursor: pointer;
  transition: color var(--transition);
}
.book-title:hover { color: var(--primary); }

.book-short-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.book-rating { display: flex; align-items: center; gap: 3px; }
.star { font-size: 0.85rem; }
.star.full  { color: #f59e0b; }
.star.half  { color: #f59e0b; opacity: 0.6; }
.star.empty { color: var(--text-muted); }
.rating-count { color: var(--text-muted); font-size: 0.78rem; }
.book-pages   { color: var(--text-muted); font-size: 0.78rem; }

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.book-price {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ── Coming Soon Card ─────────────────────────────────────── */
.book-card--coming-soon {
  border: 2px dashed var(--border-strong);
  background: var(--bg-secondary);
  cursor: default;
}
.book-card--coming-soon:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}
.coming-soon-cover {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5e0c3 0%, #f9d99e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.coming-soon-cover-icon {
  font-size: 4rem;
  opacity: 0.4;
  filter: grayscale(0.3);
}
.coming-soon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(93,58,26,0.35);
  animation: pulse-badge 2.4s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 2px 8px rgba(93,58,26,0.35); }
  50%       { box-shadow: 0 2px 16px rgba(93,58,26,0.6); }
}
.coming-soon-title { color: var(--text-secondary); }
.coming-soon-stars .star { color: #e8c99e; }
.coming-soon-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ── 7. MODALS ────────────────────────────────────────────── */
.modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-wrapper.active { opacity: 1; visibility: visible; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44,26,14,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal {
  position: relative;
  z-index: 1;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition), opacity var(--transition);
}
.modal-wrapper.active .modal { transform: translateY(0) scale(1); }

.modal::-webkit-scrollbar { width: 5px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  background: var(--overlay-md);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
  z-index: 2;
}
.modal-close:hover {
  background: var(--overlay-xl);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Modal detalii carte */
#book-modal .modal { max-width: 760px; width: 100%; }

.modal-book-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
}

.modal-cover-col img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-content-col { padding: 36px 36px 36px 32px; }

.modal-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(93,58,26,0.08);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

#modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  line-height: 1.2;
}

#modal-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

#modal-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.modal-details {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.detail-item {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.detail-item:last-child { border-right: none; }
.detail-item .detail-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}
.detail-item .detail-value {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

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

/* Modal cumpărare */
.checkout-step { display: none; }
.checkout-step.active { display: block; }

.checkout-header { padding: 28px 28px 0; }
.checkout-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.checkout-header p { color: var(--text-secondary); font-size: 0.875rem; }

.checkout-book-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 28px;
  padding: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.checkout-book-preview img {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.checkout-book-info { flex: 1; }
.checkout-book-info strong { display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.checkout-book-info span  { font-size: 0.8rem; color: var(--text-muted); }

.checkout-price {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  white-space: nowrap;
}

.checkout-form { padding: 0 28px 28px; }

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.form-group input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,58,26,0.12);
}
.form-group input::placeholder { color: var(--text-muted); }

.form-error {
  display: none;
  color: var(--accent);
  font-size: 0.82rem;
  padding: 10px 13px;
  background: rgba(201,144,26,0.08);
  border: 1px solid rgba(201,144,26,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

/* Stripe Card Element */
#card-element {
  padding: 11px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
#card-element.StripeElement--focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,58,26,0.12);
}
#card-element.StripeElement--invalid { border-color: #e74c3c; }

.card-errors {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 18px;
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  background: rgba(93,58,26,0.06);
  border: 1px dashed rgba(93,58,26,0.25);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.payment-info .lock-icon { font-size: 0.9rem; color: var(--primary); flex-shrink: 0; }

/* Processing */
.step-processing-content { text-align: center; padding: 56px 28px; }

.spinner {
  width: 48px; height: 48px;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.step-processing-content h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.step-processing-content p  { color: var(--text-secondary); font-size: 0.875rem; }

/* Success */
.step-success-content { text-align: center; padding: 44px 28px; }
.success-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 16px;
  animation: successBounce 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes successBounce {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.step-success-content h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.step-success-content p  { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 28px; line-height: 1.65; }

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #111;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  transition: var(--transition);
  margin-bottom: 14px;
}
.download-btn:hover {
  background: #1e1e1e;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,144,26,0.3);
}
/* ── 8. SECȚIUNEA DESPRE ──────────────────────────────────── */
.about-section { position: relative; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper { position: relative; }

.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image-main img { width: 100%; height: 400px; object-fit: cover; }

.about-badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 8px 24px rgba(93,58,26,0.4);
  text-align: center;
}
.about-badge-float .badge-number {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}
.about-badge-float .badge-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  margin-top: 2px;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.about-text p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; font-size: 0.95rem; }

.about-features { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }

.feature-item { display: flex; align-items: flex-start; gap: 14px; }

.feature-icon {
  width: 38px; height: 38px;
  background: rgba(93,58,26,0.1);
  border: 1px solid rgba(93,58,26,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.feature-text strong { display: block; font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; }
.feature-text span { font-size: 0.84rem; color: var(--text-muted); }

/* ── 9. SECȚIUNEA CONTACT ─────────────────────────────────── */
.contact-section {
  background: var(--contact-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.contact-info p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 32px; font-size: 0.95rem; }

.contact-items { display: flex; flex-direction: column; gap: 18px; }

.contact-item { display: flex; align-items: center; gap: 14px; }

.contact-item-icon {
  width: 42px; height: 42px;
  background: rgba(93,58,26,0.1);
  border: 1px solid rgba(93,58,26,0.2);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-text strong { display: block; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1px; }
.contact-item-text span  { font-size: 0.82rem; color: var(--text-muted); }

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.contact-form-wrapper h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

#contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 110px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(93,58,26,0.12);
}
.form-group textarea::placeholder { color: var(--text-muted); }

#contact-success {
  display: none;
  padding: 14px;
  background: rgba(52,211,153,0.08);
  border: 1px solid rgba(52,211,153,0.3);
  border-radius: var(--radius-sm);
  color: #16a34a;
  font-size: 0.875rem;
  margin-top: 14px;
  text-align: center;
}
/* ── 10. FOOTER ───────────────────────────────────────────── */
footer {
  background: #111;
  border-top: none;
  padding: 56px 0 28px;
  position: relative;
}

/* Linie decorativă aurie în vârful footer-ului */
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,144,26,0.2) 15%,
    rgba(201,144,26,0.7) 40%,
    #c9901a 50%,
    rgba(201,144,26,0.7) 60%,
    rgba(201,144,26,0.2) 85%,
    transparent 100%
  );
}

footer .nav-logo { color: #fff; }
footer .logo-icon {
  background: rgba(255,255,255,0.08) !important;
  box-shadow: 0 0 0 1px rgba(201,144,26,0.25) !important;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand p {
  color: rgba(255,255,255,0.38);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(201,144,26,0.7);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.42);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  transition: color var(--transition);
}

/* ── Server Status Bar ────────────────────────────────────── */
@keyframes ping-expand {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}
@keyframes srv-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

.server-status-bar {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 10px 0;
  overflow: hidden;
}
.server-status-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.srv-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.srv-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34,197,94,0.8);
  animation: srv-pulse 2.2s ease-in-out infinite;
}
.srv-item:nth-child(2) .srv-dot { animation-delay: 0.7s; }
.srv-item:nth-child(3) .srv-dot { animation-delay: 1.4s; }

.srv-label {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.srv-ping {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ping-core {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(34,197,94,0.85);
  box-shadow: 0 0 5px rgba(34,197,94,0.6);
  position: relative;
  z-index: 1;
}
.ping-ring {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(34,197,94,0.6);
  animation: ping-expand 2s ease-out infinite;
}
.ping-ring--2 {
  animation-delay: 1s;
}

.srv-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.srv-version {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ── 11. MODAL LEGAL ──────────────────────────────────────── */
#legal-modal .modal { max-width: 720px; width: 100%; }

.legal-content { padding: 44px 48px 48px; }
@media (max-width: 600px) { .legal-content { padding: 28px 24px 36px; } }

.legal-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-icon { font-size: 1.8rem; flex-shrink: 0; margin-top: 2px; }
.legal-header h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.legal-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.legal-section { margin-bottom: 26px; }

.legal-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.legal-section h3::before {
  content: "";
  display: inline-block;
  width: 3px; height: 13px;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.legal-section p,
.legal-section li { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.75; }

.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 5px; padding-left: 4px; }
.legal-section ul li::before { content: "→ "; color: var(--primary); font-weight: 700; }

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-section a:hover { color: var(--primary-dark); }

.legal-highlight {
  background: rgba(93,58,26,0.06);
  border: 1px solid rgba(93,58,26,0.18);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 10px;
}
.legal-highlight strong { color: var(--text-primary); }

/* ── 12. ANIMAȚII SCROLL ──────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.fade-left  { opacity: 0; transform: translateX(-28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-left.visible  { opacity: 1; transform: translateX(0); }
.fade-right { opacity: 0; transform: translateX(28px);  transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-right.visible { opacity: 1; transform: translateX(0); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 13. RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrapper { max-width: 500px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }
  .hero-stats { gap: 20px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  .hamburger { display: flex; }
  .nav-menu {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--nav-mobile-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 14px 20px 22px;
    gap: 2px;
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-menu a { padding: 11px 14px; width: 100%; }

  .modal-book-layout { grid-template-columns: 1fr; }
  .modal-cover-col img { height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-content-col { padding: 22px; }

  .books-controls { flex-direction: column; align-items: stretch; }
  .search-wrapper { max-width: 100%; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  #contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .modal-details { flex-direction: column; gap: 0; }
  .modal-details .detail-item { border-right: none; border-bottom: 1px solid var(--border); }
  .modal-details .detail-item:last-child { border-bottom: none; }
  .books-grid { grid-template-columns: 1fr; }
}
