/**
 * Design System & Styling for Gemini Enterprise Hackathon Feedback Agent
 * Built with Vanilla CSS tokens, glassmorphism, responsive grid & fluid micro-interactions.
 */

:root {
  /* Dark Theme Tokens (Default) */
  --bg-primary: #09090b;
  --bg-secondary: #111115;
  --bg-card: rgba(24, 24, 27, 0.75);
  --bg-card-hover: rgba(39, 39, 42, 0.85);
  --bg-glass: rgba(18, 18, 22, 0.65);
  --border-color: rgba(63, 63, 70, 0.45);
  --border-glow: rgba(99, 102, 241, 0.35);

  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --accent-primary: #6366f1;       /* Indigo */
  --accent-secondary: #8b5cf6;     /* Violet */
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-pink: #ec4899;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-glass: rgba(255, 255, 255, 0.7);
  --border-color: rgba(226, 232, 240, 0.9);
  --border-glow: rgba(99, 102, 241, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.1) 0%, transparent 45%);
  background-attachment: fixed;
}

/* App Container */
.app-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Global Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: var(--bg-glass);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-logos {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.gcp-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(66, 133, 244, 0.12);
  border: 1px solid rgba(66, 133, 244, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.zs-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.zs-dot {
  font-size: 0.6rem;
}

.brand-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.header-titles {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.header-app-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-tag {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Header Navigation Tabs */
.header-nav {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.nav-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
}

.tab-icon {
  font-size: 0.95rem;
}

.header-controls {
  display: flex;
  align-items: center;
}

.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-primary);
}

/* Main Content Area & Panels */
.app-main {
  flex: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------
   1. CONVERSATIONAL AI CHAT INTERVIEWER STYLES
   ------------------------------------------------------------- */
.chat-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 170px);
  min-height: 600px;
  overflow: hidden;
  position: relative;
}

/* Chat Header Bar */
.chat-header-bar {
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ai-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-dot.online {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.agent-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.section-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.chat-progress-wrapper {
  min-width: 180px;
}

.progress-info-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.3rem;
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Chat Messages Stream */
.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.chat-bubble {
  display: flex;
  gap: 0.85rem;
  max-width: 88%;
}

.agent-bubble {
  align-self: flex-start;
}

.user-bubble {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.agent-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.4);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.bubble-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.bubble-sender {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.agent-bubble .bubble-sender {
  margin-left: 0.2rem;
}

.user-bubble .bubble-sender {
  text-align: right;
  margin-right: 0.2rem;
}

.bubble-text {
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.5;
}

.agent-bubble .bubble-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-top-left-radius: 4px;
}

.user-bubble .bubble-text {
  background: var(--accent-primary);
  color: #ffffff;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Agent Cards inside Chat */
.agent-welcome-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.zscaler-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.badge-gcp {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
}

.badge-zs {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
}

.badge-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.welcome-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-primary);
}

.welcome-stats-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-top: 0.3rem;
}

/* Quick Replies Drawer */
.chat-quick-replies {
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  min-height: 48px;
}

.quick-replies-scale {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.scale-labels-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.scale-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.scale-pill-btn {
  flex: 1;
  min-width: 65px;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: var(--transition-fast);
}

.scale-pill-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.pill-label {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.quick-replies-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-chip-btn {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-chip-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.quick-chip-btn.selected {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

.quick-replies-multiselect {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.multiselect-chips-grid {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.confirm-multi-btn {
  align-self: flex-start;
}

.quick-replies-actions {
  display: flex;
  justify-content: flex-end;
}

.quick-skip-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-skip-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Chat Input Bar */
.chat-input-area {
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-glow-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.5rem 0.35rem 1.25rem;
  transition: var(--transition-fast);
}

.input-glow-wrapper:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.3);
}

.chat-text-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.chat-text-input::placeholder {
  color: var(--text-muted);
}

.chat-text-input.input-warning::placeholder {
  color: #ef4444;
}

.chat-send-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.chat-send-button:hover {
  background: var(--accent-secondary);
  transform: scale(1.05);
}

.chat-subhint {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 0.5rem;
}

/* Completion Card */
.completion-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.completion-icon {
  font-size: 2.5rem;
  margin-bottom: 0.3rem;
}

.completion-hero h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-primary);
}

.summary-review-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.88rem;
}

.submit-action-area {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gform-sync-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.primary-action-btn {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: none;
  background: var(--gradient-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.primary-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.pulse-glow-btn {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(99, 102, 241, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.success-banner-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.success-badge {
  font-weight: 700;
  color: var(--accent-emerald);
  font-size: 0.9rem;
}

.post-submit-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.view-dashboard-btn {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.reset-survey-btn {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

/* -------------------------------------------------------------
   2. FORM CARD VIEW STYLES
   ------------------------------------------------------------- */
.form-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-header-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.form-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.gcp-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(66, 133, 244, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.zs-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.cross-icon {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-header-card h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.form-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Section Tabs */
.form-section-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.section-tab-btn {
  flex: 1;
  min-width: 170px;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition-fast);
}

.section-tab-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.section-tab-btn.active {
  background: var(--bg-secondary);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.tab-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  color: var(--accent-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-tab-btn.active .tab-number {
  background: var(--accent-primary);
  color: #ffffff;
}

/* Section Panels */
.form-section-panel {
  display: none;
}

.form-section-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fadeIn 0.25s ease-in-out;
}

.section-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.5rem;
}

.section-banner h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-banner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.questions-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: var(--transition-fast);
}

.question-card:focus-within {
  border-color: var(--accent-primary);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.15);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  gap: 1rem;
}

.question-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.req-star {
  font-size: 0.72rem;
  font-weight: 600;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.opt-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

/* Scale Selector Widget */
.scale-selector-widget {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scale-minmax-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.scale-options-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.scale-radio-card {
  padding: 0.75rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: var(--transition-fast);
}

.scale-radio-card input {
  display: none;
}

.scale-radio-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.scale-radio-card.selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

.scale-number {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.scale-stars {
  font-size: 0.65rem;
  color: var(--accent-amber);
}

/* Radio Cards Grid */
.radio-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
}

.radio-card-option {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.radio-card-option input {
  display: none;
}

.radio-card-option:hover {
  border-color: var(--accent-primary);
}

.radio-card-option.selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

.radio-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}

.radio-card-option.selected .radio-circle {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  box-shadow: inset 0 0 0 3px var(--bg-secondary);
}

/* Checkbox Cards Grid */
.checkbox-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
}

.checkbox-card-option {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.checkbox-card-option input {
  display: none;
}

.checkbox-card-option:hover {
  border-color: var(--accent-primary);
}

.checkbox-card-option.selected {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border-color);
}

.checkbox-card-option.selected .custom-checkbox {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
}

/* Section Nav Footer */
.section-nav-footer {
  margin-top: 1rem;
}

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

.secondary-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.secondary-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-secondary);
}

.primary-btn {
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.primary-btn:hover {
  background: var(--accent-secondary);
}

.final-step-hint {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
}

/* Form Final Submit Card */
.form-final-submit-card {
  background: var(--bg-card);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.submit-card-content h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.submit-card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* -------------------------------------------------------------
   3. ORGANIZER ANALYTICS DASHBOARD STYLES
   ------------------------------------------------------------- */
.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.dash-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.dash-title-group h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.live-pulse-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.bq-source-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.dash-actions-group {
  display: flex;
  gap: 0.5rem;
}

.dash-action-btn {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.dash-action-btn.primary {
  background: var(--accent-primary);
  color: #fff;
  border: none;
}

.dash-action-btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.dash-action-btn.outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.dash-action-btn:hover {
  transform: translateY(-1px);
}

/* KPI Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.kpi-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kpi-icon-wrapper.blue { background: rgba(59, 130, 246, 0.15); }
.kpi-icon-wrapper.amber { background: rgba(245, 158, 11, 0.15); }
.kpi-icon-wrapper.purple { background: rgba(139, 92, 246, 0.15); }
.kpi-icon-wrapper.cyan { background: rgba(6, 182, 212, 0.15); }
.kpi-icon-wrapper.emerald { background: rgba(16, 185, 129, 0.15); }

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

.kpi-max {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Charts Grid */
.dash-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 1.25rem;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-card-header h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
}

.chart-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.metric-bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.metric-bar-track {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Features Breakdown */
.feature-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.65rem;
}

.feature-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.feature-name {
  font-weight: 500;
}

.feature-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.feature-track {
  width: 100%;
  height: 7px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.feature-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Secondary Dash Grid */
.dash-secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.pill-dist-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dist-pill-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.dist-pill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.dist-pill-key {
  font-weight: 500;
}

.dist-pill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dist-pill-track {
  width: 100%;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.dist-pill-fill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
}

/* Hands-on Balance Gauge */
.balance-gauge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
  gap: 0.6rem;
}

.gauge-value-display {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.gauge-status-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.gauge-bar-track {
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #f59e0b 100%);
  border-radius: var(--radius-full);
  position: relative;
  margin: 0.5rem 0;
}

.gauge-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--accent-emerald);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.gauge-labels-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Qualitative Insights Wall */
.insights-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-title-box h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.section-title-box p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.insights-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.insight-column {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.column-header {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.column-header.green { color: var(--accent-emerald); }
.column-header.purple { color: #a78bfa; }
.column-header.amber { color: var(--accent-amber); }

.quotes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 280px;
  overflow-y: auto;
}

.quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-size: 0.85rem;
}

.quote-text {
  color: var(--text-primary);
  font-style: italic;
  margin-bottom: 0.35rem;
}

.quote-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.quote-role {
  color: var(--accent-cyan);
}

/* Submissions Table */
.responses-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.table-search-box input {
  padding: 0.45rem 0.85rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.82rem;
  outline: none;
  min-width: 250px;
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-table th {
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.cell-user {
  display: flex;
  flex-direction: column;
}

.user-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.role-badge {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.rating-badge {
  font-weight: 700;
  font-size: 0.82rem;
}

.rating-badge.rating-5 { color: var(--accent-emerald); }
.rating-badge.rating-4 { color: #60a5fa; }
.rating-badge.rating-3 { color: var(--accent-amber); }

.plan-badge {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.cell-time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.view-details-btn {
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.view-details-btn:hover {
  border-color: var(--accent-primary);
  color: #a5b4fc;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 1rem 0;
}

.modal-field {
  margin-bottom: 0.85rem;
}

.modal-field h5 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.quote-bubble {
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-primary);
  padding: 0.5rem 0.75rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast-error { border-left: 4px solid #ef4444; }

.fade-in-up {
  animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-out {
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

.spinner-large {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

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

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-dot {
  margin: 0 0.4rem;
}

.footer-link {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-nav {
    width: 100%;
    justify-content: space-around;
  }

  .nav-tab-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .chat-container {
    height: calc(100vh - 220px);
  }

  .dash-charts-grid {
    grid-template-columns: 1fr;
  }

  .scale-options-row {
    grid-template-columns: repeat(5, 1fr);
  }

  .scale-radio-card {
    padding: 0.5rem 0.2rem;
  }

  .form-final-submit-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* -------------------------------------------------------------
   GOOGLE OAUTH & AUTHENTICATION MODAL STYLES
   ------------------------------------------------------------- */
.user-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.6rem 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-right: 0.5rem;
}

.user-avatar-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-primary);
}

.user-name-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.logout-btn:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.auth-modal-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.auth-badge {
  display: inline-block;
  padding: 0.25rem 0.85rem;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.auth-logos-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-modal-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.auth-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.google-signin-wrapper {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0;
  width: 100%;
}

.auth-loading-spinner {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-error-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  width: 100%;
  text-align: left;
  line-height: 1.4;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.auth-divider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.attendee-auth-section {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.attendee-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.shield-icon {
  margin-right: 0.25rem;
}

.cbi-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.attendee-auth-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: left;
  line-height: 1.35;
}

.attendee-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.auth-single-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.auth-single-row .auth-text-input {
  flex: 1;
}

.auth-single-row .attendee-submit-btn {
  width: auto;
  min-width: 110px;
  white-space: nowrap;
  margin-top: 0;
  padding: 0.55rem 1rem;
}

@media (max-width: 500px) {
  .auth-single-row {
    flex-direction: column;
  }
  .auth-single-row .attendee-submit-btn {
    width: 100%;
  }
}

.auth-text-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.auth-text-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}

.auth-modal-footer {
  font-size: 0.72rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
  width: 100%;
}
