/* ==========================================================================
   AnkBolteHai Stylesheet — grouped by page / feature
   ========================================================================== */

/* --- Global (all pages) --- */
/* --- 1. Global tokens & base --- */

/* --- Shared components (components.js — all pages) --- */
/* Unified tokens: .page-hero, .page-breadcrumb, .badge-ank, .cta-gradient,
   .panel-ank, .stat-card, .card-ank--{pricing|testimonial|category|compact} --- */
/* --- 2. Header & navigation --- */
/* --- 3. Buttons & forms --- */
/* --- 4. Layout & sections --- */
/* --- 5. Cards & content --- */
/* --- 6. Footer & scroll-to-top --- */
/* --- 7. Animations --- */

/* --- index.html --- */
/* --- 8. Home --- */

/* --- Inner listing & content pages --- */
/* --- 9. page-hero, page-breadcrumb — about, services, courses, blog, contact, legal --- */
/*     about.html, awards.html — stats, gallery */
/*     calculators.html — calc hub */
/*     404.html, 500.html — error layouts */

/* --- Sidebar layouts --- */
/* --- 10. service-detail.html, course-detail.html, contact.html, calculators/ --- */

/* --- Calculator tools --- */
/* --- 11. calculators/*.html, loshu-grid (in-page) --- */

/* --- courses.html, course-detail.html --- */
/* --- 12. Courses --- */

/* --- pricing.html, testimonials.html, FAQ sections --- */
/* --- 13. Pricing, testimonials, FAQ — pricing.html, testimonials.html, services.html --- */

/* --- Commerce --- */
/* --- 14. cart.html, wishlist.html, products.html, product-detail.html, checkout.html --- */

/* --- blog.html, blog-detail.html, newsletter.html --- */
/* --- 15. Blog & newsletter — blog.html, blog-detail.html, newsletter.html --- */

/* --- dashboard.html, login.html, register.html --- */
/* --- 16. Dashboard & auth — dashboard.html, login.html, register.html --- */
/*     subscription-expired.html */

/* --- ai-assistant.html --- */
/* --- AI chat assistant --- */

/* --- 1. Global tokens & base --- */
:root {
  --primary-dark: #760031;
  --secondary: #D51C39;
  --accent: #FF6060;
  --highlight: #FEEC41;
  --bg: #FFFFFF;
  --text: #212529;
  --shadow: 0 10px 40px rgba(118, 0, 49, 0.12);
  --transition: all 0.3s ease;
  --navbar-height: 76px;
  --gradient-brand: linear-gradient(135deg, var(--primary-dark), var(--secondary));
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--highlight));
  --gradient-icon: linear-gradient(135deg, rgba(118, 0, 49, 0.08), rgba(255, 96, 96, 0.2));
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: var(--navbar-height);
}

/* --- 2. Header & navigation --- */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark) !important;
}

.navbar-brand span {
  color: var(--secondary);
}

.navbar-ank {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(118, 0, 49, 0.08);
  transition: var(--transition);
  padding: 0.75rem 0;
  z-index: 1030;
  width: 100%;
}

.navbar-ank .dropdown-menu {
  z-index: 1035;
}

.navbar-ank.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 30px rgba(118, 0, 49, 0.15);
}

.nav-link {
  font-weight: 500;
  color: var(--primary-dark) !important;
  padding: 0.5rem 0.85rem !important;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
}

.nav-link:not(.dropdown-toggle)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:not(.dropdown-toggle):hover::after,
.nav-link:not(.dropdown-toggle).active::after {
  width: 70%;
}

.navbar-ank .nav-link.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.navbar-ank .nav-link.dropdown-toggle::after {
  content: '';
  position: static;
  display: inline-block;
  margin-left: 0.35rem;
  vertical-align: middle;
  width: 0;
  height: 0;
  border: none;
  border-top: 0.35em solid currentColor;
  border-right: 0.35em solid transparent;
  border-bottom: 0;
  border-left: 0.35em solid transparent;
  background: none;
  transform: none;
  transition: var(--transition);
}

.nav-icon-btn {
  color: var(--primary-dark);
  font-size: 1.2rem;
  padding: 0.4rem 0.6rem;
  border: none;
  background: transparent;
  transition: var(--transition);
  position: relative;
}

.nav-icon-btn:hover {
  color: var(--secondary);
  transform: scale(1.1);
}

.badge-cart {
  position: absolute;
  top: -2px;
  right: -2px;
  font-size: 0.65rem;
  background: var(--accent);
  color: var(--primary-dark);
}

/* Mega menu — Courses, Calculators */
.mega-menu {
  position: static !important;
}

.mega-dropdown {
  width: 100%;
  left: 0;
  right: 0;
  border: none;
  border-radius: 0 0 12px 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem 0;
  margin-top: 0;
}

.mega-dropdown .dropdown-header {
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
}

.mega-dropdown a {
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0;
  display: block;
  transition: var(--transition);
}

.mega-dropdown a:hover,
.mega-dropdown a:focus-visible {
  color: var(--secondary);

}

/* Multilevel menu — Services & Courses */
.services-multilevel,
.courses-multilevel {
  position: relative;
}

.multilevel-dropdown {
  min-width: 240px;
  padding: 0.65rem 0;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.multilevel-dropdown>.dropend>.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.multilevel-dropdown>.dropend>.dropdown-toggle::after {
  margin-left: auto;
  vertical-align: middle;
  border-top: 0.3em solid transparent;
  border-bottom: 0.3em solid transparent;
  border-left: 0.3em solid;
  border-right: 0;
}

.multilevel-dropdown .dropdown-item {
  padding: 0.5rem 1.15rem;
  font-size: 0.92rem;
  transition: var(--transition);
}

.multilevel-dropdown .dropdown-item:hover,
.multilevel-dropdown .dropdown-item:focus {
  background: rgba(255, 96, 96, 0.15);
  color: var(--primary-dark);
}

.multilevel-dropdown .dropend>.dropdown-menu {
  min-width: 230px;
  padding: 0.5rem 0;
  border-radius: 12px;
  margin-top: 0;
}

.multilevel-dropdown .dropdown-divider {
  margin: 0.4rem 0;
  border-color: rgba(118, 0, 49, 0.1);
}

@media (min-width: 992px) {

  .services-multilevel:hover>.multilevel-dropdown,
  .courses-multilevel:hover>.multilevel-dropdown {
    display: block;
  }

  .multilevel-dropdown>.dropend:hover>.dropdown-menu {
    display: block;
    top: 0;
    left: 100%;
    margin-left: 0.15rem;
  }

  .multilevel-dropdown>.dropend>.dropdown-toggle::after {
    transform: rotate(0deg);
  }
}

/* Mobile submenu */
.mobile-submenu {
  padding-left: 0.75rem;
  border-left: 2px solid var(--accent);
  margin: 0.25rem 0 0.75rem 0.5rem;
}

.mobile-submenu-group {
  margin-bottom: 0.75rem;
}

.mobile-submenu-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  padding: 0.35rem 0.75rem 0.15rem;
}

.mobile-submenu .nav-link {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.92rem;
}

.mobile-submenu-toggle i {
  transition: transform 0.25s ease;
}

.mobile-submenu-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

/* --- 3. Buttons & forms --- */
.btn-primary-ank {
  background: var(--gradient-brand);
  border: none;
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary-ank:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(118, 0, 49, 0.3);
}

.btn-outline-ank {
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-ank:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-highlight {
  background: var(--gradient-accent);
  border: none;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 96, 96, 0.5);
  color: var(--primary-dark);
}

.btn-outline-light-ank {
  border: 2px solid #fff;
  color: #fff;
  padding: 0.65rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
}

.btn-outline-light-ank:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.contact-captcha-question {
  display: inline-flex;
  align-items: center;
  min-width: 6.5rem;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary-dark);
  background: rgba(118, 0, 49, 0.06);
  border: 1px solid rgba(118, 0, 49, 0.15);
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.search-modal .form-control {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--accent);
}

.search-modal .form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 96, 96, 0.25);
  border-color: var(--secondary);
}

/* --- 4. Layout & sections --- */
.section-padding {
  padding: 80px 0;
}

/* Shared layout — section-padding responsive (all inner pages) */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 50px 0;
  }
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Unified badges — section labels, hero pills, sidebar promos */
.badge-ank {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.badge-ank--glass {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--highlight);
  margin-bottom: 0.75rem;
}

.page-hero--hub .badge-ank--glass {
  color: #fff;
  margin-bottom: 1.25rem;
}

.bg-light-ank {
  background: #f4f9fb;
}

.bg-gradient-ank {
  background: var(--gradient-brand);
  color: #fff;
}

/* Unified gradient CTA panels */
.cta-gradient {
  background: var(--gradient-brand);
  color: #fff;
}

.cta-gradient--section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  clear: both;
}

.cta-gradient--section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255, 96, 96, 0.1);
  border-radius: 50%;
}

.cta-gradient--newsletter {
  border-radius: 16px;
  padding: 3rem;
}

.cta-gradient--boxed {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.cta-gradient--boxed::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 260px;
  height: 260px;
  background: rgba(255, 96, 96, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.cta-gradient--boxed h2,
.cta-gradient--boxed p,
.cta-gradient--boxed div {
  position: relative;
  z-index: 1;
}

.cta-gradient--sidebar {
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

/* --- 5. Cards & content --- */
.card-ank {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(118, 0, 49, 0.08);
  transition: var(--transition);
  height: auto;
}

.row.g-3>.col-6>.card-ank,
.row.g-3>.col-md-4>.card-ank,
.row.g-3>[class*="col"]>a>.card-ank,
.row.g-4>.col-6>.card-ank,
.row.g-4>.col-md-3>.card-ank,
.row.g-4>.col-md-4>.card-ank,
.row.g-4>.col-md-6>.card-ank,
.row.g-4>.col-lg-3>.card-ank,
.row.g-4>.col-lg-4>.card-ank,
.row.g-4>[class*="col"]>a>.card-ank {
  height: 100%;
}

.card-ank:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-ank .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card-ank:hover .card-img-top {
  transform: scale(1.08);
}

.card-ank .card-img-wrap {
  overflow: hidden;
}

.card-ank .card-body {
  padding: 1.5rem;
}

.card-ank .card-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.card-ank-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-ank-media-link:hover {
  color: inherit;
}

.card-ank-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.card-ank-title-link:hover {
  color: var(--secondary);
}

.card-ank:hover .card-ank-title-link {
  color: var(--secondary);
}

.content-page h2,
.content-page h3 {
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-page p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-page ul {
  margin-bottom: 1.5rem;
}

.content-page ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.page-featured-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}

.page-featured-split:has(.page-featured-image--hidden) {
  grid-template-columns: 1fr;
}

.page-featured-split__body>h2:first-child {
  margin-top: 0;
}

.page-featured-image {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(118, 0, 49, 0.08);
}

.page-featured-image--hidden {
  display: none;
}

.page-featured-image__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.page-featured-split .page-featured-image__img {
  min-height: 280px;
  max-height: none;
}

.page-featured-image__caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #6c757d;
  text-align: center;
  background: #f8f9fa;
  margin: 0;
}

@media (max-width: 767.98px) {
  .page-featured-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .page-featured-split .page-featured-image__img {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* --- 6. Footer & scroll-to-top --- */
.footer-ank {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
  clear: both;
  position: relative;
  z-index: 2;
}

#site-footer {
  clear: both;
  display: block;
}

.footer-ank h5 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-ank a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-link {
  position: relative;
  padding-bottom: 2px;
}

.footer-links-list li {
  margin-bottom: 0.55rem;
}

.footer-ank .footer-links-list .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 0;
  width: 100%;
}

.footer-ank .footer-link i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  transition: var(--transition);
}

.footer-ank .footer-link span {
  flex: 1;
}

.footer-ank .footer-link:hover i {
  background: var(--highlight);
  color: var(--primary-dark);
  transform: scale(1.08);
}

.footer-ank .footer-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
}

.footer-ank .footer-link-inline i {
  width: auto;
  height: auto;
  background: none;
  font-size: 0.85rem;
  color: var(--accent);
  border-radius: 0;
}

.footer-ank .footer-link-inline:hover i {
  background: none;
  color: var(--highlight);
  transform: none;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--highlight);
  transition: var(--transition);
}

.footer-ank .footer-links-list .footer-link::after {
  left: 2rem;
}

.footer-link:hover {
  color: var(--highlight);
  padding-left: 4px;
}

.footer-ank .footer-link-inline:hover {
  padding-left: 2px;
}

.footer-link:hover::after {
  width: calc(100% - 2rem);
}

.footer-ank .footer-link-inline:hover::after {
  width: 100%;
  left: 0;
}

.footer-brand {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand span {
  color: var(--accent);
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.social-icons a.social-icon,
.footer-ank a.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 0;
}

.sidebar-block .social-icons a.social-icon {
  background: rgba(118, 0, 49, 0.08);
  color: var(--primary-dark) !important;
}

.sidebar-block .social-icons a.social-icon:hover {
  color: #fff !important;
}

.social-icons a.social-icon i,
.footer-ank a.social-icon i {
  display: block;
  line-height: 1;
  pointer-events: none;
}

.social-icons a.social-icon:hover,
.footer-ank a.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  color: #fff !important;
}

.social-icons a.social-icon.fb:hover,
.footer-ank a.social-icon.fb:hover {
  background: #1877F2;
}

.social-icons a.social-icon.ig:hover,
.footer-ank a.social-icon.ig:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-icons a.social-icon.tw:hover,
.footer-ank a.social-icon.tw:hover {
  background: #1DA1F2;
}

.social-icons a.social-icon.yt:hover,
.footer-ank a.social-icon.yt:hover {
  background: #FF0000;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
}

.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(118, 0, 49, 0.2);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 96, 96, 0.5);
}

/* --- 7. Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- 8. Home — index.html --- */
.hero-carousel .carousel-item {
  height: 85vh;
  min-height: 500px;
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  filter: brightness(0.45);
}

.hero-caption {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 650px;
  padding: 2rem;
}

.hero-caption h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-caption p {
  font-size: 1.15rem;
  margin: 1rem 0 1.5rem;
}

.modal-offer .modal-content {
  border: none;
  border-radius: 20px;
  overflow: hidden;
}

.modal-offer .modal-header {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  padding: 1.25rem 1.5rem;
}

.modal-offer .modal-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.offer-timer {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.06), rgba(255, 96, 96, 0.12));
  border: 1px solid rgba(255, 96, 96, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  text-align: center;
}

.offer-timer-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.offer-timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
}

.offer-timer-value {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 12px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.offer-timer-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  margin-top: 0.35rem;
}

.offer-timer-sep {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 3.25rem;
}

.offer-timer.expired .offer-timer-value {
  background: #6c757d;
}

.card-ank--compact {
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.card-ank--compact:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(118, 0, 49, 0.1);
  transform: translateY(-3px);
}

.card-ank--compact .card-ank__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  font-size: 1.35rem;
}

/* index.html — hero responsive */
@media (max-width: 991.98px) {
  .hero-carousel .carousel-item {
    height: 70vh;
    min-height: 400px;
  }

  .hero-caption {
    padding: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hero-carousel .carousel-item {
    height: 60vh;
    min-height: 350px;
  }

  .offer-timer-value {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.15rem;
  }

  .offer-timer-sep {
    line-height: 2.75rem;
  }

  .offer-timer-unit {
    min-width: 3.5rem;
  }
}

/* --- 9. Inner pages — unified page hero & breadcrumbs --- */
.page-hero {
  background: var(--gradient-brand);
  padding: 72px 0 48px;
  color: #fff;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.page-hero .lead {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero--hub {
  padding: 120px 0 70px;
  position: relative;
  overflow: hidden;
}

.page-hero--hub::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 96, 96, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.page-hero--hub h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-hero--hub .lead {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.page-breadcrumb {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.05), rgba(255, 96, 96, 0.1));
  padding: 2rem 0;
}

.page-breadcrumb--on-hero {
  background: transparent;
  padding: 0;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.page-breadcrumb--on-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-breadcrumb--on-hero .breadcrumb-item a:hover {
  color: var(--highlight);
}

.page-breadcrumb--on-hero .breadcrumb-item.active {
  color: #fff;
  font-weight: 500;
}

.page-breadcrumb--on-hero .breadcrumb-item+.breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb {
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: var(--secondary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--primary-dark);
}

/* Unified stat cards — marketing, hub, calculator results */
.stat-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.25rem;
  text-align: center;
  box-shadow: 0 5px 25px rgba(118, 0, 49, 0.08);
  border: 1px solid rgba(255, 96, 96, 0.25);
  height: 100%;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.stat-card__value {
  display: block;
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.stat-card__label {
  display: block;
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.65rem;
}

.stat-card--compact {
  border-radius: 12px;
  padding: 1rem 0.75rem;
  border: 1px solid rgba(118, 0, 49, 0.08);
  box-shadow: 0 2px 8px rgba(118, 0, 49, 0.05);
}

.stat-card--compact:hover {
  transform: none;
}

.stat-card--compact .stat-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.stat-card--compact .stat-card__value {
  font-size: 1.75rem;
  line-height: 1.1;
}

.stat-card--hub {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1rem;
  box-shadow: 0 8px 30px rgba(118, 0, 49, 0.1);
  border: 1px solid rgba(255, 96, 96, 0.15);
  text-align: center;
}

.stat-card--hub:hover {
  transform: translateY(-4px);
}

.stat-card--hub .stat-card__value {
  font-size: 1.85rem;
  margin-bottom: 0.35rem;
}

.stat-card--hub .stat-card__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
}

.stat-card-row {
  text-align: center;
}

.stat-card-row--hub {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding-bottom: 1rem;
}

@media (max-width: 767.98px) {
  .stat-card__value {
    font-size: 1.75rem;
  }

  .stat-card {
    padding: 1.5rem 1rem;
  }
}

.stat-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-icon);
  color: var(--primary-dark);
  transition: var(--transition);
}

.stat-card .stat-card__icon {
  margin: 0 auto 1rem;
  font-size: 1.45rem;
}

.card-ank--category .stat-card__icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.stat-card:hover .stat-card__icon,
.card-ank--category:hover .stat-card__icon {
  background: var(--gradient-brand);
  color: #fff;
}

/* Gallery — awards.html */
.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(118, 0, 49, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.filter-pills .btn {
  border-radius: 50px;
  margin: 0.25rem;
  font-size: 0.9rem;
}

.filter-pills .btn.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

/* Calculators hub — calculators.html */
.calc-hub-search-wrap {
  position: relative;
  max-width: 520px;
}

.calc-hub-search-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}

.calc-hub-search {
  padding-left: 3rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.calc-hub-search:focus {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.calc-hub-filters {
  padding-top: 1.5rem;
}

.calc-hub-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 1rem;
  row-gap: 0;
  align-items: start;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(118, 0, 49, 0.08);
  box-shadow: 0 4px 20px rgba(118, 0, 49, 0.06);
  padding: 1.35rem 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.calc-hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(118, 0, 49, 0.12);
  border-color: rgba(255, 96, 96, 0.35);
  color: inherit;
}

.calc-hub-card-icon {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.1), rgba(255, 96, 96, 0.15));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
  margin-bottom: 0;
}

.calc-hub-card-icon i {
  display: block;
  line-height: 1;
}

.calc-hub-icon-alt {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.12), rgba(118, 0, 49, 0.06));
}

.calc-hub-icon-name {
  background: linear-gradient(135deg, rgba(255, 96, 96, 0.18), rgba(118, 0, 49, 0.08));
}

.calc-hub-icon-life {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.15), rgba(255, 96, 96, 0.12));
}

.calc-hub-icon-lucky {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 96, 96, 0.12));
}

.calc-hub-card-body {
  display: contents;
}

.calc-hub-card-meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.calc-hub-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  background: rgba(118, 0, 49, 0.06);
  padding: 0.18rem 0.5rem;
  border-radius: 50px;
  white-space: nowrap;
}

.calc-hub-free,
.calc-hub-featured {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.5rem;
  border-radius: 50px;
  white-space: nowrap;
}

.calc-hub-free {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
}

.calc-hub-featured {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.calc-hub-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 0 0 0.4rem;
  line-height: 1.35;
  padding-top: 0.15rem;
}

.calc-hub-card p {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 0.88rem;
  color: var(--secondary);
  line-height: 1.6;
  margin: 0.9rem 0 0;
}

.calc-hub-link {
  grid-column: 1 / -1;
  grid-row: 4;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(118, 0, 49, 0.08);
}

.calc-hub-card:hover .calc-hub-link {
  color: var(--accent, #ff6060);
}

.calc-hub-card:hover .calc-hub-link i {
  transform: translateX(3px);
}

.calc-hub-link i {
  transition: transform 0.2s ease;
}

.calc-hub-item>.calc-hub-card {
  min-height: 100%;
}

.calc-hub-promo {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(118, 0, 49, 0.08);
  border: 1px solid rgba(118, 0, 49, 0.06);
}

.calc-hub-promo-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.calc-hub-promo-item+.calc-hub-promo-item {
  border-top: 1px solid rgba(118, 0, 49, 0.08);
}

.calc-hub-promo-item i {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.1), rgba(255, 96, 96, 0.12));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.calc-hub-promo-item strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
}

@media (max-width: 767.98px) {
  .page-hero--hub {
    padding: 100px 0 60px;
  }

  .stat-card-row--hub {
    margin-top: -1.5rem;
  }

  .calc-hub-filters .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }

  .calc-hub-card {
    grid-template-columns: 54px 1fr;
    column-gap: 0.85rem;
    padding: 1.15rem 1.2rem;
  }

  .calc-hub-card-icon {
    width: 54px;
    height: 54px;
    font-size: 1.35rem;
  }

  .calc-hub-card h3 {
    font-size: 1.02rem;
  }
}

/* Error pages — 404.html, 500.html */
.error-page {
  min-height: calc(100vh - var(--navbar-height) - 120px);
  padding: 4rem 0 5rem;
  background: linear-gradient(180deg, rgba(118, 0, 49, 0.04) 0%, #fff 45%, rgba(255, 96, 96, 0.06) 100%);
  display: flex;
  align-items: center;
}

.error-page-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
  background: rgba(213, 28, 57, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.error-page-label-500 {
  color: #856404;
  background: rgba(255, 193, 7, 0.2);
}

.error-code-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .error-code-wrap {
    justify-content: flex-start;
  }
}

.error-code-digit {
  font-size: clamp(4.5rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-code-icon {
  width: clamp(72px, 18vw, 100px);
  height: clamp(72px, 18vw, 100px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.12), rgba(255, 96, 96, 0.2));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(2rem, 5vw, 2.75rem);
  box-shadow: 0 12px 40px rgba(118, 0, 49, 0.12);
  animation: error-icon-pulse 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes error-icon-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

@keyframes error-gear-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.error-page-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.error-page-lead {
  font-size: 1.05rem;
  color: var(--secondary);
  line-height: 1.65;
  margin-bottom: 0;
  max-width: 520px;
}

.error-page-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 12px 40px rgba(118, 0, 49, 0.1);
  border: 1px solid rgba(118, 0, 49, 0.08);
  height: 100%;
}

.error-page-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-page-links li+li {
  margin-top: 0.5rem;
}

.error-page-links a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.error-page-links a>i:first-child {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.1), rgba(255, 96, 96, 0.12));
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.error-page-links a>i:last-child {
  margin-left: auto;
  color: var(--accent);
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.error-page-links a:hover {
  background: rgba(255, 96, 96, 0.08);
  color: var(--primary-dark);
  transform: translateX(4px);
}

.error-page-links a:hover>i:last-child {
  opacity: 1;
  transform: translateX(0);
}

.error-page-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-page-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  color: var(--secondary);
  line-height: 1.5;
}

.error-page-steps li+li {
  border-top: 1px solid rgba(118, 0, 49, 0.08);
}

.error-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-contact-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.error-contact-link i {
  color: var(--secondary);
}

.error-contact-link:hover {
  color: var(--secondary);
}

@media (max-width: 991.98px) {
  .error-page {
    padding: 3rem 0 4rem;
    min-height: auto;
  }

  .error-page-lead {
    margin-left: auto;
    margin-right: auto;
  }
}

/* 500 page — centered grid design (500.html) */
.err5-body {
  background: #1a0010;
}

.err5-hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  padding: 3.5rem 0 4rem;
  background: linear-gradient(165deg, #3d0019 0%, var(--primary-dark) 35%, #8b1538 70%, #2d0014 100%);
  color: #fff;
  overflow: hidden;
}

.err5-hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  margin-left: calc(min(90vw, 520px) / -2);
  background: radial-gradient(circle, rgba(255, 96, 96, 0.35) 0%, transparent 65%);
  pointer-events: none;
  animation: err5-glow-pulse 4s ease-in-out infinite;
}

@keyframes err5-glow-pulse {

  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.err5-wrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.err5-visual {
  position: relative;
  width: fit-content;
  margin: 0 auto 2rem;
}

.err5-grid {
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 72px);
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  transform: rotate(-3deg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.err5-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  transition: transform 0.3s ease;
}

.err5-cell-fault {
  background: rgba(255, 193, 7, 0.15);
  border-color: rgba(255, 193, 7, 0.4);
  color: #ffc107;
  animation: err5-cell-shake 3s ease-in-out infinite;
}

.err5-cell-fault:nth-child(2) {
  animation-delay: 0.2s;
}

.err5-cell-fault:nth-child(6) {
  animation-delay: 0.5s;
}

.err5-cell-fault:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes err5-cell-shake {

  0%,
  90%,
  100% {
    transform: translateX(0);
  }

  92% {
    transform: translateX(-2px);
  }

  94% {
    transform: translateX(2px);
  }

  96% {
    transform: translateX(-2px);
  }
}

.err5-cell-core {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border: none;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 0 24px rgba(255, 96, 96, 0.5);
  animation: err5-core-pulse 2s ease-in-out infinite;
}

@keyframes err5-core-pulse {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(255, 96, 96, 0.4);
  }

  50% {
    box-shadow: 0 0 36px rgba(255, 96, 96, 0.75);
  }
}

.err5-code-overlay {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(3.5rem, 12vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow:
    0 0 40px rgba(255, 96, 96, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.err5-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.err5-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.err5-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.err5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.err5-troubleshoot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.err5-troubleshoot-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.err5-tip {
  text-align: center;
  padding: 0.5rem;
  height: 100%;
}

.err5-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(254, 236, 65, 0.2);
  color: var(--highlight);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.err5-tip h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.err5-tip p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.err5-tip a {
  color: var(--highlight);
  font-weight: 600;
  text-decoration: none;
}

.err5-tip a:hover {
  text-decoration: underline;
}

.err5-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.err5-note a {
  color: var(--highlight);
  font-weight: 600;
  text-decoration: none;
}

.err5-note a:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .err5-grid {
    grid-template-columns: repeat(3, 58px);
    grid-template-rows: repeat(3, 58px);
    gap: 8px;
    padding: 10px;
  }

  .err5-cell {
    font-size: 1.2rem;
    border-radius: 10px;
  }

  .err5-actions .btn {
    width: 100%;
  }

  .err5-troubleshoot {
    padding: 1.25rem 1rem;
  }
}

/* 404 page — lost path / missing grid design (404.html) */
.err4-body {
  background: #120008;
}

.err4-hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  padding: 3rem 0 4rem;
  background: linear-gradient(155deg, #2a0012 0%, var(--primary-dark) 30%, #6b1235 55%, #1f000d 100%);
  color: #fff;
  overflow: hidden;
}

.err4-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.err4-stars span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(254, 236, 65, 0.6);
  animation: err4-twinkle 3s ease-in-out infinite;
}

.err4-stars span:nth-child(1) {
  top: 12%;
  left: 18%;
  animation-delay: 0s;
}

.err4-stars span:nth-child(2) {
  top: 28%;
  right: 22%;
  animation-delay: 0.6s;
  width: 3px;
  height: 3px;
}

.err4-stars span:nth-child(3) {
  top: 55%;
  left: 8%;
  animation-delay: 1.2s;
}

.err4-stars span:nth-child(4) {
  bottom: 25%;
  right: 12%;
  animation-delay: 0.3s;
  width: 5px;
  height: 5px;
}

.err4-stars span:nth-child(5) {
  top: 8%;
  right: 35%;
  animation-delay: 1.8s;
}

@keyframes err4-twinkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

.err4-wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.err4-visual {
  text-align: center;
  margin-bottom: 2rem;
}

.err4-digits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 3vw, 1.5rem);
  margin-bottom: 0.75rem;
}

.err4-big {
  font-size: clamp(4rem, 14vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 50px rgba(255, 96, 96, 0.5);
  animation: err4-big-float 4s ease-in-out infinite;
}

.err4-big:last-child {
  animation-delay: 0.5s;
}

@keyframes err4-big-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.err4-grid-wrap {
  padding: 4px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 96, 96, 0.5), rgba(254, 236, 65, 0.35));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.err4-grid {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  grid-template-rows: repeat(3, 64px);
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(20, 0, 10, 0.85);
}

.err4-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
}

.err4-cell-missing {
  background: transparent;
  border: 2px dashed rgba(254, 236, 65, 0.45);
  color: rgba(254, 236, 65, 0.7);
  font-size: 1.1rem;
  animation: err4-missing-pulse 2.5s ease-in-out infinite;
}

.err4-cell-missing:nth-child(2) {
  animation-delay: 0.3s;
}

.err4-cell-missing:nth-child(6) {
  animation-delay: 0.7s;
}

.err4-cell-missing:nth-child(7) {
  animation-delay: 1.1s;
}

@keyframes err4-missing-pulse {

  0%,
  100% {
    opacity: 0.55;
    border-color: rgba(254, 236, 65, 0.35);
  }

  50% {
    opacity: 1;
    border-color: rgba(254, 236, 65, 0.7);
  }
}

.err4-cell-center {
  background: linear-gradient(135deg, var(--highlight), #ffb347);
  border: none;
  color: var(--primary-dark);
  font-size: 1.65rem;
  box-shadow: 0 0 28px rgba(254, 236, 65, 0.55);
  animation: err4-compass-spin 12s linear infinite;
}

@keyframes err4-compass-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.err4-visual-caption {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.err4-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.err4-title {
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.err4-lead {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

.err4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.err4-search-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
}

.err4-search-hint i {
  color: var(--highlight);
}

.err4-links-panel {
  margin-bottom: 1.5rem;
}

.err4-link-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  height: 100%;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.err4-link-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(254, 236, 65, 0.4);
  transform: translateY(-3px);
  color: #fff;
}

.err4-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(254, 236, 65, 0.15);
  color: var(--highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.err4-link-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.err4-link-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.err4-link-text small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.err4-link-arrow {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.err4-link-card:hover .err4-link-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.err4-note {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.err4-note a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin: 0 0.35rem;
  transition: color 0.2s ease;
}

.err4-note a:hover {
  color: var(--highlight);
}

@media (max-width: 575.98px) {
  .err4-grid {
    grid-template-columns: repeat(3, 52px);
    grid-template-rows: repeat(3, 52px);
    gap: 6px;
    padding: 10px;
  }

  .err4-cell {
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .err4-cell-center {
    font-size: 1.35rem;
  }

  .err4-actions .btn {
    width: 100%;
  }

  .err4-digits {
    gap: 0.35rem;
  }
}

/* --- 10. Sidebars — service-detail.html, course-detail.html, contact.html, calculators/ --- */
.page-with-sidebar .row {
  align-items: flex-start;
}

.page-with-sidebar .card-ank,
.page-with-sidebar .card-ank--testimonial {
  height: auto;
}

.page-sidebar {
  top: calc(var(--navbar-height) + 14px);
  z-index: 10;
}

.sidebar-block {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 15px rgba(118, 0, 49, 0.06);
}

.sidebar-block h5 {
  color: var(--primary-dark);
  font-weight: 700;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 1rem;
}

.sidebar-block ul,
.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-block ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-block ul li a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-block ul li a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.cta-gradient--sidebar h5,
.sidebar-quick-title {
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0;
  margin-bottom: 0.5rem;
}

.sidebar-quick-meta {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.sidebar-quick-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.25rem 0;
}

.sidebar-quick-features li i {
  color: var(--highlight);
  font-size: 0.9rem;
}

.sidebar-quick-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.sidebar-quick-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--highlight);
  margin-bottom: 0;
  line-height: 1;
}

.sidebar-quick-price-note,
.sidebar-quick-price small {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7) !important;
}

.sidebar-nav-block ul li {
  padding: 0;
  border-bottom: none;
  margin-bottom: 0.35rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  color: var(--text) !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid transparent;
}

.sidebar-nav-link>i:first-child {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(118, 0, 49, 0.06);
  color: var(--secondary);
  border-radius: 8px;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.sidebar-nav-link span {
  flex: 1;
}

.sidebar-nav-link .nav-arrow {
  font-size: 0.75rem;
  color: var(--secondary);
  opacity: 0;
  transform: translateX(-4px);
  transition: var(--transition);
  background: none;
  width: auto;
  height: auto;
}

.sidebar-nav-link:hover {
  background: rgba(255, 96, 96, 0.12);
  color: var(--primary-dark) !important;
  border-color: rgba(255, 96, 96, 0.35);
  padding-left: 0.85rem;
}

.sidebar-nav-link.active {
  font-weight: 600;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.06), rgba(255, 96, 96, 0.15));
  color: var(--primary-dark) !important;
  border-color: rgba(255, 96, 96, 0.35);
  border-left: 3px solid var(--accent);
  padding-left: calc(0.85rem - 3px);
}

.sidebar-nav-link:hover>i:first-child,
.sidebar-nav-link.active>i:first-child {
  background: var(--gradient-accent);
  color: var(--primary-dark);
}

.sidebar-nav-link:hover .nav-arrow,
.sidebar-nav-link.active .nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-nav-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-nav-link:has(.sidebar-nav-price) {
  flex-wrap: wrap;
}

.sidebar-nav-link:has(.sidebar-nav-price) .nav-arrow {
  display: none;
}

.sidebar-testimonial-box {
  border-left: 4px solid var(--accent);
}

.sidebar-quote {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  border: none;
}

.sidebar-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.sidebar-help-box {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.03), rgba(255, 96, 96, 0.08));
  border: 1px solid rgba(255, 96, 96, 0.25);
}

.sidebar-help-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  color: var(--primary-dark) !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.sidebar-help-link i {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
}

.sidebar-help-link:hover {
  color: var(--secondary) !important;
  padding-left: 4px;
}

/* Sidebar list items — blog & product widgets */
.sidebar-blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-block>.sidebar-blog-item+.sidebar-blog-item,
.sidebar-blog-list>.sidebar-blog-item+.sidebar-blog-item {
  margin-top: 0.75rem;
}

.sidebar-blog-item,
.sidebar-product-item {
  border-radius: 10px;
  border: 1px solid rgba(118, 0, 49, 0.08);
  text-decoration: none;
  transition: var(--transition);
}

.sidebar-product-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.sidebar-product-item:last-child {
  margin-bottom: 0;
}

.sidebar-blog-item:hover,
.sidebar-product-item:hover {
  border-color: rgba(255, 96, 96, 0.45);
  background: rgba(255, 96, 96, 0.06);
  transform: translateX(3px);
  text-decoration: none;
}

.sidebar-blog-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  color: var(--text);
}

.sidebar-blog-item:hover {
  color: var(--text);
}


.sidebar-product-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.pill-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  background: rgba(213, 28, 57, 0.1);
  border-radius: 50px;
}

.sidebar-blog-tag {
  display: inline-block;
  width: fit-content;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  background: rgba(118, 0, 49, 0.08);
  border-radius: 50px;
  padding: 0.22rem 0.6rem;
  margin-bottom: 0;
  line-height: 1.3;
}

.course-category-meta {
  padding: 0.3rem 0.75rem;
}

.sidebar-blog-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.45;
  margin-bottom: 0;
  transition: color 0.2s ease;
}

.sidebar-blog-item:hover .sidebar-blog-title {
  color: var(--secondary);
}

.sidebar-blog-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: #6c757d;
  margin-top: 0.1rem;
  line-height: 1;
}

.sidebar-blog-date i {
  font-size: 0.82rem;
  line-height: 1;
  flex-shrink: 0;
}

.sidebar-product-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

.sidebar-product-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
}

@media (max-width: 991.98px) {
  .page-sidebar {
    position: static !important;
    margin-bottom: 2rem;
  }
}

/* --- 11. Calculators — calculators/*.html --- */
.panel-ank {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.result-box {
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.05), rgba(255, 96, 96, 0.15));
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  display: none;
}

.result-box.show {
  display: block;
  animation: fadeIn 0.5s ease;
}

.result-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

/* Lo Shu Grid — calculators/loshu-grid.html */
.result-box-loshu {
  text-align: left;
}

.loshu-grid-wrap {
  max-width: 320px;
}

.loshu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.loshu-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.5rem;
  border: 2px solid rgba(118, 0, 49, 0.12);
  background: #fff;
  transition: var(--transition);
}

.loshu-cell-present {
  border-color: var(--accent);
  background: linear-gradient(145deg, rgba(255, 96, 96, 0.08), rgba(118, 0, 49, 0.04));
}

.loshu-cell-missing {
  border-style: dashed;
  border-color: rgba(118, 0, 49, 0.2);
  background: rgba(118, 0, 49, 0.03);
  opacity: 0.85;
}

.loshu-digit {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.loshu-count {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
  min-height: 1rem;
}

.loshu-mark {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--secondary);
  display: inline-block;
}

.loshu-missing-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #999;
}

.loshu-summary {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(118, 0, 49, 0.08);
}

.loshu-summary p {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.loshu-summary p:last-child {
  margin-bottom: 0;
}

.vedic-core-insights {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(118, 0, 49, 0.08);
  box-shadow: 0 2px 8px rgba(118, 0, 49, 0.05);
}

.vedic-core-insights p {
  font-size: 0.95rem;
  color: var(--secondary);
  line-height: 1.55;
}

/* Name numerology — calculators/name-numerology.html */
.result-box-name {
  text-align: left;
}

.name-predictions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.name-prediction-box {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(118, 0, 49, 0.08);
  height: 100%;
}

.name-prediction-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.name-prediction-positive {
  border-left: 3px solid #28a745;
}

.name-prediction-positive h4 {
  color: #1e7e34;
}

.name-prediction-negative {
  border-left: 3px solid var(--secondary);
}

.name-prediction-negative h4 {
  color: var(--secondary);
}

.name-prediction-box ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
}

.name-prediction-box li+li {
  margin-top: 0.4rem;
}

@media (max-width: 767.98px) {
  .name-predictions {
    grid-template-columns: 1fr;
  }
}

.mobile-compat-box {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(118, 0, 49, 0.1);
  text-align: left;
}

.mobile-compat-box h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mobile-compat-box p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.mobile-compat-box p:last-child {
  margin-bottom: 0;
}

.mobile-compat-excellent {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.06), #fff);
}

.mobile-compat-excellent h4 {
  color: #1e7e34;
}

.mobile-compat-good {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, rgba(23, 162, 184, 0.06), #fff);
}

.mobile-compat-good h4 {
  color: #117a8b;
}

.mobile-compat-moderate {
  border-left: 4px solid #ffc107;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), #fff);
}

.mobile-compat-moderate h4 {
  color: #856404;
}

.mobile-compat-low {
  border-left: 4px solid var(--secondary);
  background: linear-gradient(135deg, rgba(213, 28, 57, 0.06), #fff);
}

.mobile-compat-low h4 {
  color: var(--secondary);
}

.mobile-stat-note {
  display: block;
  font-size: 0.68rem;
  color: #888;
  margin-top: 0.2rem;
  font-weight: 500;
}

.kundli-partner-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.25rem;
  border: 1px solid rgba(118, 0, 49, 0.1);
  height: 100%;
  box-shadow: 0 2px 10px rgba(118, 0, 49, 0.05);
}

.kundli-partner-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.kundli-partner-boy {
  border-top: 3px solid #3d7ea6;
}

.kundli-partner-boy h4 {
  color: #2c5f7a;
}

.kundli-partner-girl {
  border-top: 3px solid var(--accent);
}

.kundli-partner-girl h4 {
  color: var(--primary-dark);
}

.kundli-partner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(118, 0, 49, 0.12);
  font-size: 0.92rem;
}

.kundli-partner-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kundli-partner-row strong {
  color: var(--primary-dark);
  font-size: 1.15rem;
}

.kundli-partner-row strong.text-end {
  font-size: 0.85rem;
  max-width: 58%;
  text-align: right;
  word-break: break-word;
  line-height: 1.3;
}

.kundli-score-ring {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  background: linear-gradient(135deg, rgba(255, 236, 65, 0.35), rgba(255, 96, 96, 0.2));
  border: 2px solid var(--accent);
  margin-bottom: 0.75rem;
}

.kundli-positive-box {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  border-left: 3px solid #28a745;
  margin-top: 1rem;
}

.kundli-positive-box h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e7e34;
  margin-bottom: 0.65rem;
}

.kundli-positive-box ul {
  margin-bottom: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.kundli-positive-box li+li {
  margin-top: 0.35rem;
}

.kundli-compare-table {
  width: 100%;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.kundli-compare-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--secondary);
  font-weight: 700;
  padding: 0.5rem 0.4rem;
  border-bottom: 2px solid rgba(118, 0, 49, 0.1);
}

.kundli-compare-table td {
  padding: 0.65rem 0.4rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(118, 0, 49, 0.06);
}

.kundli-status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 50px;
  white-space: nowrap;
}

.kundli-status-excellent {
  background: rgba(40, 167, 69, 0.15);
  color: #1e7e34;
}

.kundli-status-good {
  background: rgba(23, 162, 184, 0.15);
  color: #117a8b;
}

.kundli-status-fair {
  background: rgba(255, 193, 7, 0.2);
  color: #856404;
}

.kundli-status-weak {
  background: rgba(213, 28, 57, 0.12);
  color: var(--secondary);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 767.98px) {
  .cta-gradient--boxed {
    padding: 2rem 1.25rem;
  }

  .cta-gradient--boxed .btn-lg {
    display: block;
    width: 100%;
    margin-right: 0 !important;
  }
}

/* --- 12. Courses — courses.html, course-detail.html --- */
.card-ank--category {
  display: block;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid #eef2f5;
  box-shadow: 0 3px 15px rgba(118, 0, 49, 0.06);
  transition: var(--transition);
}

.card-ank--category:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
  color: var(--text);
}

.card-ank--category h5 {
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.card-ank--category p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* --- 13. Pricing, testimonials, FAQ — pricing.html, testimonials.html --- */
.card-ank--pricing {
  border: 2px solid #e9ecef;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  position: relative;
  background: #fff;
}

.card-ank--pricing.is-featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

.card-ank--pricing:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-ank--pricing.is-featured:hover {
  transform: scale(1.05) translateY(-5px);
}

@media (max-width: 991.98px) {
  .card-ank--pricing.is-featured {
    transform: none;
  }
}

.card-ank__price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.card-ank__price small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--secondary);
}

.card-ank--testimonial {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 5px 25px rgba(118, 0, 49, 0.08);
  height: auto;
}

.row.g-4>[class*="col"]>.card-ank--testimonial {
  height: 100%;
}

.rating-stars {
  color: #ffc107;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.accordion-ank .accordion-button {
  font-weight: 600;
  color: var(--primary-dark);
}

.accordion-ank .accordion-button:not(.collapsed) {
  background: rgba(255, 96, 96, 0.15);
  color: var(--primary-dark);
}

.accordion-ank .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 96, 96, 0.25);
}

/* --- 14. Commerce — cart.html, wishlist.html, products.html, product-detail.html, checkout.html --- */
.list-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.product-main-img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  transition: var(--transition);
}

.product-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.product-thumb.active,
.product-thumb:hover {
  border-color: var(--accent);
}

body[data-page="wishlist"] .section-padding .row,
body[data-page="cart"] .section-padding .row {
  align-items: flex-start;
}

body[data-page="wishlist"] .card-ank,
body[data-page="cart"] .card-ank {
  height: auto;
}

.wishlist-item {
  position: relative;
  margin-bottom: 1rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #dee2e6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .wishlist-item .card-body {
    padding: 1rem;
  }

  .wishlist-item .list-thumb {
    width: 70px;
    height: 70px;
  }

  .wishlist-item .wishlist-actions {
    width: 100%;
  }

  .wishlist-item .wishlist-actions .btn {
    flex: 1 1 auto;
  }
}

/* --- 15. Blog & newsletter — blog.html, blog-detail.html, newsletter.html --- */
.sidebar-recent-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.sidebar-recent-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.sidebar-recent-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.sidebar-recent-item:hover {
  text-decoration: none;
}

.sidebar-recent-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 400;
  color: #3d3d3d;
  line-height: 1.45;
  margin-bottom: 0.2rem;
  transition: color 0.2s ease;
}

.sidebar-recent-item:hover .sidebar-recent-title {
  color: var(--secondary);
}

.sidebar-recent-date {
  display: block;
  font-size: 0.8rem;
  color: #9a9a9a;
  line-height: 1.3;
}

.sidebar-recent-view-all {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sidebar-recent-view-all:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-meta {
  font-size: 0.9rem;
  color: var(--secondary);
}

.blog-meta i {
  margin-right: 0.25rem;
}

.tag-badge {
  background: rgba(255, 96, 96, 0.2);
  color: var(--primary-dark);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  text-decoration: none;
  display: inline-block;
  margin: 0.15rem;
  transition: var(--transition);
}

.tag-badge:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  color: var(--primary-dark);
  transition: var(--transition);
  text-decoration: none;
}

.share-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
}

.sidebar-advertisements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-ad-block {
  overflow: hidden;
}

.sidebar-ad-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a9a9a;
  margin-bottom: 0.5rem;
}

.sidebar-ad-image {
  border-radius: 10px;
  display: block;
}

.sidebar-ad-image-link {
  display: block;
  text-decoration: none;
}

.sidebar-ad-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.sidebar-ad-copy {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.sidebar-ad-embed {
  overflow: hidden;
}

/* --- 16. Dashboard & auth — dashboard.html, login.html, register.html --- */
.dashboard-layout {
  background: #eef2f6;
}

.dashboard-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(118, 0, 49, 0.04);
  margin-bottom: 1rem;
}

/* User card */
.dashboard-user-card {
  padding: 1.25rem;
}

.dashboard-user-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.dashboard-user-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dashboard-user-avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(118, 0, 49, 0.12);
}

.dashboard-user-status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: #198754;
  border: 2px solid #fff;
  border-radius: 50%;
}

.dashboard-user-meta {
  min-width: 0;
  text-align: left;
}

.dashboard-user-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1d21;
  margin: 0 0 0.15rem;
  line-height: 1.3;
}

.dashboard-user-email {
  font-size: 0.78rem;
  color: #6c757d;
  margin: 0 0 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-user-plan {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(118, 0, 49, 0.06);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.dashboard-user-plan i {
  font-size: 0.65rem;
  color: var(--secondary);
}

.dashboard-user-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.85rem 0;
  margin-bottom: 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.dashboard-user-stat {
  text-align: center;
}

.dashboard-user-stat-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.dashboard-user-stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-user-cta {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Navbar user menu (dashboard) */
.navbar-user-menu {
  position: relative;
}

.navbar-user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.5rem 0.35rem 0.35rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 50px;
  background: #fff;
  color: #1a1d21;
  font-size: 0.8125rem;
  line-height: 1.2;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.navbar-user-toggle::after {
  margin-left: 0.15rem;
  font-size: 0.65rem;
  color: #6c757d;
}

.navbar-user-toggle:hover,
.navbar-user-toggle:focus,
.navbar-user-toggle.show {
  border-color: rgba(118, 0, 49, 0.25);
  box-shadow: 0 2px 12px rgba(118, 0, 49, 0.1);
}

.navbar-user-toggle-avatar {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}

.navbar-user-avatar-sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(118, 0, 49, 0.12);
}

.navbar-user-toggle-avatar .dashboard-user-status {
  width: 0.55rem;
  height: 0.55rem;
  bottom: 0;
  right: 0;
}

.navbar-user-toggle-text {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 8.5rem;
}

.navbar-user-toggle-name {
  font-weight: 600;
  color: #1a1d21;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.navbar-user-toggle-plan {
  font-size: 0.68rem;
  color: #6c757d;
}

.navbar-user-dropdown {
  width: min(20rem, calc(100vw - 1.5rem));
  padding: 0;
  margin-top: 0.65rem !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.navbar-user-card.dashboard-user-card {
  padding: 1.15rem;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.dashboard-user-card-mobile {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.15rem;
  background: #fff;
}

/* Navbar user dropdown — account menu links */
.navbar-user-menu-links {
  padding: 0.65rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
}

.navbar-user-menu-heading {
  margin: 0 0 0.4rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #adb5bd;
}

.navbar-user-menu-list>li+li {
  margin-top: 0.15rem;
}

.navbar-user-menu-list--footer {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar-user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.navbar-user-menu-item:hover {
  background: #fff;
  color: var(--primary-dark);
}

.navbar-user-menu-item:hover .navbar-user-menu-icon {
  background: rgba(118, 0, 49, 0.1);
  color: var(--secondary);
}

.navbar-user-menu-item.active {
  background: #fff;
  color: var(--primary-dark);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.navbar-user-menu-item.active .navbar-user-menu-icon {
  background: rgba(118, 0, 49, 0.12);
  color: var(--secondary);
}

.navbar-user-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  color: #6c757d;
  font-size: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.navbar-user-menu-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.navbar-user-menu-item--signout {
  color: #6c757d;
}

.navbar-user-menu-item--signout:hover {
  color: #842029;
  background: rgba(220, 53, 69, 0.06);
}

.navbar-user-menu-item--signout:hover .navbar-user-menu-icon {
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.12);
  color: #842029;
}

.navbar-user-menu-links--mobile {
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fafbfc;
}

body[data-page="dashboard"] .navbar-ank .d-flex.align-items-center {
  gap: 0.35rem !important;
}

@media (max-width: 1199.98px) {
  .navbar-user-toggle {
    padding: 0.25rem;
    border-radius: 50%;
  }

  .navbar-user-toggle::after {
    display: none;
  }
}

/* Dashboard left sidebar — dash-rail */
.dashboard-sidebar {
  position: relative;
}

.dash-rail-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-rail-toggle:hover {
  border-color: rgba(118, 0, 49, 0.25);
}

.dash-rail-toggle-chevron {
  font-size: 0.85rem;
  color: #6c757d;
  transition: transform 0.25s ease;
}

.dash-rail-toggle[aria-expanded="true"] .dash-rail-toggle-chevron {
  transform: rotate(180deg);
}

.dash-rail {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  max-height: calc(100vh - var(--navbar-height) - 2rem);
}

.dash-rail-head {
  flex-shrink: 0;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dash-rail-head-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.dash-rail-logo {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--gradient-brand);
  color: var(--highlight);
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(118, 0, 49, 0.2);
}

.dash-rail-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #868e96;
  margin: 0;
  line-height: 1.2;
}

.dash-rail-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1d21;
  margin: 0;
  line-height: 1.25;
}

.dash-rail-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dash-rail-search:focus-within {
  border-color: rgba(213, 28, 57, 0.4);
  box-shadow: 0 0 0 3px rgba(213, 28, 57, 0.1);
}

.dash-rail-search>i {
  color: #adb5bd;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dash-rail-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  color: #2b3035;
  padding: 0;
}

.dash-rail-search-input:focus {
  outline: none;
}

.dash-rail-search-input::placeholder {
  color: #adb5bd;
}

.dash-rail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-rail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #495057;
  text-decoration: none;
  background: #f4f6f8;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dash-rail-pill i {
  font-size: 0.8rem;
  color: #6c757d;
}

.dash-rail-pill em {
  font-style: normal;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(118, 0, 49, 0.08);
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.1rem;
}

.dash-rail-pill:hover {
  background: rgba(118, 0, 49, 0.06);
  color: var(--primary-dark);
  border-color: rgba(118, 0, 49, 0.12);
}

.dash-rail-pill.active {
  background: rgba(118, 0, 49, 0.1);
  color: var(--primary-dark);
  border-color: rgba(213, 28, 57, 0.25);
}

.dash-rail-pill.active i {
  color: var(--secondary);
}

.dash-rail-nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-rail-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.75rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(118, 0, 49, 0.2) transparent;
}

/* Simple 2-level dashboard nav */
.dash-nav-tree>.dash-nav-l1-item+.dash-nav-l1-item {
  margin-top: 0.15rem;
}

.dash-nav-l1,
.dash-nav-parent.dashboard-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  color: #495057;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-parent .dashboard-nav-chevron {
  font-size: 0.65rem;
  color: #adb5bd;
  transition: transform 0.2s ease;
}

.dashboard-nav-group.open .dash-nav-parent .dashboard-nav-chevron {
  transform: rotate(180deg);
  color: var(--secondary);
}

.dash-nav-l2 {
  display: block;
  padding: 0.4rem 0.65rem 0.4rem 1.25rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #6c757d;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-l2-list,
.dash-nav-l2.dashboard-nav-submenu {
  margin: 0.1rem 0 0.35rem;
  padding: 0;
}

.dash-nav-l2.dashboard-nav-submenu>li+li {
  margin-top: 0.05rem;
}

.dash-nav-external {
  font-size: 0.6rem;
  margin-left: 0.25rem;
  color: #ced4da;
  vertical-align: 0.05em;
}

.dash-nav-l1:hover,
.dash-nav-parent:hover,
.dash-nav-l2:hover {
  background: #f4f6f8;
  color: var(--primary-dark);
}

.dashboard-nav-link.dash-nav-l1.active,
.dashboard-nav-link.dash-nav-l2.active {
  background: rgba(118, 0, 49, 0.08);
  color: var(--primary-dark);
  font-weight: 600;
}

.dashboard-nav-link.dash-nav-l1.active::before,
.dashboard-nav-link.dash-nav-l2.active::before {
  display: none;
}

.dashboard-nav-group.has-active-child>.dash-nav-parent {
  background: #f8f9fa;
  color: var(--primary-dark);
  font-weight: 600;
}

.dash-nav-l1-item.is-hidden {
  display: none !important;
}

.dash-rail-section {
  margin-bottom: 0.5rem;
}

.dash-rail-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #adb5bd;
  padding: 0.35rem 0.55rem 0.3rem;
  margin: 0;
}

.dash-rail-list>.dash-rail-item+.dash-rail-item {
  margin-top: 0.12rem;
}

.dash-rail-link,
.dashboard-nav-toggle.dash-rail-link-parent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: #495057 !important;
  cursor: pointer;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}

.dash-rail-link:focus-visible,
.dashboard-nav-toggle:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.dash-rail-link-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  background: #f4f6f8;
  color: #6c757d;
  font-size: 0.95rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.dash-rail-link-label {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #343a40;
  line-height: 1.3;
}

.dash-rail-badge,
.dashboard-nav-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: #eef0f2;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  min-width: 1.3rem;
  text-align: center;
  flex-shrink: 0;
}

.dashboard-nav-chevron {
  font-size: 0.68rem;
  color: #ced4da;
  flex-shrink: 0;
  transition: transform 0.22s ease, color 0.2s ease;
}

.dashboard-nav-group.open .dashboard-nav-chevron {
  transform: rotate(180deg);
  color: var(--secondary);
}

.dash-rail-sub {
  margin: 0.15rem 0 0.25rem 0.45rem;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(118, 0, 49, 0.1);
}

.dashboard-nav-submenu[hidden] {
  display: none !important;
}

.dashboard-nav-group.open .dash-rail-sub:not([hidden]) {
  animation: dashRailSubIn 0.2s ease;
}

@keyframes dashRailSubIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dash-rail-link-sub {
  padding: 0.45rem 0.55rem;
}

.dash-rail-link-sub .dash-rail-link-label {
  font-size: 0.8125rem;
}

.dash-rail-external,
.dashboard-nav-external-icon {
  font-size: 0.62rem;
  color: #ced4da;
  flex-shrink: 0;
}

.dash-rail-link:hover {
  background: #f8f9fa;
}

.dash-rail-link:hover .dash-rail-link-icon {
  background: rgba(118, 0, 49, 0.08);
  color: var(--secondary);
}

.dash-rail-link:hover .dash-rail-link-label {
  color: var(--primary-dark);
}

.dashboard-nav-link.active {
  background: rgba(118, 0, 49, 0.08);
}

.dashboard-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  min-height: 1.25rem;
  border-radius: 0 4px 4px 0;
  background: var(--secondary);
}

.dashboard-nav-link.active .dash-rail-link-icon {
  background: var(--gradient-accent);
  color: var(--primary-dark);
}

.dashboard-nav-link.active .dash-rail-link-label {
  font-weight: 600;
  color: var(--primary-dark);
}

.dashboard-nav-link.active .dash-rail-badge,
.dashboard-nav-link.active .dashboard-nav-count {
  background: rgba(118, 0, 49, 0.14);
}

.dashboard-nav-group.has-active-child>.dash-rail-link-parent {
  background: #f8f9fa;
}

.dashboard-nav-group.has-active-child>.dash-rail-link-parent .dash-rail-link-icon {
  background: rgba(118, 0, 49, 0.08);
  color: var(--secondary);
}

.dashboard-nav-group.has-active-child>.dash-rail-link-parent .dash-rail-link-label {
  color: var(--primary-dark);
  font-weight: 600;
}

.dashboard-nav-group.open .dash-nav-l2.dashboard-nav-submenu:not([hidden]) {
  animation: none;
}

.dash-rail-item.is-hidden,
.dash-rail-section.is-hidden {
  display: none !important;
}

.dash-rail-empty {
  font-size: 0.8125rem;
  color: #6c757d;
  text-align: center;
  padding: 1.25rem 0.75rem;
  margin: 0;
}

.dash-rail-foot {
  flex-shrink: 0;
  padding: 0.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: #fafbfc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-rail-plan {
  padding: 0.7rem 0.75rem;
  background: #fff;
  border: 1px solid rgba(118, 0, 49, 0.1);
  border-radius: 10px;
}

.dash-rail-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.dash-rail-plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.dash-rail-plan-tag i {
  color: var(--secondary);
}

.dash-rail-plan-link {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--secondary);
  text-decoration: none;
}

.dash-rail-plan-link:hover {
  text-decoration: underline;
}

.dash-rail-plan-bar {
  height: 5px;
  background: #eef0f2;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.dash-rail-plan-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--secondary));
  border-radius: inherit;
}

.dash-rail-plan-meta {
  font-size: 0.68rem;
  color: #6c757d;
  margin: 0;
  line-height: 1.35;
}

.dash-rail-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: var(--gradient-brand);
  color: #fff !important;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-rail-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(118, 0, 49, 0.28);
}

.dash-rail-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6c757d;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.dash-rail-signout:hover {
  color: var(--primary-dark);
  background: rgba(118, 0, 49, 0.06);
}

.dashboard-nav-link-logout {
  margin: 0;
}

@media (min-width: 992px) {
  .dashboard-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 1rem);
    z-index: 10;
  }
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: static !important;
    margin-bottom: 1rem;
  }

  .dash-rail {
    display: none;
    max-height: none;
    margin-bottom: 0;
  }

  .dash-rail.is-open {
    display: flex;
    animation: dashRailSlide 0.25s ease;
  }

  @keyframes dashRailSlide {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Main content area */
.dashboard-main-header {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.dashboard-main-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.dashboard-main-title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #1a1d21;
  line-height: 1.25;
}

.dashboard-main-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
}

.dashboard-content {
  background: transparent;
}

.dashboard-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* Dashboard downloads — DataTables */
.dashboard-downloads-wrap .dashboard-dl-file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #2b3035;
}

.dashboard-downloads-wrap .dashboard-dl-file i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.dashboard-dl-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3em 0.55em;
  border-radius: 6px;
}

.dashboard-dl-badge-report {
  color: var(--primary-dark);
  background: rgba(118, 0, 49, 0.08);
}

.dashboard-dl-badge-course {
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
}

.dashboard-dl-badge-cert {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
}

.dashboard-dl-badge-guide {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
}

.dashboard-downloads-wrap .dataTables_wrapper {
  font-size: 0.875rem;
}

.dashboard-downloads-wrap .dataTables_length,
.dashboard-downloads-wrap .dataTables_filter {
  margin-bottom: 1rem;
}

.dashboard-downloads-wrap .dataTables_filter input {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  margin-left: 0.35rem;
  font-size: 0.875rem;
}

.dashboard-downloads-wrap .dataTables_filter input:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 0.2rem rgba(213, 28, 57, 0.15);
  outline: 0;
}

.dashboard-downloads-wrap .dataTables_length select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  padding: 0.35rem 1.75rem 0.35rem 0.5rem;
  font-size: 0.875rem;
}

.dashboard-downloads-wrap table.dataTable thead th {
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  padding: 0.75rem 0.65rem;
}

.dashboard-downloads-wrap table.dataTable tbody td {
  padding: 0.75rem 0.65rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dashboard-downloads-wrap table.dataTable tbody tr:hover {
  background: rgba(118, 0, 49, 0.03);
}

.dashboard-downloads-wrap .dataTables_info {
  color: #6c757d;
  font-size: 0.8125rem;
  padding-top: 0.85rem;
}

.dashboard-downloads-wrap .dataTables_paginate {
  padding-top: 0.85rem;
}

.dashboard-downloads-wrap .pagination .page-link {
  border-radius: 6px;
  margin: 0 0.1rem;
  font-size: 0.8125rem;
  color: var(--primary-dark);
}

.dashboard-downloads-wrap .pagination .page-item.active .page-link {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.dashboard-downloads-wrap .pagination .page-link:hover {
  background: rgba(118, 0, 49, 0.08);
  color: var(--primary-dark);
}

@media (max-width: 767.98px) {

  .dashboard-downloads-wrap .dataTables_length,
  .dashboard-downloads-wrap .dataTables_filter {
    text-align: left;
  }

  .dashboard-downloads-wrap .dataTables_filter input {
    width: 100%;
    margin: 0.35rem 0 0;
  }
}

/* Subscription expired — subscription-expired.html */
.sub-exp-section {
  padding-top: 2rem;
}

.sub-exp-banner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.06), rgba(255, 96, 96, 0.12));
  border: 1px solid rgba(213, 28, 57, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}

.sub-exp-banner-icon {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgba(118, 0, 49, 0.2);
}

.sub-exp-banner-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0;
}

.sub-exp-title {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
}

.sub-exp-lead {
  color: #5a6268;
  font-size: 1rem;
  line-height: 1.55;
  max-width: 52rem;
}

.sub-exp-plan-card {
  border-radius: 14px;
  overflow: hidden;
}

.sub-exp-plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6c757d;
}

.sub-exp-status-badge {
  background: rgba(213, 28, 57, 0.12);
  color: var(--secondary);
  font-weight: 600;
  padding: 0.4em 0.75em;
}

.sub-exp-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #495057;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sub-exp-meta li:last-child {
  border-bottom: none;
}

.sub-exp-meta i {
  color: var(--secondary);
  margin-top: 0.15rem;
}

.sub-exp-feature-card {
  border-radius: 14px;
}

.sub-exp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sub-exp-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
}

.sub-exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.sub-exp-list-muted li {
  color: #6c757d;
}

.sub-exp-list-muted li::before {
  background: #adb5bd;
}

.sub-exp-note {
  border-radius: 12px;
  font-size: 0.9rem;
}

.sub-exp-actions {
  border-radius: 14px;
  background: #fafafa;
}

@media (max-width: 575.98px) {
  .sub-exp-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* --- AI chat assistant — ai-assistant.html --- */
body.ai-chat-page {
  padding-top: var(--navbar-height);
  background: #eef2f6;
}

body.ai-chat-page .page-breadcrumb,
body.ai-chat-page #site-footer {
  display: none;
}

body.ai-chat-sidebar-open {
  overflow: hidden;
}

/* Keep navbar dropdowns above the AI chat sidebar panel */
body.ai-chat-page .navbar-ank {
  z-index: 1040;
}

body.ai-chat-page .navbar-ank .dropdown-menu {
  z-index: 1065;
}

.ai-chat-app {
  display: flex;
  height: calc(100vh - var(--navbar-height));
  max-height: calc(100dvh - var(--navbar-height));
  overflow: hidden;
}

.ai-chat-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  z-index: 1;
}

.ai-chat-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
}

.ai-chat-sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.ai-chat-brand-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--gradient-brand);
  color: var(--highlight);
  font-size: 1rem;
}

.ai-chat-sidebar-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: #f4f6f8;
  border-radius: 8px;
  color: #495057;
  cursor: pointer;
}

.ai-chat-new-btn {
  margin: 0 1rem 0.75rem;
  font-weight: 600;
  border-radius: 10px;
}

.ai-chat-sidebar-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.75rem;
  padding: 0.45rem 0.65rem;
  background: #f4f6f8;
  border-radius: 10px;
  border: 1px solid transparent;
}

.ai-chat-sidebar-search:focus-within {
  border-color: rgba(213, 28, 57, 0.25);
  background: #fff;
}

.ai-chat-sidebar-search i {
  color: #adb5bd;
  font-size: 0.9rem;
}

.ai-chat-sidebar-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.8125rem;
  min-width: 0;
}

.ai-chat-sidebar-search input:focus {
  outline: none;
}

.ai-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ai-chat-history-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  padding: 0.65rem 0.6rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-chat-history-item>i {
  margin-top: 0.15rem;
  color: #6c757d;
  font-size: 1rem;
}

.ai-chat-history-item strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2b3035;
  line-height: 1.3;
}

.ai-chat-history-item small {
  font-size: 0.68rem;
  color: #868e96;
}

.ai-chat-history-item:hover {
  background: #f8f9fa;
}

.ai-chat-history-item.active {
  background: rgba(118, 0, 49, 0.08);
}

.ai-chat-history-item.active>i {
  color: var(--secondary);
}

.ai-chat-sidebar-foot {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ai-chat-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #495057;
  text-decoration: none;
  border-radius: 8px;
}

.ai-chat-sidebar-link:hover {
  background: #f8f9fa;
  color: var(--primary-dark);
}

.ai-chat-sidebar-backdrop {
  position: fixed;
  inset: 0;
  top: var(--navbar-height);
  background: rgba(15, 23, 42, 0.4);
  z-index: 1040;
}

.ai-chat-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f8f9fb;
}

.ai-chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ai-chat-header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ai-chat-menu-btn {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--primary-dark);
  cursor: pointer;
}

.ai-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.ai-chat-header-avatar {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--highlight);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ai-chat-status-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 0.65rem;
  height: 0.65rem;
  background: #198754;
  border: 2px solid #fff;
  border-radius: 50%;
}

.ai-chat-header-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1d21;
  margin: 0;
  line-height: 1.25;
}

.ai-chat-header-status {
  font-size: 0.75rem;
  color: #6c757d;
  margin: 0;
}

.ai-chat-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-chat-icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #495057;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ai-chat-icon-btn:hover:not(:disabled) {
  background: #f8f9fa;
  color: var(--primary-dark);
  border-color: rgba(118, 0, 49, 0.2);
}

.ai-chat-icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ai-chat-messages-wrap {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  scroll-behavior: smooth;
}

.ai-chat-messages {
  max-width: 48rem;
  margin: 0 auto;
}

.ai-chat-welcome {
  text-align: center;
  padding: 2rem 1rem 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

.ai-chat-welcome-icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(118, 0, 49, 0.1), rgba(255, 96, 96, 0.15));
  color: var(--secondary);
  font-size: 1.75rem;
}

.ai-chat-welcome h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.ai-chat-welcome p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.ai-chat-prompts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  text-align: left;
}

.ai-chat-prompt {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #343a40;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ai-chat-prompt i {
  color: var(--secondary);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ai-chat-prompt:hover {
  border-color: rgba(213, 28, 57, 0.35);
  box-shadow: 0 4px 14px rgba(118, 0, 49, 0.08);
  transform: translateY(-1px);
}

.ai-chat-msg {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  animation: aiChatMsgIn 0.3s ease;
}

@keyframes aiChatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-msg-user {
  flex-direction: row-reverse;
}

.ai-chat-msg-avatar {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.95rem;
}

.ai-chat-msg-avatar-bot {
  background: var(--gradient-brand);
  color: var(--highlight);
}

.ai-chat-msg-avatar-user {
  background: #e9ecef;
  color: #495057;
}

.ai-chat-msg-body {
  max-width: min(85%, 36rem);
  min-width: 0;
}

.ai-chat-msg-user .ai-chat-msg-body {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ai-chat-msg-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
}

.ai-chat-msg-user .ai-chat-msg-meta {
  flex-direction: row-reverse;
}

.ai-chat-msg-name {
  font-weight: 600;
  color: #495057;
}

.ai-chat-msg-time {
  color: #adb5bd;
}

.ai-chat-msg-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  word-wrap: break-word;
}

.ai-chat-msg-bubble a {
  color: var(--secondary);
  font-weight: 500;
}

.ai-chat-msg-bot .ai-chat-msg-bubble {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #343a40;
  border-top-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.ai-chat-msg-user .ai-chat-msg-bubble {
  background: var(--gradient-brand);
  color: #fff;
  border-top-right-radius: 4px;
}

.ai-chat-msg-user .ai-chat-msg-bubble a {
  color: var(--highlight);
}

.ai-chat-msg-actions {
  margin-top: 0.35rem;
}

.ai-chat-msg-action {
  border: none;
  background: transparent;
  color: #adb5bd;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.ai-chat-msg-action:hover {
  background: #f4f6f8;
  color: var(--primary-dark);
}

.ai-chat-typing {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  max-width: 48rem;
  margin: 0 auto;
  padding-bottom: 0.5rem;
}

.ai-chat-typing-bubble {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  border-top-left-radius: 4px;
}

.ai-chat-typing-bubble span {
  width: 7px;
  height: 7px;
  background: #ced4da;
  border-radius: 50%;
  animation: aiChatTyping 1.2s ease-in-out infinite;
}

.ai-chat-typing-bubble span:nth-child(2) {
  animation-delay: 0.15s;
}

.ai-chat-typing-bubble span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes aiChatTyping {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.ai-chat-composer {
  flex-shrink: 0;
  padding: 0.75rem 1.25rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ai-chat-disclaimer {
  max-width: 48rem;
  margin: 0 auto 0.5rem;
  font-size: 0.7rem;
  color: #868e96;
  text-align: center;
}

.ai-chat-disclaimer a {
  color: var(--secondary);
}

.ai-chat-form {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.ai-chat-input-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  padding: 0.5rem 0.5rem 0.5rem 0.85rem;
  background: #f4f6f8;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-chat-input-wrap:focus-within {
  border-color: rgba(213, 28, 57, 0.35);
  box-shadow: 0 0 0 3px rgba(213, 28, 57, 0.1);
  background: #fff;
}

.ai-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  font-size: 0.9rem;
  line-height: 1.45;
  max-height: 140px;
  padding: 0.25rem 0;
}

.ai-chat-input:focus {
  outline: none;
}

.ai-chat-send {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-chat-send i {
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .ai-chat-sidebar {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.12);
  }

  .ai-chat-sidebar.is-open {
    transform: translateX(0);
  }
}

@media (max-width: 575.98px) {
  .ai-chat-prompts {
    grid-template-columns: 1fr;
  }

  .ai-chat-header {
    padding: 0.65rem 0.85rem;
  }

  .ai-chat-messages-wrap {
    padding: 0.85rem;
  }

  .ai-chat-composer {
    padding: 0.65rem 0.85rem 0.85rem;
  }

  .ai-chat-msg-body {
    max-width: 92%;
  }
}