/**
 * AYUSH Counselling Help & Paid PDF Store Styles
 * Ayurved Studies
 */

:root {
  --ch-font: 'Public Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ch-bg: #f8fafc;
  --ch-surface: #ffffff;
  --ch-surface-card: #ffffff;
  --ch-border: #e2e8f0;
  --ch-border-light: #f1f5f9;
  --ch-text-main: #0f172a;
  --ch-text-muted: #64748b;
  --ch-primary: #0f766e;
  --ch-primary-dark: #115e59;
  --ch-primary-light: #f0fdf4;
  --ch-primary-border: #86efac;
  --ch-accent-gold: #d97706;
  --ch-accent-gold-dark: #b45309;
  --ch-gold-light: #fffbeb;
  --ch-gold-border: #fde68a;
  --ch-emerald: #059669;
  --ch-emerald-dark: #047857;
  --ch-danger: #dc2626;
  --ch-radius: 16px;
  --ch-radius-sm: 8px;
  --ch-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --ch-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --ch-shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12);
}

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

body.ch-body {
  font-family: var(--ch-font);
  background: var(--ch-bg);
  color: var(--ch-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px;
}

.ch-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

html, body.ch-body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* ── Header ── */
.ch-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ch-border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: var(--ch-shadow-sm);
  width: 100%;
}

.ch-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 16px;
}

.ch-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ch-text-main);
  flex-shrink: 0;
}

.ch-brand-logo {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ch-brand-text {
  display: flex;
  flex-direction: column;
}

.ch-brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.ch-brand-title strong {
  color: var(--ch-primary);
}

.ch-brand-subtitle {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ch-text-muted);
  letter-spacing: 0.05em;
}

.ch-header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Mobile Hamburger Toggle */
.ch-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  z-index: 502;
}

.ch-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.ch-menu-toggle.active .ch-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.ch-menu-toggle.active .ch-hamburger-bar:nth-child(2) {
  opacity: 0;
}
.ch-menu-toggle.active .ch-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.ch-drawer-header,
.ch-drawer-top-action,
.ch-nav-group-title {
  display: none;
}

/* Desktop Navigation (min-width: 900px) */
@media (min-width: 900px) {
  .ch-drawer-top-action {
    display: none !important;
  }

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

  .ch-drawer-links {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .ch-nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ch-text-muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--ch-radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
  }

  .ch-nav-link:hover {
    color: var(--ch-primary);
    background: var(--ch-primary-light);
  }

  .ch-nav-highlight-predictor {
    background: #eef2ff !important;
    color: #4338ca !important;
    border: 1px solid #c7d2fe !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 7px 15px !important;
    box-shadow: 0 1px 3px rgba(67, 56, 202, 0.1) !important;
    transition: all 0.2s ease !important;
  }
  .ch-nav-highlight-predictor:hover {
    background: #4338ca !important;
    color: #ffffff !important;
    border-color: #4338ca !important;
    box-shadow: 0 4px 12px rgba(67, 56, 202, 0.25) !important;
    transform: translateY(-1px);
  }

  .ch-menu-backdrop {
    display: none !important;
  }
}

/* Mobile Drawer (max-width: 899px) */
@media (max-width: 899px) {
  .ch-header-inner {
    height: 60px;
    padding: 0 14px;
  }

  .ch-brand-title {
    font-size: 1rem;
  }

  .ch-brand-subtitle {
    display: none;
  }

  .ch-menu-toggle {
    display: flex;
  }

  .ch-header-nav {
    position: fixed;
    top: 0;
    right: -340px;
    width: 310px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 2200;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
  }

  .ch-header-nav.active {
    right: 0 !important;
  }

  .ch-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  .ch-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .ch-drawer-brand strong {
    display: block;
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.2;
  }

  .ch-drawer-brand small {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 0.05em;
  }

  .ch-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-size: 1.1rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .ch-drawer-top-action {
    display: block !important;
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
  }

  .ch-nav-dash-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: linear-gradient(135deg, #042f2e, #0f766e);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .ch-nav-dash-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.32);
  }

  .ch-nav-dash-card.login {
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #0f766e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .ch-nav-dash-card.login .ch-dash-label {
    color: #0f766e;
  }

  .ch-nav-dash-card.login .ch-dash-meta {
    color: #64748b;
  }

  .ch-dash-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  .ch-nav-dash-card.login .ch-dash-icon-box {
    background: #f0fdf4;
  }

  .ch-dash-text-box {
    flex: 1;
    min-width: 0;
  }

  .ch-dash-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .ch-dash-meta {
    display: block;
    font-size: 0.73rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
  }

  .ch-dash-arrow {
    font-size: 1.2rem;
    font-weight: 800;
    opacity: 0.8;
  }

  .ch-drawer-links {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .ch-nav-group-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 10px 4px;
  }

  .ch-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: background 0.15s ease;
  }

  .ch-nav-link:hover,
  .ch-nav-link.active {
    background: #ecfdf5;
    color: #047857;
    font-weight: 700;
  }

  .ch-user-section {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
  }

  .ch-user-section > div {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .ch-user-section .ch-user-btn {
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }

  .ch-menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .ch-menu-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }
}

.ch-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--ch-border);
  background: #ffffff;
  color: var(--ch-text-main);
  white-space: nowrap !important;
  flex-shrink: 0;
}

.ch-user-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.ch-btn-mypurchases {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.ch-btn-mypurchases:hover {
  background: linear-gradient(135deg, #115e59, #0d9488);
  color: #ffffff;
}

.ch-btn-signin {
  background: #f8fafc;
  color: var(--ch-text-main);
  border: 1px solid var(--ch-border);
}

.ch-btn-signin:hover {
  background: #e2e8f0;
}

/* ── Hero Section ── */
.ch-hero {
  background: linear-gradient(145deg, #042f2e 0%, #064e3b 50%, #0f766e 100%);
  color: #ffffff;
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}

.ch-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.18) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.ch-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.ch-breadcrumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.ch-breadcrumbs a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.ch-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fef08a;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.ch-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #ffffff;
  max-width: 820px;
}

.ch-hero-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 780px;
  margin-bottom: 28px;
}

.ch-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ch-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Filter & Search Bar ── */
.ch-filter-bar {
  margin-top: -30px;
  position: relative;
  z-index: 10;
  margin-bottom: 36px;
}

.ch-filter-card {
  background: #ffffff;
  border-radius: var(--ch-radius);
  padding: 16px 20px;
  box-shadow: var(--ch-shadow);
  border: 1px solid var(--ch-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.ch-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.ch-tab-btn {
  background: #f1f5f9;
  border: 1px solid transparent;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ch-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ch-tab-btn:hover {
  background: #e2e8f0;
  color: var(--ch-text-main);
}

.ch-tab-btn.active {
  background: var(--ch-primary);
  color: #ffffff;
}

.ch-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--ch-border);
  padding: 6px 14px;
  border-radius: 30px;
  min-width: 240px;
}

.ch-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.88rem;
  width: 100%;
  font-family: inherit;
  color: var(--ch-text-main);
}

/* ── Catalogue Grid ── */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.ch-card {
  background: #ffffff;
  border-radius: var(--ch-radius);
  border: 1px solid var(--ch-border);
  box-shadow: var(--ch-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.ch-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ch-shadow-lg);
  border-color: #cbd5e1;
}

.ch-card.featured {
  border: 2px solid var(--ch-accent-gold);
}

.ch-card-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--ch-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fafbfc;
}

.ch-level-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 20px;
}

.ch-level-ug {
  background: #dbeafe;
  color: #1e40af;
}

.ch-level-pg {
  background: #ede9fe;
  color: #5b21b6;
}

.ch-level-all {
  background: #fef3c7;
  color: #92400e;
}

.ch-validity-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ch-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ch-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ch-text-main);
  margin-bottom: 10px;
}

.ch-card-desc {
  font-size: 0.9rem;
  color: var(--ch-text-muted);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Highlights */
.ch-highlights {
  list-style: none;
  margin-bottom: 24px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
}

.ch-highlights li {
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.ch-highlights li:last-child {
  margin-bottom: 0;
}

.ch-highlights li svg {
  flex-shrink: 0;
  color: var(--ch-emerald);
  margin-top: 2px;
}

/* Demo Previews Gallery */
.ch-demo-wrap {
  margin-top: auto;
  margin-bottom: 20px;
  border-top: 1px solid var(--ch-border-light);
  padding-top: 16px;
}

.ch-demo-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ch-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-demo-hint {
  font-size: 0.75rem;
  color: var(--ch-primary);
  font-weight: 600;
}

.ch-demo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.ch-demo-thumb {
  position: relative;
  width: 76px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--ch-border);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  background: #f1f5f9;
}

.ch-demo-thumb:hover {
  transform: scale(1.05);
  border-color: var(--ch-primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}

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

.ch-demo-thumb .ch-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 118, 110, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  color: #ffffff;
}

.ch-demo-thumb:hover .ch-zoom-overlay {
  opacity: 1;
}

/* Card Footer & Price */
.ch-card-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--ch-border-light);
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ch-price-wrap {
  display: flex;
  flex-direction: column;
}

.ch-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ch-curr-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--ch-text-main);
  line-height: 1;
}

.ch-orig-price {
  font-size: 0.95rem;
  color: var(--ch-text-muted);
  text-decoration: line-through;
}

.ch-discount-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 4px;
  align-self: flex-start;
}

.ch-btn-buy {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  text-decoration: none;
}

.ch-btn-buy:hover {
  background: linear-gradient(135deg, #b45309, #92400e);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.ch-btn-download {
  background: linear-gradient(135deg, #059669, #047857);
  color: #ffffff;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
  text-decoration: none;
}

.ch-btn-download:hover {
  background: linear-gradient(135deg, #047857, #065f46);
  transform: translateY(-2px);
}

/* ── Lightbox Modal for Demo Previews ── */
.ch-lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ch-lightbox-modal.active {
  display: flex;
}

.ch-lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ch-lightbox-img-wrap {
  position: relative;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ch-lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  object-fit: contain;
}

.ch-lightbox-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #ffffff;
}

.ch-lightbox-counter {
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255,255,255,0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

.ch-lightbox-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ch-lightbox-close:hover {
  background: rgba(255,255,255,0.4);
}

.ch-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.25);
  border: none;
  color: #ffffff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.ch-lightbox-nav:hover {
  background: rgba(255,255,255,0.5);
}

.ch-lightbox-prev { left: -60px; }
.ch-lightbox-next { right: -60px; }

/* ── Checkout Modal & Auth Modal ── */
.ch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.ch-modal-box {
  background: #ffffff;
  border-radius: var(--ch-radius);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: chModalPop 0.25s ease-out;
}

@keyframes chModalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.ch-modal-header {
  padding: 20px 24px;
  background: #fafbfc;
  border-bottom: 1px solid var(--ch-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ch-modal-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ch-text-main);
}

.ch-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--ch-text-muted);
  cursor: pointer;
}

.ch-modal-body {
  padding: 24px;
}

.ch-order-summary {
  background: #f8fafc;
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ch-order-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ch-text-main);
  max-width: 260px;
}

.ch-order-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ch-primary);
}

.ch-form-group {
  margin-bottom: 16px;
}

.ch-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ch-text-main);
}

.ch-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--ch-border);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ch-input:focus {
  border-color: var(--ch-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.ch-auth-note {
  font-size: 0.8rem;
  color: var(--ch-text-muted);
  line-height: 1.4;
  margin-top: 6px;
}

.ch-auth-toggle {
  font-size: 0.85rem;
  color: var(--ch-primary);
  text-align: center;
  margin-top: 14px;
  cursor: pointer;
  font-weight: 600;
}

.ch-auth-toggle:hover {
  text-decoration: underline;
}

.ch-btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0f766e, #115e59);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ch-btn-submit:hover {
  background: linear-gradient(135deg, #115e59, #0f766e);
}

.ch-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Purchases Modal ── */
.ch-purchase-item {
  border: 1px solid var(--ch-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ch-purchased-meta strong {
  display: block;
  font-size: 1rem;
  color: var(--ch-text-main);
  margin-bottom: 4px;
}

.ch-purchased-meta span {
  font-size: 0.8rem;
  color: var(--ch-text-muted);
}

/* ── Toast Alert ── */
.ch-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 3000;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: chToastIn 0.3s ease-out;
}

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

/* ── Cross-Promotion Card (Linking to Rank Predictor) ── */
.ch-cross-promo-card {
  background: linear-gradient(135deg, #0f172a 0%, #064e3b 100%);
  border: 1px solid #10b981;
  border-radius: var(--ch-radius);
  padding: 28px 32px;
  margin-bottom: 30px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 30px -5px rgba(6, 78, 59, 0.25);
  position: relative;
  overflow: hidden;
}
.ch-cross-promo-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.ch-promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.ch-cross-promo-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.ch-cross-promo-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 14px;
  line-height: 1.5;
  max-width: 680px;
}
.ch-promo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-promo-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #f1f5f9;
  font-weight: 500;
}
.ch-promo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  min-width: 240px;
}
.ch-btn-promo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #10b981;
  color: #022c22;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}
.ch-btn-promo-primary:hover {
  background: #34d399;
  color: #022c22;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}
.ch-promo-quick-links {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.ch-promo-quick-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.15s ease;
}
.ch-promo-quick-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ── Mobile Responsiveness ── */
@media (max-width: 768px) {
  .ch-hero h1 {
    font-size: 1.85rem;
  }
  .ch-grid {
    grid-template-columns: 1fr;
  }
  .ch-card-header, .ch-card-body, .ch-card-footer {
    padding: 18px;
  }
  .ch-filter-card {
    flex-direction: column;
    align-items: stretch;
  }
  .ch-search-box {
    width: 100%;
  }
  .ch-lightbox-prev {
    left: 10px;
  }
  .ch-lightbox-next {
    right: 10px;
  }
  .ch-cross-promo-card {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 20px;
    gap: 20px;
  }
  .ch-promo-actions {
    min-width: 100%;
  }
}

/* ── Purchased Card Styles ── */
.ch-card.purchased {
  border-color: #86efac !important;
  box-shadow: 0 4px 20px -2px rgba(16, 185, 129, 0.15) !important;
}

.ch-card.purchased .ch-card-header {
  background: #f0fdf4 !important;
  border-bottom: 1px solid #dcfce7 !important;
}

.btn-download-pdf {
  cursor: pointer;
  background: linear-gradient(135deg, #059669, #047857) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  transition: all 0.2s ease !important;
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
}

.ch-dash-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35) !important;
}

.btn-dash-download {
  cursor: pointer;
  background: linear-gradient(135deg, #0f766e, #115e59) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.2) !important;
}

.btn-dash-download:hover {
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  transform: translateY(-1px);
}


