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

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #0d0d0d;
  color: #e0e0e0;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background-color: #1a1a1a;
  padding: 15px 0;
  border-bottom: 2px solid #ff6b00;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  color: #ff6b00;
  text-decoration: none;
  padding-left: 38px;
  display: inline-flex;
  align-items: center;
  height: 32px;
  letter-spacing: -0.3px;
  transition: opacity 0.2s;
}

.logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: url('/logo.svg') no-repeat center/contain;
  transition: transform 0.3s ease;
}

.logo:hover {
  opacity: 0.9;
}

.logo:hover::before {
  transform: translateY(-50%) rotate(-5deg) scale(1.05);
}

@media (max-width: 600px) {
  .logo {
    font-size: 18px;
    padding-left: 32px;
    height: 26px;
  }
  .logo::before {
    width: 24px;
    height: 24px;
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 500;
  font-size: 15px;
}

nav a:hover { color: #ff6b00; }

.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  background: #0d0d0d;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0.05) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.3), transparent);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 52px;
  margin-bottom: 22px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -1px;
  animation: heroFadeUp 0.7s ease-out;
}

.hero-subtitle {
  font-size: 19px;
  margin-bottom: 35px;
  color: #b0b0b0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
  animation: heroFadeUp 0.7s ease-out 0.1s backwards;
}

.hero-subtitle strong { color: #ff6b00; font-weight: 700; }

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 25px;
  animation: heroFadeUp 0.7s ease-out 0.2s backwards;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
  min-width: 220px;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.35);
}

.hero-buttons .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.2);
}

.hero-note {
  color: #666;
  font-size: 13px;
  margin-top: 6px;
}

.hero-badges {
  display: flex;
  gap: 12px 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 14px;
  color: #a0a0a0;
  animation: heroFadeUp 0.7s ease-out 0.3s backwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 20px;
  color: #d0d0d0;
  font-size: 13px;
  font-weight: 500;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: #ff6b00;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary {
  background-color: #ff6b00;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #e55f00;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}
.btn-primary:disabled { background-color: #555; cursor: not-allowed; box-shadow: none; }

.btn-secondary {
  background-color: transparent;
  color: #ff6b00;
  border: 2px solid #ff6b00;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: #ff6b00;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
}

.btn-cancel {
  background-color: transparent;
  color: #ff3b3b;
  border: 1px solid #ff3b3b;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  margin-top: 10px;
}

.btn-cancel:hover { background-color: #ff3b3b; color: #ffffff; }

.big-btn { padding: 16px 32px; font-size: 16px; min-width: 200px; }
.btn-small { padding: 8px 18px; font-size: 14px; }

.why-section { padding: 70px 0; background-color: #0d0d0d; }
.how-section { padding: 70px 0; background-color: #1a1a1a; }
.fresh-books-section { padding: 70px 0; background-color: #0d0d0d; }
.pricing-section { padding: 70px 0; background-color: #1a1a1a; }

.why-section h2,
.how-section h2,
.fresh-books-section h2,
.pricing-section h2 {
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
  color: #ffffff;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: #a0a0a0;
  margin-bottom: 40px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.why-card {
  background-color: #1a1a1a;
  padding: 28px 24px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: #ff6b00;
  box-shadow: 0 12px 32px rgba(255, 107, 0, 0.12);
}

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.15), rgba(255, 107, 0, 0.05));
  border: 1px solid rgba(255, 107, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.why-icon svg {
  width: 26px;
  height: 26px;
  stroke: #ff6b00;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card:hover .why-icon {
  transform: scale(1.08) rotate(-4deg);
  background: linear-gradient(135deg, rgba(255, 107, 0, 0.25), rgba(255, 107, 0, 0.1));
}

.why-card h3 { color: #ffffff; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-card p { color: #a0a0a0; font-size: 14px; line-height: 1.6; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.how-step {
  background-color: #0d0d0d;
  padding: 28px 22px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
}

.how-number {
  width: 40px;
  height: 40px;
  background-color: #ff6b00;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
}

.how-step h3 { color: #ffffff; font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.how-step p { color: #a0a0a0; font-size: 14px; line-height: 1.6; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.pricing-card {
  background-color: #0d0d0d;
  padding: 25px 20px;
  border-radius: 14px;
  border: 1px solid #2a2a2a;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.pricing-card:hover { transform: translateY(-3px); border-color: #ff6b00; }
.pricing-card.featured { border-color: #ff6b00; background-color: #1a1a1a; }

.pricing-card h3 { color: #ffffff; font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.pricing-count { color: #a0a0a0; font-size: 14px; margin-bottom: 12px; }
.pricing-price { color: #ff6b00; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.pricing-note { color: #666; font-size: 12px; font-style: italic; }

.pricing-sub {
  text-align: center;
  color: #a0a0a0;
  font-size: 14px;
  margin-top: 20px;
}

.fresh-books-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 15px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #ff6b00 #1a1a1a;
}

.fresh-books-scroll::-webkit-scrollbar { height: 6px; }
.fresh-books-scroll::-webkit-scrollbar-track { background: #1a1a1a; border-radius: 3px; }
.fresh-books-scroll::-webkit-scrollbar-thumb { background: #ff6b00; border-radius: 3px; }

.fresh-book-card {
  flex: 0 0 160px;
  width: 160px;
  background-color: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.fresh-book-card:hover { transform: translateY(-3px); border-color: #ff6b00; }

.fresh-book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fresh-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.fresh-book-cover-placeholder { color: #444; font-size: 12px; font-weight: 500; }
.fresh-book-info { padding: 10px; }
.fresh-book-title { font-size: 13px; font-weight: 700; color: #ffffff; line-height: 1.3; margin-bottom: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fresh-book-author { font-size: 11px; color: #ff6b00; font-weight: 500; }
.fresh-book-genre { font-size: 10px; color: #666; margin-top: 2px; }

.feedback { padding: 70px 0; background-color: #0d0d0d; }
.feedback h2 { font-size: 32px; margin-bottom: 12px; text-align: center; color: #ffffff; font-weight: 700; }
.feedback > .container > p { text-align: center; margin-bottom: 30px; color: #a0a0a0; font-size: 16px; }

#feedbackForm { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
#feedbackForm input, #feedbackForm select, #feedbackForm textarea { background-color: #0d0d0d; border: 1px solid #333; color: #e0e0e0; padding: 14px; border-radius: 8px; font-size: 16px; font-family: inherit; }
#feedbackForm textarea { min-height: 120px; resize: vertical; }
#feedbackForm input:focus, #feedbackForm select:focus, #feedbackForm textarea:focus { outline: none; border-color: #ff6b00; }
.contact { text-align: center; margin-top: 20px; color: #a0a0a0; }

footer { background-color: #0d0d0d; padding: 50px 0 25px; border-top: 1px solid #222; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: #ff6b00; font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-col h4 { color: #ffffff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer-col p { color: #666; font-size: 13px; }
.footer-col a { display: block; color: #a0a0a0; text-decoration: none; margin-bottom: 8px; font-size: 13px; transition: color 0.2s; }
.footer-col a:hover { color: #ff6b00; }
.footer-copy { text-align: center; color: #444; font-size: 12px; padding-top: 20px; border-top: 1px solid #1a1a1a; }

.auth-section { padding: 60px 0; min-height: calc(100vh - 200px); display: flex; align-items: center; }
.auth-section .container { max-width: 500px; }
.auth-section h1 { font-size: 32px; text-align: center; margin-bottom: 10px; color: #ffffff; font-weight: 700; }
.auth-subtitle { text-align: center; color: #a0a0a0; margin-bottom: 30px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; background-color: #1a1a1a; padding: 30px; border-radius: 12px; border: 1px solid #2a2a2a; }
.auth-form input { background-color: #0d0d0d; border: 1px solid #333; color: #e0e0e0; padding: 14px; border-radius: 8px; font-size: 16px; font-family: inherit; }
.auth-form input:focus { outline: none; border-color: #ff6b00; }
.auth-form .btn-primary { margin-top: 10px; }
.auth-link { text-align: center; margin-top: 20px; color: #a0a0a0; }
.auth-link a { color: #ff6b00; text-decoration: none; font-weight: 600; }
.auth-link a:hover { text-decoration: underline; }
.remember-label { display: flex; align-items: center; gap: 8px; color: #a0a0a0; font-size: 14px; cursor: pointer; user-select: none; }
.remember-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; accent-color: #ff6b00; }

.dashboard { padding: 30px 0; }
.dashboard h1 { font-size: 30px; margin-bottom: 20px; color: #ffffff; font-weight: 700; }
.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 20px; }
.dashboard-menu { display: flex; flex-direction: column; gap: 5px; background-color: #1a1a1a; padding: 12px; border-radius: 12px; border: 1px solid #2a2a2a; height: fit-content; position: sticky; top: 80px; }
.menu-item { background: none; border: none; color: #a0a0a0; text-align: left; padding: 11px 14px; font-size: 14px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.menu-item:hover { background-color: #2a2a2a; color: #e0e0e0; }
.menu-item.active { background-color: #ff6b00; color: #ffffff; font-weight: 600; }
.menu-divider { height: 1px; background-color: #2a2a2a; margin: 6px 4px; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.dashboard-card { background-color: #1a1a1a; padding: 20px; border-radius: 12px; border: 1px solid #2a2a2a; margin-bottom: 15px; }
.dashboard-card h2 { font-size: 20px; margin-bottom: 12px; color: #ffffff; font-weight: 700; }
.dashboard-card h3 { font-size: 16px; margin-bottom: 8px; color: #ff6b00; font-weight: 600; }
.dashboard-card p { color: #a0a0a0; margin-bottom: 6px; font-size: 14px; }
.balance-amount { font-size: 32px; font-weight: 700; color: #ff6b00 !important; margin: 10px 0 !important; }
.stat-number { font-size: 28px; font-weight: 700; color: #ff6b00 !important; margin: 8px 0 !important; }
.empty-state-text { color: #666; font-style: italic; text-align: center; padding: 25px 12px; line-height: 1.7; font-size: 14px; }
.dashboard-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.dashboard-actions { display: flex; gap: 12px; margin: 18px 0; flex-wrap: wrap; }
.sub-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.items-list { margin-top: 12px; }
.empty-text { color: #666; font-style: italic; text-align: center; padding: 15px 0; font-size: 14px; }
.user-greeting { color: #ff6b00; margin-right: 12px; font-weight: 600; font-size: 14px; }

.dashboard-card label { display: block; color: #a0a0a0; font-size: 13px; font-weight: 500; margin: 12px 0 6px; }
.dashboard-card input[type="number"] { background-color: #0d0d0d; border: 1px solid #333; color: #e0e0e0; padding: 12px; border-radius: 8px; font-size: 15px; font-family: inherit; width: 100%; max-width: 300px; }
.dashboard-card input[type="number"]:focus { outline: none; border-color: #ff6b00; }

.settings-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.settings-form label { color: #a0a0a0; font-size: 13px; font-weight: 500; }
.settings-form input, .settings-form textarea { background-color: #0d0d0d; border: 1px solid #333; color: #e0e0e0; padding: 11px; border-radius: 8px; font-size: 14px; font-family: inherit; }
.settings-form textarea { min-height: 70px; resize: vertical; }
.settings-form input:focus, .settings-form textarea:focus { outline: none; border-color: #ff6b00; }
.settings-form .btn-primary { margin-top: 8px; align-self: flex-start; }
.book-item { background-color: #0d0d0d; padding: 15px; border-radius: 10px; border: 1px solid #2a2a2a; margin-bottom: 12px; }
.book-item-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.book-item-header h3 { font-size: 16px; color: #ffffff; font-weight: 700; margin: 0; flex: 1; }
.book-status { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; white-space: nowrap; }
.book-status.done { background-color: #1a3d1a; color: #4ade80; }
.book-status.generating { background-color: #3d2a00; color: #ff6b00; }
.book-status.error { background-color: #3d1a1a; color: #ff3b3b; }
.book-item-genre { color: #a0a0a0; font-size: 12px; margin-bottom: 10px; }
.progress-bar { width: 100%; height: 8px; background-color: #2a2a2a; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ff6b00, #ffa500); border-radius: 4px; transition: width 0.5s ease; }
.progress-text { color: #a0a0a0; font-size: 12px; margin-bottom: 8px; }
.book-item-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.download-dropdown { position: relative; display: inline-block; }
.download-menu { position: absolute; top: 100%; left: 0; background-color: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 5px; margin-top: 5px; z-index: 50; min-width: 100px; }
.download-item { display: block; padding: 8px 12px; color: #e0e0e0; text-decoration: none; border-radius: 6px; font-size: 13px; transition: background 0.2s; }
.download-item:hover { background-color: #ff6b00; color: #ffffff; }

.library-section { padding: 30px 0; }
.library-section h1 { font-size: 30px; margin-bottom: 8px; color: #ffffff; font-weight: 700; }
.library-subtitle { color: #a0a0a0; margin-bottom: 20px; font-size: 15px; }
.library-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-btn { background-color: #1a1a1a; border: 1px solid #2a2a2a; color: #a0a0a0; padding: 9px 18px; font-size: 13px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.filter-btn:hover { border-color: #ff6b00; color: #e0e0e0; }
.filter-btn.active { background-color: #ff6b00; border-color: #ff6b00; color: #ffffff; }

.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 15px; }
.book-card { background-color: #1a1a1a; border-radius: 10px; border: 1px solid #2a2a2a; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.book-card:hover { transform: translateY(-3px); border-color: #ff6b00; }
.book-cover { width: 100%; aspect-ratio: 2 / 3; background-color: #0d0d0d; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover-placeholder { color: #444; font-size: 13px; font-weight: 500; }
.book-info { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.book-title { font-size: 14px; font-weight: 700; color: #ffffff; line-height: 1.3; margin-bottom: 2px; }
.book-author { font-size: 12px; color: #ff6b00; font-weight: 500; }
.book-genre { font-size: 11px; color: #666; margin-bottom: 4px; }
.book-stats { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: #a0a0a0; margin-top: 4px; }
.empty-library { grid-column: 1 / -1; text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; }

.create-book-section { padding: 30px 0; }
.create-book-section h1 { font-size: 28px; color: #ffffff; font-weight: 700; margin-bottom: 8px; }
.create-subtitle { color: #a0a0a0; margin-bottom: 20px; font-size: 15px; }
.create-form { background-color: #1a1a1a; padding: 22px; border-radius: 12px; border: 1px solid #2a2a2a; display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.create-form label { color: #a0a0a0; font-size: 13px; font-weight: 500; margin-top: 4px; }
.create-form textarea, .create-form select, .create-form input[type="text"], .create-form input[type="file"] { background-color: #0d0d0d; border: 1px solid #333; color: #e0e0e0; padding: 12px; border-radius: 8px; font-size: 14px; font-family: inherit; }
.create-form textarea { min-height: 110px; resize: vertical; }
.create-form textarea:focus, .create-form select:focus, .create-form input:focus { outline: none; border-color: #ff6b00; }
.create-form .big-btn { margin-top: 12px; width: 100%; }

.price-info {
  background-color: #0d0d0d;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  margin-top: 10px;
}

.price-info p { color: #e0e0e0; font-size: 16px; margin-bottom: 5px; }
.price-info strong { color: #ff6b00; font-size: 20px; }
.price-note { color: #a0a0a0; font-size: 13px; }

.generation-status { background-color: #1a1a1a; padding: 25px; border-radius: 12px; border: 1px solid #2a2a2a; max-width: 700px; text-align: center; margin-top: 20px; }
.generation-status h2 { color: #ff6b00; font-size: 22px; margin-bottom: 15px; }
.generation-status p { color: #e0e0e0; font-size: 15px; margin-bottom: 8px; }
.status-note { color: #a0a0a0 !important; font-size: 13px !important; margin-top: 12px; }

.progress-bar-large {
  width: 100%;
  height: 16px;
  background-color: #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  margin: 15px 0;
}

.progress-fill-large {
  height: 100%;
  background: linear-gradient(90deg, #ff6b00, #ffa500);
  border-radius: 8px;
  transition: width 0.5s ease;
}

.back-link { display: inline-block; color: #ff6b00; text-decoration: none; font-weight: 500; margin-bottom: 15px; font-size: 14px; }
.back-link:hover { text-decoration: underline; }

.reader-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.reader-container { background-color: #1a1a1a; border-radius: 12px; border: 1px solid #2a2a2a; width: 100%; max-width: 900px; height: 90vh; display: flex; flex-direction: column; overflow: hidden; transition: background 0.3s; }
.reader-container.light { background-color: #f5f5f5; color: #111; }
.reader-container.light .reader-header, .reader-container.light .reader-page-nav { background-color: #e5e5e5; border-color: #ccc; }
.reader-container.light .reader-header h2, .reader-container.light .reader-page { color: #111; }
.reader-container.sepia { background-color: #f4ecd8; color: #5b4636; }
.reader-container.sepia .reader-header, .reader-container.sepia .reader-page-nav { background-color: #e8dcc0; border-color: #d4c8a8; }
.reader-container.sepia .reader-header h2, .reader-container.sepia .reader-page { color: #5b4636; }

.reader-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid #2a2a2a; background-color: #0d0d0d; gap: 10px; }
.reader-header h2 { font-size: 15px; color: #ffffff; font-weight: 700; margin: 0; flex: 1; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.reader-btn { background-color: #2a2a2a; color: #e0e0e0; border: 1px solid #3a3a3a; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; font-family: inherit; font-size: 13px; transition: all 0.2s; text-decoration: none; display: inline-block; }
.reader-btn:hover { background-color: #ff6b00; border-color: #ff6b00; color: #ffffff; }
.reader-menu-btn { font-size: 14px; padding: 7px 12px; }
.reader-progress-bar { height: 3px; background-color: #2a2a2a; width: 100%; }
.reader-progress-fill { height: 100%; background-color: #ff6b00; width: 0%; transition: width 0.3s; }
.reader-body { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.reader-pages { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reader-pages::-webkit-scrollbar { display: none; }
.reader-page { flex: 0 0 100%; width: 100%; height: 100%; overflow-y: auto; scroll-snap-align: start; padding: 30px; color: #d0d0d0; font-size: 16px; line-height: 1.8; word-wrap: break-word; white-space: normal; }
.reader-page-nav { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 10px 20px; background-color: #0d0d0d; border-top: 1px solid #2a2a2a; }
.reader-page-nav .reader-btn { padding: 8px 20px; font-size: 20px; font-weight: 700; }
#readerPageInfo { color: #a0a0a0; font-size: 14px; text-align: center; font-weight: 600; }
.reader-side-panel { position: absolute; top: 0; right: 0; width: 320px; height: 100%; background-color: #1a1a1a; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; z-index: 10000; }
.side-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid #2a2a2a; }
.side-panel-header h3 { color: #ffffff; font-size: 17px; font-weight: 700; }
.side-panel-body { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.side-panel-body label { color: #a0a0a0; font-size: 12px; font-weight: 500; margin-top: 8px; }
.settings-row { display: flex; gap: 10px; align-items: center; }
.settings-row span { color: #ff6b00; font-weight: 600; min-width: 40px; text-align: center; }
.toc-item { background-color: #0d0d0d; color: #e0e0e0; border: 1px solid #2a2a2a; padding: 11px 14px; border-radius: 8px; cursor: pointer; text-align: left; font-family: inherit; font-size: 13px; transition: all 0.2s; }
.toc-item:hover { background-color: #ff6b00; border-color: #ff6b00; color: #ffffff; }
.reader-side-panel .menu-item { background: none; border: none; color: #e0e0e0; text-align: left; padding: 14px 16px; font-size: 15px; font-weight: 500; border-radius: 8px; cursor: pointer; transition: all 0.2s; font-family: inherit; text-decoration: none; display: block; width: 100%; }
.reader-side-panel .menu-item:hover { background-color: #ff6b00; color: #ffffff; }

@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr !important; }
  .dashboard-menu { flex-direction: row !important; overflow-x: auto !important; position: static !important; padding: 10px !important; gap: 6px !important; width: 100% !important; top: auto !important; }
  .dashboard-menu .menu-item { white-space: nowrap !important; padding: 9px 13px !important; font-size: 13px !important; flex-shrink: 0 !important; }
  .menu-divider { width: 1px !important; height: auto !important; margin: 5px 3px !important; }
  .dashboard-content, .dashboard-card { width: 100% !important; }
  .dashboard-actions { flex-direction: column !important; }
  .dashboard-actions .btn-primary, .dashboard-actions .btn-secondary { width: 100% !important; }
  .reader-container { max-height: 95vh; height: 95vh; }
  .reader-page { padding: 20px 15px; }
  .reader-header h2 { font-size: 14px; }
  .reader-btn { padding: 6px 10px; font-size: 12px; }
  .reader-side-panel { width: 100%; }
  .hero h1 { font-size: 38px; letter-spacing: -0.6px; }
  .hero-subtitle { font-size: 17px; }
  .hero-badges { gap: 10px 16px; margin-top: 24px; }
  .hero-badge { padding: 6px 12px; font-size: 12px; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-buttons .big-btn { width: 100%; max-width: 300px; }
  .hero-badges { flex-direction: column; align-items: center; }
  nav { gap: 10px; }
  nav a { font-size: 13px; }
  .why-section h2, .how-section h2, .fresh-books-section h2, .pricing-section h2, .feedback h2 { font-size: 24px; }
  .dashboard h1 { font-size: 22px; }
  .dashboard-row { grid-template-columns: 1fr; }
  .big-btn { width: 100%; }
  .sub-buttons { flex-direction: column; }
  .sub-buttons button { width: 100%; }
  .books-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .book-title { font-size: 13px; }
  .book-author { font-size: 11px; }
  .book-item-header { flex-direction: column; align-items: flex-start; }
  .fresh-book-card { flex: 0 0 140px; width: 140px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pricing-card { padding: 18px 12px; }
  .pricing-price { font-size: 22px; }

  .reader-container { border-radius: 0; max-height: 100vh; height: 100vh; }
  .reader-modal { padding: 0; }
  .reader-page { padding: 20px 18px; font-size: 16px; }
  .reader-header { padding: 10px 12px; }
  .reader-btn { padding: 6px 10px; font-size: 12px; }
  .reader-side-panel { width: 100%; border-radius: 0; }
  .side-panel-header h3 { font-size: 16px; }
  .reader-side-panel .menu-item { padding: 14px 16px; font-size: 15px; }
}
/* ========== БЛОГ ========== */

.blog-section {
  padding: 40px 0;
}

.blog-section h1 {
  font-size: 32px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-subtitle {
  color: #a0a0a0;
  margin-bottom: 30px;
  font-size: 15px;
}

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

.blog-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: #ff6b00;
}

.blog-card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.blog-card-cover-placeholder {
  color: #444;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.blog-card-title {
  font-size: 17px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.blog-card-description {
  font-size: 13px;
  color: #a0a0a0;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #2a2a2a;
  flex-wrap: wrap;
}

.blog-card-date,
.blog-card-views {
  color: #666;
}

.blog-post-section {
  padding: 40px 0;
}

.blog-post {
  max-width: 780px;
  margin: 0 auto;
}

.blog-post-header {
  margin-bottom: 30px;
}

.blog-post-title {
  font-size: 36px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.blog-post-description {
  font-size: 17px;
  color: #a0a0a0;
  line-height: 1.5;
  margin-bottom: 15px;
}

.blog-post-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
  padding-bottom: 15px;
  border-bottom: 1px solid #2a2a2a;
}

.blog-post-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #1a1a1a;
}

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

.blog-post-content {
  color: #d0d0d0;
  font-size: 16px;
  line-height: 1.75;
}

.blog-post-content h2 {
  font-size: 24px;
  color: #ffffff;
  font-weight: 700;
  margin: 35px 0 15px;
  line-height: 1.3;
}

.blog-post-content h3 {
  font-size: 19px;
  color: #ffffff;
  font-weight: 700;
  margin: 28px 0 12px;
  line-height: 1.35;
}

.blog-post-content p {
  margin-bottom: 18px;
}

.blog-post-content ul {
  margin: 15px 0 20px 25px;
  padding: 0;
}

.blog-post-content li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.blog-post-content strong {
  color: #ffffff;
  font-weight: 700;
}

.blog-post-content em {
  font-style: italic;
  color: #e0e0e0;
}

.blog-post-cta {
  margin-top: 50px;
  padding: 30px;
  background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid #ff6b00;
  border-radius: 14px;
  text-align: center;
}

.blog-post-cta h3 {
  font-size: 22px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 10px;
}

.blog-post-cta p {
  color: #a0a0a0;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-post-title {
    font-size: 26px;
  }

  .blog-post-content h2 {
    font-size: 20px;
    margin: 25px 0 12px;
  }

  .blog-post-content h3 {
    font-size: 17px;
    margin: 20px 0 10px;
  }

  .blog-post-content {
    font-size: 15px;
    line-height: 1.7;
  }

  .blog-post-meta {
    gap: 12px;
    font-size: 12px;
  }

  .blog-post-cta {
    padding: 20px;
  }

  .blog-post-cta h3 {
    font-size: 18px;
  }
}

/* ========== ОБЩИЕ УЛУЧШЕНИЯ ========== */

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

.center-btn {
  text-align: center;
  margin-top: 30px;
}