/* ========================================
   CSS Custom Properties
   ======================================== */
:root {
  /* 라이트 = #05 Untitled UI (강디 미리보기 값 그대로) */
  --color-bg: #fcfcfd;
  --color-surface: #ffffff;
  --color-subtle: #f9fafb;
  --color-brand-bg: #f9f5ff;
  --color-hero-start: #0f172a;
  --color-hero-end: #1e293b;
  --color-accent-start: #8a38f5;
  --color-accent-end: #d53a6b;
  --color-text: #101828;
  --color-text-secondary: #475467;
  --color-text-light: #667085;
  --color-border: #eaecf0;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.05);
  --shadow-md: 0 4px 8px -2px rgba(16,24,40,0.08), 0 2px 4px -2px rgba(16,24,40,0.04);
  --shadow-lg: 0 12px 24px -6px rgba(16,24,40,0.12), 0 4px 8px -2px rgba(16,24,40,0.05);
  --font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: all 0.2s ease;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent-start);
  color: white;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.hidden {
  display: none !important;
}

/* ========================================
   Header
   ======================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: auto;
}

#auth-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.btn-login:hover {
  background: #f1f5f9;
  box-shadow: var(--shadow-sm);
}

#user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

#user-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.btn-logout {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  background: none;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-logout:hover {
  color: var(--color-danger);
  background: #fef2f2;
}

/* ========================================
   Hero Section
   ======================================== */
#hero {
  background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
  color: white;
  text-align: center;
  padding: 80px 24px 100px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(139,92,246,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 10% 20%, rgba(129,140,248,0.6) 50%, transparent 50%),
    radial-gradient(2px 2px at 25% 70%, rgba(192,132,252,0.5) 50%, transparent 50%),
    radial-gradient(3px 3px at 40% 35%, rgba(99,102,241,0.7) 50%, transparent 50%),
    radial-gradient(2px 2px at 55% 80%, rgba(167,139,250,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 70% 15%, rgba(129,140,248,0.5) 50%, transparent 50%),
    radial-gradient(3px 3px at 85% 55%, rgba(192,132,252,0.6) 50%, transparent 50%),
    radial-gradient(2px 2px at 15% 90%, rgba(99,102,241,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 60% 45%, rgba(167,139,250,0.5) 50%, transparent 50%),
    radial-gradient(3px 3px at 90% 85%, rgba(129,140,248,0.6) 50%, transparent 50%),
    radial-gradient(2px 2px at 35% 10%, rgba(192,132,252,0.4) 50%, transparent 50%),
    radial-gradient(2px 2px at 80% 40%, rgba(99,102,241,0.5) 50%, transparent 50%),
    radial-gradient(2px 2px at 50% 60%, rgba(167,139,250,0.6) 50%, transparent 50%);
  animation: particleFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-5%, 5%); }
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  33% { transform: translateY(-8px) scale(1.1); opacity: 0.9; }
  66% { transform: translateY(5px) scale(0.95); opacity: 0.7; }
  100% { transform: translateY(-3px) scale(1.05); opacity: 0.8; }
}

.hero-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.7;
  transition: opacity 0.5s ease;
}

#hero.typing .hero-neural {
  opacity: 1;
}

#hero.typing::before {
  animation: heroGlow 2s ease-in-out infinite alternate;
}

#hero.typing::after {
  animation: particleFloat 3s ease-in-out infinite alternate;
}

@keyframes heroPulse {
  0% { box-shadow: inset 0 0 60px rgba(99,102,241,0); }
  50% { box-shadow: inset 0 0 80px rgba(99,102,241,0.15); }
  100% { box-shadow: inset 0 0 60px rgba(99,102,241,0); }
}

#hero.typing {
  animation: heroPulse 1.5s ease-in-out infinite;
}

#hero.pulse {
  animation: heroFlash 0.3s ease-out;
}

@keyframes heroFlash {
  0% { box-shadow: inset 0 0 30px rgba(129,140,248,0); }
  50% { box-shadow: inset 0 0 60px rgba(129,140,248,0.2); }
  100% { box-shadow: inset 0 0 30px rgba(129,140,248,0); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-accent {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Equalizer */
.equalizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 48px;
  padding: 8px 0;
  margin-bottom: 20px;
}

.eq-bar {
  width: 8px;
  height: 4px;
  min-height: 4px;
  background: linear-gradient(180deg, #818cf8, #6366f1);
  border-radius: 2px;
  transition: height 0.3s ease-out, opacity 0.5s ease;
  opacity: 0.3;
}

.equalizer.active .eq-bar {
  opacity: 1;
  box-shadow: 0 0 6px rgba(99,102,241,0.4);
}

.hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
}

.hero-counter strong {
  font-size: 1.25rem;
  color: #818cf8;
  font-weight: 700;
}

/* ========================================
   Main Content - Two Column Layout
   ======================================== */
#content {
  max-width: 1200px;
  margin: -50px auto 0;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  position: relative;
  z-index: 2;
}

/* ========================================
   Left Column - Ideas List
   ======================================== */
.column-left {
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.sort-controls {
  display: flex;
  gap: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
}

.sort-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 500;
  background: none;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.sort-btn.active {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
}

.sort-btn:not(.active):hover {
  background: #f1f5f9;
}

/* State Messages */
.state-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-secondary);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent-start);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.empty-desc {
  font-size: 0.9rem;
}

/* ========================================
   Idea Card
   ======================================== */
.idea-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.idea-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.idea-card.expanded {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-start);
}

.idea-header {
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.idea-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.idea-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  flex: 1;
}

.expand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.idea-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.idea-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.idea-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.825rem;
  color: var(--color-text-secondary);
}

.idea-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.idea-preview {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.idea-card.expanded .idea-preview {
  display: none;
}

/* Waitlist info in card header */
.waitlist-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

.waitlist-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent-start);
  display: flex;
  align-items: center;
  gap: 4px;
}

.waitlist-count.hot {
  color: var(--color-danger);
}

/* Avatar Stack */
.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.avatar-stack .avatar-more {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-surface);
  margin-left: -8px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

/* Badges */
.badge-popular {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

.badge-closing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #fef2f2;
  color: var(--color-danger);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}

/* Card Body (accordion) */
.idea-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.idea-body-inner {
  padding: 0 20px 20px;
}

.idea-description {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 20px;
  white-space: pre-wrap;
}

/* Progress Bar */
.progress-section {
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.progress-bar {
  height: 6px;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

/* Waitlist Members in expanded */
.waitlist-members {
  margin-bottom: 16px;
}

.waitlist-members-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.waitlist-members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.waitlist-member {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: var(--color-bg);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.waitlist-member img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.member-name {
  flex-shrink: 0;
}

.badge-paid {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  white-space: nowrap;
}

.badge-free {
  font-size: 0.65rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Trigger messages inside card */
.card-trigger {
  padding: 10px 14px;
  background: #fffbeb;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #92400e;
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-trigger.danger {
  background: #fef2f2;
  color: var(--color-danger);
}

/* Join Waitlist Button */
.btn-join-waitlist {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-join-waitlist:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138,56,245,0.3);
}

.btn-join-waitlist.joined {
  background: var(--color-bg);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.btn-join-waitlist.joined:hover {
  background: #fef2f2;
  color: var(--color-danger);
  border-color: var(--color-danger);
  box-shadow: none;
  transform: none;
}

.btn-join-waitlist:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Right Column - Sticky Form
   ======================================== */
.column-right {
  min-width: 0;
}

.sticky-form {
  position: sticky;
  top: 88px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Login Prompt */
.login-prompt-text {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.btn-google-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-google-login:hover {
  background: var(--color-subtle);
  box-shadow: var(--shadow-sm);
}

/* Form */
.form-group {
  margin-bottom: 16px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent-start);
  box-shadow: 0 0 0 3px rgba(138,56,245,0.1);
  background: var(--color-surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(138,56,245,0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   Subscribe Section
   ======================================== */
.subscribe-section {
  margin-top: 24px;
}

.subscribe-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.subscribe-divider::before,
.subscribe-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.subscribe-divider span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

.subscribe-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.subscribe-input-group {
  display: flex;
  gap: 8px;
}

.subscribe-input-group input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.subscribe-input-group input:focus {
  border-color: var(--color-accent-start);
  box-shadow: 0 0 0 3px rgba(138,56,245,0.1);
}

.btn-subscribe {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-subscribe:hover {
  opacity: 0.9;
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--color-text);
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  border-color: var(--color-accent-start);
}

.checkbox-label input:checked + .checkmark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.subscribe-email-text {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 6px;
  margin-left: 30px;
}

.subscribe-success {
  padding: 10px;
  background: #ecfdf5;
  color: var(--color-success);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  margin-top: 8px;
}

/* ========================================
   Trigger Messages
   ======================================== */
.trigger-messages {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trigger-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.trigger-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ========================================
   Toast Notifications
   ======================================== */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  background: var(--color-hero-start);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 360px;
}

.toast.success {
  background: var(--color-success);
}

.toast.info {
  background: var(--color-accent-start);
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

/* ========================================
   Footer
   ======================================== */
#site-footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--color-text-light);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  #hero {
    padding: 60px 20px 80px;
  }

  #content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 40px;
  }

  .column-right {
    order: -1;
  }

  .sticky-form {
    position: static;
  }

  .header-inner {
    padding: 0 16px;
  }

  #user-name {
    display: none;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .idea-header {
    padding: 16px;
  }

  .idea-body-inner {
    padding: 0 16px 16px;
  }

  .sticky-form {
    padding: 20px;
  }
}

/* ========================================
   추가: 일일 제한 안내 / 이미지 업로드
   ======================================== */
.daily-limit-info {
  background: linear-gradient(135deg, #eef2ff, #f3e8ff);
  color: #4338ca;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e9d7fe;
  margin-bottom: 14px;
  font-weight: 500;
}
.daily-limit-info.limit-reached {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #b91c1c;
  border-color: #fecaca;
}

.image-upload-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  transition: var(--transition);
  background: #fafbff;
}
.image-upload-label:hover {
  border-color: var(--color-accent-start);
  color: var(--color-accent-start);
  background: #f0f3ff;
}
.image-upload-icon {
  font-size: 1.1rem;
}

.image-preview {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-subtle);
}
.image-preview img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.image-preview-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 10px;
}
.image-preview-info {
  font-size: 0.78rem;
  color: var(--color-text-light);
}
.image-remove-btn {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
.image-remove-btn:hover {
  background: var(--color-danger);
  color: #fff;
}

/* 카드 안 첨부 이미지 */
.idea-image-wrap {
  margin: 0 0 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}
.idea-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   모바일 공유된 아이디어 헤더 어두운색
   ======================================== */
@media (max-width: 768px) {
  .section-header h2 {
    color: #1e293b;
  }
  .section-header h2 .count-badge {
    color: #ffffff; /* 그라디언트 배경 위 글자는 그대로 흰색 유지 */
  }
}

/* ============================================
   추가: 게시판/상세/관심/댓글/이미지+버튼/상태뱃지
   ============================================ */

/* 헤더 nav */
.primary-nav { display: flex; gap: 6px; align-items: center; flex: 1; justify-content: center; }
.primary-nav .nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
}
.primary-nav .nav-link:hover { background: rgba(138,56,245,0.08); color: var(--color-accent-start); }
.primary-nav .nav-link.active { background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end)); color: #fff; }

/* 글쓰기 - 진행 조건 안내 */
.threshold-info {
  background: linear-gradient(135deg,#ecfeff,#dbeafe);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  color: #0369a1;
  padding: 12px 14px;
  font-size: 0.85rem;
  margin: 0 0 14px;
  line-height: 1.55;
}
.threshold-info strong { color: #0c4a6e; }

/* 이미지 + 버튼 */
.image-attach-row { display: flex; align-items: center; gap: 10px; }
.image-add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-accent-start);
  background: var(--color-surface);
  color: var(--color-accent-start);
  font-size: 1.5rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.image-add-btn:hover {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  transform: scale(1.05);
}
.image-add-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.image-add-btn .plus-icon { font-weight: 600; }
.image-add-help { font-size: 0.78rem; color: var(--color-text-light); }

.image-previews {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px;
}
.thumb-item {
  position: relative;
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #f1f5f9;
}
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-remove {
  position: absolute; top: 2px; right: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.95rem; line-height: 1;
  border: none; cursor: pointer;
}
.thumb-remove:hover { background: var(--color-danger); }
.thumb-size {
  position: absolute; bottom: 2px; left: 2px;
  background: rgba(0,0,0,0.6); color: #fff;
  font-size: 0.65rem; padding: 1px 4px; border-radius: 3px;
}

/* 카드 새로운 레이아웃 (메인 페이지) */
.idea-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}
.idea-card:hover { border-color: var(--color-accent-start); box-shadow: var(--shadow-md); }
.card-row { display: flex; gap: 14px; align-items: flex-start; }
.card-main { flex: 1; min-width: 0; }
.card-thumbs { position: relative; flex-shrink: 0; }
.card-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumbs { position: relative; }
.card-thumb-more {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15,23,42,0.88);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.card-line-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.idea-title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.idea-preview { font-size: 0.85rem; color: var(--color-text-secondary); line-height: 1.5; margin-bottom: 10px; }
.idea-meta {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.idea-author { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--color-text-secondary); }
.idea-author img { width: 20px; height: 20px; border-radius: 50%; }
.idea-counts { display: inline-flex; gap: 10px; font-size: 0.78rem; color: var(--color-text-secondary); }
.idea-counts > span { white-space: nowrap; }

.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-mini {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 4px;
}
.btn-mini:hover { border-color: var(--color-accent-start); color: var(--color-accent-start); }
.btn-mini:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-mini.btn-paid.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff; border-color: transparent;
}
.btn-mini.btn-free.active {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff; border-color: transparent;
}
.btn-mini.btn-like.active {
  background: #fef2f2; color: #ef4444; border-color: #fecaca;
}
.btn-mini.btn-detail { background: var(--color-subtle); }
.btn-mini.btn-share { padding: 6px 8px; }

/* 상태 뱃지 */
.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}
.status-waiting   { background: #e0e7ff; color: #3730a3; }
.status-ready     { background: #d1fae5; color: #065f46; }
.status-building  { background: #fef3c7; color: #92400e; }
.status-completed { background: #cffafe; color: #155e75; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

.badge-threshold {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: var(--radius-full);
}

/* 헤더 - 관심 버튼 */
.favorites-btn {
  background: transparent; border: 2px solid transparent;
  border-radius: 50%; padding: 0; cursor: pointer;
  transition: var(--transition);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
}
.favorites-btn:hover { border-color: var(--color-accent-start); }
.favorites-btn .user-avatar { width: 32px; height: 32px; }

/* 모달 */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-window {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 600px; width: 100%;
  max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}
.modal-head h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: transparent; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--color-text-light);
  width: 32px; height: 32px; border-radius: 50%;
}
.modal-close:hover { background: var(--color-bg); color: var(--color-text); }
.modal-body { padding: 16px 20px; overflow-y: auto; }

/* 등록 성공 공유 모달 */
.modal-window.share-success { max-width: 440px; position: relative; }
.modal-window.share-success .modal-close { position: absolute; top: 10px; right: 12px; }
.share-success-body { padding: 32px 26px 28px; text-align: center; }
.share-success-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; }
.share-success-body h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 12px; }
.share-success-goal {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 12px 14px;
  font-size: 0.92rem; color: var(--color-text); margin-bottom: 12px;
}
.share-success-hint {
  font-size: 0.85rem; color: var(--color-text-secondary);
  line-height: 1.5; margin-bottom: 20px;
}
.share-success-actions { display: flex; flex-direction: column; gap: 10px; }
.share-success-btn {
  padding: 13px 16px; border-radius: var(--radius-md);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: var(--transition);
}
.share-success-btn.primary {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
}
.share-success-btn.primary:hover { opacity: 0.92; }
.share-success-btn.ghost {
  background: transparent; color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.share-success-btn.ghost:hover { background: var(--color-bg); color: var(--color-text); }

.fav-item {
  display: flex; align-items: stretch; gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px;
}
.fav-item-main { flex: 1; min-width: 0; cursor: pointer; }
.fav-item-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fav-item-desc { font-size: 0.85rem; color: var(--color-text-secondary); }
.fav-remove {
  background: transparent;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  border-radius: 50%;
  width: 28px; height: 28px;
  font-size: 1rem; line-height: 1;
  cursor: pointer; flex-shrink: 0;
}
.fav-remove:hover { background: var(--color-danger); color: #fff; }

/* 게시판 페이지 */
.board-main { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.board-head h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.board-sub { color: var(--color-text-secondary); margin-bottom: 22px; font-size: 0.92rem; }
.board-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0; margin-bottom: 20px;
}
.board-tab {
  background: transparent; border: none; cursor: pointer;
  padding: 10px 16px;
  font-size: 0.92rem; font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.board-tab:hover { color: var(--color-accent-start); }
.board-tab.active {
  color: var(--color-accent-start);
  border-bottom-color: var(--color-accent-start);
  font-weight: 700;
}
.board-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.board-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; gap: 14px;
}
.board-card:hover { border-color: var(--color-accent-start); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.board-card-main { flex: 1; min-width: 0; }
.board-card-line { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.board-card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.board-card-desc { font-size: 0.85rem; color: var(--color-text-secondary); margin-bottom: 10px; line-height: 1.5; }
.board-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; gap: 8px; flex-wrap: wrap;
}
.board-author { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-secondary); }
.board-author img { width: 18px; height: 18px; border-radius: 50%; }
.board-counts { display: inline-flex; gap: 8px; color: var(--color-text-secondary); }
.board-card-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden; flex-shrink: 0;
  background: #f1f5f9;
}
.board-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.board-empty { text-align: center; padding: 60px 20px; color: var(--color-text-light); }

/* 상세 페이지 */
.detail-main { max-width: 800px; margin: 0 auto; padding: 24px 20px 60px; }
.detail-back { margin-bottom: 12px; }
.detail-back a { color: var(--color-text-secondary); font-size: 0.92rem; }
.detail-back a:hover { color: var(--color-accent-start); }
.detail-article {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 24px;
  margin-bottom: 16px;
}
.detail-head { margin-bottom: 16px; }
.detail-title { font-size: 1.6rem; font-weight: 800; margin: 8px 0; line-height: 1.3; }
.detail-author {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--color-text-secondary);
}
.detail-author img { width: 28px; height: 28px; border-radius: 50%; }
.detail-counts { margin-left: auto; display: inline-flex; gap: 10px; }

.detail-images { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.detail-image { max-width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }

.detail-body { font-size: 1rem; color: var(--color-text); line-height: 1.7; white-space: pre-wrap; }

.detail-actions {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 16px;
}
.detail-action-row { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-action-row .btn-mini { padding: 8px 14px; font-size: 0.88rem; }
.detail-threshold {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--color-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}
.detail-threshold.met { background: #d1fae5; color: #065f46; font-weight: 600; }

.status-controls {
  display: flex; gap: 8px; align-items: center; margin-top: 12px; flex-wrap: wrap;
  padding: 10px;
  background: #fef9c3;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.status-controls-label { color: #854d0e; font-weight: 600; }
.status-controls select {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 4px 8px; font-size: 0.85rem;
}

/* 댓글 */
.comments-section {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 20px;
}
.comments-section h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 14px; }
.comment-form-area { margin-bottom: 16px; }
.comment-form-area textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.9rem;
  resize: vertical;
  min-height: 60px;
  font-family: inherit;
}
.comment-form-area textarea:focus { outline: none; border-color: var(--color-accent-start); }
.btn-comment-submit {
  margin-top: 6px;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff; border: none; padding: 8px 16px;
}

.comments-list { display: flex; flex-direction: column; gap: 12px; }
.empty-comment { color: var(--color-text-light); text-align: center; padding: 20px; }

.comment {
  background: var(--color-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.comment.reply {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  margin-top: 8px;
}
.comment-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 0.85rem; color: var(--color-text-secondary);
}
.comment-avatar { width: 22px; height: 22px; border-radius: 50%; }
.comment-time { font-size: 0.75rem; color: var(--color-text-light); }
.comment-delete {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--color-danger);
  font-size: 0.75rem;
  cursor: pointer;
}
.comment-body { font-size: 0.92rem; color: var(--color-text); line-height: 1.55; white-space: pre-wrap; }
.comment-actions { margin-top: 6px; }
.reply-btn {
  background: transparent; border: none;
  color: var(--color-accent-start); font-size: 0.78rem;
  cursor: pointer; padding: 0;
}
.reply-btn:hover { text-decoration: underline; }
.reply-form {
  margin-top: 8px;
  padding: 10px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}
.reply-input { width: 100%; border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 6px; font-size: 0.85rem; font-family: inherit; }
.reply-form-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.reply-form-actions button {
  font-size: 0.78rem; padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
}
.reply-cancel { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-secondary); }
.reply-submit { background: var(--color-accent-start); color: #fff; border: none; }
.reply-list { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--color-border); }

.not-found { text-align: center; padding: 60px 20px; color: var(--color-text-light); }

/* 모바일 */
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .board-list { grid-template-columns: 1fr; }
  .card-row { flex-direction: column-reverse; }
  .card-thumbs { align-self: flex-start; }
  .detail-main { padding: 16px 12px 40px; }
  .detail-article { padding: 16px; }
  .detail-title { font-size: 1.3rem; }
  .modal-window { max-height: 90vh; }
}

/* ============================================
   Hero 타이핑 사이클
   ============================================ */
.typing-text {
  display: inline-block;
  background: linear-gradient(135deg, #a5b4fc, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  min-height: 1.2em;
  letter-spacing: -0.01em;
}
.typing-text::after {
  content: "▍";
  display: inline-block;
  margin-left: 4px;
  color: #a5b4fc;
  -webkit-text-fill-color: #a5b4fc;
  animation: hero-caret-blink 0.9s steps(1) infinite;
  font-weight: 400;
}
@keyframes hero-caret-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-line2 { display: inline-block; }

@media (max-width: 768px) {
  .typing-text { font-size: 1.6rem; }
}

/* ============================================
   메인 페이지 인라인 펼치기 (accordion)
   ============================================ */
.idea-card { transition: var(--transition); }
.idea-card .card-row { cursor: pointer; }
.idea-card .card-row .btn-mini,
.idea-card .card-row textarea,
.idea-card .card-row input { cursor: auto; }

.expand-icon {
  display: inline-block; margin-left: auto;
  transition: transform 0.25s ease;
  color: var(--color-text-light);
  font-size: 1rem;
}
.idea-card.expanded .expand-icon { transform: rotate(180deg); }

.card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  border-top: 1px solid transparent;
}
.idea-card.expanded .card-body {
  max-height: 5000px;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
  padding-top: 14px;
}
.card-body-inner > * + * { margin-top: 14px; }

.expanded-images {
  display: flex; flex-direction: column; gap: 10px;
}
.expanded-image {
  width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.expanded-desc {
  font-size: 0.95rem; color: var(--color-text);
  line-height: 1.7; white-space: pre-wrap;
}

.expanded-threshold {
  background: linear-gradient(135deg, #f0f9ff, #ede9fe);
  border: 1px solid #e9d7fe;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #1e3a8a;
  line-height: 1.55;
}
.expanded-threshold.met {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-color: #6ee7b7;
  color: #065f46;
  font-weight: 600;
}

/* 인라인 댓글 */
.inline-comments {
  background: var(--color-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
}
.inline-comments-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}
.inline-comments-count {
  display: inline-block;
  margin-left: 4px;
  background: var(--color-accent-start);
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 8px;
  border-radius: var(--radius-full);
  font-weight: 600;
}
.comment-sample-note {
  font-size: 0.82rem;
  color: var(--color-text-light);
  font-style: italic;
}
.inline-comment-form {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 12px;
}
.inline-comment-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  min-height: 50px;
}
.inline-comment-input:focus {
  outline: none;
  border-color: var(--color-accent-start);
}
.btn-comment-submit {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff !important;
  border: none !important;
  padding: 6px 14px;
}
.btn-comment-submit:hover { opacity: 0.92; }

.inline-comments-list { display: flex; flex-direction: column; gap: 10px; }

.btn-text {
  background: transparent !important;
  border: none !important;
  color: var(--color-accent-start) !important;
  padding: 2px 6px !important;
  font-size: 0.78rem !important;
}
.btn-text:hover { text-decoration: underline; }
.btn-text-danger {
  background: transparent !important;
  border: none !important;
  color: var(--color-danger) !important;
  padding: 2px 6px !important;
  font-size: 0.74rem !important;
  margin-left: auto;
}
.btn-text-danger:hover { text-decoration: underline; }

/* ============================================
   카드 description 부드러운 확장 (요약 → 전체)
   ============================================ */
.idea-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 10px;
  /* collapsed: 3줄 클램프 */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  text-overflow: ellipsis;
  transition: -webkit-line-clamp 0.3s ease;
}
.idea-card.expanded .idea-desc {
  -webkit-line-clamp: unset;
  display: block;
  overflow: visible;
  white-space: pre-wrap;
}

/* 기존 .idea-preview 사용 흔적이 남아있어도 안전하게 */
.idea-preview { display: none; }

/* expanded-desc는 더 이상 사용 안 하지만 혹시 남아있으면 숨김 */
.expanded-desc { display: none; }

/* 카드 박스 자체에 transform·layout 변동 부드럽게 */
.idea-card {
  contain: layout;
}

/* ============================================
   관리자 페이지
   ============================================ */
.page-admin .admin-main {
  max-width: 1100px; margin: 0 auto; padding: 28px 20px 60px;
}
.admin-gate {
  text-align: center; padding: 80px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.admin-gate h1 { margin-bottom: 8px; }
.admin-gate p { color: var(--color-text-secondary); }

.admin-tabs {
  display: flex; gap: 6px; margin-bottom: 22px; flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
}
.admin-tab {
  background: transparent; border: none; cursor: pointer;
  padding: 10px 18px; font-size: 0.95rem; font-weight: 500;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.admin-tab:hover { color: var(--color-accent-start); }
.admin-tab.active {
  color: var(--color-accent-start);
  border-bottom-color: var(--color-accent-start);
  font-weight: 700;
}

.admin-section h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 14px; }
.admin-section h3 { font-size: 1rem; font-weight: 700; margin: 22px 0 10px; }
.admin-section .empty { color: var(--color-text-light); padding: 14px; }
.admin-section .muted { color: var(--color-text-light); font-size: 0.82rem; margin-left: 6px; }
.admin-help { color: var(--color-text-secondary); font-size: 0.88rem; margin-bottom: 12px; }

/* 분석 */
.range-controls { display: flex; gap: 8px; margin-bottom: 14px; }
.range-btn {
  background: var(--color-surface); border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 6px 14px; border-radius: var(--radius-full);
  cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: var(--transition);
}
.range-btn:hover { border-color: var(--color-accent-start); }
.range-btn.active {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff; border-color: transparent;
}
.analytics-summary {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 16px 20px; border-radius: var(--radius-md);
  flex: 1; min-width: 140px;
}
.stat-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--color-accent-start); }
.stat-lbl { font-size: 0.78rem; color: var(--color-text-secondary); }
.adm-table { width: 100%; border-collapse: collapse; background: var(--color-surface); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.adm-table th, .adm-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
}
.adm-table th { background: var(--color-subtle); font-weight: 700; color: var(--color-text); }
.adm-table tr:last-child td { border-bottom: none; }
.bar { height: 10px; border-radius: 5px; background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end)); }

/* 글 관리 */
.admin-ideas-list { display: flex; flex-direction: column; gap: 8px; }
.admin-idea {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}
.admin-idea-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.admin-idea-head strong { font-size: 1rem; }
.admin-idea-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.admin-idea-body label {
  display: block; font-size: 0.82rem; color: var(--color-text-secondary);
  margin-bottom: 8px;
}
.adm-input {
  display: block; width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: 0.9rem; font-family: inherit;
  margin-top: 4px;
}
.admin-idea-actions { display: flex; gap: 8px; margin: 10px 0 14px; }
.admin-comments { background: var(--color-subtle); border-radius: var(--radius-sm); padding: 10px; }
.admin-comment { padding: 8px 0; border-bottom: 1px solid var(--color-border); font-size: 0.85rem; }
.admin-comment:last-child { border-bottom: none; }
.admin-comment.reply { padding-left: 14px; border-left: 2px solid var(--color-border); }
.badge-ai, .badge-ai-mini {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 2px 6px; border-radius: var(--radius-full);
  margin-left: 4px;
}
.badge-ai-mini { font-size: 0.6rem; padding: 1px 5px; }

/* AI 자동화 */
.ai-status-banner {
  padding: 10px 14px; border-radius: var(--radius-sm);
  margin-bottom: 14px; font-size: 0.85rem;
}
.ai-status-banner code {
  background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px;
  font-family: monospace;
}
.ai-status-banner.ok { background: #d1fae5; color: #065f46; }
.ai-status-banner.warn { background: #fef3c7; color: #92400e; }
.ai-key-btn {
  margin-left: 8px; padding: 3px 10px; border-radius: var(--radius-sm);
  background: var(--color-accent-start); color: #fff;
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.ai-key-btn:hover { opacity: 0.9; }
.ai-status-banner small { opacity: 0.85; }
.ai-toggles {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  padding: 16px; border-radius: var(--radius-md); margin-bottom: 16px;
}
.ai-toggle {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
}
.ai-toggle input[type="checkbox"] { margin-top: 4px; }
.ai-toggle-label strong { display: block; font-size: 0.95rem; }
.ai-toggle-label small { font-size: 0.8rem; color: var(--color-text-secondary); }
.ai-manual-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.ai-manual-row select, .ai-manual-row input {
  border: 1px solid var(--color-border); padding: 6px 10px;
  border-radius: var(--radius-sm); font-size: 0.88rem;
}
.ai-manual-row select { min-width: 240px; max-width: 380px; }
.ai-help { font-size: 0.82rem; color: var(--color-text-secondary); }
.scheduled-list { margin-top: 8px; }

/* 차단 */
.ban-form {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.ban-form input {
  flex: 1; min-width: 180px;
  border: 1px solid var(--color-border);
  padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

/* ============================================
   작성자 본인 수정/삭제 (메인 인라인 펼침)
   ============================================ */
.owner-actions {
  display: flex; gap: 8px;
  padding: 8px 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
}
.owner-edit-form {
  margin-top: 8px;
  padding: 12px;
  background: #fef9c3;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.owner-edit-form .adm-input {
  background: var(--color-surface);
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.9rem; font-family: inherit;
}
.owner-edit-actions {
  display: flex; gap: 6px; justify-content: flex-end;
}

/* 헤더 - 관리자 링크 버튼 (관리자만 보임) */
.btn-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 8px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}
.btn-admin-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  color: #fff;
}

/* ============================================
   메인 카드 - 미니 프로그레스 바 (필요인원)
   ============================================ */
.mini-progress {
  margin: 6px 0 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.mini-progress-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}
.mini-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}
.mini-progress-bar.done .mini-progress-fill {
  background: linear-gradient(90deg, #10b981, #059669);
}
.mini-progress-row {
  display: flex; justify-content: space-between; align-items: center;
}
.mini-progress-label {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* ============================================
   가상 인물 (admin)
   ============================================ */
.persona-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}
.persona-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.persona-info { flex: 1; min-width: 0; }
.persona-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 4px;
  flex-wrap: wrap;
}
.persona-style { font-size: 0.8rem; }
.persona-bio {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-top: 4px;
}
.badge-personality {
  display: inline-block;
  padding: 2px 10px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}
.persona-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.persona-form-row {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.persona-form input,
.persona-form select,
.persona-form textarea {
  flex: 1; min-width: 120px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px; font-size: 0.88rem; font-family: inherit;
}
.persona-form textarea { width: 100%; resize: vertical; }

/* ============================================
   회원 관리 (admin)
   ============================================ */
.member-search-row {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.member-search-row input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px; font-size: 0.9rem;
}
.member-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.member-head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.member-avatar {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
}
.member-counts {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}
.member-body {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.member-section h5 { font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; }
.member-section ul { list-style: none; padding-left: 0; }
.member-section li {
  font-size: 0.82rem;
  padding: 3px 0;
  color: var(--color-text-secondary);
  border-bottom: 1px dotted var(--color-border);
}
.member-section .empty { font-size: 0.8rem; color: var(--color-text-light); }

/* ============================================
   메일 리스트 (admin)
   ============================================ */
.email-actions { margin-bottom: 10px; }
.email-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 16px;
}
.email-idea-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}
.email-idea-head {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}
.email-tier-block {
  margin-top: 10px;
}
.email-tier-block h5 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-text);
}
.email-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.82rem;
  font-family: 'Courier New', monospace;
  resize: vertical;
  background: var(--color-subtle);
}
.email-actions-row {
  display: flex; gap: 6px; align-items: center;
  margin-top: 6px; flex-wrap: wrap;
}
.email-detail {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--color-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}
.email-detail ul { list-style: none; padding: 0; margin: 0; }
.email-detail li { padding: 2px 0; border-bottom: 1px dotted var(--color-border); }

@media (max-width: 768px) {
  .member-body { grid-template-columns: 1fr; }
}

/* ============================================
   접근 제어 (국가별 차단/허용)
   ============================================ */
.access-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-top: 12px;
}
.access-toggle {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.95rem;
}
.access-mode-row {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  font-size: 0.9rem;
}
.access-mode-row label {
  display: flex; gap: 6px; align-items: center;
  cursor: pointer;
}
.access-list-row {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.access-list-row select {
  padding: 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  min-width: 220px;
}
.access-selected-list {
  min-height: 40px;
  padding: 12px;
  background: var(--color-subtle);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--color-border);
}
.access-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.access-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  border: 1px solid #fde68a;
}
.access-chip code {
  background: rgba(0,0,0,0.06);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.75rem;
}
.access-chip-remove {
  background: transparent;
  border: none;
  color: #92400e;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.access-chip-remove:hover { color: #ef4444; }
.access-msg-row {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.9rem;
}
.access-msg-row textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  resize: vertical;
}
.access-actions {
  display: flex; gap: 12px; align-items: center;
}

/* 디바이스/브라우저 분포 */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.device-grid h4 {
  font-size: 0.95rem;
  margin: 0 0 6px 0;
  font-weight: 700;
}

/* 삭제 항목 */
.trash-list {
  margin-top: 10px;
  margin-bottom: 18px;
}
.trash-actions {
  margin-bottom: 10px;
}

/* ========================================
   행동 먼저, 로그인 나중 — 낙관적 피드백
   ======================================== */
.is-pending-active {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff !important;
  border-color: transparent !important;
}
.is-pending-active svg,
.is-pending-active path {
  fill: currentColor;
}
@keyframes pulseBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.pulse-bump {
  animation: pulseBump 0.32s ease;
}

/* ========================================
   개인정보 / 분석 동의 배너
   ======================================== */
#consent-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 140%);
  z-index: 1200;
  width: min(560px, calc(100vw - 28px));
  /* 유리 효과: 배경색 90% 불투명(10%만 비침) + 뒤 내용 블러 */
  background: color-mix(in srgb, var(--color-bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), opacity 0.35s ease;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end)) 1;
}
#consent-banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.consent-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text);
}
.consent-text strong {
  background: linear-gradient(90deg, var(--color-accent-start), var(--color-accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.consent-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-secondary);
}
.consent-sub a {
  color: var(--color-accent-start);
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.consent-actions button {
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-family);
}
.consent-deny {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}
.consent-deny:hover {
  background: var(--color-bg);
  color: var(--color-text);
}
.consent-allow {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  border: none;
}
.consent-allow:hover {
  filter: brightness(1.06);
  box-shadow: var(--shadow-md);
}
@media (max-width: 480px) {
  #consent-banner { bottom: 12px; padding: 14px; }
  .consent-actions button { flex: 1; }
}

/* =========================================================
   레이아웃 재배치 = 미리보기 배치 재현 (#05 라이트 / #02 다크)
   강디 설계 · HTML 무변경, 그리드+카드 토큰만. 신규 HEX 0.
   소스 끝(테마/다크 블록 직전)에 둬서 기존 규칙을 덮어씀.
   ========================================================= */

/* --- INDEX: 카드 그리드 --- */
#ideas-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  align-items: start;
}
/* 로딩/빈/드래프트/펼친 카드는 전체폭 (그리드 셀 깨짐 방지) */
#ideas-container > #loading-state,
#ideas-container > #empty-state,
#ideas-container > .draft-restore-note,
#ideas-container > .idea-card.expanded {
  grid-column: 1 / -1;
}
.idea-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.idea-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.section-header { justify-content: space-between; }
.section-header h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }

/* --- BOARD --- */
.board-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.board-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.board-head .board-sub { font-size: 1rem; color: var(--color-text-secondary); }
.board-tabs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 28px; max-width: 760px;
}
.board-tab {
  font-size: 1rem; font-weight: 600; padding: 9px 16px;
  border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text-secondary);
  border: 1px solid var(--color-border); transition: var(--transition);
}
.board-tab:hover { background: var(--color-brand-bg); }
.board-tab.active {
  background: var(--color-brand-bg); color: var(--color-accent-start);
  border-color: var(--color-accent-start); font-weight: 700;
}
.board-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; align-items: start;
}
.board-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 22px;
  transition: var(--transition);
}
.board-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.board-empty { grid-column: 1 / -1; text-align: center; padding: 48px 0; color: var(--color-text-light); }

/* --- IDEA 상세 --- */
.detail-main { max-width: 760px; margin: 0 auto; padding: 28px 20px 60px; }
.detail-back { margin-bottom: 16px; }
.detail-back a { font-size: 1rem; color: var(--color-text-secondary); font-weight: 600; }
.detail-article {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 20px;
}
.detail-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0; }
.detail-actions {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 18px; margin-bottom: 20px;
}
.detail-action-row { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-action-row .btn-paid,
.detail-action-row .btn-free { flex: 1; min-width: 140px; justify-content: center; }
.btn-paid.active {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff; border-color: transparent;
}
.btn-free.active {
  background: var(--color-brand-bg); color: var(--color-accent-start);
  border-color: var(--color-accent-start);
}
.comments-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

/* --- 반응형 --- */
@media (max-width: 768px) {
  #ideas-container { grid-template-columns: 1fr; }
  .board-list { grid-template-columns: 1fr; }
  .board-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; }
  .board-head h1 { font-size: 1.6rem; }
  .detail-main { padding: 18px 14px 40px; }
  .detail-article { padding: 22px; }
  .detail-title { font-size: 1.4rem; }
  .detail-action-row .btn-paid,
  .detail-action-row .btn-free { flex: 1 1 100%; }
}

/* =========================================================
   테마 토글 버튼 (라이트/다크 공통)
   ========================================================= */
.theme-toggle {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-surface); color: var(--color-text);
  font-size: 1.1rem; line-height: 1; cursor: pointer;
  transition: var(--transition);
}
.theme-toggle:hover { box-shadow: var(--shadow-sm); }

/* =========================================================
   다크 모드 = #02 Apple Liquid Glass
   (라이트 모드 = #05 Untitled UI · 기존 :root 유지)
   라이트 규칙은 손대지 않고, 토큰 재정의 + 유리 전용 추가 규칙만.
   ========================================================= */
html[data-theme="dark"] {
  /* 강디 미리보기 #02 Apple Liquid Glass 값 그대로 */
  --color-bg: #0b0a14;
  --color-surface: rgba(255,255,255,0.08);
  --color-subtle: rgba(255,255,255,0.05);
  --color-text: #f5f3fa;
  --color-text-secondary: #b6b2c7;
  --color-text-light: #8b8698;
  --color-border: rgba(255,255,255,0.14);
  --glass-border: rgba(255,255,255,0.18);
  /* 시그니처 보라→분홍 (라이트의 인디고 대신 다크 전용) */
  --color-accent-start: #8a38f5;
  --color-accent-end: #d53a6b;
  --color-brand-bg: rgba(138,56,245,0.18);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.40);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.50);
}
html[data-theme="dark"] body { background: #0b0a14; color: var(--color-text); }
/* 강디 #02 배경광: 보라→분홍→연보라 3겹 (미리보기와 동일 강도) */
html[data-theme="dark"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 15% -10%, rgba(138,56,245,0.45), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(213,58,107,0.40), transparent 55%),
    radial-gradient(700px 500px at 60% 90%, rgba(168,85,247,0.30), transparent 60%);
}
/* 히어로 네이비 블록 제거 → 페이지 보라 글로우가 비치게 (파티클·텍스트는 유지) */
html[data-theme="dark"] #hero { background: transparent; }
/* 떠 있는 유리 헤더 */
html[data-theme="dark"] #site-header {
  background: rgba(18,16,26,0.55);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
}
/* 유리 패널: 카드·모달·관심·관리자 표면 (소식받기 섹션은 모달 안이라 제외 — 이중 유리 방지) */
html[data-theme="dark"] .idea-card,
html[data-theme="dark"] .modal-window,
html[data-theme="dark"] .fav-item,
html[data-theme="dark"] .adm-card,
html[data-theme="dark"] .adm-table {
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}
/* 입력류 */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .adm-input {
  background: rgba(255,255,255,0.06);
  border-color: var(--glass-border);
  color: var(--color-text);
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: var(--color-text-light); }
/* 로그인 버튼·네비 */
html[data-theme="dark"] .btn-login { background: var(--color-surface); border-color: var(--glass-border); color: var(--color-text); }
html[data-theme="dark"] .btn-login:hover { background: rgba(255,255,255,0.14); box-shadow: none; }
html[data-theme="dark"] .nav-link { color: var(--color-text-secondary); }
html[data-theme="dark"] .primary-nav .nav-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
/* 테마 토글: 다크에선 유리 */
html[data-theme="dark"] .theme-toggle { background: var(--color-surface); border-color: var(--glass-border); }
/* 투명도 비선호 사용자: 유리효과 끄고 불투명 표면 폴백 */
@media (prefers-reduced-transparency: reduce) {
  html[data-theme="dark"] #site-header,
  html[data-theme="dark"] .idea-card,
  html[data-theme="dark"] .modal-window,
  html[data-theme="dark"] .fav-item,
  html[data-theme="dark"] .adm-card,
  html[data-theme="dark"] .adm-table {
    -webkit-backdrop-filter: none; backdrop-filter: none;
    background: #15141d;
  }
}

/* =========================================================
   CEO 미리보기 1:1 오버라이드 (라이트 #05 / 다크 #02)
   - 라이트 중앙정렬 히어로 + 작성폼 모달화
   - 가산 전용: 위 규칙을 지우지 않고 cascade 마지막에서 덮는다.
   - 토큰만 사용. 신규 HEX 없음. JS 참조 요소(#hero/#equalizer/.hero-neural/.eq-bar/#typing-app)는
     DOM 보존 + 여기서 시각만 재정의·은은화.
   ========================================================= */

/* ---- 라이트 히어로: 네이비 → 밝은 중앙정렬 ---- */
#hero {
  background: var(--color-bg);
  color: var(--color-text);
  padding: 72px 24px 36px;
}
/* 네이비 시절 글로우/파티클/뉴럴 SVG는 라이트에선 끈다 (요소는 DOM 유지) */
#hero::before,
#hero::after { display: none; }
.hero-neural { display: none; }
#hero.typing { animation: none; }
#hero.pulse { animation: none; }

.hero-inner { max-width: 760px; }

.hero-badge {
  background: var(--color-brand-bg);
  border: 1px solid var(--color-border);
  color: var(--color-accent-start);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: none;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.12;
  margin-bottom: 16px;
  color: var(--color-text);
}
/* #typing-app(타이핑 애니메이션)·강조어 둘 다 그라데이션으로 통일 */
.hero-title .typing-text,
.hero-accent {
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin: 0 auto 26px;
  max-width: 580px;
}

/* CTA 2개: 주(그라데이션) + 보조(고스트) */
.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-hero-primary {
  font-size: 1.0625rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end));
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(138,56,245,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-hero-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(138,56,245,0.32); }
.btn-hero-primary:active { transform: translateY(0); }
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 1.0625rem;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.btn-hero-secondary:hover { background: var(--color-brand-bg); border-color: var(--color-accent-start); color: var(--color-accent-start); }

/* 대기자 카운터: 라이트 카드형 (텍스트는 그대로, #total-waitlist-count 보존) */
.hero-counter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  font-size: 1rem;
  padding: 12px 24px;
  box-shadow: var(--shadow-sm);
}
.hero-counter strong { color: var(--color-accent-start); }

/* ---- 콘텐츠: 사이드바 사라짐 → 풀폭 단일 컬럼 + 3열 카드 그리드 ---- */
#content {
  margin: 8px auto 0;          /* 네이비 시절의 -50px 당김 제거 */
  grid-template-columns: 1fr;  /* 380px 사이드바 컬럼 제거 */
  gap: 0;
}
.column-left { max-width: 1100px; margin: 0 auto; width: 100%; }
/* 사이드바가 혹시 DOM에 남아도 안 보이게 (현재 HTML엔 없음 — 안전망) */
.column-right { display: none; }

/* 섹션 헤더: 흰 글씨 → 본문색 (라이트 배경에서 읽히게) */
.section-header h2 { color: var(--color-text); }

/* ---- 작성폼 모달 ---- */
.modal-window.idea-form-window { max-width: 560px; }
.idea-form-window .form-title { font-size: 1.25rem; font-weight: 800; }
/* 모달 안의 이퀄라이저는 DOM 유지하되 시각적으로 숨김 (app.js가 querySelector함 → 삭제 금지) */
.idea-form-window #equalizer { display: none; }
.idea-form-window .sticky-form { position: static; }
body.modal-open { overflow: hidden; }

/* ---- 다크(#02) 히어로 파리티 ---- */
html[data-theme="dark"] #hero {
  background: transparent;        /* 페이지 보라 글로우가 비치게 */
  color: var(--color-text);
}
html[data-theme="dark"] .hero-badge {
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--glass-border);
  color: #fff;
}
html[data-theme="dark"] .hero-title { color: var(--color-text); }
html[data-theme="dark"] .hero-subtitle { color: var(--color-text-secondary); }
html[data-theme="dark"] .hero-counter {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
}
html[data-theme="dark"] .btn-hero-secondary {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
}
html[data-theme="dark"] .btn-hero-secondary:hover { background: rgba(255,255,255,0.14); }
html[data-theme="dark"] .section-header h2 { color: var(--color-text); }

/* ---- 반응형: 라이트 히어로 ---- */
@media (max-width: 768px) {
  #hero { padding: 48px 20px 28px; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-cta-row { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  #content { grid-template-columns: 1fr; margin: 8px auto 0; }
  .section-header { flex-direction: row; align-items: center; }
}

/* 아이디어 작성 폼 연락처 안내 + 관리자 연락처 표시 */
.contact-note { font-size: 13px; color: var(--color-text-light); margin: 2px 0 8px; line-height: 1.5; }
.badge-contact { display: inline-block; font-size: 11px; font-weight: 700; color: #fff;
  background: #0d9c84; padding: 2px 7px; border-radius: 9999px; }
.admin-contact { background: rgba(13,156,132,0.12); border: 1px solid rgba(13,156,132,0.4);
  border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; color: var(--color-text); }
.admin-contact strong { color: #0d9c84; }

/* 관리자 강팀 회의 설정 */
.team-settings { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.team-set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); }
.team-set-label { display: flex; flex-direction: column; gap: 2px; }
.team-set-label strong { font-size: 15px; color: var(--color-text); }
.team-set-label small { font-size: 12.5px; color: var(--color-text-light); }
.team-set-row .adm-input { width: 90px; text-align: center; font-weight: 700; font-size: 16px; }

/* ── 관리자 강팀 회의 내역 뷰어 ── */
.team-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .team-layout { grid-template-columns: 1fr; } }
.team-log-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; }
.team-log { max-height: 640px; overflow-y: auto; border: 1px solid var(--color-border); border-radius: 12px; padding: 8px; }
.tlog-day { border-bottom: 1px solid var(--color-border); }
.tlog-day:last-child { border-bottom: none; }
.tlog-date { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 10px 8px; font-size: 0.92rem; font-weight: 700; color: var(--color-text); display: flex; justify-content: space-between; align-items: center; }
.tlog-date:hover { background: var(--color-subtle); border-radius: 8px; }
.tlog-date .tlog-cnt { font-size: 0.78rem; font-weight: 600; color: var(--color-text-light); }
.tlog-items { padding: 2px 4px 8px; }
.tlog-item { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 7px 10px; font-size: 0.86rem; color: var(--color-text-secondary); border-radius: 8px; display: block; }
.tlog-item:hover { background: var(--color-subtle); color: var(--color-text); }
.tlog-item .tlog-time { color: var(--color-text-light); font-size: 0.76rem; margin-right: 6px; }
.team-log-view { margin-top: 14px; border: 1px solid var(--color-border); border-radius: 12px; padding: 18px; background: var(--color-subtle); max-height: 640px; overflow-y: auto; }
.team-log-view .tlv-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.team-log-view .tlv-meta { font-size: 0.8rem; color: var(--color-text-light); margin-bottom: 12px; }
.team-log-view .tw-m-act { font-size: 0.9rem; line-height: 1.6; margin: 7px 0; color: var(--color-text); }
.team-log-view .tw-m-act b { color: var(--color-accent-start); }
.team-log-view .tw-m-act.daepyo b { color: var(--color-text); }
.team-log-view .tw-m-act.abang b { color: #d53a6b; }
.team-log-view .tw-m-act.gdi b { color: #0d9c84; }
.team-log-view .tw-m-act.gdev b { color: #475569; }
.team-log-view .tw-m-act.gchk b { color: #7030d4; }
.team-log-view .tw-think { color: #8b8fa0; font-style: italic; font-size: 0.82rem; }
.team-log-view .tw-m-title { font-size: 1rem; font-weight: 800; margin-bottom: 8px; }
.team-log-view .tw-m-sum { margin-top: 12px; font-size: 0.86rem; background: rgba(138,56,245,0.06); border: 1px solid var(--color-border); border-left: 3px solid var(--color-accent-start); border-radius: 8px; padding: 10px 14px; }
.team-log-view .tw-m-sum ul { margin: 6px 0 0 18px; }

/* ── 내 활동 모달: 아이디어 | 강팀 회의 2단 ── */
.modal-window-wide { max-width: 900px; width: 94vw; }
.activity-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 4px 4px 8px; }
@media (max-width: 760px) { .activity-split { grid-template-columns: 1fr; } }
.activity-col { min-width: 0; }
.activity-col-title { font-size: 0.95rem; font-weight: 800; margin: 0 0 10px; color: var(--color-text); }
.activity-col-body { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.act-mtg-item { width: 100%; text-align: left; background: var(--color-subtle); border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.act-mtg-item:hover { border-color: var(--color-accent-start); }
.act-mtg-title { font-weight: 700; font-size: 0.88rem; color: var(--color-text); }
.act-mtg-date { font-size: 0.74rem; color: var(--color-text-light); margin-top: 2px; }
.activity-meeting-view { margin-top: 12px; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; background: var(--color-subtle); max-height: 380px; overflow-y: auto; }
.activity-meeting-view .amv-actions { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.amv-btn { font-size: 0.8rem; font-weight: 700; border: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.amv-btn.share { background: linear-gradient(135deg, var(--color-accent-start), var(--color-accent-end)); color: #fff; }
.amv-btn.copy { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }

/* ── 문의 접수 큰 중앙 확인 ── */
.contact-done-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: rgba(10,8,18,0.55); opacity: 0; transition: opacity .25s; }
.contact-done-overlay.show { opacity: 1; }
.contact-done-box { background: var(--color-surface); border-radius: 20px; padding: 40px 44px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35); transform: scale(0.9); transition: transform .25s; max-width: 88vw; }
.contact-done-overlay.show .contact-done-box { transform: scale(1); }
.contact-done-emoji { font-size: 54px; line-height: 1; }
.contact-done-big { font-size: 26px; font-weight: 800; color: var(--color-text); margin-top: 12px; }
.contact-done-sub { font-size: 15px; color: var(--color-text-light); margin-top: 8px; }
.tlog-who { display: inline-block; font-size: 0.72rem; font-weight: 700; color: var(--color-accent-start);
  background: rgba(138,56,245,0.1); border-radius: 999px; padding: 1px 8px; margin-right: 4px; }
