/* ============================================================
   Munda AI Studio – Global Stylesheet
   Dark Futuristic / Glassmorphism / Mobile-first
   Font Family: Gayathri
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Gayathri:wght@100;400;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --font-alternate: 'Gayathri', sans-serif;
  --font-sans: 'Gayathri', sans-serif;
  --font-global: 'Gayathri', sans-serif;
  --font-button: 'Plus Jakarta Sans', sans-serif;
  --brand:       #10b981;
  --brand-light: #34d399;
  --brand-dark:  #059669;
  --cyan:        #00d49f;
  --purple:      #10b981;
  --accent-blue: #00d49f;
  --accent-mint: #10b981;
  --accent-rose: #f43f5e;
  --dark-0:      #08090d;
  --dark-1:      #0d0f17;
  --dark-2:      #121522;
  --dark-3:      #161a29;
  --dark-4:      #1c2032;
  --dark-5:      #24293e;
  --dark-6:      #303650;
  --glass-bg:    rgba(255,255,255,0.03);
  --glass-border:transparent;
  --glass-blur:  blur(20px);
  --radius:      16px;
  --radius-lg:   24px;
  --radius-xl:   32px;
  --transition:  all 0.22s cubic-bezier(0.4,0,0.2,1);
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Global Typography: Gayathri for text, titles, content */
html, body, textarea, p, h1, h2, h3, h4, h5, h6, label, .font-poppins, .font-inter, .font-sans, .font-mono {
  font-family: 'Gayathri', sans-serif !important;
}
span:not(button *):not(.btn *):not([role="button"] *):not(.filter-chip-pill *):not(.starter-chip *):not(.status-chip *):not(.badge *):not(.tab *):not(.tab-btn *):not(.clean-tabs *):not(.pill *):not(.pill-btn *):not(.mode-pill-btn *):not(.param-pill *):not(.ratio-btn *):not(.duration-btn *):not(.count-btn *):not(.credit-badge-capsule *):not(.credit-add-pill *):not(.modal-filter-pill *):not(i):not([class*="fa-"]):not([class*="lni"]) {
  font-family: 'Gayathri', sans-serif;
}

/* Interactive UI Controls, Buttons, Tabs & Filter Chips: Precision-centered Plus Jakarta Sans */
button, 
.btn, 
a.btn, 
[role="button"], 
input[type="submit"], 
input[type="button"], 
input[type="reset"], 
.filter-chip-pill, 
.starter-chip, 
.status-chip, 
.pill,
.pill-btn, 
.tab,
.tab-btn, 
.clean-tabs,
.clean-tabs a,
.clean-tabs button,
.mode-pill-btn, 
.param-pill,
.ratio-btn,
.ratio-pill, 
.duration-btn, 
.count-btn,
.gen-btn, 
.badge, 
.topup-btn,
.credit-badge-capsule,
.credit-add-pill,
a[href*="checkout.php"],
.modal-filter-pill,
.modal-model-card,
.plan-chip,
.tag-pill,
select,
option {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -0.01em;
}

button *:not(i):not([class*="fa-"]):not([class*="lni"]),
.btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
a.btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
[role="button"] *:not(i):not([class*="fa-"]):not([class*="lni"]),
.filter-chip-pill *:not(i):not([class*="fa-"]):not([class*="lni"]),
.starter-chip *:not(i):not([class*="fa-"]):not([class*="lni"]),
.status-chip *:not(i):not([class*="fa-"]):not([class*="lni"]),
.pill *:not(i):not([class*="fa-"]):not([class*="lni"]),
.pill-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.tab *:not(i):not([class*="fa-"]):not([class*="lni"]),
.tab-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.clean-tabs *:not(i):not([class*="fa-"]):not([class*="lni"]),
.mode-pill-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.param-pill *:not(i):not([class*="fa-"]):not([class*="lni"]),
.ratio-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.duration-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.count-btn *:not(i):not([class*="fa-"]):not([class*="lni"]),
.credit-badge-capsule *:not(i):not([class*="fa-"]):not([class*="lni"]),
.credit-add-pill *:not(i):not([class*="fa-"]):not([class*="lni"]),
a[href*="checkout.php"] *:not(i):not([class*="fa-"]):not([class*="lni"]),
.modal-filter-pill *:not(i):not([class*="fa-"]):not([class*="lni"]) {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  letter-spacing: -0.01em;
}

/* Bulletproof Icon Typography: NEVER allow typography rules to override icons */
i[class*="fa-"], 
i[class*="fa"], 
i[class*="lni"], 
.fa, 
.fas, 
.far, 
.fal, 
.fad, 
.fa-solid, 
.fa-regular, 
.fa-brands,
button i,
.btn i,
a i,
span i {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", "LineIcons", sans-serif !important;
}
.fa-brands, i.fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
}

/* ── Credit Badge Capsule & Add Credits Pill (Centering & Zero-drift) ── */
.credit-badge-capsule {
  display: inline-flex !important;
  align-items: center !important;
  vertical-align: middle !important;
  line-height: 1.2 !important;
}

.credit-add-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
  gap: 5px !important;
  padding: 4px 10px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.mode-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

/* ── Ensure all icon fonts retain their glyph font families ── */
i, [class^="fa-"], [class*=" fa-"], .fa, .fas, .far, .fab, .fa-solid, .fa-regular, .fa-brands, .lni, [class^="lni-"] {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", LineIcons !important;
  font-style: normal;
}
.fa-brands, [class*=" fa-brands"] {
  font-family: "Font Awesome 6 Brands" !important;
  font-style: normal;
}

body {
  background-color: var(--dark-0);
  color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Safe area for iPhone notch */
.safe-area-pb { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-1); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* ── Text Gradients ────────────────────────────────────────── */
.text-gradient-brand {
  background: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 50%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Ultra-Clean Modern Cards (Reference UI Style) ────────── */
.clean-card {
  background: var(--dark-2);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.clean-card:hover {
  background: #151928;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.clean-card-selected {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 1px #10b981, 0 10px 30px rgba(16,185,129,0.15) !important;
}

/* ── Modern Pill Badges & Chips (Reference UI Style) ──────── */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.status-chip-paid {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
}
.status-chip-unpaid {
  background: rgba(244, 63, 94, 0.12);
  color: #fb7185;
}
.status-chip-active {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.status-chip-neutral {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* Trend percentage badges */
.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.trend-pill-up {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.trend-pill-down {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

/* Metric capsule (Image 1 top bar) */
.metric-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  transition: var(--transition);
}
.metric-capsule:hover {
  background: rgba(255,255,255,0.06);
}
.metric-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #e2e8f0;
  font-size: 13px;
  flex-shrink: 0;
}

/* Filter Chip Pill (Image 2 style) */
.filter-chip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.filter-chip-pill * {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}
.filter-chip-pill:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}
.filter-chip-pill.active {
  background: #10b981;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.filter-chip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255,255,255,0.12);
  color: inherit;
}
.filter-chip-pill.active .filter-chip-count {
  background: rgba(0,0,0,0.25);
  color: #ffffff;
}

/* Clean Underline Tab Navigation (Image 2) */
.clean-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.clean-tab-link {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  padding: 8px 2px 10px 2px;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.clean-tab-link:hover {
  color: #ffffff;
}
.clean-tab-link.active {
  color: #ffffff;
}
.clean-tab-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #10b981;
  border-radius: 999px;
}

/* ── Modern Glassmorphism (Soft Tone without Harsh Borders) ─ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.glass-dark {
  background: rgba(14,17,25,0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}
.glass-hover {
  transition: var(--transition);
}
.glass-hover:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

/* ── Glow Effects (Teal Green Only) ─────────────────────────── */
.glow-brand  { box-shadow: 0 0 30px rgba(16,185,129,0.3); }
.glow-cyan   { box-shadow: 0 0 30px rgba(0,212,159,0.3); }
.glow-purple { box-shadow: 0 0 30px rgba(16,185,129,0.3); }
.glow-blue   { box-shadow: 0 0 30px rgba(16,185,129,0.3); }

/* ── Buttons (Clean Solid Colors, No Gradients) ─────────────── */
button, .btn, [type="button"], [type="submit"], [type="reset"] {
  background-image: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--brand); /* Solid Emerald / Teal Green */
  color: #000000;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16,185,129,0.25);
}
.btn-primary:hover {
  background-color: var(--brand-light);
  color: #000000;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}

.btn-cyan {
  background-color: var(--cyan); /* Solid Teal / Cyan */
  color: #000000;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0,212,159,0.25);
}
.btn-cyan:hover {
  background-color: #34d399;
  color: #000000;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,212,159,0.35);
}

.btn-green,
.btn-blue {
  background-color: #10b981;
  color: #000000;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}
.btn-green:hover,
.btn-blue:hover {
  background-color: #34d399;
  color: #000000;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.4);
}

.btn-pill {
  border-radius: 999px !important;
  padding-left: 20px;
  padding-right: 20px;
}

.btn-outline {
  background-color: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  color: #ffffff;
  background-color: rgba(255,255,255,0.05);
}

.btn-ghost {
  background-color: rgba(255,255,255,0.04);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.05);
}
.btn-ghost:hover {
  background-color: rgba(255,255,255,0.08);
  color: #ffffff;
}

.btn-danger {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}
.btn-danger:hover {
  background-color: #dc2626;
  border-color: #dc2626;
}

.btn-success {
  background-color: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.btn-success:hover {
  background-color: #059669;
  border-color: #059669;
}

.btn-sm { padding: 8px 16px; font-size: 12px; border-radius: 999px; }
.btn-xs { padding: 5px 12px; font-size: 11px; border-radius: 999px; }
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 999px; }
.btn-full { width: 100%; }

/* ── Form Elements ──────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #9ca3af;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-family: 'Gayathri', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.2); }
.form-input:focus {
  border-color: var(--brand);
  background: rgba(16,185,129,0.05);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
}
.form-input.error { border-color: #ef4444; background: rgba(239,68,68,0.05); }
.form-input.success { border-color: #10b981; background: rgba(16,185,129,0.05); }

/* ── Custom Styled Select Dropdowns & Glassmorphic Menu ────────── */
:root {
  color-scheme: dark;
}

select.form-input, select {
  color-scheme: dark !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #161616 !important;
  color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 16px 16px !important;
  padding-right: 40px !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  cursor: pointer;
}

select.form-input option, select option {
  color-scheme: dark !important;
  background-color: #1c1c1e !important;
  color: #ffffff !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
}

select.form-input option:disabled, select option:disabled {
  color: #666666 !important;
  background-color: #141414 !important;
}

select.form-input option:hover, select option:hover,
select.form-input option:focus, select option:focus,
select.form-input option:checked, select option:checked {
  background-color: #10b981 !important;
  color: #000000 !important;
}

/* Custom Dropdown UI Override Component */
.has-open-select {
  z-index: 1000 !important;
  position: relative !important;
}
.custom-select-wrapper {
  position: relative;
  width: 100%;
}
.custom-select-wrapper.open {
  z-index: 1001 !important;
}
.custom-select-trigger {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid transparent;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}
.custom-select-trigger:hover, .custom-select-wrapper.open .custom-select-trigger {
  border-color: #10b981;
  background: rgba(16,185,129,0.12);
  box-shadow: 0 0 0 2px rgba(16,185,129,0.25);
}
.custom-select-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #18181b !important;
  border: 1px solid transparent !important;
  border-radius: 12px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.98), 0 0 0 1px rgba(255,255,255,0.08) !important;
  z-index: 99999 !important;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  display: none;
}
.custom-select-wrapper.open .custom-select-menu {
  display: block;
  animation: selectFadeIn 0.15s ease-out;
}
@keyframes selectFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.custom-select-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #e5e5e5;
  cursor: pointer;
  transition: all 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.custom-select-item:hover {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}
.custom-select-item.selected {
  background: #10b981;
  color: #000000;
  font-weight: 700;
}
.custom-select-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.input-hint { font-size: 11px; margin-top: 5px; padding-left: 2px; }
.input-hint.error   { color: #f87171; }
.input-hint.success { color: #34d399; }
.input-hint.info    { color: #9ca3af; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-brand   { background: rgba(16,185,129,0.15); color: var(--brand); border: 1px solid transparent; }
.badge-cyan    { background: rgba(0,212,159,0.12);  color: var(--cyan);  border: 1px solid transparent; }
.badge-purple  { background: rgba(16,185,129,0.12); color: var(--brand); border: 1px solid transparent; }
.badge-green   { background: rgba(16,185,129,0.15); color: #34d399;      border: 1px solid transparent; }
.badge-red     { background: rgba(239,68,68,0.12);  color: #f87171;      border: 1px solid rgba(239,68,68,0.2); }
.badge-gray    { background: rgba(255,255,255,0.06); color: #9ca3af;     border: 1px solid rgba(255,255,255,0.1); }

/* ── Before/After Comparison Slider ────────────────────────── */
.comparison-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.comparison-before,
.comparison-after {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.comparison-after {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0s;
}
.comparison-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  z-index: 10;
}
.comparison-handle-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--brand), transparent);
  position: absolute;
}
.comparison-handle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(16,185,129,0.5);
  z-index: 1;
  position: relative;
}
.comparison-label {
  position: absolute;
  top: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}
.comparison-label-before {
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: #fff;
}
.comparison-label-after {
  left: 12px;
  background: rgba(16,185,129,0.9);
  color: #000;
}

/* ── Section Styles ─────────────────────────────────────────── */
.section-title {
  font-family: 'Gayathri', sans-serif;
  font-weight: 800;
  line-height: 1.1;
}
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 30px;
  height: 1px;
  background: var(--brand);
  opacity: 0.4;
}

/* ── Tab System ─────────────────────────────────────────────── */
.tab-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  border: none;
  background: none;
}
.tab-btn.active {
  background-color: var(--brand);
  background-image: none !important;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.tab-btn:not(.active):hover { color: #fff; background: rgba(255,255,255,0.06); }

/* ── Progress / Loading Bar ─────────────────────────────────── */
.progress-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.progress-bar-indeterminate .progress-bar-fill {
  width: 40%;
  animation: indeterminate 1.4s ease infinite;
}
@keyframes indeterminate {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast Notifications ─────────────────────────────────────── */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  pointer-events: all;
  animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  transform-origin: top right;
}
.toast.hiding { animation: toastOut 0.3s ease forwards; }
.toast.success { border-color: rgba(34,197,94,0.3); }
.toast.error   { border-color: rgba(239,68,68,0.3); }
.toast.info    { border-color: rgba(0,212,255,0.3); }
@keyframes toastIn  { from { opacity:0; transform: translateX(100%) scale(0.8); } to { opacity:1; transform: translateX(0) scale(1); } }
@keyframes toastOut { from { opacity:1; transform: translateX(0) scale(1); } to { opacity:0; transform: translateX(100%) scale(0.8); } }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes pulse-glow { 0%,100%{box-shadow:0 0 20px rgba(201,168,76,0.2)} 50%{box-shadow:0 0 40px rgba(201,168,76,0.5)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

.anim-float     { animation: float 6s ease-in-out infinite; }
.anim-fade-up   { animation: fadeUp 0.6s ease forwards; }
.anim-fade-in   { animation: fadeIn 0.5s ease forwards; }
.anim-pulse-glow{ animation: pulse-glow 2.5s ease-in-out infinite; }

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--dark-4) 25%, var(--dark-5) 50%, var(--dark-4) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* ── Hero Specific ──────────────────────────────────────────── */
.hero-grid-bg {
  background-image:
    linear-gradient(rgba(201,168,76,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-radial {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.1) 0%, transparent 70%);
}

/* ── Color Swatch ────────────────────────────────────────────── */
.color-swatch {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}
.color-swatch:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.3); }
.color-swatch::after {
  content: attr(data-hex);
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #6b7280;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
}
.color-swatch:hover::after { opacity: 1; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}
.modal-box {
  background: var(--dark-3);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Upload Zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  background: rgba(255,255,255,0.02);
}
.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--brand);
  background: rgba(201,168,76,0.05);
}
.upload-zone.drag-over { border-style: solid; }

/* ── Pricing Cards ───────────────────────────────────────────── */
.pricing-card-popular {
  border-color: rgba(201,168,76,0.4) !important;
  box-shadow: 0 0 40px rgba(201,168,76,0.15), 0 20px 60px rgba(0,0,0,0.3);
  position: relative;
}
.pricing-card-popular::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(201,168,76,0.3), rgba(139,92,246,0.3));
  z-index: -1;
}

/* ── Auth Card ───────────────────────────────────────────────── */
.auth-card {
  background: rgba(22,22,22,0.9);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* ── Range Input ─────────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--brand);
  background-image: none !important;
  cursor: pointer;
  border: 2px solid #000;
  box-shadow: 0 2px 8px rgba(201,168,76,0.4);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Mobile Adjustments ─────────────────────────────────────── */
@media (max-width: 640px) {
  .auth-card { padding: 24px 20px; }
  .btn-lg { padding: 14px 24px; font-size: 14px; }
  .section-title { font-size: clamp(28px, 8vw, 48px) !important; }
}

/* ── Scroll reveal utility ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Gradient border utility ────────────────────────────────── */
.border-gradient {
  position: relative;
  border: none;
}
.border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--brand), var(--purple));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════
   ADMIN PANEL – Modern Sleek Design System
   ════════════════════════════════════════════════════════════ */

/* Admin Layout */
.admin-layout {
  display: flex;
  min-height: calc(100vh - 3.5rem);
  background: #0a0a0f;
}

/* Admin Sidebar */
.admin-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 24px 12px;
  position: sticky;
  top: 3.5rem;
  height: calc(100vh - 3.5rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.admin-sidebar-link:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,0.05);
}
.admin-sidebar-link.active {
  color: #f1f5f9;
  background: rgba(201,168,76,0.12);
  font-weight: 600;
}
.admin-sidebar-link.active i { color: var(--brand); }

.admin-sidebar-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #334155;
  text-transform: uppercase;
  padding: 16px 12px 6px;
}

/* Admin Main Content */
.admin-main {
  flex: 1;
  overflow: hidden;
  padding: 28px 28px 60px;
  min-width: 0;
}

/* Admin Stat Card */
.admin-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 20px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.admin-stat-card:hover {
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.07);
}
.admin-stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.admin-stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
  letter-spacing: -0.5px;
}
.admin-stat-card .stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #475569;
  margin-top: 4px;
}
.admin-stat-card .stat-change {
  font-size: 11px;
  font-weight: 600;
  margin-top: 8px;
}
.stat-up   { color: #34d399; }
.stat-down { color: #f87171; }
.stat-neutral { color: #94a3b8; }

/* Admin Section Panel */
.admin-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  overflow: hidden;
}
.admin-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-panel-body { padding: 20px; }

/* Admin Data Table */
.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.admin-table thead tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table th {
  text-align: left;
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}
.admin-table td {
  padding: 12px 16px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}
.admin-table td.td-strong {
  color: #e2e8f0;
  font-weight: 600;
}

/* Plan Chip */
.plan-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-chip-free    { background: rgba(255,255,255,0.06); color: #94a3b8; }
.plan-chip-basic   { background: rgba(201,168,76,0.12); color: var(--brand); }
.plan-chip-pro     { background: rgba(139,92,246,0.12); color: #a78bfa; }
.plan-chip-admin   { background: rgba(239,68,68,0.12); color: #f87171; }
.plan-chip-active  { background: rgba(16,185,129,0.12); color: #34d399; }
.plan-chip-banned  { background: rgba(239,68,68,0.12); color: #f87171; }

/* Admin Action Button (mini inline) */
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}
.admin-action-btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #94a3b8;
}
.admin-action-btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  color: #e2e8f0;
}
.admin-action-btn-danger {
  background: rgba(239,68,68,0.08);
  color: #f87171;
}
.admin-action-btn-danger:hover {
  background: rgba(239,68,68,0.16);
  color: #fca5a5;
}
.admin-action-btn-brand {
  background: rgba(201,168,76,0.1);
  color: var(--brand);
}
.admin-action-btn-brand:hover {
  background: rgba(201,168,76,0.2);
  color: var(--brand-light);
}

/* Admin Search */
.admin-search {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 14px 8px 36px;
  font-size: 12.5px;
  color: #e2e8f0;
  outline: none;
  transition: var(--transition);
  width: 220px;
}
.admin-search:focus {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
}
.admin-search::placeholder { color: #334155; }

/* Admin Select */
.admin-select {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 8px 30px 8px 12px;
  font-size: 12px;
  color: #94a3b8;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition);
}
.admin-select:focus { border-color: rgba(255,255,255,0.14); }

/* ── Legal Pages ──────────────────────────────────────────────── */
.legal-content h2 {
  font-size: 15px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}
.legal-content p, .legal-content li {
  color: #64748b;
  font-size: 13.5px;
  line-height: 1.75;
}
.legal-content a { color: var(--brand); }
.legal-content a:hover { text-decoration: underline; }

.legal-section {
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ── Verify / Logout Minimal Pages ────────────────────────────── */
.minimal-page-card {
  max-width: 420px;
  width: 100%;
  background: rgba(22,22,22,0.9);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

/* ── Profile Page ─────────────────────────────────────────────── */
.profile-hero-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.profile-section-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 22px;
}
.profile-section-card .section-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-section-card .section-head i { color: var(--brand); }

/* ── Dashboard Page  ──────────────────────────────────────────── */
.dash-action-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  text-decoration: none;
}
.dash-action-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ── Checkout  ───────────────────────────────────────────────── */
.checkout-panel {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 26px;
}
.billing-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: var(--transition);
}
.billing-option-card.selected {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.06);
}
.billing-option-card:hover:not(.selected) {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

/* ── Page Headers (non-hero pages) ───────────────────────────── */
.page-header {
  padding: 48px 0 24px;
}
.page-header-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.page-header-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--brand);
  border-radius: 999px;
}
.page-header-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.page-header-subtitle {
  font-size: 14px;
  color: #475569;
  margin-top: 8px;
  line-height: 1.6;
}

/* ── Admin form inputs ────────────────────────────────────────── */
.admin-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 12.5px;
  color: #e2e8f0;
  outline: none;
  transition: var(--transition);
}
.admin-input:focus {
  border-color: rgba(201,168,76,0.4);
  background: rgba(255,255,255,0.05);
}
.admin-input::placeholder { color: #334155; }

.admin-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

/* ── Mobile admin nav adjustments ────────────────────────────── */
@media (max-width: 768px) {
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px 16px 80px; }
  *, *::before, *::after {
    border-color: transparent !important;
  }
}

/* ── Universal Transparent Borders (Studio, Cards & Modern UI) ── */
.studio-canvas, #creationDock, .clean-card, .glass, .glass-dark, .param-pill, .mode-pill-btn, .template-card {
  border-color: transparent !important;
}


