/* Font imported via HTML head with preconnect & display=swap */

:root {
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --bg-input: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-soft: rgba(226, 232, 240, 0.9);
  --border-strong: rgba(99, 102, 241, 0.25);
  --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #d946ef 50%, #8b5cf6 100%);
  --cyan-gradient: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
  --emerald-gradient: linear-gradient(135deg, #059669 0%, #10b981 50%, #34d399 100%);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(99, 102, 241, 0.15), 0 0 1px 1px rgba(99, 102, 241, 0.2);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --bottom-nav-bg: rgba(255, 255, 255, 0.9);
  --chip-bg: #ffffff;
  --chip-border: rgba(226, 232, 240, 0.9);
  --badge-bg: rgba(99, 102, 241, 0.92);
  --danger: #ef4444;
  --success: #10b981;
}

body.dark-theme {
  --bg-body: #07090e;
  --bg-surface: #0e121d;
  --bg-card: rgba(18, 24, 38, 0.75);
  --bg-card-hover: rgba(26, 33, 52, 0.85);
  --bg-input: #131929;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(99, 102, 241, 0.35);
  --shadow-card: 0 12px 30px -5px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.06);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(99, 102, 241, 0.2);
  --nav-bg: rgba(9, 12, 19, 0.82);
  --bottom-nav-bg: rgba(11, 15, 24, 0.88);
  --chip-bg: #131929;
  --chip-border: rgba(255, 255, 255, 0.1);
  --badge-bg: rgba(99, 102, 241, 0.9);
  --danger: #ef4444;
  --success: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
  padding-bottom: 95px;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global Box-Sizing & Full Viewport Responsiveness */
*, *::before, *::after {
  box-sizing: border-box;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 90px;
  }
}

/* Floating High-Tech Animated Ambient Gradients */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -2;
  pointer-events: none;
  background: 
    radial-gradient(ellipse at 20% 12%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 45%, rgba(168, 85, 247, 0.08) 0%, transparent 55%);
  animation: bgFloat 18s infinite alternate ease-in-out;
}

body.dark-theme::before {
  background: 
    radial-gradient(ellipse at 20% 12%, rgba(99, 102, 241, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(56, 189, 248, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 45%, rgba(168, 85, 247, 0.12) 0%, transparent 55%);
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
}

@keyframes bgFloat {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.06) translateY(-10px); }
  100% { transform: scale(1.12) translateY(5px); }
}

/* Status Bar Spacer (Mobile safe-area only) */
.status-spacer {
  height: env(safe-area-inset-top, 0px);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  display: block;
}

@media (min-width: 768px) {
  .status-spacer {
    display: none;
  }
}

/* Top Navbar (Fluid Full-Width with Centered Alignment) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100% - 1360px) / 2));
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

@supports (padding-top: env(safe-area-inset-top)) {
  .navbar {
    top: env(safe-area-inset-top, 0px);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-gradient);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4);
  position: relative;
  transition: transform 0.25s ease;
}
.brand-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 15px;
  background: var(--primary-gradient);
  opacity: 0.35;
  filter: blur(6px);
  z-index: -1;
}
.brand:hover .brand-icon {
  transform: scale(1.05) rotate(3deg);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-text h1 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #fff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
body.light-theme .brand-text h1 {
  background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text span {
  font-size: 10px;
  color: #38bdf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wallet-chip {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  color: #a5b4fc;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}
.wallet-chip:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  color: #fff;
}
.wallet-chip:active { transform: scale(0.95); }
.wallet-chip i {
  color: #f59e0b;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-toggle:hover {
  transform: rotate(20deg) scale(1.08);
  border-color: var(--border-strong);
}

/* Main Content Area */
.main-content {
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding-top: calc(76px + env(safe-area-inset-top, 0px));
  padding-bottom: 24px;
}

/* Hero Showcase Banner */
.hero-showcase {
  max-width: 1360px;
  margin: 0 auto 22px;
  padding: 0 18px;
}
@media (min-width: 768px) {
  .hero-showcase {
    padding: 0 20px;
  }
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-heading {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.light-theme .hero-heading {
  background: linear-gradient(135deg, #0f172a 40%, #475569 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* Stats Row */
.stats-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.stats-row::-webkit-scrollbar { display: none; }
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  padding: 10px 14px;
  border-radius: 14px;
  min-width: 124px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.stat-icon.s-1 { background: var(--primary-gradient); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); }
.stat-icon.s-2 { background: var(--cyan-gradient); box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3); }
.stat-icon.s-3 { background: var(--emerald-gradient); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); }
.stat-text {
  display: flex;
  flex-direction: column;
}
.stat-text strong { font-size: 13.5px; font-weight: 800; color: var(--text-primary); }
.stat-text span { font-size: 10.5px; color: var(--text-muted); font-weight: 600; }

/* Bento Home Services Grid (Responsive 1/2/4 Columns) */
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 0 18px;
  max-width: 1360px;
  margin: 0 auto 24px;
}
@media (min-width: 640px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 18px;
  }
}
@media (min-width: 1024px) {
  .home-services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}
.service-card:active {
  transform: scale(0.985);
}

.service-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(35px);
  opacity: 0.18;
}
.card-purple .service-card-glow { background: #8b5cf6; }
.card-rose .service-card-glow { background: #ec4899; }
.card-cyan .service-card-glow { background: #38bdf8; }
.card-emerald .service-card-glow { background: #10b981; }

.service-card-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--chakra-font, 'Outfit', -apple-system, sans-serif);
}
.badge-rose {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border-color: rgba(236, 72, 153, 0.35);
}
.badge-cyan {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}
.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.service-card .card-body {
  padding: 20px;
}
.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.service-card:hover .service-icon-box {
  transform: scale(1.1);
}
.icon-purple {
  background: rgba(139, 92, 246, 0.14);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.2);
}
.icon-rose {
  background: rgba(236, 72, 153, 0.14);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.28);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.2);
}
.icon-cyan {
  background: rgba(56, 189, 248, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}
.icon-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.service-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.service-card-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.feat-pill {
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
body.light-theme .feat-pill {
  background: #f1f5f9;
}
.feat-pill i {
  color: #10b981;
  font-size: 0.68rem;
}

.service-card-btn-wrap {
  margin-top: auto;
}
.service-action-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.service-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}
.service-action-btn.btn-rose {
  background: var(--secondary-gradient);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}
.service-action-btn.btn-cyan {
  background: var(--cyan-gradient);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.35);
  color: #0b0f19;
}
.service-action-btn.btn-emerald {
  background: var(--emerald-gradient);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

/* Template Catalog Card Grid (Full Multi-Breakpoint Responsive) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  padding: 0 18px 24px;
  max-width: 1360px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 20px 28px;
  }
}
@media (min-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    padding: 0 20px 32px;
  }
}
@media (min-width: 1440px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
}

.card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}
.card:active { transform: scale(0.975); }

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-surface);
  overflow: hidden;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card-img-wrap img {
  transform: scale(1.06);
}
.card-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.card-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  display: flex;
  flex-direction: column;
}
.price-new {
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
}
.price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}
.card-btn {
  background: var(--primary-gradient);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.card-btn:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
}
.card-btn:active { transform: scale(0.92); }

/* Search & Filter (Responsive & Centered) */
.search-wrap {
  padding: 0 18px;
  margin-bottom: 16px;
  position: sticky;
  top: calc(72px + env(safe-area-inset-top, 0px));
  z-index: 90;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .search-wrap {
    padding: 0 20px;
  }
}
.search-box {
  position: relative;
  width: 100%;
}
.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}
.search-box input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  outline: none;
  transition: all 0.25s ease;
}
.search-box input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.filter-row {
  display: flex;
  gap: 8px;
  padding: 0 18px;
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .filter-row {
    padding: 0 20px;
  }
}
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip {
  padding: 7px 14px;
  border-radius: 18px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.filter-chip.active {
  background: var(--primary-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

/* Responsive Modal & Dialog System (Bottom Sheet on Mobile, Centered Glass Dialog on Desktop) */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.bottom-sheet {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--bg-surface);
  border-radius: 28px 28px 0 0;
  padding: 20px 20px 85px 20px;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 88vh;
  overflow-y: auto;
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.modal-overlay.active .bottom-sheet {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .modal-overlay {
    align-items: center;
    justify-content: center;
    padding: 24px;
  }
  .bottom-sheet {
    max-width: 640px;
    border-radius: 24px;
    border: 1px solid var(--border-strong, rgba(139, 92, 246, 0.3));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(99, 102, 241, 0.18);
    padding: 28px 28px 32px 28px;
    transform: scale(0.95) translateY(15px);
  }
  .modal-overlay.active .bottom-sheet {
    transform: scale(1) translateY(0);
  }
  .sheet-handle {
    display: none;
  }
}
.sheet-handle {
  width: 42px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  margin: 0 auto 18px;
  opacity: 0.6;
}
.sheet-header {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}
.sheet-img {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-soft);
}
.sheet-title-area {
  flex-grow: 1;
}
.sheet-title-area h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-primary);
}
.sheet-badge {
  display: inline-block;
  background: var(--bg-input);
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  border: 1px solid var(--border-soft);
}
.sheet-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sheet-price {
  font-size: 21px;
  font-weight: 800;
  color: #10b981;
}
.sheet-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.sheet-content h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.sheet-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.sheet-actions {
  display: flex;
  gap: 12px;
}
.btn-primary {
  flex: 1;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}
.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-soft);
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}
.btn-primary:active, .btn-secondary:active { transform: scale(0.98); }

/* Form Controls */
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.form-control {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.25s ease;
  outline: none;
}
.form-control:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.btn-block {
  width: 100%;
  margin-top: 8px;
}

/* Floating Bottom Navigation - see consolidated definition at bottom */

/* Toast */
.toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-primary);
  color: var(--bg-body);
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 2000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Floating Guide Button */
.floating-guide-btn {
  position: fixed;
  right: 18px;
  bottom: 82px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  z-index: 89;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .floating-guide-btn {
    bottom: 24px;
    right: 24px;
  }
}
.floating-guide-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

/* Media Gallery */
.media-gallery {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 5px 20px 15px;
  margin: 0 -20px 15px -20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
.media-gallery::-webkit-scrollbar {
  display: none;
}
.media-item {
  height: 220px;
  border-radius: 12px;
  object-fit: cover;
  background: #1e1e1e;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* Responsiveness adjustments for small devices */
@media (max-width: 360px) {
  .navbar { padding: 0 10px; }
  .brand { gap: 8px; }
  .brand-icon { width: 34px; height: 34px; font-size: 16px; }
  .brand-text h1 { font-size: 16px; }
  .brand-text span { font-size: 8px; }
  .wallet-chip { padding: 4px 10px; font-size: 11.5px; }
  .hero-heading { font-size: 1.3rem; }
  .stat-box { min-width: 105px; padding: 8px 10px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
}

/* ==========================================================================
   CYBER-LUXE THEME MATCHING USER REFERENCE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&display=swap');

:root {
  --chakra-font: 'Chakra Petch', -apple-system, sans-serif;
  --cyber-bg: #090a16;
  --cyber-card-bg: #121324;
  --cyber-hero-bg: linear-gradient(180deg, #13152d 0%, #0d0e1e 100%);
}

body.dark-theme {
  background-color: var(--cyber-bg);
}

/* Compact & Next-Level Cyber Hero Card */
.cyber-hero-card.compact-hero {
  margin: 10px 14px 14px;
  padding: 16px 14px 12px;
  border-radius: 18px;
  background: var(--cyber-hero-bg);
  border: 1px solid rgba(139, 92, 246, 0.28);
  box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}
.cyber-hero-card.compact-hero::before {
  content: '';
  position: absolute;
  top: -30px; left: -30px;
  width: 130px; height: 130px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(25px);
}
.cyber-hero-card.compact-hero::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(22px);
}

.cyber-hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cyber-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
  font-family: var(--chakra-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 0;
}

.cyber-live-badge {
  font-family: var(--chakra-font);
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pulsing-dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: bgPulseCyan 1.8s infinite alternate ease-in-out;
}
@keyframes bgPulseCyan {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.3); opacity: 1; }
}

.cyber-hero-title {
  font-family: var(--chakra-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.text-glow-accent {
  color: #818cf8;
  text-shadow: 0 0 14px rgba(129, 140, 248, 0.5);
}

.cyber-hero-desc {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cyber-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.btn-cyber-primary {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
  color: #ffffff !important;
  font-family: var(--chakra-font);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transition: transform 0.2s, filter 0.2s;
  border: none;
  cursor: pointer;
}
.btn-cyber-primary:active {
  transform: scale(0.97);
}
.btn-cyber-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-family: var(--chakra-font);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.btn-cyber-glass:active {
  background: rgba(255, 255, 255, 0.08);
  transform: scale(0.97);
}

.cyber-stats-grid.compact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
.cyber-stats-grid.compact-stats .cyber-stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 6px 2px;
  text-align: center;
}
.cyber-stats-grid.compact-stats .stat-val {
  font-family: var(--chakra-font);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.cyber-stats-grid.compact-stats .stat-lbl {
  font-size: 7.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Service Quick Tabs */
.service-quick-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 0 14px 14px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.service-quick-tabs::-webkit-scrollbar { display: none; }
.tab-chip {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-family: var(--chakra-font);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.tab-chip:hover, .tab-chip.active {
  background: rgba(99, 102, 241, 0.16);
  border-color: rgba(99, 102, 241, 0.45);
  color: #c7d2fe;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.25);
}

/* Section Title Bar */
.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px 12px;
}
.section-title-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-left i {
  color: #38bdf8;
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}
.section-title-left h2 {
  font-family: var(--chakra-font);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #ffffff;
  margin: 0;
}
.section-count-badge {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Responsive Template Grid (Mobile: 2-Col, Tablet: 3-Col, Desktop: 4-Col, Ultra: 5-Col) */
.card-grid, .tmpl-grid-2col {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 12px;
  padding: 0 14px 20px;
  max-width: 1360px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .card-grid, .tmpl-grid-2col {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 18px;
    padding: 0 20px 28px;
  }
}
@media (min-width: 1024px) {
  .card-grid, .tmpl-grid-2col {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 22px;
    padding: 0 20px 32px;
  }
}
@media (min-width: 1440px) {
  .card-grid, .tmpl-grid-2col {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px;
  }
}

.card, .tmpl-card {
  background: var(--cyber-card-bg, #121324);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.card:hover, .tmpl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}
.card:active, .tmpl-card:active {
  transform: scale(0.975);
}

.card-badge, .tmpl-discount-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 3;
  background: #eab308;
  color: #000000;
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-weight: 800;
  font-size: 10px;
  border-radius: 6px;
  padding: 2px 7px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   NEXT-LEVEL MULTI-COLOR BADGE (PLACED ABOVE COLORS: {X} EDITIONS)
   ========================================================================== */
.tmpl-multicolor-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  align-self: flex-start;
  margin: 5px 0 3px 0;
  padding: 3.5px 8.5px;
  background: linear-gradient(135deg, rgba(13, 17, 38, 0.94) 0%, rgba(22, 16, 48, 0.94) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 7px;
  font-family: var(--chakra-font, 'Plus Jakarta Sans', sans-serif);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.55), 0 0 14px rgba(236, 72, 153, 0.3);
  border: 1px solid rgba(236, 72, 153, 0.45);
  overflow: hidden;
  pointer-events: none;
  line-height: 1.2;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tmpl-multicolor-badge::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  padding: 1px;
  background: linear-gradient(90deg, #ff007a, #7928ca, #00f0ff, #00dfd8, #f59e0b, #ff007a);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: multiAuroraFlow 3.5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.tmpl-multicolor-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: skewX(-22deg);
  animation: multiPrismShine 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 2;
}

.tmpl-card:hover .tmpl-multicolor-badge {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 22px rgba(236, 72, 153, 0.65), 0 0 30px rgba(6, 182, 212, 0.4);
  transform: translateY(-1px) scale(1.02);
}

.tmpl-multi-pulse-dot {
  position: relative;
  z-index: 3;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ec4899;
  box-shadow: 0 0 8px #ec4899;
  animation: multiDotRainbow 3.5s linear infinite;
  flex-shrink: 0;
}

.tmpl-multi-icon {
  position: relative;
  z-index: 3;
  font-size: 9.5px;
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 4px rgba(244, 63, 94, 0.6));
  animation: multiIconWiggle 4s ease-in-out infinite;
  flex-shrink: 0;
}

.tmpl-multi-txt {
  position: relative;
  z-index: 3;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

@keyframes multiAuroraFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes multiPrismShine {
  0%, 30% { left: -120%; }
  70%, 100% { left: 160%; }
}

@keyframes multiDotRainbow {
  0%   { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
  25%  { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
  50%  { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
  75%  { background: #10b981; box-shadow: 0 0 8px #10b981; }
  100% { background: #f43f5e; box-shadow: 0 0 8px #f43f5e; }
}

@keyframes multiIconWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  45% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-12deg) scale(1.15); }
  55% { transform: rotate(10deg) scale(1.15); }
  60% { transform: rotate(-5deg) scale(1.1); }
  65% { transform: rotate(0deg) scale(1); }
}

@media (max-width: 420px) {
  .tmpl-multicolor-badge {
    padding: 3px 6px;
    font-size: 8px;
    gap: 4px;
    top: 10px;
    right: 10px;
  }
  .tmpl-multi-avail {
    display: none;
  }
}


.card-img-wrap, .tmpl-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1 !important; /* EXACT SQUARE RATIO */
  height: auto !important;
  border-radius: 13px;
  overflow: hidden;
  background: #060712;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img-wrap img, .tmpl-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
  border-radius: 13px;
}
.card:hover .card-img-wrap img, .tmpl-card:hover .tmpl-img-wrap img {
  transform: scale(1.05);
}

.card-body, .tmpl-body {
  padding: 6px 3px 2px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title, .tmpl-title {
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 4px;
  margin-bottom: 2px;
}

.tmpl-desc, .tmpl-author {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.card-desc {
  display: none; /* Hide long desc on 2-col cards for clean screenshot look */
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-price, .tmpl-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 4px;
}

.price-old, .tmpl-old-price {
  font-size: 11px;
  color: #64748b;
  text-decoration: line-through;
  font-weight: 600;
}
.price-new, .tmpl-new-price {
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: #fbbf24;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.card-btn, .btn-tmpl-build {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 10px;
  border: none;
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  transition: filter 0.2s, transform 0.15s;
}
.card-btn:active, .btn-tmpl-build:active {
  transform: scale(0.97);
}

/* Bottom Navigation - Pixel Perfect Modern 5-Item Cyber Glass */
.ref-bottom-nav,
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: rgba(8, 11, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 999;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .ref-bottom-nav,
  .bottom-nav {
    display: flex !important;
    max-width: 680px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 20px 20px 0 0 !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6) !important;
  }
}

.ref-nav-item,
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none !important;
  font-family: var(--chakra-font, 'Outfit', -apple-system, sans-serif);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 4px;
  transition: all 0.2s ease;
  position: relative;
  height: 100%;
  white-space: nowrap;
}

.ref-nav-item i,
.nav-item i {
  font-size: 19px;
  transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.ref-nav-item:hover,
.nav-item:hover {
  color: #94a3b8;
}

.ref-nav-item.active,
.nav-item.active {
  color: #38bdf8 !important;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

.ref-nav-item.active i,
.nav-item.active i {
  transform: translateY(-1px);
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.75));
  color: #38bdf8 !important;
}

.ref-nav-item.active::after,
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3.5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.85), 0 0 4px #818cf8;
}


.tmpl-badge-univ {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 4;
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #ffffff;
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-weight: 800;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 3px 8px;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.tmpl-badge-univ i {
  font-size: 9px;
  color: #fff;
}

.tmpl-pinned-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.92) 0%, rgba(217, 119, 6, 0.92) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #0b0d19;
  font-family: var(--chakra-font, 'Chakra Petch', sans-serif);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 2px 6px;
  max-width: 65px;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(254, 240, 138, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  pointer-events: none;
}
.tmpl-pinned-badge .tmpl-pinned-icon {
  font-size: 9.5px;
  line-height: 1;
}
.tmpl-pinned-badge .tmpl-pinned-text {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1;
}
