@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700;900&family=Poppins:wght@700;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --primary:       #6C3CE1;
  --primary-light: #8B5CF6;
  --primary-dark:  #4C1D95;
  --secondary:     #2575fc;
  --success:       #10B981;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --info:          #3B82F6;

  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-900: #111827;

  --bg:       #F3F4F6;
  --surface:  #FFFFFF;
  --text:     #111827;
  --text-sub: #6B7280;
  --border:   #E5E7EB;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);

  --font:      'Noto Sans KR', sans-serif;
  --font-logo: 'Poppins', sans-serif;
  --nav-h:     64px;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ─── Layout ─────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
.page-content { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 60px; }

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  box-shadow: var(--shadow-sm);
}
.navbar .container { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1100px; }
.navbar-logo { font-family: var(--font-logo); font-size: 1.4rem; font-weight: 900; color: var(--primary); flex: 1; }
.navbar-logo span { color: var(--gray-700); }
.navbar-links { display: flex; align-items: center; gap: 8px; }
.navbar-user { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.navbar-username { font-size: .9rem; font-weight: 500; color: var(--gray-700); }

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; cursor: pointer; border: none; transition: all .2s;
  white-space: nowrap; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; box-shadow: 0 2px 8px rgba(108,60,225,.35);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 4px 16px rgba(108,60,225,.45); transform: translateY(-1px); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: white; }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #DC2626; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover:not(:disabled) { background: #059669; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 13px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); min-width: 36px; }

/* ─── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 24px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); }

/* ─── Stats Grid ─────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border-radius: var(--radius-lg); padding: 20px 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-label { font-size: .8rem; color: var(--text-sub); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--gray-900); line-height: 1; }
.stat-value.primary { color: var(--primary); }
.stat-value.success { color: var(--success); }
.stat-sub { font-size: .78rem; color: var(--text-sub); margin-top: 4px; }

/* ─── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-draft     { background: #F3F4F6; color: #6B7280; }
.badge-closed    { background: #E0E7FF; color: #3730A3; }
.badge-panel     { background: #FEF3C7; color: #92400E; }
.badge-creator   { background: #EDE9FE; color: #5B21B6; }

/* ─── Forms ──────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  display: block; width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  transition: border-color .2s, box-shadow .2s; font-size: .9rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108,60,225,.15);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: .8rem; color: var(--text-sub); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--danger); margin-top: 4px; }

/* ─── Toggle / Checkbox ──────────────────────────────── */
.toggle-group { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--gray-300); border-radius: 999px;
  transition: .2s; cursor: pointer;
}
.toggle-slider::before {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: white; top: 3px; left: 3px; transition: .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ─── Table ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-sub); background: var(--gray-50);
  border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ─── Page Header ────────────────────────────────────── */
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 1.6rem; font-weight: 900; color: var(--gray-900); }
.page-header p { font-size: .9rem; color: var(--text-sub); margin-top: 4px; }
.page-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ─── Empty State ────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 24px; color: var(--text-sub); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.empty-state p  { font-size: .9rem; }

/* ─── Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  max-width: 520px; width: 100%; padding: 32px;
  box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform .2s;
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.1rem; font-weight: 800; color: var(--gray-900); }
.modal-close { background: none; border: none; cursor: pointer; color: var(--gray-400); font-size: 1.4rem; line-height: 1; padding: 0; }
.modal-close:hover { color: var(--gray-700); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }

/* ─── Toast ──────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 18px; border-radius: var(--radius); background: var(--gray-900); color: white;
  font-size: .875rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastIn .2s ease; min-width: 220px;
}
.toast.success { background: var(--success); }
.toast.error   { background: var(--danger); }
.toast.warning { background: var(--warning); color: var(--gray-900); }
@keyframes toastIn { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

/* ─── Divider / Chip ─────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: var(--gray-100); border-radius: 999px;
  font-size: .8rem; font-weight: 500; color: var(--gray-600);
}

/* ─── Survey Progress Bar ────────────────────────────── */
.progress-bar-wrap { height: 6px; background: var(--gray-200); border-radius: 999px; overflow: hidden; margin-bottom: 32px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 999px; transition: width .3s ease; }

/* ─── Question Card (Builder / Survey) ──────────────── */
.q-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 12px;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.q-card:hover { border-color: var(--primary-light); }
.q-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,60,225,.12); }
.q-card-num {
  position: absolute; top: 20px; left: 20px;
  width: 24px; height: 24px; background: var(--primary); color: white;
  border-radius: 50%; font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.q-card-content { padding-left: 36px; }
.q-card-text { font-size: .95rem; font-weight: 600; color: var(--gray-800); }
.q-card-type { font-size: .78rem; color: var(--text-sub); margin-top: 2px; }
.q-card-actions { display: flex; gap: 4px; margin-left: auto; }

/* ─── Option Rows ────────────────────────────────────── */
.option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.option-row input[type=text] { flex: 1; }
.option-icon { width: 18px; height: 18px; border: 2px solid var(--gray-300); border-radius: 3px; flex-shrink: 0; }
.option-icon.circle { border-radius: 50%; }

/* ─── Scale / NPS ────────────────────────────────────── */
.scale-group { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-btn {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 600; cursor: pointer; transition: all .15s;
}
.scale-btn:hover, .scale-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }
.scale-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-sub); margin-top: 6px; }

/* ─── Landing Page ───────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.3);
}
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  position: relative; overflow: hidden; padding-top: var(--nav-h);
}
.hero-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(108,60,225,.4) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(37,117,252,.3) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; color: white; max-width: 640px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 16px; font-size: .82rem; font-weight: 600; margin-bottom: 24px; }
.hero-title { font-size: 3.2rem; font-weight: 900; line-height: 1.15; margin-bottom: 20px; }
.hero-title .accent { background: linear-gradient(90deg, #a78bfa, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-desc { font-size: 1.1rem; opacity: .8; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .15; pointer-events: none; }

.section { padding: 80px 0; }
.section-tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 10px; }
.section-title { font-size: 2rem; font-weight: 900; color: var(--gray-900); margin-bottom: 12px; line-height: 1.2; }
.section-desc { font-size: 1rem; color: var(--text-sub); max-width: 520px; line-height: 1.7; }
.section-center { text-align: center; }
.section-center .section-desc { margin: 0 auto 40px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); transition: box-shadow .2s, transform .2s; }
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: .875rem; color: var(--text-sub); line-height: 1.65; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-top: 48px; position: relative; }
.step { text-align: center; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; font-size: 1.1rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-title { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: .83rem; color: var(--text-sub); line-height: 1.6; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 48px; }
.pricing-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-xl); padding: 28px; transition: box-shadow .2s; }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,60,225,.12); position: relative; }
.pricing-card.featured::before { content: 'BEST'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; font-size: .7rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; letter-spacing: .08em; }
.pricing-name { font-size: .85rem; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.pricing-price { font-size: 2.2rem; font-weight: 900; color: var(--gray-900); line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-sub); }
.pricing-desc { font-size: .82rem; color: var(--text-sub); margin-bottom: 20px; }
.pricing-features { margin-bottom: 24px; }
.pricing-feature { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--gray-700); padding: 5px 0; }
.pricing-feature::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

.landing-footer { background: var(--gray-900); color: var(--gray-400); padding: 40px 0; text-align: center; font-size: .85rem; }
.landing-footer strong { color: white; }

/* ─── Auth Page ──────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f0f0ff, #e0e7ff); padding: 24px; }
.auth-card { background: var(--surface); border-radius: var(--radius-xl); padding: 40px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); }
.auth-logo { font-family: var(--font-logo); font-size: 1.6rem; font-weight: 900; color: var(--primary); text-align: center; margin-bottom: 28px; }
.auth-tabs { display: flex; background: var(--gray-100); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; text-align: center; padding: 8px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; color: var(--text-sub); transition: all .15s; border: none; background: none; }
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.role-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-btn { padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); cursor: pointer; text-align: center; transition: all .15s; }
.role-btn .role-icon { font-size: 1.6rem; margin-bottom: 6px; }
.role-btn .role-name { font-size: .85rem; font-weight: 700; color: var(--gray-700); }
.role-btn .role-desc { font-size: .75rem; color: var(--text-sub); margin-top: 2px; }
.role-btn.active { border-color: var(--primary); background: #F5F0FF; }
.auth-divider { text-align: center; position: relative; margin: 20px 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: white; padding: 0 12px; color: var(--text-sub); font-size: .82rem; }

/* ─── Builder Layout ─────────────────────────────────── */
.builder-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; min-height: calc(100vh - var(--nav-h) - 80px); }
.builder-sidebar { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 20px; display: flex; flex-direction: column; height: fit-content; position: sticky; top: calc(var(--nav-h) + 20px); }
.builder-sidebar-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-sub); margin-bottom: 14px; }
.builder-main { min-width: 0; }
.builder-toolbar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.builder-toolbar-title { font-weight: 700; flex: 1; min-width: 200px; }

/* ─── Survey Taking ──────────────────────────────────── */
.survey-page { min-height: 100vh; background: linear-gradient(135deg, #f0f0ff, #e8eeff); display: flex; flex-direction: column; }
.survey-header { background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.survey-logo { font-family: var(--font-logo); font-weight: 900; color: var(--primary); font-size: 1.1rem; }
.survey-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.survey-card { background: var(--surface); border-radius: var(--radius-xl); padding: 40px; max-width: 620px; width: 100%; box-shadow: var(--shadow-lg); }
.survey-card-header { margin-bottom: 28px; }
.survey-q-label { font-size: .8rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.survey-q-text { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); line-height: 1.5; }
.survey-q-required { color: var(--danger); margin-left: 2px; }
.survey-options { display: flex; flex-direction: column; gap: 10px; }
.survey-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all .15s; background: var(--surface);
}
.survey-option:hover { border-color: var(--primary-light); background: #F5F0FF; }
.survey-option.selected { border-color: var(--primary); background: #F0EAFF; }
.survey-option-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gray-300); flex-shrink: 0; transition: all .15s; display: flex; align-items: center; justify-content: center; }
.survey-option.selected .survey-option-mark { background: var(--primary); border-color: var(--primary); }
.survey-option.selected .survey-option-mark::after { content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; }
.survey-option-checkbox { border-radius: 4px; }
.survey-option.selected .survey-option-checkbox { background: var(--primary); border-color: var(--primary); }
.survey-option.selected .survey-option-checkbox::after { content: '✓'; color: white; font-size: .7rem; font-weight: 900; }
.survey-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; }
.survey-counter { font-size: .85rem; color: var(--text-sub); font-weight: 500; }
.survey-success { text-align: center; padding: 20px 0; }
.survey-success .success-icon { font-size: 3.5rem; margin-bottom: 16px; }
.survey-success h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.survey-success p { color: var(--text-sub); font-size: .95rem; line-height: 1.6; }
.point-badge { display: inline-flex; align-items: center; gap: 6px; background: #FEF3C7; color: #92400E; padding: 8px 18px; border-radius: 999px; font-weight: 700; margin-top: 16px; font-size: .95rem; }

/* ─── Results ────────────────────────────────────────── */
.chart-wrap { margin-top: 16px; position: relative; max-height: 300px; }
.result-q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; }
.result-q-title { font-size: .95rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.result-q-meta { font-size: .78rem; color: var(--text-sub); margin-bottom: 16px; }
.bar-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .875rem; }
.bar-label { width: 160px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; height: 28px; background: var(--gray-100); border-radius: var(--radius-sm); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: var(--radius-sm); transition: width .6s ease; display: flex; align-items: center; padding-left: 8px; font-size: .75rem; font-weight: 700; color: white; white-space: nowrap; }
.bar-pct { width: 48px; text-align: right; color: var(--text-sub); font-size: .82rem; }
.text-responses { max-height: 200px; overflow-y: auto; }
.text-response-item { padding: 10px 14px; background: var(--gray-50); border-radius: var(--radius-sm); margin-bottom: 6px; font-size: .875rem; border-left: 3px solid var(--primary-light); }

/* ─── Panel Home ─────────────────────────────────────── */
.point-card { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: var(--radius-xl); padding: 28px; margin-bottom: 24px; position: relative; overflow: hidden; }
.point-card::after { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.1); }
.point-card-label { font-size: .85rem; opacity: .8; margin-bottom: 4px; }
.point-card-value { font-size: 2.8rem; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.point-card-sub { font-size: .82rem; opacity: .7; }
.survey-feed { display: flex; flex-direction: column; gap: 14px; }
.feed-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; transition: box-shadow .15s; }
.feed-card:hover { box-shadow: var(--shadow); }
.feed-card-icon { width: 48px; height: 48px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.feed-card-body { flex: 1; min-width: 0; }
.feed-card-title { font-size: .95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-card-meta { font-size: .8rem; color: var(--text-sub); display: flex; gap: 12px; }
.feed-card-meta span { display: flex; align-items: center; gap: 4px; }
.feed-card-reward { text-align: right; flex-shrink: 0; }
.reward-value { font-size: 1.1rem; font-weight: 900; color: var(--primary); }
.reward-label { font-size: .72rem; color: var(--text-sub); }
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; gap: 4px; }
.tab-btn { padding: 10px 20px; font-size: .9rem; font-weight: 600; color: var(--text-sub); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }
  .builder-layout { grid-template-columns: 1fr; }
  .builder-sidebar { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .auth-card { padding: 28px 20px; }
  .survey-card { padding: 28px 20px; }
}
