/* Book Details Page Specific Styles */
/* Hero styles now unified in style.css master subpage-hero */

  .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e0caa0;
    background: rgba(201, 169, 110, 0.15);
    border: 1px solid rgba(201, 169, 110, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    margin-bottom: 10px;
    letter-spacing: 0.3px;
  }

  .breadcrumbs {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .breadcrumbs a {
    color: var(--secondary, #c9a96e);
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
  }

  .separator {
    margin: 0 4px;
    font-size: 0.75rem;
    opacity: 0.6;
  }

  .current-crumb {
    color: white;
    font-weight: 600;
    max-width: 480px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Book Details Section (Matches site container width) */
  .book-details-section {
    padding: 45px 0 70px;
    background-color: var(--light, #f8fafc);
    width: 100%;
  }

  /* 3-Column Balanced Grid: Left Cover (230px), Middle Content (decreased/balanced), Right Buy Terminal (310px) */
  .book-content-grid {
    display: grid;
    grid-template-columns: 230px minmax(280px, 1fr) 310px;
    gap: 24px;
    align-items: start;
  }

  /* ============================================================
     COLUMN 1: BOOK COVER CONTAINER & QUICK ACTIONS
     ============================================================ */
  .book-cover-container {
    position: sticky;
    top: 90px;
    z-index: 5;
  }

  .book-cover-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 36, 71, 0.07);
    border: 1px solid rgba(226, 232, 240, 0.9);
    text-align: center;
    transition: all 0.3s ease;
  }

  .book-cover-card:hover {
    box-shadow: 0 14px 36px rgba(11, 36, 71, 0.11);
  }

  /* 3D Realistic Book Treatment */
  .book-cover-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #e2e8f0;
    box-shadow: -5px 0 12px rgba(0,0,0,0.08), 8px 14px 28px rgba(11, 36, 71, 0.22);
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Spine lighting sheen */
  .book-cover-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.18) 0%, rgba(255,255,255,0.25) 35%, rgba(0,0,0,0.05) 100%);
    z-index: 2;
    pointer-events: none;
  }

  .book-cover {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
  }

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

  /* Hover Zoom Overlay */
  .cover-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 36, 71, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(2px);
  }

  .book-cover-wrapper:hover .cover-hover-overlay {
    opacity: 1;
  }

  .zoom-pill {
    background: #ffffff;
    color: var(--primary, #0b2447);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(6px);
    transition: transform 0.3s ease;
  }

  .book-cover-wrapper:hover .zoom-pill {
    transform: translateY(0);
  }

  /* Cover Verification Badges */
  .book-cover-badges {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
  }

  .cover-badge-pill {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }

  .cover-badge-pill.verified-pill {
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
  }

  .cover-badge-pill.isbn-pill {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
  }

  /* Quick Actions (Cite & Share: stacked up and down) */
  .cover-actions-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    width: 100%;
  }

  .cover-action-btn {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .cover-action-btn:hover {
    border-color: var(--secondary, #c9a96e);
    color: var(--primary, #0b2447);
    background: #fffdf9;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  }

  .cover-action-btn i {
    color: var(--secondary, #c9a96e);
    font-size: 0.84rem;
  }

  /* ============================================================
     COLUMN 2: MIDDLE COLUMN (TITLE, BYLINE, ABOUT BOOK, SPECS)
     ============================================================ */
  .book-about-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .book-header-group {
    margin-bottom: 24px;
  }

  .book-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    align-items: center;
  }

  .academic-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.2px;
  }

  .category-badge {
    background: rgba(11, 36, 71, 0.08);
    color: var(--primary, #0b2447);
    border: 1px solid rgba(11, 36, 71, 0.15);
  }

  .isbn-badge {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
  }

  .peer-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
  }

  .press-badge {
    background: rgba(201, 169, 110, 0.14);
    color: #785005;
    border: 1px solid rgba(201, 169, 110, 0.35);
  }

  .book-about-column .book-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.75rem;
    color: var(--primary, #0b2447);
    margin: 0 0 10px 0;
    line-height: 1.25;
    font-weight: 700;
  }

  /* Author/Editor Byline below Title */
  .book-authors-byline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.92rem;
    color: #475569;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
  }

  .byline-prefix {
    font-weight: 700;
    color: var(--primary, #0b2447);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }

  .byline-prefix i {
    color: var(--secondary, #c9a96e);
  }

  .byline-names {
    color: #1e293b;
    font-weight: 500;
  }

  .byline-author {
    color: var(--primary, #0b2447);
    font-weight: 600;
  }

  .byline-sep {
    color: #94a3b8;
    margin: 0 2px;
  }

  .byline-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .byline-jump-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: #855b0a;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
  }

  .byline-jump-link:hover {
    color: var(--primary, #0b2447);
    text-decoration: underline;
  }

  /* ============================================================
     COLUMN 2: UNIFIED EDITORIAL CANVAS (COMPACT & BALANCED)
     ============================================================ */
  .book-editorial-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 4px solid var(--secondary, #c9a96e);
    box-shadow: 0 8px 24px rgba(11, 36, 71, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Editorial Header (Badges, Title, Byline) */
  .editorial-header {
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Editorial Navigation Tabs Bar (Option C) */
  .editorial-tabs-bar {
    display: flex;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 16px;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .editorial-tabs-bar::-webkit-scrollbar {
    display: none;
  }

  .editorial-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
  }

  .editorial-tab-btn:hover {
    color: var(--primary, #0b2447);
    background: rgba(241, 245, 249, 0.9);
  }

  .editorial-tab-btn.active {
    color: var(--primary, #0b2447);
    font-weight: 700;
    border-bottom-color: var(--secondary, #c9a96e);
    background: #ffffff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.02);
  }

  .editorial-tab-btn i {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.2s ease;
  }

  .editorial-tab-btn.active i {
    color: var(--secondary, #c9a96e);
  }

  .tab-count-badge {
    font-size: 0.7rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 7px;
    border-radius: 12px;
    line-height: 1.2;
    transition: all 0.2s ease;
  }

  .editorial-tab-btn.active .tab-count-badge {
    background: rgba(201, 169, 110, 0.2);
    color: var(--primary, #0b2447);
  }

  /* Editorial Tab Content & Panes */
  .editorial-tab-content {
    background: #ffffff;
    min-height: 240px;
  }

  .editorial-tab-pane {
    display: none;
  }

  .editorial-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  }

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

  /* Editorial About the Book Section (Compact, refined typography) */
  .editorial-about-section {
    padding: 18px 22px 22px;
    background: #ffffff;
  }

  .editorial-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
  }

  .editorial-heading {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.3rem;
    color: var(--primary, #0b2447);
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
  }

  .editorial-heading i {
    color: var(--secondary, #c9a96e);
    font-size: 1.1rem;
  }

  .editorial-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 3px 9px;
    border-radius: 4px;
  }

  /* Body Typography: Clean, compact academic reading font size */
  .editorial-body {
    color: #334155;
    line-height: 1.65;
    font-size: 0.88rem;
    font-family: var(--font-sans);
  }

  .editorial-paragraph {
    margin-bottom: 12px;
    color: #334155;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .editorial-paragraph.lead-overview {
    color: #1e293b;
    font-size: 0.90rem;
    font-weight: 500;
    line-height: 1.65;
  }

  .editorial-paragraph.secondary-desc {
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .editorial-paragraph.with-top-divider {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
  }

  .editorial-paragraph:last-child {
    margin-bottom: 0;
  }

  /* Tab 2: Specifications Styling */
  .editorial-specs-section {
    padding: 18px 22px 22px;
    background: #ffffff;
  }

  .specs-table-wrapper {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(11, 36, 71, 0.02);
  }

  .specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    font-family: var(--font-sans);
  }

  .specs-table th {
    width: 36%;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .specs-table th i {
    color: var(--secondary, #c9a96e);
    margin-right: 6px;
    width: 14px;
    text-align: center;
  }

  .specs-table td {
    padding: 11px 14px;
    color: var(--primary, #0b2447);
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
  }

  .specs-table tr:last-child th,
  .specs-table tr:last-child td {
    border-bottom: none;
  }

  .specs-table tr:hover th {
    background: #f1f5f9;
  }

  .specs-table tr:hover td {
    background: #fafcff;
  }

  .spec-isbn-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .spec-isbn-code {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary, #0b2447);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    letter-spacing: 0.4px;
  }

  .btn-copy-isbn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
  }

  .btn-copy-isbn:hover {
    color: var(--primary, #0b2447);
    border-color: var(--secondary, #c9a96e);
    background: #fdf8f0;
  }

  .btn-copy-isbn.copied {
    color: #15803d;
    border-color: #86efac;
    background: #f0fdf4;
  }

  .spec-subtext {
    display: block;
    font-size: 0.74rem;
    font-weight: 400;
    color: #94a3b8;
    margin-top: 2px;
  }

  .spec-formats-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .spec-format-tag {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }

  .spec-format-tag.tag-hardbound {
    background: #fefce8;
    color: #854d0e;
    border-color: #fef08a;
  }

  .spec-allotment-banner {
    margin-top: 14px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 8px;
    padding: 11px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .allotment-banner-icon {
    font-size: 1.4rem;
    color: #ef4444;
    flex-shrink: 0;
  }

  .allotment-banner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
  }

  .allotment-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #991b1b;
  }

  .allotment-desc {
    font-size: 0.74rem;
    color: #b91c1c;
  }

  .btn-allotment-download,
  .btn-allotment-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-allotment-verified {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.25);
  }

  .btn-allotment-download {
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    transition: background 0.2s ease;
  }

  .btn-allotment-download:hover {
    background: #b91c1c;
    text-decoration: none;
    color: #ffffff;
  }

  /* Tab 3: Chapters & Papers Preview */
  .editorial-chapters-preview {
    padding: 18px 22px 22px;
    background: #ffffff;
  }

  .tab-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 12px;
  }

  .tab-chapter-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
  }

  .tab-chapter-item:hover {
    background: #ffffff;
    border-color: var(--secondary, #c9a96e);
    box-shadow: 0 4px 12px rgba(11, 36, 71, 0.04);
  }

  .tab-chapter-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary, #0b2447);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .tab-chapter-content {
    flex: 1;
    min-width: 0;
  }

  .tab-chapter-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary, #0b2447);
    margin: 0 0 3px 0;
    line-height: 1.35;
  }

  .tab-chapter-author {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0 0 4px 0;
  }

  .tab-chapter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.72rem;
    color: #94a3b8;
  }

  .tab-chapter-pdf-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: #fff5f5;
    color: #dc2626;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.2s;
  }

  .tab-chapter-pdf-btn:hover {
    background: #dc2626;
    color: #ffffff;
  }

  .tab-chapters-footer {
    margin-top: 14px;
    text-align: center;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
  }

  .btn-view-all-chapters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary, #0b2447);
    text-decoration: none;
    padding: 7px 14px;
    background: #f1f5f9;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
  }

  .btn-view-all-chapters:hover {
    background: var(--primary, #0b2447);
    color: #ffffff;
    border-color: var(--primary, #0b2447);
    text-decoration: none;
  }

  /* ============================================================
     COLUMN 3: STRICTLY ONLY BUY NOW TERMINAL (COMPACT & INTERACTIVE)
     ============================================================ */
  .book-buy-column {
    position: sticky;
    top: 90px;
    z-index: 5;
  }

  .book-buy-card {
    background: #ffffff;
    padding: 22px 18px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 36, 71, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-top: 4px solid var(--secondary, #c9a96e);
    text-align: center;
  }

  .buy-card-top-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 3px 11px;
    margin-bottom: 8px;
  }

  .buy-card-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.55rem;
    color: var(--primary, #0b2447);
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
  }

  .buy-card-title i {
    color: var(--secondary, #c9a96e);
    font-size: 1.15rem;
  }

  .buy-card-lead {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf2f7;
  }

  /* Format Switcher Pills: Fully responsive and covering the section */
  .edition-toggle-pills {
    display: flex;
    width: 100%;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-sizing: border-box;
  }

  .edition-pill-btn {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    border: 1.5px solid transparent;
    background: transparent;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.25s ease;
    box-sizing: border-box;
  }

  .edition-pill-btn:hover {
    color: var(--primary, #0b2447);
    background: rgba(255, 255, 255, 0.6);
  }

  .edition-pill-btn.active {
    background: #ffffff;
    color: var(--primary, #0b2447);
    border-color: rgba(201, 169, 110, 0.45);
    box-shadow: 0 3px 10px rgba(11, 36, 71, 0.08);
    font-weight: 800;
  }

  .edition-pill-btn.active i {
    color: var(--secondary, #c9a96e);
  }

  .pill-btn-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
  }

  .pill-format-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .edition-pill-btn.active .pill-format-name {
    color: var(--primary, #0b2447);
    font-weight: 800;
  }

  .pill-format-price {
    font-size: 0.86rem;
    font-weight: 800;
    color: #b45309;
  }

  #btnFormatHardcover.edition-pill-btn.active .pill-format-price {
    color: var(--primary, #0b2447);
  }

  /* Format Panes */
  .selected-format-display {
    margin-bottom: 14px;
  }

  .format-pane {
    display: none;
    animation: fadeInPane 0.25s ease;
  }

  .format-pane.active {
    display: block;
  }

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

  /* Hero Pricing Display */
  .format-pricing-hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 12px 14px;
    background: #fffdf9;
    border: 1.5px solid #ebdcb9;
    border-radius: 10px;
    margin-bottom: 8px;
  }

  #paneHardcover .format-pricing-hero {
    background: #f8fafc;
    border-color: #cbd5e1;
  }

  .price-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
  }

  .currency-symbol {
    font-size: 1.15rem;
    font-weight: 700;
    color: #b45309;
  }

  .price-val {
    font-size: 1.7rem;
    font-weight: 800;
    color: #b45309;
    line-height: 1;
  }

  #paneHardcover .currency-symbol,
  #paneHardcover .price-val {
    color: var(--primary, #0b2447);
  }

  .format-edition-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(201, 169, 110, 0.15);
    color: #785005;
  }

  .format-edition-tag.tag-hardbound {
    background: rgba(11, 36, 71, 0.08);
    color: var(--primary, #0b2447);
  }

  .format-meta-note {
    font-size: 0.76rem;
    color: #64748b;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
  }

  .format-meta-note .text-success {
    color: #10b981;
  }

  .format-meta-note .text-navy {
    color: var(--primary, #0b2447);
  }

  .format-cta-wrap {
    margin-top: 4px;
  }

  /* Primary Action Buttons */
  .btn-buy-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    text-align: center;
  }

  .btn-buy-primary.btn-gold {
    background-color: var(--secondary, #c9a96e);
    color: var(--primary, #0b2447);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
  }

  .btn-buy-primary.btn-gold:hover {
    background-color: #d4b87a;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 169, 110, 0.45);
    color: var(--primary, #0b2447);
    text-decoration: none;
  }

  .btn-buy-primary.btn-navy {
    background-color: var(--primary, #0b2447);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 36, 71, 0.25);
  }

  .btn-buy-primary.btn-navy:hover {
    background-color: #19376d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(11, 36, 71, 0.4);
    color: #ffffff;
    text-decoration: none;
  }

  .btn-buy-primary.btn-inquire {
    background-color: #f1f5f9;
    color: var(--primary, #0b2447);
    border: 1px solid #cbd5e1;
  }

  .btn-buy-primary.btn-inquire:hover {
    background-color: #e2e8f0;
    color: var(--primary, #0b2447);
    border-color: #94a3b8;
    transform: translateY(-1px);
    text-decoration: none;
  }

  /* Institutional & Bulk Inquiry Strip */
  .buy-bulk-strip {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    text-align: left;
  }

  .bulk-strip-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary, #c9a96e);
    font-size: 0.82rem;
    flex-shrink: 0;
  }

  .bulk-strip-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    overflow: hidden;
  }

  .bulk-strip-text strong {
    font-size: 0.74rem;
    color: var(--primary, #0b2447);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bulk-strip-text small {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .bulk-strip-btn {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary, #0b2447);
    text-decoration: underline;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
  }

  .bulk-strip-btn:hover {
    color: #855b0a;
    text-decoration: underline;
  }

  /* Trust Signals List */
  .buy-trust-list {
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
    border: 1px solid #edf2f7;
  }

  .trust-item {
    font-size: 0.76rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
  }

  .trust-item i {
    color: #10b981;
    font-size: 0.82rem;
  }

  /* Footer Navigation Links */
  .buy-card-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .buy-card-link {
    color: #64748b;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: color 0.2s ease;
    font-weight: 600;
  }

  .buy-card-link:hover {
    color: var(--primary, #0b2447);
    text-decoration: underline;
  }

  .buy-card-link.archives-link {
    color: var(--primary, #0b2447);
  }

  /* ============================================================
     MODALS: COVER LIGHTBOX & CITATION GENERATOR
     ============================================================ */
  .npa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 36, 71, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
    animation: npaFadeIn 0.25s ease;
  }

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

  .npa-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
  }

  .npa-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
    transform: scale(1.08);
  }

  /* Lightbox Cover */
  .npa-lightbox-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    text-align: center;
    background: #ffffff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  }

  .lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    display: block;
    margin: 0 auto;
  }

  .lightbox-caption {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .lightbox-caption strong {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.25rem;
    color: var(--primary, #0b2447);
  }

  .lightbox-caption span {
    font-size: 0.85rem;
    color: #64748b;
  }

  /* Citation Modal */
  .npa-modal-box {
    position: relative;
    max-width: 620px;
    width: 100%;
    max-height: min(92dvh, 92vh);
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .npa-modal-header {
    background: var(--primary, #0b2447);
    color: #ffffff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

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

  .modal-icon {
    font-size: 1.3rem;
    color: var(--secondary, #c9a96e);
  }

  .npa-modal-header h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.45rem;
    margin: 0;
    color: #ffffff;
  }

  .npa-modal-header .npa-modal-close {
    position: static;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    box-shadow: none;
  }

  .npa-modal-header .npa-modal-close:hover {
    background: rgba(255,255,255,0.3);
  }

  .npa-modal-body {
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }

  .modal-intro {
    font-size: 0.9rem;
    color: #475569;
    margin: 0 0 14px 0;
  }

  .cite-format-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }

  .cite-tab-btn {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .cite-tab-btn:hover {
    border-color: var(--secondary, #c9a96e);
    color: var(--secondary, #c9a96e);
  }

  .cite-tab-btn.active {
    background: var(--primary, #0b2447);
    border-color: var(--primary, #0b2447);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(11, 36, 71, 0.2);
  }

  .cite-content-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 18px;
  }

  .citation-text {
    margin: 0;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.88rem;
    color: #1e293b;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
  }

  .cite-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .btn-copy-cite {
    background: var(--secondary, #c9a96e);
    color: var(--primary, #0b2447);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
  }

  .btn-copy-cite:hover {
    background: #d4b87a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.35);
  }

  .copy-success-msg {
    color: #15803d;
    font-size: 0.88rem;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 6px;
  }

  /* Toast Notification */
  .npa-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary, #0b2447);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    z-index: 999999;
    border-left: 4px solid var(--secondary, #c9a96e);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .npa-toast.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .toast-icon {
    color: #22c55e;
    font-size: 1.15rem;
  }

  /* Section Header Eyebrows & Titles */
  .section-title-wrap {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--secondary, #c9a96e);
    margin-bottom: 6px;
  }

  .section-heading {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2.1rem;
    color: var(--primary, #0b2447);
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
  }

  .section-lead-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 8px 0 0;
    line-height: 1.5;
  }

  /* ============================================================
     BOOK SPECIFICATIONS & BIBLIOGRAPHIC METADATA SECTION (OPTION 3)
     ============================================================ */
  .book-specifications-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
  }

  .specifications-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-top: 26px;
  }

  .spec-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
  }

  .spec-card:hover {
    background: #ffffff;
    border-color: var(--secondary, #c9a96e);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 36, 71, 0.06);
  }

  .spec-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--primary, #0b2447);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.25s ease;
  }

  .spec-card:hover .spec-card-icon {
    background: var(--primary, #0b2447);
    color: var(--secondary, #c9a96e);
    border-color: var(--primary, #0b2447);
  }

  .spec-card-icon.pdf-icon {
    color: #dc2626;
    background: #fff5f5;
    border-color: #fecaca;
  }

  .spec-card-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
  }

  .spec-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }

  .spec-card-value {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary, #0b2447);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .allotment-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #dc2626;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .allotment-pdf-btn:hover {
    color: #991b1b;
    text-decoration: underline;
  }

  /* Authors Section */
  .authors-section {
    padding: 70px 0;
    background-color: #f8fafc;
    border-top: 1px solid #edf2f7;
  }

  .authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
  }

  .author-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 6px 20px rgba(11, 36, 71, 0.05);
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--secondary, #c9a96e);
    transition: all 0.3s ease;
  }

  .author-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(11, 36, 71, 0.1);
    border-color: var(--secondary, #c9a96e);
  }

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

  .author-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary, #c9a96e);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .author-image-placeholder {
    width: 72px;
    height: 72px;
    background: rgba(201, 169, 110, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--secondary, #c9a96e);
    flex-shrink: 0;
  }

  .author-image-placeholder i {
    font-size: 28px;
    color: var(--secondary, #c9a96e);
  }

  .author-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .author-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.45rem;
    color: var(--primary, #0b2447);
    margin: 0;
    font-weight: 700;
  }

  .author-role-tag {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .author-details {
    color: #475569;
    line-height: 1.7;
    font-size: 0.95rem;
    max-height: 120px;
    overflow: hidden;
    position: relative;
  }

  .author-details.expanded {
    max-height: none;
  }

  .author-details:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, white 100%);
  }

  .author-details.expanded:after {
    display: none;
  }

  .more-link {
    color: var(--secondary, #c9a96e);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .more-link:hover {
    color: #b38e2d;
    text-decoration: underline;
  }

  .more-link i {
    transition: transform 0.3s ease;
  }

  .more-link.expanded i {
    transform: rotate(180deg);
  }

  /* Archives Section (Modeled after nrjbe.in) */
  .archives-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .archive-header-wrapper {
    margin-bottom: 30px;
    text-align: left;
  }

  .archive-subtitle {
    color: var(--gray, #64748b);
    font-size: 1.05rem;
    margin-top: 10px;
  }

  .archive-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius, 10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  }

  .year-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .year-pill-btn {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: var(--primary, #1a365d);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .year-pill-btn:hover {
    border-color: var(--secondary, #c9a96e);
    color: var(--secondary, #c9a96e);
    background: rgba(201, 169, 110, 0.08);
  }

  .year-pill-btn.active {
    background: var(--primary, #1a365d);
    color: white;
    border-color: var(--primary, #1a365d);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
  }

  .archive-search-box {
    position: relative;
    min-width: 280px;
    flex: 0 1 340px;
  }

  .archive-search-box .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.9rem;
  }

  .archive-search-box input {
    width: 100%;
    padding: 9px 36px 9px 38px;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition, all 0.3s ease);
    background: #f8fafc;
  }

  .archive-search-box input:focus {
    border-color: var(--secondary, #c9a96e);
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  }

  .clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
  }

  .archive-year-card {
    background: white;
    border-radius: var(--radius, 10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 35px;
    overflow: hidden;
    border-left: 5px solid var(--primary, #1a365d);
    transition: var(--transition, all 0.3s ease);
  }

  .archive-year-header {
    background: #ffffff;
    padding: 20px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
    flex-wrap: wrap;
    gap: 15px;
  }

  .year-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .year-calendar-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(201, 169, 110, 0.15);
    color: var(--secondary, #c9a96e);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
  }

  .year-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary, #1a365d);
    margin: 0;
  }

  .year-count-badge {
    background: rgba(26, 54, 93, 0.08);
    color: var(--primary, #1a365d);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .archive-papers-grid {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .paper-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    padding: 22px 24px;
    transition: var(--transition, all 0.3s ease);
    position: relative;
    border-left: 3px solid var(--secondary, #c9a96e);
  }

  .paper-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #cbd5e1;
  }

  .paper-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
  }

  .paper-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
  }

  .paper-meta-badge.badge-year {
    background: rgba(26, 54, 93, 0.08);
    color: var(--primary, #1a365d);
  }

  .paper-meta-badge.badge-oa {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
  }

  .paper-meta-badge.badge-doi {
    background: rgba(201, 169, 110, 0.15);
    color: #926f2a;
  }

  .paper-card-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.35rem;
    color: var(--primary, #1a365d);
    margin: 0 0 10px 0;
    line-height: 1.35;
    font-weight: 600;
  }

  .paper-author-info {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .paper-author-info .author-icon {
    color: var(--secondary, #c9a96e);
  }

  .paper-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
  }

  .paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .paper-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition, all 0.25s ease);
  }

  .paper-btn-pdf {
    background: var(--secondary, #c9a96e);
    color: var(--primary, #1a365d);
  }

  .paper-btn-pdf:hover {
    background: #d4b87a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(201, 169, 110, 0.3);
    color: var(--primary, #1a365d);
  }

  .paper-btn-cert {
    background: #f1f5f9;
    color: var(--primary, #1a365d);
    border: 1px solid #cbd5e1;
  }

  .paper-btn-cert:hover {
    background: #e2e8f0;
    color: var(--primary, #1a365d);
  }

  .paper-btn-doi {
    background: transparent;
    color: var(--secondary, #c9a96e);
    border: 1px solid var(--secondary, #c9a96e);
  }

  .paper-btn-doi:hover {
    background: rgba(201, 169, 110, 0.1);
    color: #926f2a;
  }

  .archive-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius, 10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  }

  .archive-empty-state .empty-icon {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 15px;
  }

  .archive-empty-state h4 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem;
    color: var(--primary, #1a365d);
    margin-bottom: 8px;
  }

  .archive-empty-state p {
    color: var(--gray, #64748b);
    font-size: 0.95rem;
  }

  @media (max-width: 768px) {
    .archive-controls {
      flex-direction: column;
      align-items: stretch;
    }
    .archive-search-box {
      min-width: 100%;
      flex: 1 1 100%;
    }
    .archive-year-header {
      padding: 16px 20px;
    }
    .archive-papers-grid {
      padding: 18px 20px;
    }
    .paper-actions {
      flex-direction: column;
      width: 100%;
    }
    .paper-btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* Related Books Section */
  .related-books-section {
    padding: 80px 0;
    background-color: #f8f9fa;
  }

  .related-books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
  }

  .related-book-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    aspect-ratio: 2/3;
    background: white;
  }

  .related-book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  }

  .related-book-link {
    display: block;
    height: 100%;
  }

  .related-book-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .related-book-item:hover .related-book-image {
    transform: scale(1.05);
  }

  /* Responsive Design */
  @media (max-width: 1200px) {
    .book-content-grid {
      grid-template-columns: 210px minmax(280px, 1fr) 290px;
      gap: 18px;
    }
   
    .related-books-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 769px) and (max-width: 1120px) {
    .book-content-grid {
      grid-template-columns: 220px 1fr;
      grid-template-areas:
        "cover about"
        "buy about";
      gap: 20px;
    }
    
    .book-cover-container {
      grid-area: cover;
      position: static;
      max-width: 100%;
    }

    .book-about-column {
      grid-area: about;
    }

    .book-buy-column {
      grid-area: buy;
      position: static;
      max-width: 100%;
    }

    .bibliographic-specs-list {
      grid-template-columns: repeat(2, 1fr);
    }
   
    .related-books-grid {
      grid-template-columns: repeat(2, 1fr);
    }
   
    .section-heading {
      font-size: 1.8rem;
    }
  }

  @media (max-width: 768px) {
    .book-content-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .book-cover-container,
    .book-buy-column {
      position: static;
      max-width: 100%;
      width: 100%;
      margin: 0;
    }

    .book-cover-wrapper {
      max-width: 240px;
      margin: 0 auto;
    }

    .book-about-column .book-title {
      font-size: 1.85rem;
    }

    .editorial-header,
    .editorial-about-section,
    .editorial-specs-section,
    .editorial-chapters-preview {
      padding: 20px 18px;
    }

    .byline-actions {
      width: 100%;
      margin-left: 0;
      margin-top: 6px;
      justify-content: flex-start;
      gap: 12px;
    }

    .cover-actions-row {
      max-width: 240px;
      margin: 12px auto 0;
    }
    .book-details-hero .hero-content h1 {
      font-size: 2rem;
    }
   
    .book-title {
      font-size: 2rem;
    }
   
    .authors-grid {
      grid-template-columns: 1fr;
    }
   
    .action-buttons {
      flex-direction: column;
    }
   
    .action-btn {
      width: 100%;
      justify-content: center;
    }
   
    .related-books-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
    }
   
    .chapter-files {
      flex-direction: column;
    }
   
    .file-link {
      justify-content: center;
    }
  }

  @media (max-width: 576px) {
    .book-details-section {
      padding: 35px 0;
    }

    .editorial-header,
    .editorial-about-section,
    .editorial-specs-section,
    .editorial-chapters-preview,
    .book-buy-card {
      padding: 16px 14px;
    }

    .editorial-tabs-bar {
      padding: 0 8px;
    }

    .editorial-tab-btn {
      padding: 10px 12px;
      font-size: 0.8rem;
    }

    .specs-table th {
      width: 42%;
      padding: 9px 10px;
      font-size: 0.82rem;
    }

    .specs-table td {
      padding: 9px 10px;
      font-size: 0.82rem;
    }

    .spec-allotment-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
    }
   
    .editor-info {
      padding: 25px;
    }
   
    .author-card,
    .chapter-card {
      padding: 25px;
    }
   
    .related-books-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  }

  @media (max-width: 480px) {
    .book-details-hero {
      padding: 60px 0;
    }
   
    .related-books-grid {
      grid-template-columns: 1fr;
      max-width: 300px;
      margin: 40px auto;
    }

    .editorial-header,
    .editorial-about-section,
    .editorial-specs-section,
    .editorial-chapters-preview {
      padding: 14px 10px;
    }
    .editorial-tab-btn {
      padding: 8px 10px;
      font-size: 0.78rem;
    }
  }

  @media (max-width: 360px) {
    .editorial-header,
    .editorial-about-section,
    .editorial-specs-section,
    .editorial-chapters-preview {
      padding: 16px 14px;
    }
    .editorial-tab-btn {
      padding: 8px 10px;
      font-size: 0.78rem;
    }
  }

/* Related Books Section - Mobile Focused Layout */
  .related-books-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    margin-top: 40px;
  }

  .section-heading {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
  }

  .section-heading:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--secondary);
    border-radius: 2px;
  }

  .related-books-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .related-book-item {
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    position: relative;
  }

  .related-book-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
  }

  .related-book-link {
    display: block;
    height: 100%;
    text-decoration: none;
  }

  .related-book-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    padding-top: 140%; /* Taller aspect ratio for mobile */
  }

  .related-book-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .related-book-item:hover .related-book-image {
    transform: scale(1.05);
  }

  /* For tablets and larger mobile screens */
  @media (min-width: 576px) {
    .related-book-item {
      flex: 0 0 calc(50% - 20px);
      max-width: calc(50% - 20px);
    }
   
    .related-book-image-container {
      padding-top: 130%;
    }
  }

  /* For tablets in landscape */
  @media (min-width: 768px) {
    .related-book-item {
      flex: 0 0 calc(33.333% - 20px);
      max-width: calc(33.333% - 20px);
    }
   
    .related-book-image-container {
      padding-top: 120%;
    }
  }

  /* For desktop/laptop */
  @media (min-width: 992px) {
    .related-books-container {
      justify-content: flex-start;
    }
   
    .related-book-item {
      flex: 0 0 calc(25% - 20px);
      max-width: calc(25% - 20px);
    }
   
    .related-book-image-container {
      padding-top: 100%; /* Square aspect ratio for desktop */
    }
  }

  /* For large desktops */
  @media (min-width: 1200px) {
    .related-book-item {
      flex: 0 0 calc(25% - 20px);
      max-width: calc(25% - 20px);
    }
  }

  /* For very small mobile devices */
  @media (max-width: 375px) {
    .related-books-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
   
    .related-book-item {
      flex: 0 0 100%;
      max-width: 100%;
      margin-bottom: 0;
    }
   
    .related-book-image-container {
      padding-top: 150%;
    }
  }

  /* Touch-friendly improvements */
  @media (hover: none) {
    .related-book-item:hover {
      transform: none;
      box-shadow: var(--shadow);
    }
   
    .related-book-item:active {
      transform: scale(0.98);
    }
  }

  /* Performance optimization for mobile */
  @media (max-width: 768px) {
    .related-book-image {
      transform: none;
    }
  }

  /* Better spacing for mobile */
  @media (max-width: 576px) {
    .related-books-section {
      padding: 40px 0;
      margin-top: 30px;
    }
   
    .section-heading {
      font-size: 1.8rem;
      margin-bottom: 25px;
    }
   
    .related-books-container {
      gap: 15px;
    }
   
    .related-book-item {
      flex: 0 0 calc(50% - 15px);
      max-width: calc(50% - 15px);
    }
  }

  @media (max-width: 480px) {
    .related-books-section {
      padding: 30px 0;
    }
   
    .related-books-container {
      gap: 12px;
    }
   
    .related-book-item {
      flex: 0 0 calc(50% - 12px);
      max-width: calc(50% - 12px);
    }
   
    .related-book-image-container {
      padding-top: 140%;
    }
  }

  /* ==========================================================================
     NPA OPEN ACCESS POLICY STRIP
     ========================================================================== */
  .npa-oa-policy-strip {
    background: linear-gradient(135deg, #091a2f 0%, #0f2b48 100%);
    border-top: 2px solid var(--secondary, #c9a96e);
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    padding: 16px 0;
    color: #ffffff;
    position: relative;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .oa-policy-container {
    width: 100%;
    max-width: min(88vw, 1320px);
    margin: 0 auto;
    padding: 0 16px;
  }

  .oa-policy-content {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .oa-policy-main {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 290px;
  }

  .oa-policy-icon-badge {
    width: 48px;
    height: 48px;
    background: rgba(201, 169, 110, 0.18);
    border: 1px solid var(--secondary, #c9a96e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #f7d594;
    flex-shrink: 0;
  }

  .oa-policy-text {
    line-height: 1.45;
  }

  .oa-policy-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f7d594;
    margin-bottom: 2px;
  }

  .oa-policy-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
  }

  .oa-policy-desc {
    font-size: 12.5px;
    color: #cbd5e1;
    margin: 0;
    max-width: 780px;
  }

  .oa-policy-desc strong {
    color: #ffffff;
  }

  .oa-policy-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }

  .oa-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
  }

  .oa-pill-free {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
  }

  .oa-pill-order {
    background: rgba(201, 169, 110, 0.2);
    border: 1px solid rgba(201, 169, 110, 0.5);
    color: #fce7b2;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
  }
  .oa-pill-order:hover {
    background: var(--secondary, #c9a96e);
    color: #0b2447;
  }

  /* Hero & Cover Actions */
  .cover-primary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
    width: 100%;
  }

  .btn-read-online-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f766e 0%, #0d5f58 100%);
    color: #ffffff;
    border: 1px solid #14b8a6;
    border-radius: 8px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
    text-align: center;
    line-height: 1.3;
  }

  .btn-read-online-hero:hover {
    background: linear-gradient(135deg, #115e59 0%, #042f2e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.35);
  }

  .btn-read-online-hero .oa-pill {
    font-size: 11px;
    font-weight: 500;
    color: #99f6e4;
    margin-top: 2px;
  }

  .btn-order-physical-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c9a96e 0%, #b38e2d 100%);
    color: #0b2447;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    line-height: 1.3;
  }

  .btn-order-physical-hero:hover {
    background: linear-gradient(135deg, #dbb97d 0%, #c9a96e 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.35);
  }

  .btn-order-physical-hero .print-pill {
    font-size: 11px;
    font-weight: 600;
    color: #0b2447;
    opacity: 0.85;
    margin-top: 2px;
  }

  /* Buy Card OA Note */
  .buy-oa-reminder {
    background: #f0fdfa;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 16px;
    font-size: 12px;
    line-height: 1.45;
    color: #134e4a;
  }

  .buy-oa-reminder strong {
    color: #0f766e;
  }

  .buy-oa-reminder .link-open-reader {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0f766e;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
  }
  .buy-oa-reminder .link-open-reader:hover {
    background: #115e59;
  }

  /* ==========================================================================
     ORDER PHYSICAL COPY MODAL
     ========================================================================== */
  .order-modal-card,
  .library-modal-card {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(92dvh, 92vh);
    max-height: 92dvh;
    overscroll-behavior: contain;
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes modalPopIn {
    from { opacity: 0; transform: scale(0.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }

  .order-modal-header {
    background: #0b2447;
    color: #ffffff;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #c9a96e;
    flex-shrink: 0;
  }

  .order-modal-header h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
  }

  .order-modal-header p {
    font-size: 12px;
    color: #f7d594;
    margin: 2px 0 0;
    letter-spacing: 0.3px;
  }

  #orderFormContainer,
  #physicalBookOrderForm {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .order-modal-body {
    padding: 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-height: 0;
  }

  .order-book-summary-strip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
  }

  .order-summary-thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    flex-shrink: 0;
  }

  .order-summary-details {
    flex: 1;
  }

  .order-summary-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 3px;
  }

  .order-summary-isbn {
    font-size: 12px;
    color: #64748b;
  }

  /* Format Cards */
  .format-selection-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
  }

  .format-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .format-card-option {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
  }

  .format-card-option:hover {
    border-color: #cbd5e1;
    background: #fafafa;
  }

  .format-card-option.active {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  }

  .format-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
  }

  .format-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
  }

  .format-card-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
  }

  .format-card-option.active .format-card-check {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
  }

  .format-card-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
  }

  .format-card-desc {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
  }

  /* Quantity Selector */
  .quantity-control-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
  }

  .quantity-presets {
    display: flex;
    gap: 8px;
  }

  .qty-preset-btn {
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
  }

  .qty-preset-btn:hover {
    background: #e2e8f0;
  }

  .qty-preset-btn.active {
    background: #0b2447;
    color: #ffffff;
    border-color: #0b2447;
  }

  .qty-custom-input {
    width: 75px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
  }

  /* Policy Fee Alert */
  .modal-fee-alert {
    background: #e6f7f5;
    border: 1px solid #99f6e4;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12.5px;
    color: #0f766e;
    line-height: 1.5;
  }

  .modal-fee-alert i {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  /* Delivery Grid */
  .order-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .grid-full {
    grid-column: span 2;
  }

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

  .order-form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
  }

  .order-form-group input,
  .order-form-group textarea,
  .order-form-group select {
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    outline: none;
    transition: border 0.2s;
  }

  .order-form-group input:focus,
  .order-form-group textarea:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
  }

  /* Order Summary Total Box */
  .order-live-total-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 18px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .live-total-label {
    font-size: 13px;
    color: #64748b;
  }

  .live-total-label strong {
    color: #0f172a;
    display: block;
    font-size: 14px;
  }

  .live-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: #0f766e;
  }

  .live-total-courier {
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
  }

  .order-modal-footer {
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
  }

  .btn-cancel {
    padding: 10px 18px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .btn-cancel:hover {
    background: #e2e8f0;
    color: #1e293b;
    border-color: #94a3b8;
  }

  .btn-submit-order {
    background: linear-gradient(135deg, #0b2447 0%, #163a6b 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn-submit-order:hover {
    background: #0f766e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
  }

  .btn-submit-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }

  /* Success Screen inside Modal */
  .order-success-screen {
    text-align: center;
    padding: 24px 10px;
  }

  .success-check-icon {
    width: 64px;
    height: 64px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
  }

  .success-order-code {
    font-family: monospace;
    font-size: 18px;
    font-weight: 800;
    color: #0f766e;
    background: #f0fdf4;
    border: 1px dashed #86efac;
    padding: 6px 14px;
    border-radius: 6px;
    display: inline-block;
    margin: 8px 0 16px;
  }

  .btn-whatsapp-confirm {
    background: #25d366;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.2s;
  }
  .btn-whatsapp-confirm:hover {
    background: #1ebd5b;
    color: #ffffff;
    transform: translateY(-2px);
  }

  /* ==========================================================================
     ONLINE PDF & CHAPTER READER MODAL
     ========================================================================== */
  .reader-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 26, 47, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 14px;
    overscroll-behavior: contain;
  }

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

  .reader-modal-container {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 1280px;
    height: 94vh;
    height: 94dvh;
    max-height: 94dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  }

  .reader-top-bar {
    background: #0b2447;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #c9a96e;
    flex-shrink: 0;
    gap: 14px;
  }

  .reader-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .reader-oa-badge {
    background: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .reader-book-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
  }

  .reader-toolbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .btn-reader-order-print {
    background: linear-gradient(135deg, #c9a96e 0%, #b38e2d 100%);
    color: #0b2447;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
    white-space: nowrap;
  }
  .btn-reader-order-print:hover {
    transform: translateY(-1px);
    background: #f7d594;
  }

  .reader-controls-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .reader-btn-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
  }

  .reader-btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .reader-btn-close {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
  }
  .reader-btn-close:hover {
    background: #ef4444;
    color: #ffffff;
  }

  /* Reader Layout Body */
  .reader-body-split {
    display: flex;
    flex: 1;
    overflow: hidden;
    height: calc(100% - 60px);
  }

  .reader-toc-sidebar {
    width: 340px;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }

  .reader-toc-header {
    padding: 14px 18px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .reader-toc-header h4 {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .reader-search-input {
    width: 100%;
    padding: 7px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    margin-top: 8px;
  }

  .reader-chapter-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    list-style: none;
    margin: 0;
  }

  .reader-chapter-item {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
  }

  .reader-chapter-item:hover {
    border-color: #0f766e;
    background: #f0fdfa;
  }

  .reader-chapter-item.active {
    border-color: #0f766e;
    background: #f0fdfa;
    border-left: 4px solid #0f766e;
    box-shadow: 0 2px 6px rgba(15, 118, 110, 0.1);
  }

  .reader-chapter-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .reader-chapter-author {
    font-size: 11.5px;
    color: #64748b;
  }

  .reader-chapter-badge {
    font-size: 10.5px;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 5px;
    font-weight: 600;
  }

  .badge-pdf-ready {
    background: #dbeafe;
    color: #1e40af;
  }

  .badge-editorial-text {
    background: #f1f5f9;
    color: #475569;
  }

  /* Reader Main Viewport */
  .reader-content-viewport {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
  }

  .reader-viewport-header {
    padding: 12px 24px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
  }

  .viewport-heading-wrap h3 {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
  }

  .viewport-heading-wrap .viewport-author-line {
    font-size: 12.5px;
    color: #64748b;
    margin-top: 2px;
  }

  .viewport-action-btns {
    display: flex;
    gap: 8px;
  }

  .btn-viewport-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
  }

  .btn-viewport-action:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
  }

  .btn-viewport-action.btn-drm-badge {
    background: rgba(15, 118, 110, 0.1);
    color: #0f766e;
    border-color: rgba(15, 118, 110, 0.25);
    font-weight: 700;
  }

  .btn-viewport-action.btn-download-pdf {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
  }
  .btn-viewport-action.btn-download-pdf:hover {
    background: #0d655e;
  }

  .reader-scroll-canvas {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #525659;
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .reader-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #525659;
    flex: 1;
  }

  .reader-text-article {
    max-width: 820px;
    margin: 30px auto;
    background: #ffffff;
    padding: 45px 55px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 18px;
    line-height: 1.7;
    color: #1e293b;
  }

  .article-oa-license-bar {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #166534;
    border-radius: 4px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .article-abstract-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
  }

  .article-abstract-card h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0f766e;
    margin-bottom: 8px;
    font-weight: 700;
  }

  /* Postal Services Assurance Strip in Modal */
  .modal-courier-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 20px;
  }

  .courier-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .courier-badge-item i {
    font-size: 1.15rem;
    margin-top: 2px;
  }

  .courier-badge-item strong {
    display: block;
    font-size: 12.5px;
    color: #0f172a;
    line-height: 1.3;
  }

  .courier-badge-item span {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin-top: 1px;
  }

  /* Payment Method Selector Cards */
  .payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
  }

  .payment-method-card {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
  }

  .payment-method-card:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
  }

  .payment-method-card.active {
    border-color: #0f766e;
    background: #f0fdf4;
    box-shadow: 0 0 0 1px #0f766e;
  }

  .pay-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
  }

  .pay-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .pay-card-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 4px;
  }

  .pay-card-tag.instant {
    background: #ccfbf1;
    color: #0f766e;
  }

  .pay-card-tag.invoice {
    background: #fef3c7;
    color: #92400e;
  }

  .pay-card-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
  }

  /* Responsive Rules for Modals and Policy */
  @media (max-width: 900px) {
    .oa-policy-container {
      width: 100%;
      max-width: 92vw;
    }
    .reader-toc-sidebar {
      width: 260px;
    }
  }

  @media (max-width: 768px) {
    .reader-modal-overlay {
      padding: 6px;
    }
    .reader-modal-container {
      height: 98vh;
      border-radius: 8px;
    }
    .reader-top-bar {
      padding: 10px 14px;
      gap: 8px;
    }
    .reader-book-title {
      font-size: 13.5px;
      max-width: 150px;
    }
    .reader-body-split {
      flex-direction: column;
      height: calc(100% - 52px);
    }
    .reader-toc-sidebar {
      width: 100%;
      height: 140px;
      border-right: none;
      border-bottom: 1px solid #e2e8f0;
    }
    .reader-viewport-header {
      padding: 10px 14px;
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .reader-text-article {
      padding: 24px 18px;
      font-size: 16px;
      margin: 15px auto;
    }
    .reader-modal-overlay {
      padding: 6px;
      overscroll-behavior: contain;
    }
    .order-modal-card,
    .library-modal-card {
      max-width: calc(100vw - 12px);
      max-height: min(96dvh, 96vh);
      max-height: 96dvh;
      border-radius: 10px;
      overscroll-behavior: contain;
    }
    .order-modal-header {
      padding: 12px 16px;
      flex-shrink: 0;
    }
    .order-modal-header h3 {
      font-size: 19px;
    }
    .order-modal-body {
      padding: 14px 14px 28px 14px;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      flex: 1;
      min-height: 0;
    }
    .format-cards-grid {
      grid-template-columns: 1fr;
    }
    .order-form-grid {
      grid-template-columns: 1fr;
    }
    .grid-full {
      grid-column: span 1;
    }
    .modal-courier-banner {
      grid-template-columns: 1fr;
    }
    .payment-methods-grid {
      grid-template-columns: 1fr;
    }
    .order-live-total-box {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
    .order-modal-footer {
      padding: 10px 14px;
      flex-direction: column;
      flex-shrink: 0;
    }
    .btn-submit-order {
      width: 100%;
      justify-content: center;
    }
    .oa-policy-content {
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
    }
    .oa-policy-main {
      min-width: 0;
      width: 100%;
    }
    .oa-policy-pills {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }
    .oa-pill-item {
      width: 100%;
      justify-content: center;
      text-align: center;
    }
  }

  @media (max-width: 480px) {
    .reader-top-bar {
      padding: 8px 10px;
    }
    .reader-oa-badge {
      display: none;
    }
    .reader-book-title {
      font-size: 12px;
      max-width: 120px;
    }
    .btn-reader-order-print {
      padding: 5px 8px;
      font-size: 11px;
    }
    .reader-btn-icon {
      width: 30px;
      height: 30px;
      font-size: 12px;
    }
    .order-book-summary-strip {
      flex-direction: column;
      text-align: center;
    }
    .order-summary-thumb {
      margin: 0 auto;
    }
  }