/* ═══════════════════════════════════════════════════════════
   VibeGreece.com AI — index.css
   Design system: dark premium, glassmorphism, animations
═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0a0a14;
  --bg-2: #0f0f1e;
  --bg-card: rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.08);
  --border-focus: rgba(99,102,241,0.6);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --primary: #6366f1;
  --primary-2: #4f46e5;
  --primary-glow: rgba(99,102,241,0.3);
  --success: #10b981;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.5);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
}
.logo-ai {
  background: linear-gradient(135deg, #a78bfa, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-pills {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-pill {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}
.nav-pill.active {
  background: var(--primary-glow);
  color: #a78bfa;
}
.nav-pill.completed {
  color: var(--success);
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 72px 24px 56px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 500px; height: 300px;
  background: rgba(99,102,241,0.18);
  top: -80px; left: 50%;
  transform: translateX(-60%);
}
.hero-glow-2 {
  width: 300px; height: 200px;
  background: rgba(167,139,250,0.12);
  top: 0; right: 5%;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 18px;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── MAIN LAYOUT ─────────────────────────────────────────── */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 32px;
  align-items: start;
}

/* ─── FORM PANEL ──────────────────────────────────────────── */
.form-panel {
  position: relative;
}

/* step sections */
.step-section {
  display: none;
  animation: stepIn 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.step-section.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.step-number {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px var(--primary-glow);
}
.success-num {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 6px 20px rgba(16,185,129,0.4) !important;
  font-size: 22px !important;
}
.step-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.step-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── FIELDS ──────────────────────────────────────────────── */
.fields { display: flex; flex-direction: column; gap: 20px; }

.field-group { display: flex; flex-direction: column; gap: 7px; }
.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  margin-left: auto;
  transition: opacity var(--transition);
}
.field-link:hover { opacity: 0.8; }

input[type="text"],
input[type="url"],
input[type="password"],
textarea,
select {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--border-focus);
  background: rgba(99,102,241,0.06);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

select {
  cursor: pointer;
  appearance: none;
  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='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
select option { background: #1a1a2e; color: var(--text); }

textarea { resize: vertical; line-height: 1.6; min-height: 100px; }

.field-hint {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.label-badge {
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(99,102,241,0.2);
  color: #a78bfa;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* input with icon */
.input-with-icon { position: relative; }
.input-with-icon input { padding-right: 44px; }
.toggle-visibility {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition);
}
.toggle-visibility:hover { color: var(--text); }

/* Info box */
.info-box {
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.info-box svg { flex-shrink: 0; margin-top: 1px; color: #a78bfa; }
.info-box code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}

/* Suggestions grid */
.suggestions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


/* Range sliders */
.range-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  cursor: pointer;
  border: none;
  padding: 0;
  outline: none;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  cursor: pointer;
  box-shadow: 0 2px 8px var(--primary-glow);
  transition: transform var(--transition);
}
.range-input::-webkit-slider-thumb:hover { transform: scale(1.2); }
.range-val {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(99,102,241,0.15);
  padding: 2px 8px;
  border-radius: 4px;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Toggle switch */
.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.toggle-info { flex: 1; }
.toggle-label { font-size: 13px; font-weight: 600; }
.toggle-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.toggle-switch { position: relative; display: flex; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  width: 44px; height: 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
  display: block;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  top: 3px; left: 3px;
  transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ─── THEME PRESETS ───────────────────────────────────────── */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
}
.theme-card:hover { border-color: rgba(99,102,241,0.4); background: var(--bg-card-hover); }
.theme-card.active { border-color: var(--primary); color: #a78bfa; background: rgba(99,102,241,0.1); }
.theme-swatch {
  width: 32px; height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Color pickers */
.color-row { display: flex; gap: 8px; align-items: center; }
.color-input {
  width: 44px !important; height: 38px;
  padding: 3px !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  flex-shrink: 0;
}
.color-hex { font-family: 'Courier New', monospace; font-size: 13px; }

/* Position toggle */
.position-toggle, .lang-mode-toggle {
  display: flex;
  gap: 6px;
}
.pos-btn, .lang-mode-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  font-family: var(--font);
}
.pos-btn:hover, .lang-mode-btn:hover { background: var(--bg-card-hover); }
.pos-btn.active, .lang-mode-btn.active {
  border-color: var(--primary);
  background: rgba(99,102,241,0.12);
  color: #a78bfa;
}

/* Language grid */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.lang-btn {
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  font-family: var(--font);
  text-align: center;
}
.lang-btn:hover { background: var(--bg-card-hover); }
.lang-btn.active {
  border-color: var(--primary);
  background: rgba(99,102,241,0.12);
  color: #a78bfa;
}

/* ─── STEP ACTIONS ────────────────────────────────────────── */
.step-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  justify-content: flex-end;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px var(--primary-glow);
  font-family: var(--font);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text); }

.btn-generate {
  padding: 13px 28px;
  font-size: 15px;
  box-shadow: 0 6px 24px var(--primary-glow);
  animation: pulse-glow 2.5s infinite;
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 24px rgba(99,102,241,0.4); }
  50% { box-shadow: 0 8px 32px rgba(99,102,241,0.7); }
}

/* ─── CODE OUTPUT ─────────────────────────────────────────── */
.code-block-wrapper {
  background: #0d1117;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}
.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-lang-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(51,171,102,0.2);
  color: #33ab66;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all var(--transition);
  font-family: var(--font);
}
.copy-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.copy-btn.copied { background: rgba(16,185,129,0.2); color: var(--success); border-color: rgba(16,185,129,0.3); }

.code-output {
  padding: 20px;
  font-family: 'Courier New', 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #c9d1d9;
  overflow-x: auto;
  white-space: pre;
  max-height: 320px;
  overflow-y: auto;
}
.code-output::-webkit-scrollbar { width: 4px; height: 4px; }
.code-output::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.install-steps {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.install-steps h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.install-steps ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.install-steps li { font-size: 13.5px; color: var(--text-muted); }
.install-steps code {
  font-family: 'Courier New', monospace;
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  color: #a78bfa;
  font-size: 12px;
}

.wordpress-note {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.wordpress-note strong { color: #60a5fa; }

/* ─── PREVIEW PANEL ───────────────────────────────────────── */
.preview-panel {
  position: sticky;
  top: 80px;
}
.preview-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.preview-refresh-btn {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.preview-refresh-btn:hover { background: var(--bg-card-hover); color: var(--text); transform: rotate(90deg); }

.preview-browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: #0f0f1e;
}
.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f56; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#preview-frame {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: #12121f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal { transform: scale(1); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-card-hover); color: var(--text); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .main-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
  .preview-panel {
    display: none;
  }
}
/* ─── CONNECTION MODE TABS ────────────────────────────────── */
.conn-mode-tabs {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.conn-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}
.conn-tab:hover {
  background: var(--bg-card-hover);
  color: var(--text);
}
.conn-tab.active {
  border-color: rgba(99,102,241,0.5);
  background: rgba(99,102,241,0.08);
  color: var(--text);
}
.conn-badge {
  padding: 2px 7px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.conn-badge.secure {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.3);
}
.conn-badge.warn {
  background: rgba(239,68,68,0.12);
  color: #f87171;
  border: 1px solid rgba(239,68,68,0.25);
}
/* ─── INFO BOXES ─────────────────────────────────────────── */
.info-box {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: 10px;
}
.info-box code {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(0,0,0,0.2);
}
.info-box--green {
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.2);
  color: #86efac;
}
.info-box--red {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.2);
  color: #fca5a5;
}

@media (max-width: 600px) {
  .hero { padding: 40px 16px 32px; }
  .main-layout { padding: 0 16px 60px; }
  .nav-pills { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .suggestions-grid { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── UI LANGUAGE SWITCHER ────────────────────────────────── */
.ui-lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.ui-lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  transition: all var(--transition);
  white-space: nowrap;
}
.ui-lang-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text);
  border-color: rgba(99,102,241,0.4);
}
.ui-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #12121f;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  z-index: 200;
  display: none;
  animation: dropIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.ui-lang-dropdown.open { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ui-lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: background var(--transition), color var(--transition);
}
.ui-lang-option:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.ui-lang-option.active {
  color: #a78bfa;
  background: rgba(99,102,241,0.1);
}
.ui-lang-option + .ui-lang-option {
  border-top: 1px solid var(--border);
}
