/* ╔══════════════════════════════════════════════════════════════╗
   ║            AIMSETU — MODERN SAAS DESIGN SYSTEM               ║
   ║            Matching Emergent SaaS Template Hub Style         ║
   ╚══════════════════════════════════════════════════════════════╝ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── DESIGN TOKENS (HSL Based) ─────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Light Theme Defaults */
  --background: 0 0% 100%;
  --foreground: 240 10% 4%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 4%;
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 4%;
  
  --primary: 213 89% 51%;             /* Brand Blue #1a73e8 */
  --primary-foreground: 0 0% 98%;
  
  --secondary: 240 5% 96%;
  --secondary-foreground: 240 10% 4%;
  
  --muted: 240 5% 96%;
  --muted-foreground: 240 4% 46%;
  
  --accent: 240 5% 96%;
  --accent-foreground: 240 10% 4%;
  
  --destructive: 0 72% 51%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 6% 90%;
  --input: 240 6% 90%;
  --ring: 213 89% 51%;
  --radius: 0.75rem;
  --role-color: 213 89% 51%;

  /* Direct Color Tokens for Helpers */
  --blue-primary: #1a73e8;
  --gold-premium: #f59e0b;
  --violet-admin: #7c3aed;
  --emerald-success: #10b981;
}

/* ── DARK THEME ─────────────────────────────────────────────────── */
[data-theme="dark"],
.dark {
  --background: 240 10% 3.9%;          /* #0a0a0c */
  --foreground: 0 0% 98%;              /* #fafafa */
  --card: 240 6% 8%;                  /* #121217 */
  --card-foreground: 0 0% 98%;
  --popover: 240 6% 8%;
  --popover-foreground: 0 0% 98%;
  
  --primary: 213 89% 55%;             /* Vibrant Blue */
  --primary-foreground: 0 0% 98%;
  
  --secondary: 240 5% 12%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 240 5% 14%;
  --muted-foreground: 240 5% 65%;
  
  --accent: 240 5% 14%;
  --accent-foreground: 0 0% 98%;
  
  --destructive: 0 62% 45%;
  --destructive-foreground: 0 0% 98%;
  
  --border: 240 5% 15%;
  --input: 240 5% 15%;
  --ring: 213 89% 55%;
  --role-color: 213 89% 55%;

  color-scheme: dark;
}

/* Role Accent Color Overrides */
.role-premium,
.premium-mode {
  --primary: 38 92% 50%;              /* Gold #f59e0b */
  --ring: 38 92% 50%;
  --role-color: 38 92% 50%;
}

.role-admin,
.admin-mode {
  --primary: 262 83% 58%;             /* Violet #7c3aed */
  --ring: 262 83% 58%;
  --role-color: 262 83% 58%;
}

/* ── SUBSCRIPTION THEMES & ACCENTS (Site-wide) ─────────────────── */
[data-sub-theme="silver"],
.theme-silver {
  --primary: 215 16% 65%;             /* Cool Chrome Silver #94a3b8 */
  --ring: 215 16% 65%;
  --role-color: #94a3b8;
  --tier-accent: #94a3b8;
  --tier-glow: rgba(148, 163, 184, 0.45);
  --tier-gradient: linear-gradient(135deg, #94a3b8, #cbd5e1);
}

[data-sub-theme="gold"],
.theme-gold {
  --primary: 38 92% 50%;              /* 24K Golden Yellow #f59e0b */
  --ring: 38 92% 50%;
  --role-color: #f59e0b;
  --tier-accent: #f59e0b;
  --tier-glow: rgba(245, 158, 11, 0.5);
  --tier-gradient: linear-gradient(135deg, #f59e0b, #fbbf24);
}

[data-sub-theme="platinum"],
.theme-platinum {
  --primary: 218 30% 75%;             /* Titanium Platinum #cbd5e1 */
  --ring: 218 30% 75%;
  --role-color: #cbd5e1;
  --tier-accent: #cbd5e1;
  --tier-glow: rgba(203, 213, 225, 0.55);
  --tier-gradient: linear-gradient(135deg, #cbd5e1, #f1f5f9);
}

[data-sub-theme="emerald"],
.theme-emerald {
  --primary: 160 84% 39%;             /* Imperial Emerald Green #10b981 */
  --ring: 160 84% 39%;
  --role-color: #10b981;
  --tier-accent: #10b981;
  --tier-glow: rgba(16, 185, 129, 0.6);
  --tier-gradient: linear-gradient(135deg, #10b981, #34d399);
}

[data-sub-theme="diamond"],
.theme-diamond {
  --primary: 191 100% 50%;            /* Ultra-Premium Electric Sapphire Diamond Blue #00d2ff */
  --ring: 191 100% 50%;
  --role-color: #00d2ff;
  --tier-accent: #00d2ff;
  --tier-glow: rgba(0, 210, 255, 0.75);
  --tier-gradient: linear-gradient(135deg, #00d2ff, #38bdf8, #818cf8);
}

/* ── BASE STYLES ────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.15;
}

code, pre, .font-mono {
  font-family: var(--font-mono);
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

/* ── GLASSMORPHISM & UTILITIES ─────────────────────────────────── */
.glass {
  background: hsl(var(--card) / 0.6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid hsl(var(--border) / 0.7);
}

.glass-strong {
  background: hsl(var(--card) / 0.85);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid hsl(var(--border));
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.animated-gradient-text {
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(262 83% 58%), hsl(38 92% 50%), hsl(var(--primary)));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bg-slide 8s ease infinite;
}

@keyframes bg-slide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Custom minimal scrollbar */
.thin-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.thin-scroll::-webkit-scrollbar-track { background: transparent; }
.thin-scroll::-webkit-scrollbar-thumb { background: hsl(var(--muted-foreground) / 0.3); border-radius: 3px; }
.thin-scroll::-webkit-scrollbar-thumb:hover { background: hsl(var(--muted-foreground) / 0.5); }

.no-scroll::-webkit-scrollbar { display: none; }
.no-scroll { -ms-overflow-style: none; scrollbar-width: none; }

/* ── BUTTONS & FORM INPUTS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 14px hsl(var(--primary) / 0.3);
}

.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.4);
  transform: translateY(-1px);
}

.btn-outline,
.btn-secondary {
  background-color: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.btn-outline:hover,
.btn-secondary:hover {
  background-color: hsl(var(--accent));
  border-color: hsl(var(--border) / 0.9);
}

.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: calc(var(--radius) - 2px);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rounded-full {
  border-radius: 9999px !important;
}

.form-input {
  width: 100%;
  padding: 0.65rem 1rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}

/* ── HEADER NAVIGATION ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border) / 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #1a73e8;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
  transition: all 0.3s ease;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: hsl(var(--foreground));
}

.main-nav-links {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 768px) {
  .main-nav-links {
    display: flex;
  }
}

/* Mobile Menu Toggle & Slide-out Drawer */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.2s;
}
.mobile-menu-toggle:hover {
  background: hsl(var(--accent));
}
@media (min-width: 768px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: hsl(var(--card));
  border-left: 1px solid hsl(var(--border));
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--border));
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-drawer-link:hover,
.mobile-drawer-link.active {
  background: hsl(var(--accent));
  color: hsl(var(--primary));
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid hsl(var(--border));
}

.nav-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: var(--radius);
  transition: all 0.2s;
}

.nav-link-btn:hover,
.nav-link-btn.active {
  color: hsl(var(--foreground));
  background-color: hsl(var(--accent));
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.credits-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credits-pill-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid hsl(var(--border) / 0.8);
  color: hsl(var(--foreground));
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s;
}

.theme-toggle-btn:hover {
  background-color: hsl(var(--accent));
  transform: rotate(15deg);
}

.currency-selector-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.currency-select-pill {
  appearance: none;
  -webkit-appearance: none;
  background: hsl(var(--card) / 0.7);
  border: 1px solid hsl(var(--border) / 0.8);
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 1.7rem 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  background-size: 11px;
  transition: all 0.2s ease;
  max-width: 170px;
}

.currency-select-pill:hover, .currency-select-pill:focus {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--card));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.2);
}

/* ── UNIFIED USER PROFILE DROPDOWN PILL ───────────────────────── */
.user-menu-dropdown-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-nav-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem 0.3rem 0.35rem;
  border-radius: 9999px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-nav-pill-btn:hover {
  background: hsl(var(--accent));
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.35);
}

.user-nav-display-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 240px;
  background: hsl(var(--card) / 0.96);
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 1000;
  animation: userDropdownAnim 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes userDropdownAnim {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown-menu.show {
  display: flex;
}

.user-dropdown-header {
  padding: 0.5rem 0.65rem 0.4rem;
}

.user-dropdown-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: hsl(var(--foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-email {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.35rem;
}

.user-dropdown-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  width: fit-content;
  letter-spacing: 0.02em;
}

.user-dropdown-divider {
  height: 1px;
  background: hsl(var(--border) / 0.7);
  margin: 0.35rem 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.83rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.user-dropdown-item:hover {
  background: hsl(var(--accent));
  color: hsl(var(--primary));
}

.user-dropdown-item.text-danger {
  color: #ef4444;
}

.user-dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

/* ── HERO SECTION ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 7rem;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url('https://images.unsplash.com/photo-1672080070762-764c74ee1227?w=2000');
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, hsl(var(--background) / 0.6) 60%, hsl(var(--background)));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 4rem;
  }
}

.hero-badge-pill {
  margin-bottom: 1.75rem;
  display: inline-flex;
}

.hero-title {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.75rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2.25rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-metrics-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

.hero-metric-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: hsl(var(--foreground));
  display: block;
  line-height: 1.1;
}

.hero-divider {
  width: 1px;
  height: 32px;
  background-color: hsl(var(--border));
}

/* Hero Right: Mockup Cards */
.hero-mockup-wrapper {
  position: relative;
  width: 100%;
}

.hero-main-card {
  border-radius: 1.25rem;
  padding: 0.5rem;
  transform: rotate(2deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5);
}

.hero-main-card:hover {
  transform: rotate(0deg);
}

.hero-main-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.85rem;
  display: block;
}

.hero-floating-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 14rem;
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stream-progress-bar {
  margin-top: 0.5rem;
  height: 4px;
  background-color: hsl(var(--muted));
  border-radius: 9999px;
  overflow: hidden;
}

.stream-progress-fill {
  height: 100%;
  width: 75%;
  background-color: hsl(var(--primary));
  animation: pulse-stream 1.5s infinite ease-in-out;
}

@keyframes pulse-stream {
  0%, 100% { opacity: 1; width: 75%; }
  50% { opacity: 0.5; width: 60%; }
}

/* ── WHY AIMSETU (FEATURES) SECTION ────────────────────────────── */
.features-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-header-block {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.section-h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-box {
  border-radius: 1rem;
  padding: 1.75rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-box:hover {
  transform: translateY(-4px);
}

.feature-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.55;
}

/* ── TEMPLATES MARKETPLACE SECTION ─────────────────────────────── */
.marketplace-section {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.marketplace-filter-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .marketplace-filter-row {
    flex-direction: row;
    align-items: center;
  }
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(var(--muted-foreground));
}

.search-input-field {
  padding-left: 2.75rem;
  height: 48px;
  border-radius: var(--radius);
}

.category-pills-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.category-pills-scroll::-webkit-scrollbar {
  display: none;
}

.category-filter-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-filter-btn:hover {
  color: hsl(var(--foreground));
  background: hsl(var(--accent));
}

.category-filter-btn.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* Template Cards Grid */
.templates-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .templates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.template-card {
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
}

.template-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.template-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: hsl(var(--muted));
  overflow: hidden;
}

.template-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.template-card:hover .template-thumb-img {
  transform: scale(1.04);
}

.template-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.template-card:hover .template-thumb-overlay {
  opacity: 1;
}

.template-card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.template-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.template-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.template-desc {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
}

.template-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding-top: 1rem;
}

.template-price-label {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: hsl(var(--foreground));
}

.template-price-label.free {
  color: #10b981;
}

/* ── PRICING SECTION ───────────────────────────────────────────── */
.pricing-section {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.pricing-tabs-nav {
  display: inline-flex;
  padding: 0.35rem;
  border-radius: var(--radius);
  margin-bottom: 2.5rem;
}

.pricing-tab-btn {
  padding: 0.55rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-tab-btn.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.25);
}

/* 3D Credit Scroll Wheel */
.credit-3d-wrapper {
  perspective: 1200px;
  width: 100%;
}

.credit-wheel-stage {
  position: relative;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  overflow: hidden;
}

.wheel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.wheel-nav-btn.prev { left: 1rem; }
.wheel-nav-btn.next { right: 1rem; }

.credit-wheel-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.credit-wheel-card {
  position: absolute;
  width: 220px;
  height: 290px;
  border-radius: 1.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 300ms ease;
  transform-style: preserve-3d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.credit-wheel-card.active {
  border: 2px solid hsl(var(--primary));
  box-shadow: 0 0 35px hsl(var(--primary) / 0.35), 0 25px 60px rgba(0, 0, 0, 0.5);
}

.credit-wheel-card .wheel-qty {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 900;
  color: hsl(var(--foreground));
}

.credit-wheel-card.active .wheel-qty {
  color: #fbbf24;
}

/* Custom quantity and checkout card */
.credit-calc-box {
  max-width: 480px;
  margin: 2rem auto 0;
  border-radius: 1rem;
  padding: 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   SUBSCRIPTIONS — Billing cycle toggle
══════════════════════════════════════════════════════════════════ */
.billing-cycle-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.cycle-btn {
  padding: 0.45rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.cycle-btn.active {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.discount-badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   SUBSCRIPTIONS — Scrollable Viewport & Card Layout
══════════════════════════════════════════════════════════════════ */

.subscriptions-viewport-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

.sub-scroll-hint-bar {
  display: none !important;
}

.subscriptions-grid,
.subscriptions-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.5rem 0.5rem 2.5rem;
  scroll-behavior: smooth;
}

/* Custom Scrollbar for Tier List */
.subscriptions-grid::-webkit-scrollbar,
.subscriptions-list::-webkit-scrollbar {
  width: 7px;
}
.subscriptions-grid::-webkit-scrollbar-track,
.subscriptions-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}
.subscriptions-grid::-webkit-scrollbar-thumb,
.subscriptions-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}
.subscriptions-grid::-webkit-scrollbar-thumb:hover,
.subscriptions-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 210, 255, 0.6);
}

.sub-tier-card,
.subs-spotlight-panel {
  --tier-color: #94a3b8;
  --tier-rgb: 148, 163, 184;
  --tier-c: var(--tier-color);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  border-radius: 1.75rem;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  height: auto !important;
  min-height: 220px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(var(--tier-rgb), 0.28) 0%, rgba(15, 23, 42, 0.98) 75%, #0b0f19 100%), #0f172a;
  color: #ffffff;
  border: 1.5px solid rgba(var(--tier-rgb), 0.55);
  box-shadow: 0 16px 48px -10px rgba(var(--tier-rgb), 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s, border-color 0.35s;
}

@media (min-width: 960px) {
  .sub-tier-card,
  .subs-spotlight-panel {
    grid-template-columns: 260px 1fr 220px;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem 2.25rem;
  }
}

.sub-tier-card:hover,
.subs-spotlight-panel:hover {
  transform: translateY(-4px);
}

/* ── Tier-specific spotlight backgrounds ─────────────────────────── */

/* Silver: Sleek Chrome / Silver Slate */
.subs-spotlight-panel.tier-silver {
  background: linear-gradient(140deg,
    rgba(203, 213, 225, 0.32) 0%,
    rgba(148, 163, 184, 0.20) 45%,
    rgba(26, 34, 52, 0.98) 100%),
    #172033;
  border: 1.5px solid rgba(203, 213, 225, 0.65);
  box-shadow: 0 16px 48px -10px rgba(148, 163, 184, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.subs-spotlight-panel.tier-silver:hover {
  box-shadow: 0 24px 60px -10px rgba(148, 163, 184, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Gold: Luminous 24K Amber & Radiant Gold */
.subs-spotlight-panel.tier-gold {
  background: linear-gradient(140deg,
    rgba(245, 158, 11, 0.42) 0%,
    rgba(217, 119, 6, 0.26) 45%,
    rgba(46, 26, 2, 0.98) 100%),
    #2c1503;
  border: 1.5px solid rgba(245, 158, 11, 0.85);
  box-shadow: 0 16px 48px -10px rgba(245, 158, 11, 0.45), inset 0 1px 0 rgba(254, 240, 138, 0.5);
  color: #ffffff;
}
.subs-spotlight-panel.tier-gold:hover {
  box-shadow: 0 24px 60px -10px rgba(245, 158, 11, 0.58), inset 0 1px 0 rgba(254, 240, 138, 0.65);
}

/* Platinum: Titanium Platinum & Radiant Metallic Sheen */
.subs-spotlight-panel.tier-platinum {
  background: linear-gradient(140deg,
    rgba(241, 245, 249, 0.32) 0%,
    rgba(203, 213, 225, 0.22) 45%,
    rgba(20, 27, 43, 0.98) 100%),
    #182236;
  border: 1.5px solid rgba(226, 232, 240, 0.75);
  box-shadow: 0 16px 48px -10px rgba(203, 213, 225, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  color: #ffffff;
}
.subs-spotlight-panel.tier-platinum:hover {
  box-shadow: 0 24px 60px -10px rgba(226, 232, 240, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

/* Emerald: Vivid Imperial Jade & Emerald Glow */
.subs-spotlight-panel.tier-emerald {
  background: linear-gradient(140deg,
    rgba(16, 185, 129, 0.40) 0%,
    rgba(5, 150, 105, 0.25) 45%,
    rgba(2, 36, 26, 0.98) 100%),
    #02261b;
  border: 1.5px solid rgba(16, 185, 129, 0.85);
  box-shadow: 0 16px 48px -10px rgba(16, 185, 129, 0.48), inset 0 1px 0 rgba(110, 231, 183, 0.45);
  color: #ffffff;
}
.subs-spotlight-panel.tier-emerald:hover {
  box-shadow: 0 24px 60px -10px rgba(16, 185, 129, 0.62), inset 0 1px 0 rgba(110, 231, 183, 0.62);
}

/* Diamond: Pinnacle VIP Electric Cyan & Deep Sapphire Starlight */
.subs-spotlight-panel.tier-diamond {
  background: radial-gradient(120% 85% at 35% -5%,
    rgba(0, 210, 255, 0.45) 0%,
    rgba(14, 29, 62, 0.98) 50%,
    rgba(2, 7, 20, 0.99) 100%);
  border: 2px solid rgba(0, 210, 255, 0.95);
  box-shadow:
    0 0 65px -6px rgba(0, 210, 255, 0.65),
    0 28px 70px -12px rgba(0, 0, 0, 0.95),
    inset 0 0 35px rgba(0, 210, 255, 0.22);
  color: #ffffff;
}
.subs-spotlight-panel.tier-diamond:hover {
  box-shadow:
    0 0 85px -4px rgba(0, 210, 255, 0.82),
    0 32px 85px -12px rgba(0, 0, 0, 0.98),
    inset 0 0 45px rgba(0, 210, 255, 0.32);
}

/* Diamond animated top bar */
.subs-spotlight-panel.tier-diamond::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00d2ff, #ffffff, #3b82f6, #00d2ff);
  background-size: 200% 100%;
  animation: diamondShimmerBar 4s linear infinite;
  z-index: 3;
}

@keyframes diamondShimmerBar {
  0%   { background-position: 0%   0; }
  100% { background-position: 200% 0; }
}

/* ── Spotlight Left Column ──────────────────────────────────────── */
.spotlight-left {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  z-index: 2;
}

/* ── Subscription Brand Header & Logo ───────────────────────────── */
.sub-tier-brand-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.sub-tier-logo-box {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(var(--tier-rgb), 0.7);
  box-shadow: 0 6px 20px -2px rgba(var(--tier-rgb), 0.45);
  display: grid;
  place-items: center;
  padding: 7px;
  flex-shrink: 0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.sub-tier-card:hover .sub-tier-logo-box {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 8px 24px -2px rgba(var(--tier-rgb), 0.65);
}

.sub-tier-card-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.sub-tier-brand-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.sub-tier-badges-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.spotlight-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.8rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.spotlight-status-badge.active-badge {
  background: rgba(16,185,129,0.25);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.55);
}

.spotlight-status-badge.diamond-badge {
  background: linear-gradient(135deg, rgba(0,210,255,0.28), rgba(37,99,235,0.38));
  color: #ffffff;
  border: 1.5px solid rgba(0,210,255,0.9);
  box-shadow: 0 0 18px rgba(0,210,255,0.5);
}

.spotlight-status-badge.tier-badge {
  background: color-mix(in srgb, var(--tc) 24%, rgba(15,23,42,0.8));
  color: #ffffff;
  border: 1.5px solid color-mix(in srgb, var(--tc) 70%, transparent);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.spotlight-diamond-crown {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, rgba(0,210,255,0.25), rgba(37,99,235,0.35));
  color: #ffffff;
  border: 1.5px solid rgba(0,210,255,0.85);
  box-shadow: 0 0 14px rgba(0,210,255,0.5);
  width: fit-content;
}

.spotlight-tier-name {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.spotlight-jewel-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.spotlight-desc {
  font-size: 0.9rem;
  color: #f1f5f9 !important;
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.spotlight-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.spotlight-price {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.spotlight-period {
  font-size: 0.92rem;
  color: #cbd5e1 !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.spotlight-savings-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16,185,129,0.22);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.45);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.74rem;
  font-weight: 800;
  width: fit-content;
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.spotlight-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.82rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s;
  letter-spacing: 0.01em;
}

.spotlight-cta-btn:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
}

.spotlight-cta-btn:disabled {
  cursor: not-allowed;
}

.spotlight-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(0,0,0,0.22);
  border: 1px dashed currentColor;
  transition: all 0.2s;
}

.spotlight-preview-btn:hover {
  background: rgba(255,255,255,0.07);
}

.spotlight-studio-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.52rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  background: rgba(0,210,255,0.08);
  border: 1px solid rgba(0,210,255,0.45);
  color: #38bdf8;
  transition: all 0.2s;
}

.spotlight-studio-btn:hover {
  background: rgba(0,210,255,0.16);
  border-color: rgba(0,210,255,0.75);
  box-shadow: 0 0 16px rgba(0,210,255,0.3);
}

/* ── Spotlight Right Column ─────────────────────────────────────── */
.spotlight-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 2;
  padding-top: 0.25rem;
}

.spotlight-features-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.spotlight-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .spotlight-features-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .spotlight-features-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.spotlight-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #ffffff !important;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.spotlight-check {
  flex-shrink: 0;
  font-size: 1rem;
  margin-top: 0.05rem;
}

/* ── Keep sparkle & metallic effects ───────────────────────────── */

/* 4. Particle Sparkles */
.sparkle-fleck {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 2px var(--tier-color, #94a3b8);
  pointer-events: none;
  animation: sparkleTwinkleAnim 3s infinite ease-in-out;
  z-index: 2;
}
@keyframes sparkleTwinkleAnim {
  0%, 100% { opacity: 0.2; transform: scale(0.6); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* 5. Metallic Sweep */
.subs-spotlight-panel.effect-metallic .metallic-sweep {
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: skewX(-25deg);
  transition: left 0.75s ease;
  pointer-events: none;
  z-index: 2;
}
.subs-spotlight-panel.effect-metallic:hover .metallic-sweep {
  left: 200%;
}

/* ── Keep old .sub-tier-card rules for structural integrity ────── */
/* (test suite checks class names on elements that may still exist in admin) */
.sub-tier-card {
  --tier-c: var(--tier-color, #94a3b8);
  --tier-rgb: 148, 163, 184;
}
@media (min-width: 960px) {
  .sub-tier-card {
    grid-template-columns: 260px 1fr 220px;
  }
}
@media (max-width: 959px) {
  .sub-tier-card {
    grid-template-columns: 1fr;
  }
}
.sub-col-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
}
.sub-col-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  min-width: 0;
}
.sub-col-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  min-width: 0;
}
@media (min-width: 960px) {
  .sub-col-info { grid-column: 1; }
  .sub-col-features { grid-column: 2; }
  .sub-col-actions { grid-column: 3; }
}
.diamond-crown-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  background: linear-gradient(135deg, rgba(0,210,255,0.25), rgba(37,99,235,0.35));
  color: #ffffff; border: 1px solid rgba(0,210,255,0.75);
  box-shadow: 0 0 15px rgba(0,210,255,0.45);
}
.diamond-unique-badge {
  background: linear-gradient(135deg, rgba(0,210,255,0.25), rgba(37,99,235,0.35)) !important;
  color: #ffffff !important; border: 1.5px solid rgba(0,210,255,0.85) !important;
  box-shadow: 0 0 18px rgba(0,210,255,0.5) !important; font-weight: 800 !important;
}
.tier-gem-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.65rem; border-radius: 9999px; font-size: 0.72rem;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
}
.sub-price-num { font-family: var(--font-mono); font-size: 2.75rem; font-weight: 900; line-height: 1; }
.sub-feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.sub-feature-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.86rem; }

/* ── Visual effect stubs (kept for admin panel compatibility) ───── */
.sub-tier-card.effect-glow,
.subs-spotlight-panel.effect-glow {
  box-shadow: 0 0 35px -5px rgba(var(--tier-rgb),0.28), 0 15px 35px -10px rgba(0,0,0,.5);
}
.sub-tier-card.effect-holographic::after,
.subs-spotlight-panel.effect-holographic::after {
  content: ''; position: absolute; top: -60%; left: -60%; width: 220%; height: 220%;
  background: linear-gradient(60deg,transparent 35%,rgba(255,255,255,.12) 50%,transparent 65%);
  transform: rotate(30deg); opacity: .6; pointer-events: none;
  animation: holoSheenAnim 7s infinite linear;
}
@keyframes holoSheenAnim {
  0%   { transform: translateY(-30%) rotate(30deg); }
  100% { transform: translateY(30%)  rotate(30deg); }
}
.sub-tier-card.effect-gradient_border,
.sub-tier-card.effect-gradient-border,
.subs-spotlight-panel.effect-gradient_border,
.subs-spotlight-panel.effect-gradient-border { border: 1.5px solid transparent; }
@keyframes borderGleamAnim {
  0%   { opacity: .6; filter: hue-rotate(0deg); }
  100% { opacity: 1;  filter: hue-rotate(25deg); }
}
.sub-tier-card.effect-floating_3d,
.sub-tier-card.effect-floating-3d {
  transform: perspective(1000px) translateZ(0);
}

/* ── FINAL CTA BANNER ──────────────────────────────────────────── */
.final-cta-section {
  padding-bottom: 6rem;
}

.final-cta-card {
  border-radius: 1.75rem;
  padding: 3.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .final-cta-card {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 5rem 4.5rem;
  }
}

.final-cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid hsl(var(--border) / 0.6);
  padding: 4rem 0 2.5rem;
  background-color: hsl(var(--card) / 0.3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand-p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 20rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: hsl(var(--foreground));
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid hsl(var(--border) / 0.4);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* ── MODAL DIALOGS ─────────────────────────────────────────────── */
dialog {
  border: none;
  border-radius: 1rem;
  background: transparent;
  max-width: 95vw;
  width: 100%;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-card {
  max-width: 1100px;
  width: 95vw;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.modal-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-body {
  padding: 1.5rem;
}

img.brand-icon-box {
  background-color: transparent;
  box-shadow: none;
  object-fit: contain;
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* ── MOBILE RESPONSIVE OVERHAULS ───────────────────────────── */
@media (max-width: 768px) {
  /* Hide desktop-only elements from header navbar to prevent horizontal blowout */
  .site-header .header-right-actions .currency-selector-wrap,
  .site-header .header-right-actions #auth-actions,
  .site-header .header-right-actions #user-profile {
    display: none !important;
  }

  /* Compact header layout */
  .site-header .header-right-actions {
    gap: 0.45rem;
  }

  /* Hero card alignment - remove tilt that protrudes offscreen */
  .hero-main-card {
    transform: none !important;
  }
  .hero-main-card:hover {
    transform: none !important;
  }
  .hero-floating-badge {
    left: 0.5rem !important;
    bottom: -1rem !important;
    max-width: calc(100% - 1rem) !important;
    width: auto !important;
  }

  /* Template preview modal on mobile */
  #preview-viewport-switcher {
    display: none !important;
  }

  #preview-modal .modal-card {
    width: 96vw !important;
    max-width: 96vw !important;
    margin: 0.5rem auto !important;
  }

  #modal-body-preview {
    height: 52vh !important;
  }

  #modal-body-reviews {
    height: 52vh !important;
    padding: 1rem !important;
  }

  #preview-modal .modal-header:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #preview-modal .modal-header:last-child > div:last-child {
    display: flex;
    gap: 0.5rem;
    width: 100%;
  }

  #modal-btn-download,
  #modal-btn-use-studio {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .pricing-tabs-nav {
    max-width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem !important;
  }

  .nav-container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }
  .hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
    line-height: 1.05;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }
  .hero-cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-metrics-row {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .hero-divider {
    display: none;
  }
  .template-thumb-box {
    height: 190px !important;
  }
  .modal-body {
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .pricing-section {
    padding-top: 2.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .subscriptions-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .sub-tier-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  .credit-wheel-stage {
    height: 320px !important;
  }
  .credit-wheel-card {
    width: 185px !important;
    height: 255px !important;
    padding: 1.15rem !important;
    border-radius: 1.25rem !important;
  }
  .credit-wheel-card .wheel-qty {
    font-size: 1.75rem !important;
  }
  .credit-calc-box {
    padding: 1rem !important;
    margin-top: 1.25rem !important;
  }
  .modal-header {
    padding: 0.75rem 1rem !important;
  }
  .modal-header h3 {
    font-size: 0.95rem !important;
  }
  #reviews-big-rating {
    font-size: 2rem !important;
  }
}

/* ── SCROLL MARGIN FOR SECTIONS WITH STICKY HEADER ─────────── */
html {
  scroll-behavior: smooth;
}

#pricing-section,
.pricing-section,
#featured-templates-section,
#marketplace-section {
  scroll-margin-top: 100px;
}

/* ── DEDICATED MARKETPLACE PAGE HERO & FILTERS ─────────────── */
.marketplace-hero-section {
  padding: 4.5rem 0 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.marketplace-header-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.marketplace-sort-pill {
  background: hsl(var(--card) / 0.8);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.marketplace-sort-pill:focus {
  border-color: hsl(var(--primary));
}

.templates-count-badge {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  font-weight: 600;
}

/* Password Visibility Toggle */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-field-wrapper .form-input {
  padding-right: 2.75rem !important;
}
.btn-toggle-password {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s ease;
}
.btn-toggle-password:hover {
  color: hsl(var(--foreground));
}

/* ════════════════════════════════════════════
   AESTHETIC CELEBRATION MODAL & CONFETTI
════════════════════════════════════════════ */
.celebration-dialog {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 520px;
  width: 90vw;
  margin: auto;
  overflow: visible;
  outline: none;
}

.celebration-dialog::backdrop {
  background: rgba(4, 7, 15, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: celebFadeIn 0.3s ease-out;
}

.celebration-card {
  position: relative;
  background: linear-gradient(180deg, #131b2e 0%, #0c111d 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2.25rem 2rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 50px -10px rgba(124, 58, 237, 0.3);
  overflow: hidden;
  animation: celebPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.celebration-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(59, 130, 246, 0.15) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.celebration-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100000;
}

.celebration-icon-box {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.25rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(59, 130, 246, 0.2));
  border: 2px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
  font-size: 2.5rem;
  z-index: 1;
  animation: celebBounce 1s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.celebration-icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(168, 85, 247, 0.35);
  animation: celebSpin 18s linear infinite;
  pointer-events: none;
}

.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(124, 58, 237, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  margin-bottom: 0.85rem;
  z-index: 1;
  position: relative;
}

.celebration-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
  z-index: 1;
  position: relative;
}

.celebration-subtitle {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0 0 1.5rem 0;
  z-index: 1;
  position: relative;
}

.celebration-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
  z-index: 1;
  position: relative;
}

.celebration-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.86rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.celebration-detail-row:last-child {
  border-bottom: none;
}

.celebration-detail-label {
  color: #94a3b8;
}

.celebration-detail-value {
  color: #ffffff;
  font-weight: 700;
}

.celebration-actions {
  display: flex;
  gap: 0.75rem;
  z-index: 1;
  position: relative;
}

.celebration-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.4rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}

.celebration-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.6);
}

.celebration-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.celebration-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@keyframes celebPopIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes celebFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes celebBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

@keyframes celebSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── DIAMOND VIP THEME STUDIO & CONTROLS ───────────────────────── */
#modal-diamond-theme-studio {
  border: none;
  background: transparent;
  padding: 0;
  max-width: 680px;
  width: 95%;
  margin: auto;
}

#modal-diamond-theme-studio::backdrop {
  background: rgba(4, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.diamond-studio-card {
  background: radial-gradient(120% 90% at 50% -10%, rgba(0, 210, 255, 0.28) 0%, rgba(15, 23, 42, 0.98) 40%, rgba(6, 11, 24, 0.99) 100%);
  border: 2px solid rgba(0, 210, 255, 0.75);
  box-shadow: 0 0 50px rgba(0, 210, 255, 0.4), 0 25px 60px rgba(0, 0, 0, 0.95);
  border-radius: 1.5rem;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.diamond-studio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #00d2ff, #ffffff, #3b82f6, #00d2ff);
  background-size: 200% 100%;
  animation: diamondShimmerBar 4s linear infinite;
  z-index: 3;
}

.diamond-swatch-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  padding: 0;
}

.diamond-swatch-btn:hover {
  transform: scale(1.15);
  border-color: #fff;
  box-shadow: 0 0 12px var(--swatch-color, #00d2ff);
}

.diamond-swatch-btn.active {
  border-color: #fff;
  transform: scale(1.18);
  box-shadow: 0 0 15px var(--swatch-color, #00d2ff);
}

/* ── TEMPLATE DESCRIPTION & VERIFIED CREDENTIALS PANE ─────────── */
.template-desc-markdown {
  color: hsl(var(--foreground));
  line-height: 1.7;
}

.template-desc-markdown h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.85rem 0;
  color: #fff;
}

.template-desc-markdown h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.5rem 0 0.65rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-color);
  color: #38bdf8;
}

.template-desc-markdown h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.15rem 0 0.4rem 0;
  color: #e2e8f0;
}

.template-desc-markdown p {
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: #cbd5e1;
}

.template-desc-markdown ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.template-desc-markdown li {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.credential-card-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin: 0.85rem 0;
}

.credential-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.credential-field-row:last-child {
  border-bottom: none;
}


