/* ═══════════════════════════════════════════
   Velunis — style.css
═══════════════════════════════════════════ */

:root {
  --bg:           #F7F5F0;
  --bg-card:      #ffffff;
  --bg-glass:     rgba(247, 245, 240, 0.75);
  --accent:       #B5611A;
  --accent-soft:  #c8722a;
  --img-accent:   #1a1706;
  --img-soft:     #3a3520;
  --text-dark:    #1a1706;
  --text-mid:     #4A4639;
  --text-soft:    #8A8270;
  --border:       rgba(26, 23, 6, 0.06);
  --border-focus: rgba(181, 97, 26, 0.3);
  
  /* Layered Premium Shadows */
  --shadow-sm:    0 1px 2px rgba(0,0,0,0.02), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg:    0 4px 12px rgba(0,0,0,0.04), 0 16px 40px rgba(0,0,0,0.08);
  --shadow-float: 0 8px 32px rgba(181,97,26,0.12), 0 2px 8px rgba(0,0,0,0.04);

  --sb-open:      280px;
  --sb-closed:    64px;
  
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    24px;
  --radius-pill:  999px;
  
  /* Centered chat layout */
  --chat-max-width: 720px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  line-height: 1.6;
}

/* ══════════════════════════════
   SIDEBAR
══════════════════════════════ */
.sidebar {
  width: var(--sb-open);
  min-height: 100vh;
  background: #B5611A;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 8px 20px;
  gap: 2px;
  flex-shrink: 0;
  z-index: 100;
  overflow: hidden;
  transition: width 0.28s cubic-bezier(.4,0,.2,1);
}

/* Collapsed state */
.sidebar.collapsed {
  width: var(--sb-closed);
}
.sidebar.collapsed .sidebar-btn-label,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .sidebar-section-label,
.sidebar.collapsed .history-panel,
.sidebar.collapsed .history-list,
.sidebar.collapsed .history-search,
.sidebar.collapsed .sidebar-divider,
.sidebar.collapsed .coming-soon-tag {
  display: none;
}
.sidebar.collapsed .sidebar-top-row {
  justify-content: center;
}
.sidebar.collapsed .sidebar-logo {
  display: none;
}

/* top row */
.sidebar-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 10px;
  margin-bottom: 4px;
}
.sidebar-logo {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-logo svg { color: #fff; }

.sidebar-collapse-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.sidebar-collapse-btn:hover { background: rgba(255,255,255,0.15); }

/* nav buttons */
.sidebar-btn {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.1s ease;
  flex-shrink: 0;
  text-align: left;
}
.sidebar-btn:hover { background: rgba(255,255,255,0.15); }
.sidebar-btn:active { transform: scale(0.97); }
.sidebar-btn.active { background: rgba(255,255,255,0.2); }
.sidebar-btn svg { flex-shrink: 0; color: #fff; min-width: 17px; }

.sidebar-btn-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-btn {
  justify-content: center;
  padding: 0;
  width: 36px;
  margin: 0 auto;
}

.sidebar-section-label {
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  padding: 10px 10px 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.sidebar-divider {
  width: calc(100% - 16px);
  margin: 6px 8px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* History panel */
.history-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  overflow: hidden;
  padding: 4px 0 0;
}

.history-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  padding: 6px 10px 4px;
  white-space: nowrap;
}

.history-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 4px 12px;
}
.history-list::-webkit-scrollbar { width: 3px; }
.history-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }

.history-empty {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  padding: 10px 8px;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.history-item:hover { background: rgba(255,255,255,0.12); }
.history-item:active { transform: scale(0.98); }
.history-item.active-chat { background: rgba(255,255,255,0.18); }
/* Show action buttons on hover */
.history-item:hover .history-actions,
.history-item:focus-within .history-actions {
  opacity: 1 !important;
  pointer-events: all !important;
}
.history-item-text {
  font-size: 13px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.history-del {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 16px;
  cursor: pointer;
  padding: 0 2px;
  border-radius: 4px;
  transition: color 0.15s;
}
.history-del:hover { color: #ffcccc; }

/* ══════════════════════════════
   BRAND MARK
══════════════════════════════ */
.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;   /* remove underline when it's an <a> */
  color: inherit;           /* don't go blue                      */
  cursor: pointer;
}
.brand-mark:hover .brand-name {
  color: var(--accent);
  transition: color 0.15s;
}
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.brand-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  user-select: none;
}

/* ══════════════════════════════
   INPUT CARD
══════════════════════════════ */
/* ══════════════════════════════
   INPUT CARD & CHATGPT STYLE INPUT
══════════════════════════════ */
.input-card {
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 8px 12px 8px 12px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  width: 100%;
  max-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.input-card:hover {
  box-shadow: var(--shadow-lg);
}
.input-card.focused,
.input-card:focus-within {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-float);
}
.input-card.img-mode {
  border-color: rgba(124,58,237,0.2);
  box-shadow: 0 8px 30px rgba(124,58,237,0.12), var(--shadow-md);
}

/* ── Plus Button ── */
.plus-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(26, 23, 6, 0.06);
  border: 1px solid rgba(26, 23, 6, 0.10);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, border-color 0.2s ease;
}
.plus-btn:hover {
  background: rgba(26, 23, 6, 0.10);
  color: var(--text-dark);
  border-color: rgba(26, 23, 6, 0.18);
}
.plus-btn.active {
  transform: rotate(45deg);
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* ── BASE: shared by both <input> (landing) and <textarea> (chat) ── */
.main-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 0 0 10px;
}
.main-input::placeholder { color: var(--text-soft); }

/* ── TEXTAREA-SPECIFIC ── */
textarea.main-input,
textarea.chat-input {
  display: block;
  resize: none;
  overflow-y: hidden;
  min-height: 24px;
  max-height: 160px;
  line-height: 1.45;
  transition: height 0.05s ease;
}

.chat-input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.45;
  padding: 6px 0;
  box-sizing: border-box;
}
.chat-input::placeholder { color: var(--text-soft, rgba(255, 255, 255, 0.45)); }

/* ── Input Right Actions ── */
.input-right-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Microphone Button ── */
.mic-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mic-btn:hover {
  background: rgba(26, 23, 6, 0.06);
  color: var(--text-mid);
}
.mic-btn.recording,
.mic-btn.listening {
  color: var(--accent, #B5611A);
  background: rgba(181, 97, 26, 0.12);
  border: 1px solid rgba(181, 97, 26, 0.3);
  animation: pulseSubtle 1.8s infinite ease-in-out;
}
@keyframes pulseSubtle {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 97, 26, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(181, 97, 26, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(181, 97, 26, 0); }
}

/* ── Voice Waveform & Voice Mode (ChatGPT Style) ── */
.input-card.voice-mode-active #user-input,
.input-card.voice-mode-active .char-counter,
.input-card.voice-mode-active #send-btn {
  display: none !important;
}

/* Show waveform when recording */
.input-card.voice-mode-active #voiceWaveformContainer {
  display: flex !important;
}

/* Prevent input card from clipping the waveform bars */
.input-card.voice-mode-active {
  overflow: visible;
  min-height: 52px;
}


.voice-waveform-container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-height: 44px;
  padding: 0 8px;
  overflow: visible;
  position: relative;
  box-sizing: border-box;
}

.voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 44px;
  width: 100%;
  max-width: 520px;
  overflow: visible;
}

.voice-bar {
  width: 3px;
  height: 4px;
  min-height: 3px;
  border-radius: 999px;
  background: var(--accent, #B5611A);
  opacity: 0.9;
  transition: height 0.06s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  flex-shrink: 0;
  will-change: height;
  transform-origin: center;
}

.voice-status {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent, #B5611A);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: pulseVoiceStatus 1.5s infinite ease-in-out;
}
@keyframes pulseVoiceStatus {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.voice-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s ease;
  flex-shrink: 0;
}
.voice-cancel-btn {
  background: rgba(26, 23, 6, 0.07);
  border: 1px solid rgba(26, 23, 6, 0.12);
  color: var(--text-mid, #4A4639);
}
.voice-cancel-btn:hover {
  background: rgba(26, 23, 6, 0.14);
  color: var(--text-dark);
  transform: scale(1.05);
}
.voice-done-btn {
  background: var(--accent, #B5611A);
  border: none;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(181, 97, 26, 0.25);
}
.voice-done-btn:hover {
  background: var(--accent-soft, #c8722a);
  transform: scale(1.06);
}


/* ── Send Button ── */
.send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.send-btn:hover {
  transform: scale(1.05);
  background: var(--accent-soft);
}
.send-btn.stop-mode {
  background: #ef4444;
  color: #ffffff;
}

/* ── Character counter ── (hidden; managed by lower rule) */
.char-counter {
  display: none;
  font-size: 11px;
  color: var(--text-soft);
  pointer-events: none;
  opacity: 0.7;
}


/* ── Attached Files Container ── */
.attached-files-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-height: 120px;
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}
.attached-file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-dark, #ffffff);
  max-width: 200px;
}
.attached-file-chip .file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attached-file-chip .remove-file {
  background: none;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
  display: flex;
  align-items: center;
}
.attached-file-chip .remove-file:hover {
  color: #ef4444;
}

/* ── Expanded Plus Dropdown Panel ── */
/* .chat-input-inner must be position:relative for this anchor to work */
.chat-input-inner {
  position: relative;
  width: 100%;
  max-width: var(--chat-max-width);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plus-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 12px);
  width: auto;
  max-width: 100%;
  background: #ffffff !important;
  color: var(--text-dark, #1a1706) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(181, 97, 26, 0.25) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-radius: 22px !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16), 0 2px 10px rgba(0, 0, 0, 0.08) !important;
  padding: 16px !important;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform-origin: bottom center;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  box-sizing: border-box;
}

.plus-dropdown.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) scale(0.97) !important;
  display: none !important;
}

.plus-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  display: flex !important;
}



/* Plus Dropdown Items & Sections */
.plus-dropdown-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plus-dropdown-options {
  padding: 6px 4px 2px;
  gap: 8px;
}
.plus-dropdown-divider {
  height: 1px;
  background: rgba(26, 23, 6, 0.06);
  margin: 4px 8px;
}
.dropdown-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  padding: 0 4px;
}

/* File Upload Item */
.plus-dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  text-decoration: none;
  box-sizing: border-box;
}
.plus-dropdown-item:hover {
  background: rgba(26, 23, 6, 0.05);
}
.item-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(181, 97, 26, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.item-icon-purple {
  background: rgba(124, 58, 237, 0.10);
  color: #7c3aed;
}
.item-icon-amber {
  background: rgba(181, 97, 26, 0.10);
  color: var(--accent);
}
.item-icon-blue {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
}
.item-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}
.item-subtitle {
  font-size: 12px;
  color: var(--text-soft);
  white-space: nowrap;
}

/* Custom Dimensions Input Controls */
.custom-size-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 4px 0;
}
.custom-size-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}
.size-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(26, 23, 6, 0.04);
  border: 1px solid rgba(26, 23, 6, 0.12);
  border-radius: 10px;
  padding: 3px 8px;
  gap: 4px;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.size-input-wrapper:focus-within {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(181, 97, 26, 0.15);
}
.size-input-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
}
.size-input {
  width: 48px;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  -moz-appearance: textfield;
}
.size-input::-webkit-outer-spin-button,
.size-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.size-unit {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}
.size-x-sep {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}



/* Option Rows & Chips inside Dropdown */
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 4px;
}
.option-label {
  font-size: 12.5px;
  color: var(--text-soft);
  font-weight: 500;
  white-space: nowrap;
}
.param-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.param-chip {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(26, 23, 6, 0.12);
  background: rgba(26, 23, 6, 0.04);
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.param-chip:hover {
  background: rgba(26, 23, 6, 0.08);
  color: var(--text-dark);
}
.param-chip.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* Mode Pills inside Dropdown */
.mode-pills-container {
  display: flex;
  gap: 8px;
  padding: 2px 4px;
}
.mode-pills-container .image-pill,
.mode-pills-container .story-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(26, 23, 6, 0.12);
  background: rgba(26, 23, 6, 0.04);
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-pills-container .image-pill:hover,
.mode-pills-container .story-pill:hover {
  background: rgba(26, 23, 6, 0.08);
  color: var(--text-dark);
}
.mode-pills-container .image-pill.active {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.40);
  color: #7c3aed;
}
.mode-pills-container .story-pill.active {
  background: rgba(181, 97, 26, 0.10);
  border-color: rgba(181, 97, 26, 0.40);
  color: var(--accent);
}

/* Layout Centering in Initial State vs Started State */
.chat-container.is-initial {
  justify-content: center;
}
.chat-container.is-initial #chat-hero {
  flex: 0 0 auto;
  margin-top: auto;
  padding-bottom: 24px;
}
.chat-container.is-initial .chat-input-wrapper {
  margin-bottom: auto;
  padding-bottom: 40px;
}

.chat-container.has-messages #chat-hero {
  display: none !important;
}
.chat-container.has-messages #chat-box {
  flex: 1;
  width: 100%;
  overflow-y: auto;
}


/* Legacy .input-toolbar kept for backward compat — new layout uses .input-right-actions */
.input-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 6px;
  flex-wrap: nowrap;
}


.toolbar-btn {
  width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.toolbar-btn:hover { background: rgba(0,0,0,0.05); color: var(--text-mid); }

/* .story-pill and .image-pill base — detailed styles in .mode-pills-container above */
.story-pill,
.image-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1.5px solid var(--img-accent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--img-accent);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.story-pill:hover,
.image-pill:hover { background: rgba(26,23,6,0.06); }
.story-pill.active,
.image-pill.active {
  background: var(--img-accent);
  color: white;
  border-color: var(--img-accent);
}


/* .send-btn base — main rules defined above in ChatGPT-style input section */
.send-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}
.send-btn.stop-mode {
  background: #ef4444;
  color: #ffffff;
}
.send-btn.stop-mode:hover {
  background: #dc2626;
}
.send-btn:hover { transform: scale(1.05); background: var(--accent-soft); }
.send-btn:active { transform: scale(0.93); }
.send-btn:disabled { background: #bbb; cursor: not-allowed; transform: none; }


/* ══════════════════════════════
   DROPDOWN
══════════════════════════════ */
.dropdown-wrapper { position: relative; flex-shrink: 0; }
.dropdown-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
  animation: fade-up 0.18s ease both;
}
.dropdown-menu.hidden { display: none !important; }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  transition: background 0.13s;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}
.dropdown-item:hover { background: rgba(0,0,0,0.05); }
.dropdown-item + .dropdown-item { border-top: 1px solid var(--border); }
.dropdown-item svg { flex-shrink: 0; color: var(--text-mid); }

/* ══════════════════════════════
   MODE BADGE
══════════════════════════════ */
.mode-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(26,23,6,0.08);
  color: var(--img-accent);
  border: 1px solid rgba(26,23,6,0.2);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
}
.mode-badge.hidden { display: none; }

.img-hint {
  margin-top: 8px;
  padding: 8px 14px;
  background: rgba(26,23,6,0.05);
  border: 1px solid rgba(26,23,6,0.12);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--img-accent);
}
.img-hint.hidden { display: none; }

/* ══════════════════════════════
   LANDING PAGE
══════════════════════════════ */
body.landing-page { overflow: hidden; }

.hero {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
  box-sizing: border-box;
}

/* Warm ambient glow behind the hero text */
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 560px;
  height: 56%;
  background: radial-gradient(ellipse at 50% 30%, rgba(181, 97, 26, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.brand-mark {
  position: relative;
  z-index: 1;
}

.brand-btn {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.brand-btn::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(181, 97, 26, 0.18);
}
.brand-btn:hover { opacity: 0.75; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: var(--chat-max-width);
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 6vw, 68px);
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  min-height: 1.25em;
  user-select: none;
}
.hero-highlight { font-style: italic; color: var(--accent); }
.typing-cursor {
  display: inline-block;
  width: 3px; height: 0.82em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 2px;
  animation: cursor-blink 0.8s steps(1) infinite;
}

.hero-sub {
  font-size: 24px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
  user-select: none;
  animation: fade-up 0.6s 0.1s ease both;
}

.hero-content .input-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  animation: fade-up 0.6s 0.2s ease both;
}

.landing-footer {
  position: absolute;
  bottom: 20px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  z-index: 1;
  user-select: none;
}

/* ══════════════════════════════
   CHAT PAGE
══════════════════════════════ */
body.chat-page { overflow: hidden; }

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  position: relative;
  background: var(--bg);
}

.chat-container {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center all sections horizontally */
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
  min-width: 0;
}

/* ── CENTERED CHAT HEADER ── */
.chat-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  flex-shrink: 0;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.chat-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--chat-max-width);
  padding: 0 20px;
  margin: 0 auto;
  gap: 12px;
  height: 100%;
}

.new-chat-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  background: rgba(0,0,0,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.new-chat-link:hover { 
  background: rgba(0,0,0,0.05); 
  color: var(--text-dark);
  border-color: rgba(0,0,0,0.2);
}

/* ── CENTERED CHAT BOX ── */
#chat-box {
  width: 100%;
  flex: 1;
  overflow-y: auto;
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  scroll-behavior: smooth;
  /* Fading mask at the top of the chat box to blend under header */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 24px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 24px);
}

/* Custom Sleek Scrollbar */
#chat-box::-webkit-scrollbar { 
  width: 6px; 
}
#chat-box::-webkit-scrollbar-track {
  background: transparent;
}
#chat-box::-webkit-scrollbar-thumb { 
  background: rgba(0,0,0,0.15); 
  border-radius: 6px; 
}
#chat-box::-webkit-scrollbar-thumb:hover { 
  background: rgba(0,0,0,0.25); 
}

/* ── MESSAGE ROW ── */
.message-row {
  width: 100%;
  max-width: var(--chat-max-width);
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}
.message-row.user-row { align-items: flex-end; }
.message-row.bot-row { align-items: flex-start; }

/* ── MESSAGE BUBBLE BASE ── */
.message {
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
  animation: msg-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  font-family: var(--font-body);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  position: relative;
  width: fit-content;
  max-width: 80%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.message-content {
  text-align: left;
  margin-bottom: 4px;
  color: inherit;
}

.message-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.timestamp {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 500;
  white-space: nowrap;
}

.message.user {
  background: #1A1706;
  color: #FFFFFF;
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  box-shadow: var(--shadow-md);
}

.message.bot {
  background: var(--bg-card);
  color: var(--text-dark);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.message.bot.error {
  background: #fff8f5;
  color: #8a3000;
  border-color: rgba(181, 97, 26, 0.25);
}
.message-action-btn.retry-msg-btn {
  color: var(--accent) !important;
}
.message-action-btn.retry-msg-btn:hover {
  background: rgba(181, 97, 26, 0.1) !important;
}

/* Image bubbles (Premium flush alignment) */
.message.image-bubble {
  max-width: 480px;
  width: 100%;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  align-self: flex-start;
  position: relative;
}

.final-image-card {
  position: relative;
  border-radius: 22px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  background: #141416;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  cursor: default;
}
.final-image-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 22px;
  cursor: zoom-in;
}

/* Hover Experience Desktop */
@media (hover: hover) {
  .final-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 56px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
  }
  .final-image-card:hover .image-actions {
    opacity: 1;
    pointer-events: auto;
  }
}

/* Action Icons Container */
.image-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Mobile: Always visible, stacked vertically on the right */
@media (max-width: 767px) {
  .image-actions {
    opacity: 1;
    pointer-events: auto;
    flex-direction: column;
    top: auto;
    bottom: 12px;
  }
}

/* Modern Icon Buttons */
.img-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(20, 20, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, border-color 0.15s;
  text-decoration: none;
  padding: 0;
}
.img-icon-btn:hover {
  background: rgba(40, 40, 45, 0.9);
  border-color: rgba(255,255,255,0.25);
}
.img-icon-btn:active {
  transform: scale(0.92);
}
.img-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── TYPEWRITER CURSOR ── */
.tw-cursor {
  display: inline-block;
  color: var(--text-soft);
  animation: tw-blink 0.7s steps(1) infinite;
  font-weight: 300;
  margin-left: 1px;
}

/* ── MESSAGE ACTION BAR ── */
.message-actions {
  position: absolute;
  bottom: -16px;
  right: 12px;
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 10;
}
.message-row:hover .message-actions {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.message-action-btn {
  background: transparent;
  border: none;
  color: var(--text-soft);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.message-action-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
}
.message-action-btn.star-msg-btn.starred {
  color: #f59e0b;
}
.message-action-btn.star-msg-btn.starred svg polygon {
  fill: #f59e0b;
  stroke: #f59e0b;
}
.message.user .message-actions {
  right: auto;
  left: 12px;
}

/* ── LIGHTBOX ── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.4);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-overlay.visible .lightbox-img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

/* ── COPY BUTTON ── */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 10px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.copy-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
  border-color: rgba(0,0,0,0.15);
}
.copy-btn.copied {
  color: var(--accent);
  border-color: var(--accent);
}
.copy-btn svg { flex-shrink: 0; }

/* ── PREMIUM TYPING INDICATOR ── */
.typing-indicator {
  padding: 8px 0 16px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.typing-indicator.hidden { display: none; }

.typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  animation: dotBounce 1.4s ease-in-out infinite;
}
.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.typing-label { 
  font-size: 13px; 
  color: var(--text-soft); 
  font-family: var(--font-body); 
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ── CENTERED INPUT WRAPPER ── */
.chat-input-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 10px 0 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  overflow: visible;
}

.chat-input-inner {
  width: 100%;
  max-width: var(--chat-max-width);
  padding: 0 16px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

.hidden { display: none !important; }

/* ══════════════════════════════
   COMING SOON
══════════════════════════════ */
.coming-soon-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.sidebar-btn.coming-soon-btn {
  opacity: 0.7;
  cursor: default;
}
.sidebar-btn.coming-soon-btn:hover {
  background: rgba(255,255,255,0.08);
}

.dropdown-item-soon {
  opacity: 0.6;
  cursor: default;
  justify-content: flex-start;
}
.dropdown-item-soon:hover {
  background: rgba(0,0,0,0.02);
}
.dropdown-soon-tag {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(181,97,26,0.1);
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.reason-pill.coming-soon-btn {
  opacity: 0.55;
  cursor: default;
}
.reason-pill.coming-soon-btn:hover {
  background: transparent;
}

/* Toast notification */
.cs-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-dark);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}
.cs-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.cs-toast.hidden { display: block; }

/* ══════════════════════════════
   MOBILE-ONLY BASE CLASSES
   (activated in responsive.css)
══════════════════════════════ */

/* Dark overlay behind mobile drawer */
#mobileOverlay {
  display: none; /* shown only on mobile via responsive.css */
}

/* Mobile sticky header */
#mobileHeader {
  display: none; /* shown only on mobile via responsive.css */
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Spacer that pushes content above fixed input on mobile */
.chat-input-spacer {
  display: none; /* shown only on mobile via responsive.css */
}

/* Sidebar open on mobile */
.sidebar.mobile-open {
  /* activated via responsive.css transform rules */
}

/* ══════════════════════════════
   ACCESSIBILITY (A11y)
══════════════════════════════ */
/* Only show focus rings on keyboard navigation, not on mouse click */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
textarea:focus,
textarea:focus-visible,
input:focus,
input:focus-visible,
.chat-input:focus,
.chat-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* The input card uses .focused JS class — no extra focus-within outline needed */
.input-card:focus-within {
  /* handled by JS adding .focused class */
}

/* ══════════════════════════════
   PROMPT SUGGESTIONS (Empty State)
══════════════════════════════ */
.suggestions-grid {
  display: none !important; /* Temporarily hidden per user request */
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: var(--chat-max-width);
  padding: 0 16px;
  margin-top: auto;
  margin-bottom: 8px;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .suggestion-card:nth-child(n+4) {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .suggestions-grid {
    display: flex !important;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    margin-bottom: 8px;
    padding: 0 16px;
    gap: 0;
  }
  .suggestion-card {
    display: none !important;
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
  }
  .suggestion-card.active-mobile {
    display: flex !important;
    animation: fadeSlideIn 0.3s ease both;
  }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.suggestion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeSlideIn 0.3s ease both;
  position: relative;
  overflow: hidden;
  word-wrap: break-word;
  min-width: 0;
}

.suggestion-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(181, 97, 26, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #fdf9f6 100%);
}

.suggestion-card:active {
  transform: translateY(0) scale(0.985);
}

.suggestion-icon {
  font-size: 20px;
  line-height: 1;
  margin-bottom: 2px;
  user-select: none;
}

.suggestion-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-dark);
  font-family: var(--font-body);
}

.suggestion-desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ══════════════════════════════
   SCROLL TO BOTTOM FAB
══════════════════════════════ */
#scrollToBottomBtn {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-mid);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, color 0.2s;
  z-index: 10;
}

#scrollToBottomBtn.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

#scrollToBottomBtn:hover {
  color: var(--text-dark);
  background: #fdfdfd;
}

/* Lightbox Copy Button adjustment */
.lightbox-actions {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
}
.lightbox-btn {
  background: rgba(255,255,255,0.1);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-btn:hover { background: rgba(255,255,255,0.25); }
.lightbox-btn:active { transform: scale(0.92); }
.lightbox-close {
  position: relative;
  top: auto;
  right: auto;
}

/* ══════════════════════════════
   PROMPT PARAMETERS
══════════════════════════════ */
.prompt-parameters {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.prompt-parameters::-webkit-scrollbar { display: none; }

.param-chip {
  background: rgba(0,0,0,0.04);
  border: 1px solid transparent;
  color: var(--text-mid);
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.param-chip:hover {
  background: rgba(0,0,0,0.08);
  color: var(--text-dark);
}
.param-chip.active {
  background: rgba(181, 97, 26, 0.1);
  color: var(--accent);
  border-color: rgba(181, 97, 26, 0.2);
}

.param-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

/* ══════════════════════════════
   CHARACTER COUNTER
══════════════════════════════ */
.char-counter {
  display: none !important;
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  color: var(--text-soft);
  pointer-events: none;
  transition: color 0.2s;
}
.char-counter.limit {
  color: #ef4444;
}

/* ══════════════════════════════
   PROMPT PARAMETERS — image mode only
══════════════════════════════ */
/* Hidden by default on all sizes */
.prompt-parameters {
  display: none;
}
/* Shown when a parent has the image-mode class */
.input-card.image-mode-active .prompt-parameters {
  display: flex;
}

/* ══════════════════════════════
   FAVORITES MODAL
══════════════════════════════ */
.favorites-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.favorites-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.favorites-modal-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.favorites-modal-overlay.open .favorites-modal-panel {
  transform: translateY(0);
}

.favorites-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.favorites-modal-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
}

/* History search */
.history-search {
  padding: 0 16px 8px;
  position: relative;
  display: flex;
  align-items: center;
}
.history-search svg {
  position: absolute;
  left: 28px;
  color: var(--text-soft);
  pointer-events: none;
}
.history-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px 8px 34px;
  font-size: 13px;
  color: var(--text-dark);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.history-search-input::placeholder {
  color: var(--text-soft);
}
.history-search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(181, 97, 26, 0.1);
}

.favorites-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.favorites-modal-close:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-dark);
}

.favorites-list {
  overflow-y: auto;
  padding: 12px 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.favorites-list::-webkit-scrollbar { width: 4px; }
.favorites-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.favorites-empty {
  font-size: 14px;
  color: var(--text-soft);
  text-align: center;
  padding: 32px 0;
  line-height: 1.7;
}

.favorite-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.favorite-item:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card);
}
.favorite-item-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-mid);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.favorite-item-use {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.favorite-item:hover .favorite-item-use {
  opacity: 1;
}
.favorite-item-del {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  opacity: 0;
}
.favorite-item:hover .favorite-item-del {
  opacity: 1;
}
.favorite-item-del:hover {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* ── Star button on user messages ── */
.star-msg-btn.starred svg {
  fill: #f59e0b;
  stroke: #f59e0b;
}

/* ══════════════════════════════
   IMAGE METADATA PANEL
══════════════════════════════ */
.img-meta-panel {
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  display: none;
  animation: fadeSlideIn 0.2s ease both;
}
.img-meta-panel.open { display: block; }
.img-meta-label {
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.img-meta-value {
  color: var(--text-dark);
  word-break: break-word;
}

/* ══════════════════════════════
   DEVELOPER MODE
══════════════════════════════ */
.developer-badge {
  position: fixed;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-md);
  padding: 8px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
  animation: fade-up 0.3s ease;
}
.developer-badge-dot {
  font-size: 10px;
}
.developer-badge-text {
  font-size: 12px;
  font-weight: 600;
  color: #a16207;
  letter-spacing: 0.02em;
}

/* Settings Modal */
.settings-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.settings-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.settings-modal-content {
  background: var(--bg-card);
  width: 90%;
  max-width: 440px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: scale(0.97) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.settings-modal-overlay.visible .settings-modal-content {
  transform: scale(1) translateY(0);
}
.settings-header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.settings-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}
.settings-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-soft);
  padding: 4px;
  border-radius: 50%;
  display: flex;
  transition: background 0.2s, color 0.2s;
}
.settings-close-btn:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
}
.settings-body {
  padding: 24px;
}
.settings-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.settings-row-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.settings-row-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.settings-row-desc {
  font-size: 12px;
  color: var(--text-soft);
}

/* iOS Toggle */
.ios-toggle {
  appearance: none;
  width: 44px;
  height: 24px;
  background: #e5e5ea;
  border-radius: 24px;
  position: relative;
  cursor: pointer;
  outline: none;
  border: none;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.ios-toggle.on {
  background: #34c759;
}
.ios-toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ios-toggle.on .ios-toggle-knob {
  transform: translateX(20px);
}
.ios-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════════════════════
   PREMIUM IMAGE LOADER (REACT)
══════════════════════════════ */
.loader-portal-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 512px;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 0;
}

.animated-placeholder {
  position: absolute;
  inset: 0;
  background-color: #151517;
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* Entrance animation */
  animation: loader-entrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
  z-index: 1;
}

.animated-placeholder.fading-out {
  /* Exit animation (crossfade) */
  animation: loader-exit 0.4s ease-in forwards;
}

.placeholder-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(120, 100, 255, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 30% 70%, rgba(80, 160, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: glow-shift 6s ease-in-out infinite alternate;
}

.placeholder-header {
  position: absolute;
  top: 24px;
  left: 24px;
}

.placeholder-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.placeholder-body {
  position: relative;
  z-index: 2;
}

/* Dot Grid Matrix */
.dot-grid-container {
  display: grid;
  grid-template-columns: repeat(14, 18px);
  grid-template-rows: repeat(12, 18px);
  gap: 0;
}

.loader-dot {
  width: 3px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  margin: auto;
  /* GPU accelerated: only transform + opacity, no layout thrash */
  /* animationDelay is set per-dot via inline style from React */
  animation: dot-wave 2.4s infinite ease-in-out;
  will-change: transform, opacity;
}

.loader-final-image-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 2;
  opacity: 0;
  animation: fade-in-image 0.4s ease-out forwards;
}

@keyframes loader-entrance {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loader-exit {
  0% { opacity: 1; filter: blur(0px); }
  100% { opacity: 0; filter: blur(4px); }
}

@keyframes fade-in-image {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dot-wave {
  0%, 100% {
    opacity: 0.1;
    transform: scale(1);
  }
  30% {
    opacity: 0.05;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(2);
    box-shadow: 0 0 8px 2px rgba(180, 160, 255, 0.35);
  }
  80% {
    opacity: 0.55;
    transform: scale(1.4);
  }
}

@keyframes glow-shift {
  0%   { opacity: 0.6; transform: scale(1) rotate(0deg); }
  100% { opacity: 1;   transform: scale(1.1) rotate(5deg); }
}

/* prefers-reduced-motion: dial back to a simple fade */
@media (prefers-reduced-motion: reduce) {
  .loader-dot {
    animation: dot-fade 2s ease-in-out infinite;
  }
  .animated-placeholder {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes dot-fade {
  0%, 100% { opacity: 0.1; }
  50%       { opacity: 0.7; }
}

/* ═══════════════════════════════════════════
   IMAGE GENERATION LOADER (Canvas Version)
═══════════════════════════════════════════ */
/* Mobile canvas opacity pulse (lightweight alternative to rAF) */
canvas.mobile-pulse-anim {
  animation: ldr-canvas-pulse 2.4s ease-in-out infinite;
}
@keyframes ldr-canvas-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .ldr-shell, .ldr-final, .final-image-card {
    transition: none !important;
    animation: none !important;
  }
  .img-icon-btn {
    transition: background 0.1s !important;
  }
}

/* Focus states for keyboard nav */
.img-icon-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
}

.ldr-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 15%, #232325 0%, #111112 100%);
  box-shadow: 0 12px 56px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
  opacity: 0;
  transform: scale(0.97) translateY(6px);
  transition: opacity 280ms cubic-bezier(.16,1,.3,1), transform 280ms cubic-bezier(.16,1,.3,1);
}
.ldr-shell.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.ldr-shell.exiting {
  opacity: 0;
  transform: scale(1.01);
  filter: blur(5px);
  transition: opacity 420ms ease-in, transform 420ms ease-in, filter 420ms ease-in;
}
.ldr-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 45% at 50% 50%, rgba(110,80,255,.07) 0%, transparent 65%),
              radial-gradient(ellipse 85% 65% at 20% 80%, rgba(60,140,255,.05) 0%, transparent 55%);
  pointer-events: none;
}
.ldr-label {
  position: absolute;
  top: 20px;
  left: 22px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  letter-spacing: .03em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
}
.ldr-cursor {
  display: inline-block;
  width: 2px;
  height: 12px;
  background: rgba(255,255,255,.4);
  border-radius: 1px;
  animation: ldr-blink 1.1s ease-in-out infinite;
}
@keyframes ldr-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ldr-final {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  z-index: 10;
  opacity: 0;
  transform: scale(1.03);
  filter: blur(8px);
  transition: opacity 440ms cubic-bezier(.16,1,.3,1), 
              transform 440ms cubic-bezier(.16,1,.3,1), 
              filter 440ms cubic-bezier(.16,1,.3,1);
}
.ldr-final.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

/* ══════════════════════════════
   AUTH + CREDITS + PREMIUM MVP
══════════════════════════════ */
.lumiq-credits-bar {
  position: fixed;
  top: 14px;
  right: 18px;
  z-index: 1500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lumiq-credits-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text-dark);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lumiq-credits-chip:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.lumiq-credits-chip.low {
  border-color: rgba(181, 97, 26, 0.35);
  background: #fff8f1;
}

.lumiq-credits-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

.lumiq-credits-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}

.lumiq-credits-cost {
  font-size: 11px;
  color: var(--text-soft);
}

.lumiq-upgrade-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.15s;
}

.lumiq-upgrade-btn:hover {
  background: var(--accent-soft);
}

.lumiq-account-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg-card);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.lumiq-account-btn:hover {
  opacity: 0.85;
}

.lumiq-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.lumiq-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft, rgba(230, 110, 50, 0.12));
  border-radius: 50%;
  line-height: 1;
  user-select: none;
}

.lumiq-auth-overlay {
  z-index: 3000;
  background: rgba(26, 23, 6, 0.45);
}

.lumiq-auth-modal,
.lumiq-premium-modal {
  max-width: 480px;
}

.lumiq-premium-modal {
  max-width: 560px;
}

.lumiq-auth-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lumiq-auth-lead {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.45;
}

.lumiq-auth-sub {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.lumiq-auth-warn {
  font-size: 12px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid rgba(181, 97, 26, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.45;
}

.lumiq-auth-warn code {
  font-size: 11px;
}

.lumiq-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.lumiq-google-btn:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
  background: #fafafa;
}

.lumiq-google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lumiq-premium-lead {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 18px;
}

.lumiq-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lumiq-plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lumiq-plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-dark);
}

.lumiq-plan-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.lumiq-plan-price span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  margin-left: 4px;
}

.lumiq-plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 8px;
  font-size: 13px;
  color: var(--text-mid);
}

.lumiq-plan-perks li::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
}

.lumiq-plan-cta {
  margin-top: auto;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--img-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lumiq-plan-cta:hover {
  opacity: 0.92;
}

@media (max-width: 720px) {
  .lumiq-credits-bar {
    top: 64px;
    right: 12px;
  }

  .lumiq-credits-cost {
    display: none;
  }

  .lumiq-plan-grid {
    grid-template-columns: 1fr;
  }
}

