/* ==========================================================================
   365HALLOWEEN PUMPKIN EXPRESS // HAUNT DESIGN BOARD STYLES
   Industrial Haunted Railcar Aesthetics: Corrugated Steel, Glowing Amber,
   Mad-Lab Neon, and Authentic Sticky Note Pinboard
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12151d;
  --bg-tertiary: #1a1e29;
  --bg-card: rgba(22, 27, 38, 0.95);
  --border-subtle: #2d3345;
  --border-glow: rgba(255, 120, 0, 0.4);
  
  /* Pumpkin & Haunt Accents */
  --pumpkin-orange: #ff7700;
  --pumpkin-glow: #ff9900;
  --blood-red: #e63946;
  --toxic-green: #00e676;
  --electric-cyan: #00e5ff;
  --steam-purple: #9d4edd;
  --rust-iron: #b35422;
  --rail-steel: #8a99ad;
  --gold-accent: #ffd166;

  /* Typography */
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Syne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-note: 'Permanent Marker', cursive, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(255, 119, 0, 0.25);
  --shadow-toxic: 0 0 25px rgba(0, 230, 118, 0.25);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

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

body {
  background-color: var(--bg-primary);
  color: #e2e8f0;
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 119, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(0, 230, 118, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(10, 12, 16, 0.95), rgba(10, 12, 16, 0.95)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 2px, transparent 0, transparent 8px);
  min-height: 100vh;
}

/* Header & Navigation */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 24, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px rgba(255, 119, 0, 0.6));
  animation: pulse-flame 3s infinite alternate;
}

@keyframes pulse-flame {
  0% { transform: scale(1) rotate(-1deg); filter: drop-shadow(0 0 8px rgba(255, 119, 0, 0.4)); }
  100% { transform: scale(1.08) rotate(2deg); filter: drop-shadow(0 0 18px rgba(255, 153, 0, 0.8)); }
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-text h1 span.badge {
  background: linear-gradient(135deg, var(--pumpkin-orange), #b35422);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.brand-text p {
  font-size: 0.8rem;
  color: #8a99ad;
  letter-spacing: 0.3px;
}

/* User Identity Bar in Header */
.user-identity-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 40px;
  padding: 0.35rem 0.9rem;
  transition: all 0.2s ease;
}

.user-identity-badge:hover {
  border-color: var(--pumpkin-orange);
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.2);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #252c3d;
  border: 2px solid var(--pumpkin-orange);
}

.user-meta {
  display: flex;
  flex-direction: column;
}

.user-meta .name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.user-meta .role {
  font-size: 0.7rem;
  color: #8a99ad;
}

.switch-user-btn {
  background: none;
  border: none;
  color: var(--pumpkin-orange);
  cursor: pointer;
  font-size: 0.75rem;
  text-decoration: underline;
  margin-left: 0.25rem;
  padding: 0.2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Cloudflare Sync Pill */
.sync-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #8a99ad;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #2d3345;
}

.sync-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--toxic-green);
  box-shadow: 0 0 8px var(--toxic-green);
}

.sync-dot.syncing {
  background: var(--pumpkin-orange);
  box-shadow: 0 0 8px var(--pumpkin-orange);
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #ff7700, #e65100);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 119, 0, 0.35);
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 119, 0, 0.5);
  background: linear-gradient(135deg, #ff8800, #f57c00);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: #e2e8f0;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #252c3d;
  border-color: var(--pumpkin-orange);
  color: #fff;
}

.btn-success {
  background: linear-gradient(135deg, #00c853, #009624);
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 200, 83, 0.5);
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(180deg, rgba(22, 27, 38, 0.8) 0%, rgba(10, 12, 16, 0.95) 100%),
              url('/images/vintage_tractor_entry.jpg') center/cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(10, 12, 16, 0.7) 0%, rgba(10, 12, 16, 0.96) 90%);
}

.hero-content {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.prompt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 119, 0, 0.15);
  border: 1px solid rgba(255, 119, 0, 0.4);
  color: var(--pumpkin-orange);
  padding: 0.3rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 950px;
  margin-bottom: 1.5rem;
}

.gameplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gameplan-card {
  background: rgba(18, 22, 31, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.gameplan-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--pumpkin-orange);
}

.gameplan-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 119, 0, 0.5);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gameplan-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gameplan-card p {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.5;
}

.crew-chips-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crew-chips-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #8a99ad;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crew-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.crew-chip:hover, .crew-chip.active {
  background: rgba(255, 119, 0, 0.2);
  border-color: var(--pumpkin-orange);
  color: #fff;
}

.crew-chip .chip-avatar {
  font-size: 1rem;
}

/* Tabs */
.main-nav-tabs {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  position: sticky;
  top: 61px;
  z-index: 90;
}

.tabs-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
}

.tab-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--pumpkin-orange);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--pumpkin-orange);
  box-shadow: 0 0 10px var(--pumpkin-orange);
}

.tab-badge {
  background: #252c3d;
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.tab-btn.active .tab-badge {
  background: var(--pumpkin-orange);
  color: #000;
  font-weight: 800;
}

/* Toolbar */
.board-toolbar {
  max-width: 1600px;
  margin: 1.5rem auto 1rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-select, .search-input {
  background: var(--bg-secondary);
  color: #fff;
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.filter-select:focus, .search-input:focus {
  border-color: var(--pumpkin-orange);
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.3);
}

.search-input {
  width: 240px;
}

/* Tab Content */
.tab-content {
  display: none;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem 1.5rem;
}

.tab-content.active {
  display: block;
}

/* Sticky Board */
.sticky-board-container {
  min-height: 600px;
  background: #11141c;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
}

.sticky-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.sticky-note {
  position: relative;
  background: #fffbe6;
  color: #1a1a1a;
  border-radius: 4px;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(var(--rot, 0deg));
}

.sticky-note:hover {
  transform: translateY(-6px) rotate(0deg) scale(1.02);
  z-index: 10;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 119, 0, 0.3);
}

.sticky-note::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ff4d4d, #990000);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.sticky-note.color-amber { background: #ffeed6; border-left: 6px solid var(--pumpkin-orange); }
.sticky-note.color-slime { background: #e8fbed; border-left: 6px solid var(--toxic-green); }
.sticky-note.color-crimson { background: #ffebeb; border-left: 6px solid var(--blood-red); }
.sticky-note.color-blueprint { background: #e6f4ff; border-left: 6px solid var(--electric-cyan); }
.sticky-note.color-parchment { background: #fdf6e2; border-left: 6px solid var(--rust-iron); }
.sticky-note.color-slate { background: #edf2f7; border-left: 6px solid var(--rail-steel); }

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

.note-meta {
  display: flex;
  flex-direction: column;
}

.note-author {
  font-size: 0.85rem;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.note-role {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.note-category-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.note-triad-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #854d0e;
  background: rgba(234, 179, 8, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.note-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.note-content {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 1rem;
}

.note-image-preview {
  margin-bottom: 0.85rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  max-height: 180px;
}

.note-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.note-image-preview:hover img {
  transform: scale(1.05);
}

.note-footer {
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  padding-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.note-reactions {
  display: flex;
  gap: 0.35rem;
}

.reaction-btn {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
}

.reaction-btn:hover {
  background: #fff;
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.note-comments-toggle {
  background: none;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.note-comments-section {
  display: none;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.note-comments-section.open {
  display: block;
}

.comment-item {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.comment-author {
  font-weight: 800;
  color: #0f172a;
  margin-right: 0.3rem;
}

.comment-input-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.comment-input {
  flex: 1;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 4px;
}

.comment-submit-btn {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

/* ==========================================================================
   DRAG AND DROP STORY ARC BUILDER STYLES
   ========================================================================== */
.story-builder-header {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.story-builder-title h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.story-builder-title p {
  font-size: 0.85rem;
  color: #8a99ad;
}

.story-builder-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.storyboard-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  scroll-behavior: smooth;
}

.act-column {
  min-width: 320px;
  max-width: 340px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.act-column.drag-over {
  border-color: var(--pumpkin-orange);
  background: rgba(255, 119, 0, 0.05);
  box-shadow: 0 0 15px rgba(255, 119, 0, 0.2);
}

.act-column-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.act-column-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.act-column-header .act-container-tag {
  font-size: 0.7rem;
  color: var(--pumpkin-orange);
  font-weight: 700;
}

.act-blocks-dropzone {
  padding: 1rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.story-block-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: grab;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  user-select: none;
}

.story-block-card:hover {
  transform: translateY(-2px);
  border-color: var(--pumpkin-orange);
  box-shadow: 0 4px 12px rgba(255, 119, 0, 0.25);
}

.story-block-card:active {
  cursor: grabbing;
}

.story-block-card.dragging {
  opacity: 0.4;
  transform: scale(0.95);
  border: 2px dashed var(--pumpkin-orange);
}

.block-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.block-container-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 119, 0, 0.15);
  color: var(--pumpkin-orange);
}

.block-lead-chip {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 600;
}

.block-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.block-details {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.block-concept-thumb {
  width: 100%;
  height: 90px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.block-concept-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.block-concept-thumb:hover img {
  transform: scale(1.08);
}

.add-block-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-subtle);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.add-block-btn:hover {
  background: rgba(255, 119, 0, 0.1);
  border-color: var(--pumpkin-orange);
  color: #fff;
}

/* ==========================================================================
   100 UNIQUE FARM IDEAS & VOTING SYSTEM STYLES
   ========================================================================== */
.farm-ideas-intro {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.farm-intro-text h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.farm-intro-text p {
  font-size: 0.9rem;
  color: #94a3b8;
}

/* Category Filter Bar */
.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cat-filter-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-filter-btn:hover, .cat-filter-btn.active {
  background: var(--pumpkin-orange);
  border-color: var(--pumpkin-orange);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.3);
}

/* Farm Ideas Grid */
.farm-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.farm-idea-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.farm-idea-card:hover {
  transform: translateY(-4px);
  border-color: var(--pumpkin-orange);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.farm-idea-card.flagship {
  border: 1px solid rgba(255, 119, 0, 0.4);
  background: linear-gradient(180deg, rgba(30, 36, 50, 0.9) 0%, rgba(18, 22, 31, 0.95) 100%);
}

.flagship-badge {
  position: absolute;
  top: -10px;
  right: 15px;
  background: linear-gradient(135deg, #ff7700, #ffb703);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

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

.idea-cat-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-accent);
  background: rgba(255, 209, 102, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.idea-number-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: #64748b;
}

.idea-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.idea-concept-preview {
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  max-height: 190px;
  cursor: pointer;
  position: relative;
}

.idea-concept-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.idea-concept-preview:hover img {
  transform: scale(1.06);
}

.idea-concept-overlay {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 0.4rem 0.75rem;
  font-size: 0.7rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.idea-description {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.idea-build-notes {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--toxic-green);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.idea-build-notes strong {
  color: var(--toxic-green);
}

.idea-family-vibe {
  font-size: 0.78rem;
  color: var(--gold-accent);
  margin-bottom: 1rem;
}

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

.vote-btn-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vote-btn-pill:hover {
  background: rgba(255, 119, 0, 0.2);
  border-color: var(--pumpkin-orange);
  transform: scale(1.05);
}

.vote-btn-pill.voted {
  background: linear-gradient(135deg, var(--pumpkin-orange), #ff9900);
  color: #000;
  border-color: var(--pumpkin-orange);
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.4);
}

/* Modals & Popups */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.persona-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.persona-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.persona-btn:hover, .persona-btn.selected {
  border-color: var(--pumpkin-orange);
  background: rgba(255, 119, 0, 0.15);
  box-shadow: 0 0 12px rgba(255, 119, 0, 0.3);
}

.persona-icon { font-size: 1.6rem; }
.persona-name { font-size: 0.9rem; font-weight: 800; color: #fff; }
.persona-role-label { font-size: 0.72rem; color: #8a99ad; }

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 700; color: #cbd5e1; margin-bottom: 0.4rem; }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--pumpkin-orange);
  box-shadow: 0 0 10px rgba(255, 119, 0, 0.25);
}

.form-textarea { min-height: 110px; resize: vertical; }

.color-swatches { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.color-swatch-radio { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: all 0.2s ease; }
.color-swatch-radio.selected { transform: scale(1.15); border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.open { display: flex; }

.lightbox-content { max-width: 90vw; max-height: 85vh; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: var(--radius-md); box-shadow: 0 0 50px rgba(0,0,0,0.9); }
.lightbox-close { position: absolute; top: -40px; right: 0; color: #fff; font-size: 2rem; background: none; border: none; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 1.6rem; }
  .brand-text p { display: none; }
  .persona-picker-grid { grid-template-columns: 1fr; }
  .sticky-grid { grid-template-columns: 1fr; }
  .farm-ideas-grid { grid-template-columns: 1fr; }
  .search-input { width: 100%; }
}
