/* ============================================================
   AI Tag Generator Theme — "Faizan Dark" (Light/Dark Mode)
   Author: Faizan Afzal
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Dark Mode (default) ── */
:root {
  --aitag-font:          'Inter', system-ui, sans-serif;
  --aitag-bg:            #0a0e1a;
  --aitag-card-bg:       #111827;
  --aitag-surface:       #111827;
  --aitag-surface2:      #0d1220;
  --aitag-surface3:      rgba(255,255,255,0.05);
  --aitag-border:        rgba(255,255,255,0.08);
  --aitag-border-hover:  rgba(139,92,246,0.5);
  --aitag-text:          #f1f5f9;
  --aitag-text-2:        #94a3b8;
  --aitag-text-3:        #475569;
  --aitag-accent:        #8b5cf6;
  --aitag-accent-hover:  #7c3aed;
  --aitag-accent-light:  #a78bfa;
  --aitag-accent-bg:     rgba(139,92,246,0.1);
  --aitag-accent-glow:   rgba(139,92,246,0.3);
  --aitag-cyan:          #06b6d4;
  --aitag-green:         #10b981;
  --aitag-green-bg:      rgba(16,185,129,0.1);
  --aitag-radius-lg:     16px;
  --aitag-radius-md:     10px;
  --aitag-radius-sm:     6px;
  --aitag-ease:          cubic-bezier(0.4,0,0.2,1);
  --aitag-shadow-sm:     0 1px 3px rgba(0,0,0,0.4);
  --aitag-shadow-md:     0 4px 16px rgba(0,0,0,0.5);
  --aitag-shadow-lg:     0 20px 40px rgba(0,0,0,0.6);
  --aitag-input-bg:      #0d1220;
  --aitag-hero-bg:       linear-gradient(135deg, #0d1220 0%, #13103a 50%, #0d1a2e 100%);
  --aitag-hero-glow:     radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%);
  --aitag-chip-bg:       rgba(255,255,255,0.04);
  --aitag-chip-hover:    rgba(139,92,246,0.15);
  --aitag-list-bg:       rgba(255,255,255,0.03);
  --aitag-list-hover:    rgba(139,92,246,0.08);
  --aitag-toolbar-bg:    rgba(255,255,255,0.04);
  --aitag-toolbar-hover: rgba(255,255,255,0.08);
  --aitag-toast-bg:      rgba(17,24,39,0.95);
  --aitag-empty-icon-bg: rgba(255,255,255,0.04);
  --aitag-pill-bg:       rgba(255,255,255,0.05);
  --aitag-pill-border:   rgba(255,255,255,0.1);
  --aitag-step-bg:       rgba(255,255,255,0.03);
  --aitag-card-bg2:      rgba(255,255,255,0.03);
  --aitag-faq-bg:        rgba(255,255,255,0.03);
  --aitag-loader-bg:     rgba(255,255,255,0.03);
  --aitag-loader-bar:    rgba(255,255,255,0.06);
  --aitag-select-arrow:  %2394a3b8;
}

/* ── Light Mode ── */
[data-theme="light"] {
  --aitag-bg:            #f1f5f9;
  --aitag-card-bg:       #ffffff;
  --aitag-surface:       #ffffff;
  --aitag-surface2:      #f8fafc;
  --aitag-surface3:      rgba(0,0,0,0.04);
  --aitag-border:        rgba(0,0,0,0.08);
  --aitag-border-hover:  rgba(124,58,237,0.5);
  --aitag-text:          #0f172a;
  --aitag-text-2:        #475569;
  --aitag-text-3:        #94a3b8;
  --aitag-accent:        #7c3aed;
  --aitag-accent-hover:  #6d28d9;
  --aitag-accent-light:  #6d28d9;
  --aitag-accent-bg:     rgba(124,58,237,0.08);
  --aitag-accent-glow:   rgba(124,58,237,0.2);
  --aitag-cyan:          #0891b2;
  --aitag-green:         #059669;
  --aitag-green-bg:      rgba(5,150,105,0.08);
  --aitag-shadow-sm:     0 1px 3px rgba(0,0,0,0.06);
  --aitag-shadow-md:     0 4px 16px rgba(0,0,0,0.08);
  --aitag-shadow-lg:     0 20px 40px rgba(0,0,0,0.1);
  --aitag-input-bg:      #ffffff;
  --aitag-hero-bg:       linear-gradient(135deg, #f8fafc 0%, #ede9fe 50%, #e0f2fe 100%);
  --aitag-hero-glow:     radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 70%);
  --aitag-chip-bg:       rgba(0,0,0,0.03);
  --aitag-chip-hover:    rgba(124,58,237,0.1);
  --aitag-list-bg:       rgba(0,0,0,0.02);
  --aitag-list-hover:    rgba(124,58,237,0.06);
  --aitag-toolbar-bg:    rgba(0,0,0,0.03);
  --aitag-toolbar-hover: rgba(0,0,0,0.06);
  --aitag-toast-bg:      rgba(255,255,255,0.95);
  --aitag-empty-icon-bg: rgba(0,0,0,0.04);
  --aitag-pill-bg:       rgba(0,0,0,0.03);
  --aitag-pill-border:   rgba(0,0,0,0.08);
  --aitag-step-bg:       rgba(0,0,0,0.02);
  --aitag-card-bg2:      rgba(0,0,0,0.02);
  --aitag-faq-bg:        rgba(0,0,0,0.02);
  --aitag-loader-bg:     rgba(0,0,0,0.02);
  --aitag-loader-bar:    rgba(0,0,0,0.06);
  --aitag-select-arrow:  %23475569;
}

/* ── Base ── */
.aitag-app {
  font-family: var(--aitag-font);
  background: var(--aitag-bg);
  color: var(--aitag-text);
  overflow: hidden;
  transition: background .3s var(--aitag-ease), color .3s var(--aitag-ease);
  position: relative;
}

/* ── Hero ── */
.aitag-hero {
  background: var(--aitag-hero-bg);
  border-bottom: 1px solid var(--aitag-border);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--aitag-ease);
}
.aitag-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--aitag-hero-glow);
  pointer-events: none;
}
.aitag-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.3), transparent);
}
[data-theme="light"] .aitag-hero::after {
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.2), transparent);
}
.aitag-hero__glow {
  background: radial-gradient(ellipse, rgba(139,92,246,0.2) 0%, transparent 70%);
}
[data-theme="light"] .aitag-hero__glow {
  background: radial-gradient(ellipse, rgba(124,58,237,0.1) 0%, transparent 70%);
}
.aitag-hero__eyebrow {
  background: rgba(139,92,246,0.12);
  border-color: rgba(139,92,246,0.25);
  color: var(--aitag-accent-light);
  transition: all .3s var(--aitag-ease);
}
[data-theme="light"] .aitag-hero__eyebrow {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}
.aitag-hero__h1 {
  background: linear-gradient(135deg, var(--aitag-text) 0%, var(--aitag-accent-light) 50%, var(--aitag-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Tabs ── */
.aitag-tabs-wrapper {
  background: var(--aitag-surface2);
  border-bottom: 1px solid var(--aitag-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .3s var(--aitag-ease);
  position: relative;
}
.aitag-tabs-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), transparent);
}
[data-theme="light"] .aitag-tabs-wrapper::after {
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
}
.aitag-tab {
  color: var(--aitag-text-2);
  border-radius: var(--aitag-radius-md);
  transition: all .2s var(--aitag-ease);
  position: relative;
  overflow: hidden;
}
.aitag-tab::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), transparent);
  opacity: 0;
  transition: opacity .2s var(--aitag-ease);
}
.aitag-tab:hover::before {
  opacity: 1;
}
.aitag-tab:hover {
  color: var(--aitag-text);
  background: var(--aitag-surface3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.aitag-tab.is-active {
  color: var(--aitag-accent-light);
  background: var(--aitag-accent-bg);
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 0 16px rgba(139,92,246,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
}
.aitag-tab.is-active::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(139,92,246,0.15), transparent);
}
[data-theme="light"] .aitag-tab.is-active {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 0 16px rgba(124,58,237,0.12), inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ── Panels ── */
.aitag-panels { 
  background: var(--aitag-card-bg); 
  transition: background .3s var(--aitag-ease);
  position: relative;
}
.aitag-form-col {
  background: var(--aitag-card-bg);
  border-right: 1px solid var(--aitag-border);
  transition: background .3s var(--aitag-ease);
  position: relative;
}
.aitag-form-col::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(139,92,246,0.15), transparent);
}
[data-theme="light"] .aitag-form-col::after {
  background: linear-gradient(180deg, transparent, rgba(124,58,237,0.1), transparent);
}
.aitag-tool-header {
  background: var(--aitag-surface2);
  border-bottom: 1px solid var(--aitag-border);
  transition: background .3s var(--aitag-ease);
  position: relative;
  overflow: hidden;
}
.aitag-tool-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.2), transparent);
}
[data-theme="light"] .aitag-tool-header::before {
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.15), transparent);
}
.aitag-tool-header__icon {
  background: var(--aitag-accent-bg);
  border-color: rgba(139,92,246,0.2);
  color: var(--aitag-accent-light);
  transition: all .3s var(--aitag-ease);
  box-shadow: 0 2px 8px rgba(139,92,246,0.1);
}
.aitag-tool-header__icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139,92,246,0.2);
}
[data-theme="light"] .aitag-tool-header__icon {
  border-color: rgba(124,58,237,0.15);
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}
[data-theme="light"] .aitag-tool-header__icon:hover {
  box-shadow: 0 4px 12px rgba(124,58,237,0.15);
}
.aitag-tool-header__name {
  font-weight: 700;
  letter-spacing: -0.01em;
}
.aitag-tool-header__desc {
  line-height: 1.5;
}

/* ── Enhanced Form Fields ── */
.aitag-field {
  position: relative;
}
.aitag-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--aitag-text-2);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.aitag-label::before {
  content: '';
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--aitag-accent);
  opacity: 0.6;
}

.aitag-input,
.aitag-textarea,
.aitag-select {
  background: var(--aitag-input-bg);
  border: 1.5px solid var(--aitag-border);
  color: var(--aitag-text);
  border-radius: var(--aitag-radius-md);
  transition: all .25s var(--aitag-ease);
  font-size: 13px;
  padding: 10px 14px;
  width: 100%;
  font-family: var(--aitag-font);
}
.aitag-input::placeholder,
.aitag-textarea::placeholder { 
  color: var(--aitag-text-3);
  font-weight: 400;
}
.aitag-input:hover,
.aitag-textarea:hover,
.aitag-select:hover {
  border-color: var(--aitag-text-3);
  background: var(--aitag-surface3);
}
.aitag-input:focus,
.aitag-textarea:focus,
.aitag-select:focus {
  border-color: var(--aitag-accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15), 0 2px 8px rgba(139,92,246,0.1);
  background: var(--aitag-input-bg);
  outline: none;
  transform: translateY(-1px);
}
[data-theme="light"] .aitag-input:focus,
[data-theme="light"] .aitag-textarea:focus,
[data-theme="light"] .aitag-select:focus {
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12), 0 2px 8px rgba(124,58,237,0.08);
  background: #fff;
}

/* ── Custom Select Dropdown ── */
.aitag-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 8px !important;
  padding-right: 40px;
  cursor: pointer;
  position: relative;
}
.aitag-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.aitag-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238b5cf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="light"] .aitag-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
[data-theme="light"] .aitag-select:hover,
[data-theme="light"] .aitag-select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Select dropdown options styling */
.aitag-select option {
  background: var(--aitag-card-bg);
  color: var(--aitag-text);
  padding: 10px 14px;
  font-size: 13px;
}
.aitag-select option:hover,
.aitag-select option:focus {
  background: var(--aitag-accent-bg);
  color: var(--aitag-accent);
}
.aitag-select option:checked {
  background: var(--aitag-accent);
  color: #fff;
}

/* ── Premium Generate Button ── */
.aitag-btn-generate {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #06b6d4 100%);
  background-size: 100% 100%;
  border: none;
  border-radius: var(--aitag-radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  box-shadow: 0 4px 20px rgba(139,92,246,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  transition: all .3s var(--aitag-ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  letter-spacing: 0.02em;
  isolation: isolate;
}
/* GPU-composited gradient shift via opacity fade (avoids non-composited animation warning) */
.aitag-btn-generate::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left .6s var(--aitag-ease);
  z-index: 1;
}
.aitag-btn-generate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #7c3aed 100%);
  opacity: 0;
  transition: opacity .6s var(--aitag-ease);
  z-index: 0;
  border-radius: var(--aitag-radius-md);
}
.aitag-btn-generate > * { position: relative; z-index: 2; }
.aitag-btn-generate:hover::before { left: 100%; }
.aitag-btn-generate:hover::after { opacity: 1; }
.aitag-btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.aitag-btn-generate:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 12px rgba(139,92,246,0.3);
}
.aitag-btn-generate:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(139,92,246,0.2);
}
[data-theme="light"] .aitag-btn-generate {
  box-shadow: 0 4px 20px rgba(124,58,237,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
[data-theme="light"] .aitag-btn-generate:hover {
  box-shadow: 0 8px 32px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* Button text and spinner alignment */
.aitag-btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aitag-btn-text svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.aitag-spinner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.aitag-spinner[hidden] {
  display: none !important;
}
.aitag-spinner svg {
  width: 18px;
  height: 18px;
  animation: aitag-spin 1s linear infinite;
}
@keyframes aitag-spin {
  to { transform: rotate(360deg); }
}

/* ── Results Column ── */
.aitag-results-col { 
  background: var(--aitag-surface2); 
  transition: background .3s var(--aitag-ease);
  position: relative;
}
.aitag-results-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.1), transparent);
}
[data-theme="light"] .aitag-results-col::before {
  background: linear-gradient(90deg, transparent, rgba(124,58,237,0.08), transparent);
}
.aitag-results-inner {
  position: relative;
}
.aitag-results-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.08), transparent);
  opacity: 0;
  transition: opacity .3s var(--aitag-ease);
}
.aitag-results-inner.has-results::before {
  opacity: 1;
}

/* ── Chips ── */
.aitag-chip {
  background: var(--aitag-chip-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-2);
  border-radius: 100px;
  transition: all .2s var(--aitag-ease);
  cursor: pointer;
  position: relative;
}
.aitag-chip:hover {
  background: var(--aitag-chip-hover);
  border-color: rgba(139,92,246,0.4);
  color: var(--aitag-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.2);
}
.aitag-chip:active {
  transform: translateY(0) scale(0.97);
}
.aitag-chip.copied {
  background: var(--aitag-green-bg);
  border-color: var(--aitag-green);
  color: var(--aitag-green);
  animation: chipCopied .4s var(--aitag-ease);
}
@keyframes chipCopied {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
[data-theme="light"] .aitag-chip:hover {
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 4px 12px rgba(124,58,237,0.12);
}

/* ── List items ── */
.aitag-list__item {
  background: var(--aitag-list-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-2);
  border-radius: var(--aitag-radius-md);
  transition: all .2s var(--aitag-ease);
  cursor: pointer;
}
.aitag-list__item:hover {
  background: var(--aitag-list-hover);
  border-color: rgba(139,92,246,0.35);
  color: var(--aitag-text);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(139,92,246,0.1);
}
.aitag-list__item::before { color: var(--aitag-accent-light); transition: color .2s var(--aitag-ease); }
.aitag-list__item:hover::before { color: var(--aitag-accent); }
[data-theme="light"] .aitag-list__item:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 2px 8px rgba(124,58,237,0.08);
}

/* ── Text result ── */
.aitag-text-result {
  background: var(--aitag-list-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-2);
  border-radius: var(--aitag-radius-md);
  transition: all .2s var(--aitag-ease);
}
.aitag-text-result:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 2px 8px rgba(139,92,246,0.08);
}
[data-theme="light"] .aitag-text-result:hover {
  border-color: rgba(124,58,237,0.3);
}

/* ── Toolbar buttons ── */
.aitag-toolbar-btn {
  background: var(--aitag-toolbar-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-2);
  border-radius: var(--aitag-radius-sm);
  transition: all .2s var(--aitag-ease);
  cursor: pointer;
}
.aitag-toolbar-btn:hover {
  background: var(--aitag-toolbar-hover);
  border-color: var(--aitag-border-hover);
  color: var(--aitag-text);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.aitag-toolbar-btn:active { transform: translateY(0) scale(0.95); }
.aitag-toolbar-btn.--accent {
  background: var(--aitag-accent-bg);
  border-color: rgba(139,92,246,0.3);
  color: var(--aitag-accent-light);
}
.aitag-toolbar-btn.--accent:hover {
  background: var(--aitag-accent);
  border-color: var(--aitag-accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(139,92,246,0.3);
}
[data-theme="light"] .aitag-toolbar-btn.--accent {
  border-color: rgba(124,58,237,0.25);
}
[data-theme="light"] .aitag-toolbar-btn.--accent:hover {
  box-shadow: 0 4px 12px rgba(124,58,237,0.2);
}

/* ── Copy-sec button ── */
.aitag-btn-copy-sec {
  background: var(--aitag-list-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-3);
  transition: all .2s var(--aitag-ease);
  cursor: pointer;
}
.aitag-btn-copy-sec:hover {
  background: var(--aitag-accent-bg);
  border-color: rgba(139,92,246,0.3);
  color: var(--aitag-accent-light);
  transform: translateY(-1px);
}
.aitag-btn-copy-sec:active { transform: translateY(0) scale(0.95); }
[data-theme="light"] .aitag-btn-copy-sec:hover {
  border-color: rgba(124,58,237,0.25);
}

/* ── Labels ── */
.aitag-label { color: var(--aitag-text-2); }
.aitag-section-title { color: var(--aitag-text-2); }
.aitag-section-count {
  background: var(--aitag-accent-bg);
  color: var(--aitag-accent-light);
  transition: all .2s var(--aitag-ease);
}
.aitag-hp-badge {
  background: var(--aitag-accent-bg);
  color: var(--aitag-accent-light);
}

/* ── Loader ── */
.aitag-loader-wrap {
  background: var(--aitag-card-bg);
  border: 1px solid var(--aitag-border);
  transition: background .3s var(--aitag-ease);
}
.aitag-ls {
  background: var(--aitag-loader-bg);
  border: 1px solid var(--aitag-border);
  transition: all .2s var(--aitag-ease);
}
.aitag-ls__text { color: var(--aitag-text-2); }
.aitag-ls__dot { background: var(--aitag-accent); }
.aitag-ring-arc { stroke: var(--aitag-accent); }
.aitag-loader-bar { background: var(--aitag-loader-bar); }
.aitag-loader-bar__fill {
  background: linear-gradient(90deg, var(--aitag-accent), var(--aitag-cyan));
}

/* ── Toast ── */
.aitag-toast {
  background: var(--aitag-toast-bg);
  border: 1px solid rgba(139,92,246,0.3);
  color: var(--aitag-accent-light);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 20px rgba(139,92,246,0.15);
  transition: all .3s var(--aitag-ease);
}
[data-theme="light"] .aitag-toast {
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), 0 0 20px rgba(124,58,237,0.08);
}

/* ── Empty state ── */
.aitag-empty__icon {
  background: var(--aitag-empty-icon-bg);
  border: 1px solid var(--aitag-border);
  color: var(--aitag-text-3);
  transition: all .3s var(--aitag-ease);
}
.aitag-empty__title { color: var(--aitag-text); }
.aitag-empty__sub   { color: var(--aitag-text-2); }

/* ── Hero pills ── */
.aitag-hero__pill {
  background: var(--aitag-pill-bg);
  border: 1px solid var(--aitag-pill-border);
  color: var(--aitag-text-2);
  transition: all .2s var(--aitag-ease);
  cursor: pointer;
}
.aitag-hero__pill:hover {
  border-color: var(--aitag-accent);
  color: var(--aitag-accent-light);
  background: var(--aitag-accent-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,92,246,0.15);
}
[data-theme="light"] .aitag-hero__pill:hover {
  box-shadow: 0 4px 12px rgba(124,58,237,0.1);
}

/* ── HP Steps ── */
.aitag-hp-section { background: var(--aitag-bg); transition: background .3s var(--aitag-ease); }
.aitag-hp-bg-alt  { background: var(--aitag-surface2); transition: background .3s var(--aitag-ease); }
.aitag-hp-showcase { background: var(--aitag-bg); border-top: 1px solid var(--aitag-border); transition: background .3s var(--aitag-ease); }
.aitag-hp-step {
  background: var(--aitag-step-bg);
  border: 1px solid var(--aitag-border);
  transition: all .25s var(--aitag-ease);
}
.aitag-hp-step:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 8px 24px rgba(139,92,246,0.15);
  transform: translateY(-3px);
}
[data-theme="light"] .aitag-hp-step:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 24px rgba(124,58,237,0.08);
}
.aitag-hp-step__icon {
  background: var(--aitag-accent-bg);
  color: var(--aitag-accent-light);
  transition: all .3s var(--aitag-ease);
}
.aitag-hp-step:hover .aitag-hp-step__icon {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(139,92,246,0.2);
}
.aitag-hp-step__number { color: rgba(139,92,246,0.45); opacity: 1; transition: color .3s var(--aitag-ease); }
[data-theme="light"] .aitag-hp-step__number { color: rgba(124,58,237,0.45); }
.aitag-hp-step__title  { color: var(--aitag-text); }
.aitag-hp-step__desc   { color: var(--aitag-text-2); }

/* ── HP Tool Cards ── */
.aitag-hp-tool-card {
  background: var(--aitag-card-bg2);
  border: 1px solid var(--aitag-border);
  transition: all .25s var(--aitag-ease);
  cursor: pointer;
}
.aitag-hp-tool-card:hover {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 8px 24px rgba(139,92,246,0.12);
  transform: translateY(-3px);
}
[data-theme="light"] .aitag-hp-tool-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 8px 24px rgba(124,58,237,0.08);
}
.aitag-hp-tool-card__icon {
  background: var(--aitag-accent-bg);
  color: var(--aitag-accent-light);
  transition: all .3s var(--aitag-ease);
}
.aitag-hp-tool-card:hover .aitag-hp-tool-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 16px rgba(139,92,246,0.2);
}
.aitag-hp-tool-card__title { color: var(--aitag-text); }
.aitag-hp-tool-card__desc  { color: var(--aitag-text-2); }
.aitag-hp-tool-card__btn   {
  color: var(--aitag-accent-light);
  transition: all .2s var(--aitag-ease);
}
.aitag-hp-tool-card:hover .aitag-hp-tool-card__btn {
  transform: translateX(4px);
}

/* ── HP Blog Cards ── */
.aitag-hp-blog-card {
  background: var(--aitag-card-bg2);
  border: 1px solid var(--aitag-border);
  transition: all .25s var(--aitag-ease);
}
.aitag-hp-blog-card:hover {
  border-color: rgba(139,92,246,0.35);
  box-shadow: 0 8px 24px rgba(139,92,246,0.1);
  transform: translateY(-3px);
}
[data-theme="light"] .aitag-hp-blog-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 8px 24px rgba(124,58,237,0.06);
}
.aitag-hp-blog-card__media { background: rgba(139,92,246,0.08); transition: background .3s var(--aitag-ease); }
[data-theme="light"] .aitag-hp-blog-card__media { background: rgba(124,58,237,0.05); }
.aitag-hp-blog-card__badge {
  background: var(--aitag-toast-bg);
  color: var(--aitag-text);
  transition: all .2s var(--aitag-ease);
}
.aitag-hp-blog-card__date    { color: var(--aitag-text-3); }
.aitag-hp-blog-card__title a { color: var(--aitag-text); transition: color .2s var(--aitag-ease); }
.aitag-hp-blog-card__title a:hover { color: var(--aitag-accent-light); }
.aitag-hp-blog-card__excerpt { color: var(--aitag-text-2); }
.aitag-hp-blog-card__link    {
  color: var(--aitag-accent-light);
  transition: all .2s var(--aitag-ease);
}
.aitag-hp-blog-card:hover .aitag-hp-blog-card__link {
  transform: translateX(4px);
}

/* ── FAQ ── */
.aitag-hp-faq-item {
  background: var(--aitag-faq-bg);
  border: 1px solid var(--aitag-border);
  transition: all .25s var(--aitag-ease);
}
.aitag-hp-faq-item:hover {
  border-color: rgba(139,92,246,0.2);
}
.aitag-hp-faq-item[open] {
  border-color: rgba(139,92,246,0.4);
  box-shadow: 0 4px 16px rgba(139,92,246,0.08);
}
[data-theme="light"] .aitag-hp-faq-item[open] {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 4px 16px rgba(124,58,237,0.05);
}
.aitag-hp-faq-question {
  color: var(--aitag-text);
  cursor: pointer;
  transition: color .2s var(--aitag-ease);
}
.aitag-hp-faq-question:hover { color: var(--aitag-accent-light); }
.aitag-hp-faq-answer   { color: var(--aitag-text-2); }

/* ── HP Headers ── */
.aitag-hp-title    { color: var(--aitag-text); }
.aitag-hp-subtitle { color: var(--aitag-text-2); }

/* ── Smooth theme transition ── */
.aitag-app,
.aitag-app *:not(svg):not(path):not(circle):not(rect):not(line):not(polyline):not(polygon) {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: .3s;
  transition-timing-function: var(--aitag-ease);
}

/* ── Global Select Fix ── */
select.aitag-select,
.aitag-select {
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 8px !important;
}

/* Additional fix for select dropdown arrow */
.aitag-select::-ms-expand {
  display: none;
}
.aitag-select::-webkit-select-arrow {
  display: none;
}
.aitag-select::-moz-select-arrow {
  display: none;
}
