/* auth.css — sign-up / auth modal */

/* ── OVERLAY ── */
.auth-overlay {
  display: none; position: fixed; inset: 0; z-index: 1010;
  background: rgba(0,0,0,.78); backdrop-filter: blur(14px);
  align-items: flex-end; justify-content: center;
}
.auth-overlay.open { display: flex; }
@media (min-width: 520px) { .auth-overlay { align-items: center; } }

/* Sheet */
.auth-sheet {
  position: relative; width: 100%; max-width: 420px;
  background: #0e0e12; border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px 22px 0 0; padding: 22px 20px 44px;
  animation: auth-up .3s cubic-bezier(.32,.72,0,1) both;
  max-height: 92vh; overflow-y: auto; isolation: isolate;
  box-shadow: 0 -2px 0 rgba(200,181,209,.12), 0 28px 80px rgba(0,0,0,.7);
}
@media (min-width: 520px) { .auth-sheet { border-radius: 22px; } }
@keyframes auth-up { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.auth-handle { width: 32px; height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; margin: 0 auto 20px; }
.auth-close-btn {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px; background: rgba(255,255,255,.06);
  border: none; border-radius: 50%; color: rgba(255,255,255,.35);
  font-size: 17px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.auth-close-btn:hover { background: rgba(255,255,255,.11); color: rgba(255,255,255,.75); }

/* Progress dots — equal width, height signals active step */
.auth-progress { display: flex; gap: 4px; margin: 0 0 22px; align-items: center; }
.auth-dot { height: 2px; border-radius: 2px; background: rgba(255,255,255,.1); flex: 1; transition: all .35s ease; }
.auth-dot.done { background: rgba(200,181,209,.35); }
.auth-dot.active { background: #c8b5d1; height: 3px; }

/* Step animation */
.auth-step { animation: step-in .42s cubic-bezier(.22,1,.36,1); }
@keyframes step-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Shared form elements */
.auth-serif-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1.1; margin-bottom: 8px; }
.auth-serif-title em { font-style: italic; color: #c8b5d1; }
.auth-sub { font-size: 13px; color: rgba(255,255,255,.4); margin-bottom: 20px; line-height: 1.6; }
.auth-input {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.05); border: 1.5px solid rgba(255,255,255,.09);
  border-radius: 10px; font-size: 16px; color: #fff;
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color .15s, background .15s; -webkit-appearance: none;
}
.auth-input:focus { border-color: rgba(200,181,209,.45); background: rgba(200,181,209,.04); }
.auth-input::placeholder { color: rgba(255,255,255,.22); }
.auth-label { font-size: 11px; color: rgba(255,255,255,.45); font-weight: 600; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.auth-field { margin-bottom: 12px; }
.auth-btn {
  width: 100%; margin-top: 4px; padding: 15px;
  background: #c8b5d1; color: #0b0b10; border: none; border-radius: 10px;
  font-size: 15px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: opacity .15s, transform .1s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(200,181,209,.22);
}
.auth-btn:hover { opacity: .9; transform: translateY(-1px); }
.auth-ghost {
  display: block; width: 100%; margin-top: 10px; padding: 8px;
  background: none; border: none; color: rgba(255,255,255,.3);
  font-size: 13px; font-family: 'DM Sans', sans-serif;
  cursor: pointer; text-align: center; transition: color .15s;
}
.auth-ghost:hover { color: rgba(255,255,255,.6); }
.auth-err { font-size: 12px; color: #ef8d82; margin-top: 6px; }
.auth-hint {
  background: rgba(200,181,209,.08); border: 1px solid rgba(200,181,209,.2);
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.55);
}
.auth-hint strong { color: #c8b5d1; font-weight: 600; }

/* OTP */
.auth-otp-row { display: flex; gap: 8px; justify-content: center; margin: 16px 0; }
.auth-otp-box {
  width: 44px; height: 56px; text-align: center; font-size: 22px; font-weight: 700;
  font-family: monospace; background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.09); border-radius: 10px; color: #fff;
  outline: none; caret-color: #c8b5d1;
  transition: border-color .15s, background .15s; -webkit-appearance: none;
}
.auth-otp-box:focus { border-color: rgba(200,181,209,.55); background: rgba(200,181,209,.05); }
.auth-email-pill {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: rgba(230,126,95,.12); border: 1px solid rgba(230,126,95,.25);
  color: #e67e5f; font-family: monospace; font-size: 12px; word-break: break-all;
}
.demo-skip-btn {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12);
  border-radius: 8px; color: rgba(255,255,255,.3); font-size: 11px;
  font-family: 'DM Sans', sans-serif; cursor: pointer; text-align: center;
  transition: all .2s; letter-spacing: .3px;
}
.demo-skip-btn:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.5); border-color: rgba(255,255,255,.2); }

/* Convenio step */
.convenio-hero { text-align: center; margin-bottom: 20px; }
.convenio-badge-big { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.convenio-institution { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: #fff; margin-bottom: 4px; }
.convenio-check { font-size: 36px; margin-bottom: 10px; }
.convenio-tagline { font-size: 13px; color: rgba(255,255,255,.45); line-height: 1.55; }
.discounts-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.discount-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; }
.discount-icon { font-size: 18px; flex-shrink: 0; }
.discount-body { flex: 1; }
.discount-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.discount-desc { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.35; }
.discount-pill { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; flex-shrink: 0; font-family: monospace; }
.discount-pill.green { background: rgba(177,254,188,.12); color: #b1febc; border: 1px solid rgba(177,254,188,.25); }
.discount-pill.violet { background: rgba(200,181,209,.12); color: #c8b5d1; border: 1px solid rgba(200,181,209,.25); }
.discount-pill.lime { background: rgba(238,255,204,.12); color: #c8cf70; border: 1px solid rgba(238,255,204,.25); }
.share-row { background: rgba(200,181,209,.07); border: 1px solid rgba(200,181,209,.18); border-radius: 12px; padding: 13px 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; }
.share-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.share-text { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.55; }
.share-text strong { color: #c8b5d1; }

/* Frequency cards */
.freq-cards { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 14px; }
.freq-card { padding: 12px 14px; background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.07); border-radius: 14px; cursor: pointer; display: flex; align-items: center; gap: 12px; transition: all .22s ease; }
.freq-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.freq-card.on { border-color: rgba(200,181,209,.55); background: rgba(200,181,209,.08); box-shadow: 0 0 0 1px rgba(200,181,209,.25), 0 4px 16px rgba(200,181,209,.1); }
.freq-icon { font-size: 15px; width: 26px; text-align: center; flex-shrink: 0; opacity: .8; }
.freq-body { flex: 1; min-width: 0; }
.freq-name { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 1px; }
.freq-when { font-size: 10px; color: rgba(200,181,209,.8); font-family: monospace; letter-spacing: .4px; margin-bottom: 2px; }
.freq-desc { font-size: 11px; color: rgba(255,255,255,.3); line-height: 1.35; }
.freq-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.freq-card.on .freq-radio { background: #c8b5d1; border-color: #c8b5d1; }
.freq-card.on .freq-radio::after { content: ''; width: 4px; height: 7px; border-right: 2px solid #0f0f14; border-bottom: 2px solid #0f0f14; transform: rotate(45deg) translate(-1px,-1px); }

/* Email preview chrome */
.auth-preview-wrap { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); margin-bottom: 14px; }
.auth-preview-chrome { background: rgba(255,255,255,.04); padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 8px; }
.chrome-dots { display: flex; gap: 4px; }
.chrome-dot { width: 7px; height: 7px; border-radius: 50%; }
.chrome-info { flex: 1; min-width: 0; }
.chrome-from { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.4); }
.chrome-subj { font-size: 10px; color: rgba(255,255,255,.22); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.auth-preview-scroll { max-height: 240px; overflow-y: auto; background: #0d0d14; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.07) transparent; }

/* Email preview content */
.ep-wrap { background: #0d0d14; }
.ep-wrap.anim { animation: epIn .3s ease; }
@keyframes epIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.ep-head { background: #080810; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; align-items: center; }
.ep-brand { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-weight: 400; color: #e67e5f; }
.ep-edition { font-size: 9px; color: rgba(255,255,255,.25); font-family: monospace; text-transform: uppercase; letter-spacing: .5px; }
.ep-body { padding: 14px 18px; }
.ep-greet { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: #ededf2; margin-bottom: 5px; line-height: 1.2; }
.ep-greet em { font-style: italic; color: #c8b5d1; }
.ep-convenio-banner { background: linear-gradient(135deg,rgba(200,181,209,.15),rgba(230,126,95,.1)); border: 1px solid rgba(200,181,209,.25); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 11px; color: #c8b5d1; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ep-tag { font-size: 9px; color: rgba(255,255,255,.25); font-family: monospace; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ep-item { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.ep-img { width: 48px; height: 48px; border-radius: 6px; flex-shrink: 0; background: repeating-linear-gradient(45deg,rgba(255,255,255,.04),rgba(255,255,255,.04) 2px,transparent 2px,transparent 7px); border: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; justify-content: center; font-size: 7px; font-family: monospace; color: rgba(255,255,255,.2); text-align: center; padding: 3px; white-space: pre; }
.ep-item-name { font-size: 12px; font-weight: 600; color: #ededf2; margin-bottom: 2px; }
.ep-item-desc { font-size: 10px; color: rgba(255,255,255,.32); line-height: 1.35; margin-bottom: 3px; }
.ep-item-price { font-family: monospace; font-size: 11px; color: #b1febc; font-weight: 700; }
.ep-strike { font-family: monospace; font-size: 10px; color: rgba(255,255,255,.25); text-decoration: line-through; margin-right: 4px; }
.ep-tags { display: flex; gap: 4px; flex-wrap: wrap; margin: 3px 0; }
.ep-t { padding: 1px 6px; border-radius: 999px; font-size: 8px; font-family: monospace; }
.ep-t.v  { background: rgba(177,254,188,.1); color: #b1febc; border: 1px solid rgba(177,254,188,.18); }
.ep-t.lc { background: rgba(238,255,204,.1); color: #eeffcc; border: 1px solid rgba(238,255,204,.18); }
.ep-t.n  { background: rgba(200,181,209,.1); color: #c8b5d1; border: 1px solid rgba(200,181,209,.18); }
.ep-t.cv { background: rgba(61,95,111,.2); color: #8dc6da; border: 1px solid rgba(61,95,111,.3); }
.ep-hr { height: 1px; background: rgba(255,255,255,.05); margin: 10px 0; }
.ep-event { background: rgba(61,95,111,.22); border: 1px solid rgba(61,95,111,.4); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.ep-event-title { font-size: 11px; font-weight: 600; color: #eeffcc; margin-bottom: 1px; }
.ep-event-detail { font-size: 10px; color: rgba(255,255,255,.32); }
.ep-cta { display: block; text-align: center; padding: 9px 16px; background: #c8b5d1; color: #0f0f14; border-radius: 7px; font-size: 11px; font-weight: 700; margin: 12px 0 0; }
.ep-footer { background: #080810; padding: 10px 18px; text-align: center; font-size: 9px; color: rgba(255,255,255,.2); font-family: monospace; border-top: 1px solid rgba(255,255,255,.05); }

/* Done / panel */
.done-ring { width: 52px; height: 52px; border-radius: 50%; background: rgba(200,181,209,.1); border: 1px solid rgba(200,181,209,.22); display: flex; align-items: center; justify-content: center; font-size: 20px; color: #c8b5d1; margin: 0 auto 20px; }
.summary-block { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 3px 0; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; font-size: 13px; }
.summary-row + .summary-row { border-top: 1px solid rgba(255,255,255,.05); }
.summary-k { color: rgba(255,255,255,.35); font-size: 11px; }
.summary-v { color: #fff; font-weight: 500; }
.summary-v.accent { color: #c8b5d1; }
.auth-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.05); gap: 12px; }
.auth-toggle-label { font-size: 13px; color: rgba(255,255,255,.8); }
.auth-toggle-hint { font-size: 11px; color: rgba(255,255,255,.28); margin-top: 2px; }
.auth-switch { position: relative; display: inline-block; width: 38px; height: 21px; flex-shrink: 0; }
.auth-switch input { opacity: 0; width: 0; height: 0; }
.auth-track { position: absolute; inset: 0; background: rgba(255,255,255,.09); border-radius: 21px; border: 1.5px solid rgba(255,255,255,.09); cursor: pointer; transition: background .2s, border-color .2s; }
.auth-track::after { content: ''; position: absolute; width: 13px; height: 13px; background: rgba(255,255,255,.35); border-radius: 50%; top: 2px; left: 2px; transition: transform .2s, background .2s; }
.auth-switch input:checked + .auth-track { background: rgba(200,181,209,.18); border-color: rgba(200,181,209,.35); }
.auth-switch input:checked + .auth-track::after { transform: translateX(17px); background: #c8b5d1; }
.auth-section-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); margin: 16px 0 8px; }
.auth-chips-row { display: flex; flex-wrap: wrap; gap: 7px; }
.auth-chip-btn { border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); color: rgba(255,255,255,.5); border-radius: 999px; padding: 8px 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .18s; font-family: 'DM Sans', sans-serif; }
.auth-chip-btn.on { background: rgba(200,181,209,.14); border-color: rgba(200,181,209,.3); color: #c8b5d1; }
.auth-signout { width: 100%; margin-top: 18px; padding: 11px; background: none; border: 1.5px solid rgba(255,255,255,.07); border-radius: 10px; color: rgba(255,255,255,.28); font-size: 12px; font-family: 'DM Sans', sans-serif; cursor: pointer; transition: border-color .15s, color .15s; }
.auth-signout:hover { border-color: rgba(239,141,130,.35); color: #ef8d82; }

/* ── CHOOSE STEP ── */
.choose-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.choose-card { display: flex; align-items: center; gap: 14px; padding: 16px; background: rgba(255,255,255,.04); border: 1.5px solid rgba(255,255,255,.08); border-radius: 14px; cursor: pointer; text-align: left; width: 100%; font-family: 'DM Sans', sans-serif; color: #fff; transition: all .2s; }
.choose-card:hover { background: rgba(255,255,255,.07); border-color: rgba(200,181,209,.35); transform: translateY(-1px); }
.choose-card-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(200,181,209,.1); border: 1px solid rgba(200,181,209,.25); display: flex; align-items: center; justify-content: center; color: #c8b5d1; flex-shrink: 0; }
.choose-card-body { flex: 1; min-width: 0; }
.choose-card-title { font-size: 15px; font-weight: 600; color: #fff; margin-bottom: 3px; letter-spacing: -.005em; }
.choose-card-desc { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.4; }
.choose-card-arrow { color: rgba(255,255,255,.25); font-size: 20px; transition: color .2s, transform .2s; }
.choose-card:hover .choose-card-arrow { color: #c8b5d1; transform: translateX(2px); }
