/* ================================================
   SehirliVereq.com — Ana CSS
   ================================================ */

:root {
  --primary: #6c3fc5;
  --primary-dark: #5330a0;
  --primary-light: #8b5cf6;
  --secondary: #f59e0b;
  --accent: #ec4899;
  --success: #10b981;
  --danger: #ef4444;
  --info: #3b82f6;
  --bg: #fefefe;
  --bg-soft: #f8f4ff;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(108,63,197,.1);
  --shadow-lg: 0 8px 40px rgba(108,63,197,.18);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1,h2,h3,h4 { font-weight: 800; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Promo Banner ---- */
.promo-banner {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---- Header ---- */
.main-header {
  background: white;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}

.logo img { height: 36px; }
.logo-text { display: flex; align-items: center; gap: 6px; }
.logo-icon { font-size: 1.5rem; }

.main-nav { display: flex; gap: 4px; flex: 1; }

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text-muted);
  transition: all .2s;
  font-size: 0.95rem;
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--bg-soft);
}

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.user-menu { position: relative; }
.user-avatar-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  cursor: pointer;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-placeholder { font-weight: 800; color: var(--primary); font-size: 1rem; }

.user-dropdown {
  display: none;
  position: absolute; right: 0; top: 48px;
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  overflow: hidden;
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a {
  display: block; padding: 12px 16px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
}
.user-dropdown a:hover { background: var(--bg-soft); color: var(--primary); }
.logout-link { border-top: 1px solid var(--border); color: var(--danger) !important; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
  margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 22px;
  border-radius: 50px; font-weight: 800;
  font-family: var(--font); cursor: pointer;
  transition: all .2s; border: none;
  font-size: 0.95rem; white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 15px rgba(108,63,197,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108,63,197,.45);
  color: white;
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }
.btn-white:hover { background: var(--bg-soft); }
.btn-outline-white { background: transparent; border: 2px solid white; color: white; }
.btn-outline-white:hover { background: white; color: var(--primary); }

.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---- Flash Message ---- */
.flash-message {
  padding: 14px 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.flash-message .container { display: flex; justify-content: space-between; align-items: center; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error   { background: #fee2e2; color: #991b1b; }
.flash-message button { background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #f3eeff 0%, #fef3ff 50%, #fff7ed 100%);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block;
  background: rgba(108,63,197,.12);
  color: var(--primary);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.875rem; font-weight: 800;
  margin-bottom: 16px;
}
.hero-text h1 { margin-bottom: 16px; }
.hero-text p { font-size: 1.1rem; margin-bottom: 32px; max-width: 500px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.stat strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--primary); }
.stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 700; }

.hero-image { display: flex; justify-content: center; }
.hero-img-wrapper {
  width: 360px; height: 360px;
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-circle {
  width: 280px; height: 280px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.hero-emoji { font-size: 5rem; }

.floating-book {
  position: absolute;
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}
.book-1 { top: 30px; right: 40px; animation-delay: 0s; }
.book-2 { bottom: 60px; left: 20px; animation-delay: 1s; }
.book-3 { top: 120px; left: 10px; animation-delay: 2s; }

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

.hero-wave {
  margin-top: 60px;
  line-height: 0;
}
.hero-wave svg { width: 100%; }

/* ---- Sections ---- */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-badge {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  padding: 5px 14px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 800;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 10px; }

.section-footer { text-align: center; margin-top: 40px; }

/* ---- Books Grid ---- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.books-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.book-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all .3s;
  display: flex; flex-direction: column;
}
.book-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.book-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.book-placeholder span {
  font-size: 4rem; font-weight: 900; color: white; opacity: 0.8;
}

.book-gender-badge {
  position: absolute; top: 12px; right: 12px;
  background: white; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

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

.book-age-tag, .book-cat-tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem; font-weight: 800;
}
.book-meta { display: flex; gap: 8px; flex-wrap: wrap; }

.book-card-body h3 {
  font-size: 1rem; color: var(--text); margin: 4px 0;
}
.book-card-body p {
  font-size: 0.85rem; flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.results-count {
  text-align: center; margin-top: 24px;
  color: var(--text-muted); font-size: 0.9rem;
}

/* ---- How It Works ---- */
.how-section { background: var(--bg-soft); }
.steps-grid {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; justify-content: center;
}
.step-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  flex: 1; min-width: 160px; max-width: 200px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 32px;
  background: var(--primary);
  color: white; font-weight: 900; font-size: 0.85rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.step-card h3 { font-size: 1rem; margin-bottom: 6px; }
.step-card p { font-size: 0.82rem; }
.step-arrow { font-size: 1.5rem; color: var(--primary); font-weight: 900; }

/* ---- Age Grid ---- */
.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.age-card {
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  text-decoration: none;
  transition: all .3s;
  color: white;
}
.age-card:hover { transform: translateY(-4px); color: white; }
.age-card-1 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.age-card-2 { background: linear-gradient(135deg, #fb7185, #e11d48); }
.age-card-3 { background: linear-gradient(135deg, #34d399, #059669); }
.age-emoji { font-size: 3rem; margin-bottom: 12px; }
.age-card h3 { font-size: 1.4rem; color: white; margin-bottom: 8px; }
.age-card p { color: rgba(255,255,255,.85); font-size: 0.9rem; margin-bottom: 16px; }
.age-btn {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
  color: white;
  padding: 7px 20px; border-radius: 50px;
  font-weight: 800; font-size: 0.85rem;
}

/* ---- Gender Section ---- */
.gender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gender-card {
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex; gap: 40px; align-items: center;
}
.gender-girl { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.gender-boy  { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.gender-content { flex: 1; }
.gender-emoji { font-size: 4rem; margin-bottom: 12px; display: block; }
.gender-card h2 { color: var(--text); margin-bottom: 12px; }
.gender-card p  { margin-bottom: 20px; }
.gender-books { display: flex; flex-direction: column; gap: 8px; }
.gender-book-mini {
  background: rgba(255,255,255,.7);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700;
  color: var(--text);
}

/* ---- Custom Section ---- */
.custom-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-list { list-style: none; margin: 20px 0 32px; }
.feature-list li { padding: 8px 0; font-weight: 700; color: var(--text); font-size: 0.95rem; }

.custom-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.custom-card-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 16px 24px;
  font-weight: 800; font-size: 1rem;
}
.custom-card-body { padding: 24px; }
.story-preview p { color: var(--text); font-size: 0.95rem; line-height: 1.8; }
.custom-tags { display: flex; gap: 8px; margin-top: 16px; }
.tag {
  background: var(--bg-soft);
  color: var(--primary);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
}

/* ---- Testimonials ---- */
.testimonials-section { background: var(--bg-soft); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.testimonial-stars { font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card > p { color: var(--text); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; gap: 12px; align-items: center; }
.author-avatar {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; font-weight: 900; font-size: 1.1rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
  padding: 80px 0;
}
.cta-inner { text-align: center; }
.cta-inner h2 { color: white; font-size: 2.2rem; margin-bottom: 14px; }
.cta-inner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Filter Bar (Books Page) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--bg-soft), #fef3ff);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { margin-bottom: 8px; }
.page-hero-sm { padding: 40px 0; }

.filters-section { background: white; border-bottom: 1px solid var(--border); padding: 16px 0; }
.filters-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-label { font-weight: 800; font-size: 0.85rem; color: var(--text-muted); }
.filter-btn {
  padding: 6px 14px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 80px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p  { margin-bottom: 24px; }

/* ---- Breadcrumb ---- */
.breadcrumb-bar {
  background: var(--bg-soft);
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--primary); font-weight: 700; }
.breadcrumb-bar span { font-weight: 700; color: var(--text); }

/* ---- Book Detail ---- */
.book-detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 48px; }

.book-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-soft);
}
.book-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.book-placeholder-lg {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; gap: 12px;
  padding: 24px;
}
.placeholder-icon { font-size: 5rem; }
.book-placeholder-lg span { font-size: 1.1rem; font-weight: 800; text-align: center; }

.book-detail-meta {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.detail-meta-item {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 0.9rem;
}
.meta-label { color: var(--text-muted); font-weight: 700; min-width: 100px; }
.detail-meta-item > span:last-child { font-weight: 800; color: var(--text); }

.book-features { margin-top: 20px; }
.book-features h4 { margin-bottom: 10px; }
.book-features ul { list-style: none; }
.book-features li { padding: 5px 0; font-size: 0.9rem; font-weight: 700; color: var(--text); }

.book-detail-right h1 { margin-bottom: 10px; }
.book-desc { font-size: 1rem; margin-bottom: 28px; }

/* ---- Order Form ---- */
.login-prompt {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.login-prompt-icon { font-size: 3rem; margin-bottom: 12px; }
.login-prompt h3 { margin-bottom: 8px; }
.login-prompt p { margin-bottom: 20px; }
.login-prompt a.btn { margin-bottom: 12px; }

.order-form { display: flex; flex-direction: column; gap: 20px; }
.form-section-title {
  font-weight: 800; font-size: 1rem; color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-soft);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-weight: 800; font-size: 0.9rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color .2s;
  width: 100%;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.gender-select { display: flex; gap: 12px; }
.gender-opt {
  flex: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center; cursor: pointer;
  font-weight: 800;
  transition: all .2s;
}
.gender-opt:hover, .gender-opt.selected {
  border-color: var(--primary);
  background: var(--bg-soft);
  color: var(--primary);
}
.gender-opt input { display: none; }

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center; cursor: pointer;
  position: relative; transition: all .2s;
}
.upload-area:hover { border-color: var(--primary); background: var(--bg-soft); }
.file-input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%;
}
.upload-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.upload-content p { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.upload-content small { color: var(--text-muted); }
.photo-preview {
  max-width: 200px; max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: cover; margin-top: 12px;
}

.form-info-box {
  display: flex; gap: 12px;
  background: #eff6ff;
  border-radius: var(--radius-sm);
  padding: 16px;
  border: 1px solid #bfdbfe;
}
.form-info-box p { color: #1e40af; font-size: 0.875rem; margin: 0; }

.error-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.error-item {
  background: #fee2e2; color: #991b1b;
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 700;
}

.password-input { position: relative; }
.password-input input { padding-right: 48px; }
.toggle-password {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1.1rem;
}

/* ---- My Books ---- */
.my-books-grid { display: flex; flex-direction: column; gap: 24px; }

.my-book-card {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 24px; background: white;
  border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  border-left: 4px solid var(--border);
}
.my-book-card.status-gozleyir { border-left-color: var(--secondary); }
.my-book-card.status-hazirdir { border-left-color: var(--success); }
.my-book-card.status-redd_edildi { border-left-color: var(--danger); }

.my-book-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3/4;
}
.my-book-img img { width: 100%; height: 100%; object-fit: cover; }

.my-book-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.my-book-header h3 { flex: 1; font-size: 1.1rem; }

.my-book-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-muted); font-weight: 700; margin-bottom: 12px; }
.order-code { font-family: monospace; color: var(--primary); }

.status-info {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 700;
  margin-bottom: 12px;
}
.info-warning { background: #fef3c7; color: #92400e; }
.info-info    { background: #dbeafe; color: #1e40af; }
.info-primary { background: #ede9fe; color: #5b21b6; }
.info-success { background: #d1fae5; color: #065f46; }
.info-danger  { background: #fee2e2; color: #991b1b; }

.story-content {
  margin-top: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.story-text {
  font-size: 0.95rem; line-height: 1.8;
  color: var(--text); margin-bottom: 16px;
}

/* ---- Auth Pages ---- */
.auth-page {
  min-height: calc(100vh - 200px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f3eeff, #fef3ff);
}
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 8px; }
.auth-logo span { font-size: 2.5rem; }
.auth-logo h1 { font-size: 1.5rem; color: var(--primary); }
.auth-card h2 { text-align: center; margin-bottom: 24px; font-size: 1.3rem; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.auth-footer a { font-weight: 800; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 700; font-size: 0.9rem;
}
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-success { background: #d1fae5; color: #065f46; }

/* ---- Support / FAQ ---- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-question {
  width: 100%; padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  text-align: left; color: var(--text);
}
.faq-icon { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.faq-answer { padding: 0 24px 20px; }
.faq-answer p { font-size: 0.95rem; }

.contact-section { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-info h2 { margin-bottom: 12px; }
.contact-info p { margin-bottom: 28px; }
.contact-items { display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon { font-size: 1.6rem; }
.contact-item strong { display: block; font-weight: 800; color: var(--text); }
.contact-item p { font-size: 0.9rem; margin: 0; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form-wrap { background: white; padding: 32px; border-radius: var(--radius); }

/* ---- Footer ---- */
.main-footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo {
  display: flex; align-items: center; gap: 8px;
  color: white; font-size: 1.2rem; font-weight: 900;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }

.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; transition: background .2s;
}
.social-link:hover { background: var(--primary); color: white; }
.social-link svg { width: 18px; height: 18px; }

.footer-links h4 { color: white; margin-bottom: 16px; font-size: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: 0.9rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding: 20px 0;
  display: flex; justify-content: space-between;
  font-size: 0.85rem;
}

/* ---- Badges ---- */
.badge {
  display: inline-block;
  padding: 3px 10px; border-radius: 50px;
  font-size: 0.75rem; font-weight: 800;
}
.badge-warning  { background: #fef3c7; color: #92400e; }
.badge-info     { background: #dbeafe; color: #1e40af; }
.badge-primary  { background: #ede9fe; color: #5b21b6; }
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-danger   { background: #fee2e2; color: #991b1b; }
.badge-secondary{ background: #f3f4f6; color: #6b7280; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .book-detail-grid { grid-template-columns: 1fr; }
  .book-detail-left { max-width: 400px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: white; z-index: 200;
    padding: 80px 24px 24px;
    gap: 8px;
  }
  .hamburger { display: flex; }
  .header-actions .btn-outline { display: none; }

  .gender-grid { grid-template-columns: 1fr; }
  .age-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .custom-inner { grid-template-columns: 1fr; }
  .gender-card { flex-direction: column; }
  .my-book-card { grid-template-columns: 80px 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .hero { padding: 40px 0 0; }
  .hero-btns { flex-direction: column; }
  .hero-stats { gap: 20px; }
  .book-detail-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
}
