/* ============================================================
   UIKIT.CSS — Tebex Theme Design System
   Tech-Noir Gaming Aesthetic
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  color-scheme: dark;
  --accent:       #5665C2;
  --accent-light: #7585e0;
  --accent-dim:   rgba(86, 101, 194, 0.15);
  --accent-glow:  rgba(86, 101, 194, 0.4);

  --bg-base:      #0d0f1a;
  --bg-surface:   #13162d;
  --bg-raised:    #1a1e38;
  --bg-overlay:   rgba(13, 15, 26, 0.85);

  --text-primary:   #ffffff;
  --text-secondary: #a8b2d8;
  --text-muted:     #6b7699;

  --border-subtle: rgba(86, 101, 194, 0.25);
  --border-accent: #5665C2;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;
  --radius-pill: 9999px;

  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Urbanist', sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover, a:focus { outline: none; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-light); }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%       { box-shadow: 0 0 20px 6px var(--accent-glow); }
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes borderPulse {
  0%, 100% { border-color: var(--accent); }
  50%       { border-color: var(--accent-light); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}

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

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-8px) rotate(1deg); }
  66%       { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes gridScan {
  0%   { background-position: 0 0; }
  100% { background-position: 0 60px; }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

/* Animations */
.anim-fadeup   { animation: fadeInUp var(--transition-normal) both; }
.anim-fadein   { animation: scaleIn var(--transition-normal) both; }
.anim-fadeleft { animation: fadeInLeft var(--transition-normal) both; }

/* Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Intersection-based reveal (JS handles .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Glow Pulse on card hover */
.glow-on-hover {
  transition: box-shadow var(--transition-normal), border-color var(--transition-normal), transform var(--transition-spring);
}
.glow-on-hover:hover {
  box-shadow: 0 0 24px 4px var(--accent-glow);
  border-color: var(--accent-light);
  transform: translateY(-4px) scale(1.01);
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* ---- Navbar ---- */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), border-bottom-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}
.navbar-glass.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  transition: width var(--transition-normal);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 60%; }
.nav-link.active {
  color: var(--text-primary);
  background: var(--accent-dim);
}
.nav-link.active::after { width: 60%; }

/* ---- Icon Buttons (Navbar) ---- */
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-accent);
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-spring);
  cursor: pointer;
  position: relative;
}
.icon-btn:hover {
  color: var(--accent-light);
  background: var(--accent-dim);
  transform: scale(1.08);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseGlow 2s infinite;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent);
  transition: background var(--transition-fast), transform var(--transition-spring), box-shadow var(--transition-fast);
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
  color: white;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-spring);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--accent-dim);
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* ---- Section Label ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid var(--border-subtle);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

/* ---- Stats Cards ---- */
.stat-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-normal), transform var(--transition-spring);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

/* ---- Product Cards ---- */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-normal), transform var(--transition-spring), box-shadow var(--transition-normal);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(86, 101, 194, 0.2);
}
.product-card .img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.product-card .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .img-wrapper img {
  transform: scale(1.06);
}
.product-card .category-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
}
.product-card .card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card .card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price-badge {
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent-light);
}
.price-old {
  font-size: 0.8rem;
  color: #ef4444;
  text-decoration: line-through;
  margin-right: 4px;
}
.card-action-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  background: transparent;
  transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-spring);
}
.card-action-btn:hover {
  color: var(--text-primary);
  background: var(--accent-dim);
  transform: scale(1.1);
}
.card-look-btn {
  flex: 1;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  text-align: center;
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.card-look-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ---- Product Tag Pills ---- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 2px 0 4px;
}
.tag-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px 9px;
  white-space: nowrap;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  cursor: default;
}
.tag-pill:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ---- Featured Package Card ---- */
.featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal), transform var(--transition-spring), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.featured-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(86, 101, 194, 0.25);
}
.featured-card .thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.featured-card .meta {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---- Recent Payments Slider ---- */
.ticker-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 16px;
  width: max-content;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  white-space: nowrap;
  min-width: 220px;
  transition: border-color var(--transition-fast);
}
.payment-item:hover { border-color: var(--accent); }
.payment-item .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-subtle);
}
.payment-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.payment-item .pname { font-weight: 700; font-size: 0.9rem; color: var(--text-primary); }
.payment-item .ppkg  { font-size: 0.78rem; color: var(--accent-light); }
.payment-item .ptime { font-size: 0.72rem; color: var(--text-muted); }

/* ---- Cart Drawer ---- */
#cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  z-index: 99999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#cart-drawer.open { transform: translateX(0); }
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}
#cart-overlay.open { opacity: 1; pointer-events: all; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.drawer-title { font-size: 1.2rem; font-weight: 700; }
.drawer-close {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.drawer-close:hover { border-color: var(--accent); color: var(--accent-light); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
}

/* ---- Discord CTA ---- */
.discord-cta {
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-raised) 100%);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
.discord-cta:hover {
  border-color: #5865F2;
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.15);
}

.discord-icon {
  font-size: 4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(88, 101, 242, 0.4));
}

/* ---- FAQ ---- */
.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}
.faq-item.open,
.faq-item:hover { border-color: var(--accent); }

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.faq-chevron {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--accent);
  transition: transform var(--transition-normal);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease;
  background: var(--bg-raised);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

/* ---- Search Input ---- */
.search-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  width: 100%;
}
.search-wrapper input::placeholder { color: var(--text-muted); }

/* ---- Category Hero ---- */
.cat-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 24px 32px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}
.cat-hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cat-hero-bg {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  background-size: cover;
  background-position: center right;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,1) 50%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 20%, rgba(0,0,0,1) 50%);
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.cat-hero-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-left: 20px;
}

.cat-hero-features .hero-features-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.4), #7585e0);
  border-radius: 2px;
  margin-bottom: 8px;
}

.cat-hero-features .hero-feat-item {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.75);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

@media (max-width: 860px) {
  .cat-hero-features { display: none !important; }
  .cat-hero-bg { width: 100% !important; opacity: 0.22 !important; mask-image: none !important; -webkit-mask-image: none !important; }
  .cat-hero-with-bg { padding: 24px 20px !important; }
}

/* ---- Package Detail ---- */
.pkg-gallery {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.gallery-main { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 12px;
  background: var(--bg-surface);
}
.gallery-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-subtle);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-spring);
}
.gallery-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
.gallery-thumb {
  width: 80px;
  height: 55px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast), transform var(--transition-spring);
  flex-shrink: 0;
}
.gallery-thumb:hover { transform: scale(1.05); }
.gallery-thumb.active { border-color: var(--accent); }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
  z-index: 2;
}
.gallery-nav:hover { border-color: var(--accent); background: var(--accent-dim); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* ---- Footer ---- */
.footer-main {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 48px;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 3px 0;
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.footer-link:hover { color: var(--accent-light); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Grid Scan Background ---- */
.grid-bg {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScan 4s linear infinite;
}

/* ---- Divider ---- */
.accent-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: 0;
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 32px 24px; }
  .footer-bottom { padding: 16px 24px; }
  .discord-cta { flex-direction: column; padding: 32px 24px; }
  .stat-number { font-size: 2rem; }
}

/* ---- Nav Visibility (bulletproof, no Tailwind dependency) ---- */
/* Mobile nav bar: visible only on small screens */
#mobile-nav-bar { display: flex; }
@media (min-width: 769px) {
  #mobile-nav-bar { display: none !important; }
  #mobile-menu  { display: none !important; }
}

/* Desktop nav: visible only on larger screens */
.desktop-nav { display: none; }
@media (min-width: 769px) {
  .desktop-nav { display: flex; }
}

/* ============================================================
   LEGACY COMPAT (Tebex Bootstrap classes)
   ============================================================ */
.btn-success {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
  font-size: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-spring);
}
.btn-success:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: white;
  transform: translateY(-1px);
}
.input-group {
  display: flex;
  gap: 1rem;
}
.input-group > .btn { font-weight: 700; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- Style Tebex compliance bar ---- */
#tebexFooter,
.tebex-footer,
.tebex-footer-wrapper,
.tebex-footer-wrapper-dark,
.tebex-footer-inner,
.tebex-compliance,
.tebex-compliance-dark,
div[class*="tebex-footer"],
div[id*="tebexFooter"],
div[class*="tebex-compliance"] {
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  background: #0d0f1a !important;
  background-color: #0d0f1a !important;
  color: #6b7699 !important;
  border-top: 1px solid rgba(86, 101, 194, 0.25) !important;
}

#tebexFooter a,
.tebex-footer a,
.tebex-footer-wrapper a,
.tebex-compliance a,
div[class*="tebex-footer"] a,
div[class*="tebex-compliance"] a,
div[id*="tebexFooter"] a {
  color: #a8b2d8 !important;
  transition: color 150ms ease !important;
}

#tebexFooter a:hover,
.tebex-footer a:hover,
.tebex-footer-wrapper a:hover,
.tebex-compliance a:hover,
div[class*="tebex-footer"] a:hover,
div[class*="tebex-compliance"] a:hover,
div[id*="tebexFooter"] a:hover {
  color: #7585e0 !important;
}

#tebexFooter svg,
.tebex-footer svg,
.tebex-footer-wrapper svg,
.tebex-compliance svg,
div[class*="tebex-footer"] svg,
div[class*="tebex-compliance"] svg,
div[id*="tebexFooter"] svg {
  fill: #6b7699 !important;
  color: #6b7699 !important;
}

/* ============================================================
   CHANGE LOG COMPONENT
   ============================================================ */
.cl-page-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 32px auto 80px;
  padding: 0 40px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .cl-page-wrapper { padding: 0 24px; margin: 24px auto 60px; }
}
@media (max-width: 640px) {
  .cl-page-wrapper { padding: 0 16px; margin: 16px auto 40px; }
}

.cl-hero-card {
  position: relative;
  background: radial-gradient(120% 100% at 50% 0%, rgba(26, 32, 68, 0.7) 0%, rgba(13, 16, 34, 0.95) 100%);
  border: 1px solid rgba(86, 101, 194, 0.28);
  border-radius: var(--radius-xl);
  padding: 46px 48px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cl-hero-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(117, 133, 224, 0.5), transparent);
}
.cl-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(86, 101, 194, 0.16);
  border: 1px solid rgba(86, 101, 194, 0.35);
  color: #8c9cf0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cl-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7585e0;
  box-shadow: 0 0 8px #7585e0;
}
.cl-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.cl-hero-title-accent {
  color: #5665C2;
  background: linear-gradient(135deg, #7585e0 0%, #5665C2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cl-hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.6;
  margin: 0;
}

.cl-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 36px 0 32px;
  flex-wrap: wrap;
}
.cl-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.cl-filter-btn {
  background: rgba(19, 22, 45, 0.85);
  border: 1px solid rgba(86, 101, 194, 0.22);
  color: #9aa5cb;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.cl-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(86, 101, 194, 0.5);
  background: rgba(30, 35, 70, 0.8);
  transform: translateY(-1px);
}
.cl-filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent-light);
  box-shadow: 0 4px 18px rgba(86, 101, 194, 0.45);
}
.cl-search-box {
  position: relative;
  min-width: 280px;
  max-width: 360px;
  flex-grow: 1;
}
.cl-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7699;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-search-input {
  width: 100%;
  background: rgba(19, 22, 45, 0.85);
  border: 1px solid rgba(86, 101, 194, 0.25);
  border-radius: var(--radius-lg);
  padding: 11px 18px 11px 44px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.cl-search-input::placeholder { color: #6b7699; }
.cl-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(86, 101, 194, 0.22);
  background: rgba(22, 26, 52, 0.95);
}

.cl-timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cl-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 20px;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cl-row.hidden { display: none !important; }

.cl-timeline-side {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 18px;
}
.cl-date-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
  user-select: none;
}
.cl-date-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cl-date-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7699;
}
.cl-timeline-line {
  position: absolute;
  right: 0;
  top: 0;
  bottom: -20px;
  width: 2px;
  background: linear-gradient(180deg, rgba(86, 101, 194, 0.5) 0%, rgba(86, 101, 194, 0.2) 100%);
}
.cl-row:last-of-type .cl-timeline-line { bottom: 50%; }

.cl-timeline-dot {
  position: absolute;
  right: -5px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6877db;
  box-shadow: 0 0 10px #6877db, 0 0 4px #ffffff;
  border: 2px solid var(--bg-base);
  z-index: 2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cl-row:hover .cl-timeline-dot {
  transform: scale(1.2);
  box-shadow: 0 0 14px #7585e0, 0 0 6px #ffffff;
}

.cl-item {
  background: rgba(15, 18, 38, 0.72);
  border: 1px solid rgba(86, 101, 194, 0.22);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(10px);
}
.cl-item:hover {
  border-color: rgba(86, 101, 194, 0.45);
  background: rgba(18, 22, 46, 0.85);
}
.cl-item.open {
  border-color: rgba(86, 101, 194, 0.65);
  box-shadow: 0 8px 30px rgba(86, 101, 194, 0.16);
  background: rgba(18, 22, 48, 0.92);
}

.cl-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  user-select: none;
  outline: none;
}
.cl-header-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cl-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.cl-badge-ver {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(26, 30, 56, 0.9);
  border: 1px solid rgba(86, 101, 194, 0.35);
  color: #a8b2d8;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.cl-badge-type {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cl-badge-hotfix {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.cl-badge-new {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.cl-badge-improvement {
  background: rgba(59, 130, 246, 0.14);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}
.cl-badge-fix {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.cl-chevron {
  color: #8e9ac0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cl-item.open .cl-chevron {
  transform: rotate(180deg);
  color: #ffffff;
}

.cl-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}
.cl-item.open .cl-body {
  max-height: 800px;
  opacity: 1;
}
.cl-body-inner {
  padding: 4px 24px 24px 24px;
  border-top: 1px solid rgba(86, 101, 194, 0.15);
  margin-top: 4px;
}
.cl-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cl-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #a8b2d8;
  font-size: 0.95rem;
  line-height: 1.6;
}
.cl-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6877db;
  margin-top: 9px;
  flex-shrink: 0;
  box-shadow: 0 0 6px #6877db;
}

.cl-show-more-wrap {
  margin-top: 24px;
  margin-left: 125px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cl-show-more-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(15, 18, 38, 0.72);
  border: 1px solid rgba(86, 101, 194, 0.22);
  border-radius: 12px;
  padding: 16px 24px;
  color: #8e9ac0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}
.cl-show-more-btn:hover {
  border-color: var(--accent);
  color: #ffffff;
  background: rgba(86, 101, 194, 0.14);
  transform: translateY(-1px);
}
.cl-show-more-btn svg { transition: transform 0.2s ease; }
.cl-show-all-btn:hover {
  border-color: #818cf8;
  background: rgba(99, 102, 241, 0.16);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.2);
}

.cl-empty-state {
  display: none;
  padding: 48px 24px;
  text-align: center;
  background: rgba(15, 18, 38, 0.6);
  border: 1px dashed rgba(86, 101, 194, 0.25);
  border-radius: 14px;
  color: #8e9ac0;
  margin-left: 125px;
}
.cl-empty-state.show { display: block; }

@media (max-width: 768px) {
  .cl-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cl-timeline-line { display: none; }
  .cl-timeline-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    margin-bottom: -4px;
  }
  .cl-date-box {
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  .cl-timeline-dot {
    position: static;
    display: inline-block;
  }
  .cl-show-more-wrap {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cl-empty-state { margin-left: 0; }
  .cl-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .cl-search-box {
    max-width: 100%;
    min-width: 100%;
  }
}