/* main.css - HelloBadge Pro Dark Studio Design System */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=M+PLUS+Rounded+1c:wght@300;400;500;700;800;900&family=Varela+Round&display=swap');

:root {
  --bg-app: #07080b;
  --bg-canvas: #090a0d;
  --bg-panel: rgba(14, 15, 20, 0.92);
  --bg-card: rgba(22, 23, 30, 0.6);
  --bg-card-hover: rgba(28, 30, 40, 0.85);
  --bg-input: #101116;
  
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-medium: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(255, 255, 255, 0.18);
  
  --accent-color: #8142FF;
  --accent-hover: #955EFF;
  --accent-glow: rgba(129, 66, 255, 0.35);
  --accent-orange: #FF5A36;
  --eventbrite-orange: #F05537;
  
  --text-primary: #FFFFFF;
  --text-secondary: #9494A0;
  --text-muted: #585966;
  
  --font-sans: 'M PLUS Rounded 1c', 'Varela Round', system-ui, -apple-system, sans-serif;
  --font-mono: 'M PLUS Rounded 1c', 'Varela Round', sans-serif;
  
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  
  --header-height: 70px;
  --dock-height: 140px;
  --slot-width: 220px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--bg-app);
  color: var(--text-primary);
}

.studio-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

/* =========================================================
   TOP HEADER NAVIGATION (Transparent Floating Style)
   ========================================================= */
.app-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 50;
  flex-shrink: 0;
  pointer-events: none;
}

.app-header .brand-container,
.app-header .header-center-info,
.app-header .header-actions {
  pointer-events: auto;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 6px;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: 24px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(129, 66, 255, 0.45));
}

.brand-title {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0;
  user-select: none;
}

.brand-hello {
  color: #8142FF;
  font-weight: 600;
}

.brand-badge-text {
  color: #11CFBC;
  font-weight: 600;
}

.brand-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

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

.studio-status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(26, 29, 42, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9D74FF, #8B5CF6);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  transform: translateY(-1px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-danger:hover {
  background: #EF4444;
  color: #ffffff;
  border-color: #EF4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.45);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 11px;
  padding: 5px 10px;
}

.btn-xs {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 4px;
}

.btn-block {
  width: 100%;
}

.btn-icon-only {
  padding: 5px 8px;
}

/* =========================================================
   3-COLUMN STUDIO WORKSPACE (Floating Glass Panels)
   332px Left | 1fr Center (min 320px) | 332px Right
   ========================================================= */
.studio-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 332px minmax(320px, 1fr) 332px;
  height: calc(100vh - var(--dock-height));
  width: 100%;
  min-width: 960px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-canvas);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
}

.studio-panel {
  background: rgba(28, 32, 46, 0.42);
  backdrop-filter: blur(28px) saturate(130%);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  border: none;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.panel-left {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  margin: 70px 0 10px 12px;
  height: calc(100% - 80px);
  justify-self: start;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
}

.slot-inspector-top-card {
  background: rgba(14, 16, 24, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.slot-icon-glow-wrap {
  width: 36px;
  height: 48px;
  border-radius: 8px;
  background: #090a10;
  border: 1.5px solid rgba(129, 66, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 14px rgba(129, 66, 255, 0.35);
  animation: slot-icon-pulse 3s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes slot-icon-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(129, 66, 255, 0.3), inset 0 0 6px rgba(129, 66, 255, 0.15);
    border-color: rgba(129, 66, 255, 0.45);
  }
  50% {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.65), 0 0 30px rgba(129, 66, 255, 0.3), inset 0 0 10px rgba(129, 66, 255, 0.4);
    border-color: rgba(167, 139, 250, 0.85);
  }
}

.slot-icon-preview {
  width: 26px;
  height: 38px;
  object-fit: contain;
}

.slot-category-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.slot-template-subtitle {
  font-size: 11.5px;
  color: #A4A7BD;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.2px;
}

.btn-change-style-green {
  height: 36px !important;
  padding: 0 15px !important;
  background: linear-gradient(135deg, #11CFBC, #0EA899) !important;
  color: #032420 !important;
  font-family: var(--font-sans) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 9px !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 3px 12px rgba(17, 207, 188, 0.35) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  text-decoration: none !important;
}

.btn-change-style-green:hover {
  background: linear-gradient(135deg, #20E6D2, #11CFBC) !important;
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 5px 18px rgba(17, 207, 188, 0.55) !important;
  color: #001714 !important;
}

.panel-right {
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  margin: 70px 12px 10px 0;
  height: calc(100% - 80px);
  justify-self: end;
  border: none;
}

.panel-header {
  height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 7px;
}

.panel-title h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text-primary);
  text-transform: uppercase;
}

.badge-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  padding: 2px 7px;
  border-radius: 8px;
}

.panel-scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
}

.panel-scrollable-content::-webkit-scrollbar {
  width: 4px;
}
.panel-scrollable-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

/* Form controls & inspector cards */
.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 7px 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

/* =========================================================
   ROUND COLOR PICKERS (Dark Framed Circle Swatches)
   ========================================================= */
.round-color-picker {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background-color: #0b0c12;
  padding: 3px;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.9);
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.round-color-picker:hover {
  transform: scale(1.1);
  border-color: var(--accent-color);
  box-shadow: 0 0 14px var(--accent-glow), 0 4px 14px rgba(0, 0, 0, 0.6);
}

.round-color-picker:active {
  transform: scale(0.96);
}

.round-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}

.round-color-picker::-webkit-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.round-color-picker::-moz-color-swatch {
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.round-color-picker.picker-sm {
  width: 28px;
  height: 28px;
  padding: 2.5px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-title {
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-desc {
  font-size: 10px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Category & Background Chips */
.template-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.cat-tab-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.cat-tab-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.cat-tab-chip.active {
  background: rgba(139, 92, 246, 0.14);
  border-color: var(--accent-color);
  color: #ffffff;
}

/* Avatar / Image Box */
.avatar-preview-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-medium);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

.avatar-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  max-width: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(129, 66, 255, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.image-uploader-box {
  border: 1.5px dashed #8142FF;
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  background: rgba(129, 66, 255, 0.08);
  box-shadow: 0 0 16px rgba(129, 66, 255, 0.12), inset 0 0 12px rgba(129, 66, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.image-uploader-box:hover {
  border-color: #A78BFA;
  background: rgba(129, 66, 255, 0.16);
  box-shadow: 0 0 22px rgba(129, 66, 255, 0.25), inset 0 0 14px rgba(129, 66, 255, 0.1);
  transform: translateY(-1px);
}

.image-uploader-title {
  font-size: 13px;
  font-weight: 700;
  color: #11CFBC;
  letter-spacing: 0.2px;
}

.image-uploader-sub {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.image-uploader-icon {
  width: 26px;
  height: 26px;
  color: #A78BFA;
  margin-bottom: 2px;
}

/* =========================================================
   SOPHISTICATED RANGE SLIDERS (Metallic Round Thumb + Illuminated Beveled Track)
   ========================================================= */
.slider-input {
  --min: 0;
  --max: 100;
  --val: 50;
  --pos: 50%;
  --input-p: 3px;
  --track-h: 10px;
  --thumb-h: 20px;
  --input-h: calc(var(--track-h) + 2 * var(--input-p) + 4px);
  --track-c0: #1D4ED8;
  --track-c1: #00D1DE;

  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--input-h);
  border-radius: var(--input-h);
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 2px #07080b;
  background: linear-gradient(180deg, #090a0f, #141620 25%, #212536 75%, #141620);
  outline: none;
  cursor: pointer;
  margin: 6px 0 2px;
  padding: 0 var(--input-p);
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

.slider-input:focus,
.slider-input:hover {
  box-shadow: 0 1px 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 2px #07080b, 0 0 10px rgba(0, 209, 222, 0.25);
}

/* WebKit Track */
.slider-input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  height: var(--track-h);
  border-radius: var(--track-h);
  box-shadow: inset 0 0 0 1.5px #000000;
  background:
    repeating-conic-gradient(rgba(0, 0, 0, 0.25) 0% 25%, transparent 0% 50%) 0 0 / 6px 6px,
    linear-gradient(90deg, var(--track-c0, #1D4ED8), var(--track-c1, #00D1DE)) 0 0 / var(--pos, 50%) 100% no-repeat,
    #08090d;
  border: none;
}

/* WebKit Thumb */
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: var(--thumb-h);
  height: var(--thumb-h);
  border-radius: 50%;
  border: 2px solid transparent;
  margin-top: calc((var(--track-h) - var(--thumb-h)) / 2);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.8), inset 0 -1px 2px #8a8a8a, inset 0 1px 2px #ffffff;
  background: 
    conic-gradient(#fefefe, #ebebeb, #989898 25%, 
        #808080 0%, #797979, #b3b3b3 50%, #bdbdbd 0%, 
        #d3d3d3, #989898, #d8d8d8, #fefefe) padding-box, 
    linear-gradient(180deg, #ffffff, #737373) border-box;
  cursor: ew-resize;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0, 209, 222, 0.6), 0 3px 9px rgba(0, 0, 0, 0.9), inset 0 1px 2px #ffffff;
}

.slider-input::-webkit-slider-thumb:active {
  transform: scale(1.02);
}

/* Firefox Track & Progress */
.slider-input::-moz-range-track {
  height: var(--track-h);
  border-radius: var(--track-h);
  box-shadow: inset 0 0 0 1.5px #000000;
  background: #08090d;
  border: none;
}

.slider-input::-moz-range-progress {
  height: var(--track-h);
  border-radius: var(--track-h) 0 0 var(--track-h);
  background:
    repeating-conic-gradient(rgba(0, 0, 0, 0.25) 0% 25%, transparent 0% 50%) 0 0 / 6px 6px,
    linear-gradient(90deg, var(--track-c0, #1D4ED8), var(--track-c1, #00D1DE));
}

.slider-input::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--thumb-h);
  height: var(--thumb-h);
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.8), inset 0 -1px 2px #8a8a8a, inset 0 1px 2px #ffffff;
  background: 
    conic-gradient(#fefefe, #ebebeb, #989898 25%, 
        #808080 0%, #797979, #b3b3b3 50%, #bdbdbd 0%, 
        #d3d3d3, #989898, #d8d8d8, #fefefe) padding-box, 
    linear-gradient(180deg, #ffffff, #737373) border-box;
  cursor: ew-resize;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
}

.slider-input::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(0, 209, 222, 0.6), 0 3px 9px rgba(0, 0, 0, 0.9), inset 0 1px 2px #ffffff;
}

.slider-val {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

/* =========================================================
   CENTER STAGE: Canvas, Dot Grid & Centered Phone
   ========================================================= */
.stage-center {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
  
  background: transparent;
}

/* Violet / Purple Glow behind phone */
.phone-glow-ambient {
  position: absolute;
  width: 420px;
  height: 680px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.38) 0%, rgba(124, 58, 237, 0.22) 40%, rgba(79, 70, 229, 0.08) 65%, transparent 75%);
  filter: blur(55px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowBreathe 6s ease-in-out infinite alternate;
}

@keyframes glowBreathe {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.95; }
}

.stage-phone-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Realistic Phone Mockup */
.phone-mockup {
  width: 260px;
  height: 536px;
  background: #000000;
  border-radius: 44px;
  box-shadow: 
    0 0 0 2px #262632,
    0 0 0 4px #121318,
    0 20px 50px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(139, 92, 246, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center center;
}

.phone-mockup.flipped {
  transform: rotate(180deg);
}

.phone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: #000000;
  border-radius: 20px;
  z-index: 20;
}

.phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000000;
  overflow: hidden;
  position: relative;
}

#lottie-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lottie-stage svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Centered Stage Flip 180 Button */
.stage-flip-btn {
  background: rgba(18, 19, 26, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(139, 92, 246, 0.1);
  user-select: none;
}

.stage-flip-btn:hover {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(139, 92, 246, 0.35);
}

.stage-flip-btn:active {
  transform: translateY(0);
}

.stage-flip-btn .flip-icon-svg {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent-color);
}

.stage-flip-btn:hover .flip-icon-svg {
  transform: rotate(180deg);
  color: #ffffff;
}

/* =========================================================
   RIGHT SIDEBAR: Attendees & Export
   ========================================================= */
.export-actions-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}

.actions-row {
  display: flex;
  gap: 6px;
}

.search-box-wrapper {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-muted);
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 11px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-color);
}

.attendees-list-container {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 360px);
  min-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.attendees-list-container::-webkit-scrollbar {
  width: 4px;
}
.attendees-list-container::-webkit-scrollbar-track {
  background: transparent;
}
.attendees-list-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.attendee-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 8px 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.attendee-card:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.attendee-card:hover {
  background: rgba(255, 255, 255, 0.035);
}

.attendee-card.active {
  background: rgba(139, 92, 246, 0.12);
  border-left: 2.5px solid var(--accent-color);
  padding-left: 8px;
}

.attendee-info {
  overflow: hidden;
}

.attendee-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attendee-meta {
  font-size: 10px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.attendee-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 6px;
}

.quick-export-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.quick-export-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.quick-export-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

/* =========================================================
   MODALS & TEMPLATE PICKER (800x600)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #12131a;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.15);
  overflow: hidden;
}

/* Template Picker Modal (860x640 layout, zero vertical scroll) */
.modal-template-picker {
  width: 860px;
  max-width: 95vw;
  height: 640px;
  max-height: 90vh;
  background: #0d0e15;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(139, 92, 246, 0.2);
  overflow: hidden;
}

.template-picker-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  background: #090a0f;
  overflow: hidden;
}

/* Top Category Bar - 8 columns evenly spaced across full width */
.picker-top-bar {
  position: relative;
  padding: 12px 16px 8px;
  background: rgba(18, 19, 27, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  flex-shrink: 0;
}

.picker-top-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 100px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.28) 0%, rgba(124, 58, 237, 0.14) 45%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.picker-categories-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  width: 100%;
  align-items: flex-start;
  justify-items: center;
}

.category-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  width: 100%;
  padding: 4px;
  border-radius: 8px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

/* +25% larger category icon frame */
.category-icon-card .icon-frame {
  width: 54px;
  height: 72px;
  border-radius: 7px;
  background: #16171e;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding: 1px;
}

.category-icon-card .icon-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.category-icon-card .category-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  max-width: 95px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.18s ease;
}

.category-icon-card:hover .icon-frame {
  border-color: rgba(139, 92, 246, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65), 0 0 14px rgba(139, 92, 246, 0.28);
}

.category-icon-card:hover .category-name {
  color: var(--text-primary);
}

.category-icon-card.active .icon-frame {
  border: 2px solid #8B5CF6;
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.75), 0 4px 14px rgba(0, 0, 0, 0.8);
}

.category-icon-card.active .category-name {
  color: #ffffff;
  font-weight: 700;
}

/* Bottom Carousel / Slider */
.picker-carousel-container {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 0;
  background: #08090d;
  overflow: hidden;
}

.picker-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 16px 32px;
  width: 100%;
  height: 100%;
  align-items: center;
  box-sizing: border-box;
}

.picker-carousel-track::-webkit-scrollbar {
  height: 6px;
}

.picker-carousel-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.picker-carousel-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.picker-carousel-track::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* 9:16 Carousel Cards */
.carousel-card {
  flex-shrink: 0;
  scroll-snap-align: center;
  width: 195px;
  height: 346px;
  background: #13141b;
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.carousel-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(139, 92, 246, 0.35);
}

.carousel-card.active {
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.55);
}

.carousel-card-screen {
  flex: 1;
  width: 100%;
  background: #000000;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-lottie-stage {
  width: 100%;
  height: 100%;
}

.carousel-card-footer {
  padding: 8px 10px;
  background: rgba(18, 19, 27, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}

.carousel-card-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-card-badge {
  font-size: 9px;
  font-family: var(--font-mono);
  color: var(--accent-color);
  background: rgba(139, 92, 246, 0.14);
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Nav Buttons */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 23, 31, 0.85);
  border: 1px solid var(--border-medium);
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.carousel-nav-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 16px var(--accent-glow);
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close-btn,
.modal-header .modal-close {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #FFFFFF !important;
  font-size: 24px !important;
  line-height: 1 !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  border-radius: 4px !important;
  opacity: 0.85 !important;
  box-shadow: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease !important;
}

.modal-close-btn:hover,
.modal-header .modal-close:hover {
  opacity: 1 !important;
  transform: scale(1.15) !important;
  background: transparent !important;
  color: #FFFFFF !important;
  border: none !important;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.template-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.template-tile-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.template-tile-btn:hover {
  background: rgba(139, 92, 246, 0.09);
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45), 0 0 14px rgba(139, 92, 246, 0.22);
}

.template-tile-btn.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: var(--accent-color);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.35);
}

.template-svg-wrap {
  width: 60px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  background: #151618;
  transition: transform 0.18s ease;
}

.template-tile-btn:hover .template-svg-wrap {
  transform: scale(1.04);
}

.template-svg-thumb {
  width: 60px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.template-tile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.template-tile-title {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.template-tile-sub {
  font-size: 10px;
  color: var(--text-muted);
}

/* =========================================================
   APP LAUNCH SPLASH SCREEN (Fullscreen Dotted Canvas + Logo Pop)
   ========================================================= */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #07080c;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: all;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.splash-logo {
  width: 140px;
  height: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(139, 92, 246, 0.55));
  transform: scale(0.6);
  opacity: 0;
  animation: splashScaleIn 0.2s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}

@keyframes splashScaleIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* =========================================================
   MODE SWITCHER (Single vs Bulk - 64x64 Square Icon Cards)
   ========================================================= */
.mode-switcher-header {
  height: auto !important;
  min-height: 125px !important;
  padding: 10px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  background: rgba(14, 16, 24, 0.75) !important;
}

.mode-toggle-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  width: 100% !important;
  background: rgba(8, 9, 14, 0.9) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 14px !important;
  padding: 6px !important;
  gap: 8px !important;
}

.mode-toggle-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 105px !important;
  padding: 10px 6px 8px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-sans) !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  user-select: none !important;
  text-align: center !important;
}

.mode-icon-wrap {
  width: 64px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 6px !important;
}

.mode-toggle-btn .mode-icon {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  object-fit: contain !important;
  filter: grayscale(0.5) opacity(0.75) !important;
  transition: all 0.25s cubic-bezier(0.34, 1.4, 0.64, 1) !important;
  display: block !important;
}

.mode-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: inherit !important;
  display: block !important;
  line-height: 1.2 !important;
}

.mode-toggle-btn:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-2px) !important;
}

.mode-toggle-btn:hover .mode-icon {
  filter: grayscale(0.15) opacity(0.95) !important;
  transform: scale(1.04) !important;
}

.mode-toggle-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(124, 58, 237, 0.22)) !important;
  border-color: rgba(139, 92, 246, 0.7) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35) !important;
}

.mode-toggle-btn.active .mode-icon {
  filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.55)) !important;
  transform: scale(1.06) !important;
}

/* Single Mode Card */
.single-mode-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 12px;
}

.single-mode-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.single-mode-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.single-details-box {
  background: #090a10;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 8px 10px;
}

.single-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 3px 0;
}
.single-detail-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.single-detail-row .detail-label {
  color: var(--text-muted);
}
.single-detail-row .detail-val {
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

/* Panel Pinned Bottom Footer */
.panel-action-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(14, 16, 24, 0.85);
  backdrop-filter: blur(12px);
  margin-top: auto;
}

.btn-generate-main {
  height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* =========================================================
   LINKS POPUP / MODAL
   ========================================================= */
.modal-links-card {
  max-width: 600px;
  width: 92%;
  background: #0d0f18;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
}

.links-list-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
  gap: 12px;
  transition: all 0.15s ease;
}

.badge-link-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.badge-link-left {
  min-width: 0;
  flex: 1;
}

.badge-link-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-link-url {
  font-size: 11px;
  font-family: var(--font-mono);
  color: #00d1de;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  text-decoration: none;
  margin-top: 2px;
}
.badge-link-url:hover {
  text-decoration: underline;
}

.badge-link-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.modal-footer-email-box {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-subtle);
  background: #090a10;
  border-radius: 0 0 16px 16px;
}

/* =========================================================
   ONBOARDING FLOW OVERLAY & SLIDES (Desktop 2-Column Alternating)
   ========================================================= */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #07080c;
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(129, 66, 255, 0.16) 0%, transparent 60%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 100% 100%, 24px 24px;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
  overflow: hidden;
  user-select: none;
}

.onboarding-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.onboarding-overlay.closing {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

/* Corner Elements (32px padding) */
.onboarding-corner-logo {
  position: absolute;
  top: 32px;
  left: 32px;
  z-index: 20;
  display: flex;
  align-items: center;
}

.onboarding-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(129, 66, 255, 0.55));
}

.onboarding-corner-skip {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 20;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: #8e8f9e;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.onboarding-corner-skip:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* Main Desktop Stage */
.onboarding-desktop-stage {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 60px 180px;
  box-sizing: border-box;
}

.onboarding-slides-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(50px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

.onboarding-slide.prev-slide {
  opacity: 0;
  transform: translateX(-50px) scale(0.96);
  z-index: 1;
}

.onboarding-slide.next-slide {
  opacity: 0;
  transform: translateX(50px) scale(0.96);
  z-index: 1;
}

/* 2-Column Inner Layout */
.onboarding-slide-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 72px;
}

.onboarding-slide.layout-video-left .onboarding-slide-inner {
  flex-direction: row;
}

.onboarding-slide.layout-video-right .onboarding-slide-inner {
  flex-direction: row-reverse;
}

/* Video Column (400px x 500px, cropped from bottom, radius 18px) */
.onboarding-col-media {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.onboarding-video-card {
  position: relative;
  width: 400px;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0e14;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 18px;
}

.onboarding-card-ambient-glow {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(129, 66, 255, 0.28) 0%, transparent 70%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

/* Text Column */
.onboarding-col-content {
  flex: 1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.onboarding-text-body {
  margin-bottom: 0;
}

.onboarding-slide-title {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0 0 18px 0;
}

.onboarding-slide-desc {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: #9d9eb3;
  margin: 0;
}

/* Fixed Bottom Controls (Centered, 96px from bottom) */
.onboarding-fixed-bottom {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 25;
  pointer-events: auto;
}

.onboarding-dots-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.onboarding-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.onboarding-dot.active {
  width: 26px;
  background: linear-gradient(90deg, #8142FF 0%, #a855f7 100%);
  box-shadow: 0 0 12px rgba(129, 66, 255, 0.6);
}

.onboarding-action-btn {
  width: 240px;
  height: 50px;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, #8142FF 0%, #682bd8 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(129, 66, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.onboarding-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(129, 66, 255, 0.6);
  background: linear-gradient(135deg, #955eff 0%, #7c3aed 100%);
}

.onboarding-action-btn:active {
  transform: translateY(1px);
}

.onboarding-action-btn.btn-get-started {
  background: linear-gradient(135deg, #8142FF 0%, #ec4899 50%, #f97316 100%);
  background-size: 200% 200%;
  animation: gradientShine 3s ease infinite;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.45);
  font-size: 16px;
}

.onboarding-action-btn.btn-get-started:hover {
  box-shadow: 0 14px 38px rgba(236, 72, 153, 0.7);
  transform: translateY(-2px) scale(1.03);
}

/* Nav Arrows (No background shell) */
.onboarding-nav-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  box-shadow: none;
  color: #8e8f9e;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.onboarding-nav-arrow:hover {
  color: #ffffff;
  transform: translateY(-50%) scale(1.2);
}

.onboarding-nav-arrow.prev {
  left: 40px;
}

.onboarding-nav-arrow.next {
  right: 40px;
}

@keyframes gradientShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Quick Replay Button in Header */
.btn-header-tour {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c9cad6;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.btn-header-tour:hover {
  background: rgba(129, 66, 255, 0.25);
  border-color: rgba(129, 66, 255, 0.6);
  color: #ffffff;
}

/* Responsive Overrides */
@media (max-width: 860px) {
  .onboarding-desktop-stage {
    padding: 30px 20px 180px;
  }
  .onboarding-slide-inner {
    flex-direction: column !important;
    gap: 24px;
    text-align: center;
  }
  .onboarding-col-content {
    align-items: center;
    max-width: 100%;
  }
  .onboarding-video-card {
    width: min(340px, 90vw);
    height: 400px;
  }
  .onboarding-slide-title {
    font-size: 28px;
  }
  .onboarding-slide-desc {
    font-size: 15px;
  }
  .onboarding-nav-arrow {
    display: none;
  }
}
