:root {
  --bg: #070b0d;
  --bg-soft: #0d1417;
  --panel: rgba(10, 17, 20, 0.76);
  --panel-strong: rgba(15, 23, 27, 0.94);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #8aa0a8;
  --pink: #ff4f8b;
  --pink-strong: #ff2d75;
  --pink-soft: rgba(255, 79, 139, 0.14);
  --green: #7cffb6;
  --green-soft: rgba(124, 255, 182, 0.14);
  --danger: #ff7a9f;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
  --header-height: 82px;
  --header-gap: 22px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 79, 139, 0.22), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(124, 255, 182, 0.12), transparent 18%),
    radial-gradient(circle at 50% 120%, rgba(255, 79, 139, 0.12), transparent 28%),
    linear-gradient(180deg, #040607 0%, #071013 55%, #050809 100%);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.42;
  z-index: 0;
}

.page-glow-left {
  top: -120px;
  left: -100px;
  background: rgba(255, 79, 139, 0.34);
}

.page-glow-right {
  top: 40px;
  right: -120px;
  background: rgba(124, 255, 182, 0.16);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1060px);
  margin: 0 auto;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 780px);
  align-items: start;
  justify-content: center;
  column-gap: 20px;
  padding: calc(var(--header-height) + var(--header-gap) + 18px) 16px 36px;
}

.app-brand-bar,
.progress-header,
.step-card,
.modal-card {
  width: 100%;
}

.app-brand-bar {
  width: min(calc(100% - 32px), 1060px);
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 12;
  grid-column: 1 / -1;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    rgba(8, 13, 15, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-brand-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.9), rgba(255, 122, 168, 0.9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 26px rgba(255, 79, 139, 0.32);
}

.app-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-brand-copy {
  display: grid;
  gap: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-brand-copy small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-brand-badge {
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd6e5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.progress-header {
  grid-column: 2;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.dashboard-toggle-btn {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 17, 20, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  color: #f8fafc;
}

.quick-buy-btn {
  min-width: 116px;
  min-height: 52px;
  padding-inline: 18px;
  white-space: nowrap;
}

.dashboard-toggle-btn span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.dashboard-toggle-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.dashboard-toggle-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.dashboard-toggle-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.dashboard-panel {
  width: 100%;
  grid-column: 1;
  grid-row: 2 / span 2;
  position: sticky;
  top: calc(var(--header-height) + var(--header-gap) + 18px);
  margin: 0;
  padding: 18px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 17, 0.9);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform-origin: top center;
  animation: dashboardDrop 220ms ease;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dashboard-stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.dashboard-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-stat strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.dashboard-meta {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-fill {
  width: 14.2857%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  box-shadow: 0 0 24px rgba(255, 79, 139, 0.28);
  transition: width 300ms ease;
}

.step-indicator {
  margin: 0;
  color: #d8e0e4;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wizard {
  position: relative;
  grid-column: 2;
  width: 100%;
  min-height: 760px;
}

.step-card {
  display: flex;
  flex-direction: column;
  min-height: 760px;
  padding: 28px 26px;
  border-radius: 32px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(36px);
  pointer-events: none;
  transition: transform 300ms ease, opacity 300ms ease;
  background:
    radial-gradient(circle at top right, rgba(255, 79, 139, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 17, 0.9);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.step-card.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.step-card.is-leaving-left {
  opacity: 0;
  transform: translateX(-36px);
}

.step-card.is-entering-right {
  opacity: 0;
  transform: translateX(36px);
}

.step-card[hidden] {
  display: none;
}

.card-top {
  text-align: center;
  display: grid;
  gap: 12px;
}

.card-top h1,
.card-top h2,
.sending-stage h2,
.report-stage h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.card-top p,
.phone-note,
.sending-counter,
.progress-percent,
.micro-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 22px 0;
}

.card-bottom {
  margin-top: auto;
  padding-top: 12px;
}

.center-actions {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.split-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.icon-wrap {
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.96), rgba(255, 45, 117, 0.96));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 28px rgba(255, 79, 139, 0.22);
}

.hero-icon-wrap {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.94), rgba(59, 130, 246, 0.94));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 28px rgba(59, 130, 246, 0.24);
}

.icon-large {
  width: 84px;
  height: 84px;
  border-radius: 26px;
}

.step-icon {
  width: 34px;
  height: 34px;
}

.icon-large .step-icon {
  width: 44px;
  height: 44px;
}

.pill-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.feature-pill {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #e7edf0;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.welcome-illustration {
  position: relative;
  width: min(100%, 390px);
  height: 220px;
  margin: 0 auto;
}

.welcome-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
}

.orb-one {
  width: 170px;
  height: 170px;
  top: 6px;
  left: 30px;
  background: rgba(255, 79, 139, 0.22);
}

.orb-two {
  width: 140px;
  height: 140px;
  right: 22px;
  bottom: 12px;
  background: rgba(124, 255, 182, 0.14);
}

.message-stack {
  position: absolute;
  width: 228px;
  min-height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #f8fafc;
  font-weight: 700;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 17, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.card-one {
  top: 22px;
  left: 18px;
  transform: rotate(-6deg);
}

.card-two {
  top: 78px;
  left: 96px;
  transform: rotate(4deg);
}

.card-three {
  top: 132px;
  left: 42px;
  transform: rotate(-2deg);
}

.action-btn {
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-btn,
.ghost-btn,
.compact-btn,
.send-btn {
  min-width: 148px;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px rgba(255, 79, 139, 0.28);
}

.primary-btn:hover:not([disabled]) {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 34px rgba(255, 79, 139, 0.38);
}

.ghost-btn {
  color: #e6edf0;
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.send-btn {
  background: linear-gradient(135deg, #44d78c, #1fb96e);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 28px rgba(31, 185, 110, 0.26);
}

.compact-btn {
  min-width: auto;
  padding-inline: 14px;
}

.upload-zone {
  min-height: 230px;
  border-radius: 28px;
  border: 2px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: border-color 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
  border-color: rgba(255, 79, 139, 0.56);
  background: rgba(255, 79, 139, 0.05);
}

.upload-zone.is-ready {
  align-items: stretch;
  text-align: left;
}

.upload-empty,
.upload-success {
  width: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.upload-empty strong {
  font-size: 1.05rem;
}

.upload-empty span,
.upload-empty small {
  color: var(--muted);
}

.upload-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sheet-link-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.upload-success {
  justify-items: stretch;
}

.upload-file-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.upload-file-meta small {
  color: var(--muted);
}

.success-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  flex-shrink: 0;
  color: #081012;
  background: var(--green);
  font-weight: 800;
}

.inline-progress,
.remaining-bar,
.thick-progress {
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.inline-progress {
  height: 10px;
}

.inline-progress-fill,
.remaining-fill,
.thick-progress-fill {
  width: 0;
  height: 100%;
  transition: width 300ms ease;
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
}

.inline-progress-fill {
  transition: width 1200ms linear;
}

.preview-table-wrap {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.preview-table th,
.preview-table td {
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.preview-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.preview-table td {
  line-height: 1.45;
}

.preview-table tbody tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.more-contacts {
  margin: 0;
  color: var(--muted);
}

.form-stack {
  gap: 18px;
}

.field-block {
  display: grid;
  gap: 8px;
}

.field-block > span,
.preview-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #dce4e7;
}

.field-block input,
.field-block textarea,
.recipient-toolbar input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.field-block input::placeholder,
.field-block textarea::placeholder,
.recipient-toolbar input::placeholder {
  color: #91a6ae;
}

.field-block input:focus,
.field-block textarea:focus,
.recipient-toolbar input:focus {
  border-color: rgba(255, 79, 139, 0.56);
  box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.1);
}

.counter-row {
  position: relative;
}

.counter-row input {
  padding-right: 84px;
}

.field-counter {
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.counter-row .field-counter {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
}

.field-counter.is-over {
  color: var(--danger);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.warning-badge {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.warning-badge.is-warning {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.warning-badge.is-danger {
  color: #ffe0e7;
  background: rgba(255, 79, 139, 0.18);
  border: 1px solid rgba(255, 79, 139, 0.26);
}

.preview-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.chat-bubble {
  max-width: 88%;
  padding: 14px 16px;
  border-radius: 18px 18px 18px 6px;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.18), rgba(255, 255, 255, 0.05));
  color: #f8fafc;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
}

.phone-step {
  align-items: center;
}

.phone-mockup {
  width: 280px;
  height: 520px;
  border-radius: 40px;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 30px 70px rgba(0, 0, 0, 0.44),
    0 0 40px rgba(255, 79, 139, 0.18);
  animation: floatPhone 3.8s ease-in-out infinite;
}

.phone-notch {
  width: 120px;
  height: 22px;
  border-radius: 0 0 18px 18px;
  margin: 0 auto;
  background: #080d0f;
}

.phone-screen {
  flex: 1;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  gap: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 79, 139, 0.22), transparent 34%),
    linear-gradient(180deg, #f9fbfc 0%, #eef2f4 100%);
  color: #111827;
}

.sms-header {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.sms-thread {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
}

.sms-bubble {
  max-width: 88%;
  padding: 14px;
  border-radius: 18px 18px 18px 8px;
  background: #e5e7eb;
  color: #111827;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.sms-time {
  color: #6b7280;
  font-size: 12px;
}

.phone-home-bar {
  width: 120px;
  height: 6px;
  border-radius: 999px;
  margin: auto auto 0;
  background: rgba(17, 24, 39, 0.18);
}

.recipients-step {
  gap: 16px;
}

.recipient-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.recipient-toolbar input {
  flex: 1;
  min-width: 0;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.selection-counter,
.summary-bar,
.remaining-heading {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #dbe4e7;
  font-size: 13px;
  font-weight: 600;
}

.summary-bar {
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
}

.contact-list {
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 6px;
}

.contact-list::-webkit-scrollbar {
  width: 8px;
}

.contact-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.contact-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.contact-row:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.contact-row.is-selected {
  border-color: rgba(124, 255, 182, 0.18);
  background: linear-gradient(135deg, rgba(124, 255, 182, 0.08), rgba(255, 255, 255, 0.04));
}

.contact-row input {
  margin: 0;
  accent-color: var(--pink);
}

.avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255, 79, 139, 0.96), rgba(255, 45, 117, 0.96));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(255, 79, 139, 0.18);
}

.contact-meta {
  min-width: 0;
}

.contact-meta strong,
.contact-meta span {
  display: block;
}

.contact-meta strong {
  margin-bottom: 4px;
}

.contact-meta span {
  color: var(--muted);
}

.selected-pill {
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  color: #081012;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.empty-search {
  min-height: 120px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.units-step {
  align-items: center;
}

.units-card,
.status-box,
.package-card,
.details-card,
.failed-section,
.send-log,
.stat-box {
  width: 100%;
  box-sizing: border-box;
  border-radius: 24px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 17, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

.units-card {
  text-align: center;
}

.units-card span,
.units-card p,
.status-box p,
.package-card,
.failed-item {
  color: var(--muted);
}

.units-balance {
  display: block;
  font-size: clamp(3rem, 10vw, 4rem);
  line-height: 1;
  margin-bottom: 10px;
}

.status-box {
  display: grid;
  gap: 10px;
}

.status-warning {
  border-color: rgba(255, 122, 159, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(9, 15, 17, 0.9);
}

.status-success {
  border-color: rgba(124, 255, 182, 0.2);
  background:
    linear-gradient(135deg, rgba(124, 255, 182, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(9, 15, 17, 0.9);
}

.full-btn {
  width: 100%;
}

.remaining-block {
  display: grid;
  gap: 10px;
}

.remaining-bar {
  height: 12px;
}

.remaining-fill {
  background: linear-gradient(135deg, var(--green), #46dd98);
}

.thick-progress {
  height: 16px;
}

.thick-progress-fill {
  background: linear-gradient(135deg, var(--pink), var(--pink-strong));
}

.step-card-sending {
  min-height: 760px;
}

.sending-stage,
.report-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  min-height: 100%;
}

.plane-scene {
  position: relative;
  width: 220px;
  height: 128px;
}

.plane-icon {
  width: 78px;
  height: 78px;
  position: absolute;
  left: 82px;
  top: 18px;
  color: #fff;
  filter: drop-shadow(0 0 24px rgba(255, 79, 139, 0.32));
  animation: planeFly 1.8s ease-in-out infinite;
}

.trail-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  position: absolute;
  top: 54px;
  background: rgba(255, 255, 255, 0.5);
  animation: trailFade 1.8s ease-in-out infinite;
}

.dot-one {
  left: 34px;
}

.dot-two {
  left: 56px;
  animation-delay: 0.2s;
}

.dot-three {
  left: 78px;
  animation-delay: 0.4s;
}

.send-log {
  max-height: 120px;
  overflow-y: auto;
  text-align: left;
}

.send-log p {
  margin: 0 0 8px;
}

.report-content {
  width: 100%;
}

.checkmark-wrap {
  width: 88px;
  height: 88px;
}

.checkmark-icon {
  width: 72px;
  height: 72px;
}

.check-circle,
.check-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke: var(--green);
}

.check-circle {
  stroke-dasharray: 188;
  stroke-dashoffset: 188;
  animation: drawStroke 700ms ease forwards;
}

.check-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawStroke 500ms ease 350ms forwards;
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.stat-box {
  display: grid;
  gap: 10px;
}

.stat-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.stat-box strong {
  font-size: clamp(2rem, 5vw, 2.6rem);
  line-height: 1;
}

.details-card {
  display: grid;
  gap: 12px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.detail-row span {
  color: var(--muted);
}

.expandable-row {
  align-items: center;
}

.detail-message-btn,
.collapse-btn {
  background: transparent;
  border: none;
  padding: 0;
  text-align: right;
  color: #f8fafc;
}

.detail-message-btn {
  max-width: 60%;
  font-weight: 600;
}

.failed-section {
  display: grid;
  gap: 14px;
}

.collapse-btn {
  text-align: left;
  font-weight: 700;
}

.failed-list {
  display: grid;
  gap: 10px;
  text-align: left;
}

.failed-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 6, 8, 0.56);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.modal-card {
  position: relative;
  border-radius: 28px;
  padding: 24px;
  box-sizing: border-box;
  display: grid;
  gap: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(9, 15, 17, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
}

.modal-card h2 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -0.04em;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.package-card {
  border-color: rgba(255, 79, 139, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 79, 139, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(9, 15, 17, 0.88);
}

.package-card strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.2rem;
}

.instruction-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: #dbe4e7;
}

.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: normal;
  width: 220px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #f8fafc;
  background: rgba(4, 7, 9, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.28);
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 2;
}

.has-tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes floatPhone {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes planeFly {
  0%,
  100% {
    transform: translate(0, 0) rotate(-10deg);
  }

  50% {
    transform: translate(24px, -14px) rotate(4deg);
  }
}

@keyframes trailFade {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dashboardDrop {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .app-shell {
    --header-height: auto;
    width: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    column-gap: 0;
    padding-top: 18px;
  }

  .app-brand-bar,
  .wizard,
  .progress-header,
  .dashboard-panel,
  .step-card,
  .modal-card {
    width: 100%;
  }

  .app-brand-bar {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-header,
  .wizard,
  .dashboard-panel {
    grid-column: auto;
  }

  .dashboard-panel {
    position: static;
    margin: 0 auto 18px;
  }

  .dashboard-toggle-btn {
    display: inline-flex;
  }

  .app-brand-actions,
  .dashboard-grid {
    width: 100%;
  }

  .app-brand-actions {
    justify-content: space-between;
  }

  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }

  .step-card {
    min-height: auto;
    padding: 22px 18px;
    border-radius: 26px;
  }

  .split-actions,
  .recipient-toolbar,
  .message-meta,
  .detail-row {
    flex-direction: column;
    align-items: stretch;
  }

  .report-stats,
  .pill-row {
    grid-template-columns: 1fr;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .action-btn,
  .split-actions .action-btn,
  .center-actions .action-btn {
    width: 100%;
  }

  .contact-row {
    grid-template-columns: auto auto 1fr;
  }

  .selected-pill {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .phone-mockup {
    width: min(100%, 280px);
  }

  .upload-file-meta {
    align-items: flex-start;
  }

  .upload-file-meta strong,
  .upload-file-meta small,
  .preview-table th,
  .preview-table td,
  .more-contacts {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .preview-table th,
  .preview-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
}
