/* ==========================================================================
   ProAffiliatesHub — Premium Design System & Design Tokens
   ========================================================================== */
:root {
  --hub-bg: #0B0F19;
  --hub-bg-panel: #111827;
  --hub-bg-card: #1F2937;
  --hub-white: #FFFFFF;
  --hub-accent-primary: #10B981;       /* Emerald */
  --hub-accent-primary-hover: #059669; /* Emerald Deep */
  --hub-accent-secondary: #06B6D4;     /* Cyan/Teal */
  --hub-accent-amber: #F59E0B;         /* Gold/Amber */
  --hub-accent-coral: #EF4444;         /* Coral red */
  
  --hub-text: #F9FAFB;
  --hub-text-muted: #9CA3AF;
  --hub-text-dark: #111827;
  
  --hub-line: rgba(255, 255, 255, 0.08);
  --hub-line-glow: rgba(16, 185, 129, 0.15);

  --hub-r-sm: 10px;
  --hub-r-md: 16px;
  --hub-r-lg: 24px;
  --hub-r-pill: 9999px;

  --hub-shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.3);
  --hub-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5);
  --hub-shadow-lg: 0 25px 50px rgba(0, 0, 0, 0.7);
  --hub-glow: 0 0 15px rgba(16, 185, 129, 0.3);

  --hub-font-head: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --hub-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --hub-container: 1200px;
  --hub-pad: clamp(20px, 6vw, 44px);
}

/* ==========================================================================
   Reset & base styles
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--hub-font-body);
  color: var(--hub-text);
  background-color: var(--hub-bg);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; outline: none; }
h1, h2, h3, h4 {
  font-family: var(--hub-font-head);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}
p { margin: 0; color: var(--hub-text-muted); }

.hub-container {
  max-width: var(--hub-container);
  margin: 0 auto;
  padding: 0 var(--hub-pad);
}

section { position: relative; }

.hub-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hub-accent-primary);
  color: var(--hub-text-dark);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 700;
}
.hub-skip-link:focus { left: 0; }

/* Emphasis markers */
.hub-mark {
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
  border-bottom: 2px solid var(--hub-accent-primary);
  padding: 0 0.15em;
  border-radius: 2px;
  display: inline;
}
.hub-mark-amber {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 2px solid var(--hub-accent-amber);
  color: var(--hub-accent-amber);
}

.hub-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hub-font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--hub-accent-primary);
  margin-bottom: 14px;
}
.hub-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hub-accent-primary);
  box-shadow: 0 0 8px var(--hub-accent-primary);
}

.hub-section-head {
  max-width: 700px;
  margin-bottom: 52px;
}
.hub-section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.hub-section-head h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--hub-white); }
.hub-section-head p { margin-top: 16px; font-size: 1.08rem; }

.hub-section { padding: 96px 0; }
.hub-section.tight { padding: 64px 0; }
.hub-section.tint { background-color: var(--hub-bg-panel); }
.hub-section.border-top { border-top: 1px solid var(--hub-line); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--hub-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--hub-r-md);
  border: 2px solid transparent;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--hub-shadow-md);
}
.hub-btn:active { transform: translateY(0); }

.hub-btn-lime {
  background: linear-gradient(135deg, var(--hub-accent-primary) 0%, var(--hub-accent-secondary) 100%);
  color: var(--hub-bg);
  font-weight: 800;
}
.hub-btn-lime:hover {
  background: linear-gradient(135deg, var(--hub-accent-primary-hover) 0%, #0891b2 100%);
  box-shadow: var(--hub-glow);
}

.hub-btn-ink {
  background: var(--hub-bg-card);
  color: var(--hub-white);
  border: 1.5px solid var(--hub-line);
}
.hub-btn-ink:hover {
  background: #374151;
  border-color: var(--hub-accent-primary);
}

.hub-btn-outline {
  background: transparent;
  color: var(--hub-text);
  border: 2px solid var(--hub-line);
}
.hub-btn-outline:hover {
  border-color: var(--hub-accent-primary);
  background: rgba(16, 185, 129, 0.06);
}

.hub-btn-outline-light {
  background: transparent;
  color: var(--hub-text);
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.hub-btn-outline-light:hover {
  border-color: var(--hub-white);
  background: rgba(255, 255, 255, 0.08);
}

.hub-btn-sm { padding: 8px 18px; font-size: 0.85rem; border-radius: var(--hub-r-sm); }
.hub-btn-block { width: 100%; }
.hub-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ==========================================================================
   Header and Navigation
   ========================================================================== */
.hub-topbar {
  background: var(--hub-bg-panel);
  color: var(--hub-text-muted);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--hub-line);
}
.hub-topbar .hub-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.hub-topbar-badge {
  background: var(--hub-accent-primary);
  color: var(--hub-bg);
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  display: inline-block;
}
.hub-topbar-right { display: none; }
@media(min-width: 860px) { .hub-topbar-right { display: block; } }

.hub-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--hub-line);
}
.hub-header .hub-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.hub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hub-font-head);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--hub-white);
  letter-spacing: -0.03em;
}
.hub-logo span { color: var(--hub-accent-primary); }
.hub-logo img { width: 32px; height: 32px; }

@media (max-width: 580px) {
  .hub-header .hub-logo {
    font-size: 0;
    gap: 0;
  }
}

.hub-nav { display: none; align-items: center; gap: 28px; }
.hub-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--hub-text-muted);
  padding: 8px 0;
  position: relative;
}
.hub-nav a:hover { color: var(--hub-white); }
.hub-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--hub-accent-primary);
  transform: scaleX(0);
  transition: transform 0.22s ease;
}
.hub-nav a:hover::after, .hub-nav a.is-active::after { transform: scaleX(1); }
.hub-nav a.is-active { color: var(--hub-accent-primary); }
@media(min-width: 960px) { .hub-nav { display: flex; } }

.hub-header-actions { display: flex; align-items: center; gap: 10px; }
.hub-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  color: var(--hub-text);
}
.hub-icon-btn:hover {
  border-color: var(--hub-accent-primary);
  background: rgba(16, 185, 129, 0.08);
  color: var(--hub-accent-primary);
}
.hub-cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--hub-accent-coral);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.hub-cart-badge[hidden] { display: none; }

.hub-burger {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hub-burger span {
  width: 18px;
  height: 2px;
  background: var(--hub-text);
  border-radius: 2px;
  transition: all 0.22s;
}
.hub-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hub-burger.is-open span:nth-child(2) { opacity: 0; }
.hub-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(min-width: 960px) { .hub-burger { display: none; } }

.hub-searchbar { display: none; border-top: 1.5px solid var(--hub-line); background: var(--hub-bg-panel); }
.hub-searchbar.is-open { display: block; }
.hub-searchbar form {
  display: flex;
  gap: 12px;
  padding: 12px var(--hub-pad);
  max-width: var(--hub-container);
  margin: 0 auto;
}
.hub-searchbar input {
  flex: 1;
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 10px 18px;
  background: var(--hub-bg);
  color: var(--hub-text);
}
.hub-searchbar input::placeholder { color: var(--hub-text-muted); }

/* Overlay & drawer */
.hub-nav-overlay, .hub-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.hub-nav-overlay.is-open, .hub-cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.hub-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--hub-bg-panel);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 32px 24px;
  overflow-y: auto;
  border-left: 1px solid var(--hub-line);
}
.hub-mobile-menu.is-open { transform: translateX(0); }
.hub-mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.hub-mobile-menu a {
  display: block;
  font-family: var(--hub-font-head);
  font-size: 1.3rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--hub-line);
  font-weight: 700;
  color: var(--hub-text-muted);
}
.hub-mobile-menu a.is-active { color: var(--hub-accent-primary); }

.hub-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--hub-bg-panel);
  z-index: 160;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--hub-line);
}
.hub-cart-drawer.is-open { transform: translateX(0); }
.hub-cart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  border-bottom: 1.5px solid var(--hub-line);
}
.hub-cart-head h3 { font-size: 1.25rem; color: var(--hub-white); }
.hub-cart-close {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1.5px solid var(--hub-line);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
}
.hub-cart-close:hover { border-color: var(--hub-accent-primary); color: var(--hub-accent-primary); }
.hub-cart-body { flex: 1; overflow-y: auto; padding: 24px; }
.hub-cart-empty { color: var(--hub-text-muted); font-size: 0.95rem; text-align: center; padding: 48px 10px; }
.hub-cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--hub-line);
}
.hub-cart-item .thumb {
  width: 44px;
  height: 58px;
  border-radius: 6px;
  flex: none;
  overflow: hidden;
  background: var(--hub-bg);
}
.hub-cart-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hub-cart-item .info { flex: 1; min-width: 0; }
.hub-cart-item .info .t { font-weight: 700; font-size: 0.9rem; color: var(--hub-white); }
.hub-cart-item .info .p { color: var(--hub-accent-primary); font-size: 0.82rem; margin-top: 2px; }
.hub-cart-item .remove { border: none; background: none; color: var(--hub-accent-coral); font-size: 0.78rem; font-weight: 700; }
.hub-cart-item .remove:hover { text-decoration: underline; }
.hub-cart-foot { padding: 24px; border-top: 1.5px solid var(--hub-line); }
.hub-cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--hub-font-head);
  font-size: 1.15rem;
  color: var(--hub-white);
}
.hub-cart-total .amount { color: var(--hub-accent-primary); }

/* ==========================================================================
   Hero blocks
   ========================================================================== */
.hub-hero {
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.08) 0%, rgba(11, 15, 25, 0) 60%);
}
.hub-hero-grid {
  display: grid;
  gap: 52px;
  align-items: center;
}
@media(min-width: 900px) {
  .hub-hero-grid { grid-template-columns: 1.1fr 0.9fr; padding: 48px 0; }
}
.hub-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--hub-line-glow);
  color: var(--hub-accent-primary);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--hub-r-pill);
  margin-bottom: 24px;
}
.hub-hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  color: var(--hub-white);
  line-height: 1.1;
}
.hub-hero-body { margin-top: 24px; font-size: 1.12rem; max-width: 540px; }
.hub-hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 36px; }
.hub-hero-art { position: relative; display: flex; justify-content: center; }
.hub-hero-blob {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--hub-accent-primary);
  opacity: 0.15;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(60px);
  z-index: 0;
}
.hub-hero-art img {
  position: relative;
  z-index: 1;
  border-radius: var(--hub-r-lg);
  box-shadow: var(--hub-shadow-lg);
  border: 1.5px solid var(--hub-line);
  width: 100%;
  height: auto;
  max-width: 500px;
}

.hub-stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
  max-width: 580px;
}
@media(min-width: 640px) { .hub-stat-row { grid-template-columns: repeat(4, 1fr); } }
.hub-stat-tile {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 16px 14px;
  transition: border-color 0.2s;
}
.hub-stat-tile:hover { border-color: var(--hub-accent-primary); }
.hub-stat-tile .num { font-family: var(--hub-font-head); font-size: 1.65rem; color: var(--hub-accent-primary); font-weight: 800; }
.hub-stat-tile .lbl { font-size: 0.78rem; color: var(--hub-text-muted); margin-top: 4px; font-weight: 600; }

/* Subpage Hero */
.hub-subhero {
  background: var(--hub-bg-panel);
  border-bottom: 1px solid var(--hub-line);
  padding: 72px 0;
  position: relative;
  overflow: hidden;
}
.hub-subhero-blob {
  position: absolute;
  top: -20%;
  right: -5%;
  width: 360px;
  height: 360px;
  background: var(--hub-accent-secondary);
  opacity: 0.1;
  filter: blur(50px);
  border-radius: 50%;
}
.hub-subhero .inner { max-width: 720px; position: relative; z-index: 1; }
.hub-subhero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--hub-white); }
.hub-subhero p { margin-top: 16px; font-size: 1.1rem; }

/* ==========================================================================
   Cards & Layout Grids
   ========================================================================== */
.hub-card {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: 32px;
  transition: all 0.25s ease;
}
.hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--hub-accent-primary);
  box-shadow: var(--hub-shadow-lg);
}
.hub-icon-tile {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.hub-icon-tile.lime { background: rgba(16, 185, 129, 0.1); color: var(--hub-accent-primary); border: 1px solid var(--hub-line-glow); }
.hub-icon-tile.coral { background: rgba(239, 68, 68, 0.1); color: var(--hub-accent-coral); border: 1px solid rgba(239, 68, 68, 0.2); }
.hub-icon-tile.violet { background: rgba(6, 182, 212, 0.1); color: var(--hub-accent-secondary); border: 1px solid rgba(6, 182, 212, 0.2); }

.hub-grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.hub-grid-3 { display: grid; gap: 24px; grid-template-columns: 1fr; }
.hub-grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media(min-width: 640px) {
  .hub-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .hub-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media(min-width: 900px) {
  .hub-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hub-grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hub-pill-tag {
  display: inline-block;
  font-weight: 800;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--hub-line);
  background: var(--hub-bg-card);
}
.hub-pill-tag.lime { background: rgba(16, 185, 129, 0.12); color: var(--hub-accent-primary); border-color: var(--hub-accent-primary); }
.hub-pill-tag.coral { background: rgba(239, 68, 68, 0.12); color: var(--hub-accent-coral); border-color: var(--hub-accent-coral); }
.hub-pill-tag.violet { background: rgba(6, 182, 212, 0.12); color: var(--hub-accent-secondary); border-color: var(--hub-accent-secondary); }
.hub-pill-tag.cream { background: var(--hub-bg); color: var(--hub-text-muted); }

/* ==========================================================================
   Book Cards & Carousels
   ========================================================================== */
.hub-carousel-wrap { position: relative; }
.hub-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: none;
}
.hub-carousel::-webkit-scrollbar { display: none; }
.hub-carousel-arrows {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.hub-carousel-arrow {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid var(--hub-line);
  background: var(--hub-bg-panel);
  color: var(--hub-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.hub-carousel-arrow:hover {
  border-color: var(--hub-accent-primary);
  color: var(--hub-accent-primary);
  background: rgba(16, 185, 129, 0.05);
}

.hub-book-card {
  flex: 0 0 240px;
  scroll-snap-align: start;
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.hub-book-card:hover {
  transform: translateY(-4px);
  border-color: var(--hub-accent-primary);
  box-shadow: var(--hub-shadow-lg);
}
.hub-book-cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--hub-bg);
}
.hub-book-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hub-book-card:hover .hub-book-cover img { transform: scale(1.05); }
.hub-book-cover .badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }

.hub-book-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hub-book-cat { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hub-accent-secondary); }
.hub-book-title { font-size: 1.05rem; line-height: 1.3; margin: 0; color: var(--hub-white); font-weight: 700; }
.hub-book-title a:hover { color: var(--hub-accent-primary); }
.hub-book-author { font-size: 0.8rem; color: var(--hub-text-muted); margin: 0; }
.hub-book-desc { font-size: 0.85rem; color: var(--hub-text-muted); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hub-rating { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--hub-text-muted); }
.hub-rating .stars { color: var(--hub-accent-amber); font-weight: 700; }
.hub-book-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--hub-line); }
.hub-book-price { font-family: var(--hub-font-head); font-weight: 800; font-size: 1.15rem; color: var(--hub-white); }

@media (max-width: 580px) {
  .hub-book-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.hub-testimonial-card {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: 32px;
  position: relative;
}
.hub-testimonial-card::before {
  content: "“";
  position: absolute;
  top: 10px;
  right: 28px;
  font-size: 4.5rem;
  color: rgba(16, 185, 129, 0.1);
  font-family: serif;
  line-height: 1;
}
.hub-testimonial-card .quote { font-size: 1rem; line-height: 1.6; color: var(--hub-text); font-style: italic; }
.hub-testimonial-card .person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.hub-testimonial-card .person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--hub-accent-primary); }
.hub-testimonial-card .person .name { font-weight: 700; font-size: 0.95rem; color: var(--hub-white); }
.hub-stars-row { color: var(--hub-accent-amber); letter-spacing: 2px; margin-bottom: 12px; font-size: 0.9rem; }

/* ==========================================================================
   Lead box & Newsletter
   ========================================================================== */
.hub-lead-box {
  background: linear-gradient(135deg, var(--hub-bg-panel) 0%, #111e2e 100%);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: clamp(32px, 6vw, 60px);
  position: relative;
  overflow: hidden;
}
.hub-lead-box .hub-blob {
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 280px;
  height: 280px;
  background: var(--hub-accent-primary);
  opacity: 0.1;
  filter: blur(50px);
  border-radius: 50%;
}
.hub-lead-box .inner { position: relative; z-index: 1; }
.hub-lead-box h2 { color: var(--hub-white); font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.hub-lead-box p { color: var(--hub-text-muted); margin-top: 12px; max-width: 560px; }
.hub-lead-form { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; max-width: 520px; }
.hub-lead-form input {
  flex: 1;
  min-width: 220px;
  border-radius: var(--hub-r-md);
  border: 1.5px solid var(--hub-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--hub-white);
  padding: 12px 18px;
  transition: border-color 0.2s;
}
.hub-lead-form input:focus { border-color: var(--hub-accent-primary); }
.hub-lead-form input::placeholder { color: var(--hub-text-muted); }
.hub-form-note { font-size: 0.82rem; color: var(--hub-text-muted); margin-top: 14px; }
.hub-form-note a { text-decoration: underline; color: var(--hub-accent-primary); }

p.hub-form-success {
  display: none;
  background: rgba(16, 185, 129, 0.12);
  color: var(--hub-accent-primary);
  border: 1px solid var(--hub-accent-primary);
  border-radius: var(--hub-r-md);
  padding: 14px 18px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 0.9rem;
}
.hub-form-success.is-visible { display: block; }

/* Toast Notifications */
.hub-toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  pointer-events: none;
  max-width: calc(100vw - 48px);
}
.hub-toast {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 350px;
  max-width: 100%;
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-accent-primary);
  border-radius: var(--hub-r-md);
  padding: 16px 44px 16px 16px;
  box-shadow: var(--hub-shadow-lg);
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  transition: opacity 0.25s, transform 0.25s;
}
.hub-toast.is-visible { opacity: 1; transform: translateX(0) scale(1); }
.hub-toast-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hub-accent-primary);
  color: var(--hub-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.hub-toast-text { flex: 1; color: var(--hub-white); font-weight: 600; font-size: 0.9rem; }
.hub-toast-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--hub-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}
.hub-toast-close:hover { color: var(--hub-white); }
.hub-toast-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--hub-accent-primary); transition: width linear; }
@media(max-width: 520px) {
  .hub-toast-container { left: 24px; right: 24px; top: 24px; align-items: stretch; }
  .hub-toast { width: 100%; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.hub-footer {
  background: var(--hub-bg-panel);
  color: var(--hub-text-muted);
  padding-top: 80px;
  border-top: 1px solid var(--hub-line);
}
.hub-footer-news {
  border-bottom: 1px solid var(--hub-line);
  padding-bottom: 48px;
  margin-bottom: 48px;
  display: grid;
  gap: 24px;
}
@media(min-width: 860px) {
  .hub-footer-news { grid-template-columns: 1fr auto; align-items: center; }
}
.hub-footer-news h3 { color: var(--hub-white); font-size: 1.5rem; max-width: 440px; }
.hub-footer-news form { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-footer-news input {
  border-radius: var(--hub-r-md);
  border: 1.5px solid var(--hub-line);
  background: var(--hub-bg);
  color: var(--hub-white);
  padding: 12px 18px;
  min-width: 240px;
}
.hub-footer-news input:focus { border-color: var(--hub-accent-primary); }

.hub-footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; padding-bottom: 48px; }
@media(min-width: 720px) {
  .hub-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.hub-footer-grid h4 {
  color: var(--hub-white);
  font-family: var(--hub-font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hub-footer-grid li { margin-bottom: 12px; font-size: 0.9rem; }
.hub-footer-grid a:hover { color: var(--hub-accent-primary); }

.hub-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--hub-font-head);
  font-size: 1.35rem;
  color: var(--hub-white);
  margin-bottom: 16px;
  font-weight: 800;
}
.hub-footer-brand span { color: var(--hub-accent-primary); }
.hub-footer-brand img { width: 28px; height: 28px; }

.hub-footer-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hub-footer-trust li { background: rgba(255,255,255,0.04); border: 1px solid var(--hub-line); border-radius: 6px; padding: 6px 12px; font-size: 0.72rem; color: var(--hub-text-muted); }

.hub-footer-disclaimer { font-size: 0.78rem; border-top: 1px solid var(--hub-line); padding: 24px 0; max-width: 800px; line-height: 1.7; }
.hub-coin-strip { display: flex; gap: 14px; overflow: hidden; padding: 16px 0; border-top: 1px solid var(--hub-line); opacity: 0.4; }
.hub-coin-strip span { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2.2px solid var(--hub-accent-primary); }
.hub-coin-strip span:nth-child(3n) { border-color: var(--hub-accent-secondary); }
.hub-coin-strip span:nth-child(4n) { border-color: var(--hub-accent-amber); }

.hub-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--hub-line);
  font-size: 0.82rem;
}
.hub-footer-bottom nav { display: flex; gap: 20px; flex-wrap: wrap; }
.hub-footer-bottom nav a { color: var(--hub-text-muted); }
.hub-footer-bottom nav a:hover { color: var(--hub-accent-primary); }

.hub-backtotop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--hub-accent-primary);
  color: var(--hub-bg);
  border: none;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: var(--hub-shadow-md);
}
.hub-backtotop.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hub-backtotop:hover { background: var(--hub-accent-primary-hover); transform: translateY(-2px); }

/* Cookie Banner */
.hub-cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-accent-primary);
  border-radius: var(--hub-r-md);
  padding: 20px 24px;
  z-index: 180;
  box-shadow: var(--hub-shadow-lg);
}
.hub-cookie-banner[hidden] { display: none; }
.hub-cookie-banner p { font-size: 0.88rem; color: var(--hub-text-muted); }
.hub-cookie-banner p a { color: var(--hub-accent-primary); text-decoration: underline; }
.hub-cookie-banner .actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ==========================================================================
   Form Fields
   ========================================================================== */
.hub-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hub-field label { font-weight: 600; font-size: 0.88rem; color: var(--hub-white); }
.hub-field input, .hub-field textarea, .hub-field select {
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-sm);
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--hub-white);
  transition: border-color 0.2s;
}
.hub-field input:focus, .hub-field textarea:focus, .hub-field select:focus {
  border-color: var(--hub-accent-primary);
}
.hub-field textarea { resize: vertical; min-height: 120px; }

/* ==========================================================================
   FAQ Accordions
   ========================================================================== */
.hub-faq-item {
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  margin-bottom: 16px;
  background: var(--hub-bg-panel);
  overflow: hidden;
  transition: border-color 0.2s;
}
.hub-faq-item:hover { border-color: rgba(16, 185, 129, 0.3); }
.hub-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--hub-font-head);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--hub-white);
}
.hub-faq-q .plus {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
  color: var(--hub-accent-primary);
}
.hub-faq-item.is-open .plus { transform: rotate(45deg); background: var(--hub-accent-primary); color: var(--hub-bg); }
.hub-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.hub-faq-a .inner { padding: 0 24px 20px; color: var(--hub-text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Interactive Income Calculator block
   ========================================================================== */
.hub-calc-box {
  background: linear-gradient(135deg, var(--hub-bg-panel) 0%, #151c2c 100%);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--hub-shadow-lg);
}
.hub-calc-grid {
  display: grid;
  gap: 36px;
}
@media(min-width: 860px) {
  .hub-calc-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.hub-calc-sliders {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hub-calc-slider-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hub-calc-slider-item label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--hub-white);
}
.hub-calc-slider-item label span.val {
  color: var(--hub-accent-primary);
  font-family: var(--hub-font-head);
}
.hub-calc-slider-item input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  border-radius: 4px;
  outline: none;
}
.hub-calc-slider-item input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--hub-accent-primary);
  cursor: pointer;
  border: 2px solid var(--hub-white);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  transition: background 0.15s;
}
.hub-calc-slider-item input[type=range]::-webkit-slider-thumb:hover {
  background: var(--hub-accent-secondary);
}
.hub-calc-result-tile {
  background: var(--hub-bg);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hub-calc-result-tile h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hub-text-muted);
}
.hub-calc-result-val {
  font-family: var(--hub-font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--hub-accent-primary);
  margin: 12px 0 6px;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.hub-calc-result-note {
  font-size: 0.78rem;
  color: var(--hub-text-muted);
}

/* ==========================================================================
   Success Roadmap block
   ========================================================================== */
.hub-roadmap {
  position: relative;
  padding-left: 32px;
  margin-top: 32px;
}
.hub-roadmap::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--hub-accent-primary) 0%, var(--hub-accent-secondary) 100%);
}
.hub-roadmap-step {
  position: relative;
  margin-bottom: 40px;
}
.hub-roadmap-step:last-child { margin-bottom: 0; }
.hub-roadmap-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--hub-bg);
  border: 3.5px solid var(--hub-accent-primary);
  box-shadow: 0 0 8px var(--hub-accent-primary);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-roadmap-step:nth-child(2) .hub-roadmap-dot { border-color: #0ea5e9; box-shadow: 0 0 8px #0ea5e9; }
.hub-roadmap-step:nth-child(3) .hub-roadmap-dot { border-color: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.hub-roadmap-step:nth-child(4) .hub-roadmap-dot { border-color: var(--hub-accent-amber); box-shadow: 0 0 8px var(--hub-accent-amber); }

.hub-roadmap-content {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 24px;
  transition: border-color 0.22s;
}
.hub-roadmap-content:hover { border-color: rgba(16, 185, 129, 0.2); }
.hub-roadmap-content h3 { font-size: 1.15rem; color: var(--hub-white); margin-bottom: 8px; }
.hub-roadmap-content p { font-size: 0.92rem; }

/* ==========================================================================
   Quizzes Blocks
   ========================================================================== */
.hub-quiz-tabs { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.hub-quiz-tab {
  padding: 12px 24px;
  border-radius: var(--hub-r-md);
  border: 1.5px solid var(--hub-line);
  background: var(--hub-bg-panel);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--hub-text-muted);
  transition: all 0.2s;
}
.hub-quiz-tab.is-active {
  background: var(--hub-accent-primary);
  color: var(--hub-bg);
  border-color: var(--hub-accent-primary);
  font-weight: 800;
}
.hub-quiz-panel { display: none; }
.hub-quiz-panel.is-active { display: block; }

.hub-quiz-box {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: clamp(24px, 6vw, 48px);
}
.hub-quiz-progress-track { height: 6px; background: rgba(255, 255, 255, 0.08); border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.hub-quiz-progress-bar { height: 100%; background: var(--hub-accent-primary); width: 0; transition: width 0.3s ease; }
.hub-quiz-progress-label { font-size: 0.8rem; color: var(--hub-text-muted); margin-bottom: 32px; font-weight: 600; }

.hub-quiz-question { display: none; }
.hub-quiz-question.is-active { display: block; }
.hub-quiz-question h3 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin-bottom: 24px; color: var(--hub-white); }
.hub-quiz-options { display: grid; gap: 12px; }
@media(min-width: 640px) { .hub-quiz-options { grid-template-columns: 1fr 1fr; } }
.hub-quiz-option {
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--hub-r-md);
  border: 1.5px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.18s ease;
  color: var(--hub-text);
}
.hub-quiz-option:hover {
  border-color: var(--hub-accent-primary);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-2px);
}
.hub-quiz-option.is-correct { background: rgba(16, 185, 129, 0.15); border-color: var(--hub-accent-primary); color: var(--hub-accent-primary); }
.hub-quiz-option.is-incorrect { background: rgba(239, 68, 68, 0.15); border-color: var(--hub-accent-coral); color: var(--hub-accent-coral); }
.hub-quiz-option[disabled] { cursor: default; transform: none !important; }

.hub-quiz-explain { margin-top: 24px; padding: 20px; border-radius: var(--hub-r-md); background: rgba(6, 182, 212, 0.06); border: 1px solid rgba(6, 182, 212, 0.2); display: none; }
.hub-quiz-explain.is-visible { display: block; }
.hub-quiz-explain .verdict { font-weight: 800; font-family: var(--hub-font-head); margin-bottom: 6px; font-size: 1.1rem; color: var(--hub-white); }
.hub-quiz-next { margin-top: 24px; display: none; }
.hub-quiz-next.is-visible { display: inline-flex; }

.hub-quiz-results { display: none; text-align: center; }
.hub-quiz-results.is-visible { display: block; }
.hub-quiz-results .score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 3px solid var(--hub-accent-primary);
  font-family: var(--hub-font-head);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--hub-accent-primary);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.hub-quiz-bars { display: grid; gap: 16px; max-width: 480px; margin: 32px auto 0; text-align: left; }
.hub-quiz-bar-row .lbl { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.hub-quiz-bar-track { height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 50px; overflow: hidden; }
.hub-quiz-bar-fill { height: 100%; background: linear-gradient(to right, var(--hub-accent-primary), var(--hub-accent-secondary)); border-radius: 50px; width: 0; transition: width 0.6s ease; }

/* ==========================================================================
   Shop / Catalog Layout
   ========================================================================== */
.hub-shop-layout { display: grid; gap: 36px; margin-top: 40px; }
@media(min-width: 900px) {
  .hub-shop-layout { grid-template-columns: 260px 1fr; }
}
.hub-filter-sidebar {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 24px;
  height: fit-content;
}
.hub-filter-block { margin-bottom: 28px; }
.hub-filter-block:last-child { margin-bottom: 0; }
.hub-filter-block h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; color: var(--hub-white); }
.hub-checkbox-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 0.92rem; color: var(--hub-text-muted); cursor: pointer; }
.hub-checkbox-row:hover { color: var(--hub-white); }
.hub-checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--hub-accent-primary);
  cursor: pointer;
}

.hub-shop-toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.hub-shop-toolbar input[type=search] {
  flex: 1;
  min-width: 200px;
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 12px 18px;
  background: var(--hub-bg-panel);
  color: var(--hub-white);
}
.hub-shop-toolbar input[type=search]:focus { border-color: var(--hub-accent-primary); }
.hub-shop-toolbar select {
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 12px 18px;
  background: var(--hub-bg-panel);
  color: var(--hub-white);
  cursor: pointer;
}
.hub-shop-toolbar select:focus { border-color: var(--hub-accent-primary); }
.hub-result-count { font-size: 0.9rem; color: var(--hub-text-muted); font-weight: 600; }

.hub-shop-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media(min-width: 600px) and (max-width: 1024px) {
  .hub-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 1025px) {
  .hub-shop-grid { grid-template-columns: repeat(3, 1fr); }
}
.hub-empty-state { text-align: center; padding: 80px 20px; color: var(--hub-text-muted); display: none; }
.hub-empty-state.is-visible { display: block; }

/* ==========================================================================
   Product Modal
   ========================================================================== */
.hub-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
  padding: 40px 16px;
}
.hub-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.hub-modal {
  max-width: 960px;
  margin: 0 auto;
  background: var(--hub-bg-panel);
  border-radius: var(--hub-r-lg);
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  border: 1.5px solid var(--hub-line);
}
.hub-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1.5px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--hub-text);
}
.hub-modal-close:hover { border-color: var(--hub-accent-primary); color: var(--hub-accent-primary); }

.hub-modal-grid { display: grid; gap: 36px; }
@media(min-width: 720px) {
  .hub-modal-grid { grid-template-columns: 280px 1fr; }
}
.hub-modal-cover { aspect-ratio: 3/4; border-radius: var(--hub-r-md); overflow: hidden; background: var(--hub-bg); border: 1.5px solid var(--hub-line); }
.hub-modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.hub-modal-info h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 12px 0 4px; color: var(--hub-white); }
.hub-shipping-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 32px; }
@media(min-width: 480px) { .hub-shipping-grid { grid-template-columns: 1fr 1fr; } }
.hub-shipping-grid .item { background: rgba(0, 0, 0, 0.15); border: 1.5px solid var(--hub-line); border-radius: var(--hub-r-sm); padding: 16px; font-size: 0.85rem; }
.hub-shipping-grid .item strong { display: block; font-family: var(--hub-font-head); margin-bottom: 6px; color: var(--hub-white); }
.hub-review-box { background: rgba(16, 185, 129, 0.03); border: 1.5px solid var(--hub-line-glow); border-radius: var(--hub-r-sm); padding: 20px; margin-top: 24px; font-size: 0.92rem; line-height: 1.6; }

.hub-similar-row { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 16px; }
@media(min-width: 480px) { .hub-similar-row { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 680px) { .hub-similar-row { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Filter tabs (blog/testimonials)
   ========================================================================== */
.hub-tab-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.hub-tab-btn {
  padding: 10px 20px;
  border-radius: var(--hub-r-md);
  border: 1.5px solid var(--hub-line);
  background: var(--hub-bg-panel);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--hub-text-muted);
  transition: all 0.2s;
}
.hub-tab-btn:hover { color: var(--hub-white); border-color: rgba(255,255,255,0.2); }
.hub-tab-btn.is-active { background: var(--hub-accent-primary); color: var(--hub-bg); border-color: var(--hub-accent-primary); font-weight: 800; }

/* Article Card */
.hub-article-card {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.hub-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--hub-accent-primary);
  box-shadow: var(--hub-shadow-lg);
}
.hub-article-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--hub-bg); }
.hub-article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.hub-article-card:hover .thumb img { transform: scale(1.03); }
.hub-article-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.hub-article-meta { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--hub-accent-primary); margin-bottom: 12px; }
.hub-article-card h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--hub-white); font-weight: 700; line-height: 1.35; }
.hub-article-card p { font-size: 0.9rem; flex: 1; }

.hub-stat-tile-light {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: 28px;
  text-align: center;
  transition: border-color 0.2s;
}
.hub-stat-tile-light:hover { border-color: var(--hub-accent-secondary); }
.hub-stat-tile-light .num { font-family: var(--hub-font-head); font-size: 2.2rem; color: var(--hub-accent-secondary); font-weight: 800; }
.hub-stat-tile-light .lbl { font-size: 0.85rem; color: var(--hub-text-muted); margin-top: 6px; font-weight: 600; }

.hub-team-card { text-align: center; }
.hub-team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
  border: 2px solid var(--hub-accent-secondary);
}
.hub-team-card h3 { font-size: 1.15rem; color: var(--hub-white); }
.hub-team-card .role { font-size: 0.82rem; color: var(--hub-text-muted); margin-top: 4px; font-weight: 600; }

/* ==========================================================================
   Legal and Informational Pages
   ========================================================================== */
.hub-policy-box {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: 36px;
  margin-bottom: 24px;
}
.hub-policy-box h2 { font-size: 1.3rem; display: flex; gap: 12px; align-items: baseline; color: var(--hub-white); margin-bottom: 16px; }
.hub-policy-box h2 span.n { color: var(--hub-accent-primary); font-family: var(--hub-font-head); font-weight: 800; }
.hub-policy-box p, .hub-policy-box li { color: var(--hub-text-muted); font-size: 0.95rem; margin-top: 12px; line-height: 1.7; }
.hub-policy-box ul { list-style: disc; padding-left: 20px; }
.hub-policy-box ul li { margin-top: 8px; }

/* ==========================================================================
   Contact Page Details
   ========================================================================== */
.hub-info-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--hub-line);
}
.hub-info-card:last-child { border-bottom: none; }
.hub-info-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--hub-accent-secondary);
  border: 1px solid rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.25rem;
}
.hub-info-card h4 { font-size: 1.05rem; margin-bottom: 6px; color: var(--hub-white); }
.hub-info-card p { font-size: 0.92rem; }

/* ==========================================================================
   404 Page
   ========================================================================== */
.hub-404 { text-align: center; padding: 120px 0; }
.hub-404 svg { margin-bottom: 36px; color: var(--hub-accent-coral); filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.3)); }
.hub-404 h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--hub-white); }
.hub-404 p { max-width: 480px; margin: 16px auto 32px; font-size: 1.1rem; }

/* ==========================================================================
   Article Pages (Insights / Blog Posts)
   ========================================================================== */
.hub-article-layout {
  padding: clamp(40px, 8vw, 80px) 0;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(6, 182, 212, 0.04), transparent);
}

.hub-article-grid {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  grid-template-columns: 1fr;
}

@media(min-width: 992px) {
  .hub-article-grid {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.hub-article-content {
  max-width: 100%;
}

.hub-article-content .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--hub-accent-primary);
  margin-bottom: 28px;
  transition: all 0.25s ease;
  font-family: var(--hub-font-head);
}

.hub-article-content .back-link:hover {
  color: var(--hub-accent-secondary);
  transform: translateX(-4px);
}

.hub-article-content .meta {
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-article-content h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hub-white);
  margin: 0 0 32px 0;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hub-article-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 24px 0;
}

.hub-article-content > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--hub-text);
  font-weight: 500;
  border-left: 3px solid var(--hub-accent-primary);
  padding-left: 20px;
  margin-bottom: 36px;
  background: rgba(16, 185, 129, 0.02);
  padding-top: 8px;
  padding-bottom: 8px;
  border-radius: 0 6px 6px 0;
}

.hub-article-content h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--hub-white);
  margin: 48px 0 20px 0;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--hub-line);
}

.hub-article-content strong {
  color: var(--hub-white);
  font-weight: 600;
}

.hub-article-content ul, 
.hub-article-content ol {
  margin: 24px 0 32px 0;
  padding-left: 20px;
}

.hub-article-content li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
  position: relative;
  list-style: none;
}

.hub-article-content ul li::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-accent-secondary);
  box-shadow: 0 0 6px var(--hub-accent-secondary);
}

.hub-article-content .conclusion {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), rgba(6, 182, 212, 0.04));
  border: 1.5px solid var(--hub-line-glow);
  border-radius: var(--hub-r-md);
  padding: 28px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}

.hub-article-content .conclusion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--hub-accent-primary), var(--hub-accent-secondary));
}

.hub-article-content .conclusion h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hub-white);
  margin: 0 0 12px 0;
}

.hub-article-content .conclusion p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

/* Sidebar Styling */
.hub-article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

@media(min-width: 992px) {
  .hub-article-sidebar {
    position: sticky;
    top: 100px;
  }
}

.hub-article-sidebar-box {
  background: var(--hub-bg-panel);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-lg);
  padding: 28px;
  box-shadow: var(--hub-shadow-sm);
  transition: all 0.3s ease;
}

.hub-article-sidebar-box:hover {
  border-color: rgba(6, 182, 212, 0.2);
  box-shadow: var(--hub-shadow-md);
}

.hub-article-sidebar-box h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hub-white);
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.hub-article-sidebar-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hub-text-muted);
  margin: 0;
}

.book-card-lite {
  background: var(--hub-bg-card);
  border: 1.5px solid var(--hub-line);
  border-radius: var(--hub-r-md);
  padding: 20px;
  margin-top: 16px;
  transition: all 0.25s ease;
}

.book-card-lite:hover {
  border-color: var(--hub-accent-amber);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.book-card-lite h5 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hub-white);
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.book-card-lite .author {
  font-size: 0.85rem;
  color: var(--hub-text-muted);
  margin-bottom: 12px;
}

.book-card-lite .price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hub-accent-amber);
  margin-bottom: 16px;
  font-family: var(--hub-font-head);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.hub-mt-0 { margin-top: 0; }
.hub-text-center { text-align: center; }
.hub-hide { display: none !important; }

/* Media styling custom details */
@media(max-width: 480px) {
  :root { --hub-pad: 16px; }
  .hub-btn { width: 100%; text-align: center; }
  .hub-shop-grid { grid-template-columns: 1fr; }
}
