:root {
  --bg: #060911;
  --card-bg: #0d121f;
  --card-border: rgba(0, 210, 255, 0.22);
  --card-border-subtle: rgba(255, 255, 255, 0.08);
  --primary: #00d2ff;
  --primary-glow: rgba(0, 210, 255, 0.35);
  --secondary: #ffb703;
  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --font-sans: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 0;
}

/* The Fixed Single-Page Stage Card (800x620 Base Resolution, Scaled to Fit Window) */
.stage-card {
  width: 800px;
  height: 620px;
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--card-border);
  background-color: var(--card-bg);
  z-index: 1;
  transform: translate(-50%, -50%) scale(var(--scale, 1));
  transform-origin: center center;
  flex-shrink: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Background Animated Beach Layer (Confined strictly between Header 46px and Footer 30px) */
.bg-layer {
  position: absolute;
  top: 46px;
  bottom: 30px;
  left: 0;
  right: 0;
  background-image: url('/assets/beach.gif');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay: intentionally transparent so the beach image is never dimmed;
   text contrast comes from card panels and text shadows instead. */
.bg-overlay {
  position: absolute;
  top: 46px;
  bottom: 30px;
  left: 0;
  right: 0;
  background: none;
  pointer-events: none;
  z-index: 2;
}

/* Card Header (46px) - Outside background image */
.card-header {
  position: relative;
  z-index: 10;
  height: 46px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border-subtle);
  background: #090e1a;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.2px;
}

.brand-icon {
  font-size: 1.25rem;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.28);
  padding: 1px 6px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: var(--primary);
  background: rgba(0, 210, 255, 0.12);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.26rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-header-bbs {
  background: linear-gradient(135deg, #00d2ff, #0284c7);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-header-bbs:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-header-beta {
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.3);
  color: var(--secondary);
}

.btn-header-beta:hover {
  background: rgba(255, 183, 3, 0.22);
}

/* Card Body (544px) */
.card-body {
  position: relative;
  z-index: 10;
  flex: 1;
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Card Footer (30px) - Outside background image */
.card-footer {
  position: relative;
  z-index: 10;
  height: 30px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--card-border-subtle);
  background: #070b14;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748b;
}

.card-footer a {
  color: inherit;
  text-decoration: none;
}

.card-footer a:hover {
  color: var(--text-muted);
}

/* ========================================================= */
/* TEASER / HERO VIEW (index.html, 404.html)                 */
/* ========================================================= */
.teaser-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.24rem 0.85rem;
  background: rgba(6, 12, 24, 0.55);
  border: 1px solid rgba(0, 210, 255, 0.35);
  border-radius: 999px;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 210, 255, 0.5);
}

.main-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.8), 0 0 28px rgba(0, 0, 0, 0.6);
}

.title-sub {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 0.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
}

.teaser-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.65;
  margin: 0.75rem 0 1.25rem 0;
  max-width: 520px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 14px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 0, 0, 0.6);
}

.teaser-panel {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 12px;
  padding: 1.5rem 2rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 580px;
  width: 100%;
}

.status-box {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.status-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #f8fafc;
  background: rgba(6, 12, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cta-icon {
  font-size: 1.4rem;
}

.cta-content {
  display: flex;
  flex-direction: column;
}

.cta-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
}

.cta-domain {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.spec-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.spec-strip .sep {
  color: rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* ========================================================= */
/* SUBPAGES VIEW (about, features, terms, privacy)           */
/* ========================================================= */
.subpage-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.subpage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.subpage-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.95), 0 4px 12px rgba(0, 0, 0, 0.8);
}

.en-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.95;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 210, 255, 0.4);
}

.header-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(6, 12, 24, 0.75);
  border: 1px solid rgba(0, 210, 255, 0.4);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* About Grid */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  flex: 1;
  align-items: stretch;
}

.info-card {
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid var(--card-border-subtle);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
}

.info-card:hover {
  border-color: rgba(0, 210, 255, 0.3);
  transform: translateY(-1px);
}

.info-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.info-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.info-card p {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  flex: 1;
}

/* Features Grid */
.features-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  flex: 1;
}

.feature-item {
  background: rgba(13, 20, 36, 0.65);
  border: 1px solid var(--card-border-subtle);
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
}

.feature-item:hover {
  border-color: rgba(0, 210, 255, 0.3);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.feat-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 210, 255, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

.feature-head h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-item p {
  font-size: 0.78rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* Scrollable Legal Box for Terms & Privacy */
.scroll-viewer {
  flex: 1;
  height: 200px;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  background: rgba(6, 10, 18, 0.5);
  border: 1px solid var(--card-border-subtle);
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.scroll-viewer::-webkit-scrollbar {
  width: 5px;
}

.scroll-viewer::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.scroll-viewer::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.3);
  border-radius: 3px;
}

.scroll-viewer::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.scroll-viewer h3 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.scroll-viewer h3:first-child {
  margin-top: 0;
}

.scroll-viewer p {
  margin-bottom: 0.6rem;
}

.scroll-viewer code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 210, 255, 0.1);
  color: var(--primary);
  padding: 1px 4px;
  border-radius: 3px;
}

.highlight-notice {
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.about-footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #64748b;
}

/* ========================================================= */
/* SURVEY & CTA STYLES                                       */
/* ========================================================= */
.survey-cta-wrap {
  margin: 0.2rem 0 1.15rem 0;
}

.survey-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1.25rem;
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.25), rgba(2, 132, 199, 0.35));
  border: 1px solid rgba(0, 210, 255, 0.5);
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(0, 210, 255, 0.3), 0 2px 6px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.survey-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.42), rgba(2, 132, 199, 0.55));
  border-color: #00d2ff;
  box-shadow: 0 6px 24px rgba(0, 210, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.8);
  color: #ffffff;
}

.survey-cta-icon {
  font-size: 1rem;
}

.survey-cta-arrow {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-weight: 700;
  transition: transform 0.2s ease;
}

.survey-cta-btn:hover .survey-cta-arrow {
  transform: translateX(3px);
}

/* One Question Per Page Survey Layout */
.survey-progress-wrap {
  margin-bottom: 0.55rem;
}

.survey-meta-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.3rem 0.5rem;
  background: rgba(3, 8, 18, 0.5);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #f8fafc;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.75);
}

.survey-cat-pill {
  color: #06111f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #ffdf7e, var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.82);
  padding: 0.18rem 0.58rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(6, 17, 31, 0.7), 0 4px 14px rgba(0, 0, 0, 0.72), 0 0 18px rgba(255, 183, 3, 0.35);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 5px rgba(255, 255, 255, 0.35);
}

.survey-top-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.survey-meta-bar .survey-counter {
  margin-left: 0.6rem;
}

.survey-textarea-board {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 3.9rem;
  max-height: 3.9rem;
  resize: none;
  overflow-y: auto;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-sans, inherit);
  font-size: 0.8rem;
  line-height: 1.3rem;
  color: #f8fafc;
  background: rgba(2, 6, 14, 0.85);
  border: 1px solid rgba(125, 211, 252, 0.55);
  border-radius: 6px;
  outline: none;
  box-sizing: border-box;
}

.survey-textarea-board:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

.survey-counter {
  color: #f1f5f9;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 10px rgba(0, 210, 255, 0.3);
}

.survey-progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.survey-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #38bdf8);
  border-radius: 999px;
  transition: width 0.25s ease-out;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
}

.q-page-card {
  width: 100%;
  height: auto;
  max-height: none;
  background: rgba(3, 8, 18, 0.5);
  border: 1px solid rgba(125, 211, 252, 0.5);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.78), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.q-page-card.active {
  display: flex;
}

.q-page-card.slide-next {
  animation: slideNext 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.q-page-card.slide-prev {
  animation: slidePrev 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideNext {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slidePrev {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.q-page-card::-webkit-scrollbar {
  width: 4px;
}
.q-page-card::-webkit-scrollbar-thumb {
  background: rgba(0, 210, 255, 0.3);
  border-radius: 2px;
}

.q-page-header {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.q-page-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.q-page-hint {
  font-size: 0.74rem;
  color: #dbeafe;
  margin-top: 0.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.q-page-body {
  flex: 0 0 auto;
}

.opt-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.opt-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

.survey-textarea-large {
  width: 100%;
  height: 85px;
  background: rgba(4, 8, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

.survey-textarea-large:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.question-note-field {
  display: grid;
  gap: 0.32rem;
  margin-top: 0.5rem;
}

.question-note-toggle {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 223, 126, 0.48);
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffdf7e;
  cursor: pointer;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 8px rgba(255, 183, 3, 0.28);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.question-note-toggle:hover,
.question-note-toggle:focus-visible,
.question-note-toggle.expanded {
  background: rgba(255, 183, 3, 0.22);
  border-color: rgba(255, 223, 126, 0.72);
  color: #fff7d6;
  outline: none;
}

.question-note-toggle-icon {
  font-size: 0.8rem;
  line-height: 1;
}

.question-note-wrap[hidden] {
  display: none;
}

.question-note-input {
  width: 100%;
  height: 4.45rem;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid rgba(255, 223, 126, 0.45);
  border-radius: 6px;
  padding: 0.36rem 0.62rem;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
  outline: none;
  resize: none;
  overflow-y: auto;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.question-note-input::-webkit-scrollbar {
  width: 4px;
}

.question-note-input::-webkit-scrollbar-thumb {
  background: rgba(255, 183, 3, 0.45);
  border-radius: 2px;
}

.question-note-input::placeholder {
  color: #94a3b8;
}

.question-note-input:focus {
  border-color: #ffb703;
  box-shadow: 0 0 0 2px rgba(255, 183, 3, 0.18), 0 0 12px rgba(255, 183, 3, 0.28);
}

.survey-input-large {
  width: 100%;
  background: rgba(4, 8, 16, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.survey-input-large:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.q-block {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.q-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.q-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-req {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 1px 4px;
  border-radius: 3px;
}

.badge-opt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 4px;
  border-radius: 3px;
}

.q-desc {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 0.45rem;
}

.opt-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

.opt-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.24rem 0.55rem;
  background: rgba(13, 20, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 0.78rem;
  line-height: 1.3;
}

.opt-item:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: rgba(0, 210, 255, 0.35);
}

.opt-item input[type="radio"],
.opt-item input[type="checkbox"] {
  accent-color: #00d2ff;
  cursor: pointer;
}

.opt-item span {
  color: #e2e8f0;
}

.opt-item input:checked ~ span {
  color: #00d2ff;
  font-weight: 600;
}

/* Rating Scale Table */
.rating-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
  margin-top: 0.3rem;
}

.rating-table th {
  padding: 0.3rem 0.4rem;
  text-align: center;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.rating-table th:first-child {
  text-align: left;
}

.rating-table td {
  padding: 0.32rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.rating-table td:first-child {
  text-align: left;
  color: #e2e8f0;
}

.rating-table input[type="radio"] {
  accent-color: #00d2ff;
  cursor: pointer;
}

/* Text Inputs */
.survey-text-input {
  width: 100%;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.8rem;
  transition: all 0.15s ease;
  outline: none;
}

.survey-text-input:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

.survey-textarea {
  width: 100%;
  height: 52px;
  resize: vertical;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  padding: 0.4rem 0.6rem;
  color: #f8fafc;
  font-family: inherit;
  font-size: 0.8rem;
  transition: all 0.15s ease;
  outline: none;
  line-height: 1.4;
}

.survey-textarea:focus {
  border-color: #00d2ff;
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.25);
}

/* Action Bar */
.survey-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.35rem;
  padding: 0.22rem 0.6rem;
  background: rgba(6, 12, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-survey-nav {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.26rem 0.85rem;
  border-radius: 5px;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #f8fafc;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  transition: all 0.15s ease;
}

.btn-survey-nav:hover:not(:disabled) {
  background: rgba(0, 210, 255, 0.28);
  border-color: #00d2ff;
  color: #fff;
}

.btn-survey-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-survey-submit {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.32rem 1rem;
  border-radius: 5px;
  background: linear-gradient(135deg, #00d2ff, #0284c7);
  border: none;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.4);
  transition: all 0.15s ease;
}

.btn-survey-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.55);
}

/* Success Card */
.survey-success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 1.5rem 1rem;
}

.survey-success-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.survey-success-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.survey-success-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.survey-receipt-box {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 210, 255, 0.08);
  border: 1px dashed rgba(0, 210, 255, 0.35);
  color: #00d2ff;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
