/* ===================================================================
   FREE FIRE NAME IDEAS — DEDICATED STYLESHEET
   Mobile-first, dark tactical gaming aesthetic with fire/amber accents.
   Discovery Engine + Seed Synthesis + More Like This + Finalists Tray
   =================================================================== */

:root {
  --ideas-accent-primary: #ff5722;
  --ideas-accent-secondary: #ff2a5f;
  --ideas-accent-amber: #ffaa00;
  --ideas-accent-gold: #ffd700;
  --ideas-accent-cyan: #00e5ff;
  --ideas-accent-purple: #b388ff;
  
  --font-display: 'Chakra Petch', -apple-system, sans-serif;
  --font-main: 'Inter', -apple-system, sans-serif;

  --bg-page: #080a0f;
  --bg-surface: #10141d;
  --bg-card: #141924;
  --bg-card-hover: #1c2232;
  --bg-card-inner: #0b0e15;

  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 87, 34, 0.45);
  --border-focus: rgba(255, 87, 34, 0.65);

  --text-pure: #ffffff;
  --text-high: #f1f4fa;
  --text-med: #9ba6b9;
  --text-muted: #64748b;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
}

/* Base Wrapper */
.ideas-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  color: var(--text-high);
}

.main-content-container {
  flex: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===================================================================
   HERO & FINDER TOOL SECTION
   =================================================================== */
.ideas-hero {
  padding: 1.5rem 0 1rem;
  text-align: center;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff7043;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.75rem;
}

.ideas-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 0.65rem;
}

.ideas-gradient-text {
  background: linear-gradient(135deg, #ff5722 0%, #ff2a5f 50%, #ffaa00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.ideas-hero-subtitle {
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  color: var(--text-med);
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.55;
}

/* ===================================================================
   CENTRAL NAME IDEA FINDER TOOL BOX
   =================================================================== */
.ideas-tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 87, 34, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  text-align: left;
  margin-bottom: 2rem;
}

.tool-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vibe-section-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-med);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.btn-surprise-me {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.15) 0%, rgba(255, 170, 0, 0.15) 100%);
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ideas-accent-amber);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-surprise-me:hover {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25) 0%, rgba(255, 170, 0, 0.25) 100%);
  border-color: var(--ideas-accent-amber);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 170, 0, 0.25);
}

/* Vibe Chips */
.vibe-chips-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.vibe-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-med);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.vibe-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.vibe-chip.active {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.25) 0%, rgba(255, 42, 95, 0.25) 100%);
  border-color: var(--ideas-accent-primary);
  color: #ff7043;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(255, 87, 34, 0.3);
}

/* Tool Input Row: Seed Input + Length Buttons + Find Action */
.tool-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.ideas-seed-wrap {
  flex: 1 1 260px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ideas-seed-wrap:focus-within {
  border-color: var(--ideas-accent-primary);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.25);
}

.seed-icon {
  font-size: 1.05rem;
  margin-right: 0.6rem;
  color: var(--text-muted);
}

.ideas-seed-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: #fff;
  min-width: 0;
}

.ideas-seed-input::placeholder {
  color: var(--text-muted);
}

.input-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.input-clear-btn:hover {
  color: #fff;
}

/* Length Filter Group */
.length-filter-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.length-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.length-buttons-cluster {
  display: flex;
  background: var(--bg-card-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 2px;
}

.length-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-med);
  cursor: pointer;
  transition: all 0.15s ease;
}

.length-btn:hover {
  color: #fff;
}

.length-btn.active {
  background: rgba(255, 87, 34, 0.25);
  color: #ff7043;
  font-weight: 700;
}

/* Find Button */
.btn-find-ideas {
  background: var(--fire-gradient, linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%));
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1.35rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-find-ideas:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
}

/* Status Banners: Word Lock & Remix (More Like This) */
.word-lock-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: #ffc107;
  gap: 0.75rem;
}

.btn-unlock-word {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-unlock-word:hover {
  background: rgba(255, 255, 255, 0.18);
}

.remix-banner {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.84rem;
  color: #4dd0e1;
  gap: 0.75rem;
}

.btn-clear-remix {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-clear-remix:hover {
  background: rgba(0, 229, 255, 0.25);
}

/* Tool Controls Bar */
.tool-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-stats-info {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.tool-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.btn-tool-action {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  color: var(--text-med);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-tool-action:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ===================================================================
   RESULTS GRID SECTION
   =================================================================== */
.results-section {
  margin-bottom: 3rem;
}

.ideas-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Idea Card */
.idea-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.idea-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 87, 34, 0.12);
}

.idea-card.is-saved {
  border-color: rgba(255, 42, 95, 0.45);
  background: linear-gradient(180deg, rgba(255, 42, 95, 0.06) 0%, var(--bg-card) 100%);
}

.idea-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

/* Name DNA Pill */
.card-dna-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-med);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80%;
}

.card-dna-pill.pill-len-short {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.25);
  background: rgba(56, 189, 248, 0.08);
}

.card-dna-pill.pill-len-med {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.08);
}

/* Save Heart Button */
.btn-card-save {
  background: transparent;
  border: none;
  font-size: 1.15rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  transition: transform 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.btn-card-save:hover {
  color: #ff2a5f;
  transform: scale(1.15);
}

.btn-card-save.active {
  color: #ff2a5f;
}

/* Base Name Display */
.idea-name-display {
  margin: 0.35rem 0 0.5rem;
}

.name-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  word-break: break-all;
}

.idea-concept-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
  flex: 1;
}

/* Card Action Cluster */
.idea-card-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-card-copy {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-card-copy:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: var(--ideas-accent-primary);
  color: #ff7043;
}

.btn-card-more {
  flex: 1.4;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 600;
  color: #4dd0e1;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: center;
}

.btn-card-more:hover {
  background: rgba(0, 229, 255, 0.18);
  border-color: #00e5ff;
  color: #fff;
}

.btn-card-lock {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.btn-card-lock:hover {
  background: rgba(255, 170, 0, 0.15);
  border-color: rgba(255, 170, 0, 0.4);
  color: #ffc107;
}

/* Empty State Card */
.empty-state-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 1rem;
  text-align: center;
}

.empty-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.empty-state-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.empty-state-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 460px;
  margin: 0 auto 1.25rem;
}

.btn-clear-search-empty {
  background: var(--fire-gradient, linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%));
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
}

/* Load More Button Wrapper */
.load-more-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.btn-load-more {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.85rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: var(--ideas-accent-primary);
  transform: translateY(-1px);
}

/* ===================================================================
   STICKY FLOATING FINALISTS SHORTLIST DOCK (Mobile & Desktop)
   =================================================================== */
.finalists-dock-wrap {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  display: none; /* activated when count > 0 */
}

.finalists-dock-btn {
  background: linear-gradient(135deg, #161a24 0%, #1c2232 100%);
  border: 1px solid rgba(255, 42, 95, 0.5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 42, 95, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.finalists-dock-btn:hover {
  transform: translateY(-2px);
  border-color: #ff2a5f;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7), 0 0 26px rgba(255, 42, 95, 0.55);
}

.dock-pulse {
  animation: dockPulseAnim 0.7s ease;
}

@keyframes dockPulseAnim {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); border-color: #ff5722; }
  100% { transform: scale(1); }
}

.finalists-dock-badge {
  background: #ff2a5f;
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ===================================================================
   MODALS (Finalists Drawer Modal & Word Lock Modal)
   =================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 7, 10, 0.85);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 87, 34, 0.15);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}

.modal-close-btn:hover {
  color: #fff;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

/* Finalists List Inside Modal */
.finalist-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.finalist-left-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.finalist-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.finalist-name-cluster {
  display: flex;
  flex-direction: column;
}

.finalist-name-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.finalist-dna-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.finalist-actions-cluster {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.btn-finalist-copy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

.btn-finalist-copy:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: var(--ideas-accent-primary);
  color: #ff7043;
}

.btn-finalist-style {
  background: var(--fire-gradient, linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%));
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-finalist-style:hover {
  box-shadow: 0 2px 10px rgba(255, 87, 34, 0.4);
}

.btn-finalist-more {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  color: #4dd0e1;
  cursor: pointer;
}

.btn-finalist-more:hover {
  background: rgba(0, 229, 255, 0.2);
  color: #fff;
}

.btn-finalist-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.btn-finalist-remove:hover {
  color: #ff2a5f;
}

.empty-finalists-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
}

.empty-finalists-state span {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.empty-finalists-state h5 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.45rem;
}

.modal-footer {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-clear-shortlist {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.btn-clear-shortlist:hover {
  color: #ff2a5f;
  border-color: rgba(255, 42, 95, 0.3);
}

/* ===================================================================
   SUPPORTING PUBLICATION ARTICLE STYLES
   =================================================================== */
.ideas-publication-article {
  margin-top: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.article-lead-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-left: 4px solid var(--ideas-accent-primary);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 2.5rem;
}

.article-p-lead {
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--text-high);
  margin-bottom: 0.85rem;
}

.article-p-lead:last-child {
  margin-bottom: 0;
}

.article-section {
  margin-bottom: 2.75rem;
}

.article-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: #ffaa00;
  margin: 1.5rem 0 0.65rem;
}

.article-p {
  font-size: 0.96rem;
  line-height: 1.68;
  color: var(--text-med);
  margin-bottom: 1rem;
}

.article-inline-link {
  color: #ff7043;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.article-inline-link:hover {
  color: #ffaa00;
}

/* Data Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.ideas-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.ideas-data-table th {
  background: rgba(255, 87, 34, 0.1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-card);
}

.ideas-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-high);
}

.ideas-data-table tr:last-child td {
  border-bottom: none;
}

.ideas-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Tactical Bulleted Idea Lists */
.ideas-bullet-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.85rem 0 1.25rem;
  list-style: none;
  padding: 0;
}

.ideas-bullet-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ideas-bullet-item::before {
  content: "•";
  color: var(--ideas-accent-primary);
  font-size: 1.2rem;
  line-height: 0;
}

/* FAQ Accordion Section */
.ideas-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(255, 87, 34, 0.4);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.15rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-chevron {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #ff7043;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-med);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 0.85rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* Callout Box CTA */
.ideas-cta-box {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.12) 0%, rgba(255, 42, 95, 0.12) 100%);
  border: 1px solid rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 3rem 0 2rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.ideas-cta-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.ideas-cta-desc {
  font-size: 0.95rem;
  color: var(--text-med);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.jump-to-tool-btn {
  background: var(--fire-gradient, linear-gradient(135deg, #ff5722 0%, #ff2a5f 100%));
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.75rem 2rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.jump-to-tool-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 87, 34, 0.45);
}

/* Toast Notification */
.ideas-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #161a24;
  border: 1px solid rgba(255, 87, 34, 0.6);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 18px rgba(255, 87, 34, 0.35);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.ideas-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===================================================================
   RESPONSIVE DESIGN (Mobile UX)
   =================================================================== */
@media (max-width: 768px) {
  .ideas-cards-grid {
    grid-template-columns: 1fr;
  }

  .tool-top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tool-input-row {
    flex-direction: column;
  }

  .btn-find-ideas {
    width: 100%;
    justify-content: center;
  }

  .finalists-dock-wrap {
    bottom: 1rem;
    right: 1rem;
  }

  .finalist-item-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .finalist-actions-cluster {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}
