:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #151823;
  --muted: #747c8c;
  --line: #e4e8f0;
  --line-strong: #d9dee8;
  --primary: #5d5af2;
  --primary-dark: #4b47df;
  --primary-soft: #efefff;
  --success: #15a778;
  --success-soft: #eaf8f3;
  --danger: #d24e5d;
  --danger-soft: #fff1f3;
  --shadow: 0 24px 70px rgba(32, 42, 74, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(93,90,242,.08), transparent 26rem),
    radial-gradient(circle at 95% 20%, rgba(21,167,120,.06), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.bg-glow-one {
  width: 260px;
  height: 260px;
  top: -100px;
  left: -80px;
  background: rgba(93, 90, 242, .08);
}

.bg-glow-two {
  width: 280px;
  height: 280px;
  right: -120px;
  top: 320px;
  background: rgba(21, 167, 120, .06);
}

.shell {
  width: min(100% - 30px, 760px);
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    0
    max(30px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #6562ff, #4c48da);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 9px 24px rgba(93, 90, 242, .18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .01em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.service-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #cfe9df;
  border-radius: 999px;
  color: #187c5d;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  font-weight: 750;
}

.service-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(21,167,120,.1);
}

.service-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.tool-nav-button {
  min-height: 35px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #dadcf8;
  border-radius: 999px;
  color: #504dcf;
  background: rgba(255,255,255,.76);
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.tool-nav-button:hover,
.tool-nav-button.active,
.tool-nav-button[aria-expanded="true"] {
  border-color: rgba(93,90,242,.35);
  color: #fff;
  background: var(--primary);
}

.tool-nav-button:active {
  transform: translateY(1px);
}

.tool-nav-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.hero {
  padding: 58px 4px 30px;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.activation-card,
.guide-card,
.tools-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}

.tools-card {
  margin-bottom: 20px;
  padding: 28px;
  border-radius: 26px;
}

.tools-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.tools-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.tools-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.025em;
}

.tools-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.tools-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #8d94a2;
  background: #f4f6f9;
  cursor: pointer;
}

.tools-close svg {
  width: 17px;
  height: 17px;
}

.tools-tabs {
  margin: 22px 0;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f5f7fb;
}

.tools-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  color: #7d8492;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tools-tab.active {
  color: #4541cf;
  background: #fff;
  box-shadow: 0 5px 16px rgba(41,48,75,.08);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: #969daa;
  font-size: 11px;
  line-height: 1.5;
}

.tool-submit {
  min-height: 52px;
}

.tools-security {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid #edf0f5;
}

.tool-results {
  margin-top: 16px;
}

.results-head {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.results-head strong {
  color: #454b59;
  font-size: 13px;
}

.results-head span {
  color: #9299a6;
  font-size: 11px;
}

.email-results,
.message-results {
  display: grid;
  gap: 9px;
}

.email-result {
  min-width: 0;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfe;
}

.email-result-copy {
  min-width: 0;
}

.email-result-copy strong,
.email-result-copy span {
  display: block;
}

.email-result-copy strong {
  overflow: hidden;
  color: #3d4350;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-result-copy span {
  margin-top: 3px;
  color: #949ba8;
  font-size: 10px;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-button {
  min-height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #dedff8;
  border-radius: 10px;
  color: #5652d5;
  background: #f5f5ff;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.result-button.secondary {
  color: #68707e;
  border-color: var(--line);
  background: #fff;
}

.message-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.message-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.message-title {
  margin: 0;
  color: #343946;
  font-size: 14px;
  line-height: 1.4;
}

.message-number {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 10px;
  font-weight: 850;
}

.message-meta {
  margin-top: 7px;
  display: grid;
  gap: 3px;
  color: #8c94a2;
  font-size: 10px;
  line-height: 1.5;
}

.message-body {
  margin: 13px 0 0;
  padding-top: 13px;
  overflow-wrap: anywhere;
  border-top: 1px solid #eceff4;
  color: #676e7c;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.message-links {
  margin-top: 12px;
  display: grid;
  gap: 7px;
}

.message-link {
  min-width: 0;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dedff8;
  border-radius: 12px;
  background: #f6f6ff;
}

.message-link.login-link {
  border-color: #cfe9df;
  background: #f2fbf7;
}

.message-link-copy {
  min-width: 0;
}

.message-link-copy strong,
.message-link-copy span {
  display: block;
}

.message-link-copy strong {
  color: #4e4acb;
  font-size: 11px;
}

.login-link .message-link-copy strong {
  color: #17805f;
}

.message-link-copy span {
  margin-top: 3px;
  overflow: hidden;
  color: #9299a6;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-result {
  padding: 20px 16px;
  border: 1px dashed #dfe3eb;
  border-radius: 15px;
  color: #858d9b;
  background: #fafbfd;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

.raw-result {
  max-height: 260px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #59606e;
  background: #f7f8fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bulk-result-toolbar {
  margin: 0 0 9px;
  display: flex;
  justify-content: flex-end;
}

.bulk-download-card {
  padding: 18px;
  border: 1px solid #dedff8;
  border-radius: 16px;
  background: #f7f7ff;
}

.bulk-download-card strong,
.bulk-download-card span {
  display: block;
}

.bulk-download-card strong {
  color: #3f3bba;
  font-size: 14px;
}

.bulk-download-card span {
  margin-top: 5px;
  color: #777f8e;
  font-size: 11px;
  line-height: 1.55;
}

.download-button {
  width: 100%;
  min-height: 44px;
  margin-top: 13px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.activation-card {
  padding: 30px;
  border-radius: 28px;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.step-copy > span {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.step-copy h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.025em;
}

.step-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.step-visual {
  display: flex;
  align-items: center;
  min-width: 102px;
  padding-top: 4px;
}

.step-dot {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #9ba2af;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: .2s ease;
}

.step-dot.active {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 18px rgba(93,90,242,.18);
}

.step-line {
  width: 38px;
  height: 1px;
  background: var(--line-strong);
}

.api-status {
  margin: 26px 0 24px;
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8eee6;
  border-radius: 16px;
  background: #f7fcfa;
}

.api-status-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--success-soft);
}

.api-status-icon i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

.api-status strong,
.api-status span {
  display: block;
}

.api-status strong {
  margin-bottom: 3px;
  color: #255649;
  font-size: 13px;
}

.api-status span {
  color: #68827a;
  font-size: 12px;
}

.field-group label {
  display: block;
  margin: 0 0 9px;
  color: #454b59;
  font-size: 13px;
  font-weight: 750;
}

.field-shell {
  min-height: 56px;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field-shell:focus-within {
  border-color: rgba(93,90,242,.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(93,90,242,.07);
}

.field-icon {
  width: 50px;
  display: grid;
  place-items: center;
  color: #949cab;
}

.field-icon svg {
  width: 20px;
  height: 20px;
}

input,
textarea {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
}

input {
  height: 54px;
  padding: 0 15px 0 0;
}

textarea {
  min-height: 118px;
  padding: 16px 15px 16px 0;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder {
  color: #aab1bd;
}

.primary-button {
  width: 100%;
  min-height: 56px;
  margin-top: 15px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 13px 30px rgba(93,90,242,.18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(93,90,242,.22);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: .62;
  cursor: wait;
  transform: none;
}

.primary-button svg {
  width: 20px;
  height: 20px;
}

.notice {
  margin-top: 15px;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.55;
}

.notice.success {
  color: #17684f;
  border: 1px solid #cee9df;
  background: var(--success-soft);
}

.notice.error {
  color: #96313f;
  border: 1px solid #ffd1d7;
  background: var(--danger-soft);
}

.security-note {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa1ad;
  font-size: 11px;
  line-height: 1.5;
}

.security-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.guide-card {
  margin-top: 20px;
  padding: 28px;
  border-radius: 26px;
}

.guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--primary);
  background: var(--primary-soft);
}

.guide-icon svg {
  width: 23px;
  height: 23px;
}

.guide-header span {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.guide-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -.02em;
}

.guide-email {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.guide-email.sent {
  padding: 13px 14px;
  border: 1px solid #d8eee6;
  border-radius: 13px;
  color: #2a5d4f;
  background: #f7fcfa;
  font-weight: 700;
}

.guide-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid #edf0f5;
}

.guide-list li > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--primary);
  background: var(--primary-soft);
  font-size: 11px;
  font-weight: 850;
}

.guide-list strong {
  display: block;
  margin: 1px 0 4px;
  font-size: 13px;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.guide-list code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #525969;
  background: #f7f8fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.guide-tip {
  margin-top: 15px;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 14px;
  color: #6d7283;
  background: #f8f8ff;
  font-size: 11px;
  line-height: 1.55;
}

.guide-tip svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--primary);
}

.footer {
  padding: 22px 0 2px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #a1a8b4;
  font-size: 11px;
  font-weight: 650;
}

.hidden {
  display: none !important;
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 20px, 760px);
  }

  .hero {
    padding-top: 44px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .activation-card,
  .guide-card,
  .tools-card {
    padding: 22px;
    border-radius: 23px;
  }

  .card-topline {
    gap: 16px;
  }

  .step-copy h2 {
    font-size: 20px;
  }

  .step-visual {
    min-width: 86px;
  }

  .step-dot {
    width: 29px;
    height: 29px;
  }

  .step-line {
    width: 28px;
  }

  .api-status {
    margin-top: 22px;
  }

  .email-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-actions {
    width: 100%;
  }

  .result-button {
    flex: 1;
  }

  .message-link {
    align-items: flex-start;
    flex-direction: column;
  }

  .message-link .result-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .topbar {
    gap: 10px;
  }

  .brand-copy small {
    display: none;
  }

  .service-actions {
    gap: 5px;
  }

  .service-badge,
  .tool-nav-button {
    padding: 7px 8px;
    font-size: 11px;
  }

  .tool-nav-button {
    gap: 4px;
  }

  .tool-nav-button svg {
    display: none;
  }
}


body.modal-open {
  overflow: hidden;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 24, 35, 0.46);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: modalFade .2s ease both;
}

.success-backdrop {
  background: rgba(21, 24, 35, 0.38);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 30px 28px 22px;
  overflow: hidden;
  border: 1px solid rgba(228, 232, 240, 0.96);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(27, 33, 55, 0.24);
  text-align: center;
  animation: modalPop .24s cubic-bezier(.2,.8,.2,1) both;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  color: #8d94a2;
  background: #f6f7fa;
  cursor: pointer;
}

.modal-close svg {
  width: 17px;
  height: 17px;
}

.channel-badge,
.success-check {
  margin: 2px auto 18px;
  display: grid;
  place-items: center;
}

.channel-badge {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  color: #139b6a;
  background: #e9f8f2;
}

.channel-badge svg {
  width: 33px;
  height: 33px;
}

.modal-kicker {
  display: block;
  margin-bottom: 8px;
  color: #159c6d;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .14em;
}

.modal-card h2 {
  margin: 0;
  color: #171a22;
  font-size: 25px;
  letter-spacing: -.035em;
}

.modal-card > p {
  max-width: 340px;
  margin: 11px auto 22px;
  color: #747c8c;
  font-size: 14px;
  line-height: 1.65;
}

.modal-primary {
  width: 100%;
  min-height: 54px;
  padding: 0 17px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.channel-follow {
  background: #159c6d;
  box-shadow: 0 12px 28px rgba(21, 156, 109, 0.18);
}

.modal-primary svg {
  width: 18px;
  height: 18px;
}

.modal-secondary {
  margin-top: 9px;
  padding: 10px 18px;
  border: 0;
  color: #7d8593;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.success-card {
  padding-top: 34px;
}

.success-check {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #19b984, #159d72);
  box-shadow:
    0 14px 32px rgba(21, 167, 120, 0.24),
    0 0 0 10px rgba(21, 167, 120, 0.08);
  animation: successCheckIn .55s cubic-bezier(.2,1.4,.4,1) .08s both;
}

.success-check svg {
  width: 38px;
  height: 38px;
}

.success-kicker {
  color: #169a70;
}

.success-done {
  background: linear-gradient(135deg, #5d5af2, #4b47df);
  box-shadow: 0 12px 28px rgba(93, 90, 242, 0.19);
}

.success-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spark {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  opacity: 0;
  animation: sparkBurst .9s cubic-bezier(.2,.7,.2,1) .14s both;
}

.spark-1 { --tx: -126px; --ty: -88px; background: #5d5af2; transform: rotate(22deg); }
.spark-2 { --tx: 120px; --ty: -82px; background: #1db686; transform: rotate(48deg); }
.spark-3 { --tx: -145px; --ty: 8px; background: #f4b844; transform: rotate(70deg); }
.spark-4 { --tx: 142px; --ty: 18px; background: #5d5af2; transform: rotate(20deg); }
.spark-5 { --tx: -92px; --ty: 98px; background: #1db686; transform: rotate(42deg); }
.spark-6 { --tx: 92px; --ty: 104px; background: #f27a8d; transform: rotate(62deg); }
.spark-7 { --tx: -34px; --ty: -122px; background: #f27a8d; transform: rotate(35deg); }
.spark-8 { --tx: 36px; --ty: -124px; background: #f4b844; transform: rotate(76deg); }

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes successCheckIn {
  from {
    opacity: 0;
    transform: scale(.45) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes sparkBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.2) rotate(0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--tx)),
      calc(-50% + var(--ty))
    ) scale(1) rotate(160deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop,
  .modal-card,
  .success-check,
  .spark {
    animation: none !important;
  }
}

@media (max-width: 520px) {
  .modal-layer {
    padding: 14px;
  }

  .modal-card {
    padding: 28px 22px 20px;
    border-radius: 23px;
  }

  .channel-badge {
    width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .success-check {
    width: 70px;
    height: 70px;
  }
}
