/* =========================================================
   DILLINK BIRTHDAY CREATOR
   FINAL CLEAN CSS
   Responsive • Mobile First • Premium
========================================================= */

/* =========================================================
   ROOT
========================================================= */

:root {
  --bg: #09060d;
  --bg-deep: #060409;
  --bg-soft: #100a15;

  --panel: rgba(255,255,255,.045);
  --panel-hover: rgba(255,255,255,.065);
  --panel-strong: rgba(255,255,255,.08);

  --white: #fff8fc;
  --text: #f5edf2;
  --muted: #a99ca8;
  --muted-2: #746a75;
  --faint: #514852;

  --pink: #ff5f9f;
  --pink-light: #ff9fc4;
  --pink-pale: #ffd9e8;
  --pink-dark: #dc3974;

  --purple: #9b72ff;
  --gold: #ffd58a;
  --success: #6edca8;
  --danger: #ff7182;

  --border: rgba(255,255,255,.09);
  --border-soft: rgba(255,255,255,.055);

  --shadow:
    0 30px 90px rgba(0,0,0,.42);

  --shadow-deep:
    0 40px 120px rgba(0,0,0,.60);

  --ease:
    cubic-bezier(.22,1,.36,1);

  --display:
    Georgia,
    "Times New Roman",
    serif;

  --sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-height: 100%;

  margin: 0;
  padding: 0;

  background: var(--bg);

  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;

  margin: 0;
  padding: 0;

  overflow-x: hidden;

  color: var(--text);

  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255,85,145,.09),
      transparent 30%
    ),
    radial-gradient(
      circle at 92% 20%,
      rgba(145,90,255,.07),
      transparent 28%
    ),
    linear-gradient(
      145deg,
      #08050b 0%,
      #100912 52%,
      #09060d 100%
    );

  font-family: var(--sans);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      rgba(255,255,255,.018) 1px,
      transparent 1px
    );

  background-size: 100% 4px;

  opacity: .15;

  z-index: -1;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  appearance: none;
  -webkit-appearance: none;

  border: 0;
  outline: 0;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

::selection {
  color: white;
  background: rgba(255,95,159,.28);
}


/* =========================================================
   CREATOR APP
========================================================= */

.creator-app {
  position: relative;

  width: 100%;
  max-width: 100%;

  min-height: 100vh;

  overflow-x: hidden;

  padding-bottom: 108px;
}


/* =========================================================
   TOP BAR
========================================================= */

.creator-topbar {
  position: sticky;
  top: 0;

  z-index: 200;

  width: 100%;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 28px;

  background:
    rgba(9,6,13,.78);

  border-bottom:
    1px solid var(--border-soft);

  backdrop-filter:
    blur(24px);

  -webkit-backdrop-filter:
    blur(24px);
}

.creator-brand {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  color: rgba(255,255,255,.92);

  font-family: var(--display);
  font-size: 18px;

  white-space: nowrap;
}

.brand-heart {
  color: var(--pink);

  font-family: var(--sans);
  font-size: 12px;

  filter:
    drop-shadow(
      0 0 10px rgba(255,95,159,.45)
    );
}

.creator-topbar-center {
  display: flex;
  align-items: center;
  gap: 9px;

  color: var(--muted);

  font-size: 8px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.topbar-dot {
  width: 4px;
  height: 4px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: var(--pink);

  box-shadow:
    0 0 8px rgba(255,95,159,.55);
}

.ghost-button {
  min-height: 34px;

  padding: 0 13px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  color: var(--muted);

  background: rgba(255,255,255,.035);

  border:
    1px solid rgba(255,255,255,.075);

  font-size: 8px;

  transition:
    .25s var(--ease);
}

.ghost-button:hover {
  color: white;

  background: rgba(255,255,255,.06);

  border-color:
    rgba(255,255,255,.13);
}


/* =========================================================
   DESKTOP PROGRESS
========================================================= */

.creator-progress {
  width: min(1100px, calc(100% - 40px));

  margin: 22px auto 0;

  display: grid;

  grid-template-columns:
    repeat(8, minmax(0, 1fr));

  gap: 7px;
}

.progress-step {
  position: relative;

  min-width: 0;

  padding:
    10px 11px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  gap: 5px;

  color: var(--muted-2);

  background:
    rgba(255,255,255,.022);

  border:
    1px solid rgba(255,255,255,.055);

  border-radius: 14px;

  text-align: left;

  transition:
    background .25s ease,
    color .25s ease,
    border-color .25s ease,
    transform .25s var(--ease);
}

.progress-step:hover {
  color: var(--muted);

  background:
    rgba(255,255,255,.04);

  transform:
    translateY(-1px);
}

.progress-step span {
  color: inherit;

  font-size: 7px;
  letter-spacing: .13em;
}

.progress-step strong {
  color: inherit;

  font-size: 8px;
  font-weight: 700;

  white-space: nowrap;
}

.progress-step.active {
  color: var(--white);

  background:
    linear-gradient(
      145deg,
      rgba(255,95,159,.095),
      rgba(255,95,159,.035)
    );

  border-color:
    rgba(255,95,159,.27);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035);
}

.progress-step.active span {
  color: var(--pink-light);
}

.progress-step.completed {
  color: #d78aaa;

  background:
    rgba(255,95,159,.035);
}


/* =========================================================
   MOBILE PROGRESS
========================================================= */

.mobile-progress {
  display: none;
}


/* =========================================================
   BUILDER
========================================================= */

.builder-shell {
  position: relative;

  width: min(850px, calc(100% - 40px));

  margin: 0 auto;

  min-width: 0;
}

.builder-column {
  width: 100%;
  max-width: 100%;

  min-width: 0;
}


/* =========================================================
   CREATOR STEPS
========================================================= */

.creator-step {
  display: none;

  width: 100%;
  max-width: 100%;

  min-width: 0;

  padding-bottom: 24px;

  animation:
    stepIn .55s var(--ease);
}

.creator-step.active {
  display: block;
}


/* =========================================================
   STEP HEADING
========================================================= */

.step-heading {
  max-width: 730px;

  margin:
    48px auto 26px;

  text-align: center;
}

.step-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--pink-light);

  font-size: 8px;
  font-weight: 800;

  letter-spacing: .22em;

  text-transform: uppercase;
}

.step-heading h1 {
  margin-top: 13px;

  color: var(--white);

  font-family: var(--display);

  font-size:
    clamp(45px, 7vw, 73px);

  font-weight: 400;

  line-height: .91;

  letter-spacing: -.065em;
}

.step-heading p {
  max-width: 520px;

  margin: 16px auto 0;

  color: var(--muted);

  font-size: 11px;

  line-height: 1.7;
}


/* =========================================================
   FORM CARD
========================================================= */

.form-card {
  position: relative;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 26px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.062),
      rgba(255,255,255,.024)
    );

  border:
    1px solid var(--border);

  border-radius: 25px;

  box-shadow:
    var(--shadow);

  backdrop-filter:
    blur(20px);

  -webkit-backdrop-filter:
    blur(20px);

  overflow: hidden;
}

.form-card::before {
  content: "";

  position: absolute;

  left: 10%;
  right: 10%;
  top: 0;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,160,190,.16),
      transparent
    );

  pointer-events: none;
}


/* =========================================================
   FIELDS
========================================================= */

.field {
  position: relative;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  display: block;

  margin-top: 18px;
}

.field:first-child {
  margin-top: 0;
}

.field > span {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--text);

  font-size: 9px;
  font-weight: 750;
}

.field > span small {
  color: var(--muted-2);

  font-size: 7px;
  font-weight: 500;
}


/* ---------- INPUTS ---------- */

.field input,
.field textarea,
.field select {

  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin-top: 8px;

  padding: 13px 14px;

  color: var(--text);

  background:
    rgba(255,255,255,.035);

  border:
    1px solid rgba(255,255,255,.085);

  border-radius: 13px;

  outline: none;

  font-size: 11px;

  line-height: 1.5;

  transition:
    border-color .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.field input {
  height: 45px;
}

.field textarea {
  min-height: 108px;

  resize: vertical;

  line-height: 1.65;
}

.field input::placeholder,
.field textarea::placeholder {
  color:
    rgba(255,255,255,.27);
}

.field input:focus,
.field textarea:focus,
.field select:focus {

  background:
    rgba(255,95,159,.035);

  border-color:
    rgba(255,95,159,.42);

  box-shadow:
    0 0 0 4px
    rgba(255,95,159,.055);
}


/* ---------- SELECT ---------- */

.field select {

  appearance: none;
  -webkit-appearance: none;

  padding-right: 42px;

  color: var(--text);

  background:
    rgba(255,255,255,.035);

  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      rgba(255,255,255,.48) 50%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,.48) 50%,
      transparent 50%
    );

  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat:
    no-repeat;
}

.field select option {
  color: #221922;
  background: #f7edf2;
}


/* ---------- COUNTER ---------- */

.field-counter {
  margin-top: 6px;

  color: var(--muted-2);

  text-align: right;

  font-size: 7px;
}


/* =========================================================
   CHOICE CARDS
========================================================= */

.choice-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0,1fr));

  gap: 8px;

  margin-top: 9px;
}

.choice-grid.four {
  grid-template-columns:
    repeat(4, minmax(0,1fr));
}

.choice-card {

  min-width: 0;

  min-height: 71px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 9px;

  color: var(--muted);

  background:
    rgba(255,255,255,.025);

  border:
    1px solid rgba(255,255,255,.075);

  border-radius: 15px;

  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    background .25s ease,
    color .25s ease;
}

.choice-card strong {
  color: var(--pink-light);

  font-size: 15px;
}

.choice-card span {
  font-size: 8px;

  white-space: nowrap;
}

.choice-card:hover {
  color: white;

  transform:
    translateY(-2px);

  background:
    rgba(255,255,255,.045);

  border-color:
    rgba(255,255,255,.12);
}

.choice-card.selected {
  color: white;

  background:
    rgba(255,95,159,.08);

  border-color:
    rgba(255,95,159,.40);

  box-shadow:
    0 12px 30px
    rgba(255,70,140,.08);
}

.choice-card.compact {
  min-height: 67px;
}


/* =========================================================
   TOGGLE
========================================================= */

.toggle-row {

  width: 100%;
  min-width: 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding:
    15px 0;

  border-bottom:
    1px solid var(--border-soft);
}

.toggle-row:first-child {
  padding-top: 0;
}

.toggle-row:last-child {
  border-bottom: 0;
}

.toggle-row > span {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.toggle-row strong {
  color: var(--text);

  font-size: 10px;
}

.toggle-row small {
  color: var(--muted);

  font-size: 8px;

  line-height: 1.5;
}


/* ---------- SWITCH ---------- */

.toggle-row input[type="checkbox"] {

  appearance: none;
  -webkit-appearance: none;

  position: relative;

  flex: 0 0 auto;

  width: 42px;
  height: 24px;

  margin: 0;

  border-radius: 999px;

  background:
    rgba(255,255,255,.08);

  border:
    1px solid rgba(255,255,255,.10);

  cursor: pointer;

  transition:
    background .25s ease,
    border-color .25s ease;
}

.toggle-row input[type="checkbox"]::after {

  content: "";

  position: absolute;

  top: 3px;
  left: 3px;

  width: 16px;
  height: 16px;

  border-radius: 50%;

  background:
    #cfc6cc;

  transition:
    transform .25s var(--ease),
    background .25s ease;
}

.toggle-row input[type="checkbox"]:checked {

  background:
    linear-gradient(
      90deg,
      #ff77ab,
      #df3977
    );

  border-color:
    transparent;
}

.toggle-row input[type="checkbox"]:checked::after {

  transform:
    translateX(18px);

  background:
    white;

  box-shadow:
    0 2px 10px rgba(0,0,0,.18);
}


/* =========================================================
   AGE CONTROL
========================================================= */

.age-control {

  width:
    min(290px,100%);

  margin:
    9px auto 0;

  padding: 7px;

  display: grid;

  grid-template-columns:
    48px 1fr 48px;

  align-items: center;

  gap: 7px;

  border-radius: 16px;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid rgba(255,255,255,.075);
}

.age-control button {

  width: 100%;
  height: 41px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: white;

  background:
    rgba(255,255,255,.055);

  font-size: 19px;

  transition:
    background .2s ease,
    transform .2s var(--ease);
}

.age-control button:hover {
  background:
    rgba(255,255,255,.08);

  transform:
    translateY(-1px);
}

.age-control strong {

  color: var(--white);

  font-family: var(--display);

  font-size: 28px;

  font-weight: 400;

  text-align: center;
}


/* =========================================================
   SCHEDULE BOX
========================================================= */

.scheduled-box {

  margin-top: 10px;

  padding-top: 8px;
}


/* =========================================================
   UPLOAD
========================================================= */

.upload-zone {

  width: 100%;
  max-width: 100%;
  min-height: 155px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: var(--text);

  background:
    radial-gradient(
      circle,
      rgba(255,95,159,.055),
      transparent 65%
    ),
    rgba(255,255,255,.02);

  border:
    1px dashed
    rgba(255,145,185,.27);

  border-radius: 20px;

  transition:
    background .25s ease,
    border-color .25s ease,
    transform .25s var(--ease);
}

.upload-zone:hover {

  transform:
    translateY(-2px);

  background:
    rgba(255,95,159,.045);

  border-color:
    rgba(255,145,185,.42);
}

.upload-icon {

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--pink-light);

  background:
    rgba(255,95,159,.08);

  border:
    1px solid
    rgba(255,95,159,.12);

  font-size: 27px;
}

.upload-zone strong {
  font-size: 11px;
}

.upload-zone small {
  color: var(--muted);

  font-size: 8px;
}


/* =========================================================
   MEMORY LIST
========================================================= */

.memory-meta {

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-top: 19px;

  color: var(--muted);

  font-size: 8px;
}

.memory-meta strong {
  color: var(--pink-light);
}

.creator-memory-list {

  display: grid;

  gap: 9px;

  margin-top: 10px;
}

.memory-item {

  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    62px minmax(0,1fr) 32px;

  gap: 10px;

  align-items: center;

  padding: 9px;

  border-radius: 15px;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid
    rgba(255,255,255,.075);
}

.memory-item img {

  width: 62px;
  height: 62px;

  object-fit: cover;

  border-radius: 10px;

  background: #21151f;
}

.memory-item-info {
  min-width: 0;
}

.memory-item-info strong {

  display: block;

  overflow: hidden;

  color: var(--text);

  font-size: 9px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.memory-item-fields {

  width: 100%;

  display: grid;

  grid-template-columns:
    minmax(0,1fr) 120px;

  gap: 6px;

  margin-top: 7px;
}

.memory-item-fields input {

  width: 100%;
  min-width: 0;

  height: 32px;

  margin: 0;

  padding:
    0 9px;

  color: var(--text);

  background:
    rgba(255,255,255,.025);

  border:
    1px solid
    rgba(255,255,255,.07);

  border-radius: 9px;

  outline: none;

  font-size: 8px;
}

.memory-item-fields input:focus {

  border-color:
    rgba(255,95,159,.35);

  background:
    rgba(255,95,159,.035);
}

.memory-remove {

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--muted);

  background:
    rgba(255,255,255,.04);

  font-size: 18px;

  transition:
    .2s ease;
}

.memory-remove:hover {

  color: #ffafbd;

  background:
    rgba(255,80,120,.10);
}

.empty-state {

  padding:
    25px 10px 5px;

  text-align: center;

  color: var(--muted);

  font-size: 9px;

  line-height: 1.7;
}

.empty-state > span {

  display: block;

  margin-bottom: 5px;

  color: var(--pink);

  font-size: 25px;
}


/* =========================================================
   SUBSECTION
========================================================= */

.subsection-heading {

  width: 100%;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 12px;
}

.subsection-heading > div {

  display: flex;
  flex-direction: column;

  gap: 4px;

  min-width: 0;
}

.subsection-heading span {

  color: var(--pink-light);

  font-size: 7px;

  letter-spacing: .16em;
}

.subsection-heading strong {

  color: var(--text);

  font-size: 11px;
}


/* =========================================================
   AI SMALL BUTTONS
========================================================= */

.mini-ai-button,
.assistant-button {

  appearance: none;

  color: var(--pink-light);

  background:
    rgba(255,95,159,.065);

  border:
    1px solid
    rgba(255,95,159,.16);

  border-radius: 999px;

  font-size: 8px;

  font-weight: 650;

  transition:
    .22s ease;
}

.mini-ai-button {

  min-height: 32px;

  padding:
    0 11px;

  white-space: nowrap;
}

.mini-ai-button:hover,
.assistant-button:hover {

  color: white;

  background:
    rgba(255,95,159,.10);

  border-color:
    rgba(255,95,159,.28);
}

.assistant-button {

  width: 100%;

  min-height: 40px;

  margin-top: 12px;
}


/* =========================================================
   DIVIDER
========================================================= */

.divider {

  width: 100%;
  height: 1px;

  margin:
    23px 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,.08),
      transparent
    );
}


/* =========================================================
   LETTER TABS
========================================================= */

.letter-mode-tabs {

  display: inline-flex;

  padding: 4px;

  border-radius: 999px;

  background:
    rgba(255,255,255,.035);

  border:
    1px solid
    rgba(255,255,255,.065);
}

.letter-mode {

  min-height: 34px;

  padding:
    0 13px;

  border-radius: 999px;

  color: var(--muted);

  background: transparent;

  font-size: 8px;

  font-weight: 650;
}

.letter-mode.active {

  color: white;

  background:
    rgba(255,95,159,.10);

  box-shadow:
    inset 0 1px 0
    rgba(255,255,255,.03);
}

.letter-editor-panel {
  display: none;

  width: 100%;

  margin-top: 14px;
}

.letter-editor-panel.active {
  display: block;
}


/* =========================================================
   QUICK LINES
========================================================= */

.quick-lines-heading {

  margin-top: 14px;

  color: var(--text);

  font-size: 9px;
  font-weight: 700;
}

.quick-lines {

  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 8px;
}

.quick-line {

  min-height: 30px;

  padding:
    0 10px;

  color: var(--muted);

  background:
    rgba(255,255,255,.025);

  border:
    1px solid
    rgba(255,255,255,.07);

  border-radius: 999px;

  font-size: 7px;
}

.quick-line:hover {

  color: white;

  background:
    rgba(255,255,255,.055);
}


/* =========================================================
   AI PANEL
========================================================= */

.ai-intro-card {

  padding: 16px;

  border-radius: 17px;

  background:
    linear-gradient(
      135deg,
      rgba(255,95,159,.085),
      rgba(155,114,255,.045)
    );

  border:
    1px solid
    rgba(255,95,159,.12);
}

.ai-intro-card > span {
  font-size: 18px;
}

.ai-intro-card strong {

  display: block;

  margin-top: 6px;

  color: var(--text);

  font-size: 11px;
}

.ai-intro-card p {

  margin-top: 5px;

  color: var(--muted);

  font-size: 8px;

  line-height: 1.55;
}

.tone-options {

  display: flex;

  flex-wrap: wrap;

  gap: 7px;

  margin-top: 10px;
}

.tone-option {

  min-height: 30px;

  padding:
    0 11px;

  color: var(--muted);

  background:
    rgba(255,255,255,.025);

  border:
    1px solid
    rgba(255,255,255,.07);

  border-radius: 999px;

  font-size: 7px;
}

.tone-option.selected {

  color: white;

  background:
    rgba(255,95,159,.09);

  border-color:
    rgba(255,95,159,.27);
}

.ai-loading {

  min-height: 35px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  margin-top: 12px;

  color: var(--muted);

  font-size: 8px;
}

.ai-loading span {

  width: 9px;
  height: 9px;

  border-radius: 50%;

  border:
    2px solid
    rgba(255,255,255,.12);

  border-top-color:
    var(--pink);

  animation:
    spin .8s linear infinite;
}

.ai-result {
  width: 100%;

  margin-top: 14px;
}

.ai-result-actions {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;
}


/* =========================================================
   PRIMARY / SECONDARY BUTTON SYSTEM
========================================================= */

.primary-button,
.secondary-button {

  appearance: none;
  -webkit-appearance: none;

  min-height: 44px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  padding:
    0 17px;

  border-radius: 999px;

  font-family: var(--sans);

  font-size: 9px;

  font-weight: 700;

  line-height: 1;

  white-space: nowrap;

  transition:
    transform .25s var(--ease),
    box-shadow .25s ease,
    background .25s ease,
    border-color .25s ease,
    filter .25s ease;
}

.primary-button {

  color: white;

  background:
    linear-gradient(
      135deg,
      #ff82b1 0%,
      #ff5c98 48%,
      #df3976 100%
    );

  border:
    1px solid
    rgba(255,255,255,.07);

  box-shadow:
    0 12px 32px
    rgba(230,59,119,.22);
}

.primary-button:hover {

  transform:
    translateY(-2px);

  filter:
    brightness(1.045);

  box-shadow:
    0 17px 40px
    rgba(230,59,119,.31);
}

.primary-button:active,
.secondary-button:active {

  transform:
    scale(.97);
}

.secondary-button {

  color:
    rgba(255,255,255,.78);

  background:
    rgba(255,255,255,.045);

  border:
    1px solid
    rgba(255,255,255,.10);

  box-shadow:
    none;
}

.secondary-button:hover {

  color: white;

  background:
    rgba(255,255,255,.075);

  border-color:
    rgba(255,255,255,.15);

  transform:
    translateY(-2px);
}

.primary-button.wide {

  width: 100%;

  margin-top: 13px;
}


/* =========================================================
   SOUNDTRACK
========================================================= */

.soundtrack-heading {

  margin-top: 19px;

  color: var(--text);

  font-size: 9px;
  font-weight: 700;
}

.song-list {

  width: 100%;

  display: grid;

  gap: 8px;

  margin-top: 10px;
}

.song-item {

  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    34px minmax(0,1fr) 25px;

  align-items: center;

  gap: 9px;

  padding:
    11px 12px;

  color: var(--muted);

  background:
    rgba(255,255,255,.028);

  border:
    1px solid
    rgba(255,255,255,.075);

  border-radius: 14px;

  text-align: left;

  transition:
    transform .2s var(--ease),
    background .2s ease,
    border-color .2s ease,
    color .2s ease;
}

.song-item:hover {

  transform:
    translateY(-1px);

  color: var(--text);

  background:
    rgba(255,255,255,.05);

  border-color:
    rgba(255,255,255,.12);
}

.song-item.selected {

  color: white;

  background:
    rgba(255,95,159,.075);

  border-color:
    rgba(255,95,159,.33);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025);
}

.song-number {

  display: grid;

  place-items: center;

  width: 29px;
  height: 29px;

  border-radius: 50%;

  color: var(--pink-light);

  background:
    rgba(255,95,159,.06);

  font-size: 7px;
}

.song-info {

  min-width: 0;

  display: block;
}

.song-info strong {

  display: block;

  overflow: hidden;

  color: inherit;

  font-size: 9px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.song-info small {

  display: block;

  margin-top: 3px;

  overflow: hidden;

  color: var(--muted-2);

  font-size: 7px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.song-mark {

  color: var(--pink-light);

  font-size: 12px;

  text-align: center;
}


/* =========================================================
   FILE INFO
========================================================= */

.file-info {

  margin-top: 8px;

  padding:
    9px 11px;

  color: var(--success);

  background:
    rgba(110,220,168,.055);

  border:
    1px solid
    rgba(110,220,168,.12);

  border-radius: 11px;

  font-size: 8px;
}


/* =========================================================
   VISUAL SECTION
========================================================= */

.visual-section {
  width: 100%;
  min-width: 0;
}

.visual-heading {
  margin-bottom: 9px;
}

.visual-heading > span {

  color: var(--text);

  font-size: 9px;
  font-weight: 750;
}


/* =========================================================
   THEME GRID
========================================================= */

.theme-grid {

  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(5, minmax(0,1fr));

  gap: 8px;
}

.theme-card {

  min-width: 0;

  padding: 7px;

  color: var(--muted);

  background:
    rgba(255,255,255,.023);

  border:
    1px solid
    rgba(255,255,255,.07);

  border-radius: 13px;

  text-align: left;

  transition:
    transform .25s var(--ease),
    border-color .25s ease,
    background .25s ease;
}

.theme-card:hover {

  transform:
    translateY(-2px);

  background:
    rgba(255,255,255,.045);
}

.theme-card.selected {

  color: white;

  background:
    rgba(255,95,159,.065);

  border-color:
    rgba(255,95,159,.34);

  box-shadow:
    0 10px 24px rgba(255,70,140,.07);
}

.theme-preview {

  display: block;

  width: 100%;
  height: 48px;

  overflow: hidden;

  border-radius: 9px;

  position: relative;
}

.theme-preview::after {

  content: "✦";

  position: absolute;

  right: 8px;
  top: 6px;

  color: rgba(255,255,255,.65);

  font-size: 10px;
}

.theme-preview.dreamy {
  background:
    linear-gradient(
      135deg,
      #ff7da8,
      #63223e,
      #190914
    );
}

.theme-preview.cute {
  background:
    linear-gradient(
      135deg,
      #ffb6cd,
      #a34f72,
      #351324
    );
}

.theme-preview.midnight {
  background:
    linear-gradient(
      135deg,
      #7759c8,
      #2a2059,
      #0c0816
    );
}

.theme-preview.floral {
  background:
    linear-gradient(
      135deg,
      #ec92b3,
      #8c3f62,
      #28101d
    );
}

.theme-preview.champagne {
  background:
    linear-gradient(
      135deg,
      #e1ba7d,
      #8c6246,
      #261713
    );
}

.theme-card strong {

  display: block;

  margin-top: 7px;

  overflow: hidden;

  color: inherit;

  font-size: 8px;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.theme-card small {

  display: block;

  margin-top: 3px;

  color: var(--muted-2);

  font-size: 6px;

  white-space: nowrap;
}


/* =========================================================
   ASSET GRID
========================================================= */

.asset-grid {

  width: 100%;

  display: grid;

  gap: 9px;

  margin-top: 10px;
}

.cake-grid {
  grid-template-columns:
    repeat(4, minmax(0,1fr));
}

.character-grid {
  grid-template-columns:
    repeat(4, minmax(0,1fr));
}

.asset-card {

  position: relative;

  min-width: 0;

  padding: 9px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  color: var(--muted);

  background:
    rgba(255,255,255,.024);

  border:
    1px solid
    rgba(255,255,255,.075);

  border-radius: 15px;

  transition:
    transform .25s var(--ease),
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.asset-card:hover {

  transform:
    translateY(-2px);

  background:
    rgba(255,255,255,.045);
}

.asset-card.selected {

  color: white;

  background:
    rgba(255,95,159,.065);

  border-color:
    rgba(255,95,159,.36);

  box-shadow:
    0 10px 28px
    rgba(255,70,140,.065);
}

.asset-card img {

  width: 100%;
  height: 110px;

  object-fit: contain;

  background: transparent;

  border-radius: 10px;

  user-select: none;

  pointer-events: none;
}

.character-grid .asset-card img {
  height: 112px;
}

.asset-card span {

  display: block;

  margin-top: 6px;

  color: inherit;

  font-size: 7px;

  text-align: center;
}


/* =========================================================
   PREVIEW
========================================================= */

.preview-card {

  width: 100%;
  min-width: 0;

  padding: 14px;

  border-radius: 23px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.055),
      rgba(255,255,255,.025)
    );

  border:
    1px solid var(--border);

  box-shadow:
    var(--shadow);
}

.preview-toolbar {

  width: 100%;
  min-width: 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 12px;
}

.preview-toolbar > div {

  min-width: 0;
}

.preview-toolbar strong {

  display: block;

  color: var(--text);

  font-size: 10px;
}

.preview-toolbar span {

  display: block;

  margin-top: 3px;

  color: var(--success);

  font-size: 7px;

  text-transform: uppercase;

  letter-spacing: .10em;
}

.preview-device {

  width:
    min(390px,100%);

  margin:
    0 auto;

  padding:
    7px;

  border-radius:
    28px;

  background:
    #181119;

  border:
    1px solid
    rgba(255,255,255,.09);

  box-shadow:
    0 30px 80px
    rgba(0,0,0,.42);

  overflow: hidden;
}

.preview-device-top {

  height: 18px;

  display:
    flex;

  align-items: center;

  justify-content: center;

  gap: 5px;
}

.preview-device-top span {

  width: 4px;
  height: 4px;

  border-radius: 50%;

  background:
    rgba(255,255,255,.23);
}

#previewFrame {

  display: block;

  width: 100%;

  height:
    min(680px, 72vh);

  border: 0;

  border-radius: 19px;

  background: #08050a;
}

.preview-actions {

  width: 100%;

  display: grid;

  grid-template-columns:
    1fr 1.35fr;

  gap: 8px;

  margin-top: 12px;
}


/* =========================================================
   BUILDER FOOTER
========================================================= */

.builder-footer {

  position: fixed;

  left: 0;
  right: 0;
  bottom: 0;

  z-index: 400;

  width: 100%;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 18px;

  padding:
    11px 28px
    calc(11px + env(safe-area-inset-bottom));

  background:
    rgba(9,6,13,.88);

  border-top:
    1px solid
    rgba(255,255,255,.075);

  backdrop-filter:
    blur(24px);

  -webkit-backdrop-filter:
    blur(24px);
}

.builder-footer > :last-child {
  justify-self: end;
}

.builder-footer > :first-child {
  justify-self: start;
}

.footer-center {

  color: var(--muted);

  font-size: 8px;

  letter-spacing: .08em;

  text-align: center;
}

.builder-footer #previousButton,
.builder-footer #nextButton {

  min-width: 108px;

  min-height: 43px;
}


/* =========================================================
   EXIT MODAL
========================================================= */

.modal,
.success-screen {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: grid;

  place-items: center;

  padding: 18px;

  background:
    rgba(4,2,7,.86);

  backdrop-filter:
    blur(24px);

  -webkit-backdrop-filter:
    blur(24px);
}

.modal-backdrop {

  position: absolute;

  inset: 0;
}

.modal-card,
.success-card {

  position: relative;

  width:
    min(470px,100%);

  max-height:
    calc(100vh - 30px);

  overflow-y: auto;

  padding:
    29px 23px;

  border-radius:
    25px;

  background:
    linear-gradient(
      145deg,
      rgba(43,18,36,.97),
      rgba(15,7,14,.98)
    );

  border:
    1px solid
    rgba(255,255,255,.10);

  box-shadow:
    var(--shadow-deep);

  text-align: center;
}

.modal-card h2,
.success-card h2 {

  margin-top: 10px;

  color: var(--white);

  font-family: var(--display);

  font-size: 32px;

  font-weight: 400;

  line-height: 1;
}

.modal-card p,
.success-card > p {

  margin-top: 12px;

  color: var(--muted);

  font-size: 10px;

  line-height: 1.7;
}

.modal-actions {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;

  margin-top: 19px;
}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

.success-heart {

  color: var(--pink);

  font-size: 34px;

  filter:
    drop-shadow(
      0 0 18px
      rgba(255,75,145,.45)
    );
}

.generated-id-box {

  margin-top: 19px;

  padding: 13px;

  border-radius: 15px;

  background:
    rgba(255,95,159,.055);

  border:
    1px solid
    rgba(255,95,159,.12);
}

.generated-id-box small {

  display: block;

  color: var(--muted);

  font-size: 7px;

  letter-spacing: .16em;

  text-transform: uppercase;
}

.generated-id-box strong {

  display: block;

  margin-top: 5px;

  color: var(--pink-light);

  font-family: var(--display);

  font-size: 23px;

  font-weight: 400;

  letter-spacing: .08em;
}

.generated-url-box {

  width: 100%;

  display: flex;

  align-items: center;

  gap: 8px;

  margin-top: 9px;

  padding: 10px;

  border-radius: 12px;

  background:
    rgba(255,255,255,.03);

  border:
    1px solid
    rgba(255,255,255,.07);
}

.generated-url-box span {

  flex: 1;

  min-width: 0;

  overflow: hidden;

  color: var(--muted);

  font-size: 8px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.icon-copy-button {

  width: 32px;
  height: 32px;

  flex: 0 0 auto;

  border-radius: 50%;

  color: white;

  background:
    rgba(255,255,255,.06);
}

.qr-wrapper {

  width: fit-content;

  margin: 17px auto 0;

  padding: 14px;

  border-radius: 18px;

  background: #fff;
}

.qr-wrapper canvas {

  display: block;

  width: 190px !important;
  height: 190px !important;
}

.qr-wrapper span {

  display: block;

  margin-top: 6px;

  color: #5d5157;

  font-size: 7px;

  text-align: center;
}

.success-actions {

  display: grid;

  grid-template-columns:
    1.3fr 1fr;

  gap: 8px;

  margin-top: 15px;
}

.text-button {

  margin-top: 15px;

  color: var(--muted);

  background: transparent;

  font-size: 8px;
}


/* =========================================================
   TOAST
========================================================= */

.toast {

  position: fixed;

  left: 50%;

  bottom: 94px;

  z-index: 1200;

  width: max-content;

  max-width:
    calc(100vw - 30px);

  padding:
    10px 15px;

  border-radius: 999px;

  color: rgba(255,255,255,.92);

  background:
    rgba(21,11,19,.94);

  border:
    1px solid
    rgba(255,255,255,.10);

  box-shadow:
    0 15px 45px
    rgba(0,0,0,.35);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  font-size: 8px;

  white-space: nowrap;

  pointer-events: none;

  opacity: 0;

  transform:
    translate(-50%, 16px);

  transition:
    opacity .3s ease,
    transform .3s var(--ease);
}

.toast.show {

  opacity: 1;

  transform:
    translate(-50%,0);
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes stepIn {

  from {
    opacity: 0;

    transform:
      translateY(16px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

@keyframes spin {

  to {
    transform:
      rotate(360deg);
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .creator-progress {
    width:
      calc(100% - 24px);

    gap: 5px;
  }

  .progress-step {
    padding:
      9px 8px;
  }

  .progress-step strong {
    font-size: 7px;
  }

  .builder-shell {
    width:
      calc(100% - 24px);
  }

  .theme-grid {
    grid-template-columns:
      repeat(3, minmax(0,1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

  html,
  body {

    width: 100% !important;
    max-width: 100% !important;

    overflow-x: hidden !important;
  }


  /* APP */

  .creator-app {

    width: 100% !important;
    max-width: 100% !important;

    padding-bottom:
      104px !important;
  }


  /* TOPBAR */

  .creator-topbar {

    height: 62px;

    padding:
      0 14px;
  }

  .creator-brand {

    font-size: 16px;
  }

  .creator-topbar-center {

    display: none;
  }

  .ghost-button {

    min-height: 32px;

    padding:
      0 11px;

    font-size: 8px;
  }


  /* MOBILE PROGRESS */

  .creator-progress {

    display: none;
  }

  .mobile-progress {

    display: block;

    width: calc(100% - 28px);

    margin: 13px auto 0;
  }

  .mobile-progress-top {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 10px;

    color: var(--muted);

    font-size: 7px;

    letter-spacing: .03em;
  }

  .mobile-progress-track {

    width: 100%;
    height: 2px;

    margin-top: 7px;

    overflow: hidden;

    border-radius: 999px;

    background:
      rgba(255,255,255,.06);
  }

  .mobile-progress-track span {

    display: block;

    width: 12.5%;
    height: 100%;

    border-radius: inherit;

    background:
      linear-gradient(
        90deg,
        var(--pink),
        var(--pink-light)
      );

    transition:
      width .4s var(--ease);
  }


  /* BUILDER */

  .builder-shell {

    width:
      calc(100% - 18px) !important;

    max-width:
      100% !important;

    margin:
      0 auto !important;

    padding:
      0 !important;
  }

  .builder-column {

    width: 100% !important;
    max-width: 100% !important;

    min-width: 0 !important;
  }


  /* STEP */

  .creator-step {

    width:
      100% !important;

    max-width:
      100% !important;

    min-width: 0 !important;

    padding-bottom:
      15px !important;
  }


  /* HEADING */

  .step-heading {

    width:
      100%;

    max-width:
      100%;

    margin:
      28px auto 20px;

    padding:
      0 3px;

    text-align: center;
  }

  .step-heading h1 {

    font-size:
      clamp(38px,11.5vw,58px);

    line-height:
      .93;
  }

  .step-heading p {

    max-width:
      330px;

    margin-top:
      12px;

    font-size:
      10px;
  }


  /* FORM CARD */

  .form-card {

    width:
      100% !important;

    max-width:
      100% !important;

    min-width:
      0 !important;

    padding:
      17px !important;

    border-radius:
      20px;
  }


  /* ALL CHILDREN */

  .form-card *,
  .field,
  .toggle-row,
  .subsection-heading,
  .choice-grid,
  .theme-grid,
  .asset-grid,
  .song-list,
  .preview-card {

    max-width:
      100%;

    min-width:
      0;
  }


  /* CHOICES */

  .choice-grid,
  .choice-grid.four {

    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  /* THEME */

  .theme-grid {

    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  /* ASSETS */

  .cake-grid,
  .character-grid {

    grid-template-columns:
      repeat(2,minmax(0,1fr));
  }


  .asset-card img {

    height:
      125px;
  }

  .character-grid .asset-card img {

    height:
      120px;
  }


  /* MEMORY */

  .memory-item {

    grid-template-columns:
      54px minmax(0,1fr) 30px;

    gap:
      8px;

    padding:
      8px;
  }

  .memory-item img {

    width:
      54px;

    height:
      54px;
  }

  .memory-item-fields {

    grid-template-columns:
      minmax(0,1fr);
  }


  /* LETTER */

  .letter-mode-tabs {

    width:
      100%;

    display:
      grid;

    grid-template-columns:
      1fr 1fr;
  }

  .letter-mode {

    width:
      100%;
  }


  .ai-result-actions {

    grid-template-columns:
      1fr;
  }


  /* MUSIC */

  .song-item {

    grid-template-columns:
      30px minmax(0,1fr) 22px;

    padding:
      10px;
  }


  /* PREVIEW */

  .preview-card {

    padding:
      10px;

    border-radius:
      19px;
  }

  .preview-toolbar {

    align-items:
      flex-start;
  }

  .preview-toolbar strong {

    font-size:
      9px;
  }

  #previewFrame {

    height:
      600px;
  }

  .preview-actions {

    grid-template-columns:
      1fr;

    gap:
      7px;
  }


  /* =======================================================
     MOBILE FOOTER
  ====================================================== */

  .creator-app {

    padding-bottom:
      118px !important;
  }

  .builder-footer {

    position:
      fixed !important;

    left:
      7px !important;

    right:
      7px !important;

    bottom:
      calc(7px + env(safe-area-inset-bottom)) !important;

    width:
      auto !important;

    max-width:
      calc(100vw - 14px) !important;

    min-width:
      0 !important;

    height:
      auto !important;

    display:
      grid !important;

    grid-template-columns:
      minmax(0,1fr)
      minmax(0,1fr) !important;

    grid-template-rows:
      17px 42px !important;

    grid-template-areas:
      "status status"
      "back next" !important;

    gap:
      7px !important;

    margin:
      0 !important;

    padding:
      8px !important;

    border-radius:
      18px !important;

    overflow:
      hidden !important;

    background:
      rgba(19,11,21,.95) !important;

    border:
      1px solid
      rgba(255,255,255,.105) !important;

    box-shadow:
      0 20px 65px
      rgba(0,0,0,.52) !important;

    backdrop-filter:
      blur(23px) !important;

    -webkit-backdrop-filter:
      blur(23px) !important;
  }

  .builder-footer .footer-center {

    grid-area:
      status !important;

    width:
      100% !important;

    height:
      17px !important;

    min-width:
      0 !important;

    display:
      flex !important;

    align-items:
      center !important;

    justify-content:
      center !important;

    overflow:
      hidden !important;

    color:
      rgba(255,255,255,.48) !important;

    font-size:
      7px !important;

    white-space:
      nowrap !important;

    text-align:
      center !important;
  }

  .builder-footer #previousButton,
  .builder-footer #nextButton {

    width:
      100% !important;

    max-width:
      100% !important;

    min-width:
      0 !important;

    height:
      42px !important;

    min-height:
      42px !important;

    margin:
      0 !important;

    padding:
      0 10px !important;

    border-radius:
      12px !important;

    box-sizing:
      border-box !important;

    overflow:
      hidden !important;

    font-size:
      8px !important;

    white-space:
      nowrap !important;
  }

  .builder-footer #previousButton {

    grid-area:
      back !important;

    color:
      rgba(255,255,255,.76) !important;

    background:
      rgba(255,255,255,.045) !important;

    border:
      1px solid
      rgba(255,255,255,.09) !important;

    box-shadow:
      none !important;
  }

  .builder-footer #nextButton {

    grid-area:
      next !important;

    color:
      white !important;

    background:
      linear-gradient(
        135deg,
        #ff81b1,
        #ff5c97,
        #df3976
      ) !important;

    border:
      1px solid
      rgba(255,255,255,.07) !important;

    box-shadow:
      0 10px 27px
      rgba(255,70,135,.22) !important;
  }


  /* TOAST */

  .toast {

    bottom:
      137px;

    max-width:
      calc(100vw - 24px);

    font-size:
      7px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

  .creator-topbar {

    padding:
      0 12px;
  }

  .creator-brand {

    font-size:
      15px;
  }

  .builder-shell {

    width:
      calc(100% - 14px) !important;
  }

  .form-card {

    padding:
      14px !important;

    border-radius:
      18px;
  }

  .step-heading h1 {

    font-size:
      37px;
  }

  .step-heading p {

    font-size:
      9px;
  }

  .choice-card {

    min-height:
      65px;
  }

  .choice-card strong {

    font-size:
      14px;
  }

  .choice-card span {

    font-size:
      7px;
  }

  .asset-card img {

    height:
      110px;
  }

  .character-grid .asset-card img {

    height:
      106px;
  }

  .builder-footer {

    left:
      5px !important;

    right:
      5px !important;

    max-width:
      calc(100vw - 10px) !important;

    padding:
      7px !important;
  }

  .builder-footer #previousButton,
  .builder-footer #nextButton {

    height:
      40px !important;

    min-height:
      40px !important;
  }

  #previewFrame {

    height:
      560px;
  }

}


/* =========================================================
   SHORT SCREEN MOBILE
========================================================= */

@media (max-width: 700px) and (max-height: 700px) {

  .step-heading {

    margin-top:
      22px;

    margin-bottom:
      16px;
  }

  .step-heading h1 {

    font-size:
      36px;
  }

  .form-card {

    padding:
      15px !important;
  }

  .upload-zone {

    min-height:
      135px;
  }

  .asset-card img {

    height:
      95px;
  }

  .character-grid .asset-card img {

    height:
      98px;
  }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {

    animation:
      none !important;

    transition:
      none !important;

    scroll-behavior:
      auto !important;
  }

}

/* =========================================================
   DILLINK — FINAL LETTER MODE FIX
   .letter-mode-tabs = container
   .letter-mode      = actual buttons
========================================================= */

[data-step-content="4"] .letter-mode-tabs {
  width: 100% !important;
  max-width: 620px !important;
  min-width: 0 !important;

  height: 46px !important;

  margin: 0 auto 14px !important;
  padding: 3px !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 3px !important;

  box-sizing: border-box !important;

  background: rgba(255, 255, 255, 0.035) !important;

  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;

  overflow: hidden !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 24px rgba(0, 0, 0, 0.14) !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;

  margin: 0 !important;
  padding: 0 10px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: none !important;

  box-sizing: border-box !important;

  border: 0 !important;
  border-radius: 12px !important;

  background: transparent !important;

  color: rgba(255, 255, 255, 0.62) !important;

  font-family: inherit !important;
  font-size: 9px !important;
  font-weight: 700 !important;

  line-height: 1 !important;
  text-align: center !important;

  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  hyphens: none !important;

  cursor: pointer !important;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.045) !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode.active {
  color: #ffffff !important;

  background:
    linear-gradient(
      135deg,
      #ff6aa3 0%,
      #ff4f91 100%
    ) !important;

  box-shadow:
    0 5px 16px rgba(255, 70, 140, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode[data-mode="ai"] {
  color: rgba(255, 215, 135, 0.85) !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode[data-mode="ai"].active {
  color: #ffffff !important;
}

[data-step-content="4"] .letter-mode-tabs .letter-mode:focus-visible {
  outline: none !important;

  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(255, 95, 159, 0.22) !important;
}

@media (max-width: 700px) {
  [data-step-content="4"] .letter-mode-tabs {
    width: 100% !important;
    max-width: 100% !important;

    height: 44px !important;

    margin-bottom: 10px !important;
    padding: 3px !important;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 3px !important;

    border-radius: 15px !important;
  }

  [data-step-content="4"] .letter-mode-tabs .letter-mode {
    width: 100% !important;

    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;

    padding: 0 6px !important;

    border-radius: 11px !important;

    font-size: 8px !important;
  }
}

/* =========================================================
   DILLINK — FINAL WISH EDITOR FIX
   The HTML uses:
   .wish-editor
     ├── span
     └── input[data-wish-index]
   These inputs are NOT inside .field, so the generic
   .field input styling does not apply to them.
========================================================= */

[data-step-content="4"] .wish-editor-list {
  width: 100% !important;

  display: grid !important;
  gap: 8px !important;

  margin-top: 10px !important;
}

[data-step-content="4"] .wish-editor {
  width: 100% !important;
  min-width: 0 !important;

  display: grid !important;
  grid-template-columns: 26px minmax(0, 1fr) !important;

  align-items: center !important;

  gap: 8px !important;

  box-sizing: border-box !important;
}

[data-step-content="4"] .wish-editor > span {
  width: 26px !important;

  display: block !important;

  color: var(--text) !important;

  font-size: 10px !important;
  font-weight: 700 !important;

  line-height: 1 !important;

  text-align: left !important;
}

[data-step-content="4"] .wish-editor > input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;

  height: 40px !important;
  min-height: 40px !important;

  margin: 0 !important;
  padding: 0 12px !important;

  box-sizing: border-box !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  color: var(--text) !important;

  background:
    rgba(255,255,255,.035) !important;

  border:
    1px solid rgba(255,255,255,.085) !important;

  border-radius: 12px !important;

  outline: none !important;

  box-shadow: none !important;

  font-family: var(--sans) !important;
  font-size: 9px !important;
  font-weight: 600 !important;

  line-height: 40px !important;

  white-space: nowrap !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;

  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease !important;
}

[data-step-content="4"] .wish-editor > input::placeholder {
  color: rgba(255,255,255,.27) !important;
  opacity: 1 !important;
}

[data-step-content="4"] .wish-editor > input:hover {
  background:
    rgba(255,255,255,.045) !important;

  border-color:
    rgba(255,255,255,.12) !important;
}

[data-step-content="4"] .wish-editor > input:focus {
  color: #fff !important;

  background:
    rgba(255,95,159,.035) !important;

  border-color:
    rgba(255,95,159,.42) !important;

  box-shadow:
    0 0 0 4px rgba(255,95,159,.055) !important;
}

@media (max-width: 700px) {
  [data-step-content="4"] .wish-editor-list {
    gap: 7px !important;
  }

  [data-step-content="4"] .wish-editor {
    grid-template-columns: 22px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  [data-step-content="4"] .wish-editor > span {
    width: 22px !important;
    font-size: 9px !important;
  }

  [data-step-content="4"] .wish-editor > input {
    height: 38px !important;
    min-height: 38px !important;

    padding: 0 10px !important;

    border-radius: 11px !important;

    font-size: 8px !important;
    line-height: 38px !important;
  }
}

/* =========================================================
   DILLINK CREATOR — BRAND LOGO
========================================================= */

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 92px;
  height: 32px;

  text-decoration: none;

  flex-shrink: 0;

  cursor: pointer;
}

.brand-logo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: left center;

  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 700px) {
  .brand-logo {
    width: 82px;
    height: 29px;
  }
}

/* =========================================================
   FIXED CREATOR NAVBAR
========================================================= */

.creator-app {
  padding-top: 70px;
}

.creator-topbar {
  position: fixed !important;

  top: 0;
  left: 0;
  right: 0;

  z-index: 9999;

  width: 100%;
}

/* Keep the content below the fixed navbar */

@media (max-width: 700px) {

  .creator-app {
    padding-top: 62px !important;
  }

  .creator-topbar {
    position: fixed !important;

    top: 0;
    left: 0;
    right: 0;

    height: 62px !important;

    z-index: 9999;
  }
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: rgba(255,255,255,.92);

  font-family: var(--display);
  font-size: 18px;

  white-space: nowrap;
}

.brand-logo img {
  width: 24px;
  height: 24px;

  object-fit: contain;
  border-radius: 7px;
}

.brand-logo span {
  color: rgba(255,255,255,.92);
}

/* =========================================================
   CHOICE BUTTON INTERACTION FIX
========================================================= */

#relationshipOptions,
#vibeOptions {
  position: relative;
  z-index: 20;
}

#relationshipOptions .choice-card,
#vibeOptions .choice-card {
  position: relative;

  z-index: 21;

  pointer-events: auto !important;

  user-select: none;

  touch-action: manipulation;
}

#relationshipOptions .choice-card *,
#vibeOptions .choice-card * {
  pointer-events: none;
}

/* =========================================================
   RELATIONSHIP / VIBE FINAL INTERACTION FIX
========================================================= */

#relationshipOptions,
#vibeOptions {
  position: relative !important;
  z-index: 100 !important;
}

#relationshipOptions .choice-card,
#vibeOptions .choice-card {
  position: relative !important;

  z-index: 101 !important;

  display: flex !important;

  pointer-events: auto !important;

  cursor: pointer !important;

  touch-action: manipulation !important;
}

#relationshipOptions .choice-card strong,
#relationshipOptions .choice-card span,
#vibeOptions .choice-card strong,
#vibeOptions .choice-card span {
  pointer-events: none !important;
}

#relationshipOptions .choice-card.selected,
#vibeOptions .choice-card.selected {
  color: white !important;

  background:
    rgba(255,95,159,.14) !important;

  border-color:
    rgba(255,95,159,.60) !important;

  box-shadow:
    0 0 0 1px
    rgba(255,95,159,.12),
    0 12px 30px
    rgba(255,70,140,.12) !important;
}

/* =========================================================
   FINAL BUTTON CLICK LAYER FIX
========================================================= */

#exitCreatorButton,
#previousButton,
#nextButton,
#createBirthdayButton,
#stayButton,
#leaveButton {
  position: relative !important;
  z-index: 99999 !important;

  pointer-events: auto !important;

  cursor: pointer !important;

  touch-action: manipulation !important;
}

.creator-topbar {
  z-index: 9999 !important;
}

.builder-footer {
  z-index: 9999 !important;
}