/* base */
:root {
  --navy: #062743;
  --navy-hover: #041B30;
  --crimson: #BE202A;
  --crimson-hover: #9E1922;
  --royal-blue: #1C69B3;
  --royal-blue-hover: #16538E;
  --amber-gold: #F7AC19;
  --amber-gold-hover: #D9930F;

  --off-white: #F4F7FA;
  --gold: #BE202A; /* Main brand primary accent mapped to crimson red */
  --gold-hover: #9E1922;
  --charcoal: #1E293B;
  --slate-dark: #091E33;
  --white: #FFFFFF;
  --border-color: #E2E8F0;
  --muted-text: #64748B;
  --card-bg: #FFFFFF;
  --card-shadow: 0 10px 30px rgba(6, 39, 67, 0.08);
  --card-shadow-hover: 0 18px 40px rgba(6, 39, 67, 0.16);
  --transition-fast: all 0.25s ease-in-out;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--crimson);
}

/* typography */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  color: var(--navy);
  font-weight: 700;
}

.text-gold, .text-crimson {
  color: var(--crimson) !important;
}

.text-amber {
  color: var(--amber-gold) !important;
}

.text-royal, .text-blue {
  color: var(--royal-blue) !important;
}

.text-navy {
  color: var(--navy) !important;
}

.text-charcoal {
  color: var(--charcoal) !important;
}

.text-off-white {
  color: var(--off-white) !important;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--muted-text);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

/* layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.main-content {
  flex: 1 0 auto;
}

.reading-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page-header-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate-dark) 100%);
  color: var(--off-white);
  padding: 4rem 0 3.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header-banner h1 {
  color: var(--off-white);
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.breadcrumb-nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.7);
}

.breadcrumb-nav a {
  color: var(--gold);
}

.breadcrumb-nav a:hover {
  color: var(--off-white);
}

/* components */
.btn-gold, .btn-crimson {
  background-color: var(--crimson);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(190, 32, 42, 0.25);
}

.btn-gold:hover, .btn-crimson:hover {
  background-color: var(--crimson-hover);
  border-color: var(--crimson-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(190, 32, 42, 0.4);
}

.btn-outline-gold, .btn-outline-crimson {
  background-color: transparent;
  color: var(--crimson);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid var(--crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
}

.btn-outline-gold:hover, .btn-outline-crimson:hover {
  background-color: var(--crimson);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(190, 32, 42, 0.25);
}

.btn-navy {
  background-color: var(--navy);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 39, 67, 0.2);
}

.btn-navy:hover {
  background-color: var(--navy-hover);
  color: var(--amber-gold);
  border-color: var(--navy-hover);
  transform: translateY(-2px);
}

.btn-royal, .btn-blue {
  background-color: var(--royal-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: 2px solid var(--royal-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(28, 105, 179, 0.25);
}

.btn-royal:hover, .btn-blue:hover {
  background-color: var(--royal-blue-hover);
  border-color: var(--royal-blue-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.4rem 1.1rem;
  font-size: 0.875rem;
}

.custom-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  transition: var(--transition-fast);
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(190, 32, 42, 0.3);
}

.format-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.format-badge-ebook {
  background-color: rgba(13, 27, 42, 0.08);
  color: var(--navy);
  border: 1px solid rgba(13, 27, 42, 0.2);
}

.format-badge-paperback {
  background-color: rgba(201, 168, 76, 0.15);
  color: #8c7128;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.format-badge-combo {
  background-color: #C9A84C;
  color: #FFFFFF !important;
  border: 1px solid #B3923B;
  box-shadow: 0 2px 6px rgba(201, 168, 76, 0.3);
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
}

.format-badge-standard {
  background-color: #C9A84C;
  color: #FFFFFF !important;
  border: 1px solid #B3923B;
  box-shadow: 0 2px 6px rgba(201, 168, 76, 0.25);
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-pending {
  background-color: #FFF3CD;
  color: #856404;
}

.status-completed {
  background-color: #D4EDDA;
  color: #155724;
}

.status-cancelled {
  background-color: #F8D7DA;
  color: #721C24;
}

.custom-input {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  background-color: #FFFFFF;
  color: var(--charcoal);
  width: 100%;
  transition: var(--transition-fast);
}

.custom-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.2);
}

.star-rating {
  display: inline-flex;
  gap: 2px;
  color: var(--amber-gold);
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #FFFFFF;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 0.9rem 0;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(6, 39, 67, 0.04);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(6, 39, 67, 0.12);
  padding: 0.7rem 0;
  background-color: #FFFFFF;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy) !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo span {
  color: var(--navy);
}

.nav-link-custom {
  color: var(--navy); /* J letter primary color #062743 */
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link-custom:hover {
  color: var(--crimson);
}

.nav-link-custom.active {
  color: var(--crimson);
  font-weight: 700;
}

.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--crimson);
  border-radius: 2px;
}

.cart-icon-btn {
  position: relative;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  transition: var(--transition-fast);
}

.cart-icon-btn:hover {
  color: var(--crimson);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background-color: var(--crimson);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-toggle-btn {
  background: none;
  border: none;
  color: var(--navy);
  padding: 0.5rem;
  cursor: pointer;
  display: none;
}

.mobile-nav-menu {
  display: none;
  background-color: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  padding: 1rem 1.5rem;
  box-shadow: 0 10px 20px rgba(6, 39, 67, 0.08);
}

.mobile-nav-menu.show {
  display: block;
}

.user-dropdown-toggle {
  background: none;
  border: none;
  color: var(--navy);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.user-dropdown-menu {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 25px rgba(6, 39, 67, 0.12);
}

.user-dropdown-menu .dropdown-item {
  color: var(--navy);
  padding: 0.6rem 1.25rem;
  font-weight: 500;
}

.user-dropdown-menu .dropdown-item:hover {
  background-color: var(--off-white);
  color: var(--crimson);
}

/* footer */
.site-footer {
  background-color: var(--navy);
  color: #FFFFFF;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 4px solid var(--crimson);
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #FFFFFF;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icon-link:hover {
  background-color: var(--crimson);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-heading {
  font-family: var(--font-heading);
  color: var(--amber-gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--amber-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--amber-gold);
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.65);
}

.footer-bottom a:hover {
  color: var(--amber-gold);
}

/* pages */

/* Home Hero */
.hero-section {
  background: linear-gradient(135deg, #062743 0%, #091E33 50%, #031424 100%);
  color: #FFFFFF;
  padding: 5rem 0 6rem 0;
  position: relative;
}

.hero-title {
  font-size: 3.25rem;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-book-stack {
  position: relative;
  display: inline-block;
}

.hero-book-cover {
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: rotate(3deg);
  transition: transform 0.3s ease;
  border: 1px solid rgba(201, 168, 76, 0.3);
}

.hero-book-cover:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-book-shadow-bg {
  position: absolute;
  top: 15px;
  left: -15px;
  width: 100%;
  height: 100%;
  background-color: var(--gold);
  border-radius: 8px;
  z-index: -1;
  opacity: 0.3;
}

/* Section styling */
.section-padding {
  padding: 5rem 0;
}

.section-bg-alt {
  background-color: #EFE8DC;
}

/* Book Cards */
.book-card-cover {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #E2DACD;
}

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

.custom-card:hover .book-card-cover img {
  transform: scale(1.04);
}

.book-title {
  font-size: 1.25rem;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.book-author {
  color: var(--muted-text);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.book-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}

/* Author spotlight */
.author-card-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.author-card:hover .author-card-avatar {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Timeline Components */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: var(--gold);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item::after {
  content: '';
  display: table;
  clear: both;
}

.timeline-badge {
  position: absolute;
  top: 15px;
  left: 50%;
  width: 18px;
  height: 18px;
  background-color: var(--gold);
  border: 4px solid var(--off-white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-content {
  width: 45%;
}

.timeline-item.left .timeline-content {
  float: left;
  text-align: right;
}

.timeline-item.right .timeline-content {
  float: right;
  text-align: left;
}

.timeline-year-tag {
  display: inline-block;
  background-color: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Contact map container */
.map-container {
  width: 100%;
  height: 260px;
  background-color: #E2DACD;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-text);
  font-weight: 500;
  margin-top: 1.5rem;
}

/* TOC links */
.toc-box {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-box ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.toc-box a {
  color: var(--navy);
  font-weight: 500;
}

.toc-box a:hover {
  color: var(--gold);
}

/* shop */
.cart-table th {
  background-color: var(--navy);
  color: var(--off-white);
  font-family: var(--font-heading);
  font-weight: 600;
  border: none;
  padding: 0.9rem 1rem;
}

.cart-table td {
  padding: 1.2rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.cart-quantity-input {
  width: 70px;
  text-align: center;
  padding: 0.35rem 0.5rem;
}

.checkout-section-title {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

/* auth */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
}

.auth-left-panel {
  width: 40%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate-dark) 100%);
  color: var(--off-white);
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-left-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.auth-right-panel {
  width: 60%;
  background-color: var(--off-white);
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-card {
  width: 100%;
  max-width: 460px;
}

.password-field-wrap {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted-text);
  cursor: pointer;
  padding: 0;
}

.password-toggle-btn:hover {
  color: var(--navy);
}

/* user dashboard */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
  width: 260px;
  background-color: var(--navy);
  color: var(--off-white);
  padding: 2rem 0;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.dashboard-user-block {
  padding: 0 1.5rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  text-align: center;
}

.dashboard-user-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 0.75rem;
  object-fit: cover;
}

.dashboard-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-nav-item a,
.dashboard-nav-item button {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.5rem;
  color: rgba(245, 240, 232, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: var(--transition-fast);
}

.dashboard-nav-item a:hover,
.dashboard-nav-item button:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--gold);
}

.dashboard-nav-item.active a {
  background-color: rgba(201, 168, 76, 0.12);
  color: var(--gold);
  border-left-color: var(--gold);
}

.dashboard-content {
  flex: 1;
  padding: 2.5rem;
  background-color: var(--off-white);
  overflow-x: hidden;
}

.stat-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--card-shadow);
}

.stat-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background-color: rgba(201, 168, 76, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  color: var(--muted-text);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .auth-wrapper {
    flex-direction: column;
  }
  
  .auth-left-panel {
    width: 100%;
    padding: 2.5rem 1.5rem;
  }
  
  .auth-right-panel {
    width: 100%;
    padding: 2.5rem 1.5rem;
  }
  
  .dashboard-layout {
    flex-direction: column;
  }
  
  .dashboard-sidebar {
    width: 100%;
    padding: 1.25rem 1rem;
  }

  .dashboard-user-block {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 1rem;
    padding: 0 0.5rem 1rem 0.5rem;
    margin-bottom: 1rem;
  }

  .dashboard-user-avatar {
    width: 54px;
    height: 54px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .dashboard-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .dashboard-nav-item {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 130px;
  }

  .dashboard-nav-item.mt-4 {
    margin-top: 0 !important;
    border-top: none !important;
    padding-top: 0 !important;
    flex: 1 1 100%;
  }

  .dashboard-nav-item a,
  .dashboard-nav-item button {
    padding: 0.6rem 0.85rem;
    border-left: none;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.08);
    font-size: 0.875rem;
    justify-content: center;
  }

  .dashboard-nav-item.active a {
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
  }

  .dashboard-content {
    padding: 1.5rem 1rem;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .desktop-nav {
    display: none;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-badge {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 50px);
    float: right !important;
    text-align: left !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-padding {
    padding: 3rem 0;
  }

  .page-header-banner h1 {
    font-size: 2rem;
  }

  .dashboard-nav-item {
    flex: 1 1 100%;
  }
}

/* admin dashboard */
.admin-body {
  background-color: #F4F6F9;
  color: #1E1E1E;
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background-color: var(--navy);
  color: #FFFFFF;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-header {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: block;
  text-decoration: none;
}

.sidebar-brand .brand-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.sidebar-brand .brand-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--amber-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.sidebar-nav {
  padding: 1rem 0;
  flex: 1 1 auto;
}

.admin-sidebar .nav-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94A3B8;
  padding: 0.85rem 1.25rem 0.35rem 1.25rem;
}

.admin-sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.925rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.admin-sidebar .nav-link .nav-icon {
  width: 18px;
  height: 18px;
  stroke: #94A3B8;
  transition: stroke 0.2s ease;
}

.admin-sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.admin-sidebar .nav-link:hover .nav-icon {
  stroke: var(--amber-gold);
}

/* highlight active sidebar link */
.admin-sidebar .nav-link.active {
  background-color: rgba(190, 32, 42, 0.18);
  color: #FFFFFF;
  border-left-color: var(--crimson);
  font-weight: 600;
}

.admin-sidebar .nav-link.active .nav-icon {
  stroke: var(--amber-gold);
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--crimson);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-details {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #F5F0E8;
}

.sidebar-user-role {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.sidebar-logout-btn {
  color: #9CA3AF;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.sidebar-logout-btn:hover {
  color: #EF4444;
}

.sidebar-logout-btn svg {
  width: 18px;
  height: 18px;
}

/* topbar layout */
.admin-wrapper {
  margin-left: 260px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.3s ease;
}

.admin-topbar {
  height: 64px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: #1E1E1E;
  padding: 0.25rem;
  cursor: pointer;
  display: none;
}

.sidebar-toggle-btn svg {
  width: 22px;
  height: 22px;
}

.topbar-page-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar-notification {
  position: relative;
}

.notification-btn {
  background: none;
  border: none;
  color: #4B5563;
  padding: 0.25rem;
  position: relative;
  cursor: pointer;
  transition: color 0.2s ease;
}

.notification-btn:hover {
  color: #C9A84C;
}

.notification-btn svg {
  width: 20px;
  height: 20px;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #EF4444;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  padding: 0.25rem;
}

.admin-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-name-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1E1E1E;
}

.dropdown-arrow-icon {
  width: 16px;
  height: 16px;
  stroke: #6B7280;
}

.dropdown-menu-custom {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 220px;
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  display: none;
  flex-direction: column;
  z-index: 1050;
  overflow: hidden;
}

.dropdown-menu-custom.show {
  display: flex;
}

.dropdown-header-info {
  padding: 0.75rem 1rem;
  background-color: #F9FAFB;
}

.dropdown-user-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1E1E1E;
}

.dropdown-user-email {
  display: block;
  font-size: 0.75rem;
  color: #6B7280;
}

.dropdown-divider {
  height: 1px;
  background-color: #E5E7EB;
}

.dropdown-item-custom {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  color: #374151;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown-item-custom svg {
  width: 16px;
  height: 16px;
  stroke: #6B7280;
}

.dropdown-item-custom:hover {
  background-color: #F3F4F6;
  color: #C9A84C;
}

.dropdown-item-custom:hover svg {
  stroke: #C9A84C;
}

.dropdown-item-logout:hover {
  background-color: #FEE2E2;
  color: #EF4444;
}

.dropdown-item-logout:hover svg {
  stroke: #EF4444;
}

/* content layout area */
.admin-content {
  padding: 1.75rem;
  background-color: #F4F6F9;
  flex: 1 0 auto;
}

/* custom stat cards */
.admin-stat-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 1.25rem;
  border-left: 4px solid #C9A84C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.stat-card-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-icon-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper svg {
  width: 20px;
  height: 20px;
  stroke: #C9A84C;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0D1B2A;
  margin-bottom: 0.5rem;
}

.stat-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.785rem;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

.stat-trend.trend-up {
  color: #10B981;
}

.stat-trend svg {
  width: 14px;
  height: 14px;
}

.stat-link {
  color: #C9A84C;
  font-weight: 600;
  text-decoration: none;
}

.stat-link:hover {
  text-decoration: underline;
}

/* cards & section styling */
.admin-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.5rem;
  border: 1px solid #E5E7EB;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
  margin-bottom: 1rem;
}

.card-heading {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0;
}

.btn-link-gold {
  color: #C9A84C;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-link-gold:hover {
  color: #B8973B;
}

/* custom table design */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background-color: #F9FAFB;
  text-transform: uppercase;
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #4B5563;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid #E5E7EB;
  border-top: 1px solid #E5E7EB;
}

.admin-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #F3F4F6;
  color: #1E1E1E;
  font-size: 0.875rem;
}

.admin-table tbody tr:nth-child(even) {
  background-color: #FAFBFD;
}

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

/* status badges standard styling */
.status-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  text-align: center;
  line-height: 1.25;
  white-space: nowrap;
}

.badge-published, .badge-completed, .badge-active, .badge-paid {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-draft {
  background-color: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

.badge-pending, .badge-unpaid {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-cancelled, .badge-inactive {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.badge-processing {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.badge-admin {
  background-color: #0D1B2A;
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.4);
}

.badge-author {
  background-color: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.badge-user {
  background-color: #F3F4F6;
  color: #374151;
  border: 1px solid #E5E7EB;
}

/* Custom DataTables Styling */
div.dataTables_wrapper div.dataTables_length select {
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
}

div.dataTables_wrapper div.dataTables_filter input {
  border-radius: 6px;
  border: 1px solid #E5E7EB;
  padding: 0.4rem 0.75rem;
  outline: none;
}

div.dataTables_wrapper div.dataTables_filter input:focus {
  border-color: #C9A84C;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

@media (max-width: 767.98px) {
  div.dataTables_wrapper div.dataTables_length {
    margin-bottom: 0.75rem !important;
  }
  div.dataTables_wrapper div.dataTables_filter {
    margin-top: 0.5rem !important;
    margin-bottom: 1rem !important;
  }
}

.page-item.active .page-link {
  background-color: #C9A84C !important;
  border-color: #C9A84C !important;
  color: #FFFFFF !important;
}

.page-link {
  color: #0D1B2A;
}

.page-link:hover {
  color: #C9A84C;
}

.badge-format {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  background-color: #F3F4F6;
  color: #0D1B2A;
  border: 1px solid #D1D5DB;
  margin-right: 0.25rem;
}

/* custom filter bar */
.admin-filter-bar {
  background-color: #FFFFFF;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* top performing books list */
.top-books-list {
  display: flex;
  flex-direction: column;
}

.top-book-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #F3F4F6;
}

.top-book-item:last-child {
  border-bottom: none;
}

.book-thumbnail {
  width: 40px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.top-book-info {
  flex: 1 1 auto;
}

.top-book-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.15rem 0;
}

.top-book-title a {
  color: #0D1B2A;
  text-decoration: none;
}

.top-book-title a:hover {
  color: #C9A84C;
}

.top-book-author {
  display: block;
  font-size: 0.785rem;
  color: #6B7280;
  margin-bottom: 0.35rem;
}

.top-book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sales-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10B981;
}

/* custom buttons */
.btn-gold {
  background-color: #C9A84C;
  color: #FFFFFF;
  font-weight: 600;
  border: none;
}

.btn-gold:hover, .btn-gold:focus {
  background-color: #B8973B;
  color: #FFFFFF;
}

.btn-outline-gold {
  border: 1px solid #C9A84C;
  color: #C9A84C;
  background-color: transparent;
  font-weight: 600;
}

.btn-outline-gold:hover {
  background-color: #C9A84C;
  color: #FFFFFF;
}

.btn-action-view {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.785rem;
  font-weight: 600;
  color: #C9A84C;
  border: 1px solid #C9A84C;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-action-view:hover {
  background-color: #C9A84C;
  color: #FFFFFF;
}

/* drag and drop upload zone */
.upload-area {
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-area:hover {
  border-color: #C9A84C;
  background-color: #FFFDF5;
}

/* order timeline component */
.order-timeline {
  position: relative;
  padding-left: 2rem;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background-color: #E5E7EB;
}

.timeline-step {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-step .step-icon {
  position: absolute;
  left: -2rem;
  top: 0.25rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 3px solid #D1D5DB;
  z-index: 10;
}

.timeline-step.completed .step-icon {
  border-color: #C9A84C;
  background-color: #C9A84C;
}

.timeline-step.current .step-icon {
  border-color: #C9A84C;
  background-color: #FFFFFF;
}

.timeline-step .step-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0;
}

.timeline-step .step-date {
  font-size: 0.75rem;
  color: #6B7280;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-step .step-desc {
  font-size: 0.85rem;
  color: #374151;
  margin: 0;
}

/* filter tab links */
.order-filter-tabs {
  overflow-x: auto;
  white-space: nowrap;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.order-filter-tabs .tab-link {
  color: #6B7280;
  font-weight: 600;
  font-size: 0.925rem;
  text-decoration: none;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.order-filter-tabs .tab-link:hover {
  color: #0D1B2A;
}

.order-filter-tabs .tab-link.active {
  color: #C9A84C;
  border-bottom-color: #C9A84C;
}

/* settings card border accent */
.border-gold-left {
  border-left: 4px solid #C9A84C;
}

/* backdrop for mobile sidebar */
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1030;
  display: none;
}

.sidebar-backdrop.show {
  display: block;
}

/* responsive media queries */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-wrapper {
    margin-left: 0;
  }

  .sidebar-toggle-btn {
    display: block;
  }
}

/* invoice print media query */
@media print {
  body {
    background-color: #FFFFFF !important;
  }

  .admin-sidebar,
  .admin-topbar,
  .no-print,
  .sidebar-backdrop {
    display: none !important;
  }

  .admin-wrapper {
    margin-left: 0 !important;
  }

  .admin-content {
    padding: 0 !important;
    background-color: #FFFFFF !important;
  }

  .admin-card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
}

