/* ==========================================================================
   3DX STAGING LAB - MINIMAL BLACK & WHITE + VIVID ORANGE DESIGN SYSTEM
   Aesthetic: High-Contrast Minimalist B&W, Sharp Lines, Electric Orange Accents
   ========================================================================== */

:root {
  /* Core Color Palette: Black, White & Vivid Point Orange */
  --bg-dark: #050505;
  --bg-card: rgba(18, 18, 20, 0.85);
  --bg-card-hover: rgba(28, 28, 32, 0.95);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-glow: rgba(255, 85, 0, 0.4);

  /* Vivid Point Orange Accent */
  --accent-orange: #ff5500;
  --accent-orange-hover: #ff6611;
  --accent-orange-glow: rgba(255, 85, 0, 0.35);

  /* Monochrome Standards */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-100: #f4f4f5;
  --color-gray-300: #d4d4d8;
  --color-gray-400: #a1a1aa;
  --color-gray-600: #52525b;
  --color-gray-800: #27272a;
  --color-gray-900: #18181b;

  /* Legacy mapping updated to Orange/B&W system */
  --accent-cyan: var(--accent-orange);
  --accent-purple: var(--color-white);
  --accent-blue: var(--color-gray-300);
  --accent-gold: var(--accent-orange);
  --accent-emerald: #10b981;
  --accent-rose: #ff5500;

  /* Theme Badges - Minimal B&W with Orange Accents */
  --theme-a-color: #ff5500; /* Inverted Triangle */
  --theme-b-color: #ffffff; /* Scale Contrast */
  --theme-c-color: #e4e4e7; /* Zero Gravity */
  --theme-d-color: #ff7722; /* Framing */
  --theme-e-color: #a1a1aa; /* Triangle */

  /* Typography */
  --text-main: #ffffff;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Radius & Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 25px rgba(255, 85, 0, 0.2);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.7);

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Canvas & Grid */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(255, 85, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
    linear-gradient(to bottom, rgba(5, 5, 5, 0.8), rgba(5, 5, 5, 0.98));
  z-index: 1;
  pointer-events: none;
}

.app-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

/* Header */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 28px;
  background: rgba(15, 15, 18, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 36px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-box {
  width: 46px;
  height: 46px;
  background: #000000;
  border: 2px solid var(--accent-orange);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.3);
}

.logo-3d {
  color: #ffffff;
}

.logo-x {
  color: var(--accent-orange);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1.2;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-orange);
  letter-spacing: 1.5px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: #000000;
  background: #ffffff;
  border-color: #ffffff;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nav-btn.hidden {
  display: none !important;
}

/* Sections */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Minimal Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Typography & Headings */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sub-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-orange);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.section-header {
  margin-bottom: 32px;
  text-align: center;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Hero Section */
.hero-banner-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.hero-banner-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-orange);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid var(--accent-orange);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-orange);
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-orange);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-orange);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 10px rgba(255, 85, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 16px;
}

.hero-description {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
}

.hero-img-glass {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  filter: contrast(1.05) saturate(1.1);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-orange);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(255, 85, 0, 0.4);
}

.btn-primary:hover {
  background: var(--accent-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 85, 0, 0.6);
}

.pulse-btn {
  animation: btnPulse 2.5s infinite;
}

@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(255, 85, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.btn-secondary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-secondary:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
}

.btn-accent {
  background: var(--accent-orange);
  color: #000000;
  font-weight: 700;
}

.btn-accent:hover {
  background: #ff6611;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(255, 85, 0, 0.4);
  color: var(--accent-orange);
}

.btn-outline-danger:hover:not(:disabled) {
  background: rgba(255, 85, 0, 0.15);
  border-color: var(--accent-orange);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Floating Keyword Cloud Section */
.floating-keywords-wrapper {
  background: #0d0d0f;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.section-header-sm {
  text-align: center;
  margin-bottom: 24px;
}

.section-header-sm h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 6px;
}

.section-header-sm p {
  font-size: 14px;
  color: var(--text-muted);
}

.cloud-filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cloud-filter-btn {
  background: #18181b;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.cloud-filter-btn:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.cloud-filter-btn.active {
  background: var(--accent-orange);
  color: #000000;
  border-color: var(--accent-orange);
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.4);
}

.keyword-cloud-box {
  position: relative;
  width: 100%;
  height: 380px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Floating Tag Pills - High Contrast Minimal B&W + Orange */
.kw-pill {
  position: absolute;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kw-pill:hover {
  transform: scale(1.15);
  z-index: 100;
}

.kw-pill.cat-comp {
  background: #000000;
  border: 1.5px solid var(--accent-orange);
  color: var(--accent-orange);
  box-shadow: 0 0 12px rgba(255, 85, 0, 0.25);
}
.kw-pill.cat-comp:hover {
  background: var(--accent-orange);
  color: #000000;
}

.kw-pill.cat-nature {
  background: #18181b;
  border: 1.5px solid #ffffff;
  color: #ffffff;
}
.kw-pill.cat-nature:hover {
  background: #ffffff;
  color: #000000;
}

.kw-pill.cat-material {
  background: #000000;
  border: 1.5px solid #d4d4d8;
  color: #d4d4d8;
}
.kw-pill.cat-material:hover {
  background: #d4d4d8;
  color: #000000;
}

.kw-pill.cat-style {
  background: rgba(255, 85, 0, 0.12);
  border: 1.5px solid var(--accent-orange);
  color: #ffffff;
}
.kw-pill.cat-style:hover {
  background: var(--accent-orange);
  color: #000000;
}

/* SETUP SECTION */
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.input-form {
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  gap: 10px;
}

.input-group input[type="text"] {
  flex: 1;
  background: #0a0a0c;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: #ffffff;
  font-size: 15px;
  outline: none;
  transition: var(--transition-fast);
}

.input-group input[type="text"]:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.25);
}

.quick-preset-box {
  background: #121215;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.preset-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.preset-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-chip {
  background: #1c1c20;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-chip:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #000000;
  font-weight: 700;
}

.bulk-input-box {
  border-top: 1px dashed var(--border-glass);
  padding-top: 16px;
}

.text-link-btn {
  background: transparent;
  border: none;
  color: var(--accent-orange);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.text-link-btn:hover {
  text-decoration: underline;
}

.bulk-container {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bulk-container.hidden {
  display: none;
}

.bulk-container textarea {
  width: 100%;
  height: 100px;
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  resize: vertical;
  outline: none;
}

.bulk-container textarea:focus {
  border-color: var(--accent-orange);
}

/* Registered Members List */
.list-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.count-badge {
  background: var(--accent-orange);
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.distribution-preview-info {
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid var(--accent-orange);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.members-chip-list {
  min-height: 200px;
  max-height: 320px;
  overflow-y: auto;
  background: #08080a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
  margin-bottom: 24px;
}

.empty-state {
  width: 100%;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  text-align: center;
  gap: 12px;
}

.empty-state i {
  font-size: 32px;
  opacity: 0.5;
}

.member-chip {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.chip-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange);
  background: rgba(255, 85, 0, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.chip-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}

.chip-remove-btn:hover {
  color: var(--accent-orange);
}

.list-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* RESULTS SECTION */
.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.result-top-actions {
  display: flex;
  gap: 10px;
}

/* Theme Filter Tabs */
.theme-tabs-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
}

.theme-tab-btn {
  background: #121215;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-fast);
}

.theme-tab-btn:hover {
  background: #1c1c20;
  color: #ffffff;
}

.theme-tab-btn.active {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
  font-weight: 800;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.theme-badge-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #000000;
}

.badge-a { background: var(--accent-orange); }
.badge-b { background: #ffffff; }
.badge-c { background: #e4e4e7; }
.badge-d { background: #ff7722; }
.badge-e { background: #a1a1aa; }

/* 3D Staging Preset Viewport Card */
.staging-3d-card {
  margin-bottom: 32px;
  padding: 24px;
}

.staging-3d-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.staging-3d-info h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 4px;
}

.staging-3d-info p {
  font-size: 13px;
  color: var(--text-muted);
}

.staging-3d-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.control-group select {
  background: #050505;
  border: 1px solid var(--border-glass);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.canvas-3d-wrapper {
  position: relative;
  width: 100%;
  height: 360px;
  background: #050505;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

#staging-canvas-3d {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-instruction-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Results Grid & Cards */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.theme-group-card {
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.theme-group-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-orange);
}

.theme-group-header {
  padding: 20px;
  background: #18181b;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.theme-group-header.theme-a { border-top: 4px solid var(--accent-orange); }
.theme-group-header.theme-b { border-top: 4px solid #ffffff; }
.theme-group-header.theme-c { border-top: 4px solid #e4e4e7; }
.theme-group-header.theme-d { border-top: 4px solid #ff7722; }
.theme-group-header.theme-e { border-top: 4px solid #a1a1aa; }

.theme-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-letter-box {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: #000000;
}

.theme-title-text h4 {
  font-family: var(--font-display);
  font-size: 16px;
  color: #ffffff;
  line-height: 1.2;
}

.theme-title-text span {
  font-size: 12px;
  color: var(--text-muted);
}

.theme-member-count {
  font-family: var(--font-mono);
  font-size: 12px;
  background: #27272a;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: #ffffff;
}

.theme-body-content {
  padding: 20px;
}

.theme-guideline-box {
  background: #050505;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-orange);
}

.assigned-members-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assigned-member-item {
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-fast);
}

.assigned-member-item:hover {
  background: #222226;
  border-color: var(--accent-orange);
}

.member-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #000000;
}

.member-name-box h5 {
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
}

.indiv-theme-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  background: #27272a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.indiv-theme-badge.cat-nature {
  border-color: #ffffff;
  color: #ffffff;
}

.indiv-theme-badge.cat-material {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.indiv-theme-badge.cat-style {
  border-color: var(--text-muted);
  color: #ffffff;
}

.member-prompt-btn {
  background: #27272a;
  border: 1px solid var(--border-glass);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.member-prompt-btn:hover {
  background: var(--accent-orange);
  color: #000000;
  border-color: var(--accent-orange);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 540px;
  background: #0d0d0f;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 85, 0, 0.3);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 24px;
  cursor: pointer;
}

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

.modal-header {
  margin-bottom: 20px;
}

.category-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #000000;
  background: var(--accent-orange);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 800;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: #ffffff;
  margin-top: 8px;
}

.modal-body {
  margin-bottom: 24px;
}

.kw-guide-box {
  background: #050505;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.kw-guide-box h4 {
  font-size: 13px;
  color: var(--accent-orange);
  margin-bottom: 8px;
}

.kw-guide-box ul {
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.kw-guide-box li {
  margin-bottom: 6px;
}

.recipe-specs {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  background: #18181b;
  padding: 12px;
  border-radius: var(--radius-md);
}

.spec-item {
  font-size: 13px;
  color: var(--text-muted);
}

.spec-item strong {
  color: var(--accent-orange);
}

.prompt-box label {
  font-size: 12px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.prompt-box textarea {
  width: 100%;
  height: 120px;
  background: #000000;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  resize: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast Notification */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #0d0d0f;
  border: 1.5px solid var(--accent-orange);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 85, 0, 0.3);
  animation: slideInRight 0.3s ease;
}

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

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-banner-container {
    grid-template-columns: 1fr;
    padding: 32px;
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .result-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}
