/* ================= DEALCODE STYLE SYSTEM (CLEAN GRAPHIC VERSION) ================= */

:root {
  /* Colors */
  --primary: #0f52fa;
  --primary-hover: #0d4ad6;
  --primary-light: rgba(15, 82, 250, 0.08);
  --primary-glow: rgba(15, 82, 250, 0.15);
  --bg-dark: #0b0f19;
  --bg-workspace: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  
  /* Statuses */
  --success: #10b981;
  --success-bg: #dcfce7;
  --success-text: #15803d;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #b45309;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --info-text: #1d4ed8;

  /* Font weights & styles */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease-out;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-ui);
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: transparent;
  color: var(--text-main);
  user-select: none;
}

/* Floating background glow elements */
.glow-bg {
  display: block;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  mix-blend-mode: screen;
  transition: var(--transition-smooth);
}

.orb-1 {
  top: -10%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--primary) 0%, rgba(37,99,235,0) 70%);
}

.orb-2 {
  bottom: -10%;
  right: 10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139,92,246,0) 70%);
}

/* App Viewport Container */
#app-container {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px; 
  background: var(--bg-workspace);
  border-radius: 12px;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

#app-container.app-mode-interactive {
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* Main Content Workspace */
.main-content {
  display: flex;
  flex-direction: column;
  height: 480px; /* fills space minus control bar */
  width: 100%;
  overflow: hidden;
}

/* Walkthrough Header (Stepper) */
.walkthrough-header {
  height: 56px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  z-index: 100;
}

/* Stepper Styling */
.stepper {
  display: flex;
  align-items: center;
  gap: 4px;
}

.step {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px 6px;
  border-radius: 6px;
}

.step:hover {
  background-color: rgba(15, 82, 250, 0.04);
  color: var(--text-main);
}

.step.active {
  color: var(--primary);
}

.step.completed {
  color: var(--success);
}

.step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  transition: var(--transition-fast);
}

.step.active .step-num {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

.step.completed .step-num {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.step-line {
  width: 8px;
  height: 2px;
  background-color: var(--border-light);
}

.step.completed + .step-line {
  background-color: var(--success);
}

/* View Viewport & Animation */
.view-viewport {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  height: calc(100% - 56px);
}

.view-pane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.view-pane.active {
  display: flex;
  animation: fade-in 0.3s ease-out forwards;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ================= VIEW 1: WEBSITE ERKENNUNG ================= */
.browser-window {
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  position: relative;
}

.browser-header {
  height: 34px;
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 12px;
  position: relative;
  z-index: 20;
}

.browser-dots {
  display: flex;
  gap: 6px;
  position: absolute;
  left: 12px;
}

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

.browser-dot.red { background-color: #ef4444; }
.browser-dot.yellow { background-color: #eab308; }
.browser-dot.green { background-color: #22c55e; }

.browser-address {
  margin: 0 auto;
  width: 360px;
  height: 22px;
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.lock-icon {
  color: var(--success);
}

.browser-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
  background-color: #0f172a;
}

/* Website Mock bg */
.web-hero-bg {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, #1e293b 0%, #0f172a 100%);
  padding: 28px;
  color: white;
}

.web-logo {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: #38bdf8;
}

.web-hero-content {
  max-width: 520px;
  margin-top: 15px;
}

.web-hero-content h1 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.web-hero-content p {
  font-size: 13px;
  color: #94a3b8;
}

/* Dimming Overlay for Phase 1 and 2 */
.browser-dim-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(2px);
  z-index: 10;
}

/* Centered Zoom-in Toast (Phase 1 & 2) */
.centered-toast {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  width: 480px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(15, 82, 250, 0.4);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(15, 82, 250, 0.25);
  padding: 18px;
  color: white;
  z-index: 30;
  opacity: 0;
  animation: zoom-in-toast-key 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes zoom-in-toast-key {
  to {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
}

.toast-body-focused {
  margin-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.toast-body-focused h4 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

/* Pulsating Horizontal Progress bar */
.pulse-progress-bar {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.pulse-progress-fill {
  height: 100%;
  width: 50%;
  background-color: var(--primary);
  border-radius: 3px;
  position: absolute;
  animation: pulse-progress-key 1.5s infinite ease-in-out;
}

@keyframes pulse-progress-key {
  0% { left: -50%; }
  100% { left: 100%; }
}

/* ================= VIEW 2: DEEP RESEARCH (DROPDOWN TOAST) ================= */
.expanded-research-toast {
  height: auto;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.research-dropdown-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fade-in-up-key 0.4s ease-out forwards;
}

@keyframes fade-in-up-key {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.progress-ring-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}

.progress-ring {
  transform: rotate(-90deg);
}

.progress-ring-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.progress-ring-fill {
  stroke-dasharray: 213.62;
  stroke-dashoffset: 213.62;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

.progress-percent {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: #38bdf8;
}

.research-checkmark-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  text-align: left;
}

.checkmark-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkmark-row.show {
  opacity: 1;
  transform: translateY(0);
}

.chk-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.chk-text {
  font-weight: 500;
}

/* ================= VIEW 3 & 4: DATENSUCHE & ANREICHERUNG ================= */
.dimmed-bg {
  background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.contact-profile-card {
  width: 460px;
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: visible; /* allows waterfall shield overlay to pop cleanly */
}

/* Fly in from right */
.slide-in-card {
  opacity: 0;
  transform: translateX(120px);
  animation: slide-in-card-key 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-in-card-key {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.contact-header-section {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  transition: opacity 0.3s;
}

.contact-avatar-lg {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  border: 2px solid var(--success);
}

.contact-title-group h3 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.company-subtext {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-position-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.pos-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.pos-val {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 3px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.detail-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background-color: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  position: relative;
}

.detail-icon {
  font-size: 15px;
}

.detail-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.detail-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
}

.detail-row-item .reveal-field {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2px;
}

.badge-verified {
  font-size: 11px;
  font-weight: 700;
  color: var(--success-text);
  background-color: var(--success-bg);
  padding: 3px 8px;
  border-radius: 10px;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

/* Hidden block-by-block waves */
.hidden-wave {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.show-wave {
  opacity: 1;
  transform: translateY(0);
}

/* Waterfall verification overlay (Shield) */
.waterfall-shield-overlay {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translate(-50%, 10px) scale(0.9);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background-color: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  z-index: 50;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.waterfall-shield-overlay.active-glow {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  border-color: var(--success);
  background-color: var(--success-bg);
  color: var(--success-text);
}

.shield-icon {
  font-size: 14px;
}

.shield-text {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Phase 4: Validation Card Glow Animation */
.card-glow-active {
  animation: card-glow-pulse-key 0.8s ease-in-out infinite alternate;
}

@keyframes card-glow-pulse-key {
  0% {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    border-color: var(--border-light);
  }
  100% {
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
    border-color: var(--success);
  }
}

/* ================= VIEW 5: CRM-SYNC (SALESFORCE SPECIFIC) ================= */
.crm-workspace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 16px; /* safety padding for borders */
}

/* Left Card inside CRM Split Screen (Identical structure to Datensuche but scaled to fit) */
.crm-workspace .contact-profile-card {
  width: 330px; /* reduced from 350px to make gap larger */
  padding: 16px;
  box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.crm-workspace .contact-avatar-lg {
  width: 50px;
  height: 50px;
  font-size: 18px;
}

.crm-workspace .contact-title-group h3 {
  font-size: 16px;
}

.crm-workspace .company-subtext {
  font-size: 12px;
}

.crm-workspace .contact-position-section {
  padding: 8px 0;
}

.crm-workspace .pos-val {
  font-size: 13px;
}

.crm-workspace .contact-details-list {
  gap: 8px;
  margin-top: 10px;
}

.crm-workspace .detail-row-item {
  padding: 6px;
  gap: 8px;
}

.crm-workspace .detail-row-item .reveal-field {
  font-size: 12px;
}

.crm-workspace .badge-verified {
  font-size: 9px;
  padding: 2px 6px;
  right: 8px;
}

.crm-sync-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background-color: var(--primary);
  border: none;
  color: white;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 10px rgba(15, 82, 250, 0.15);
  position: relative;
  overflow: visible;
}

.crm-sync-btn:hover {
  background-color: var(--primary-hover);
}

/* Sync Flow particle lane */
.crm-sync-flow {
  flex-grow: 1;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 115px; /* expanded to give badge more room */
}

.sync-path {
  width: 85%;
  height: 4px;
  background-color: var(--border-light);
  position: relative;
  border-radius: 2px;
}

.sync-particle {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
}

.sync-particle.active-flow {
  opacity: 1;
  animation: flow-particle-key 1.2s infinite linear;
}

@keyframes flow-particle-key {
  from { left: -40px; }
  to { left: 100%; }
}

/* Sync status badge (centered pill) */
.sync-center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 20px;
  color: var(--text-muted);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s;
  z-index: 10;
  white-space: nowrap;
}

.sync-center-badge.active {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

.sync-center-badge.success {
  background-color: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success);
}

/* CRM Target Salesforce (Blurred inactive rows) */
.crm-target-panel {
  width: 330px; /* reduced from 360px to prevent boundary clipping and give gap room */
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.crm-target-panel.highlighted {
  border-color: var(--success);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.crm-target-header {
  height: 40px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.crm-logo-mock {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 800;
  color: #00a1e0; /* Salesforce Blue */
}

.crm-sync-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-light);
}

.crm-sync-led.active {
  background-color: var(--success);
}

.crm-target-body {
  padding: 12px;
}

.crm-target-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
}

.crm-target-body th,
.crm-target-body td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  transition: all 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-target-body th {
  color: var(--text-light);
  font-weight: 600;
  border-bottom: 1.5px solid var(--border-light);
}

.crm-target-body th:nth-child(1),
.crm-target-body td:nth-child(1) {
  max-width: 75px;
}

.crm-target-body th:nth-child(2),
.crm-target-body td:nth-child(2) {
  max-width: 75px;
}

.crm-target-body th:nth-child(3),
.crm-target-body td:nth-child(3) {
  max-width: 85px;
}

.crm-target-body th:nth-child(4),
.crm-target-body td:nth-child(4) {
  max-width: 45px;
}

/* Inbound Blurring of inactive elements */
.crm-blur-row td {
  filter: blur(2px);
  opacity: 0.4;
}

.crm-new-row {
  opacity: 0;
  transform: translateY(12px);
  background-color: rgba(16, 185, 129, 0.04);
}

.crm-new-row.show-row {
  opacity: 1;
  transform: translateY(0);
  background-color: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--success);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.crm-new-row td {
  filter: none !important;
  opacity: 1 !important;
  font-size: 12px;
  font-weight: 700;
}

/* ================= VIEW 6: INTEGRATIONEN (CIRCULAR OUTRO) ================= */
.outro-workspace {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.outro-center-card-wrapper {
  position: relative;
  width: 460px; /* matched to card width to center coordinates */
  z-index: 10;
  animation: fly-to-center-key 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fly-to-center-key {
  from { transform: translateX(-150px); }
  to { transform: translateX(0); }
}

.floating-partner-logos {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Safety offsets from borders - fully protected */
.partner-logo {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2.5px solid #ffffff; /* premium white border */
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15), 0 0 0 1px var(--border-light); /* shadow outline separates logo from card */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
}

.partner-logo.show {
  opacity: 1;
  transform: scale(1);
}

/* Precise non-clipping coordinates around centered lead card */
#partner-salesforce {
  top: -35px;
  left: -45px;
}

#partner-hubspot {
  top: -35px;
  right: -45px;
}

#partner-pipedrive {
  bottom: -35px;
  left: -45px;
}

#partner-dynamics {
  bottom: -35px;
  right: -45px;
}

/* Slogan Overlay */
.outro-slogan-overlay {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 10px);
  opacity: 0;
  text-align: center;
  width: 100%;
  transition: all 0.5s ease-out;
  z-index: 30;
}

.outro-slogan-overlay.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.outro-slogan-overlay h2 {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

/* ================= VIRTUAL MOUSE CURSOR ================= */
#virtual-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  display: none !important; /* Hidden as requested */
  transform: translate(350px, 250px);
  transition: transform 0.1s ease-out;
}

.virtual-mouse.clicking svg {
  transform: scale(0.8);
  transition: transform 0.1s ease-out;
}

.cursor-tooltip {
  background-color: var(--text-main);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  margin-top: 8px;
  margin-left: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

/* Click Ripple Wave */
.cursor-click-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.cursor-click-ripple.animate {
  animation: click-ripple-key 0.5s ease-out forwards;
}

@keyframes click-ripple-key {
  0% {
    transform: translate(-50%, -50%) scale(0.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

/* ================= CONTROL & ANIMATION BAR ================= */
.animation-control-bar {
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  flex-shrink: 0;
  z-index: 100;
  width: 100%;
}

.control-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 180px;
}

.control-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-light);
  border: none;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background-color: var(--primary);
  color: white;
}

.progress-container {
  flex-grow: 1;
  height: 4px;
  background-color: #f1f5f9;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: var(--primary);
  border-radius: 2px;
  transition: width 0.1s linear;
}

.time-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Fira Code', monospace;
  width: 32px;
}

.control-center {
  display: flex;
  gap: 4px;
}

.control-center .step-btn {
  background: none;
  border: none;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.control-center .step-btn:hover {
  background-color: #f1f5f9;
  color: var(--text-main);
}

.control-center .step-btn.active {
  background-color: var(--primary-light);
  color: var(--primary);
}

.control-right {
  width: 180px;
  display: flex;
  justify-content: flex-end;
}

.mode-switch-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.mode-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

#interactive-mode-toggle {
  display: none;
}

.mode-slider {
  width: 30px;
  height: 16px;
  background-color: #cbd5e1;
  border-radius: 10px;
  position: relative;
  transition: var(--transition-smooth);
}

.mode-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: white;
  transition: var(--transition-smooth);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#interactive-mode-toggle:checked + .mode-slider {
  background-color: var(--primary);
}

#interactive-mode-toggle:checked + .mode-slider::after {
  left: 16px;
}

.dealcode-mini-logo {
  display: none !important;
}
