/* ============================================================
   Guest List SMS — Minimal dashboard (Linear/Notion vibe, RTL)
   ============================================================ */

:root {
  /* Neutrals — paper-white surface, cool greys */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f6f6f5;
  --surface-3: #efeeec;
  --border: #e8e7e3;
  --border-strong: #d8d6d1;
  --divider: #f0efec;

  /* Text */
  --text: #1a1a17;
  --text-2: #565651;
  --text-3: #8a8a82;
  --text-4: #b4b3ab;

  /* Accent — quiet indigo */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-text: #3730a3;

  /* Status */
  --green: #15803d;
  --green-soft: #ecfdf5;
  --green-border: #bbf7d0;

  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fde68a;

  --red: #b91c1c;
  --red-soft: #fef2f2;
  --red-border: #fecaca;

  --blue: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-border: #bfdbfe;

  /* Type */
  --font-sans: "Heebo", "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 15, 14, 0.04);
  --shadow-md: 0 1px 2px rgba(15, 15, 14, 0.04), 0 4px 12px rgba(15, 15, 14, 0.04);
  --shadow-lg: 0 1px 2px rgba(15, 15, 14, 0.04), 0 10px 30px rgba(15, 15, 14, 0.08);
  --shadow-pop: 0 1px 2px rgba(15, 15, 14, 0.06), 0 12px 32px rgba(15, 15, 14, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   App shell
   ============================================================ */

.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.sidebar {
  background: var(--surface-2);
  border-inline-start: 1px solid var(--border);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 8px 4px;
  width: 100%;
  text-align: center;
}
.brand-text {
  text-align: center;
  width: 100%;
}
.brand-logo {
  height: 70px;
  width: auto;
  flex-shrink: 0;
  display: block;
}
.brand-name {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}

.event-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.event-card .label {
  font-size: 10.5px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.event-card .name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.event-card .meta {
  font-size: 11.5px;
  color: var(--text-3);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-section {
  font-size: 10.5px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 8px 4px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: start;
  width: 100%;
  transition: background 0.08s ease;
}
.nav-item:hover { background: var(--surface-3); }
.nav-item.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.nav-item .icon {
  width: 16px; height: 16px;
  color: var(--text-3);
  flex-shrink: 0;
}
.nav-item.active .icon { color: var(--text); }
.nav-item .count {
  margin-inline-start: auto;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-info .name { font-size: 12.5px; font-weight: 600; }
.user-info .role { font-size: 11px; color: var(--text-3); }

/* ---------- Main ---------- */

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  height: 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.crumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
  color: var(--text-2);
}
.crumbs .sep { color: var(--text-4); }
.crumbs .current { color: var(--text); font-weight: 500; }

.topbar-status {
  margin-inline-start: auto;
  display: flex; align-items: center; gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-border);
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-pill.amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-border); }
.status-pill.red { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }
.status-pill.gray { background: var(--surface-3); color: var(--text-2); border-color: var(--border); }

.page {
  padding: 28px 32px 64px;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.page-sub {
  font-size: 13.5px;
  color: var(--text-3);
  margin: 0;
}
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.08s ease, border-color 0.08s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn .icon { width: 14px; height: 14px; }

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn-primary:hover { background: #2a2a26; border-color: #2a2a26; }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }

.btn-danger {
  color: var(--red);
}
.btn-danger:hover { background: var(--red-soft); border-color: var(--red-border); }

.btn-sm { padding: 4px 8px; font-size: 12px; }
.btn-icon { padding: 5px; }

/* ---------- Cards / Stats ---------- */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}
.stat .label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stat .label .icon { width: 13px; height: 13px; }
.stat .value {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat .value .unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  margin-inline-start: 2px;
}
.stat .delta {
  font-size: 11.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }
.stat.highlight { border-color: var(--text); }

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  overflow: hidden;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}
.section-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
.section-header .sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}
.section-body { padding: 16px; }

/* ---------- Capacity bar ---------- */

.capacity {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.capacity-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}
.capacity-row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 18px;
}
.capacity-row .num .total { color: var(--text-3); font-weight: 500; font-size: 14px; }
.capacity-bar {
  height: 8px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.capacity-fill {
  height: 100%;
  background: var(--text);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.capacity-fill.amber { background: #d97706; }
.capacity-fill.red { background: var(--red); }

.capacity-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.capacity-legend .item { display: inline-flex; align-items: center; gap: 6px; }
.capacity-legend .swatch {
  width: 8px; height: 8px; border-radius: 2px; background: var(--text);
}
.capacity-legend .swatch.empty { background: var(--surface-3); border: 1px solid var(--border); }

/* ---------- Funnel / breakdown ---------- */

.funnel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.funnel-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 10px;
}
.funnel-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text);
}
.funnel-row.green .dot { background: var(--green); }
.funnel-row.amber .dot { background: var(--amber); }
.funnel-row.red .dot { background: var(--red); }
.funnel-row.blue .dot { background: var(--blue); }
.funnel-row.gray .dot { background: var(--text-4); }

.funnel-row .track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.funnel-row .fill {
  height: 100%;
  background: var(--text);
  border-radius: 999px;
}
.funnel-row.green .fill { background: var(--green); }
.funnel-row.amber .fill { background: #d97706; }
.funnel-row.red .fill { background: var(--red); }
.funnel-row.blue .fill { background: var(--blue); }
.funnel-row.gray .fill { background: var(--text-4); }

.funnel-row .label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.funnel-row .label .sub { color: var(--text-3); font-weight: 400; font-size: 12px; }
.funnel-row .num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 14px;
}
.funnel-meta {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 10px;
  margin-top: -6px;
}
.funnel-meta .pct {
  grid-column: 3;
  font-size: 11.5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* Two-column row */
.row-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.row-2-equal { grid-template-columns: 1fr 1fr; }

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table thead th {
  text-align: start;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }

.cell-phone {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text);
  direction: ltr;
  display: inline-block;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.cell-name { font-weight: 500; color: var(--text); }
.cell-time {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: var(--green-border); }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-border); }
.badge.red { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-border); }

.row-actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.1s ease;
}
.table tbody tr:hover .row-actions { opacity: 1; }

/* Filters bar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--divider);
}
.search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 10px;
  flex: 1;
  max-width: 320px;
}
.search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  flex: 1;
  font-family: inherit;
  color: var(--text);
}
.search .icon { width: 14px; height: 14px; color: var(--text-3); }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
}
.filter-chip:hover { background: var(--surface-2); }
.filter-chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.filter-chip .count {
  font-size: 11px;
  background: rgba(0,0,0,0.06);
  padding: 0 5px;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.filter-chip.active .count { background: rgba(255,255,255,0.18); color: #fff; }

/* Selection bar (when rows selected) */
.selection-bar {
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.selection-bar .btn {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.selection-bar .btn:hover { background: rgba(255,255,255,0.18); }

/* Checkbox */
.cb {
  width: 14px; height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cb.checked {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.cb svg { width: 10px; height: 10px; }

/* ---------- Upload ---------- */

.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.drag {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.dropzone .icon-lg {
  width: 36px; height: 36px;
  color: var(--text-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
}
.dropzone .title { font-size: 14px; font-weight: 600; color: var(--text); }
.dropzone .sub { font-size: 12.5px; color: var(--text-3); }

.upload-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
}
.upload-step + .upload-step { border-top: 1px solid var(--divider); }
.upload-step .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.upload-step.done .num { background: var(--green); color: #fff; }
.upload-step.active .num { background: var(--text); color: #fff; }
.upload-step .body { flex: 1; }
.upload-step .title { font-size: 13.5px; font-weight: 600; }
.upload-step .desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- Settings ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  align-items: flex-start;
}
.field-row:last-child { border-bottom: none; }
.field-row .label-col .label { font-size: 13.5px; font-weight: 600; }
.field-row .label-col .desc { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }

.input, .select, .textarea {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--surface);
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color 0.08s ease, box-shadow 0.08s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input.mono { font-family: var(--font-mono); }
.textarea { resize: vertical; min-height: 70px; font-family: var(--font-mono); }

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.toggle-track {
  width: 32px; height: 18px;
  background: var(--border-strong);
  border-radius: 999px;
  position: relative;
  transition: background 0.15s ease;
}
.toggle-thumb {
  width: 14px; height: 14px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  transition: inset-inline-end 0.15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.toggle.on .toggle-track { background: var(--text); }
.toggle.on .toggle-thumb { inset-inline-end: 16px; }

.schedule-list { display: flex; flex-direction: column; gap: 8px; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.schedule-item .time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.schedule-item .label { font-size: 12.5px; color: var(--text-3); flex: 1; }

/* ---------- Guest preview screens ---------- */

.guest-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.phone-frame {
  background: #1a1a17;
  border-radius: 28px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone-screen {
  background: #ffffff;
  border-radius: 22px;
  aspect-ratio: 9 / 17;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.phone-screen .notch {
  height: 22px;
  background: #1a1a17;
  border-radius: 0 0 14px 14px;
  width: 90px;
  margin: 0 auto;
}
.phone-content {
  flex: 1;
  padding: 24px 18px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 14px;
}
.phone-content .event-meta {
  position: absolute;
  top: 30px;
  right: 0; left: 0;
  text-align: center;
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.phone-content .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  border: 1px solid var(--green-border);
}
.phone-content .icon-circle.red { background: var(--red-soft); color: var(--red); border-color: var(--red-border); }
.phone-content .icon-circle.amber { background: var(--amber-soft); color: var(--amber); border-color: var(--amber-border); }
.phone-content .icon-circle svg { width: 26px; height: 26px; }
.phone-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}
.phone-content p {
  font-size: 12.5px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
  max-width: 220px;
}
.phone-content .small {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}
.phone-tag {
  position: absolute;
  top: -10px;
  inset-inline-start: 16px;
  background: var(--text);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  z-index: 2;
}

/* Activity log */
.activity {
  display: flex;
  flex-direction: column;
}
.activity-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  align-items: center;
  border-bottom: 1px solid var(--divider);
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: grid; place-items: center;
}
.activity-icon svg { width: 12px; height: 12px; }
.activity-icon.green { background: var(--green-soft); color: var(--green); }
.activity-icon.red { background: var(--red-soft); color: var(--red); }
.activity-icon.amber { background: var(--amber-soft); color: var(--amber); }
.activity-icon.blue { background: var(--blue-soft); color: var(--blue); }

.activity-text { font-size: 13px; color: var(--text); }
.activity-text .b { font-weight: 600; }
.activity-text .sub { font-size: 12px; color: var(--text-3); margin-top: 1px; display: block; }
.activity-time { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* Spark/inline mini bar */
.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
  margin-top: 6px;
}
.mini-bars .bar {
  flex: 1;
  background: var(--surface-3);
  border-radius: 2px;
  min-height: 4px;
}
.mini-bars .bar.fill { background: var(--text); }
.mini-bars .bar.green { background: var(--green); }
.mini-bars .bar.red { background: var(--red); }
.mini-bars .bar.amber { background: #d97706; }

/* Empty / placeholder helpers */
.empty {
  text-align: center;
  padding: 32px;
  color: var(--text-3);
  font-size: 13px;
}

/* Kbd */
.kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  color: var(--text-2);
}

/* Resp */
@media (max-width: 1180px) {
  .sms-templates-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .row-2 { grid-template-columns: 1fr; }
  .guest-preview-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .guest-preview-grid { grid-template-columns: 1fr; }
  .sms-templates-grid { grid-template-columns: 1fr !important; }
}
