  :root {
    --bg-top: #f7f8fa;
    --bg-bottom: #e9ecf1;
    --red: #e0312e;
    --red-dark: #a81f1d;
    --red-darker: #7c1513;
    --green: #2eb85c;
    --green-dark: #1f8a43;
    --text: #2b2f36;
    --text-muted: #8a919c;
    --card-border: rgba(0, 0, 0, 0.08);
  }

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

  html { min-height: 100%; }

  body {
    font-family: "Allerta Stencil", "Segoe UI", system-ui, sans-serif;
    background: radial-gradient(ellipse at 50% 0%, var(--bg-top), var(--bg-bottom));
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 3rem 1.5rem 4rem;
    -webkit-user-select: none;
    user-select: none;
  }

  .panel {
    text-align: center;
    width: 100%;
    max-width: 720px;
  }

  h1 {
    font-family: "Michroma", sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.5rem;
  }

  .subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }

  /* ---- 3D assembly: red top disc integrated into the black housing ---- */
  .button-stage {
    position: relative;
    width: 290px;
    height: 250px;
    margin: 0 auto;
  }

  .pedestal {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 72px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(180deg, #454549, #232326 60%, #2c2c30);
    box-shadow:
      0 4px 0 #1b1b1e,
      0 7px 0 #c9c2b4,
      0 9px 0 #a8a193,
      0 16px 0 #202023,
      0 22px 0 #161619,
      0 41px 24px -10px rgba(30, 35, 45, 0.5);
  }

  .hold-button {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 52px;
    height: 130px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    background:
      linear-gradient(118deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.15) 32%, rgba(255,255,255,0.02) 32.5%),
      radial-gradient(ellipse at 50% 32%, #f8473f, var(--red) 60%, #c42522 100%);
    box-shadow:
      0 5px 0 #c22825,
      0 9px 0 var(--red-dark),
      0 13px 0 #8e1a17,
      0 16px 0 var(--red-darker),
      inset 0 3px 6px rgba(255,255,255,0.45),
      inset 0 -4px 8px rgba(0,0,0,0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.4s ease;
    transform: translateY(0);
    touch-action: none;
  }

  .hold-button:hover:not(.pressed):not(.confirmed) {
    filter: brightness(1.05);
  }

  .hold-button.pressed {
    transform: translateY(13px);
    background:
      linear-gradient(118deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.08) 32%, rgba(0,0,0,0.02) 32.5%),
      radial-gradient(ellipse at 50% 40%, #d63c33, var(--red-dark) 65%, var(--red-darker) 100%);
    box-shadow:
      0 3px 0 var(--red-darker),
      inset 0 5px 12px rgba(0,0,0,0.4),
      inset 0 -2px 4px rgba(0,0,0,0.2);
  }

  .hold-button.confirmed {
    cursor: default;
    background:
      linear-gradient(118deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.15) 32%, rgba(255,255,255,0.02) 32.5%),
      radial-gradient(ellipse at 50% 32%, #47d379, var(--green) 60%, #23994c 100%);
    box-shadow:
      0 5px 0 #29a350,
      0 9px 0 var(--green-dark),
      0 13px 0 #187137,
      0 16px 0 #135c2c,
      inset 0 3px 6px rgba(255,255,255,0.45),
      inset 0 -4px 8px rgba(0,0,0,0.25);
  }

  .button-label {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(60, 8, 6, 0.55);
    text-shadow:
      0 2px 1px rgba(255, 255, 255, 0.30),
      0 -1px 1px rgba(0, 0, 0, 0.45);
    transform: scaleY(0.55);
    pointer-events: none;
  }

  .button-timer {
    display: block;
    font-size: 3.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: rgba(60, 8, 6, 0.55);
    text-shadow:
      0 2px 1px rgba(255, 255, 255, 0.30),
      0 -1px 1px rgba(0, 0, 0, 0.45);
    transform: scaleY(0.55);
    pointer-events: none;
  }

  .button-check {
    display: block;
    font-size: 2.8rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    pointer-events: none;
  }

  .ring {
    position: absolute;
    top: 7px;
    left: 12px;
    right: 12px;
    bottom: 7px;
    width: calc(100% - 24px);
    height: calc(100% - 14px);
    pointer-events: none;
  }

  .ring circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
  }

  .ring .track { stroke: rgba(0,0,0,0.15); }
  .ring .progress {
    stroke: #fff;
    transition: stroke 0.4s ease;
  }
  .ring .progress.done { stroke: #d8ffe6; }

  .status {
    margin-top: 1.5rem;
    font-size: 1.05rem;
    min-height: 1.6rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
  }

  .status.confirmed-text {
    color: var(--green-dark);
    font-weight: 600;
  }

  /* ---- Configuration (revealed after the demo press) ---- */
  .config {
    margin-top: 2.5rem;
    text-align: left;
    animation: rise 0.5s ease-out;
  }

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

  .card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px -18px rgba(30, 35, 45, 0.35);
    padding: 1.8rem 2rem 2rem;
    margin-bottom: 1.5rem;
  }

  .card-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 1.05rem;
    margin-right: 0.75rem;
    flex: none;
  }

  .card-title {
    display: flex;
    align-items: center;
    font-family: "Michroma", sans-serif;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
  }

  .card-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1.4rem 0;
  }

  label.field-label {
    display: block;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
    color: var(--text);
  }

  input[type="email"],
  input[type="text"],
  input[type="tel"],
  textarea {
    width: 100%;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 1.1rem;
    padding: 14px 18px;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    background: #fbfcfd;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    -webkit-user-select: text;
    user-select: text;
  }

  input:focus, textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(224, 49, 46, 0.12);
    background: #fff;
  }

  input.ng-invalid.ng-touched, textarea.ng-invalid.ng-touched {
    border-color: var(--red-dark);
  }

  textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
  }

  .field { margin-bottom: 1.3rem; }
  .field:last-child { margin-bottom: 0; }

  .field-hint {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  /* Segmented option pills (radio behaviour, big & clickable) */
  .option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .option-pill {
    flex: 1 1 140px;
    border: 2px solid var(--card-border);
    border-radius: 14px;
    background: #fbfcfd;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 1.05rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    position: relative;
  }

  .option-pill:hover { border-color: rgba(224, 49, 46, 0.5); }

  .option-pill:focus-visible {
    box-shadow: 0 0 0 4px rgba(224, 49, 46, 0.15);
  }

  .option-pill.selected {
    border-color: var(--red);
    background: #fdeceb;
    box-shadow: 0 0 0 4px rgba(224, 49, 46, 0.10);
  }

  .option-pill.selected::after {
    content: "\2713";
    position: absolute;
    top: -10px;
    right: -6px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 0.85rem;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
  }

  .option-pill .pill-sub {
    display: block;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 4px;
  }

  .option-pill.selected .pill-sub { color: var(--red-dark); }

  /* Phone input with fixed Brazil prefix */
  .phone-wrap { display: flex; }

  .phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 2px solid var(--card-border);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: #eef0f3;
    font-size: 1.1rem;
    color: var(--text-muted);
    white-space: nowrap;
  }

  .phone-wrap input { border-radius: 0 12px 12px 0; }

  /* Cellphone verification (WhatsApp code) */
  .verify-area {
    margin-top: 1rem;
    animation: rise 0.3s ease-out;
  }

  .verify-btn {
    font-family: inherit;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    color: var(--red-dark);
    background: #fff;
    border: 2px solid var(--red);
    border-radius: 12px;
    padding: 11px 22px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, filter 0.15s ease;
  }

  .verify-btn:hover:not(:disabled) { background: #fdeceb; }

  .verify-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
  }

  .verify-btn.confirm {
    color: #fff;
    background: linear-gradient(180deg, #f04340, var(--red) 55%, #c42522);
    border-color: transparent;
  }

  .verify-btn.confirm:hover:not(:disabled) {
    background: linear-gradient(180deg, #f04340, var(--red) 55%, #c42522);
    filter: brightness(1.06);
  }

  .code-row {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    animation: rise 0.3s ease-out;
  }

  .code-input {
    width: 170px;
    text-align: center;
    font-size: 1.4rem !important;
    letter-spacing: 0.35em;
    font-variant-numeric: tabular-nums;
  }

  .verify-msg {
    margin-top: 0.8rem;
    font-size: 0.92rem;
    color: var(--text-muted);
  }

  .verify-ok {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--green-dark);
  }

  /* Sub-field that slides under a choice (e.g. email under registration) */
  .sub-field {
    margin-top: 1.2rem;
    animation: rise 0.3s ease-out;
  }

  /* ---- File upload (dropzone + selected file chip) ---- */
  .title-optional {
    font-family: "Allerta Stencil", sans-serif;
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    margin-left: 0.5rem;
  }

  .dropzone {
    border: 2px dashed rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    background: #fbfcfd;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .dropzone:hover, .dropzone.dragging {
    border-color: var(--red);
    background: #fdf6f6;
    box-shadow: 0 0 0 4px rgba(224, 49, 46, 0.08);
  }

  .drop-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .drop-text { font-size: 1.05rem; color: var(--text); }
  .drop-link { color: var(--red); text-decoration: underline; }

  .drop-sub {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  .file-chip {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid var(--card-border);
    border-radius: 14px;
    background: #fbfcfd;
    padding: 14px 18px;
    animation: rise 0.3s ease-out;
  }

  .file-icon { font-size: 1.8rem; flex: none; }

  .file-meta {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .file-meta strong {
    display: block;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .file-size {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
  }

  .file-remove {
    flex: none;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .file-remove:hover {
    background: #fdeceb;
    color: var(--red-dark);
  }

  .file-error {
    margin-top: 0.8rem;
    font-size: 0.92rem;
    color: var(--red-dark);
    font-weight: 600;
  }

  /* ---- Floating basket (follows the scroll, right side) ---- */
  .basket {
    position: fixed;
    right: 24px;
    top: 130px;
    width: 240px;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px -18px rgba(30, 35, 45, 0.45);
    padding: 1.1rem 1.3rem 1.2rem;
    text-align: left;
    z-index: 20;
    animation: rise 0.35s ease-out;
  }

  .basket-title {
    font-family: "Michroma", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.7rem;
  }

  .basket-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 0.92rem;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  }

  .basket-item:last-of-type { border-bottom: none; }

  .basket-item .item-name { color: var(--text); }
  .basket-item .item-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
  }
  .basket-item .item-price {
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .basket-total {
    display: flex;
    justify-content: space-between;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 700;
    font-size: 1rem;
  }

  /* On narrow screens, dock the basket to the bottom-right corner instead */
  @media (max-width: 1240px) {
    .basket {
      top: auto;
      right: 14px;
      bottom: 14px;
      width: 220px;
      box-shadow: 0 8px 28px -10px rgba(30, 35, 45, 0.55);
    }
  }

  /* ---- Save row ---- */
  .save-row {
    text-align: center;
    margin-top: 2rem;
  }

  .save-button {
    font-family: inherit;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #f04340, var(--red) 55%, #c42522);
    border: none;
    border-radius: 14px;
    padding: 18px 56px;
    cursor: pointer;
    box-shadow:
      0 4px 0 var(--red-dark),
      0 10px 20px -8px rgba(224, 49, 46, 0.5);
    transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.15s ease;
  }

  .save-button:hover:not(:disabled) { filter: brightness(1.06); }

  .save-button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
      0 1px 0 var(--red-dark),
      0 6px 12px -6px rgba(224, 49, 46, 0.5);
  }

  .save-button:disabled {
    filter: grayscale(0.55) brightness(1.05);
    cursor: not-allowed;
  }

  .missing-box {
    display: block;
    text-align: left;
    background: #fff;
    border: 1px solid var(--card-border);
    border-left: 4px solid var(--red);
    border-radius: 18px;
    box-shadow: 0 10px 30px -18px rgba(30, 35, 45, 0.35);
    padding: 1.8rem 2rem 2rem;
    margin-bottom: 1.5rem;
  }

  .missing-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.7rem;
  }

  .missing-list {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-muted);
  }

  .missing-list li { padding: 4px 0; }

  .missing-list li::before {
    content: "\25CB";
    color: var(--red);
    margin-right: 8px;
  }

  .save-note {
    margin-top: 0.9rem;
    font-size: 0.9rem;
    color: var(--text-muted);
  }

  .save-note.saved {
    color: var(--green-dark);
    font-weight: 600;
  }

  .save-note.error {
    color: var(--red-dark);
    font-weight: 600;
  }

  @keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.12); }
    100% { transform: scale(1); opacity: 1; }
  }
  .pop { animation: pop 0.35s ease-out; }
