/* ── Visibility utilities ───────────────────────────────────────────────── */
/* Used to hide optional content on mobile that would break grid layouts.   */
.hidden-mobile { display: none !important; }

@media (min-width: 960px) {
  .hidden-mobile { display: block !important; }
}

/* ─── Client Page Components ────────────────────────────────────────────── */

/* ── #client-main: ensure fixed header never overlaps content ──────────────
   The individual client pages under clients/ load tw-stub.css rather than
   the Tailwind CDN. Define padding-top here as a definitive fallback so the
   header never covers content regardless of whether tw-stub.css loads.
   The @media (min-width: 960px) block below bumps this to 88px for desktop. */
#client-main {
  padding-top: 80px;
}

.cp-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
  margin-bottom: 20px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cp-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 600;
}
.cp-bc-link:hover { color: #d1d5db; }

.cp-bc-icon { font-size: 9px; opacity: 0.7; }

.cp-bc-sep {
  font-size: 7px;
  color: #374151;
  flex-shrink: 0;
}

.cp-bc-current {
  color: #e5e7eb;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.cp-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  color: #6b7280;
  border: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cp-tag-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  color: #6b7280;
  border: 1px solid rgba(255,255,255,0.08);
}

.cp-version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 99px;
}

.cp-client-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  flex-shrink: 0;
}
.cp-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cp-arch-switcher {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  width: fit-content;
}

.cp-arch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
}
.cp-arch-btn:hover { color: #d1d5db; }
.cp-arch-btn--active {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}

.cp-ver-preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.2s;
}
.cp-ver-preview-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.10);
}

.cp-ver-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  font-size: 12px;
  flex-shrink: 0;
}

.cp-ver-preview-info { flex: 1; min-width: 0; }

.cp-ver-preview-name {
  font-size: 13px;
  font-weight: 700;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.cp-ver-preview-meta {
  font-size: 10px;
  color: #4b5563;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cp-ver-dot { color: #374151; }

.cp-ver-soon {
  font-size: 9px;
  font-weight: 700;
  color: #f97316;
  background: rgba(249,115,22,0.10);
  border: 1px solid rgba(249,115,22,0.20);
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cp-ver-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 5px;
  vertical-align: middle;
}
.cp-ver-badge--beta   { color: #eab308; background: rgba(234,179,8,0.10);  border: 1px solid rgba(234,179,8,0.20); }
.cp-ver-badge--legacy { color: #6b7280; background: rgba(107,114,128,0.10); border: 1px solid rgba(107,114,128,0.20); }
.cp-ver-badge--stable { color: #22c55e; background: rgba(34,197,94,0.10);  border: 1px solid rgba(34,197,94,0.20); }

.cp-view-all-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: #9ca3af;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  letter-spacing: 0.02em;
}
.cp-view-all-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  color: #e5e7eb;
}
.cp-view-all-btn--collapse { color: #6b7280; }

.client-page-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.client-page-left  { width: 100%; }
.client-page-right { width: 100%; }

/* ─── End Client Page Components ─────────────────────────────────────────── */

.pack-card-title   { font-size: 0.78rem !important; }
.pack-card-body    { padding: 10px 12px 14px !important; }
.pack-meta-size    { font-size: 0.65rem !important; }
.pack-meta-tag     { font-size: 0.62rem !important; }
.ch-name           { font-size: 0.72rem !important; }
.section-heading   { font-size: 0.82rem !important; }
.stat-pill-label   { font-size: 0.62rem !important; }
.pack-stat-item    { font-size: 0.65rem !important; }

.client-card-h { min-height: 44px; }
.tag-filter-btn { min-height: 36px; min-width: 36px; }

.desktop-nav-links {
  display: none;
  align-items: center;
  gap: 0.125rem;
}

.desktop-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  white-space: nowrap;
  line-height: 1;
}
.desktop-nav-link:hover {
  color: #e5e7eb;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.10);
}
.desktop-nav-link.active {
  color: var(--tc);
  background: var(--acc-10);
  border-color: var(--acc-30);
}
.desktop-nav-link i { font-size: 0.72rem; opacity: 0.8; }

.home-layout {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 479px) {
  nav[data-main-nav] {
    padding: 0.35rem 0.625rem !important;
  }
  .pack-card-title { font-size: 0.72rem !important; }
  .client-card-h {
    width: 108px !important;
    height: 108px !important;
  }
  .client-card-h img {
    width: 58px !important;
    height: 58px !important;
  }
  .stats-grid-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  /* Prevent project-card embed banner from causing overflow */
  .pack-grid-home,
  .pack-grid-page {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }
  /* Keep download hero comfortable on small phones */
  .download-hero { padding: 1.25rem !important; }
}

/* ── 399 px and below: prevent client-scroll horizontal overflow ────────────
   Three 108-px cards + gaps = ~344 px which overflows a 280-px container.
   Drop to two columns so each card is ~130 px — fits any 320-px viewport. */
@media (max-width: 399px) {
  .client-scroll {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .client-card-h {
    width: auto !important;
    height: 100px !important;
  }
  .client-card-h img {
    width: 50px !important;
    height: 50px !important;
  }
  #main-content,
  .page-container {
    padding-left: 0.875rem !important;
    padding-right: 0.875rem !important;
  }
  nav[data-main-nav] {
    padding: 0.3rem 0.5rem !important;
    gap: 0.25rem !important;
  }
  /* Pack grid: single column on 320-px phones */
  .pack-grid-home,
  .pack-grid-page {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }
  /* Breadcrumb: tighten on very small screens */
  .cp-bc-current { max-width: 110px; }
  /* Version list: single column */
  .version-list-grid {
    grid-template-columns: 1fr !important;
  }
  /* Stats grid */
  .stats-grid-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .about-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (min-width: 768px) {
  nav[data-main-nav] {
    max-width: 700px !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  #main-content {
    max-width: 700px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .page-container {
    max-width: 700px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  footer.page-footer {
    max-width: 700px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  .pack-card-title { font-size: 0.82rem !important; }
  .pack-meta-size  { font-size: 0.68rem !important; }
  .pack-grid-home  { grid-template-columns: repeat(3, 1fr) !important; }
  .pack-grid-page  { grid-template-columns: repeat(3, 1fr) !important; }
  .client-scroll {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    gap: 8px !important;
  }
  .client-card-h {
    width: auto !important;
    min-width: 0 !important;
    flex-shrink: unset !important;
    height: 130px !important;
  }
  .stats-grid-6 {
    grid-template-columns: repeat(6, 1fr) !important;
  }
  .download-hero { padding: 1.5rem !important; }
}

@media (min-width: 960px) {

  
  body {
    background-image:
      radial-gradient(circle at 8% 20%, var(--acc-10) 0%, transparent 35%),
      radial-gradient(circle at 92% 75%, var(--acc-10) 0%, transparent 35%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
  }

  

  
  header:has(nav[data-main-nav]) {
    padding: 0 !important;
    width: 100% !important;
    background: rgba(5, 5, 10, 0.88) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    pointer-events: auto !important;
    display: block !important;
    box-shadow: 0 1px 40px rgba(0,0,0,0.4) !important;
    width: 100% !important;
  }

  
  header.scrolled:has(nav[data-main-nav]) {
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255,255,255,0.05) !important;
  }

  nav[data-main-nav] {
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    padding: 0.875rem 2.5rem !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  
  nav[data-main-nav] .logo-circle {
    width: 42px !important;
    height: 42px !important;
  }

  
  .desktop-nav-links {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    gap: 0.25rem !important;
  }

  
  .mobile-only-nav-btn {
    display: none !important;
  }

  
  nav[data-main-nav] > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 120px !important;
    justify-content: flex-end !important;
  }

  

  #main-content {
    max-width: 1320px !important;
    padding-top: 80px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    box-sizing: border-box !important;
  }

  .page-container {
    max-width: 1320px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    padding-top: 80px !important;
  }

  footer.page-footer {
    max-width: 1320px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
  }

  

  .home-layout {
    display: grid !important;
    grid-template-columns: 300px 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
  }

  .home-sidebar-col {
    position: sticky !important;
    top: 76px !important;
    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  .home-sidebar-col::-webkit-scrollbar { display: none; }

  .home-main-col {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    min-width: 0 !important;
  }
  .home-main-col > * + * { margin-top: 0; }

  

  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 1rem !important;
  }

  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
  }

  
  .pack-card-title { font-size: 0.9rem !important; }
  .pack-meta-size  { font-size: 0.72rem !important; }
  .pack-meta-tag   { font-size: 0.65rem !important; padding: 2px 8px !important; }

  

  .pack-img-full {
    aspect-ratio: unset !important;
    height: 170px !important;
    flex-shrink: 0 !important;
  }

  .pack-img-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  
  .pack-card-v {
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease) !important;
    cursor: pointer !important;
  }
  .pack-card-v:hover {
    transform: translateY(-6px) scale(1.02) !important;
    box-shadow:
      0 20px 60px rgba(0, 0, 0, 0.55),
      0 0 0 1px var(--acc-30),
      0 0 30px var(--acc-10) !important;
    border-color: var(--acc-30) !important;
  }
  .pack-card-v:hover .pack-img-full img {
    transform: scale(1.08) !important;
  }
  .pack-card-v:active {
    transform: translateY(-2px) scale(1.005) !important;
    transition-duration: 0.1s !important;
  }

  

  .client-scroll {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
    gap: 0.75rem !important;
  }

  .client-card-h {
    width: auto !important;
    height: 140px !important;
    min-width: 0 !important;
    flex-shrink: unset !important;
    border-radius: 1.125rem !important;
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease) !important;
  }

  .client-card-h:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px var(--acc-15), 0 0 20px var(--acc-10) !important;
    border-color: var(--acc-20, rgba(168,85,247,0.20)) !important;
    background: rgba(255,255,255,0.07) !important;
  }

  .client-card-h img {
    width: 70px !important;
    height: 70px !important;
    border-radius: 14px !important;
  }

  

  .about-layout {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 2rem !important;
    align-items: start !important;
    text-align: left !important;
  }

  .about-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 80px;
  }

  .about-content-col {
    display: flex;
    flex-direction: column;
    /* gap intentionally omitted: Tailwind space-y-4 on the element already
       provides 1rem spacing between children; adding gap here would double it */
  }

  .about-stats-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  

  #settings-main .settings-panels {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.25rem !important;
    align-items: start !important;
    row-gap: 1.25rem !important;
  }
  #settings-main .settings-panels > * {
    margin-top: 0 !important;
  }

  

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  

  .download-hero { padding: 2.5rem !important; }

  #client-main {
    max-width: 1320px !important;
    padding-top: 88px !important;
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
    box-sizing: border-box !important;
  }

  .client-page-layout {
    display: grid !important;
    grid-template-columns: 380px 1fr !important;
    gap: 1.75rem !important;
    align-items: start !important;
  }

  .client-page-left {
    position: sticky !important;
    top: 80px !important;
    max-height: calc(100vh - 96px) !important;
    overflow-y: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  .client-page-left::-webkit-scrollbar { display: none; }

  .client-page-right { min-width: 0 !important; }

  .cp-bc-current { max-width: 280px; }

  .version-list-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.625rem !important;
  }

  .stats-grid-6 {
    grid-template-columns: repeat(6, 1fr) !important;
  }

  .welcome-state {
    display: flex !important;
  }

  
  #pack-search {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem 0.75rem 2.75rem !important;
  }

  
  .tag-filter-btn {
    font-size: 0.7rem !important;
    padding: 0.45rem 1rem !important;
  }

  
  .stat-card {
    transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease) !important;
  }
  .stat-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px var(--acc-10) !important;
    border-color: var(--acc-20, rgba(168,85,247,0.20)) !important;
  }

  
  .product-selector:hover {
    transform: translateY(-3px) scale(1.01) !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4) !important;
  }

  
  .pack-page-container {
    max-width: 1024px !important;
  }
}

@media (min-width: 1280px) {

  nav[data-main-nav] {
    padding: 0.875rem 3rem !important;
  }

  #main-content {
    max-width: 1440px !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  #client-main {
    max-width: 1440px !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  .client-page-layout {
    grid-template-columns: 400px 1fr !important;
    gap: 2rem !important;
  }

  .page-container {
    max-width: 1440px !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  footer.page-footer {
    max-width: 1440px !important;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
  }

  .home-layout {
    grid-template-columns: 330px 1fr !important;
    gap: 2.5rem !important;
  }

  
  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
  }
  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  }

  .pack-img-full {
    height: 185px !important;
  }

  .client-card-h {
    height: 148px !important;
  }

  .pack-card-title { font-size: 0.92rem !important; }
  .pack-card-body  { padding: 12px 14px 16px !important; }
}

@media (min-width: 1536px) {

  nav[data-main-nav] {
    padding: 0.875rem 4rem !important;
  }

  #main-content {
    max-width: 1600px !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }

  .page-container {
    max-width: 1600px !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }

  footer.page-footer {
    max-width: 1600px !important;
    padding-left: 4rem !important;
    padding-right: 4rem !important;
  }

  .home-layout {
    grid-template-columns: 360px 1fr !important;
  }

  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  }
  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  }

  .pack-img-full {
    height: 200px !important;
  }

  .client-card-h { height: 156px !important; }
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer-logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--acc-30);
}

.footer-tagline {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer-link-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 100px;
}

.footer-link-column h4 {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.25rem 0;
}

.footer-link-column a {
  font-size: 0.78rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link-column a:hover { color: #e5e7eb; }

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-1);
  border: 1px solid var(--border-1);
  color: #6b7280;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.2s var(--ease);
}
.social-icon:hover {
  color: #fff;
  background: var(--glass-2);
  border-color: var(--acc-30);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--acc-10);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-1);
}
.footer-tags p {
  font-size: 0.6rem;
  color: #374151;
  margin: 0;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

.footer-bottom {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  border-top: 1px solid var(--border-1);
}
.footer-bottom-text {
  font-size: 0.65rem;
  color: #374151;
  margin: 0;
}
.footer-bottom p {
  font-size: 0.6rem;
  color: #1f2937;
  margin: 0;
}

@media (min-width: 960px) {
  .footer-container {
    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    gap: 2.5rem !important;
    align-items: start !important;
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 3rem 2.5rem 2rem !important;
  }

  .footer-links {
    gap: 3rem;
    justify-content: center;
  }

  .footer-social {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
  }

  .footer-tags,
  .footer-bottom {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 1280px) {
  .footer-container {
    max-width: 1440px !important;
    padding: 3rem 3rem 2rem !important;
  }
  .footer-tags,
  .footer-bottom {
    max-width: 1440px;
  }
}

.contact-input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-2);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  min-height: 44px;
}
.contact-input::placeholder { color: #4b5563; }
.contact-input:focus {
  border-color: var(--acc-50);
  box-shadow: 0 0 0 3px var(--acc-10);
}

.contact-submit-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  transition: all 0.2s var(--ease);
  min-height: 48px;
}

.error-code-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tc);
  background: var(--acc-10);
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  border: 1px solid var(--acc-30);
}

.error-heading {
  font-size: clamp(4rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--tc);
  text-shadow: 0 0 60px var(--acc-30);
}

@media (min-width: 768px) {
  .pack-page-container {
    max-width: 700px !important;
  }
}
@media (min-width: 960px) {
  .pack-page-container {
    max-width: 1024px !important;
  }
}

@media (min-width: 960px) {
  ::-webkit-scrollbar { width: 8px; height: 8px; }
  ::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
  ::-webkit-scrollbar-thumb {
    background: rgba(168,85,247,0.3);
    border-radius: 10px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(168,85,247,0.5);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Client detail page: responsive hero & layout fixes
   Applied on top of existing rules; targets all screen sizes.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Contain the hero card properly on all browsers ─────────────────────
   Promotes the card to a GPU compositing layer so overflow:hidden actually
   clips absolutely-positioned children (including on iOS Safari).           */
.download-hero {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
}

/* ── 2. Hero watermark: static, no float animation ─────────────────────────
   Removing animate-float in JS prevents the transform from escaping the
   overflow:hidden clip boundary. Use a subtle opacity pulse instead.        */
.cp-hero-watermark {
  animation: heroWatermarkPulse 6s ease-in-out infinite;
}
@keyframes heroWatermarkPulse {
  0%, 100% { opacity: 0.04; }
  50%       { opacity: 0.07; }
}

/* ── 3. Hero head: top-align logo with title ───────────────────────────────
   items-center makes the logo float to the middle of a wrapped title.
   items-start keeps it anchored to the top.                                 */
.cp-hero-head {
  align-items: flex-start !important;
}

/* ── 4. Hero title: proper line height & word wrapping ─────────────────────
   leading-none (line-height:1) clips ascenders/descenders when text wraps.  */
.cp-hero-title {
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: break-word;
  margin-top: 2px;            /* optical alignment with the badge row above  */
}

/* ── 5. Client logo: never shrink below its declared size ──────────────────  */
.cp-client-logo {
  flex-shrink: 0 !important;
  align-self: flex-start;
}

/* ── 6. Action row (Copy link + Share): equal-width columns ────────────────
   Grid guarantees both buttons are the same width at every viewport.        */
.cp-action-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.cp-action-row button {
  min-height: 44px;           /* comfortable touch target                    */
  white-space: nowrap;
}

/* ── 7. Download button: minimum touch height ──────────────────────────────  */
#main-download-btn {
  min-height: 52px;
}

/* ── 8. Version cards: prevent long names from pushing buttons off-screen ── */
.version-card {
  align-items: center;
}
.version-card .flex-1.min-w-0 {
  overflow: hidden;
}

/* ── 9. Tablet breakpoint (480–767 px): give #client-main more room ─────── */
@media (min-width: 480px) and (max-width: 767px) {
  #client-main {
    max-width: 600px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}

/* ── 10. Small phones (<380 px): stack logo above title ────────────────────
   Below 380 px the flex row gets too tight; stacking gives full width to
   the title and badge row.                                                   */
@media (max-width: 379px) {
  .cp-hero-head {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .cp-client-logo {
    width: 44px !important;
    height: 44px !important;
  }
  .download-hero {
    padding: 1rem !important;
  }
}

/* ── 11. Desktop left column: increase bottom padding so content isn't
        cut off by the max-height scroll container ────────────────────────── */
@media (min-width: 960px) {
  .client-page-left {
    padding-bottom: 1.5rem !important;
  }
  /* Download hero: restore full padding (overrides the 480px rule) */
  .download-hero {
    padding: 2.5rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Client detail page — single-column layout (client-page.js v3)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Page wrapper — constrain to a readable max-width on large screens */
.cp-page-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* ── Loading & error states ──────────────────────────────────────────────── */
.cp-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 5rem 0;
}
.cp-loading-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.08);
  border-top-color: var(--tc);
  animation: spin 0.9s linear infinite;
}
.cp-loading-text {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}
.cp-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 5rem 1rem;
  text-align: center;
}
.cp-error-icon {
  font-size: 2.5rem;
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
}
.cp-error-msg {
  font-size: 0.95rem;
  color: #9ca3af;
  font-weight: 600;
  margin: 0;
}
.cp-error-back {
  font-size: 0.8rem;
  color: var(--tc);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.25rem;
}
.cp-error-back:hover { text-decoration: underline; }

/* ── Hero card ───────────────────────────────────────────────────────────── */
.cp-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s;
}
.cp-hero-watermark {
  position: absolute;
  right: -16px;
  top: -16px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  opacity: 0.04;
  filter: grayscale(20%);
}
.cp-hero-watermark img {
  width: 140px;
  height: 140px;
  border-radius: 1.5rem;
  display: block;
}
.cp-hero-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
}

/* logo + name row */
.cp-hero-head {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}
.cp-client-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  transition: box-shadow 0.3s;
  background: rgba(0,0,0,0.3);
}
.cp-client-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cp-hero-title-block { min-width: 0; flex: 1 1 auto; }
.cp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.35rem;
}
.cp-hero-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  word-break: break-word;
  margin: 0;
  letter-spacing: -0.01em;
}
/* "Apollon Client v6.2" sub-label */
.cp-hero-version-label {
  font-size: 0.72rem;
  color: #4b5563;
  font-weight: 600;
  margin-top: 0.25rem;
  font-family: 'Outfit', monospace, sans-serif;
}

/* version chip */
.cp-hero-version-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cp-version-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 99px;
}
.cp-live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}
.cp-live-dot::before,
.cp-live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--tc);
}
.cp-live-dot::before {
  animation: loadingPulse 1.8s ease-in-out infinite;
  opacity: 0.5;
  transform: scale(1.5);
}
.cp-live-dot::after { z-index: 1; }
.cp-ver-chip-num {
  font-family: 'Outfit', monospace, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
}
.cp-ver-chip-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4b5563;
  font-weight: 700;
}

/* short summary */
.cp-hero-summary {
  font-size: 0.82rem;
  color: #9ca3af;
  line-height: 1.6;
  margin: 0 0 0.875rem;
}

/* stat pills — file size + requirements */
.cp-stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}
.cp-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: 'Outfit', monospace, sans-serif;
}
.cp-stat-pill i {
  font-size: 0.6rem;
  color: var(--tc);
  opacity: 0.8;
}

/* download button */
.cp-dl-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  color: #fff;
  transition: all 0.25s;
  letter-spacing: 0.01em;
}
.cp-dl-btn:active { transform: scale(0.98); }
.cp-dl-btn--locked {
  background: rgba(255,255,255,0.05);
  color: #4b5563;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: not-allowed;
}

/* secondary action row: Copy Link | Share */
.cp-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.625rem;
}
.cp-action-btn {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  min-height: 44px;
}
.cp-action-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.cp-action-btn:active { transform: scale(0.97); }

/* progress bar */
.cp-progress-wrap { margin-top: 0.875rem; }
.cp-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.cp-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s ease;
}
.cp-progress-label {
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 0.375rem;
  text-align: center;
  font-family: 'Outfit', monospace, sans-serif;
}

/* ── Section card (shared by all below-hero sections) ────────────────────── */
.cp-section {
  border-radius: 18px;
  padding: 1.125rem 1.25rem;
  margin-bottom: 1rem;
}

/* Section title row: icon + h2 heading */
.cp-section-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.cp-section-title-row i {
  font-size: 0.72rem;
  color: #4b5563;
}
.cp-section-title-row h2 {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  margin: 0;
}

/* ── Version History section ─────────────────────────────────────────────── */

/* Header row: title on left, arch switcher on right (or just count) */
.cp-ver-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.cp-ver-section-head .cp-section-title-row { margin-bottom: 0; }
.cp-ver-section-head--simple { margin-bottom: 0.875rem; }

/* Release count pill */
.cp-ver-count {
  font-size: 0.65rem;
  color: #374151;
  background: rgba(255,255,255,0.04);
  padding: 3px 10px;
  border-radius: 99px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.cp-ver-count-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.625rem;
  margin-top: -0.375rem;
}

/* Arch switcher — in version history header */
.cp-arch-switcher {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
}
.cp-arch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: #6b7280;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  white-space: nowrap;
}
.cp-arch-btn:hover { color: #d1d5db; }
.cp-arch-btn--active {
  color: #fff;
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}

/* Version list */
.cp-versions-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Version card */
.cp-ver-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
}
/* Colored left accent bar */
.cp-ver-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}
.cp-ver-card--stable::before { background: rgba(34,197,94,0.5); }
.cp-ver-card--beta::before   { background: rgba(234,179,8,0.5); }
.cp-ver-card--legacy::before { background: rgba(107,114,128,0.28); }
.cp-ver-card:hover {
  background: rgba(255,255,255,0.055);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(2px);
}

/* Version icon box */
.cp-ver-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: #4b5563;
}
.cp-ver-card--stable .cp-ver-icon-box { color: #22c55e; background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.14); }
.cp-ver-card--beta   .cp-ver-icon-box { color: #eab308; background: rgba(234,179,8,0.07); border-color: rgba(234,179,8,0.14); }
.cp-ver-card--legacy .cp-ver-icon-box { color: #6b7280; }

.cp-ver-info { flex: 1; min-width: 0; }

/* Version name */
.cp-ver-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1.25;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chips row: badge + req + size + date */
.cp-ver-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.cp-ver-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.63rem;
  font-weight: 600;
  color: #6b7280;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: 'Outfit', monospace, sans-serif;
  white-space: nowrap;
}
.cp-ver-meta-chip i { font-size: 0.5rem; color: #4b5563; }

/* Release type badge */
.cp-ver-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}
.cp-ver-badge--stable { color: #22c55e; background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.20); }
.cp-ver-badge--beta   { color: #eab308; background: rgba(234,179,8,0.10); border: 1px solid rgba(234,179,8,0.20); }
.cp-ver-badge--legacy { color: #9ca3af; background: rgba(107,114,128,0.09); border: 1px solid rgba(107,114,128,0.18); }

/* Coming-soon label inside a version card */
.cp-ver-soon {
  margin-top: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #f97316;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Action buttons: download + copy */
.cp-ver-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.cp-ver-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.18s;
  font-family: inherit;
}
.cp-ver-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}
.cp-ver-btn:active { transform: scale(0.92); }
.cp-ver-btn--locked { color: #374151; cursor: not-allowed; border-color: rgba(255,255,255,0.04); }

/* Empty state */
.cp-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  color: #374151;
  text-align: center;
}
.cp-empty i { font-size: 1.8rem; display: block; }
.cp-empty p { font-size: 0.8rem; margin: 0; color: #4b5563; }

/* ── Description section ─────────────────────────────────────────────────── */
.cp-desc-body { display: flex; flex-direction: column; gap: 0.5rem; }
.cp-desc-text {
  font-size: 0.83rem;
  color: #9ca3af;
  line-height: 1.7;
  margin: 0;
}

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.cp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cp-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.cp-faq-item:last-child { border-bottom: none; }

.cp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 0;
  background: none;
  border: none;
  color: #d1d5db;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
  line-height: 1.4;
}
.cp-faq-q:hover { color: #fff; }
.cp-faq-item--open .cp-faq-q { color: #fff; }

.cp-faq-chevron {
  font-size: 0.65rem;
  color: #4b5563;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), color 0.2s;
}
.cp-faq-item--open .cp-faq-chevron {
  transform: rotate(180deg);
  color: var(--tc);
}

/* Animated answer body */
.cp-faq-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cp-faq-item--open .cp-faq-body { /* max-height set via JS */ }
.cp-faq-a {
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.7;
  margin: 0;
  padding-bottom: 0.875rem;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .cp-hero-body { padding: 1.5rem; }
  .cp-hero-title { font-size: 1.5rem; }
  .cp-client-logo { width: 72px; height: 72px; border-radius: 18px; }
  .cp-section { padding: 1.25rem 1.5rem; border-radius: 20px; }
  .cp-dl-btn { font-size: 1rem; padding: 17px; }
}

@media (min-width: 960px) {
  .cp-page-wrap { max-width: 720px; }
  .cp-hero-body { padding: 1.75rem 2rem; }
  .cp-hero-title { font-size: 1.6rem; }
  .cp-client-logo { width: 80px; height: 80px; border-radius: 20px; }
  .cp-section { padding: 1.375rem 1.75rem; border-radius: 22px; }
  .cp-ver-card { padding: 0.875rem 1.125rem; }
  .cp-dl-btn { font-size: 1.05rem; padding: 18px; }
}

@media (max-width: 379px) {
  .cp-hero-head { gap: 0.75rem; }
  .cp-client-logo { width: 52px; height: 52px; }
  .cp-hero-title { font-size: 1.1rem; }
  .cp-hero-body { padding: 1rem; }
  .cp-action-row { grid-template-columns: 1fr; }
  .cp-ver-section-head { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Desktop dropdown navigation
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-dropdown-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-trigger {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
}

.nav-dd-caret {
  font-size: 0.55rem !important;
  opacity: 0.5;
  transition: transform 0.2s var(--ease);
  margin-left: 2px;
}

.nav-dropdown-group.is-open .nav-dd-caret {
  transform: rotate(180deg);
  opacity: 0.8;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 185px;
  background: rgba(8, 8, 16, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 6px;
  z-index: 200;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: fadeUp 0.18s var(--ease) forwards;
}

.nav-dropdown-group.is-open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.48rem 0.8rem;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.15s var(--ease);
  cursor: pointer;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
  white-space: nowrap;
  border: 1px solid transparent;
}
.nav-dd-item:not(.nav-dd-item--disabled):hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.06);
}
.nav-dd-item--active {
  color: var(--tc) !important;
  background: var(--acc-10);
  border-color: var(--acc-30) !important;
}
.nav-dd-item--disabled {
  color: #4b5563;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}
.nav-dd-item i {
  font-size: 0.68rem !important;
  opacity: 0.8;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}

.nav-dd-soon-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.10);
  border: 1px solid rgba(249, 115, 22, 0.22);
  padding: 2px 7px;
  border-radius: 99px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile nav: group accordion items
   ═══════════════════════════════════════════════════════════════════════════ */

.mobile-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-nav-group-trigger {
  background: transparent;
  font-family: 'Outfit', system-ui, Arial, sans-serif;
}
.mobile-nav-group-trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-group-caret {
  transition: transform 0.22s var(--ease);
}

.mobile-nav-group-items {
  overflow: hidden;
}

.mobile-nav-subitem {
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.mobile-nav-subitem--disabled {
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

.mobile-nav-soon-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #f97316;
  background: rgba(249, 115, 22, 0.10);
  border: 1px solid rgba(249, 115, 22, 0.22);
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   REDESIGN v2  —  Navigation bar · Card grid (mobile 1-col · desktop grid)
   All rules here use !important to override earlier declarations cleanly.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Shared nav-link baseline (mobile + desktop) ──────────────────────── */

.desktop-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.5rem 0.95rem !important;
  border-radius: 0.625rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #9ca3af !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  cursor: pointer !important;
  font-family: 'Outfit', system-ui, Arial, sans-serif !important;
  position: relative !important;
}

/* Icon inside link — unified size + alignment */
.desktop-nav-link i,
.desktop-nav-link > i {
  font-size: 0.72rem !important;
  opacity: 0.75 !important;
  transition: opacity 0.18s ease !important;
  flex-shrink: 0 !important;
}

/* Hover state */
.desktop-nav-link:hover {
  color: #f3f4f6 !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}
.desktop-nav-link:hover i { opacity: 1 !important; }

/* Active state — accent-tinted pill with subtle glow */
.desktop-nav-link.active {
  color: var(--tc, #a855f7) !important;
  background: rgba(168, 85, 247, 0.09) !important;
  border-color: rgba(168, 85, 247, 0.22) !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.08) !important;
}
.desktop-nav-link.active i { opacity: 1 !important; }

/* ── 2. Desktop nav bar (960 px +) ───────────────────────────────────────── */

@media (min-width: 960px) {

  /* Full-width bar shell */
  header:has(nav[data-main-nav]) {
    height: 68px !important;
    display: flex !important;
    align-items: center !important;
    background: rgba(4, 4, 10, 0.92) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065) !important;
    box-shadow: 0 1px 32px rgba(0, 0, 0, 0.45) !important;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  }

  /* Deeper shadow on scroll */
  header.scrolled:has(nav[data-main-nav]) {
    background: rgba(3, 3, 8, 0.97) !important;
    box-shadow: 0 4px 48px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255,255,255,0.055) !important;
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
  }

  /* Inner nav: full-width centred strip */
  nav[data-main-nav] {
    height: 68px !important;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 2.5rem !important;
    border-radius: 0 !important;
    border: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }

  /* Logo circle */
  nav[data-main-nav] .logo-circle {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
  }
  nav[data-main-nav] a:first-child:hover .logo-circle {
    transform: scale(1.08) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35) !important;
  }

  /* Link strip — centred flex */
  .desktop-nav-links {
    display: flex !important;
    flex: 1 !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.2rem !important;
  }

  /* Slightly larger links on desktop */
  .desktop-nav-link {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
  }

  /* Right-side slot (cta / theme picker hidden via mobile-only) */
  nav[data-main-nav] > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    min-width: 48px !important;   /* just enough for balance */
    justify-content: flex-end !important;
    flex-shrink: 0 !important;
  }

  /* Bump main-content top clearance to match taller bar */
  #main-content {
    padding-top: 84px !important;
  }
  .page-container {
    padding-top: 84px !important;
  }
  #client-main {
    padding-top: 92px !important;
  }
  .home-sidebar-col {
    top: 80px !important;
    max-height: calc(100vh - 96px) !important;
  }
}

@media (min-width: 1280px) {
  nav[data-main-nav] {
    padding: 0 3rem !important;
  }
  .desktop-nav-links {
    gap: 0.25rem !important;
  }
}

@media (min-width: 1536px) {
  nav[data-main-nav] {
    padding: 0 4rem !important;
  }
}

/* ── 3. Dropdown menu — polished enter animation + arrow notch ───────────── */

.nav-dropdown-menu {
  min-width: 196px !important;
  padding: 5px !important;
  border-radius: 14px !important;
  background: rgba(6, 6, 14, 0.98) !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 40px rgba(168, 85, 247, 0.04) !important;
  top: calc(100% + 10px) !important;
  animation: ddFadeUp 0.17s cubic-bezier(0.22, 1, 0.36, 1) forwards !important;
}

/* Arrow connector */
.nav-dropdown-menu::before {
  content: '' !important;
  position: absolute !important;
  top: -5px !important;
  left: 50% !important;
  transform: translateX(-50%) rotate(45deg) !important;
  width: 9px !important;
  height: 9px !important;
  background: rgba(6, 6, 14, 0.98) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 2px 0 0 0 !important;
}

@keyframes ddFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0)   scale(1);    }
}

/* Dropdown items — more generous padding */
.nav-dd-item {
  padding: 0.5rem 0.85rem !important;
  border-radius: 9px !important;
  font-size: 0.825rem !important;
  font-weight: 600 !important;
  gap: 0.6rem !important;
}
.nav-dd-item:not(.nav-dd-item--disabled):hover {
  color: #f3f4f6 !important;
  background: rgba(255, 255, 255, 0.075) !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
}
.nav-dd-item--active {
  color: var(--tc, #a855f7) !important;
  background: rgba(168, 85, 247, 0.09) !important;
  border-color: rgba(168, 85, 247, 0.22) !important;
}
.nav-dd-item i {
  width: 15px !important;
  font-size: 0.7rem !important;
  opacity: 0.8 !important;
  text-align: center !important;
}

/* Caret on dropdown trigger */
.nav-dd-caret {
  font-size: 0.5rem !important;
  opacity: 0.45 !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}
.nav-dropdown-group.is-open .nav-dd-caret {
  transform: rotate(180deg) !important;
  opacity: 0.75 !important;
}

/* ── 4. Mobile cards — single column ─────────────────────────────────────── */
/* Override the Tailwind grid-cols-2 class the JS injects               */

@media (max-width: 639px) {
  .pack-grid-home,
  .pack-grid-page {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* Full-width card: horizontal layout (image left, body right) */
  .pack-card-v {
    flex-direction: row !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease !important;
  }
  .pack-card-v:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px) !important;
  }
  .pack-img-full {
    width: 108px !important;
    min-width: 108px !important;
    aspect-ratio: unset !important;
    height: 108px !important;
    border-radius: 0 !important;
    flex-shrink: 0 !important;
  }
  .pack-img-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .pack-card-body {
    flex: 1 !important;
    padding: 12px 14px !important;
    min-width: 0 !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  .pack-card-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #e5e7eb !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }
  .pack-meta-size,
  .pack-meta-category {
    font-size: 0.7rem !important;
  }
}

/* ── 5. Tablet: 2 clean columns ──────────────────────────────────────────── */

@media (min-width: 640px) and (max-width: 959px) {
  .pack-grid-home,
  .pack-grid-page {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.875rem !important;
  }
  .pack-card-v {
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease !important;
  }
  .pack-card-v:hover {
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
  }
  .pack-img-full {
    aspect-ratio: 16/9 !important;
    height: auto !important;
    border-radius: 0 !important;
  }
  .pack-card-body {
    padding: 10px 12px 14px !important;
  }
}

/* ── 6. Desktop cards — refined grid + improved card chrome ──────────────── */

@media (min-width: 960px) {

  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) !important;
    gap: 1.125rem !important;
  }
  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 1.125rem !important;
  }

  /* Card chrome */
  .pack-card-v {
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    transition:
      transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      background 0.2s ease !important;
    cursor: pointer !important;
  }
  .pack-card-v:hover {
    transform: translateY(-6px) scale(1.015) !important;
    box-shadow:
      0 20px 56px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(168, 85, 247, 0.22),
      0 0 28px rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
    background: rgba(255, 255, 255, 0.04) !important;
  }
  .pack-card-v:active {
    transform: translateY(-2px) scale(1.003) !important;
    transition-duration: 0.1s !important;
  }

  /* Image */
  .pack-img-full {
    aspect-ratio: unset !important;
    height: 172px !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  .pack-img-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  .pack-card-v:hover .pack-img-full img {
    transform: scale(1.07) !important;
  }

  /* Card body */
  .pack-card-body {
    padding: 11px 13px 15px !important;
    gap: 4px !important;
  }
  .pack-card-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #e5e7eb !important;
    line-height: 1.35 !important;
  }
  .pack-meta-size  { font-size: 0.7rem !important; }
  .pack-meta-tag   { font-size: 0.63rem !important; padding: 2px 8px !important; }
}

@media (min-width: 1280px) {
  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(218px, 1fr)) !important;
    gap: 1.25rem !important;
  }
  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)) !important;
    gap: 1.25rem !important;
  }
  .pack-img-full { height: 185px !important; }
}

@media (min-width: 1536px) {
  .pack-grid-home {
    grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)) !important;
  }
  .pack-grid-page {
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
  }
  .pack-img-full { height: 198px !important; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE FIX v3  —  1-column card grid on all screens < 768 px
   Supersedes every earlier mobile card rule (including the v2 horizontal
   layout). Desktop (min-width: 960px) is completely unaffected.
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767px) {

  /* ── packs.js grid (#packs-grid) ─────────────────────────────────────────
     Resource Packs / Addons / Shaders pages each render cards into
     id="packs-grid".  The HTML puts grid-cols-2 on that element; override. */

  #packs-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* packs.js card (.pack-card): keep vertical, fill full width */
  .pack-card {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* packs.js image container: taller on full-width single column */
  .pack-card > div:first-child {
    height: 160px !important;
  }

  /* packs.js title: allow wrapping on full-width row */
  .pack-card h3 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
  }


  /* ── app.js grids (.pack-grid-home / .pack-grid-page) ────────────────────
     Home page and pack-listing pages render into these class names.         */

  .pack-grid-home,
  .pack-grid-page {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0.875rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Reset the v2 horizontal layout — cards go back to vertical */
  .pack-card-v {
    flex-direction: column !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .pack-card-v:hover {
    transform: translateY(-2px) !important;
    background: rgba(255, 255, 255, 0.055) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
  }

  /* Image: full width, natural 16:9 aspect ratio, no fixed pixel height */
  .pack-img-full {
    width: 100% !important;
    min-width: unset !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }
  .pack-img-full img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* Card body: undo flex-1 from v2 horizontal, restore normal padding */
  .pack-card-body {
    flex: unset !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px 14px !important;
    min-width: unset !important;
    justify-content: unset !important;
    gap: 5px !important;
  }

  /* Title: allow full wrapping, no overflow clipping */
  .pack-card-title {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    color: #e5e7eb !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.35 !important;
  }

  .pack-meta-size,
  .pack-meta-category {
    font-size: 0.72rem !important;
  }

  /* Meta tags: allow wrapping so they don't clip */
  .pack-meta-tags {
    flex-wrap: wrap !important;
  }
  .pack-meta-tag {
    white-space: nowrap !important;
  }
}

/* Extra safety: 320 px – 399 px already had a 1-col rule in the original CSS,
   but it only covered pack-grid-home/page — not #packs-grid.
   This block is now redundant for the named grids but kept for #packs-grid. */
@media (max-width: 399px) {
  #packs-grid {
    grid-template-columns: 1fr !important;
    gap: 0.625rem !important;
  }
}
