/* ==========================================================================
   THE MAN READ THE BOOK - STYLESHEET
   Thiết kế cao cấp, chuẩn xác theo giao diện mẫu themanreadthebook.com
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --primary-green: #15803d;
  --primary-green-hover: #166534;
  --primary-green-light: #ecfdf5;
  --header-bg: #eaf5ea;
  --body-bg: #f8faf9;
  --card-bg: #ffffff;
  --text-main: #1f2937;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  --badge-discount: #15803d;
  --star-yellow: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-badge {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
  font-family: 'Plus Jakarta Sans', sans-serif;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-logo-badge {
  transform: scale(1.05) rotate(-3deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 850;
  color: #111827;
  letter-spacing: -0.03em;
}

.brand-dot {
  color: var(--primary-green);
  font-weight: 900;
}

.brand-sub {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.category-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #e5e7eb;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.category-dropdown-btn:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.header-search {
  flex: 1;
  max-width: 280px;
  min-width: 130px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper i.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.95rem;
}

.search-input-wrapper input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  background-color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-wrapper input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-service {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-service:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.btn-config {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-config:hover {
  background-color: #e5e7eb;
}

.btn-mobile-menu {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================================
   MAIN LAYOUT (Catalog page)
   ========================================================================== */
.main-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.catalog-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ==========================================================================
   SIDEBAR (Categories & Filter)
   ========================================================================== */
.sidebar {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
}

.sidebar-search {
  position: relative;
  margin-bottom: 20px;
}

.sidebar-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  outline: none;
  background: #fafafa;
  transition: var(--transition);
}

.sidebar-search input:focus {
  background: #ffffff;
  border-color: var(--primary-green);
}

.sidebar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 0.9rem;
}

.sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
  padding-left: 6px;
}

.category-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  cursor: pointer;
  transition: var(--transition);
}

.category-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-item i {
  font-size: 1.05rem;
  color: #6b7280;
  width: 20px;
  text-align: center;
}

.category-count {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

.category-item:hover {
  background-color: #f9fafb;
  color: #111827;
}

.category-item.active {
  background-color: var(--primary-green-light);
  color: var(--primary-green);
  font-weight: 700;
}

.category-item.active i {
  color: var(--primary-green);
}

.category-item.active .category-count {
  color: var(--primary-green);
}

/* ==========================================================================
   CONTENT AREA & BOOK GRID
   ========================================================================== */
.content-area {
  min-width: 0;
}

.breadcrumb {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a:hover {
  color: var(--primary-green);
}

.catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.catalog-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.catalog-heading span {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  margin-left: 6px;
}

.sort-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-tab {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  transition: var(--transition);
}

.sort-tab:hover {
  border-color: #d1d5db;
}

.sort-tab.active {
  background-color: var(--primary-green);
  border-color: var(--primary-green);
  color: #ffffff;
}

/* BOOK GRID */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.book-card {
  background: transparent;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book-card:hover {
  transform: translateY(-4px);
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 2.85;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.book-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.book-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.book-card-author {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.book-rating i {
  color: var(--star-yellow);
  font-size: 0.9rem;
}

.book-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-green);
}

/* ==========================================================================
   BOOK DETAIL VIEW (Image 2)
   ========================================================================== */
.book-detail-wrapper {
  display: none;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-top: 10px;
}

.detail-top-bar {
  margin-bottom: 24px;
}

.btn-back-catalog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-green);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-green-light);
  border: none;
  transition: var(--transition);
}

.btn-back-catalog:hover {
  background: #dcfce7;
}

.detail-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.detail-cover-box {
  width: 100%;
  aspect-ratio: 2 / 2.9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge {
  background-color: #f3f4f6;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.detail-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
}

.detail-author {
  font-size: 1rem;
  color: #4b5563;
  font-weight: 600;
}

.detail-price-box {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 6px 0;
}

.detail-price-current {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-green);
}

.detail-price-old {
  font-size: 1.15rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.btn-download-ebook {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-green);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
  transition: var(--transition);
  max-width: 220px;
}

.btn-download-ebook:hover {
  background-color: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.35);
}

.detail-description {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: #374151;
  line-height: 1.7;
}

.detail-description h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}

.detail-description h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin: 18px 0 8px;
}

.detail-description ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

.detail-description li {
  margin-bottom: 6px;
}

/* ==========================================================================
   CHECKOUT MODAL (Images 3 & 4: "Mời cafe - Nhận eBook")
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.checkout-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 680px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: slideUp 0.25s ease;
}

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

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: #111827;
}

.modal-header {
  padding: 24px 30px 16px;
  text-align: center;
}

.modal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: #6b7280;
}

/* STEPPER */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 30px 20px;
  border-bottom: 1px solid #f3f4f6;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9ca3af;
}

.step-badge {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background-color: #e5e7eb;
  color: #6b7280;
}

.step-item.active {
  color: #111827;
}

.step-item.active .step-badge {
  background-color: #111827;
  color: #ffffff;
}

.step-item.completed {
  color: var(--primary-green);
}

.step-item.completed .step-badge {
  background-color: var(--primary-green);
  color: #ffffff;
}

.step-divider {
  width: 40px;
  height: 1px;
  background-color: #e5e7eb;
}

/* MODAL STEP 1: FORM */
.step-body {
  padding: 24px 30px;
}

.step1-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.modal-book-preview {
  background: #f9fafb;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-thumb {
  width: 100%;
  aspect-ratio: 2 / 2.7;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.preview-author {
  font-size: 0.78rem;
  color: #6b7280;
}

.preview-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.preview-price {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-green);
}

.preview-discount-badge {
  background-color: #15803d;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.form-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.15);
}

.voucher-row {
  display: flex;
  gap: 8px;
}

.voucher-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  text-transform: uppercase;
  outline: none;
}

.voucher-row button {
  background: transparent;
  border: none;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0 10px;
  cursor: pointer;
}

.voucher-row button:hover {
  text-decoration: underline;
}

.voucher-message {
  font-size: 0.8rem;
  margin-top: 2px;
}
.voucher-message.success { color: var(--primary-green); }
.voucher-message.error { color: #dc2626; }

.checkout-benefits {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-benefits li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #374151;
  font-weight: 500;
}

.checkout-benefits i {
  color: var(--primary-green);
  font-size: 1rem;
}

/* MODAL STEP 2: VIETQR CHUYỂN KHOẢN (Image 4) */
.step2-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.qr-viewfinder-container {
  position: relative;
  padding: 18px;
  display: inline-block;
}

/* Green corner viewfinder brackets matching Image 4 */
.qr-viewfinder-container::before,
.qr-viewfinder-container::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #15803d;
  border-style: solid;
  pointer-events: none;
}

.qr-viewfinder-container::before {
  top: 0;
  left: 0;
  border-width: 3.5px 0 0 3.5px;
  border-top-left-radius: 8px;
}

.qr-viewfinder-container::after {
  top: 0;
  right: 0;
  border-width: 3.5px 3.5px 0 0;
  border-top-right-radius: 8px;
}

.viewfinder-bottom {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.viewfinder-bottom::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-color: #15803d;
  border-style: solid;
  border-width: 0 0 3.5px 3.5px;
  border-bottom-left-radius: 8px;
}

.viewfinder-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-color: #15803d;
  border-style: solid;
  border-width: 0 3.5px 3.5px 0;
  border-bottom-right-radius: 8px;
}

.qr-image-wrapper {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.qr-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-timer-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
  margin-top: 4px;
}

.qr-timer-text span {
  font-weight: 700;
  color: #111827;
}

.support-help-text {
  font-size: 0.85rem;
  color: #6b7280;
}

.support-help-text a {
  color: var(--primary-green);
  text-decoration: underline;
  font-weight: 600;
}

/* BANK DETAIL CARD */
.bank-details-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  width: 100%;
  max-width: 440px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.bank-row-label {
  color: #6b7280;
}

.bank-row-value {
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--primary-green);
  cursor: pointer;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
}

.btn-copy:hover {
  text-decoration: underline;
}

/* STEP 3: CONFIRM & DOWNLOAD */
.step3-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 10px 0;
}

.success-icon-box {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  color: #15803d;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

.success-desc {
  font-size: 0.92rem;
  color: #4b5563;
  max-width: 440px;
}

.download-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 480px;
  margin-top: 6px;
}

.btn-download-file {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: #111827;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-download-file:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: var(--primary-green-light);
}

.btn-download-gdrive {
  grid-column: span 2;
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
}

.btn-download-gdrive:hover {
  background: var(--primary-green-hover);
  color: #ffffff;
}

/* MODAL FOOTER */
.modal-footer {
  padding: 16px 30px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #f3f4f6;
}

.modal-footer.step2-footer {
  justify-content: space-between;
}

.btn-modal-cancel {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-cancel:hover {
  background: #f9fafb;
}

.btn-modal-back {
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}

.btn-modal-back:hover {
  color: #111827;
}

.btn-modal-primary {
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  background: var(--primary-green);
  color: #ffffff;
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-primary:hover {
  background: var(--primary-green-hover);
}

/* ==========================================================================
   CONFIG MODAL (Cấu hình ngân hàng & thông tin shop)
   ========================================================================== */
.config-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 540px;
  width: 100%;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
}

.config-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 6px;
}

.config-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 20px;
}

.config-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.config-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.config-form select,
.config-form input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
}

.config-form select:focus,
.config-form input:focus {
  border-color: var(--primary-green);
}

/* TOAST NOTIFICATION */
.toast-notice {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #111827;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 40px 20px 30px;
  margin-top: 60px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: #111827;
}

.footer-col p {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.6;
}

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

.footer-links a {
  font-size: 0.88rem;
  color: #4b5563;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  max-width: 1240px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 0.82rem;
  color: #9ca3af;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .book-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .catalog-container {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }
}

@media (max-width: 860px) {
  .catalog-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .sidebar.mobile-open {
    display: block;
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    z-index: 50;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  }
  .btn-mobile-menu {
    display: block;
  }
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .detail-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-cover-box {
    max-width: 260px;
    margin: 0 auto;
  }
  .step1-content {
    grid-template-columns: 1fr;
  }
  .modal-book-preview {
    flex-direction: row;
    align-items: center;
  }
  .preview-thumb {
    width: 60px;
  }
}

/* SEPAY LIVE RADAR STATUS BADGE */
.sepay-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background-color: #16a34a;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.config-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #15803d;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #e5e7eb;
}

.config-help {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.4;
  margin-top: 2px;
}

.btn-test-email {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn-test-email:hover {
  background: #e5e7eb;
}

/* ==========================================================================
   ADMIN SYSTEM STYLES (Giao diện Quản trị viên & Đăng sách)
   ========================================================================== */
.btn-admin-login {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #111827;
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-admin-login:hover {
  background-color: #374151;
}

.admin-badge-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #f3f4f6;
  padding: 3px 6px;
  border-radius: var(--radius-full);
  border: 1px solid #e5e7eb;
}

.btn-admin-add {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--primary-green);
  color: #ffffff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-add:hover {
  background-color: var(--primary-green-hover);
}

.btn-admin-manage {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #374151;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin-manage:hover {
  background-color: #e5e7eb;
}

.btn-admin-logout {
  background: transparent;
  color: #ef4444;
  border: none;
  font-size: 0.95rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
}

.btn-admin-logout:hover {
  background-color: #fee2e2;
}

/* ADMIN PANEL MODAL */
.admin-panel-modal {
  background: #ffffff;
  border-radius: 20px;
  max-width: 960px;
  width: 95%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

.admin-panel-header {
  padding: 20px 28px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafafa;
}

.admin-panel-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-bottom: 1px solid #f3f4f6;
  background: #ffffff;
}

.admin-tab-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.admin-tab-btn.active {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
}

.admin-panel-body {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
}

/* ADMIN TABLE */
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th {
  background: #f9fafb;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: #fcfcfc;
}

.btn-action-edit {
  background-color: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 4px;
}

.btn-action-edit:hover {
  background-color: #dbeafe;
}

.btn-action-delete {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-action-delete:hover {
  background-color: #fee2e2;
}

/* FORM ĐĂNG SÁCH */
.book-form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.admin-cover-box {
  border: 2px dashed #d1d5db;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.admin-cover-preview-img {
  width: 130px;
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  display: none;
}

@media (max-width: 600px) {
  .header-container {
    padding: 10px 14px;
  }
  .header-search {
    display: none;
  }
  .header-right .btn-service span {
    display: none;
  }
  .download-options-grid {
    grid-template-columns: 1fr;
  }
  .btn-download-gdrive {
    grid-column: span 1;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ==========================================================================
   HOMEPAGE ENHANCEMENT STYLES
   ========================================================================== */

/* Header Nav Links */
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  flex-shrink: 0;
}

.header-nav-links .nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-nav-links .nav-link:hover {
  color: var(--primary-green);
  background: rgba(21, 128, 61, 0.08);
}

.header-nav-links .nav-link.active {
  color: var(--primary-green);
  font-weight: 700;
}

/* 1. Hero Section */
.hero-section {
  background: linear-gradient(135deg, #eef7ee 0%, #ffffff 50%, #f1f9f2 100%);
  border-bottom: 1px solid rgba(21, 128, 61, 0.1);
  padding: 56px 20px 48px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 36px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
  border: 1px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(22, 101, 52, 0.08);
}

.hero-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.22;
  color: #111827;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--primary-green);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-green);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.35);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-hero-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.45);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #111827;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  border: 1.5px solid #d1d5db;
  transition: var(--transition);
  cursor: pointer;
}

.btn-hero-outline:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: #f9fafb;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
}

.stat-label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}

/* Hero Right Visual Showcase */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-book-showcase {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(21, 128, 61, 0.12);
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 530px;
  transition: var(--transition);
  cursor: pointer;
}

.hero-book-showcase:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px -10px rgba(21, 128, 61, 0.22);
}

.hero-book-img {
  width: 155px;
  height: 225px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  flex-shrink: 0;
  background: #0f172a;
  transition: transform 0.25s ease;
}

.hero-book-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.hero-spotlight-tag {
  align-self: flex-start;
  background: #fef2f2;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.hero-book-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.35;
  margin: 6px 0 4px;
}

.hero-book-author {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
}

.hero-book-formats {
  display: flex;
  gap: 4px;
  margin: 8px 0;
  flex-wrap: wrap;
}

.hero-format-pill {
  font-size: 0.68rem;
  background: #f3f4f6;
  color: #374151;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.hero-book-desc {
  font-size: 0.81rem;
  color: #4b5563;
  line-height: 1.42;
  margin: 6px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.85em;
}

.hero-book-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  gap: 8px;
}

.hero-price-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-green);
}

.btn-hero-mini-buy {
  background: #111827;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-hero-mini-buy:hover {
  background: var(--primary-green);
}

/* 2. Key Features Strip */
.features-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 20px;
}

.features-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #fafbfa;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.feature-box:hover {
  background: #ffffff;
  border-color: #bbf7d0;
  box-shadow: 0 6px 16px rgba(21, 128, 61, 0.08);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #dcfce7;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 3px;
}

.feature-text p {
  font-size: 0.78rem;
  color: #6b7280;
  line-height: 1.45;
}

/* 3. Quick Category Pills Bar */
.quick-pills-bar {
  background: var(--body-bg);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
}

.quick-pills-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap; /* Tự động xuống dòng để hiển thị trọn vẹn 100% tất cả danh mục */
  gap: 8px 10px;
}

.category-quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.category-quick-pill:hover,
.category-quick-pill.active {
  background: var(--primary-green);
  color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.25);
}

/* 4. Why Choose Us Section */
.why-us-section {
  background: #ffffff;
  padding: 64px 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-tag-pill {
  display: inline-block;
  background: #ecfdf5;
  color: var(--primary-green);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-main-heading {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-sub-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
}

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

.why-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
  position: relative;
}

.why-card:hover {
  background: #ffffff;
  border-color: #86efac;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -6px rgba(21, 128, 61, 0.12);
}

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #eaf5ea;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.6;
}

/* 5. How It Works Section */
.how-it-works-section {
  background: #f8faf9;
  padding: 60px 20px;
  border-bottom: 1px solid var(--border-color);
}

.steps-container {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #86efac;
}

.step-number-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-green);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.86rem;
  color: #6b7280;
  line-height: 1.55;
}

/* 6. Testimonials Section */
.testimonials-section {
  background: #ffffff;
  padding: 64px 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.testimonial-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: #bbf7d0;
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--star-yellow);
  font-size: 1rem;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-name {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
}

.author-role {
  font-size: 0.78rem;
  color: #6b7280;
}

/* 7. FAQ Section */
.faq-section {
  background: #f8faf9;
  padding: 64px 20px;
}

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

.faq-item {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: #86efac;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: #111827;
}

.faq-question:hover {
  color: var(--primary-green);
}

.faq-icon {
  font-size: 1.1rem;
  color: #6b7280;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-green);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Responsive Styles for New Sections */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-subtitle {
    margin: 0 auto 28px;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 10px;
  }
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .header-nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .features-container {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-floating-badge {
    display: none;
  }
  .hero-book-showcase {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-book-price-row {
    flex-direction: column;
    gap: 10px;
  }
}

