/* ==========================================================================
   kfcman-on | Premium Cosmic Dark & Glassmorphism Theme (Guest Client)
   ========================================================================== */

:root {
  /* Cosmic Dark Palette */
  --bg-app: hsl(222, 47%, 6%);       /* 우주 공간의 매우 깊은 네이비 블랙 */
  --bg-card: rgba(15, 23, 42, 0.45);  /* 반투명 유리 카드 배경 (Glassmorphism) */
  --bg-card-hover: rgba(30, 41, 59, 0.6);
  --border-light: rgba(255, 255, 255, 0.08); /* 극도로 얇고 반투명한 화이트 테두리 */
  --border-glow: rgba(37, 99, 235, 0.2);
  
  /* Solid Professional Accents with High Contrast Neon */
  --accent-primary: hsl(217, 91%, 60%);   /* 일렉트릭 블루 */
  --accent-primary-glow: rgba(37, 99, 235, 0.4);
  --accent-success: hsl(142, 72%, 45%);   /* 에메랄드 네온 그린 */
  --accent-error: hsl(350, 89%, 60%);     /* 살몬 핑크 레드 */
  
  /* Text & Contrast */
  --text-main: hsl(210, 40%, 96%);        /* 매우 부드러운 화이트 */
  --text-secondary: hsl(215, 20%, 75%);   /* 연한 실버 그레이 */
  --text-muted: hsl(215, 13%, 50%);       /* 차분한 회색 */
  
  /* Transitions */
  --transition-clean: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global Scaffolding */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

html {
  height: -webkit-fill-available;
}

/* Dynamic Glowing Background Gradients (우주 성운 느낌의 은은한 오버레이 배경) */
.bg-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.25;
  pointer-events: none;
  display: block !important; /* 기존 숨김 해제하여 심미성 극대화 */
}

.bg-glow-1 {
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 80%);
  top: -10%;
  left: -20%;
  animation: floatNebula 12s infinite alternate ease-in-out;
}

.bg-glow-2 {
  background: radial-gradient(circle, hsl(270, 76%, 54%) 0%, transparent 80%);
  bottom: 10%;
  right: -20%;
  animation: floatNebula 18s infinite alternate-reverse ease-in-out;
}

.bg-glow-3 {
  background: radial-gradient(circle, hsl(170, 76%, 40%) 0%, transparent 80%);
  top: 40%;
  left: 30%;
  opacity: 0.15;
}

@keyframes floatNebula {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.15); }
}

/* ==========================================================================
   Responsive App Layout
   ========================================================================== */

.app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  position: relative;
  z-index: 1;
}

/* Header UI Style */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--text-main);
  text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.logo-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 20px var(--accent-primary-glow);
}

/* Connection Badges */
.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-clean);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.status-badge.online {
  color: var(--accent-success);
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.05);
}

.status-badge.online .status-dot {
  background-color: var(--accent-success);
  color: var(--accent-success);
  animation: pulseGreenGlow 2s infinite;
}

@keyframes pulseGreenGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-badge.offline {
  color: var(--accent-error);
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.05);
}

.status-badge.offline .status-dot {
  background-color: var(--accent-error);
  color: var(--accent-error);
}

/* ==========================================================================
   Clean Minimalist Cards & Views (Glassmorphism Upgraded)
   ========================================================================== */

.card-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  flex-grow: 1;
}

.card-view.active {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0);
}

.card {
  width: 100%;
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Header icon container */
.card-header-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  align-self: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.header-icon-neon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
}

.view-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.view-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */

form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.avatar-indicator {
  font-size: 1.25rem;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

.input-wrapper {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition-clean);
}

input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px 16px 16px 48px;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition-clean);
}

input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

input:focus + .field-icon {
  color: var(--accent-primary);
}

#pin-input {
  text-align: left;
  letter-spacing: 3px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-primary);
}

#pin-input::placeholder {
  letter-spacing: 3px;
  color: var(--text-muted);
  opacity: 0.4;
}

/* ==========================================================================
   Premium Neon Accent Buttons
   ========================================================================== */

.btn-primary-neon {
  background: linear-gradient(135deg, var(--accent-primary) 0%, hsl(221, 83%, 45%) 100%);
  border: none;
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
  transition: var(--transition-clean);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.btn-primary-neon:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.btn-primary-neon:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
  position: absolute;
}

@keyframes spinner {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Waiting View
   ========================================================================== */

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

.waiting-graphic {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 12px auto 32px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.waiting-icon-container {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.waves-icon {
  font-size: 1.8rem;
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-primary-glow);
  animation: pulseWaitingIcon 2s infinite ease-in-out;
}

@keyframes pulseWaitingIcon {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Concentric Pulse Rings */
.pulse-ring {
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50%;
  width: 68px;
  height: 68px;
  animation: pulseOut 2.5s cubic-bezier(0.215, 0.610, 0.355, 1) infinite;
  opacity: 0;
  pointer-events: none;
}

.ring-2 {
  animation-delay: 0.8s;
  border-color: rgba(168, 85, 247, 0.2);
}

.ring-3 {
  animation-delay: 1.6s;
  border-color: rgba(20, 184, 166, 0.2);
}

@keyframes pulseOut {
  0% {
    width: 68px;
    height: 68px;
    opacity: 0.8;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

/* Profile Badge Info */
.guest-profile-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  max-width: 290px;
  margin: 0 auto 32px auto;
  text-align: left;
  border: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.02);
}

.profile-avatar {
  font-size: 1.4rem;
}

.profile-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  flex-grow: 1;
}

.profile-pin {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.status-msg {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

/* ==========================================================================
   Active Poll View Elements
   ========================================================================== */

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), hsl(262, 80%, 60%));
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.poll-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.poll-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.6px;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.1);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.poll-timer {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.poll-question-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text-main);
  margin-bottom: 8px;
}

.poll-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Option Cards */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  position: relative;
  transition: var(--transition-clean);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.option-badge-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-clean);
  flex-shrink: 0;
}

.option-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

/* Hover/Select Glass States */
.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.option-btn:hover .option-badge-num {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-main);
}

/* Click and Select state */
.option-btn.selected {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--accent-primary);
  box-shadow: 
    0 0 20px rgba(37, 99, 235, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.option-btn.selected .option-badge-num {
  background: var(--accent-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px var(--accent-primary-glow);
}

.option-btn.selected .option-text {
  color: var(--accent-primary);
  font-weight: 700;
}

/* ==========================================================================
   Full Card Vote Success Overlay (Premium Blur Overlay)
   ========================================================================== */

.overlay-hidden {
  display: none;
  opacity: 0;
}

.vote-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 24px;
  animation: fadeIn 0.4s ease forwards;
}

.glass-blur {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-light);
}

.success-content {
  text-align: center;
  padding: 36px 24px;
  animation: scaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.success-icon-check {
  font-size: 3.5rem;
  color: var(--accent-success);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
  animation: bounceSuccessIcon 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes bounceSuccessIcon {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.success-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.success-content p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.success-content .waiting-text {
  margin-top: 36px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ==========================================================================
   Clean Toasts (성공/에러 스타일 완벽 구분 개선)
   ========================================================================== */

#toast-banner {
  position: fixed;
  top: -85px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 380px;
  padding: 16px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  border: 1px solid transparent;
}

#toast-banner.show {
  top: 24px;
}

/* 성공(Success) 토스트 스타일 */
#toast-banner.toast-success {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.3);
  color: hsl(142, 72%, 75%);
}
#toast-banner.toast-success .toast-icon {
  color: var(--accent-success);
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
}

/* 에러(Error) 토스트 스타일 */
#toast-banner.toast-error {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.3);
  color: hsl(350, 89%, 80%);
}
#toast-banner.toast-error .toast-icon {
  color: var(--accent-error);
  filter: drop-shadow(0 0 5px rgba(239, 68, 68, 0.5));
}

.toast-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
   Minimalist Q&A Custom Extensions
   ========================================================================== */

/* Shared Session Navigation Tabs */
.session-tabs {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  padding: 6px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.session-tabs.hidden {
  display: none !important;
}

.tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition-clean);
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.35),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Q&A Input Panel Components */
.qna-input-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.qna-textarea-wrapper {
  position: relative;
  width: 100%;
}

textarea#qna-input {
  width: 100%;
  height: 90px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 16px;
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  resize: none;
  transition: var(--transition-clean);
}

textarea#qna-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.divider-line {
  height: 1px;
  background: var(--border-light);
  margin: 28px 0 20px 0;
}

/* Q&A Feed List & Cards */
.qna-feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 2px;
}

.qna-feed-list::-webkit-scrollbar {
  width: 5px;
}
.qna-feed-list::-webkit-scrollbar-track {
  background: transparent;
}
.qna-feed-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
}

.qna-empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
}

.qna-empty-state i {
  font-size: 2.8rem;
  margin-bottom: 14px;
  opacity: 0.4;
}

.qna-empty-state p {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.qna-empty-state p.sub {
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
  color: var(--text-muted);
}

/* Beautiful Q&A Cards */
.qna-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition-clean);
  position: relative;
}

.qna-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.qna-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qna-card-avatar {
  font-size: 1.15rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.qna-card-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.qna-card-text {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-all;
}

.qna-card-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255,255,255,0.04);
  padding-top: 10px;
}

.qna-upvote-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-clean);
}

.qna-upvote-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.qna-upvote-btn.upvoted {
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.2);
}

/* Spotlight Highlight */
.qna-card.spotlighted {
  border-color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.05);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.spotlight-indicator {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   Word Cloud Form Custom (T-16 Addition)
   ========================================================================== */
.wordcloud-input-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wordcloud-input-form input {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}
