/* ============================================================
   SurveySphere — Design tokens (extracted from Ardot draft)
   ============================================================ */
:root {
  --primary: #4361EE;
  --primary-hover: #3651D6;
  --primary-tint: #EEF1FE;
  --app-bg: #F4F6FB;
  --white: #FFFFFF;
  --border: #E6E9F2;
  --text: #1A2238;
  --text-mid: #6B7488;
  --text-light: #9AA3B5;
  --success: #16A34A;
  --success-bg: #E7F6ED;
  --gray-bg: #F1F3F8;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --shadow-card: 0 1px 2px rgba(26, 34, 56, 0.04), 0 8px 24px rgba(26, 34, 56, 0.04);
  --shadow-pop: 0 12px 32px rgba(67, 97, 238, 0.18);
  --font: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ============================================================
   Brand mark
   ============================================================ */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.brand-logo svg { width: 21px; height: 17px; }
.brand-name { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.brand-name.lg { font-size: 18px; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; border-radius: var(--radius-md);
  transition: background .15s ease, transform .08s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--gray-bg); }
.btn-danger { background: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-ghost { color: var(--primary); }
.btn-ghost:hover { background: var(--primary-tint); }
.btn-block { width: 100%; }

/* specific sizes */
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-md { height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }
.btn-xs { height: 32px; padding: 0 12px; font-size: 13px; }

/* ============================================================
   Inputs
   ============================================================ */
.field-label { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 8px; display: block; }
.input {
  width: 100%; height: 50px; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 14px; font-size: 15px; color: var(--text); background: #fff;
  display: flex; align-items: center;
}
.input::placeholder { color: var(--text-light); }
.input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); outline: none; }
.input input { border: none; outline: none; flex: 1; font-size: 15px; color: var(--text); font-family: inherit; background: transparent; }
.input select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  width: 100%; height: 100%; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: transparent; cursor: pointer;
  padding: 0 36px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236B7488'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  text-overflow: ellipsis;
}
.input select::-ms-expand { display: none; }
.input select:focus { outline: none; color: var(--text); }
.input .suffix { color: var(--text-light); display: flex; align-items: center; cursor: pointer; }
.input .suffix:hover { color: var(--primary); }
/* 隐藏浏览器原生的密码显示按钮，避免与自定义眼睛重复出现 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear { display: none; }
input[type="password"]::-webkit-textfield-decoration-container { display: none !important; }

.checkbox { width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.checkbox.checked { background: var(--primary); border-color: var(--primary); }
.checkbox.checked svg { display: block; }

/* ============================================================
   App shell / views
   ============================================================ */
.view:not(.active) { display: none; }
.view.active { display: block; }
.view.active.auth,
.view.active.shell { display: flex; }

/* ============================================================
   AUTH (Login / Register)
   ============================================================ */
.auth { display: flex; min-height: 100vh; }
.auth-aside {
  width: 560px; flex: none; padding: 56px 48px; display: flex; flex-direction: column; gap: 24px;
  position: relative; overflow: hidden; color: #fff;
  background-image: linear-gradient(135deg, rgba(20,28,56,.55), rgba(40,30,90,.68)), url('assets/login-panel.png');
  background-size: cover; background-position: center;
}
.auth-aside.is-register {
  background-image: linear-gradient(135deg, rgba(20,28,56,.55), rgba(40,30,90,.68)), url('assets/register-panel.png');
}
.auth-aside .brand-name { color: #fff; }
.auth-aside .brand-logo { background: rgba(255,255,255,.18); }
.auth-tagline { margin-top: auto; }
.auth-tagline h1 { font-size: 34px; font-weight: 700; line-height: 1.3; color: #fff; }
.auth-tagline p { font-size: 15px; color: rgba(255,255,255,.82); margin-top: 12px; max-width: 464px; }
.feature-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.feature-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #fff; }
.feature-item .tick {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center; flex: none;
  box-shadow: 0 1px 2px rgba(26,34,56,.08);
}
.feature-item .tick svg { width: 12px; height: 9px; }
.auth-foot { font-size: 13px; color: rgba(255,255,255,.6); }

.auth-main {
  flex: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px;
}
.auth-card { width: 420px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.auth-card h2 { font-size: 28px; font-weight: 700; color: var(--text); }
.auth-card .sub { font-size: 15px; color: var(--text-mid); margin-top: -6px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; }
.link-primary { color: var(--primary); font-weight: 500; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 16px; color: var(--text-light); font-size: 13px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }
.switch-line { text-align: center; font-size: 14px; color: var(--text-mid); }
.switch-line b { color: var(--primary); font-weight: 600; }

/* ============================================================
   LANDING
   ============================================================ */
.landing { background: #fff; }
.container { width: 1344px; max-width: calc(100% - 96px); margin: 0 auto; }

.nav {
  position: sticky; top: 0; z-index: 50;
  height: 72px; display: flex; align-items: center; gap: 32px;
  background: #fff;
  border-bottom: 1px solid var(--border); padding: 0 48px;
}
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { font-size: 15px; color: var(--text-mid); font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }

.hero { position: relative; height: 760px; display: flex; align-items: center; padding: 0 48px; overflow: hidden; }
.hero-inner { width: 640px; max-width: 100%; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--primary-tint);
  color: var(--primary); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 18px;
}
.hero h1 { font-size: 56px; font-weight: 700; line-height: 1.2; color: var(--text); margin: 20px 0 16px; }
.hero p.lead { font-size: 18px; color: var(--text-mid); max-width: 540px; line-height: 1.6; }
.hero-cta { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.hero-note { font-size: 14px; color: var(--text-light); margin-top: 16px; }
.hero-visual {
  position: absolute; right: 80px; top: 50%; transform: translateY(-50%);
  width: 540px; height: 520px; border-radius: var(--radius-2xl);
  background: url('assets/hero-visual.png') center/cover no-repeat;
  box-shadow: var(--shadow-pop); overflow: hidden;
}

.section { padding: 80px 48px;
  background-image: linear-gradient(rgba(255,255,255,.74), rgba(255,255,255,.74)), url('assets/soft-bg.png');
  background-size: cover; background-position: center; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 36px; font-weight: 700; color: var(--text); }
.section-head p { font-size: 17px; color: var(--text-mid); margin-top: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 318px); gap: 24px; justify-content: center; }
.feature-card {
  width: 318px; height: 240px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.feature-card h3 { font-size: 18px; font-weight: 600; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-mid); line-height: 1.55; }

/* Rewards */
.rewards {
  background-color: var(--app-bg);
  background-image: linear-gradient(rgba(255,255,255,.66), rgba(255,255,255,.66)), url('assets/rewards-bg.png');
  background-size: cover; background-position: center; }
.rewards-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.rewards-head h2 { font-size: 36px; font-weight: 700; color: var(--text); }
.rewards-head p { font-size: 17px; color: var(--text-mid); margin-top: 16px; }
.step-row { display: grid; grid-template-columns: repeat(3, 432px); gap: 24px; justify-content: center; margin-bottom: 24px; }
.step-card {
  height: 180px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600;
}
.step-card h3 { font-size: 17px; font-weight: 600; }
.step-card p { font-size: 14px; color: var(--text-mid); }
.reward-row { display: grid; grid-template-columns: repeat(3, 432px); gap: 24px; justify-content: center; }
.reward-card {
  height: 280px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.reward-card .feature-icon { width: 44px; height: 44px; }
.reward-card h3 { font-size: 18px; font-weight: 600; }
.reward-card p { font-size: 14px; color: var(--text-mid); line-height: 1.55; }
.reward-card .example { font-size: 13px; font-weight: 500; color: var(--primary); margin-top: auto; }
.rewards-banner {
  display: flex; align-items: center; gap: 12px; background: var(--primary-tint);
  border-radius: var(--radius-lg); padding: 0 28px; height: 80px; margin-top: 24px;
}
.rewards-banner .gift { width: 20px; height: 20px; color: var(--primary); }
.rewards-banner span { font-size: 17px; font-weight: 600; color: var(--primary); }

/* Trust */
.trust {
  background-color: #fff;
  background-image: linear-gradient(rgba(255,255,255,.76), rgba(255,255,255,.76)), url('assets/soft-bg.png');
  background-size: cover; background-position: center; }
.trust-stats { display: grid; grid-template-columns: repeat(4, 312px); gap: 0; margin-bottom: 48px; justify-content: center; }
.trust-stat .num { font-size: 40px; font-weight: 700; color: var(--text); }
.trust-stat .lab { font-size: 14px; color: var(--text-mid); margin-top: 4px; }
.trust-label { text-align: center; font-size: 16px; font-weight: 500; color: var(--text-mid); margin-bottom: 24px; }
.logo-row { display: flex; gap: 32px; justify-content: center; margin-bottom: 72px; }
.logo-chip {
  width: 180px; height: 48px; border-radius: 10px; background: var(--gray-bg);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--text-mid);
}
.testimonial {
  width: 820px; max-width: 100%; margin: 0 auto; background: var(--primary-tint);
  border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 24px;
}
.testimonial blockquote { font-size: 20px; color: var(--text); line-height: 1.6; }
.testimonial .author { display: flex; align-items: center; gap: 14px; }
.testimonial .avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.testimonial .author .name { font-size: 16px; font-weight: 600; }
.testimonial .author .role { font-size: 13px; color: var(--text-mid); }

/* Footer */
.footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 48px 40px; }
.footer-top { display: flex; gap: 48px; padding-bottom: 32px; }
.footer-brand { width: 300px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-mid); }
.footer-cols { display: flex; gap: 48px; margin-left: auto; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .col-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--text-mid); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 32px; }
.footer-bottom .copy { font-size: 13px; color: var(--text-mid); }
.footer-social { display: flex; gap: 12px; }
.footer-social .soc { width: 32px; height: 32px; border-radius: 8px; background: var(--gray-bg); display: flex; align-items: center; justify-content: center; color: var(--text-mid); }

/* ============================================================
   HELP CENTER
   ============================================================ */
.help { background: #fff; }
.help-hero { text-align: center; padding: 64px 48px 24px; }
.help-hero h1 { font-size: 44px; font-weight: 700; color: var(--text); }
.help-hero .lead { font-size: 17px; color: var(--text-mid); margin-top: 16px; }
.help-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px;
  width: 1100px; max-width: calc(100% - 96px); margin: 24px auto 96px;
  align-items: start;
}
.help-faq h2, .help-contact h2 { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 20px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 0 20px; margin-bottom: 12px; background: #fff;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-size: 16px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--text-light); border-bottom: 2px solid var(--text-light);
  transform: rotate(45deg); transition: transform .2s ease; flex: none; margin-right: 4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { font-size: 15px; color: var(--text-mid); line-height: 1.65; padding: 0 0 18px; }

.help-contact { background: var(--app-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.help-contact .sub { font-size: 14px; color: var(--text-mid); margin: -12px 0 20px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .input { height: auto; padding: 12px 14px; align-items: stretch; }
.contact-form .input select, .contact-form .input textarea {
  width: 100%; border: none; outline: none; font-family: inherit; font-size: 15px; color: var(--text); background: transparent; resize: vertical;
}
.contact-form .input textarea::placeholder { color: var(--text-light); }
.contact-form .btn { margin-top: 4px; }
.form-note { font-size: 13px; color: var(--text-light); text-align: center; }

@media (max-width: 900px) {
  .help-body { grid-template-columns: 1fr; width: calc(100% - 48px); gap: 32px; margin-bottom: 64px; }
  .help-hero { padding: 48px 24px 16px; }
  .help-hero h1 { font-size: 34px; }
}

/* ============================================================
   APP SHELL (Dashboard / Surveys)
   ============================================================ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex: none; background: #fff; border-right: 1px solid var(--border);
  padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 0 4px 12px; }
.nav-items { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: var(--radius-md);
  color: var(--text-mid); font-size: 15px; font-weight: 500;
}
.nav-item:hover { background: var(--gray-bg); }
.nav-item.active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.nav-item .ico { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: inherit; }
.create-btn { margin-top: 8px; }
.sidebar .spacer { flex: 1; }
.user-profile {
  display: flex; align-items: center; gap: 10px; background: var(--primary-tint); border-radius: 10px; padding: 10px 12px;
}
.user-profile .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.user-profile .uname { font-size: 14px; font-weight: 600; color: var(--text); }
.user-profile .umail { font-size: 12px; color: var(--text-mid); }

.content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 72px; flex: none; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
}
.topbar .page-title { font-size: 18px; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.search-box {
  width: 280px; height: 40px; border: 1px solid var(--border); border-radius: var(--radius-md);
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text-light); font-size: 14px;
}
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-mid); }
.icon-btn:hover { background: var(--gray-bg); }
.topbar .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

.main { padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.greeting h1 { font-size: 24px; font-weight: 700; }
.greeting p { font-size: 14px; color: var(--text-mid); margin-top: 4px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; }
.stat-card .label { font-size: 13px; color: var(--text-mid); }
.stat-card .num { font-size: 30px; font-weight: 700; margin: 8px 0 4px; }
.stat-card .trend { font-size: 13px; font-weight: 500; color: var(--success); }

.lower-row { display: flex; gap: 24px; align-items: flex-start; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.recent { flex: 1; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head .title { font-size: 16px; font-weight: 600; }
.panel-head .more { font-size: 13px; font-weight: 500; color: var(--primary); }
.survey-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); }
.survey-row:first-of-type { border-top: none; }
.survey-row .s-name { font-size: 15px; font-weight: 500; color: var(--text); }
.survey-row .s-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }
.survey-row .s-stats { font-size: 13px; color: var(--text-mid); }
.right-col { width: 374px; flex: none; display: flex; flex-direction: column; gap: 24px; }
.points-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.points-card .ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.points-card .ph .t { font-size: 14px; font-weight: 600; }
.points-card .ph .v { font-size: 22px; font-weight: 700; color: var(--primary); }
.track { height: 8px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.track .fill { height: 100%; background: var(--primary); border-radius: 999px; }
.points-card .note { font-size: 13px; color: var(--text-mid); margin-top: 12px; }
.quick-actions .title { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.quick-actions .btn { width: 100%; margin-bottom: 12px; }

/* Badges */
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-gray { background: var(--gray-bg); color: var(--text-mid); }
.badge-blue { background: var(--primary-tint); color: var(--primary); }

/* Surveys page */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; }
.page-head .ph-left .title { font-size: 24px; font-weight: 700; }
.page-head .ph-left .sub { font-size: 14px; color: var(--text-mid); margin-top: 4px; }
.filter-tabs { display: flex; gap: 8px; }
.tab { height: 36px; padding: 0 16px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; color: var(--text-mid); background: #fff; border: 1px solid var(--border); }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.survey-grid { display: flex; flex-direction: column; gap: 16px; }
.survey-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.survey-card .top { display: flex; align-items: center; justify-content: space-between; }
.survey-card .name { font-size: 15px; font-weight: 600; color: var(--text); }
.survey-card .meta { font-size: 12px; color: var(--text-light); }
.survey-card .stats { display: flex; align-items: center; justify-content: space-between; }
.survey-card .stats .left { font-size: 13px; color: var(--text-mid); }
.survey-card .actions { display: flex; gap: 8px; }
.progress { height: 6px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* Language switcher (dropdown) */
.lang-switch {
  position: relative;
  display: inline-flex; align-items: center;
  height: 38px;
  border: 1px solid var(--border); border-radius: 999px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFE 100%);
  flex: none; cursor: pointer;
  padding: 0 4px 0 3px;
  box-shadow: 0 1px 2px rgba(26, 34, 56, .04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.lang-switch:hover {
  border-color: #C8D0E8;
  background: linear-gradient(180deg, #F8FAFF 0%, #EEF1FE 100%);
  box-shadow: 0 2px 6px rgba(67, 97, 238, .08);
}
.lang-switch:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, .15);
}
.lang-switch::before {
  content: ""; width: 24px; height: 24px; margin-right: 4px; flex: none;
  border-radius: 50%;
  background-color: var(--primary-tint);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234361EE'%20stroke-width='1.6'%20stroke-linecap='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M3%2012h18'/%3E%3Cpath%20d='M12%203c2.6%202.6%202.6%2015.4%200%2018M12%203c-2.6%202.6-2.6%2015.4%200%2018'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 14px 14px;
  transition: background-color .18s ease;
}
.lang-switch:hover::before { background-color: #DEE5FC; }
.lang-switch::after {
  content: ""; width: 12px; height: 12px; margin: 0 6px 0 2px; flex: none;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%236B7488'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
  transition: transform .18s ease, background-image .18s ease;
}
.lang-switch:hover::after { transform: translateY(1px); }
.lang-switch:focus-within::after {
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%234361EE'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E");
}
.lang-switch select.lang-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: inherit; font-size: 14px; line-height: 1; font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none; outline: none; cursor: pointer;
  padding: 0 6px 0 0;
  min-width: 88px;
  text-align: center;
  text-align-last: center;
  accent-color: var(--primary);
  transition: color .18s ease;
}
.lang-switch:hover select.lang-select { color: var(--primary); }
@media (max-width: 980px) {
  .lang-switch { height: 34px; }
  .lang-switch::before { width: 22px; height: 22px; background-size: 13px 13px; }
  .lang-switch select.lang-select { font-size: 13px; min-width: 76px; }
}
.nav .lang-switch { margin-right: 4px; }

/* ============================================================
   Motion & Effects
   ============================================================ */
/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Buttons — gentle lift + press */
.btn { transition: background .2s ease, transform .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(67,97,238,.28); }

/* Cards — lift on hover */
.reward-card, .survey-card, .feature-card, .stat-card, .panel, .points-card, .help-contact {
  transition: box-shadow .25s ease, transform .25s ease, border-color .2s ease;
}
.reward-card:hover, .survey-card:hover, .feature-card:hover, .stat-card:hover {
  box-shadow: var(--shadow-card); transform: translateY(-4px);
}
.panel:hover, .points-card:hover, .help-contact:hover { border-color: var(--primary); }
.logo-chip { transition: transform .25s ease, background .25s ease, color .25s ease; }
.logo-chip:hover { transform: translateY(-3px); background: var(--primary-tint); color: var(--primary); }
.faq-item { transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.trust-stat { transition: transform .25s ease; cursor: default; }
.trust-stat:hover { transform: translateY(-5px); }

/* Hero — soft floating visual + pulsing pill */
@keyframes ss-float { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 14px)); } }
.hero-visual { animation: ss-float 6s ease-in-out infinite; }
@keyframes ss-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(67,97,238,.20); } 50% { box-shadow: 0 0 0 10px rgba(67,97,238,0); } }
.pill { animation: ss-pulse 2.8s ease-in-out infinite; }
.nav { transition: box-shadow .25s ease, border-color .25s ease; }
.nav.scrolled { box-shadow: 0 6px 22px rgba(26,34,56,.07); border-color: transparent; }

/* Count-up numbers glow */
.trust-stat .num { background: linear-gradient(120deg, #4361EE, #6E8BFF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-visual, .pill { animation: none; }
  .btn:hover, .reward-card:hover, .survey-card:hover, .feature-card:hover, .stat-card:hover, .logo-chip:hover, .trust-stat:hover { transform: none; }
}

/* ============================================================
   REWARDS STORE & POINTS HISTORY
   ============================================================ */
.store-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: linear-gradient(135deg, #4361EE, #6E8BFF);
  border-radius: var(--radius-xl); padding: 28px 32px; color: #fff;
}
.store-hero-info { display: flex; flex-direction: column; gap: 4px; }
.store-balance-label { font-size: 14px; color: rgba(255,255,255,.85); }
.store-balance-num { font-size: 40px; font-weight: 700; line-height: 1.1; }
.store-balance-sub { font-size: 14px; color: rgba(255,255,255,.8); margin-top: 4px; }
.store-hero-cta .btn-outline { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.store-hero-cta .btn-outline:hover { background: rgba(255,255,255,.24); }

.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.store-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.store-card-top { display: flex; align-items: center; justify-content: space-between; }
.brand-badge {
  width: 40px; height: 40px; border-radius: 10px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
}
.store-tag { font-size: 12px; font-weight: 500; color: var(--text-mid); background: var(--gray-bg); padding: 4px 10px; border-radius: 999px; }
.store-name { font-size: 17px; font-weight: 600; color: var(--text); }
.store-value { font-size: 14px; font-weight: 600; color: var(--primary); }
.store-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.store-cost { font-size: 14px; color: var(--text-mid); }
.store-cost b { font-size: 18px; color: var(--text); font-weight: 700; }
.store-card.locked { opacity: .96; }
.store-card .btn:disabled { opacity: .5; cursor: not-allowed; }
.store-lock { font-size: 12px; color: var(--text-light); text-align: right; }
.store-lock b { color: var(--text-mid); }

.hist-list { display: flex; flex-direction: column; }
.hist-left { display: flex; align-items: center; gap: 14px; }
.hist-ico { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.hist-ico.plus { background: var(--success-bg); color: var(--success); }
.hist-ico.minus { background: #FDECEC; color: #E5484D; }
.hist-amt { font-size: 16px; font-weight: 700; }
.hist-amt.plus { color: var(--success); }
.hist-amt.minus { color: #E5484D; }

/* ============================================================
   Responsive (keep desktop fidelity, graceful shrink)
   ============================================================ */
@media (max-width: 1380px) {
  .feature-grid, .step-row, .reward-row { grid-template-columns: repeat(2, minmax(0, 432px)); }
  .trust-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .auth-aside { display: none; }
  .feature-grid, .step-row, .reward-row { grid-template-columns: 1fr; }
  .lower-row { flex-direction: column; }
  .right-col { width: 100%; }
  .hero-visual { display: none; }
  .sidebar { display: none; }
  .store-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTH STANDALONE (Verify / Reset)
   ============================================================ */
.view.auth-standalone.active {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: #fff; padding: 40px;
}
.auth-card-center {
  width: 440px; max-width: calc(100% - 32px);
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  text-align: center;
}
.center-brand { justify-content: center; margin-bottom: 8px; }
.auth-card-center h2 { font-size: 26px; font-weight: 700; color: var(--text); }
.auth-card-center .sub { font-size: 15px; color: var(--text-mid); margin-top: -4px; line-height: 1.6; }
.auth-card-center .sub b { color: var(--primary); }
.verify-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--primary-tint);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 8px;
}
.auth-card-center .switch-line { margin-top: 4px; }

/* Quality termination page */
.quality-card { align-items: center; text-align: center; }
.quality-card h1 { font-size: 26px; font-weight: 700; color: var(--text); margin: 0; }
.quality-sub { font-size: 15px; color: var(--text-mid); line-height: 1.6; margin: 0; }
.quality-note { font-size: 13px; color: var(--text-mid); background: var(--bg, #f5f6f8); border-radius: 10px; padding: 10px 12px; margin: 0; }
.quality-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #fff4e5; color: #f59e0b;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}

/* Register agree links */
.agree-links { display: flex; gap: 8px; justify-content: center; font-size: 13px; color: var(--text-light); }
.agree-links a { color: var(--primary); font-weight: 500; }
.agree-links .dot { color: var(--text-light); }

/* ============================================================
   SETTINGS
   ============================================================ */
.set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.set-grid .danger-zone { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.set-save { margin-top: 4px; }
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border);
}
.switch-row:first-of-type { border-top: none; }
.switch-row .s-title { font-size: 15px; font-weight: 500; color: var(--text); }
.switch-row .s-sub { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.switch {
  width: 44px; height: 26px; border-radius: 999px; background: var(--gray-bg);
  position: relative; flex: none; cursor: pointer; transition: background .2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(26,34,56,.2);
  transition: transform .2s ease;
}
.switch.on { background: var(--primary); }
.switch.on::after { transform: translateX(18px); }
.danger-zone { border-color: #FAD2D2; }
.danger-zone .title { color: #E5484D; }
.danger-note { font-size: 14px; color: var(--text-mid); margin-bottom: 16px; line-height: 1.6; }
.danger-btn { color: #E5484D; border-color: #FAD2D2; }
.danger-btn:hover { background: #FDECEC; }

/* ============================================================
   LEGAL PAGES (Terms / Privacy)
   ============================================================ */
.legal { background: #fff; }
.legal-hero { text-align: center; padding: 64px 48px 24px; }
.legal-hero h1 { font-size: 40px; font-weight: 700; color: var(--text); }
.legal-hero .lead { font-size: 15px; color: var(--text-mid); margin-top: 12px; }
.legal-body {
  width: 820px; max-width: calc(100% - 96px); margin: 16px auto 96px;
  display: flex; flex-direction: column; gap: 28px;
}
.legal-sec h2 { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.legal-sec p { font-size: 15px; color: var(--text-mid); line-height: 1.75; }
.legal-contact { font-size: 14px; color: var(--text-mid); border-top: 1px solid var(--border); padding-top: 24px; }

/* Status badges */
.badge-amber { background: #FFF4E0; color: #B7791F; }

/* Form error + auth additions */
.form-error { color: #d64545; font-size: 13px; margin: 4px 0 12px; line-height: 1.4; }
.field-error { color: #d64545; font-size: 12px; margin: 6px 0 0; line-height: 1.4; min-height: 0; }
.field-error:not([hidden]) { margin-bottom: 10px; }
.logout-btn { margin-top: 10px; width: 100%; }

/* Responsive additions */
@media (max-width: 980px) {
  .set-grid, .form-grid { grid-template-columns: 1fr; }
  .legal-body { width: calc(100% - 48px); }
  .legal-hero { padding: 48px 24px 16px; }
  .legal-hero h1 { font-size: 30px; }
}

/* ---- Surveys: points chip ---- */
.points-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #FFF7E8; border: 1px solid #FCE3B4; color: #B7791F;
  padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px;
}
.points-chip .pts-label { font-weight: 600; opacity: 0.8; }
.points-chip.pop { animation: ptsPop 0.5s ease; }
@keyframes ptsPop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* ---- Surveys: loading / empty states ---- */
.survey-loading { padding: 48px 0; text-align: center; color: var(--text-mid); font-size: 14px; }
.survey-empty { padding: 40px 0; }
.empty-card {
  border: 1px dashed var(--border); border-radius: var(--radius-xl);
  padding: 48px 24px; text-align: center;
}
.empty-title { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-sub { font-size: 13px; color: var(--text-mid); margin-top: 8px; }

/* ---- Surveys: progress bar (real taken/quota) ---- */
.survey-card .progress { height: 6px; background: var(--gray-bg); border-radius: 999px; overflow: hidden; }
.survey-card .progress .fill { height: 100%; background: var(--primary); border-radius: 999px; }

/* ---- Modal (in-platform questions) ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px;
}
.modal-card {
  background: #fff; border-radius: var(--radius-xl); width: 560px; max-width: 100%;
  max-height: 86vh; overflow-y: auto; padding: 28px; position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}
.modal-close {
  position: absolute; top: 14px; right: 16px; border: none; background: transparent;
  font-size: 26px; line-height: 1; color: var(--text-mid); cursor: pointer;
}
.modal-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-desc { font-size: 13px; color: var(--text-mid); margin-bottom: 18px; }
.q-block { padding: 14px 0; border-top: 1px solid var(--border); }
.q-prompt { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.q-opt { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text-mid); cursor: pointer; }
.q-opt input { width: 16px; height: 16px; }
.q-text { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-overlay[hidden] { display: none !important; }
.confirm-card { width: 420px; max-width: 100%; }
.confirm-icon { width: 46px; height: 46px; border-radius: 50%; background: #FEF2F2; color: #DC2626; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; margin-bottom: 14px; }

/* ---- Toast ---- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: #1f2937; color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0; transition: opacity 0.25s, transform 0.25s; z-index: 1100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #16a34a; }

/* ---- Bell badge & Notifications ---- */
.icon-btn { position: relative; }
.bell-badge {
  position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px;
  border-radius: 8px; text-align: center; box-shadow: 0 0 0 2px #fff; box-sizing: border-box;
}
.bell-badge[hidden] { display: none; }

.notif-panel {
  position: fixed; top: 64px; right: 18px; width: 340px; max-height: 72vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15,23,42,0.18); z-index: 1200;
}
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.notif-title { font-size: 15px; font-weight: 700; color: var(--text); }
.notif-markall { border: none; background: transparent; color: #4361EE; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.notif-markall:hover { text-decoration: underline; }
.notif-list { padding: 6px; }
.notif-item { display: block; width: 100%; text-align: left; border: none; background: transparent; padding: 12px; border-radius: 10px; cursor: pointer; }
.notif-item:hover { background: var(--gray-bg); }
.notif-item.unread { background: #F5F8FF; }
.notif-item .n-title { font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.notif-item .n-dot { width: 8px; height: 8px; border-radius: 50%; background: #4361EE; flex: none; }
.notif-item.read .n-dot { display: none; }
.notif-item .n-body { font-size: 12.5px; color: var(--text-mid); margin-top: 4px; line-height: 1.5; }
.notif-item .n-time { font-size: 11px; color: #9aa3b2; margin-top: 6px; }
.notif-empty { padding: 28px 16px; text-align: center; font-size: 13px; color: var(--text-mid); }
.notif-empty[hidden] { display: none; }

