:root {
  --bg: #f4f7fb;
  --card: rgba(255,255,255,.92);
  --border: rgba(15,23,42,.10);
}

html.dark {
  --bg: #0b1020;
  --card: rgba(17,24,39,.92);
  --border: rgba(255,255,255,.10);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 440px at 105% -10%, rgba(60,140,243,.11), transparent 60%),
    radial-gradient(760px 420px at -10% 110%, rgba(5,190,138,.10), transparent 60%),
    var(--bg);
  color: #1f2937;
}

html.dark body { color: #e5e7eb; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 14px;
  padding: .6rem .85rem;
  font-size: .92rem;
  font-weight: 600;
  color: #4b5563;
}

.nav-link:hover { background: rgba(60,140,243,.10); color: #2563eb; }
html.dark .nav-link { color: #d1d5db; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 16px;
  background: #3c8cf3;
  color: white;
  padding: .72rem 1rem;
  font-weight: 700;
  box-shadow: 0 16px 30px -18px rgba(60,140,243,.75);
}

.btn-primary:hover { background: #2978df; }

.btn-ghost, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  padding: .65rem .9rem;
  font-weight: 700;
}

.icon-btn { width: 42px; height: 42px; padding: 0; }
html.dark .btn-ghost, html.dark .icon-btn { background: rgba(17,24,39,.72); }

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 24px 60px -34px rgba(15,23,42,.35);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
  padding: .78rem .95rem;
  outline: none;
}

.form-textarea { min-height: 120px; }
html.dark .form-input, html.dark .form-select, html.dark .form-textarea { background: rgba(15,23,42,.75); color: white; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #3c8cf3; box-shadow: 0 0 0 4px rgba(60,140,243,.12); }

.admin-sidebar {
  position: fixed;
  inset: 16px auto 16px 16px;
  z-index: 40;
  display: none;
  width: 264px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
}

@media (min-width: 1024px) {
  .admin-sidebar { display: flex; }
}

.admin-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: 16px;
  padding: .72rem .9rem;
  color: #4b5563;
  font-weight: 700;
}

.admin-link:hover, .admin-link.active {
  background: rgba(60,140,243,.12);
  color: #2563eb;
}

html.dark .admin-link { color: #d1d5db; }
html.dark .admin-link:hover, html.dark .admin-link.active { color: white; }

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 800;
}

.pill-success { background: rgba(5,190,138,.14); color: #04966e; }
.pill-warn { background: rgba(255,167,38,.16); color: #b66b00; }
.pill-danger { background: rgba(239,83,80,.14); color: #d33b38; }
.pill-info { background: rgba(60,140,243,.14); color: #2563eb; }

.mobile-card-list { display: grid; gap: .75rem; }
@media (min-width: 768px) {
  .mobile-card-list { display: none; }
}
@media (max-width: 767px) {
  .desktop-table-wrap { display: none; }
}

.dt-container .dt-search input, .dt-container .dt-length select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .45rem .65rem;
  background: white;
}

html.dark .dt-container .dt-search input, html.dark .dt-container .dt-length select {
  background: #111827;
  color: white;
}

/* ===== Site brand nav + footer ===== */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  transition: all 0.15s ease;
}
.nav-link:hover {
  color: #3c8cf3;
  background: rgba(60, 140, 243, 0.08);
}
.nav-link.is-active {
  color: #3c8cf3;
  background: rgba(60, 140, 243, 0.12);
}
html.dark .nav-link { color: #d1d5db; }
html.dark .nav-link:hover,
html.dark .nav-link.is-active {
  color: #93c5fd;
  background: rgba(60, 140, 243, 0.15);
}

.footer-social {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.10);
  color: #6b7280;
  transition: all 0.18s ease;
}
.footer-social:hover { transform: translateY(-2px); }
html.dark .footer-social {
  background: rgba(148, 163, 184, 0.08);
  color: #cbd5e1;
}
.footer-heading {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}
.footer-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.7;
}
.footer-list a:hover { color: #3c8cf3; }
html.dark .footer-list { color: #9ca3af; }

/* ===== Hero & brand sections ===== */
.brand-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 56px 40px;
  background: radial-gradient(120% 100% at 0% 0%, rgba(60,140,243,.18), transparent 50%),
              radial-gradient(120% 100% at 100% 100%, rgba(116,90,242,.18), transparent 50%),
              linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.brand-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  pointer-events: none;
}
.brand-hero > * { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
}
.hero-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  background: #fff; color: #0f172a;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.15); }
.hero-cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  transition: background .15s ease;
}
.hero-cta-ghost:hover { background: rgba(255,255,255,0.14); }

.tech-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 9999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #374151;
  font-size: 13px; font-weight: 600;
  transition: all .15s ease;
}
.tech-pill:hover {
  border-color: #3c8cf3;
  color: #3c8cf3;
  transform: translateY(-1px);
}
html.dark .tech-pill {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: #d1d5db;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #3c8cf3;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.14);
  transition: all .18s ease;
}
.trust-card:hover { transform: translateY(-2px); border-color: rgba(60, 140, 243, 0.35); }
html.dark .trust-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.trust-icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 14px;
}

.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 18px; border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  transition: all .15s ease;
}
.contact-card:hover { transform: translateY(-2px); border-color: rgba(60,140,243,0.35); }
html.dark .contact-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

/* ===== Animated brand sections ===== */

/* Talk-to-us hero card */
.talk-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 48px 36px;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(60,140,243,.12), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(116,90,242,.14), transparent 60%),
    radial-gradient(500px 300px at 100% 0%, rgba(5,190,138,.10), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
}
html.dark .talk-hero {
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(60,140,243,.18), transparent 60%),
    radial-gradient(700px 360px at 100% 100%, rgba(116,90,242,.20), transparent 60%),
    radial-gradient(500px 300px at 100% 0%, rgba(5,190,138,.16), transparent 60%),
    linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  border-color: rgba(255,255,255,0.08);
}
.talk-hero::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(from 0deg, #3c8cf3, #745af2, #05be8a, #ffa726, #3c8cf3);
  filter: blur(60px);
  opacity: 0.10;
  animation: talkSpin 18s linear infinite;
  z-index: 0;
  pointer-events: none;
}
.talk-hero > * { position: relative; z-index: 1; }
@keyframes talkSpin {
  to { transform: rotate(360deg); }
}

/* Big LINE / FB CTA buttons with shimmer */
.cta-line, .cta-fb {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  isolation: isolate;
}
.cta-line { background: linear-gradient(135deg, #06c755 0%, #00a040 100%); box-shadow: 0 8px 22px rgba(6,199,85,.28); }
.cta-fb   { background: linear-gradient(135deg, #1877f2 0%, #0c5ad6 100%); box-shadow: 0 8px 22px rgba(24,119,242,.28); }
.cta-line:hover, .cta-fb:hover { transform: translateY(-3px) scale(1.02); }
.cta-line:active, .cta-fb:active { transform: translateY(0) scale(0.97); }
.cta-line::before, .cta-fb::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  z-index: -1;
}
.cta-line:hover::before, .cta-fb:hover::before { left: 130%; }

/* Contact cards — animated */
.contact-card-pro {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  overflow: hidden;
  transition:
    transform .2s cubic-bezier(.34,1.56,.64,1),
    border-color .2s ease,
    box-shadow .2s ease;
}
html.dark .contact-card-pro {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.contact-card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent, #3c8cf3) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.contact-card-pro:hover {
  transform: translateY(-3px);
  border-color: var(--accent, #3c8cf3);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.15);
}
.contact-card-pro:hover::before { opacity: 0.06; }
.contact-card-pro:active {
  transform: translateY(0) scale(0.97);
  transition-duration: .08s;
}
.contact-card-pro > * { position: relative; z-index: 1; }
.contact-card-pro .contact-card-icon {
  display: inline-flex;
  height: 48px; width: 48px;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent, #3c8cf3) 12%, transparent);
  color: var(--accent, #3c8cf3);
  font-size: 20px;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.contact-card-pro:hover .contact-card-icon {
  transform: scale(1.1) rotate(-6deg);
  background: var(--accent, #3c8cf3);
  color: #fff;
}
.contact-card-pro .contact-arrow {
  color: #cbd5e1;
  transition: transform .25s ease, color .25s ease;
}
.contact-card-pro:hover .contact-arrow {
  color: var(--accent, #3c8cf3);
  transform: translate(3px, -3px);
}

/* Why cards — premium with number background */
.why-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  cursor: pointer;
  transition:
    transform .25s cubic-bezier(.34,1.56,.64,1),
    border-color .25s ease,
    box-shadow .25s ease;
}
html.dark .why-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.why-card::after {
  content: attr(data-number);
  position: absolute;
  top: -12px;
  right: -8px;
  font-size: 96px;
  font-weight: 900;
  color: rgba(148, 163, 184, 0.10);
  letter-spacing: -0.05em;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  pointer-events: none;
  transition: color .35s ease, transform .35s ease;
}
.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, #3c8cf3);
  box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--accent, #3c8cf3) 30%, transparent);
}
.why-card:hover::after {
  color: color-mix(in srgb, var(--accent, #3c8cf3) 14%, transparent);
  transform: scale(1.06) rotate(-4deg);
}
.why-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: .08s;
}
.why-card .why-icon {
  position: relative;
  display: inline-flex;
  height: 56px; width: 56px;
  align-items: center; justify-content: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent, #3c8cf3) 12%, transparent);
  color: var(--accent, #3c8cf3);
  font-size: 22px;
  margin-bottom: 18px;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.why-card:hover .why-icon {
  background: var(--accent, #3c8cf3);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.why-card .why-icon::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 22px;
  background: var(--accent, #3c8cf3);
  opacity: 0;
  filter: blur(12px);
  transition: opacity .3s ease;
  z-index: -1;
}
.why-card:hover .why-icon::before { opacity: 0.40; }

.why-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  transition: color .2s ease;
}
html.dark .why-card h3 { color: #f1f5f9; }
.why-card:hover h3 { color: var(--accent, #3c8cf3); }
.why-card p {
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}
.why-card .why-arrow {
  display: inline-flex;
  margin-top: 16px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.why-card:hover .why-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--accent, #3c8cf3);
}

/* Bouncy click ripple class — applied to any card with .clickable */
.clickable { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.clickable:active { transform: scale(0.96); transition-duration: .08s; }

/* ===== Premium animated cards (product/course/promotion) ===== */

.epic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition:
    transform .25s cubic-bezier(.34,1.56,.64,1),
    border-color .25s ease,
    box-shadow .25s ease;
  isolation: isolate;
}
html.dark .epic-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.epic-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent, #3c8cf3), var(--accent-2, #745af2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 2;
}
.epic-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--accent, #3c8cf3) 30%, transparent);
}
.epic-card:hover::before { opacity: 1; }
.epic-card:active {
  transform: translateY(-2px) scale(0.98);
  transition-duration: .08s;
}

.epic-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, rgba(60,140,243,0.06), rgba(116,90,242,0.06));
}
.epic-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.epic-card:hover .epic-card-media img { transform: scale(1.08); }
.epic-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.epic-card:hover .epic-card-media::after { opacity: 1; }

/* Floating badge inside media */
.epic-card-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(0,0,0,0.65);
  color: #fff;
  backdrop-filter: blur(8px);
  z-index: 1;
  transition: transform .25s ease;
}
.epic-card-badge.is-left { left: 12px; }
.epic-card-badge.is-right { right: 12px; }
.epic-card:hover .epic-card-badge { transform: translateY(-2px); }
.epic-card-badge .fa-youtube { color: #ef5350; }
.epic-card-badge.badge-promo {
  background: linear-gradient(135deg, #ffa726, #ef5350);
}
.epic-card-badge.badge-featured {
  background: linear-gradient(135deg, #3c8cf3, #745af2);
}
.epic-card-badge.badge-success {
  background: linear-gradient(135deg, #05be8a, #00a040);
}
.epic-card-badge.badge-danger {
  background: linear-gradient(135deg, #ef5350, #b91c1c);
}

.epic-card-body { padding: 18px 18px 16px; flex: 1; display: flex; flex-direction: column; }
.epic-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 8px;
}
.epic-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
html.dark .epic-card-title { color: #f1f5f9; }
.epic-card:hover .epic-card-title { color: var(--accent, #3c8cf3); }
.epic-card-desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.epic-card-footer {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.epic-card-price {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.epic-card-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}
.epic-card-price-now {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent, #3c8cf3);
  font-feature-settings: 'tnum';
}
.epic-card-price-free {
  font-size: 18px;
  font-weight: 800;
  color: #05be8a;
}
.epic-card-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--accent, #3c8cf3);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
}
.epic-card-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.epic-card:hover .epic-card-cta {
  box-shadow: 0 8px 18px -4px color-mix(in srgb, var(--accent, #3c8cf3) 50%, transparent);
}
.epic-card:hover .epic-card-cta::before { left: 130%; }
.epic-card-cta i { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.epic-card:hover .epic-card-cta i { transform: translateX(4px); }

/* Pill stack inside card body */
.epic-card-pills { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.epic-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent, #3c8cf3) 12%, transparent);
  color: var(--accent, #3c8cf3);
}
.epic-card-pill.is-warn { background: rgba(255,167,38,0.14); color: #c97a00; }
.epic-card-pill.is-success { background: rgba(5,190,138,0.14); color: #05be8a; }
.epic-card-pill.is-danger { background: rgba(239,83,80,0.14); color: #ef5350; }
.epic-card-pill.is-muted { background: rgba(148,163,184,0.14); color: #64748b; }

/* Course card 2-col variant */
.epic-card.is-row {
  flex-direction: row;
  border-radius: 22px;
}
.epic-card.is-row .epic-card-media {
  aspect-ratio: auto;
  width: 200px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .epic-card.is-row { flex-direction: column; }
  .epic-card.is-row .epic-card-media { width: auto; aspect-ratio: 16/10; }
}

/* Promotion card — special accent */
.epic-card.is-promo {
  background:
    linear-gradient(135deg, rgba(255,167,38,0.04), rgba(239,83,80,0.04)),
    #fff;
}
html.dark .epic-card.is-promo {
  background:
    linear-gradient(135deg, rgba(255,167,38,0.08), rgba(239,83,80,0.06)),
    rgba(255,255,255,0.03);
}
.epic-card.is-promo .epic-card-title { color: #ef5350; }

/* ===== Premium dark footer ===== */
.site-footer {
  position: relative;
  margin-top: 80px;
  background: linear-gradient(180deg, #0b1220 0%, #060a14 100%);
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
  pointer-events: none;
  opacity: 0.6;
}
.footer-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.footer-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.32;
  animation: orbDrift 18s ease-in-out infinite;
}
.footer-orbs .orb-1 { top: -100px; left: 10%; width: 320px; height: 320px; background: #3c8cf3; animation-delay: 0s; }
.footer-orbs .orb-2 { top: 50%; right: 5%; width: 260px; height: 260px; background: #745af2; animation-delay: -6s; }
.footer-orbs .orb-3 { bottom: -80px; left: 40%; width: 200px; height: 200px; background: #05be8a; animation-delay: -12s; opacity: 0.22; }
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}
.site-footer > * { position: relative; z-index: 1; }

.footer-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 36px;
  margin-top: 56px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(60,140,243,0.18), rgba(116,90,242,0.12));
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}
@media (min-width: 768px) {
  .footer-cta { grid-template-columns: 1.4fr 1fr; align-items: center; }
}
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
@media (min-width: 768px) { .footer-cta-actions { justify-content: flex-end; } }
.cta-sm { padding: 12px 20px; font-size: 14px; }
.cta-yt {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, #ef5350 0%, #b91c1c 100%);
  box-shadow: 0 8px 22px rgba(239,83,80,.28);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.cta-yt::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.cta-yt:hover { transform: translateY(-2px); }
.cta-yt:hover::before { left: 130%; }
.cta-yt:active { transform: translateY(0) scale(0.97); }

.footer-social-pro {
  position: relative;
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  overflow: hidden;
}
.footer-social-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .25s ease;
}
.footer-social-pro:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent);
  color: #fff;
}
.footer-social-pro:hover::before { opacity: 0.18; }
.footer-social-pro > i { position: relative; z-index: 1; }

.footer-heading-pro {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.footer-list-pro {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}
.footer-list-pro a, .footer-list-pro li { display: inline-flex; align-items: flex-start; gap: 10px; transition: color .15s ease; }
.footer-list-pro a:hover { color: #fff; transform: translateX(2px); }
.footer-list-pro a > i:first-child { color: #3c8cf3; width: 16px; }
.footer-icon {
  display: inline-flex;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

.footer-tech {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all .2s ease;
  cursor: default;
}
.footer-tech:hover {
  border-color: var(--tech-color);
  color: var(--tech-color);
  background: color-mix(in srgb, var(--tech-color) 10%, transparent);
  transform: translateY(-2px);
}

/* ===== Modern category tiles ===== */
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 26px 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition:
    transform .3s cubic-bezier(.34,1.56,.64,1),
    border-color .25s ease,
    box-shadow .25s ease;
  isolation: isolate;
}
html.dark .cat-tile {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.cat-tile::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle at top right, var(--accent, #3c8cf3), transparent 60%);
  opacity: 0.10;
  transition: opacity .3s ease;
  z-index: -1;
}
.cat-tile::after {
  content: '';
  position: absolute;
  bottom: -40px; left: -30px;
  width: 140px; height: 140px;
  background: var(--accent, #3c8cf3);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0;
  transition: opacity .35s ease, transform .5s ease;
  z-index: -1;
}
.cat-tile:hover {
  transform: translateY(-6px);
  border-color: var(--accent, #3c8cf3);
  box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent, #3c8cf3) 40%, transparent);
}
.cat-tile:hover::before { opacity: 0.18; }
.cat-tile:hover::after { opacity: 0.45; transform: scale(1.15); }
.cat-tile:active { transform: translateY(-2px) scale(0.98); transition-duration: .08s; }

.cat-tile-icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent, #3c8cf3) 15%, transparent);
  color: var(--accent, #3c8cf3);
  font-size: 22px;
  margin-bottom: 18px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .25s ease;
}
.cat-tile:hover .cat-tile-icon {
  background: var(--accent, #3c8cf3);
  color: #fff;
  transform: rotate(-6deg) scale(1.08);
}
.cat-tile-count {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent, #3c8cf3);
  opacity: 0.2;
  letter-spacing: -0.04em;
  line-height: 1;
  transition: opacity .25s ease, transform .35s ease;
}
.cat-tile:hover .cat-tile-count {
  opacity: 0.45;
  transform: scale(1.1);
}
.cat-tile-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
  transition: color .2s ease;
}
html.dark .cat-tile-title { color: #f1f5f9; }
.cat-tile:hover .cat-tile-title { color: var(--accent, #3c8cf3); }
.cat-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 14px;
}
.cat-tile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent, #3c8cf3);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
}
.cat-tile:hover .cat-tile-link { opacity: 1; transform: translateX(0); }

/* ===== Code window — typewriter + 3D tilt ===== */
.code-window-3d {
  perspective: 1200px;
  perspective-origin: 50% 50%;
}
.code-window {
  position: relative;
  border-radius: 18px;
  background: rgba(0,0,0,0.45);
  padding: 4px;
  box-shadow: 0 24px 60px -10px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.16,1,.3,1);
  cursor: default;
}
.code-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(60,140,243,0.5), rgba(116,90,242,0.5), rgba(5,190,138,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  pointer-events: none;
}
.code-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
}
.code-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.code-dot.r { background: rgba(239,83,80,0.85); }
.code-dot.y { background: rgba(255,167,38,0.85); }
.code-dot.g { background: rgba(5,190,138,0.85); }
.code-filename {
  margin-left: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}
.code-pane {
  position: relative;
  margin: 0;
  padding: 18px 20px 22px;
  border-radius: 0 0 16px 16px;
  background: rgba(15,23,42,0.65);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  white-space: pre;
  height: 340px;
  overflow: hidden;
  contain: size layout paint;
}
.code-pane .caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #3c8cf3;
  vertical-align: -2px;
  margin-left: 1px;
  animation: caretBlink 1s step-end infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.code-pane .tk-key { color: #c4b5fd; }
.code-pane .tk-fn  { color: #fde68a; }
.code-pane .tk-str { color: #6ee7b7; }
.code-pane .tk-com { color: rgba(255,255,255,0.35); font-style: italic; }
.code-pane .tk-num { color: #fca5a5; }

.code-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.code-statusbar .live { display: inline-flex; align-items: center; gap: 6px; }
.code-statusbar .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #05be8a;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(5,190,138,0.6); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(5,190,138,0); }
}

/* ===== Category filter pills (products / courses pages) ===== */
.cat-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 640px) {
  .cat-pills-wrap {
    flex-wrap: nowrap;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  transition: all .2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-pill i { font-size: 11px; opacity: 0.7; }
.cat-pill:hover {
  border-color: rgba(60, 140, 243, 0.45);
  color: #2563eb;
  transform: translateY(-1px);
}
.cat-pill.is-active {
  background: linear-gradient(135deg, #3c8cf3, #745af2);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 8px 18px -6px rgba(60, 140, 243, 0.50);
}
.cat-pill.is-active i { opacity: 1; }
.cat-pill.is-active .cat-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
.cat-pill-count {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(60, 140, 243, 0.10);
  color: #2563eb;
  margin-left: 2px;
}
html.dark .cat-pill {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
html.dark .cat-pill:hover { color: #93c5fd; }
html.dark .cat-pill-count {
  background: rgba(60, 140, 243, 0.20);
  color: #93c5fd;
}

/* ===== Checkout stepper — compact mascot edition ===== */
.checkout-stepper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 16px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(60,140,243,0.04), rgba(116,90,242,0.04));
  border: 1px solid rgba(148,163,184,0.18);
  position: relative;
  overflow: visible;          /* let mascot punch through */
}
html.dark .checkout-stepper { border-color: rgba(255,255,255,0.08); }

@media (min-width: 768px) {
  .checkout-stepper {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  /* Connector line — runs through vertical center of the circles
     (stepper padding-top 22 + step padding 4 + icon margin-top 8 + circle radius 22 = 56px) */
  .checkout-stepper::before {
    content: '';
    position: absolute;
    top: 56px; left: 14%; right: 14%;
    height: 2px;
    background: rgba(148,163,184,0.25);
    border-radius: 9999px;
    z-index: 0;
    transform: translateY(-1px);
  }
}

.checkout-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 4px;
}

/* Small circle anchor — mascot pops out from the top, punching through stepper */
.checkout-step-icon {
  position: relative;
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(148,163,184,0.14);
  border: 2px solid rgba(148,163,184,0.25);
  color: transparent;          /* hide the center FA icon */
  font-size: 0;
  flex-shrink: 0;
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  overflow: visible;
  margin-top: 8px;
}

/* The mascot image — bigger than circle, escapes upward through stepper */
.checkout-step-mascot {
  position: absolute;
  bottom: 4px;                 /* nearly aligns with circle bottom for max upward reach */
  left: 50%;
  width: 130px;                /* big — punches well above stepper */
  height: auto;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;                  /* above stepper border */
  filter: drop-shadow(0 8px 16px rgba(15,23,42,0.15)) grayscale(0.55) opacity(0.55);
  transition: filter .35s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
  transform-origin: 50% 100%;
}
html.dark .checkout-step-mascot {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45)) grayscale(0.55) opacity(0.50);
}

/* Corner badge — step icon moves here */
.checkout-step-icon > i {
  position: absolute;
  bottom: -3px; right: -3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #94a3b8;
  color: #fff !important;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  z-index: 4;
  box-shadow: 0 3px 8px -2px rgba(15,23,42,0.30);
  transition: background .3s ease;
}
html.dark .checkout-step-icon > i { border-color: #0f172a; }

.checkout-step-text { min-width: 0; }
.checkout-step-label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  margin: 0;
  line-height: 1.2;
}
.checkout-step-sub {
  font-size: 10.5px;
  color: #9ca3af;
  margin: 2px 0 0;
}

/* ===== DONE state ===== */
.checkout-step.is-done .checkout-step-icon {
  background: rgba(5,190,138,0.10);
  border-color: #05be8a;
  box-shadow: 0 6px 14px -4px rgba(5,190,138,0.40);
}
.checkout-step.is-done .checkout-step-icon > i { background: #05be8a; box-shadow: 0 3px 8px -2px rgba(5,190,138,0.50); }
.checkout-step.is-done .checkout-step-label { color: #05be8a; }
.checkout-step.is-done .checkout-step-mascot {
  filter: drop-shadow(0 10px 18px rgba(5,190,138,0.45));
  animation: stepMascotBob 3.4s ease-in-out infinite;
}

/* ===== ACTIVE state ===== */
.checkout-step.is-active .checkout-step-icon {
  background: rgba(60,140,243,0.12);
  border-color: #3c8cf3;
  box-shadow: 0 0 0 5px rgba(60,140,243,0.15), 0 6px 18px -4px rgba(60,140,243,0.50);
  animation: stepPulse 2.2s ease-in-out infinite;
}
.checkout-step.is-active .checkout-step-icon > i { background: #3c8cf3; box-shadow: 0 3px 8px -2px rgba(60,140,243,0.55); }
.checkout-step.is-active .checkout-step-label { color: #3c8cf3; }
.checkout-step.is-active .checkout-step-mascot {
  filter: drop-shadow(0 14px 22px rgba(60,140,243,0.55));
  animation: stepMascotFloat 3s ease-in-out infinite;
}

/* ===== FAIL state ===== */
.checkout-step.is-fail .checkout-step-icon {
  background: rgba(239,83,80,0.10);
  border-color: #ef5350;
}
.checkout-step.is-fail .checkout-step-icon > i { background: #ef5350; }
.checkout-step.is-fail .checkout-step-label { color: #ef5350; }
.checkout-step.is-fail .checkout-step-mascot {
  filter: drop-shadow(0 10px 18px rgba(239,83,80,0.40)) grayscale(0.30);
  opacity: 0.85;
}

/* ===== PENDING state ===== */
.checkout-step.is-pending .checkout-step-mascot {
  animation: stepMascotIdle 5s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(60,140,243,0.18), 0 6px 18px -4px rgba(60,140,243,0.50); }
  50%      { box-shadow: 0 0 0 12px rgba(60,140,243,0), 0 6px 18px -4px rgba(60,140,243,0.50); }
}
@keyframes stepMascotFloat {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-2deg); }
  50%      { transform: translateX(-50%) translateY(-10px) rotate(2deg); }
}
@keyframes stepMascotBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-5px); }
}
@keyframes stepMascotIdle {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-3px); }
}

/* ===== Bank cards in checkout ===== */
.bank-card {
  position: relative;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148,163,184,0.2);
  background: linear-gradient(135deg, rgba(60,140,243,0.04), rgba(60,140,243,0.01));
  transition: all .25s ease;
  overflow: hidden;
}
html.dark .bank-card {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.bank-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(60,140,243,0.10), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.bank-card:hover {
  border-color: #3c8cf3;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -10px rgba(60,140,243,0.3);
}
.bank-card:hover::before { opacity: 1; }
.bank-card > * { position: relative; z-index: 1; }
.bank-copy-btn {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.2);
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}
html.dark .bank-copy-btn { background: rgba(255,255,255,0.05); }
.bank-copy-btn:hover { color: #3c8cf3; border-color: #3c8cf3; transform: scale(1.05); }
.bank-copy-btn:active { transform: scale(0.92); }
.bank-copy-btn.is-copied { background: #05be8a; color: #fff; border-color: #05be8a; }

/* ===== Floating glass navbar ===== */
.floating-nav-wrap {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  padding: 0 16px;
}
.floating-nav-spacer { height: 88px; }

.floating-nav {
  pointer-events: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 12px 10px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 50px -18px rgba(15, 23, 42, 0.18),
    0 8px 24px -12px rgba(60, 140, 243, 0.18);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}

/* Mobile: 2-column layout (brand + hamburger) */
@media (max-width: 1023px) {
  .floating-nav { grid-template-columns: auto auto; justify-content: space-between; }
}

/* Center nav links (between brand + right actions) */
.float-nav-center {
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Right actions — pinned to right */
.float-nav-right {
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
html.dark .floating-nav {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 50px -18px rgba(0, 0, 0, 0.5),
    0 8px 24px -12px rgba(60, 140, 243, 0.25);
}

/* When scrolled — make it more solid */
.floating-nav.is-scrolled {
  padding: 8px 10px 8px 16px;
  background: rgba(255, 255, 255, 0.85);
}
html.dark .floating-nav.is-scrolled {
  background: rgba(15, 23, 42, 0.78);
}

.float-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-right: 6px;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.float-brand:hover { transform: translateX(-1px); }
.float-brand-logo {
  position: relative;
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(60,140,243,0.45));
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.float-brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
.float-brand:hover .float-brand-logo { transform: rotate(-8deg) scale(1.06); }
.float-brand-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #05be8a;
  border: 2px solid rgba(255,255,255,0.95);
}
html.dark .float-brand-dot { border-color: rgba(15,23,42,0.95); }
.float-brand-name {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}
html.dark .float-brand-name { color: #f1f5f9; }
.float-brand-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15,23,42,0.45);
  line-height: 1.2;
  margin-top: 2px;
}
html.dark .float-brand-tag { color: rgba(241,245,249,0.45); }

/* Nav links — pill style with ripple ground */
.float-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  transition: color .2s ease, background .2s ease, transform .2s ease;
  overflow: hidden;
  isolation: isolate;
}
html.dark .float-nav-link { color: rgba(241,245,249,0.7); }
.float-nav-link i {
  font-size: 12px;
  opacity: 0.7;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.float-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(60,140,243,0.12), rgba(116,90,242,0.12));
  opacity: 0;
  transition: opacity .25s ease;
  z-index: -1;
}
.float-nav-link:hover {
  color: #3c8cf3;
  transform: translateY(-1px);
}
.float-nav-link:hover::before { opacity: 1; }
.float-nav-link:hover i { transform: scale(1.15) rotate(-6deg); opacity: 1; }
.float-nav-link.is-active {
  color: #fff;
}
.float-nav-link.is-active::before {
  opacity: 1;
  background: linear-gradient(135deg, #3c8cf3 0%, #745af2 100%);
}
.float-nav-link.is-active i { opacity: 1; }

.float-icon-btn {
  display: inline-flex;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: transparent;
  color: #475569;
  border: 0;
  cursor: pointer;
  transition: all .2s ease;
}
html.dark .float-icon-btn { color: rgba(241,245,249,0.7); }
.float-icon-btn:hover {
  background: rgba(60,140,243,0.10);
  color: #3c8cf3;
  transform: rotate(-15deg);
}

/* CTA buttons */
.float-cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #3c8cf3 0%, #745af2 100%);
  box-shadow: 0 8px 18px -4px rgba(60,140,243,0.45);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease;
  isolation: isolate;
}
.float-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
  z-index: -1;
}
.float-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 24px -4px rgba(60,140,243,0.55);
}
.float-cta:hover::before { left: 130%; }
.float-cta:active { transform: translateY(0) scale(0.96); }
.float-cta i { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.float-cta:hover i { transform: rotate(-12deg) translateX(2px); }

.float-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: 1px solid rgba(148,163,184,0.20);
  transition: all .2s ease;
}
html.dark .float-cta-ghost {
  color: rgba(241,245,249,0.7);
  border-color: rgba(255,255,255,0.10);
}
.float-cta-ghost:hover {
  border-color: #3c8cf3;
  color: #3c8cf3;
  transform: translateY(-1px);
}

.float-mobile-btn {
  display: inline-flex;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(60,140,243,0.10);
  color: #3c8cf3;
  border: 0;
  font-size: 16px;
  margin-left: auto;
  transition: all .2s ease;
}
.float-mobile-btn:hover { background: rgba(60,140,243,0.18); }
.float-mobile-btn:active { transform: scale(0.92); }

.floating-nav-mobile {
  pointer-events: auto;
  margin: 8px 8px 0;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.25);
  display: grid;
  gap: 4px;
  animation: mobilePanelIn .25s ease;
}
html.dark .floating-nav-mobile {
  background: rgba(15, 23, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.10);
}
@keyframes mobilePanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.float-mobile-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  transition: all .15s ease;
}
html.dark .float-mobile-link { color: rgba(241,245,249,0.7); }
.float-mobile-link:hover {
  background: rgba(60,140,243,0.08);
  color: #3c8cf3;
}
.float-mobile-link i { width: 18px; text-align: center; opacity: 0.7; }

/* Hide old sticky navbar styles to avoid conflict */
nav.sticky.top-0 { display: none; }

/* ===== Product detail — modern layout ===== */
.product-hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(60,140,243,0.06), rgba(116,90,242,0.06));
  border: 1px solid rgba(148,163,184,0.16);
}
html.dark .product-hero-media {
  border-color: rgba(255,255,255,0.08);
}
.product-hero-media > img,
.product-hero-media .video-poster-img,
.product-hero-media iframe {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Video poster */
.video-poster {
  position: relative;
  width: 100%; height: 100%;
  cursor: pointer;
  isolation: isolate;
}
.video-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}
.video-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.video-play-btn {
  position: relative;
  display: inline-flex;
  width: 88px; height: 88px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #ef5350;
  font-size: 30px;
  border: 0;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.4);
}
.video-play-btn::before,
.video-play-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulseRing 2s ease-out infinite;
}
.video-play-btn::after { animation-delay: 1s; }
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
.video-play-btn:hover { transform: scale(1.1); }
.video-play-btn:active { transform: scale(0.96); }
.video-play-btn i { margin-left: 4px; }

.video-poster-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.video-poster-tag .fa-youtube { color: #ef5350; }

.video-frame {
  position: absolute;
  inset: 0;
  background: #000;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* Thumbnail strip below media */
.product-thumb-strip {
  display: flex;
  gap: 10px;
}
.product-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(148,163,184,0.18);
  cursor: pointer;
  transition: all .25s ease;
  flex: 1;
  max-width: 180px;
}
html.dark .product-thumb {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
}
.product-thumb img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}
.product-thumb span {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
html.dark .product-thumb span { color: rgba(241,245,249,0.7); }
.product-thumb:hover {
  border-color: #3c8cf3;
  transform: translateY(-2px);
}
.product-thumb.is-active {
  border-color: #3c8cf3;
  box-shadow: 0 0 0 4px rgba(60,140,243,0.12);
}
.product-thumb.is-active span { color: #3c8cf3; }

/* Tabs */
.product-tabs {
  margin-top: 8px;
}
.product-tabs-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 16px;
  background: rgba(148,163,184,0.10);
  border: 1px solid rgba(148,163,184,0.14);
  margin-bottom: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.product-tabs-nav::-webkit-scrollbar { display: none; }
.product-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: #6b7280;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s ease;
}
.product-tab i { font-size: 12px; opacity: 0.7; }
.product-tab:hover { color: #3c8cf3; }
.product-tab.is-active {
  background: #fff;
  color: #3c8cf3;
  box-shadow: 0 4px 12px -2px rgba(60,140,243,0.18);
}
html.dark .product-tab.is-active {
  background: rgba(60,140,243,0.20);
  color: #93c5fd;
  box-shadow: none;
}
.product-tab-pane {
  display: none;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(148,163,184,0.16);
  animation: paneIn .3s ease;
}
html.dark .product-tab-pane {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}
.product-tab-pane.is-active { display: block; }
@keyframes paneIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sticky buy panel */
@media (min-width: 1024px) {
  .product-buy-panel {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

/* ===== Bank account radio cards ===== */
.bank-radio-list {
  display: grid;
  gap: 10px;
}
.bank-radio { display: block; cursor: pointer; }
.bank-radio input { position: absolute; opacity: 0; pointer-events: none; }
.bank-radio-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 2px solid var(--asrs-border, rgba(15,23,42,.10));
  background: rgba(255, 255, 255, 0.6);
  transition: all .2s cubic-bezier(.34,1.56,.64,1);
}
html.dark .bank-radio-card {
  background: rgba(30, 41, 59, 0.40);
  border-color: rgba(255, 255, 255, 0.10);
}
.bank-radio-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(60,140,243,0.06), transparent);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.bank-radio:hover .bank-radio-card {
  border-color: rgba(60,140,243,0.45);
  transform: translateY(-1px);
}
.bank-radio:hover .bank-radio-card::before { opacity: 1; }
.bank-radio input:checked ~ .bank-radio-card {
  border-color: #3c8cf3;
  background: linear-gradient(135deg, rgba(60,140,243,0.10), rgba(116,90,242,0.05));
  box-shadow: 0 8px 20px -8px rgba(60,140,243,0.3);
}
html.dark .bank-radio input:checked ~ .bank-radio-card {
  background: linear-gradient(135deg, rgba(60,140,243,0.18), rgba(116,90,242,0.10));
}
.bank-radio input:focus-visible ~ .bank-radio-card {
  outline: 2px solid #3c8cf3;
  outline-offset: 2px;
}

.bank-radio-logo {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px -4px currentColor;
}

.bank-radio-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.bank-radio-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.02em;
}
html.dark .bank-radio-name { color: #f1f5f9; }
.bank-radio-no {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #3c8cf3;
  letter-spacing: 0.03em;
  margin-top: 2px;
}
.bank-radio-holder {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.bank-radio-check {
  display: inline-flex;
  width: 28px; height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(148,163,184,0.40);
  background: transparent;
  color: transparent;
  font-size: 12px;
  flex-shrink: 0;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
}
.bank-radio input:checked ~ .bank-radio-card .bank-radio-check {
  border-color: #3c8cf3;
  background: #3c8cf3;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 10px -2px rgba(60,140,243,0.4);
}
