@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/jakarta.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'ChanukahBrush';
  src: url('/assets/brush-script.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #191130;
  --bg2: #241947;
  --card: rgba(34, 23, 66, 0.88);
  --edge: #0E0726;
  --border: rgba(210, 194, 246, 0.20);
  --cream: #FFF8EC;
  --ink: #FFF8EC;
  --dark: #191130;
  --mute: #D2C2F6;
  --mint: #58E9BF;
  --gold: #FBD466;
  --pink: #FF4A98;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(122, 74, 240, 0.34), transparent 65%),
    radial-gradient(ellipse 55% 40% at 92% 18%, rgba(251, 212, 102, 0.13), transparent 60%),
    radial-gradient(ellipse 55% 40% at 8% 85%, rgba(88, 233, 191, 0.10), transparent 60%),
    var(--bg);
}

button, input {
  font-family: inherit;
}

/* Header */
.ca-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(25, 17, 48, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--edge);
}

.ca-header-in {
  max-width: 1380px;
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ca-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.ca-wordmark {
  font-family: 'ChanukahBrush', var(--font);
  font-size: 29px;
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 2px 14px rgba(251, 212, 102, 0.28);
  letter-spacing: 0.01em;
}

.ca-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(251, 212, 102, 0.16);
  border: 1.5px solid rgba(251, 212, 102, 0.45);
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ca-privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(88, 233, 191, 0.12);
  border: 1.5px solid rgba(88, 233, 191, 0.35);
  color: var(--mint);
  font-size: 12.5px;
  font-weight: 700;
}

.ca-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(88, 233, 191, 0.25);
}

/* Main container */
.ca-wrap {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 20px 38px;
}

.ca-intro {
  margin-bottom: 12px;
}

.ca-intro h1 {
  margin: 0 0 6px;
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.ca-intro p {
  margin: 0;
  font-size: clamp(13.5px, 1.4vw, 15.5px);
  color: var(--mute);
  line-height: 1.45;
  max-width: 780px;
}

/* Studio Layout */
.ca-studio {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.ca-controls {
  flex: 0 0 375px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ca-preview-col {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ca-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 13px 16px;
  box-shadow: 0 14px 36px rgba(10, 5, 26, 0.34);
}

.ca-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.ca-step-head h2 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--cream);
  flex: 1;
}

.ca-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Dropzone & Upload Button */
.ca-dropzone {
  position: relative;
  border: 2px dashed rgba(251, 212, 102, 0.42);
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  background: rgba(14, 7, 38, 0.35);
  transition: border-color 0.16s, background 0.16s;
}

.ca-dropzone.drag {
  border-color: var(--mint);
  background: rgba(88, 233, 191, 0.12);
}

.ca-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.ca-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFE082, #FBD466);
  color: var(--dark);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--edge);
  box-shadow: 0 5px 0 var(--edge);
  transition: transform 0.1s, box-shadow 0.1s;
}

.ca-upload-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 var(--edge);
}

.ca-upload-ico {
  display: inline-flex;
}

.ca-drop-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--mute);
  opacity: 0.85;
}

/* Sample buttons */
.ca-samples {
  margin-top: 13px;
}

.ca-samples-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--mute);
  margin-bottom: 8px;
}

.ca-sample-row {
  display: flex;
  gap: 10px;
}

.ca-sample-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 7px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: rgba(14, 7, 38, 0.44);
  color: var(--cream);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.15s, transform 0.12s;
}

.ca-sample-btn:hover,
.ca-sample-btn.active {
  border-color: var(--gold);
  background: rgba(251, 212, 102, 0.12);
}

.ca-sample-btn img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

/* Crop Stage */
.ca-crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(251, 212, 102, 0.45);
  background: #100926;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.ca-crop-stage:active {
  cursor: grabbing;
}

#cropCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.ca-crop-guide {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 7, 38, 0.78);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  white-space: nowrap;
}

.ca-zoom-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
}

.ca-zoom-lbl {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mute);
  white-space: nowrap;
  min-width: 78px;
}

.ca-zoom-lbl b {
  color: var(--gold);
}

#zoomSlider {
  flex: 1;
  accent-color: var(--gold);
  cursor: pointer;
}

/* Segmented Controls */
.ca-field {
  margin-bottom: 13px;
}

.ca-field-lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mute);
  margin-bottom: 7px;
}

.ca-seg {
  display: flex;
  gap: 8px;
}

.ca-seg-btn {
  flex: 1;
  min-width: 0;
  padding: 9px 6px;
  border-radius: 13px;
  border: 1.5px solid var(--border);
  background: rgba(14, 7, 38, 0.44);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.14s, background 0.14s;
}

.ca-seg-btn b {
  font-size: 13px;
  font-weight: 800;
}

.ca-seg-btn small {
  font-size: 10.5px;
  color: var(--mute);
  font-weight: 600;
  text-align: center;
}

.ca-seg-btn.active {
  border-color: var(--mint);
  background: rgba(88, 233, 191, 0.16);
}

.ca-seg-btn.active b {
  color: var(--mint);
}

/* Switches */
.ca-toggle-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 7, 38, 0.4);
  border: 1.5px solid var(--border);
  cursor: pointer;
}

.ca-mystery-box {
  border-color: rgba(251, 212, 102, 0.36);
  background: rgba(251, 212, 102, 0.08);
}

.ca-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ca-toggle-text b {
  font-size: 13px;
  font-weight: 800;
  color: var(--cream);
}

.ca-toggle-text small {
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.35;
}

.ca-switch {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
}

.ca-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.ca-switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(210, 194, 246, 0.25);
  transition: background 0.18s;
}

.ca-switch i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream);
  transition: transform 0.18s;
}

.ca-switch input:checked + i {
  background: var(--mint);
}

.ca-switch input:checked + i::after {
  transform: translateX(18px);
  background: var(--dark);
}

/* Mini Pill */
.ca-mini-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: rgba(14, 7, 38, 0.55);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ca-mini-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(251, 212, 102, 0.14);
}

/* Preview Stage */
.ca-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ca-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(14, 7, 38, 0.55);
  border: 1.5px solid var(--border);
}

.ca-tab {
  border: 0;
  border-radius: 10px;
  padding: 7px 13px;
  background: transparent;
  color: var(--mute);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.ca-tab.active {
  background: var(--gold);
  color: var(--dark);
}

.ca-preview-frame {
  position: relative;
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 248, 236, 0.18);
  background: #130B29;
  touch-action: none;
  user-select: none;
}

#previewCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Split Compare */
.ca-split-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ca-split-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(14, 7, 38, 0.85);
}

.ca-split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  border: 3px solid var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.ca-split-tag {
  position: absolute;
  top: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 7, 38, 0.82);
  color: var(--cream);
  font-size: 11.5px;
  font-weight: 800;
  border: 1px solid rgba(255, 248, 236, 0.22);
}

.ca-tag-left { left: 12px; }
.ca-tag-right { right: 12px; }

/* Brushed Brass Loupe */
.ca-loupe {
  position: absolute;
  width: 164px;
  height: 164px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.ca-loupe.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#loupeCanvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-shadow: 0 16px 36px rgba(6, 2, 18, 0.65);
}

.ca-loupe-rim {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 8px solid transparent;
  background:
    linear-gradient(135deg, #FFF0B3 0%, #D4A143 38%, #8F641D 70%, #F7DA7C 100%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.5), 0 8px 24px rgba(0, 0, 0, 0.5);
}

.ca-loupe-handle {
  position: absolute;
  width: 18px;
  height: 62px;
  right: -18px;
  bottom: -44px;
  transform: rotate(-38deg);
  border-radius: 9px;
  background: linear-gradient(90deg, #4B2B17, #8A5532 45%, #3B2010);
  border: 2px solid #D4A143;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

/* Busy Overlay */
.ca-busy {
  position: absolute;
  inset: 0;
  z-index: 18;
  background: rgba(18, 11, 38, 0.78);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ca-busy[hidden] {
  display: none;
}

.ca-busy-box {
  width: min(360px, 92%);
  background: rgba(25, 17, 48, 0.96);
  border: 2px solid var(--gold);
  border-radius: 18px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.ca-busy-box b {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--cream);
  margin-bottom: 10px;
}

.ca-prog-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.16);
  overflow: hidden;
  margin-bottom: 9px;
}

.ca-prog-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--mint));
  transition: width 0.22s ease;
}

.ca-busy-box small {
  font-size: 11.5px;
  color: var(--mute);
}

/* Stats & Launch Bar */
.ca-stats-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ca-stat {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(14, 7, 38, 0.45);
  border: 1.5px solid var(--border);
  text-align: center;
}

.ca-stat b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.15;
}

.ca-stat span {
  font-size: 11.5px;
  color: var(--mute);
  font-weight: 700;
}

.ca-launch-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.ca-launch-btn {
  flex: 1 1 250px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #74F2CE, #58E9BF);
  color: var(--dark);
  border: 2.5px solid var(--edge);
  box-shadow: 0 6px 0 var(--edge);
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.15s;
}

.ca-launch-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ca-launch-btn:not(:disabled):active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--edge);
}

.ca-secondary-btn {
  flex: 0 0 auto;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 248, 236, 0.10);
  color: var(--cream);
  border: 1.5px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ca-secondary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ca-tip-line {
  margin: 11px 0 0;
  font-size: 12px;
  color: var(--mute);
  opacity: 0.88;
}

/* Extracted Palette Strip */
.ca-pal-note {
  font-size: 12px;
  color: var(--mute);
  font-weight: 700;
}

.ca-palette-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ca-swatch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: rgba(14, 7, 38, 0.5);
  border: 1px solid rgba(255, 248, 236, 0.14);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cream);
}

.ca-swatch-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

/* Responsive Mobile */
@media (max-width: 960px) {
  .ca-studio {
    flex-direction: column;
  }
  .ca-controls,
  .ca-preview-col {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .ca-header-in {
    padding: 10px 14px;
  }
  .ca-wordmark {
    font-size: 24px;
  }
  .ca-privacy-pill {
    font-size: 11.5px;
    padding: 5px 10px;
  }
  .ca-wrap {
    padding: 14px 12px 36px;
  }
  .ca-card {
    padding: 14px;
    border-radius: 18px;
  }
  .ca-tab {
    padding: 6px 9px;
    font-size: 12px;
  }
  .ca-stat b {
    font-size: 16px;
  }
  .ca-launch-btn {
    width: 100%;
    font-size: 15.5px;
  }
  .ca-secondary-btn {
    width: 100%;
  }
  .ca-loupe {
    width: 136px;
    height: 136px;
  }
}


/* Integrated ChanukahArt.com header back link + Play Solo / Play with Friends + 4-Tier Modal */
.ca-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ca-brand {
  text-decoration: none;
  color: inherit;
}
.ca-back-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid rgba(255, 216, 107, 0.28);
  color: #FFE7A8;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.ca-back-home:hover {
  background: rgba(255, 216, 107, 0.18);
  border-color: rgba(255, 216, 107, 0.55);
  transform: translateY(-1px);
}
.ca-launch-dual {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 10px;
}
.ca-friends-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(255, 216, 107, 0.55);
  background: linear-gradient(135deg, #FFD86B, #F4B942);
  color: #1A1036;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 216, 107, 0.24);
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
}
.ca-friends-btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
  box-shadow: 0 10px 28px rgba(255, 216, 107, 0.36);
  filter: brightness(1.04);
}
.ca-friends-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ca-launch-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ca-privacy-inline {
  font-size: 12px;
  color: rgba(235, 224, 255, 0.72);
  font-weight: 600;
}

/* Play with Friends Modal */
.ca-fr-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(12, 6, 28, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.ca-fr-modal[hidden] {
  display: none;
}
.ca-fr-card {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #211442, #160D30);
  border: 1.5px solid rgba(255, 216, 107, 0.34);
  border-radius: 26px;
  padding: 22px 24px 24px;
  box-shadow: 0 24px 70px rgba(8, 3, 22, 0.65);
  color: #FFF8EC;
}
.ca-fr-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.ca-fr-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.07);
  border: 1px solid rgba(255, 216, 107, 0.22);
  font-size: 12.5px;
  font-weight: 700;
  color: #FFE7A8;
}
.ca-fr-close {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 248, 236, 0.25);
  background: rgba(255, 248, 236, 0.09);
  color: #FFF8EC;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ca-fr-close:hover {
  background: rgba(255, 248, 236, 0.18);
}
.ca-fr-hero {
  text-align: center;
  margin-bottom: 14px;
}
.ca-fr-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ca-fr-hero h2 span {
  color: #FFD86B;
}
.ca-fr-sub {
  margin: 0;
  font-size: 13.5px;
  color: rgba(235, 224, 255, 0.82);
  line-height: 1.45;
}
.ca-fr-hostrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ca-fr-hostrow label {
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 231, 168, 0.9);
}
.ca-fr-hostrow input {
  width: 240px;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 248, 236, 0.2);
  background: rgba(12, 6, 28, 0.55);
  color: #FFF8EC;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
}
.ca-fr-msg {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(88, 233, 191, 0.14);
  border: 1px solid rgba(88, 233, 191, 0.36);
  color: #D9FFF4;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.ca-fr-msg.is-err {
  background: rgba(255, 92, 138, 0.16);
  border-color: rgba(255, 92, 138, 0.45);
  color: #FFD2E0;
}
.ca-fr-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ca-tier {
  display: flex;
  flex-direction: column;
  padding: 15px 14px;
  border-radius: 18px;
  background: rgba(255, 248, 236, 0.05);
  border: 1px solid rgba(255, 248, 236, 0.14);
}
.ca-tier-pop {
  background: linear-gradient(160deg, rgba(88, 233, 191, 0.14), rgba(84, 38, 178, 0.26));
  border: 1.5px solid rgba(88, 233, 191, 0.6);
  box-shadow: 0 8px 24px rgba(88, 233, 191, 0.12);
}
.ca-tier-mega {
  background: linear-gradient(160deg, rgba(255, 216, 107, 0.12), rgba(84, 38, 178, 0.24));
  border: 1px solid rgba(255, 216, 107, 0.45);
}
.ca-tier-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 248, 236, 0.12);
  color: #FFE7A8;
  margin-bottom: 8px;
}
.ca-tier-pop .ca-tier-tag {
  background: #58E9BF;
  color: #160D30;
}
.ca-tier-name {
  font-size: 16px;
  font-weight: 800;
  color: #FFF8EC;
}
.ca-tier-cap {
  font-size: 12.5px;
  font-weight: 700;
  color: #C9B2FF;
  margin-top: 2px;
}
.ca-tier-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 10px 0;
}
.ca-tier-price b {
  font-size: 26px;
  font-weight: 800;
  color: #FFD86B;
}
.ca-tier-price span {
  font-size: 12px;
  color: rgba(235, 224, 255, 0.7);
}
.ca-tier-perks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 12px;
  color: rgba(255, 248, 236, 0.86);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.ca-tier-perks li::before {
  content: "✓ ";
  color: #58E9BF;
  font-weight: 800;
}
.ca-tier-buy {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: none;
  background: #FFF8EC;
  color: #1A1036;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s;
}
.ca-tier-pop .ca-tier-buy {
  background: #58E9BF;
  color: #140B2C;
}
.ca-tier-mega .ca-tier-buy {
  background: #FFD86B;
  color: #1A1036;
}
.ca-tier-buy:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.ca-tier-buy:disabled {
  opacity: 0.55;
  cursor: wait;
}
.ca-fr-vip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 248, 236, 0.14);
}
.ca-fr-vip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(235, 224, 255, 0.82);
  font-weight: 600;
}
.ca-fr-vip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ca-fr-vip-row input {
  width: 150px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 248, 236, 0.24);
  background: rgba(12, 6, 28, 0.6);
  color: #FFF8EC;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ca-fr-vip-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(88, 233, 191, 0.5);
  background: rgba(88, 233, 191, 0.16);
  color: #58E9BF;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.ca-fr-vip-btn:hover:not(:disabled) {
  background: #58E9BF;
  color: #160D30;
}
@media (max-width: 820px) {
  .ca-fr-tiers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ca-launch-dual {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .ca-fr-tiers {
    grid-template-columns: 1fr;
  }
  .ca-fr-card {
    padding: 16px;
  }
}
