/* ==========================================================================
   SKETCH BOOKS - PREMIUM LIGHT THEME (WHITE BACKGROUND)
   Design System: Official Sketch Brand Identity (Sketch Red, Navy & Emerald)
   ========================================================================== */

:root {
  --font-heading: 'El Messiri', -apple-system, BlinkMacSystemFont, serif;
  --font-body: 'Afacad Flux', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-form: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Light Theme Color Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-input-focus: #ffffff;

  --border-subtle: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #e11444;
  --border-card: #e2e8f0;

  /* Official Sketch Brand Accents */
  --sketch-red: #e11444;        /* Official Sketch Red */
  --sketch-red-hover: #c80d38;
  --sketch-red-glow: rgba(225, 20, 68, 0.22);
  --sketch-red-light: #fff1f4;

  --sketch-navy: #192b56;       /* Deep Sketch Navy */
  --sketch-navy-dark: #0f172a;
  --sketch-navy-light: #243b73;

  --sketch-green: #169451;      /* Sketch Books Emerald */
  --sketch-green-glow: rgba(22, 148, 81, 0.2);
  --sketch-green-light: #f0fdf4;

  /* Primary UI Accent: Sketch Brand Red */
  --primary: #e11444;
  --primary-hover: #c80d38;
  --primary-glow: rgba(225, 20, 68, 0.24);
  --primary-light: #f43f5e;
  --primary-surface: #fff1f4;

  --accent-cyan: #0891b2;
  --accent-purple: #9333ea;
  --accent-emerald: #169451;
  --accent-amber: #d97706;
  --accent-rose: #e11444;

  /* Typography Colors */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 4px 16px 0 rgba(225, 20, 68, 0.32);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  font-size: 15.5px;
  position: relative;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .hero-title, .success-title {
  font-family: var(--font-heading);
}

/* Ambient Background Mesh */
.bg-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  will-change: transform;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #e0e7ff 0%, rgba(224, 231, 255, 0) 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ede9fe 0%, rgba(237, 233, 254, 0) 70%);
  bottom: -100px;
  right: -50px;
  animation-delay: -8s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #e0f2fe 0%, rgba(224, 242, 254, 0) 70%);
  top: 35%;
  right: 30%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.05); }
  100% { transform: translate(-30px, -40px) scale(0.96); }
}

/* Page Layout - Strict 100vh Zero-Scroll Desktop Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 14px clamp(20px, 3.5vw, 56px) 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
  width: 100%;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--primary-surface);
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-btn {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.nav-btn:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary-light);
  color: var(--primary);
}

/* Main Content Grid - Fits Entirely Within 100vh */
.main-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(24px, 3.5vw, 64px);
  align-items: center;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Left Hero Showcase Column - Minimal Design with Lottie Animation */
.showcase-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.hero-header-minimal {
  width: 100%;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 2.7vw, 42px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 8px;
}

/* Sketch Branding Colors */
.hero-brand-text {
  color: var(--sketch-red);
  font-weight: 700;
  display: inline-block;
}

.hero-brand-sketch {
  color: var(--sketch-red);
  font-weight: 700;
  display: inline-block;
}

.hero-brand-books {
  color: var(--sketch-green);
  font-weight: 700;
  display: inline-block;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-muted);
  line-height: 1.48;
  margin-bottom: 0;
  max-width: 500px;
}

/* Lottie Showcase Animation - Scaled to fit 100vh viewport */
.lottie-showcase-wrapper {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: var(--radius-xl);
  padding: 0;
  margin-top: 8px;
  overflow: hidden;
  max-height: 38vh;
}

lottie-player {
  width: 100%;
  max-width: 460px;
  max-height: 36vh;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(79, 70, 229, 0.08));
}

/* Feature List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.feature-item:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-card);
  transform: translateX(4px);
}

.feature-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--primary-surface);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text h4 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Social Proof Banner */
.social-proof-card {
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.proof-quote {
  font-size: 13.5px;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.55;
  margin-bottom: 14px;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sketch-red), var(--sketch-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

.author-info h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.author-info span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Right Signup Form Column */
.signup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px 30px;
  position: relative;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
  font-family: var(--font-form);
}

.signup-card::-webkit-scrollbar {
  width: 4px;
}

.signup-card::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.signup-card,
.signup-card input,
.signup-card select,
.signup-card textarea,
.signup-card button,
.signup-card label,
.signup-card span,
.signup-card p,
.signup-card h1,
.signup-card h2,
.signup-card h3,
.signup-card h4,
.signup-card h5 {
  font-family: var(--font-form);
}

.signup-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e11444 0%, #192b56 50%, #169451 100%);
  z-index: 10;
}

/* Modern Segmented Stepper Timeline */
.stepper-header {
  margin-bottom: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid #f1f5f9;
}

.stepper-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.stepper-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--sketch-red);
  background: var(--primary-surface);
  border: 1px solid rgba(225, 20, 68, 0.22);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.stepper-step-desc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-indicators {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 8px;
  padding: 0 16px;
}

.stepper-track-bg {
  position: absolute;
  top: 18px;
  left: 48px;
  right: 48px;
  height: 3px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  z-index: 0;
}

.stepper-track-fill {
  position: absolute;
  top: 18px;
  left: 48px;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--sketch-green), var(--sketch-red));
  border-radius: var(--radius-full);
  z-index: 1;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  transition: transform var(--transition-fast);
}

.step-node:hover .step-circle {
  transform: scale(1.08);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #64748b;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.step-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  transition: color var(--transition-fast);
}

/* Active Step: Sketch Brand Red */
.step-node.active .step-circle {
  background: var(--sketch-red);
  border-color: var(--sketch-red);
  color: white;
  box-shadow: 0 0 0 4px rgba(225, 20, 68, 0.18), 0 4px 12px rgba(225, 20, 68, 0.25);
  transform: scale(1.1);
}

.step-node.active .step-label {
  color: var(--text-main);
  font-weight: 700;
}

/* Completed Step: Sketch Books Emerald with checkmark */
.step-node.completed .step-circle {
  background: var(--sketch-green);
  border-color: var(--sketch-green);
  color: white;
  box-shadow: 0 2px 8px rgba(22, 148, 81, 0.25);
}

.step-node.completed .step-label {
  color: var(--sketch-green);
  font-weight: 600;
}

/* Step Header */
.step-title-area {
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-form);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.step-desc {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Form Sections */
.form-step {
  display: none;
  animation: fadeInStep 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step.active {
  display: block;
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 16px;
  margin-bottom: 16px;
}

.col-span-2 {
  grid-column: span 2;
}

/* Form Fields */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .req {
  color: var(--accent-rose);
  margin-left: 2px;
}

.form-label .opt {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: var(--transition-fast);
}

.input-icon-left svg {
  width: 15px;
  height: 15px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: var(--font-form);
  font-size: 14px;
  padding: 10px 14px;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: var(--transition-normal);
}

.has-icon-left .form-input {
  padding-left: 38px;
}

.has-icon-right .form-input {
  padding-right: 38px;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(225, 20, 68, 0.12);
}

.form-input:focus + .input-icon-left,
.input-wrapper:focus-within .input-icon-left {
  color: var(--primary);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-subtle);
  font-size: 13.5px;
}

.form-textarea {
  resize: none;
  min-height: 60px;
  height: 60px;
  padding-top: 10px;
}

/* Auto Generate Arabic Button */
.btn-auto-arabic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-form);
  font-size: 11px;
  font-weight: 600;
  color: var(--sketch-red);
  background: var(--primary-surface);
  border: 1px solid rgba(225, 20, 68, 0.25);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-auto-arabic:hover {
  background: #ffe4e9;
  border-color: var(--sketch-red);
}

.btn-auto-arabic.loading {
  opacity: 0.6;
  pointer-events: none;
}

@keyframes autoTranslatePulse {
  0% { box-shadow: 0 0 0 0 rgba(225, 20, 68, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(225, 20, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 20, 68, 0); }
}

.auto-translated-flash {
  animation: autoTranslatePulse 0.8s ease-out;
  border-color: var(--sketch-red) !important;
}

/* Phone Input Group with +971 Prefix */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.phone-prefix-box {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  height: 42px;
  background: #f1f5f9;
  border: 1px solid var(--border-medium);
  border-right: none;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
  flex-shrink: 0;
  font-family: var(--font-form);
}

.phone-prefix-code {
  letter-spacing: 0.2px;
}

.phone-input {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

/* Password Toggle Icon */
.btn-password-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: var(--transition-fast);
}

.btn-password-toggle:hover {
  color: var(--text-main);
}

/* Business Type Selector Cards */
.business-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.btype-card {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.btype-card:hover {
  border-color: var(--sketch-red);
  background: var(--primary-surface);
}

.btype-card.active {
  background: var(--primary-surface);
  border-color: var(--sketch-red);
  box-shadow: 0 0 0 2px rgba(225, 20, 68, 0.22);
}

.btype-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.btype-icon svg {
  width: 15px;
  height: 15px;
}

.btype-card.active .btype-icon {
  background: var(--sketch-red);
  color: white;
}

.btype-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-form);
}

.btype-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.25;
  font-family: var(--font-form);
}

/* Logo Upload Dropzone */
.logo-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
}

.logo-dropzone:hover, .logo-dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-surface);
}

.logo-preview-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.logo-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.logo-dropzone-text h5 {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1px;
  font-family: var(--font-form);
}

.logo-dropzone-text p {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-form);
}

.logo-remove-btn {
  margin-left: auto;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: none;
  font-family: var(--font-form);
}

/* Switch Toggle Row */
.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.switch-label-group h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-form);
}

.switch-label-group p {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-form);
}

.vat-rate-badge {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.switch-control {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  transition: var(--transition-normal);
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: var(--transition-normal);
  border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
  background-color: var(--sketch-red);
  box-shadow: 0 0 10px var(--sketch-red-glow);
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(22px);
}

.vat-rate-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(22, 148, 81, 0.12);
  color: #169451;
  border: 1px solid rgba(22, 148, 81, 0.3);
}

/* Password Strength Meter */
.strength-meter-wrap {
  margin-top: 8px;
  margin-bottom: 16px;
}

.strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 5px;
}

.strength-bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: #e2e8f0;
  transition: var(--transition-normal);
}

.strength-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Accordion Component */
.accordion-box {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
  margin-bottom: 18px;
}

.accordion-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  width: 100%;
  border: none;
  color: var(--text-main);
  font-family: var(--font-form);
  font-size: 13.5px;
  font-weight: 600;
}

.accordion-header:hover {
  background: rgba(0, 0, 0, 0.02);
}

.accordion-icon {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.accordion-box.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-box.open .accordion-body {
  padding: 14px 16px;
  max-height: 500px;
}

/* Alert Banner */
.alert-banner {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: none;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-form);
  font-size: 13px;
  line-height: 1.45;
  animation: shakeAlert 0.3s ease;
}

.alert-banner.error {
  background: #fff1f4;
  border: 1px solid #fecdd6;
  color: #e11444;
  display: flex;
}

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

/* Form Action Buttons */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.btn-secondary {
  font-family: var(--font-form);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

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

.btn-primary {
  font-family: var(--font-form);
  font-size: 14.5px;
  font-weight: 600;
  padding: 11px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11444 0%, #c80d38 100%);
  border: 1px solid rgba(225, 20, 68, 0.4);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  box-shadow: 0 4px 16px rgba(225, 20, 68, 0.32);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(225, 20, 68, 0.45);
  background: linear-gradient(135deg, #f0174b 0%, #c80d38 100%);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}

.btn-primary.loading .btn-spinner {
  display: inline-block;
}

.btn-primary.loading .btn-text-content {
  opacity: 0.8;
}

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

/* Success View */
.success-card {
  display: none;
  text-align: center;
  padding: 18px 10px;
  animation: popSuccess 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.success-card.active {
  display: block;
}

@keyframes popSuccess {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.success-check-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 2px solid #169451;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  color: #169451;
  box-shadow: 0 0 20px rgba(22, 148, 81, 0.25);
}

.success-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.success-desc {
  font-family: var(--font-form);
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 18px auto;
  line-height: 1.5;
}

.credentials-summary-box {
  background: #f8fafc;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  max-width: 430px;
  margin: 0 auto 20px auto;
  text-align: left;
  font-family: var(--font-form);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
  font-weight: 500;
}

.summary-value {
  color: var(--text-main);
  font-weight: 600;
}

.summary-value.accent {
  color: var(--sketch-red);
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--primary-surface);
  border: 1px solid rgba(225, 20, 68, 0.2);
  border-radius: var(--radius-full);
  font-family: var(--font-form);
  font-size: 12px;
  color: var(--sketch-red);
  margin-bottom: 20px;
}

.portal-launch-btn {
  font-family: var(--font-form);
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11444 0%, #c80d38 100%);
  color: white;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(225, 20, 68, 0.32);
  transition: var(--transition-normal);
}

.portal-launch-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 20, 68, 0.45);
  background: linear-gradient(135deg, #f0174b 0%, #c80d38 100%);
}

/* Footer (Brand font outside form) */
.page-footer {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-body);
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  font-family: var(--font-body);
}

.footer-links a:hover {
  color: var(--primary);
}

/* Confetti Canvas */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Responsive Media Queries */
@media (max-width: 1024px), (max-height: 680px) {
  html, body {
    height: auto;
    max-height: none;
    overflow-y: auto;
  }
  .page-wrapper {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 16px 20px;
  }
  .main-container {
    overflow: visible;
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .showcase-column {
    position: static;
  }
  .lottie-showcase-wrapper {
    max-height: 280px;
  }
  .hero-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .page-wrapper {
    padding: 14px 12px;
  }
  .navbar {
    padding: 10px 14px;
    border-radius: var(--radius-lg);
  }
  .signup-card {
    padding: 20px 14px;
    border-radius: var(--radius-lg);
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .col-span-2 {
    grid-column: span 1;
  }
  .business-type-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 26px;
  }
  .stepper-indicators {
    padding: 0 4px;
  }
  .step-label {
    display: none;
  }
  .page-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
