/* BuildNextApp – mobile-friendly, responsive */

:root {
  --bg: #0f1419;
  --bg2: #1a2332;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --success: #3fb950;
  --error: #f85149;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,0.3);
}

* { box-sizing: border-box; }
html { font-size: 16.8px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { color: var(--accent); }
.logo-icon {
  width: 1.4rem;
  height: 1.4rem;
  flex-shrink: 0;
}
.nav-search-wrap {
  display: flex;
  flex: 1 1 376px;
  min-width: 0;
  max-width: 526px;
  margin: 0 1rem 0 0;
  position: relative;
  align-items: center;
}
.nav-search-input {
  width: 100%;
  padding: 0.46rem 0.83rem;
  font-size: 0.99rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-input:focus { outline: none; border-color: var(--accent); }
.nav-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 2px;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: var(--shadow);
}
.nav-search-section {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-search-item {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.nav-search-item:hover { background: rgba(255,255,255,0.06); }
.nav-search-item:last-child { border-bottom: none; }
.nav-search-item-name { font-weight: 500; }
.nav-search-item-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-links a {
  color: #a8b2be;
  text-decoration: none;
  font-size: 1.05em;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-icon {
  width: 1.035rem; /* 1.15rem * 0.9 = 1.035rem */
  height: 1.035rem; /* 1.15rem * 0.9 = 1.035rem */
  flex-shrink: 0;
}
.nav-link--admin {
  background: #dc3545;
  color: #fff !important;
  padding: 0.196rem 0.75rem;
  border-radius: var(--radius);
}
.nav-link--admin:hover {
  background: #c82333;
  color: #fff !important;
}
.nav-link--newsletter {
  background: var(--accent);
  color: #fff !important;
  padding: 0.196rem 0.75rem;
  border-radius: var(--radius);
}
.nav-link--newsletter:hover {
  background: var(--accent-hover);
}

/* Splash Icon Button - Icon Only, After Search */
.btn-splash-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-splash-icon:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.6);
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-splash-icon:active {
  transform: scale(0.95);
}

.splash-icon-svg {
  width: 18px;
  height: 18px;
  color: #3b82f6;
  transition: all 0.3s ease;
}

.btn-splash-icon:hover .splash-icon-svg {
  color: #60a5fa;
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.6));
}

/* Product Hunt Badge */
.producthunt-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  margin-right: 6px;
  text-decoration: none;
  padding: 4px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  opacity: 0.85;
}

.producthunt-badge:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.2);
  background: var(--bg2);
}

.producthunt-badge img {
  display: block;
  border-radius: 4px;
  filter: brightness(0.95);
  transition: filter 0.2s ease;
}

.producthunt-badge:hover img {
  filter: brightness(1);
}

/* Old splash button styles - can be removed if not used elsewhere */
.nav-link--splash {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: rgba(59, 130, 246, 0.9) !important;
  padding: 0.196rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-link--splash:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.6);
  color: #3b82f6 !important;
  transform: translateY(-1px);
}
.nav-link--splash .nav-icon {
  color: #3b82f6;
}
.splash-icon-label {
  font-size: 0.9rem;
}

.nav-link--name {
  cursor: pointer;
  color: #a8b2be;
  align-items: center;
  text-decoration: none;
  border-right: 4px solid #a8b2be;
  padding-right: 1rem;
  margin-right: 0.5rem;
}
.nav-link--name:hover {
  color: var(--accent);
  border-right-color: var(--accent);
}
.nav-link--name .nav-icon {
  width: 1.25235rem; /* 1.1385rem * 1.1 = 1.25235rem (another 10% bigger) */
  height: 1.25235rem; /* 1.1385rem * 1.1 = 1.25235rem (another 10% bigger) */
}
.nav-user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.nav-user-name {
  font-size: 1.05em;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
}
.nav-user-plan {
  font-size: 0.858em;
  color: #fff;
  font-weight: 500;
  line-height: 1;
  background: #8b5cf6;
  padding: 0.225rem 0.525rem 0.275rem 0.525rem;
  border-radius: 10px;
  display: inline-block;
  white-space: nowrap;
}
.nav-user-plan-free {
  background: #f97316; /* Orange */
  color: #ffffff; /* White font */
}
.nav-user-plan-free:hover {
  background: #ea580c; /* Darker orange on hover */
  color: #ffffff; /* Keep white font on hover */
}
.inline-form { display: inline; margin: 0; }
.btn-link {
  background: none;
  border: none;
  color: #a8b2be;
  cursor: pointer;
  font: inherit;
  font-size: 1.05em;
  font-weight: 500;
  padding: 0;
}
.btn-link:hover { color: var(--accent); }

/* Main */
.main { padding: 1rem 2rem; max-width: 100%; margin: 0; }
.app-main { max-width: 100%; padding-bottom: 3rem; }

/* Toast – no JS alert */
.toast {
  display: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.toast.visible { display: block; }
.toast.error { background: rgba(248,81,73,0.15); color: var(--error); }
.toast.success { background: rgba(63,185,80,0.15); color: var(--success); }
.toast.info { background: rgba(88,166,255,0.15); color: var(--accent); }

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.25rem; }

/* Content sections */
.content-section h2 { font-size: 1.25rem; margin: 0 0 1rem 0; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.card {
  display: block;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.card p { margin: 0.25rem 0 0 0; font-size: 0.85rem; color: var(--muted); }
.card-idea-count { font-size: 0.8rem; }

/* Buttons */
.btn .btn-icon { margin-right: 0.35em; vertical-align: middle; }
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

/* Idea Maker button - darker blue */
#btn-idea-maker.btn-primary {
  background: #1e3a8a; /* Darker blue */
  color: #fff;
}

#btn-idea-maker.btn-primary:hover {
  background: #1e40af; /* Slightly lighter on hover */
}
.btn-secondary { background: var(--bg2); color: var(--text); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 0.3rem 0.55rem; font-size: 0.8rem; }

.generate-area { margin-top: 1.5rem; }
.ideas-queued-message {
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  max-width: 600px;
  background: rgba(88, 166, 255, 0.15);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 1.1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
  font-weight: 500;
}
.ideas-queued-message::before {
  content: '⏳';
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
  animation: hourglass-rotate 4s linear infinite;
}
.empty-category-login-message {
  margin: 2rem auto;
  max-width: 600px;
}
.empty-category-login-content {
  padding: 2rem;
  background: rgba(88, 166, 255, 0.1);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.15);
}
.empty-category-login-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1;
}
.empty-category-login-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem 0;
}
.empty-category-login-text {
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
}
.empty-category-login-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
}
@keyframes hourglass-rotate {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(0deg); } /* Pause at standing (1 second) */
  37.5% { transform: rotate(180deg); } /* Rotate to upside down (0.5 seconds) */
  62.5% { transform: rotate(180deg); } /* Pause at upside down (1 second) */
  75% { transform: rotate(360deg); } /* Rotate back to standing (0.5 seconds) */
  100% { transform: rotate(360deg); } /* Pause at standing (1 second) */
}
.actions { margin-top: 1.5rem; }

/* My Bookmarks */
.bookmarks-area { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
#bookmarks-section .bookmarks-area { margin-top: 0; padding-top: 0; border-top: none; }
.bookmarks-area h3 { font-size: 1rem; margin: 0; color: var(--muted); }
.bookmarks-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.bookmarks-actions { display: flex; gap: 0.5rem; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #c82333; }
.modal-dialog-sm { max-width: 400px; }
.modal-dialog-gate { max-width: 480px; }
.modal-dialog-full { max-width: 95vw; width: 95vw; height: 90vh; }
.confirm-modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

/* Gate Modal Styles */
.modal-header-centered {
  padding: 1rem;
  border-bottom: none;
  justify-content: flex-end;
}

.modal-body-centered {
  padding: 1.5rem 2rem 2rem 2rem;
  text-align: center;
}

.gate-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(147, 51, 234, 0.1) 100%);
  border: 2px solid rgba(59, 130, 246, 0.2);
  border-radius: 50%;
  color: var(--primary);
}

.gate-modal-icon svg {
  width: 40px;
  height: 40px;
}

.gate-modal-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
}

.gate-modal-message {
  margin: 0 0 1.75rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.gate-modal-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: left;
  background: rgba(59, 130, 246, 0.05);
  padding: 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.gate-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg);
  font-size: 0.9rem;
}

.gate-feature-item svg {
  flex-shrink: 0;
  color: var(--primary);
}

.view-idea-gate-message { margin: 0 0 1.25rem 0; color: var(--muted); }
.view-idea-gate-actions { 
  display: flex; 
  flex-direction: column;
  gap: 0.75rem; 
  width: 100%;
}
.view-idea-gate-actions .btn { 
  text-decoration: none; 
  width: 100%;
  justify-content: center;
  display: inline-flex;
  align-items: center;
}

.btn-large {
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.5rem;
}

.btn-text:hover {
  background: transparent;
  color: var(--fg);
}
.bookmarks-list { display: flex; flex-direction: column; gap: 0.5rem; }
.bookmark-item {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.5rem 0.75rem; background: var(--bg2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); font-size: 0.9rem;
}
.bookmark-item-info { flex: 1; min-width: 0; }
.bookmark-item-name { font-weight: 500; display: block; }
.bookmark-item-name .app-name-painkiller,
.bookmark-item-name .app-name-vitamin {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  vertical-align: middle;
}
.bookmark-item-name .app-name-painkiller { color: var(--success); }
.bookmark-item-name .app-name-vitamin { color: #f5a623; }
.bookmark-item-name .app-name-no-competition {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: bold;
  font-size: 0.6rem;
  line-height: 1;
  vertical-align: middle;
}
.bookmark-item-desc { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.bookmark-item-cat { font-size: 0.8rem; color: var(--muted); display: block; margin-top: 0.2rem; }
.btn-pin { background: none; border: none; color: var(--muted); cursor: pointer; padding: 0.25rem; font-size: 1rem; }
.btn-pin:hover { color: var(--accent); }
.btn-pin.bookmarked { color: #f5c518; }
.ideas-col-pin { width: 2.5rem; text-align: center; }

/* Idea Preview */
.idea-preview {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  min-height: 60px;
}
.idea-preview-label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.idea-preview-path {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  word-break: break-word;
  padding-right: 120px; /* Space for button */
}
.idea-preview-progress {
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.75rem;
}
.idea-preview-button {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  background: #0ea774; /* Emerald green - 10% darker */
  color: #fff;
  border: none;
}

.idea-preview-button:hover {
  background: #047857; /* Darker emerald on hover */
  color: #fff;
}

.idea-preview-button:disabled {
  background: #6b7280; /* Gray when disabled */
  opacity: 0.6;
}
.idea-preview-progress-fill {
  height: 100%;
  width: 40%;
  background: var(--accent);
  border-radius: 2px;
  animation: idea-preview-progress-slide 1.5s ease-in-out infinite;
}
@keyframes idea-preview-progress-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* Ideas list – table */
.ideas-list { margin-top: 0.5rem; }
.ideas-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--bg2);
}
.ideas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ideas-table th,
.ideas-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ideas-table th {
  background: rgba(0,0,0,0.2);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ideas-table tbody tr:last-child td { border-bottom: none; }
.ideas-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.ideas-col-name { min-width: 120px; font-weight: 500; position: relative; }
.ideas-table tbody .ideas-col-name { cursor: pointer; }
.ideas-col-name-content { margin-bottom: 2.25rem; }
.ideas-col-name-votes { position: absolute; bottom: 0; left: 0; }
.ideas-col-name .app-name-no-competition {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.4rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: bold;
  font-size: 0.7rem;
  line-height: 1;
  vertical-align: middle;
}
.ideas-col-name .app-name-tagline { font-style: italic; font-size: 0.9em; color: var(--muted); display: block; margin-top: 0.2em; }
.ideas-col-name .app-name-opportunity {
  display: block;
  margin-top: 0.3em;
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 500;
}
.ideas-col-name .app-name-painkiller,
.ideas-col-name .app-name-vitamin {
  margin-left: 0.3rem;
  font-size: 0.95rem;
  vertical-align: middle;
}
.ideas-col-name .app-name-painkiller {
  color: var(--success);
}
.ideas-col-name .app-name-vitamin {
  color: #f5a623;
}
.ideas-col-metrics { min-width: 140px; font-size: 0.9rem; line-height: 1.6; }
.ideas-col-metrics .stars { font-size: 1.11rem; }
.ideas-col-metrics .metric-item { margin-bottom: 3px; }
.ideas-col-metrics .metric-item:last-child { margin-bottom: 0; }
.ideas-col-metrics .metric-note { font-size: 0.7rem; color: var(--muted); display: block; line-height: 1.3; }

/* Star ratings */
.stars {
  color: #f5c518;
  font-size: 1.24rem;
  letter-spacing: 1px;
  cursor: default;
}
.ideas-col-desc { min-width: 200px; max-width: 380px; white-space: pre-wrap; word-break: break-word; }
.ideas-col-why { min-width: 180px; max-width: 320px; white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 0.9rem; }
.ideas-col-usecase { min-width: 160px; max-width: 280px; white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 0.9rem; }
.ideas-col-techstack { min-width: 140px; max-width: 240px; white-space: pre-wrap; word-break: break-word; color: var(--muted); font-size: 0.9rem; }
.ideas-col-actions { min-width: 120px; vertical-align: top; }
.ideas-col-actions .domain-cell-link { color: var(--accent); text-decoration: none; }
.ideas-col-actions .domain-cell-link:hover { text-decoration: underline; }
.ideas-col-actions .domain-cell-link-match { font-weight: 600; color: var(--success); }
.domain-cell-matches { margin-bottom: 3px; }
.domain-cell-wrap { display: flex; flex-direction: column; gap: 0.25rem; }
.domain-cell-links { flex: 0 1 auto; }
.domain-cell-btn { margin-top: auto; text-align: right; }
.categories-loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  color: var(--muted);
  font-size: 1rem;
}
.categories-loading-spinner i {
  font-size: 1.5rem;
  color: var(--accent);
}
.categories-loading-text {
  color: var(--text);
}

.domain-cell-loading { display: inline-flex; align-items: center; }
.domain-cell-loading .spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: domain-spin 0.7s linear infinite;
}
@keyframes domain-spin { to { transform: rotate(360deg); } }
.ideas-col-category { min-width: 150px; color: var(--muted); font-size: 0.85rem; }

/* Domain list (modal) */
.domain-list { list-style: none; margin: 0; padding: 0; }
.domain-list li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.95rem; }
.domain-list li:last-child { border-bottom: none; }
.domain-available { color: var(--success); }
.domain-registrar-link { color: inherit; text-decoration: none; }
.domain-registrar-link:hover { text-decoration: underline; }
.domain-taken { color: var(--muted); }
.muted { color: var(--muted); font-size: 0.9rem; }

/* Floating Check domains (bottom-right) - hidden */
.floating-check-domains {
  display: none !important;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 1.5rem;
  z-index: 10000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-consent-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 50%;
  color: var(--primary);
}

.cookie-consent-icon svg {
  width: 24px;
  height: 24px;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
}

.cookie-consent-text p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-consent-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.cookie-consent-link:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.cookie-consent-actions .btn {
  white-space: nowrap;
  padding: 0.625rem 1.5rem;
  font-weight: 500;
}

.cookie-consent-actions .btn-text {
  color: var(--muted);
  padding: 0.625rem 1rem;
}

.cookie-consent-actions .btn-text:hover {
  color: var(--fg);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .cookie-consent-banner {
    padding: 1rem;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .cookie-consent-icon {
    width: 40px;
    height: 40px;
  }
  
  .cookie-consent-text {
    min-width: 100%;
  }
  
  .cookie-consent-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-consent-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFadeIn 0.6s ease-out;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.splash-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15, 15, 25, 0.98) 0%, rgba(25, 15, 35, 0.98) 100%);
  backdrop-filter: blur(20px);
}

.splash-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 700px;
  animation: splashSlideUp 0.8s ease-out;
}

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

.splash-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  margin: 0 auto 2rem auto;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  position: relative;
  animation: splashPulse 2s ease-in-out infinite;
}

@keyframes splashPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
  }
}

.splash-logo svg {
  width: 50px;
  height: 50px;
  color: var(--primary);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.splash-title {
  margin: 0 0 1.5rem 0;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #a0c4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  animation: splashTitleGlow 3s ease-in-out infinite;
}

@keyframes splashTitleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
  }
}

.splash-tagline {
  margin: 0 0 3rem 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-splash {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-splash::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-splash:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6);
}

.btn-splash:hover::before {
  left: 100%;
}

.btn-splash:active {
  transform: translateY(0) scale(0.98);
}

.btn-splash svg {
  transition: transform 0.3s ease;
}

.btn-splash:hover svg {
  transform: translateX(5px);
}

.splash-features {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.splash-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.splash-feature svg {
  color: #10b981;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .splash-title {
    font-size: 2.5rem;
  }
  
  .splash-tagline {
    font-size: 1.1rem;
    padding: 0 1rem;
  }
  
  .btn-splash {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }
  
  .splash-logo {
    width: 100px;
    height: 100px;
  }
  
  .splash-logo svg {
    width: 40px;
    height: 40px;
  }
  
  .splash-features {
    gap: 1rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .splash-title {
    font-size: 2rem;
  }
  
  .splash-features {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Leaderboards */
.leaderboards-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.leaderboards-title-group { display: flex; align-items: center; gap: 0.5rem; }
.leaderboards-title-group h2 { margin: 0; }
.leaderboard-view-all { font-size: 0.9rem; color: var(--accent); text-decoration: none; }
.leaderboard-view-all:hover { text-decoration: underline; }
.leaderboards-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn-randomize {
  background: #7c3aed; /* Dark purple/violet */
  color: #fff;
  border: none;
}
.btn-randomize:hover {
  background: #6d28d9; /* Darker purple on hover */
  color: #fff;
}
.leaderboards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
  width: 100%;
}
.leaderboard-column {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 0.7rem;
  min-height: 180px;
  min-width: 0;
}
.leaderboard-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.4rem;
  margin-bottom: 0.3rem;
}
.leaderboard-title-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.leaderboard-column-header h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--accent);
  border-bottom: none;
  padding-bottom: 0;
}
.leaderboard-info-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.15rem 0.25rem;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.leaderboard-info-btn:hover {
  opacity: 1;
  color: var(--accent);
}
.leaderboard-info-content {
  margin-bottom: 1.25rem;
  line-height: 1.6;
  color: var(--text);
}
.leaderboard-info-content p {
  margin: 0 0 0.75rem 0;
}
.leaderboard-info-content p:last-child {
  margin-bottom: 0;
}
.leaderboard-explanation {
  margin: 0 0 0.5rem 0;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}
.leaderboard-list {
  font-size: 0.82rem;
}
.btn-leaderboard-all {
  flex-shrink: 0;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}
.btn-leaderboard-all:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.leaderboard-item:last-child {
  border-bottom: none;
}
.leaderboard-rank {
  color: var(--muted);
  font-weight: 600;
  min-width: 1.5rem;
}
.leaderboard-info {
  flex: 1;
  margin: 0 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.leaderboard-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.leaderboard-name .app-name-no-competition {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.3rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-weight: bold;
  font-size: 0.6rem;
  line-height: 1;
  vertical-align: middle;
}
.leaderboard-name .app-name-painkiller,
.leaderboard-name .app-name-vitamin {
  margin-left: 0.25rem;
  font-size: 0.85rem;
  vertical-align: middle;
}
.leaderboard-name .app-name-painkiller {
  color: var(--success);
}
.leaderboard-name .app-name-vitamin {
  color: #f5a623;
}
.leaderboard-category {
  font-size: 0.7rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.leaderboard-category-link {
  color: inherit;
  text-decoration: none;
}
.leaderboard-category-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.leaderboard-item {
  cursor: pointer;
}
.leaderboard-item:hover {
  background: rgba(255,255,255,0.03);
}
.leaderboard-score {
  color: var(--accent);
  font-weight: 500;
}
.leaderboard-score .stars {
  font-size: 1.04rem;
}
.leaderboard-pin {
  flex-shrink: 0;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.leaderboard-item:hover .leaderboard-pin {
  opacity: 1;
}
.leaderboard-pin.bookmarked {
  opacity: 1;
}
.leaderboard-item.is-bookmarked {
  background: rgba(245, 197, 24, 0.08);
  border-radius: 4px;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

/* Leaderboard full view (top 100) */
#leaderboard-full-view {
  padding: 1rem 2rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.leaderboard-full-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.leaderboard-full-title {
  margin: 0;
  font-size: 1.25rem;
}
.leaderboard-full-list {
  font-size: 0.9rem;
  max-height: 70vh;
  overflow-y: auto;
}
.leaderboard-full-list .leaderboard-item {
  padding: 0.5rem 0.6rem;
}

/* Leaderboard Pagination */
.leaderboard-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.leaderboard-page-btn {
  min-width: 100px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9rem;
}

.leaderboard-page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.leaderboard-page-info {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  min-width: 150px;
  text-align: center;
}

.leaderboard-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .leaderboards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .leaderboards-grid {
    grid-template-columns: 1fr;
  }
}

/* Login */
.login-section { text-align: center; padding: 2rem 1rem; }
.login-section h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-section p { color: var(--muted); margin-bottom: 1.5rem; }
.btn-google {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: #fff;
  color: #1a1a1a;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid #ccc;
}
.btn-google:hover { background: #f5f5f5; }

/* Pricing */
.pricing-title { text-align: center; font-size: 1.5rem; margin-bottom: 0.25rem; margin-top: 0.5rem; }
.pricing-subtitle { text-align: center; font-size: 0.95rem; color: var(--muted); margin: 0 0 0.75rem 0; }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}
.price-card {
  padding: 1rem 1.25rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
}
.price-card.featured { 
  border-color: var(--accent); 
  box-shadow: 0 0 0 2px rgba(88,166,255,0.2);
  position: relative;
}
.price-card-span-3 { grid-column: span 3; }
.best-value-badge {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-card h2 { margin: 0 0 0.25rem 0; font-size: 1.25rem; }
.price-card.featured h2 { margin-top: 0.5rem; }
.price-card .price { font-size: 1.75rem; font-weight: 700; margin: 0; }
.price-card .period { font-size: 0.85rem; color: var(--muted); margin: 0.15rem 0; }
.price-card .goal { 
  font-size: 0.9rem; 
  margin: 0.5rem 0 0.5rem 0; 
  color: var(--text);
  font-style: italic;
  line-height: 1.4;
}
.price-card .detail { font-size: 0.85rem; margin: 0 0 0.5rem 0; color: var(--muted); }
.price-card .btn { 
  width: 100%; 
  margin-top: auto;
}

/* Pricing FAQ */
.pricing-faq {
  max-width: 1200px;
  margin: 3rem auto 2rem;
  padding: 0 1rem;
}
.pricing-faq-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.pricing-faq-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}
.faq-answer {
  font-size: 0.95rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Landing Page Progress */
.landing-page-progress-container {
  width: 100%;
}
.landing-page-progress-bar {
  width: 100%;
  height: 1.5rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.landing-page-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  transition: width 0.3s ease;
  border-radius: var(--radius);
}

/* Landing Page Activity Log */
.landing-page-activity-log {
  margin-top: 1rem;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.landing-page-activity-log-header {
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.landing-page-activity-log-content {
  max-height: 200px;
  overflow-y: auto;
  padding: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
}

.landing-page-activity-item {
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.25rem;
  border-radius: 0.25rem;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.landing-page-activity-item:last-child {
  margin-bottom: 0;
}

.landing-page-activity-item.pending {
  color: var(--muted);
}

.landing-page-activity-item.processing {
  color: var(--accent);
}

.landing-page-activity-item.completed {
  color: #10b981;
}

.landing-page-activity-item.error {
  color: var(--error);
}

.landing-page-activity-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  font-size: 0.75rem;
}

.landing-page-activity-text {
  flex: 1;
  word-break: break-word;
}

.landing-page-activity-time {
  flex-shrink: 0;
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* Payment */
.payment-section { max-width: 420px; margin: 0 auto; }
.payment-section h1 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.payment-section .payment-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
#paypal-container { min-height: 120px; margin-top: 1rem; }
.message { padding: 0.75rem; border-radius: var(--radius); }
.message-error { background: rgba(248,81,73,0.15); color: var(--error); }

/* Success / cancel */
.message-section { text-align: center; padding: 2rem 1rem; }
.message-section h1 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.message-section p { color: var(--muted); margin-bottom: 1rem; }

/* Idea modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
}
.modal-dialog {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
#idea-modal .modal-dialog { max-width: 780px; }
#idea-modal .modal-title .app-name-no-competition { color: var(--success); font-size: 1.1rem; margin-left: 0.35rem; font-weight: bold; vertical-align: middle; }
.modal-no-competition-note { color: var(--success); font-size: 0.9rem; font-weight: 500; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.modal-title {
  margin: 0;
  font-size: 1.1rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.modal-close:hover { color: var(--text); }
.modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.modal-field {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
}
.modal-field.modal-scores { line-height: 1.7; }
.modal-field:last-child { margin-bottom: 0; }
.modal-value {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  white-space: pre-wrap;
  word-break: break-word;
}
.modal-cat-link {
  color: var(--accent);
  text-decoration: none;
}
.modal-cat-link:hover { text-decoration: underline; }
.modal-cat-link.modal-cat-muted {
  color: var(--muted);
  cursor: default;
  pointer-events: none;
}
.modal-cat-link.modal-cat-muted:hover { text-decoration: none; }

/* Idea detail page (replaces idea modal for main view) */
.idea-detail-section { max-width: 1236px; margin: 0 auto; }
.idea-detail-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding-top: 2.25rem;
}
.idea-detail-left {
  flex-shrink: 0;
  width: max-content;
  min-width: 11em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}
.idea-detail-left .btn {
  white-space: nowrap;
  padding: 0.5rem 0.75rem;
  align-self: flex-start;
  margin-left: 0;
}
.idea-detail-main { flex: 1; min-width: 0; position: relative; }
.idea-detail-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.idea-detail-creator-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: rgba(88,166,255,0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  flex-shrink: 0;
}
.idea-detail-creator-indicator svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.idea-detail-sidebar {
  flex-shrink: 0;
  width: 408px;
  max-width: 408px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Card Base Styles */
.idea-detail-card {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.idea-detail-card-title {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Financial Metrics Card */
.idea-detail-financial-card {
  padding: 1.25rem 1rem;
}

.idea-detail-mrr-tam-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.idea-detail-mrr-tam-row:last-child {
  margin-bottom: 0;
}

.idea-detail-metric-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.idea-detail-metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
  line-height: 1.4;
}

/* Scores Card */
.idea-detail-scores {
  font-size: 0.875rem;
  line-height: 1.5;
}

.idea-detail-scores .stars { font-size: 0.875rem; letter-spacing: 0.15em; }
.idea-detail-scores .app-name-painkiller { color: var(--success); }
.idea-detail-scores .app-name-vitamin { color: #f5a623; }

.idea-detail-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0;
  white-space: nowrap;
}

.idea-detail-score-row:last-child { margin-bottom: 0; }
.idea-detail-score-row span { flex-shrink: 0; }

/* Vote Section */
.idea-detail-sidebar-vote {
  text-align: center;
  padding: 0.5rem 0;
}

/* Actions Card */
.idea-detail-actions-card {
  padding: 1rem;
}

.idea-detail-primary-btn,
.idea-detail-secondary-btn {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.idea-detail-primary-btn:last-child,
.idea-detail-secondary-btn:last-child {
  margin-bottom: 0;
}

.idea-detail-primary-btn {
  background: var(--accent);
  border-color: var(--accent);
}

.idea-detail-primary-btn.btn-ready {
  background: var(--success, #10b981);
  border-color: var(--success, #10b981);
  position: relative;
}

.idea-detail-primary-btn.btn-ready::before {
  content: '✓ ';
  margin-right: 0.25rem;
}

.idea-detail-primary-btn.btn-generate {
  background: #1a5089;
  border-color: #1a5089;
}
.idea-detail-primary-btn.btn-generate:hover {
  background: #2266a5;
  border-color: #2266a5;
}
.idea-detail-primary-btn.btn-generating {
  background: #f5c518;
  border-color: #f5c518;
  cursor: not-allowed;
  opacity: 0.9;
}
.idea-detail-primary-btn.btn-generating:hover {
  background: #f5c518;
  border-color: #f5c518;
}

.idea-detail-secondary-btn {
  background: var(--bg);
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}

.idea-detail-secondary-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}

/* Domains Card */
.idea-detail-domains {
  padding: 1rem;
}

.idea-detail-domains-list {
  font-size: 0.875rem;
  line-height: 1.2;
}

.idea-detail-domains-list .idea-detail-domain-link {
  display: block;
  color: var(--accent);
  text-decoration: none;
  padding: 0.0625rem 0;
  transition: color 0.2s ease;
}

.idea-detail-domains-list .idea-detail-domain-link:hover {
  color: var(--accent-hover, var(--accent));
  text-decoration: underline;
}

.idea-detail-domains-list .muted { color: var(--muted); }

/* Downloads Card */
.idea-detail-downloads-card {
  padding: 1rem;
}

.idea-detail-downloads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.idea-detail-download-btn {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8rem;
  padding: 0.5rem 0.625rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.5rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.375rem;
  text-align: left;
}

.idea-detail-download-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.idea-detail-download-btn .btn-icon {
  font-size: 0.75rem;
}

/* Download sliding animation - icon moves downward like it's downloading */
.download-sliding {
  animation: download-slide 1s ease-in-out infinite;
  display: inline-block;
}

@keyframes download-slide {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(4px);
    opacity: 0.7;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.idea-detail-download-btn .btn-text {
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idea-detail-ai-generated {
  font-size: 0.7rem;
  color: var(--muted);
  text-align: center;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.idea-detail-admin-regenerate {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.9rem;
}
.idea-detail-admin-regenerate strong { display: block; font-size: 0.765rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.45rem; }
.idea-detail-admin-regenerate-controls {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.idea-detail-admin-regenerate-controls select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.36rem 0.45rem;
  font-size: 0.81rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  background: var(--bg2);
  color: var(--text);
}
.idea-detail-admin-regenerate-controls .btn { width: 100%; box-sizing: border-box; }
.idea-detail-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 600;
  flex: 1;
}
.idea-detail-title .app-name-no-competition { color: var(--success); font-size: 1.1rem; margin-left: 0.35rem; font-weight: bold; vertical-align: middle; }
.idea-detail-upgrade-message {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background-color: var(--success);
  color: #000000;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius);
}
.idea-detail-upgrade-link {
  color: #000000;
  text-decoration: underline;
  font-weight: 600;
}
.idea-detail-upgrade-link:hover {
  color: #333333;
  text-decoration: underline;
}
.idea-detail-main .modal-field { margin-bottom: 1rem; }

@media (max-width: 640px) {
  .idea-detail-body { flex-direction: column; }
  .idea-detail-left { width: 100%; margin-bottom: 1rem; }
  .idea-detail-sidebar {
    width: 100%;
    max-width: 100%;
    order: -1;
    gap: 0.75rem;
  }
  .idea-detail-card {
    padding: 0.875rem;
  }
  .idea-detail-downloads-grid {
    grid-template-columns: 1fr;
  }
  .idea-detail-scores {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .idea-detail-card-title {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
  }
  .idea-detail-score-row {
    margin-bottom: 0;
  }
}

/* Random category modal */
.random-modal-text { margin: 0 0 1rem 0; color: var(--text); }
.random-modal-progress {
  height: 8px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 1rem 0;
}
.random-modal-progress-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  transition: width 10s linear;
}
.random-modal-actions { margin-top: 0.5rem; text-align: right; }

.idea-maker-desc { margin: 0 0 0.5rem 0; color: var(--muted); font-size: 0.9rem; }
.idea-maker-input { width: 100%; padding: 0.6rem; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; resize: vertical; box-sizing: border-box; }
.idea-maker-input:focus { outline: none; border-color: var(--accent); }
.idea-maker-count { margin: 0.25rem 0 1rem 0; font-size: 0.85rem; color: var(--muted); }
.idea-maker-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 0.5rem; }

@media (min-width: 600px) {
  .site-header { padding: 1rem 1.5rem; }
  .main { padding: 1.5rem; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* Admin Panel */
.admin-main {
  padding: 0;
  min-height: calc(100vh - 60px);
}
.admin-container {
  display: flex;
  min-height: calc(100vh - 60px);
}
.admin-sidebar {
  width: 240px;
  background: var(--bg2);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-title {
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius);
  text-align: left;
  transition: background 0.2s, color 0.2s;
}
.admin-nav-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}
.admin-nav-btn.active {
  background: rgba(88,166,255,0.15);
  color: var(--accent);
}
.admin-nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.admin-stats {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-stat {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0;
}
.admin-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}
.admin-stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-auto-idea {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-auto-idea-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.admin-auto-idea-status {
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-auto-idea-status.running {
  color: #4ade80;
}
.admin-auto-idea-status.stopped {
  color: var(--muted);
}
.admin-auto-idea-sublabel {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.admin-auto-idea-select {
  width: 100%;
}
.admin-app-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.admin-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
  cursor: pointer;
}
.admin-checkbox-label input {
  flex-shrink: 0;
}
.admin-auto-idea-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.admin-auto-idea-btns .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-content {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow-x: auto;
}
.admin-panel {
  display: none;
}
.admin-panel.active {
  display: block;
}
.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-panel-header h3 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-search {
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  width: 250px;
}
.admin-search::placeholder {
  color: var(--muted);
}
.admin-search:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--bg2);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.admin-table th {
  background: rgba(0,0,0,0.2);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.admin-table tbody tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}
.admin-table .loading-cell,
.admin-table .error-cell,
.admin-table .empty-cell {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
.admin-table .error-cell {
  color: var(--error);
}
.admin-table .category-cell {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-table .actions-cell {
  white-space: nowrap;
}

/* Generated Files table links - white font */
#generated-files-table a {
  color: #ffffff;
  text-decoration: underline;
}

#generated-files-table a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

/* Dashboard */
.admin-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.admin-dashboard-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.admin-dashboard-card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-dashboard-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.admin-dashboard-card-body {
  display: flex;
  flex-direction: column;
}

.admin-dashboard-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.admin-dashboard-stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.admin-dashboard-stat-value.running {
  color: var(--success);
}

.admin-dashboard-stat-value.stopped {
  color: var(--muted);
}

.admin-dashboard-stat-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-dashboard-controls {
  display: flex;
  gap: 0.5rem;
}

.admin-dashboard-frequency {
  margin-top: 1rem;
}

/* Data Updates */
.admin-data-updates-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.admin-data-updates-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-data-updates-output {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  max-height: 70vh;
}

.admin-data-updates-output-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-data-updates-output-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.admin-data-updates-output-content {
  padding: 1rem 1.5rem;
  overflow-y: auto;
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
}

.admin-data-updates-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.admin-data-updates-card-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.admin-data-updates-card-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.admin-data-updates-card-body {
  display: flex;
  flex-direction: column;
}

.admin-data-updates-card-body .btn {
  align-self: flex-start;
}

.data-updates-result-header {
  padding: 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.data-updates-result-row {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  border-left: 3px solid;
}

.data-updates-result-row.data-updates-result-success {
  background: rgba(34, 197, 94, 0.05);
  border-left-color: #22c55e;
}

.data-updates-result-row.data-updates-result-error {
  background: rgba(239, 68, 68, 0.05);
  border-left-color: #ef4444;
}

.data-updates-result-status {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.data-updates-result-success .data-updates-result-status {
  color: #22c55e;
}

.data-updates-result-error .data-updates-result-status {
  color: #ef4444;
}

.data-updates-result-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.data-updates-result-details code {
  background: rgba(255,255,255,0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
}

.data-updates-result-summary {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border-top: 2px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.subscription-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}
.sub-free { background: rgba(139,148,158,0.2); color: var(--muted); }
.sub-pro { background: rgba(88,166,255,0.2); color: var(--accent); }
.sub-business { background: rgba(163,113,247,0.2); color: #a371f7; }
.sub-three_days { background: rgba(63,185,80,0.15); color: var(--success); }
.sub-one_month { background: rgba(63,185,80,0.2); color: var(--success); }
.sub-three_months { background: rgba(63,185,80,0.25); color: var(--success); }
.sub-six_months { background: rgba(63,185,80,0.3); color: var(--success); }
.sub-twelve_months { background: rgba(63,185,80,0.35); color: var(--success); }
.sub-lifetime { background: rgba(245,197,24,0.2); color: #f5c518; }
.admin-pagination {
  margin-top: 1rem;
}
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.pagination-info {
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-input {
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.admin-input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-input::placeholder {
  color: var(--muted);
}
.admin-select {
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.admin-select:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.btn-danger {
  background: var(--error);
  color: #fff;
}
.btn-danger:hover {
  background: #da3633;
}
/* Admin Plans Grid */
.admin-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.admin-plan-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.admin-plan-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(88,166,255,0.2);
}
.admin-plan-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--text);
}
.admin-plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.admin-plan-price .currency {
  font-size: 1rem;
  vertical-align: top;
}
.admin-plan-detail {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.admin-plan-note {
  margin: 0.75rem 0 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* Admin Categories tree */
.admin-categories-tree-wrap {
  max-height: 60vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  background: var(--bg2);
  padding: 0.75rem 1rem;
}
.admin-category-tree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.admin-category-tree > .loading-cell,
.admin-category-tree > .empty-cell,
.admin-category-tree > .error-cell {
  padding: 0.5rem 0;
  color: var(--muted);
}
.admin-category-tree-item {
  margin: 0.2rem 0;
}
.admin-category-tree-item > .admin-category-tree {
  margin-left: 1.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.admin-category-tree-node {
  font-size: 0.9rem;
  color: var(--text);
}
.admin-category-tree-count {
  color: var(--muted);
  font-size: 0.85em;
}

/* Admin Categories Breadcrumb */
.admin-categories-breadcrumb {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.admin-breadcrumb-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}
.admin-breadcrumb-link:hover {
  text-decoration: underline;
}
.admin-category-card {
  cursor: pointer;
}
.admin-category-card:hover {
  border-color: var(--accent);
}

/* Categories Management Panel */
.categories-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.95rem;
}
.breadcrumb-item {
  color: var(--accent);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.breadcrumb-item:hover {
  background: rgba(88,166,255,0.15);
}
.breadcrumb-current {
  color: var(--text);
  cursor: default;
  font-weight: 600;
}
.breadcrumb-current:hover {
  background: transparent;
}
.breadcrumb-separator {
  color: var(--muted);
  margin: 0 0.15rem;
}
.breadcrumb-root {
  font-weight: 500;
}

.categories-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.categories-toolbar .btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}
.categories-toolbar .btn svg {
  flex-shrink: 0;
}

.categories-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.categories-section {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.categories-section-title {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.category-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.category-card:hover {
  border-color: var(--accent);
  background: rgba(88,166,255,0.05);
}
.category-card-name {
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.category-count {
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 600;
}
.category-card-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.categories-loading,
.categories-empty,
.categories-error {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}
.categories-error {
  color: var(--error);
}

.categories-ideas-list .admin-table {
  margin: 0;
}
.categories-ideas-list .admin-table a {
  color: #ffffff;
  text-decoration: underline;
}
.categories-ideas-list .admin-table a:hover {
  color: #e0e0e0;
}
.ideas-table-wrapper {
  overflow-x: auto;
}

/* Idea actions in categories panel */
.idea-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.idea-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.idea-actions .btn-text {
  font-size: 0.75rem;
}
.idea-actions .no-actions {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}
.idea-move-subcategory-select {
  max-width: 180px;
}
.idea-move-parent-btn {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #444 !important;
}
.idea-move-parent-btn:hover {
  background: #222222 !important;
  color: #ffffff !important;
}

/* Button sizes */
.btn-xs {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.admin-select-sm {
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  min-width: 140px;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.admin-select-sm:focus {
  outline: none;
  border-color: var(--accent);
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-content {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text);
}
.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
}
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.modal-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem 0;
}
.modal-warning {
  color: var(--error);
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}
.modal-category-name {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

/* Admin Modal */
.admin-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
}
.admin-modal-dialog {
  position: relative;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  z-index: 2001;
}
.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.admin-modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}
.admin-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
  transition: color 0.2s;
}
.admin-modal-close:hover {
  color: var(--text);
}
.admin-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.admin-form-group {
  margin-bottom: 1.25rem;
}
.admin-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}
.admin-form-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  box-sizing: border-box;
}
.admin-form-input:focus {
  outline: none;
  border-color: var(--accent);
}
.admin-form-help {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Promo Code Form Styles */
.promo-code-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.promo-code-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.promo-code-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.promo-code-form-field-full {
  grid-column: 1 / -1;
}
.promo-code-form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.promo-code-form-field .required {
  color: var(--error);
  margin-left: 0.25rem;
}
.promo-code-form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: -0.25rem;
  line-height: 1.4;
}
.promo-code-form-field .admin-input,
.promo-code-form-field .admin-select {
  margin-top: 0;
}

@media (max-width: 768px) {
  .promo-code-form-row {
    grid-template-columns: 1fr;
  }
  .admin-container {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem;
  }
  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .admin-stats {
    flex-direction: row;
    gap: 2rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }
  .admin-content {
    padding: 1rem;
  }
  .admin-search {
    width: 100%;
  }
}

/* Newsletter Styles */
.newsletter-intro {
  color: var(--muted);
  margin: 0 0 1.5rem 0;
}
.newsletter-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.newsletter-option-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-option-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.newsletter-option-card .option-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.newsletter-option-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  color: var(--text);
}
.newsletter-option-card p {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.newsletter-count-selector {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.newsletter-count-selector label {
  color: var(--muted);
}
.newsletter-type-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}
.type-easiest { background: rgba(88,166,255,0.2); color: var(--accent); }
.type-mrr { background: rgba(245,197,24,0.2); color: #f5c518; }
.type-overall { background: rgba(163,113,247,0.2); color: #a371f7; }
.type-tam { background: rgba(63,185,80,0.2); color: var(--success); }
.type-painkiller { background: rgba(248,81,73,0.2); color: var(--error); }
.type-no_competition { background: rgba(56,189,248,0.2); color: #38bdf8; }
.type-random_pick { background: rgba(163,113,247,0.2); color: #a371f7; }
.newsletter-preview-dialog {
  width: 80vw;
  max-width: 80vw;
  height: 80vh;
  max-height: 80vh;
}
.newsletter-preview-body {
  padding: 0;
  flex: 1;
  min-height: 0;
}
.newsletter-preview-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f1419;
}
@media (max-width: 768px) {
  .newsletter-options {
    grid-template-columns: 1fr;
  }
}

/* Vote Buttons */
.vote-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.vote-buttons-modal {
  margin-top: 0.5rem;
}
.btn-vote {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.btn-vote:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}
.btn-vote:active {
  transform: scale(0.95);
}
.btn-vote-up.active {
  background: rgba(63,185,80,0.2);
  border-color: var(--success);
}
.btn-vote-down.active {
  background: rgba(248,81,73,0.2);
  border-color: var(--error);
}
.vote-score {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  min-width: 1.5rem;
  text-align: center;
}
.vote-score.positive {
  color: var(--success);
}
.vote-score.negative {
  color: var(--error);
}

/* Stats Section */
.stats-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
.stat-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.stat-icon {
  font-size: 2rem;
  display: inline-block;
}
.stat-content {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Users Page */
.users-page {
  display: flex;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
.users-sidebar {
  flex: 0 0 220px;
}
.users-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.users-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.users-tab:hover {
  background: rgba(88,166,255,0.1);
  border-color: var(--accent);
  color: var(--accent);
}
.users-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.users-tab .tab-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
}
.users-content {
  flex: 1;
  min-width: 0;
}
.users-tab-content {
  display: none;
}
.users-tab-content.active {
  display: block;
}
.users-tab-content h1 {
  font-size: 1.75rem;
  margin: 0 0 2rem 0;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 5px solid rgba(255, 255, 255, 0.08);
}

/* Profile Section */
.profile-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.profile-header-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.profile-avatar-wrapper {
  flex-shrink: 0;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(88,166,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(88,166,255,0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.profile-avatar-initial {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}
.profile-name-section {
  flex: 1;
}
.profile-name {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.profile-email {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0;
}
.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.profile-card {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.profile-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.profile-card-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}
.profile-card-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.profile-card-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}
.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-detail-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.profile-detail-value {
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
  font-weight: 500;
}
.profile-detail-value-small {
  font-size: 0.9rem;
  font-family: monospace;
  color: var(--muted);
  word-break: break-all;
}

/* Plan Section */
.plan-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.plan-current {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
}
.plan-current h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem 0;
  color: var(--text);
}
.plan-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.plan-badge-free {
  background: #f97316;
  color: #fff;
}
.plan-badge-paid {
  background: var(--accent);
  color: #fff;
}
.plan-description {
  color: var(--muted);
  margin: 0.5rem 0;
}
.plan-upgrade {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 2rem;
}
.plan-upgrade h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.plan-upgrade p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Ideas Section */
.ideas-section {
  margin-top: 0.5rem;
}
.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.idea-card-row {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem;
  transition: all 0.2s;
}
.idea-card-row:hover {
  border-color: rgba(88,166,255,0.3);
}
.idea-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.idea-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.idea-card-header h3 {
  font-size: 1.1rem;
  margin: 0;
  color: var(--text);
  flex: 1;
  font-weight: 600;
}
.idea-description-wrapper {
  position: relative;
  overflow: hidden;
}
.idea-description-wrapper.collapsed {
  max-height: 30px;
}
.idea-description-wrapper.expanded {
  max-height: none;
}
.idea-description {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.idea-description-wrapper.collapsed .idea-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.idea-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.375rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.25rem;
}
.idea-details-expanded {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
  }
}
.idea-details-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.idea-detail-field {
  padding: 0.625rem;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}
.idea-detail-field strong {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.375rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.idea-detail-field p {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 0.875rem;
}
.idea-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  align-items: center;
}
.idea-category {
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.idea-date {
  color: var(--muted);
  font-size: 0.8rem;
}
.idea-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.btn-expand-description {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--accent);
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  display: none;
}
.btn-expand-description:hover {
  background: rgba(88,166,255,0.1);
  border-color: var(--accent);
}
.btn-expand-details {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #ffffff;
  padding: 0.3rem 0.625rem;
  border-radius: var(--radius);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.btn-expand-details:hover {
  background: var(--accent-hover, #79b8ff);
  border-color: var(--accent-hover, #79b8ff);
}

/* Landing Pages Section */
.landing-pages-section {
  margin-top: 1rem;
}
.landing-pages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.landing-page-item {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.landing-page-info {
  flex: 1;
  min-width: 0;
}
.landing-page-info h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}
.landing-page-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
}
.landing-page-actions {
  flex-shrink: 0;
}

/* Files Section */
.files-section {
  margin-top: 1rem;
}
.files-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.file-item {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.file-info {
  flex: 1;
  min-width: 0;
}
.file-info h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
  word-break: break-word;
}
.file-meta {
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.file-type {
  font-weight: 600;
  color: var(--accent);
}
.file-idea {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0 0;
}
.file-actions {
  flex-shrink: 0;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}
.empty-state p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Button Styles */
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(88,166,255,0.1);
}

/* Responsive */
@media (max-width: 992px) {
  .users-page {
    flex-direction: column;
    padding: 1rem;
  }
  .users-sidebar {
    flex: 0 0 auto;
  }
  .users-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  .users-tab {
    white-space: nowrap;
  }
  .profile-details-grid {
    grid-template-columns: 1fr;
  }
  .profile-avatar-section {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .profile-name-section {
    text-align: center;
  }
  .idea-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .idea-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .landing-page-item,
  .file-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .landing-page-actions,
  .file-actions {
    width: 100%;
  }
  .landing-page-actions .btn,
  .file-actions .btn {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }
  
  /* Product Hunt badge - smaller on mobile */
  .producthunt-badge {
    margin-left: 4px;
    margin-right: 4px;
    padding: 2px;
  }
  
  .producthunt-badge img {
    width: 180px !important;
    height: 39px !important;
  }
}

/* Footer Styles */
.site-footer {
  background: var(--bg-secondary, #1a1a1a);
  color: var(--text, #e0e0e0);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.1));
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  text-align: center;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text, #e0e0e0);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted, #a0aec0);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary, #3b82f6);
  text-decoration: none;
}

.footer-link svg {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.footer-link:hover svg {
  opacity: 1;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-link {
    justify-content: center;
  }
}
