:root {
  --maroon-900: #420c19;
  --maroon-800: #5d1425;
  --maroon-700: #781c32;
  --maroon-100: #f9ecef;
  --gold-600: #a87b22;
  --gold-500: #c89b3c;
  --gold-400: #dfb75f;
  --gold-200: #f2e1b6;
  --gold-100: #fbf4e2;
  --cream-bg: #faf5ec;
  --card-bg: #fffdf9;
  --border-soft: #eadcc4;
  --text-main: #241715;
  --text-muted: #6c5852;
  --success: #157347;
  --success-bg: #e7f6ee;
  --warning: #a15206;
  --warning-bg: #fff3dd;
  --danger: #b42318;
  --danger-bg: #fdeceb;
  --shadow-card: 0 12px 32px rgba(66, 12, 25, 0.06), 0 2px 6px rgba(66, 12, 25, 0.04);
  --radius-lg: 18px;
  --radius-md: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-main);
  background: var(--cream-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 10%, rgba(200, 155, 60, 0.14), transparent 36%),
    radial-gradient(circle at 88% 20%, rgba(120, 28, 50, 0.08), transparent 40%),
    linear-gradient(180deg, #fbf6ee 0%, #f6ede0 100%);
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* Header */
.hero-header {
  background: linear-gradient(135deg, var(--maroon-900) 0%, var(--maroon-800) 58%, #6d192d 100%);
  color: #fffaf2;
  border-bottom: 3px solid var(--gold-500);
  padding: 28px 0 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(66, 12, 25, 0.18);
}

.hero-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(231, 200, 120, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 760px;
}

.hero-crest {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  color: var(--gold-400);
}

.auspicious-line {
  margin: 0 0 4px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}

.hero-header h1 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  color: #fff;
}

.hero-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 248, 236, 0.86);
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(231, 200, 120, 0.45);
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.connection-pill[data-status='open'] .pill-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28);
}

.connection-pill[data-status='qr'] .pill-dot,
.connection-pill[data-status='connecting'] .pill-dot {
  background: #fbbf24;
  animation: pulseDot 1.3s infinite ease-in-out;
}

.connection-pill[data-status='disconnected'] .pill-dot {
  background: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Main Cards */
.main-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 0 64px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: 0.65;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.step-title-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
  color: var(--gold-200);
  border: 2px solid var(--gold-500);
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

.card-header h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--maroon-900);
  line-height: 1.15;
}

.card-subtitle {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, opacity 0.14s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
  color: #fff;
  box-shadow: 0 4px 14px rgba(93, 20, 37, 0.24);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--maroon-900), var(--maroon-800));
}

.btn-gold {
  background: linear-gradient(135deg, #d4a644, #b78524);
  color: #261209;
  border-color: #9e701a;
  box-shadow: 0 4px 14px rgba(183, 133, 36, 0.28);
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #deb354, #c5912c);
}

.btn-secondary {
  background: var(--gold-100);
  color: var(--maroon-900);
  border-color: var(--gold-400);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gold-200);
}

.btn-outline {
  background: #fff;
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn-outline-danger {
  background: #fff;
  color: var(--danger);
  border-color: #f3b8b4;
}

.btn-outline-danger:hover:not(:disabled) {
  background: var(--danger-bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-soft);
}

.btn-ghost:hover:not(:disabled) {
  background: #f4ece0;
  color: var(--text-main);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1rem;
}

/* Step 1 Connect */
.connect-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.status-banner {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: #f8f1e5;
  border: 1px solid var(--border-soft);
  margin-bottom: 16px;
}

.status-banner[data-status='open'] {
  background: var(--success-bg);
  border-color: #b7e3c9;
}

.status-banner[data-status='qr'] {
  background: var(--gold-100);
  border-color: var(--gold-400);
}

.status-banner-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--maroon-900);
}

.status-banner[data-status='open'] .status-banner-title {
  color: var(--success);
}

.status-banner-desc {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.steps-guide {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--text-main);
  font-size: 0.92rem;
}

.steps-guide li + li {
  margin-top: 6px;
}

.pairing-details {
  background: #faf4ea;
  border: 1px dashed var(--gold-400);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.pairing-details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--maroon-800);
}

.pairing-body {
  margin-top: 10px;
}

.inline-form {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.pairing-code-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--gold-500);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pairing-code-box strong {
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--maroon-900);
}

.qr-stage {
  background: linear-gradient(145deg, #fffdf9, #f7efe0);
  border: 2px dashed var(--gold-400);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.qr-placeholder {
  color: var(--text-muted);
}

.qr-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 10px;
  color: var(--gold-600);
}

.qr-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-image-wrap img {
  width: 224px;
  height: 224px;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(66, 12, 25, 0.12);
}

.qr-hint {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--maroon-800);
}

.connected-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.connected-check {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  box-shadow: 0 6px 18px rgba(21, 115, 71, 0.25);
}

.connected-profile h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--success);
}

.connected-name {
  margin: 0;
  font-weight: 700;
}

.connected-phone {
  margin: 0 0 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-muted);
}

/* Inputs & Panels */
.input-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 22px;
}

.sub-panel {
  background: #fcf8f1;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 18px;
}

.sub-panel h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: var(--maroon-900);
}

.muted-text {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.input,
.textarea,
.select {
  width: 100%;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--text-main);
  background: #fff;
  border: 1px solid #dccbb0;
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--maroon-700);
  box-shadow: 0 0 0 3px rgba(120, 28, 50, 0.12);
}

.textarea {
  resize: vertical;
}

.panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.rule-chip {
  font-size: 0.8rem;
  color: var(--maroon-800);
  background: var(--gold-100);
  border: 1px solid var(--gold-200);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Dropzone */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--gold-500);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  background: var(--gold-100);
  border-color: var(--maroon-700);
}

.dropzone-compact {
  padding: 16px;
}

.dropzone-icon {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 600;
}

.dropzone-title span {
  color: var(--maroon-700);
  text-decoration: underline;
}

.dropzone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.demo-preview-box {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

code {
  background: #f2e8d9;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--maroon-900);
}

/* Guest Toolbar & Table */
.guest-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stats-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-pill {
  font-size: 0.82rem;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f5ede0;
  border: 1px solid var(--border-soft);
}

.stat-valid { background: #eef6ff; border-color: #c5defc; color: #164e87; }
.stat-registered { background: var(--success-bg); border-color: #b7e3c9; color: var(--success); }
.stat-warn { background: var(--warning-bg); border-color: #f3d19e; color: var(--warning); }
.stat-danger { background: var(--danger-bg); border-color: #f4c1bd; color: var(--danger); }

.toolbar-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: inline-flex;
  background: #f3eadc;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
}

.filter-tab {
  border: none;
  background: transparent;
  padding: 6px 11px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-tab.active {
  background: #fff;
  color: var(--maroon-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Highlighted Issues Box */
.issues-alert {
  background: #fff6f5;
  border: 1px solid #f4b7b2;
  border-left: 5px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.issues-alert-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.issues-alert-header strong {
  color: var(--danger);
  font-size: 0.95rem;
}

.issues-alert-header p {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.issues-actions {
  display: flex;
  gap: 8px;
}

.issues-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.issues-list li {
  background: #fff;
  border: 1px solid #f2d3cf;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.83rem;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.issue-reason {
  font-weight: 600;
  color: var(--danger);
}

.issue-reason.not-reg {
  color: var(--warning);
}

/* Table */
.table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 360px;
  background: #fff;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.guest-table th {
  position: sticky;
  top: 0;
  background: #f7efe2;
  color: var(--maroon-900);
  text-align: left;
  padding: 10px 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-soft);
  z-index: 1;
}

.guest-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #f2e8da;
  vertical-align: middle;
}

.guest-table tr:last-child td {
  border-bottom: none;
}

.guest-table tr.row-issue {
  background: #fffafa;
}

.empty-row td {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: #e8f1fd; color: #19599c; }
.badge-gold { background: var(--gold-100); color: #8c6313; border: 1px solid var(--gold-200); }
.badge-muted { background: #efefef; color: #555; }

.remove-row-btn {
  border: none;
  background: transparent;
  color: #9e8a83;
  font-size: 1.15rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.remove-row-btn:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Step 3 Composer & Phone Mockup */
.composer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.field-group + .field-group {
  margin-top: 18px;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--maroon-900);
  margin-bottom: 8px;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.label-row .field-label {
  margin-bottom: 0;
}

.chip-btn {
  border: 1px solid var(--gold-400);
  background: var(--gold-100);
  color: var(--maroon-900);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.template-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.muted-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.template-btn {
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--maroon-800);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.template-btn:hover {
  background: var(--maroon-100);
  border-color: var(--maroon-700);
}

.attached-card {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--gold-400);
  border-radius: 10px;
}

.attached-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--maroon-100);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.attached-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attached-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.attached-meta strong {
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attached-meta span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* WhatsApp Mockup */
.phone-mockup {
  border: 1px solid #d7c7ae;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(45, 22, 18, 0.1);
  background: #efeae2;
}

.phone-topbar {
  background: #075e54;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--maroon-900);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
}

.phone-contact {
  font-weight: 700;
  font-size: 0.92rem;
}

.phone-sub {
  font-size: 0.75rem;
  opacity: 0.82;
}

.phone-chat-bg {
  padding: 18px 14px;
  min-height: 290px;
  background:
    radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    #efeae2;
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.wa-bubble {
  align-self: flex-end;
  max-width: 92%;
  background: #d9fdd3;
  border-radius: 12px 2px 12px 12px;
  padding: 8px 10px 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.wa-media-preview {
  margin-bottom: 6px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.wa-media-preview img {
  display: block;
  width: 100%;
  max-height: 190px;
  object-fit: cover;
}

.wa-doc-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  font-size: 0.82rem;
}

.wa-doc-icon {
  font-size: 1.4rem;
}

.wa-text-preview {
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: #111b21;
}

.wa-time {
  text-align: right;
  font-size: 0.7rem;
  color: #5d736f;
  margin-top: 4px;
}

/* Step 4 Send */
.send-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.delay-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.delay-picker label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--maroon-900);
}

.delay-picker .select {
  width: auto;
}

.send-cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-panel {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fcf7ee;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.progress-track {
  height: 12px;
  background: #eadcc4;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--maroon-700), var(--gold-500));
  transition: width 0.25s ease;
}

.progress-counters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Toasts */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--maroon-900);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  border-left: 4px solid var(--gold-400);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  font-size: 0.88rem;
  max-width: 340px;
}

.toast.toast-error {
  background: #7f1d1d;
  border-left-color: #fca5a5;
}

.toast.toast-success {
  background: #14532d;
  border-left-color: #86efac;
}

@media (max-width: 880px) {
  .connect-layout,
  .input-split,
  .composer-grid {
    grid-template-columns: 1fr;
  }
}

