:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-main);

  /* Vibrant Orange Color Theme */
  --primary: #ff6b00;
  --primary-hover: #ea580c;
  --primary-gradient: linear-gradient(135deg, #ff6b00 0%, #ff8c3a 50%, #f97316 100%);
  --primary-glow: rgba(255, 107, 0, 0.3);
  --primary-light: #fff7ed;
  --primary-border: rgba(255, 107, 0, 0.2);

  /* Light / White background palette */
  --bg-page: #f4f6fb;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;

  --radius-xl: 0px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-auth: 0 20px 50px -10px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-floating: 0 8px 24px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-main);
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(148, 163, 184, 0.4) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === ATOM PARTICLE CANVAS === */
#atomCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Subtle radiant warmth behind showcase */
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 65% 55% at 25% 30%, rgba(255, 107, 0, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 55% 55% at 65% 70%, rgba(99, 102, 241, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.vertical-guide-line { display: none; }

/* Top & Bottom Floating Badges (anchored in showcase) */
.top-float-badge {
  position: absolute;
  top: 24px;
  left: 32px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.top-float-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.bottom-float-badge {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  padding: 9px 18px;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: default;
}

.bottom-float-badge .icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.bottom-float-badge .badge-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.bottom-float-badge .badge-sub {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

/* =========================================================
   FULL-HEIGHT SPLIT LAYOUT: 60% showcase | divider | 40% auth
   ========================================================= */
.app-viewport {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  width: 100%;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* Desktop: side-by-side, full height */
.split-grid {
  display: flex;
  flex-direction: row;
  width: 100%;
  min-height: 100vh;
  align-items: stretch;
}

/* LEFT 60% — Showcase with atom bg */
.split-left {
  flex: 0 0 60%;
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  position: relative;
  background: transparent;
  z-index: 4;
}

/* Vertical Divider */
.split-divider {
  flex: 0 0 1px;
  width: 1px;
  background: linear-gradient(180deg,
    transparent 0%,
    #e2e8f0 10%,
    #fed7aa 40%,
    #ff6b00 50%,
    #fed7aa 60%,
    #e2e8f0 90%,
    transparent 100%
  );
  position: relative;
  z-index: 10;
  align-self: stretch;
}

/* RIGHT 40% — Auth card */
.split-right {
  flex: 0 0 40%;
  width: 40%;
  min-width: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  background: #ffffff;
  position: relative;
  z-index: 10;
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.04);
}

/* =========================================================
   MOBILE VIEWPORT SWITCHER BAR (Sticky at top on mobile)
   ========================================================= */
.auth-mobile-switch-bar {
  display: none;
}

/* On mobile: stack vertically & support mobile view switcher */
@media (max-width: 1023px) {
  .auth-mobile-switch-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 9px 12px;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  }

  .mobile-switch-tab {
    flex: 1;
    max-width: 220px;
    padding: 8px 16px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-switch-tab i {
    font-size: 0.95rem;
  }

  .mobile-switch-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
  }

  .mobile-switch-tab:not(.active):hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
  }

  .mobile-switch-tab:active {
    transform: scale(0.97);
  }

  .split-grid {
    flex-direction: column;
  }
  .split-divider {
    display: none !important;
  }

  .split-right {
    flex: 1;
    width: 100%;
    min-height: calc(100vh - 60px);
    padding: 24px 16px 40px;
    box-shadow: none;
  }
  .split-right.mobile-hidden {
    display: none !important;
  }

  .split-left {
    display: none !important;
    flex: 1;
    width: 100%;
    padding: 20px 14px 48px;
    min-height: auto;
    overflow: visible;
  }
  .split-left.mobile-active {
    display: flex !important;
    flex-direction: column;
    align-items: center;
  }

  .showcase-card {
    max-width: 100%;
    padding: 0;
  }

  .top-float-badge,
  .bottom-float-badge {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .side-float-badge {
    display: none !important;
  }
  .carousel-nav-footer {
    flex-direction: column-reverse;
    gap: 14px;
    align-items: center;
  }
}

/* =========================================================
   LEFT SIDE: SHOWCASE — no card wrapper, just centered content
   ========================================================= */
.showcase-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
  overflow: visible;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* No top strip on transparent card */
.showcase-card::before {
  display: none;
}

/* Carousel Structure */
.carousel-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 300%;
}

.carousel-slide {
  width: 33.333333%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2px 4px;
}

/* Pill Badges in Carousel Header */
.feature-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  margin-bottom: 20px;
}

/* Phone Mockup Frame */
.phone-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
}

.phone-mockup {
  width: 100%;
  height: 540px;
  background: #0f172a;
  border-radius: 48px;
  padding: 11px;
  box-shadow: 
    0 28px 70px -15px rgba(15, 23, 42, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 0 0 4px #1e293b;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  background: #000000;
  border-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
}

.phone-lens {
  width: 7.5px;
  height: 7.5px;
  background: #1e293b;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status-bar {
  height: 36px;
  padding: 6px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  z-index: 8;
}

.status-icons {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
}

/* SLIDE 1: INTERACTIVE WHEEL SCREEN - LIGHT LUXURY THEME */
.wheel-screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 6px 8px 8px;
  background:
    radial-gradient(circle at 50% 48%, rgba(254, 215, 170, 0.45) 0%, transparent 58%),
    radial-gradient(circle at 85% 15%, rgba(254, 240, 138, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 15% 80%, rgba(253, 230, 138, 0.35) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(254, 202, 202, 0.3) 0%, transparent 40%),
    linear-gradient(175deg, #ffffff 0%, #fffdfa 25%, #fff7ed 60%, #fef3c7 100%);
  position: relative;
  overflow: hidden;
}

/* Festive warm ambient confetti sparkle dot pattern */
.wheel-screen-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(234, 88, 12, 0.14) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(245, 158, 11, 0.12) 1px, transparent 1px);
  background-size: 26px 26px, 13px 13px;
  background-position: 0 0, 6.5px 6.5px;
  pointer-events: none;
  z-index: 0;
}

.wheel-screen-content > * { position: relative; z-index: 1; }

.wheel-sub-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  padding: 3.5px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.wheel-title-small {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.2px;
}

.wheel-canvas-container {
  position: relative;
  width: 210px;
  height: 210px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft ambient golden halo glow ring behind the wheel */
.wheel-canvas-container::before {
  content: '';
  position: absolute;
  width: 216px;
  height: 216px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.38) 0%, rgba(249, 115, 22, 0.15) 55%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}

/* Gold Teardrop Pointer Pin */
.wheel-pointer-pin {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 32px;
  z-index: 15;
  filter: drop-shadow(0 4px 6px rgba(180, 83, 9, 0.45));
}

.wheel-pointer-pin svg {
  width: 100%;
  height: 100%;
}

/* Rotating Wheel Disc with vibrant 3D depth */
.wheel-disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.17, 0.97, 0.38, 1);
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(234, 88, 12, 0.22)) drop-shadow(0 4px 10px rgba(15, 23, 42, 0.08));
}

.wheel-disc svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Center Spin Button */
.wheel-center-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: radial-gradient(circle at 40% 35%, #ffffff 0%, #fff7ed 60%, #fed7aa 100%);
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.9), 0 8px 18px rgba(234, 88, 12, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 12;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.wheel-center-knob:active {
  transform: translate(-50%, -50%) scale(0.92);
}

.wheel-center-knob span {
  font-size: 10px;
  font-weight: 900;
  color: #ea580c;
  letter-spacing: 0.5px;
  line-height: 1;
}

.wheel-center-knob i {
  font-size: 8px;
  color: #ea580c;
  margin-top: 2px;
}

.wheel-result-banner {
  font-size: 10.5px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1.5px dashed #10b981;
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.12);
  transition: all 0.2s ease;
}

.wheel-result-banner i {
  color: #10b981;
}

/* =========================================================
   SLIDE 2: SUBMIT HIS DETAILS (LEAD CAPTURE FORM)
   ========================================================= */
.lead-form-screen {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 6px 14px 12px;
  text-align: left;
  overflow-y: auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 8px;
}

.lead-form-header .mini-gift-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.lead-form-header h4 {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.lead-form-header p {
  font-size: 10px;
  color: #64748b;
  margin-top: 2px;
}

.mock-field-group {
  margin-bottom: 8px;
}

.mock-field-label {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 3px;
}

.mock-input-box {
  height: 34px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #0f172a;
  font-weight: 500;
}

.mock-input-box i {
  font-size: 11px;
  color: #94a3b8;
}

.mock-submit-btn {
  width: 100%;
  height: 38px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px var(--primary-glow);
  margin-top: 6px;
  cursor: pointer;
}

.mock-trust-note {
  text-align: center;
  font-size: 9px;
  color: #64748b;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* SLIDE 3: SMART NFC & QR CODE STANDS */
.rewards-screen-content {
  flex: 1;
  background: #f8fafc;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.reward-voucher-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  text-align: center;
}

.voucher-discount {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
}

.voucher-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 2px 0 6px;
}

.qr-stand-mini {
  width: 60px;
  height: 60px;
  margin: 4px auto;
  background: #ffffff;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

.qr-stand-mini img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Floating Badges pinned to phone sides */
.side-float-badge {
  position: absolute;
  background: #ffffff;
  padding: 7px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow-floating);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 12;
  animation: floatBadge 3.5s ease-in-out infinite alternate;
  cursor: default;
}

.side-float-left {
  top: 34%;
  left: -44px;
}

.side-float-right {
  top: 54%;
  right: -38px;
  animation-delay: 1.8s;
}

@keyframes floatBadge {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.badge-icon-sq {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.badge-icon-orange {
  background: #ffedd5;
  color: var(--primary);
}

.badge-icon-yellow {
  background: #fef3c7;
  color: #d97706;
}

.badge-content-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-title-txt {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.badge-sub-txt {
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
}

/* Slide Content Details below Phone */
.slide-headline {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.slide-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  max-width: 440px;
  margin: 0 auto 14px;
}

.feature-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}

.feature-tag-chip i {
  font-size: 10px;
}

/* Carousel Nav Footer */
.carousel-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.trust-avatar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  margin-left: -6px;
}

.avatar-circle:first-child { margin-left: 0; }
.avatar-1 { background: #ff6b00; }
.avatar-2 { background: #2563eb; }
.avatar-3 { background: #059669; }
.avatar-4 { background: #7c3aed; }

.trust-text {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.trust-text strong {
  color: #0f172a;
}

.carousel-pagination-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.carousel-indicators {
  display: flex;
  gap: 5px;
  align-items: center;
}

.indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: all 0.3s ease;
  cursor: pointer;
}

.indicator-dot.active {
  width: 22px;
  border-radius: 9999px;
  background: var(--primary);
}

.carousel-arrows {
  display: flex;
  gap: 6px;
}

.carousel-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.carousel-arrow-btn:hover {
  background: #fff7ed;
  border-color: #fed7aa;
  color: var(--primary);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

/* =========================================================
   RIGHT SIDE: CLEAN WHITE AUTH PANEL (40%)
   ========================================================= */
.auth-card-container {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.auth-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--shadow-auth);
  border: 1px solid #f1f5f9;
  padding: 32px 30px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auth-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 60px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
}

/* Orange accent top highlight line */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--primary-gradient);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Brand Logo */
.brand-header-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 6px 18px var(--primary-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #0f172a;
}

.brand-title span {
  color: var(--primary);
}

/* NEW POLISHED SEGMENTED TAB SWITCHER */
.auth-tab-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 9999px;
  margin-bottom: 18px;
  position: relative;
  border: 1px solid #e2e8f0;
}

.tab-btn {
  padding: 8px 14px;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-main);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.form-mode-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  margin-bottom: 8px;
}

.auth-heading {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 5px;
}

.auth-subheading {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 18px;
}

/* Google SSO Button - Premium */
.google-btn {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0 0 0 rgba(255,107,0,0);
  position: relative;
  overflow: hidden;
}

.google-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.03), rgba(234, 67, 53, 0.03));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.google-btn:hover {
  border-color: #a0aec0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
  transform: translateY(-1.5px);
}

.google-btn:hover::after {
  opacity: 1;
}

.google-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

.auth-divider span {
  padding: 0 10px;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 13px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

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

.input-icon-left {
  position: absolute;
  left: 13px;
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-control-input {
  width: 100%;
  height: 46px;
  padding: 0 40px 0 40px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  color: #0f172a;
  background: #f9fafb;
  outline: none;
  transition: all 0.22s ease;
  font-family: var(--font-main);
}

.form-control-input::placeholder {
  color: #b0bec5;
  font-weight: 400;
}

.form-control-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.form-control-input:focus ~ .input-icon-left {
  color: var(--primary);
}

.toggle-password-eye {
  position: absolute;
  right: 12px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 13px;
  padding: 6px;
  transition: color 0.2s ease;
}

.toggle-password-eye:hover {
  color: #0f172a;
}

/* Aux Row */
.form-aux-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 16px;
  font-size: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--primary);
  cursor: pointer;
  border-radius: 4px;
}

.forgot-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.forgot-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Captcha Box */
.captcha-card-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.captcha-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 700;
}

.captcha-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.captcha-enter-txt {
  color: #64748b;
  font-size: 10.5px;
}

.captcha-interactive-row {
  display: grid;
  grid-template-columns: 1.1fr auto 1.2fr;
  gap: 7px;
  align-items: center;
}

.captcha-display {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #0f172a;
  user-select: none;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(254, 215, 170, 0.35) 5px, rgba(254, 215, 170, 0.35) 10px);
}

.captcha-refresh-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #fed7aa;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.captcha-refresh-btn:hover {
  background: #ffedd5;
  transform: rotate(45deg);
}

.captcha-input {
  height: 36px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  outline: none;
  font-family: monospace;
  text-align: center;
  background: #ffffff;
}

.captcha-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.15);
}

/* Submit Button - Bold Premium Orange */
.auth-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.45);
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-main);
  position: relative;
  overflow: hidden;
}

.auth-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.auth-submit-btn:hover::before {
  left: 100%;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #ea580c 0%, #ff7a1f 100%);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.55);
  transform: translateY(-2px) scale(1.01);
}

.auth-submit-btn:active {
  transform: translateY(1px) scale(0.99);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.35);
}

/* Switch Footer */
.auth-switch-footer {
  text-align: center;
  margin-top: 14px;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}

.auth-switch-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  padding: 0 3px;
  font-size: 12.5px;
  font-family: var(--font-main);
  text-decoration: none;
}

.auth-switch-btn:hover {
  text-decoration: underline;
}

.ssl-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.ssl-security-footer i {
  color: #10b981;
  font-size: 11px;
}

.form-view-container {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hidden-view {
  display: none !important;
  opacity: 0;
  transform: scale(0.98);
}

/* Mobile: small card adjustments */
@media (max-width: 640px) {
  .auth-card {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }
  .brand-title {
    font-size: 22px;
  }
  .auth-heading {
    font-size: 22px;
  }
  .form-control-input {
    height: 44px;
    font-size: 13px;
  }
  .auth-submit-btn {
    height: 44px;
    font-size: 14px;
  }
}

/* ==========================================================================
   LEGAL MODAL (TERMS OF SERVICE & PRIVACY POLICY)
   ========================================================================== */
.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modalFadeIn 0.22s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.legal-modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  max-height: min(90vh, 740px);
  border-radius: 22px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(226, 232, 240, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalScaleUp {
  from { transform: scale(0.94) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.legal-modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  flex-shrink: 0;
}
.legal-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}
.legal-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff7ed;
  color: #ff6b00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  flex-shrink: 0;
}
.legal-modal-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.25;
}
.legal-modal-subtitle {
  font-size: 0.77rem;
  color: #64748b;
  margin: 2px 0 0;
  line-height: 1.35;
}
.legal-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.legal-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
}
.legal-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 10px 22px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.legal-tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.legal-tab-btn:hover {
  background: rgba(255, 107, 0, 0.08);
  color: #ff6b00;
}
.legal-tab-btn.active {
  background: #ff6b00;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}
.legal-modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  font-size: 0.88rem;
  line-height: 1.62;
  color: #334155;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.legal-modal-body::-webkit-scrollbar {
  width: 6px;
}
.legal-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
.legal-modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}
.legal-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e2e8f0;
}
.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.legal-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid rgba(255, 107, 0, 0.2);
  margin-bottom: 6px;
}
.legal-section h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.legal-section p {
  margin: 0;
  color: #475569;
}
.legal-modal-footer {
  padding: 14px 22px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.legal-modal-footer-note {
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.35;
}
.legal-modal-btn-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.legal-btn-secondary {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.legal-btn-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.legal-btn-primary {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  background: linear-gradient(135deg, #ff6b00 0%, #ea580c 100%);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  min-height: 42px;
}
.legal-btn-primary:hover {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.45);
  transform: translateY(-1px);
}

/* === FULL RESPONSIVE MEDIA QUERIES FOR ALL MOBILE SIZES === */
@media (max-width: 640px) {
  .legal-modal-backdrop {
    padding: 12px 10px;
  }
  .legal-modal-card {
    max-height: 94vh;
    border-radius: 18px;
  }
  .legal-modal-header {
    padding: 12px 14px 10px;
    gap: 8px;
  }
  .legal-modal-title-wrap {
    gap: 10px;
  }
  .legal-modal-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }
  .legal-modal-title {
    font-size: 0.98rem;
    line-height: 1.25;
  }
  .legal-modal-subtitle {
    font-size: 0.72rem;
    line-height: 1.3;
  }
  .legal-modal-close {
    width: 32px;
    height: 32px;
    font-size: 19px;
    border-radius: 8px;
  }
  .legal-modal-tabs {
    padding: 6px 12px;
    gap: 6px;
  }
  .legal-tab-btn {
    padding: 7px 8px;
    font-size: 0.78rem;
    gap: 5px;
    border-radius: 8px;
  }
  .legal-modal-body {
    padding: 12px 14px;
    font-size: 0.82rem;
    line-height: 1.55;
  }
  .legal-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .legal-section h4 {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  .legal-badge {
    font-size: 0.62rem;
    padding: 1px 6px;
    margin-bottom: 3px;
  }
  .legal-modal-footer {
    padding: 10px 14px 12px;
    gap: 8px;
  }
  .legal-modal-footer-note {
    font-size: 0.68rem;
    gap: 4px;
  }
  .legal-modal-btn-row {
    gap: 8px;
    width: 100%;
  }
  .legal-btn-secondary,
  .legal-btn-primary {
    flex: 1 1 50%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 0.8rem;
    border-radius: 8px;
    min-height: 38px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .legal-modal-backdrop {
    padding: 8px 6px;
  }
  .legal-modal-card {
    max-height: 96vh;
    border-radius: 16px;
  }
  .legal-modal-header {
    padding: 10px 12px 8px;
  }
  .legal-modal-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .legal-modal-title {
    font-size: 0.92rem;
  }
  .legal-modal-subtitle {
    display: none; /* Hide subtitle on tiny screens to save maximum space */
  }
  .legal-modal-tabs {
    padding: 5px 8px;
  }
  .legal-tab-btn {
    padding: 6px 4px;
    font-size: 0.72rem;
    gap: 3px;
  }
  .legal-modal-body {
    padding: 10px 10px;
    font-size: 0.78rem;
  }
  .legal-modal-footer {
    padding: 8px 10px 10px;
  }
  .legal-modal-footer-note {
    display: none; /* Hide helper note on tiny screens to prioritize action buttons */
  }
  .legal-btn-secondary,
  .legal-btn-primary {
    font-size: 0.76rem;
    padding: 7px 6px;
    min-height: 36px;
  }
}
