/* ── Variables ─────────────────────────────────────────────── */
:root {
  --sidebar-bg: #0f172a;
  --sidebar-w: 260px;
  --primary: #7c3aed;
  --primary-l: #8b5cf6;
  --grad-primary: linear-gradient(135deg, #7c3aed, #3b82f6);
  --grad-success: linear-gradient(135deg, #10b981, #059669);
  --grad-danger: linear-gradient(135deg, #ef4444, #dc2626);
  --grad-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --grad-info: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 7px;
}

/* ── Base ──────────────────────────────────────────────────── */
* { font-family: 'Vazirmatn', Tahoma, sans-serif; box-sizing: border-box; }
body { background: #f1f5f9; direction: rtl; color: #1e293b; margin: 0; }

/* ── Layout ────────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar-brand {
  padding: 1.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(59,130,246,.15));
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-brand .brand-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 14px rgba(124,58,237,.4);
  flex-shrink: 0;
}

.sidebar-brand .brand-text { line-height: 1.3; }
.sidebar-brand .brand-name { font-size: .95rem; font-weight: 700; color: #fff; display: block; }
.sidebar-brand .brand-sub { font-size: .68rem; color: rgba(255,255,255,.4); }

.sidebar-section {
  padding: .9rem 1rem .25rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
}

.sidebar nav { padding: .4rem .5rem; flex: 1; }

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: rgba(255,255,255,.55);
  border-radius: var(--radius-xs);
  padding: .6rem .85rem;
  margin-bottom: 2px;
  font-size: .85rem;
  transition: all .18s ease;
  text-decoration: none;
  position: relative;
}

.sidebar .nav-link .nav-icon {
  width: 20px;
  font-size: 1rem;
  text-align: center;
  flex-shrink: 0;
  transition: color .18s;
}

.sidebar .nav-link:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.9);
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, rgba(124,58,237,.45), rgba(59,130,246,.25));
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(124,58,237,.25);
}

.sidebar .nav-link.active .nav-icon { color: #a78bfa; }

.sidebar-footer {
  padding: 1rem .75rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-footer .btn-logout {
  display: flex; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xs);
  padding: .5rem .85rem;
  width: 100%;
  font-size: .83rem;
  cursor: pointer;
  transition: all .18s;
}
.sidebar-footer .btn-logout:hover {
  background: rgba(239,68,68,.15);
  border-color: rgba(239,68,68,.3);
  color: #fca5a5;
}

/* ── Main ──────────────────────────────────────────────────── */
.main-wrap { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: .75rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
}

.topbar-title { font-size: 1rem; font-weight: 700; color: #0f172a; }
.topbar-subtitle { font-size: .75rem; color: #64748b; }

.topbar-right { display: flex; align-items: center; gap: .75rem; }

.topbar-right { position: relative; }

.user-badge {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(124,58,237,.07);
  border: 1px solid rgba(124,58,237,.15);
  border-radius: 12px;
  padding: .35rem .75rem .35rem .5rem;
  cursor: pointer;
  transition: all .18s;
  user-select: none;
}
.user-badge:hover { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.25); }
.user-badge.open { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.3); }

.user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; font-weight: 700;
  flex-shrink: 0;
}

/* Profile dropdown */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 500;
  overflow: hidden;
  animation: dropdown-in .15s ease;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-header {
  display: flex; align-items: center; gap: .65rem;
  padding: .85rem 1rem;
  background: rgba(124,58,237,.04);
}

.profile-dropdown-divider {
  height: 1px; background: #f1f5f9; margin: 0;
}

.profile-dropdown-item {
  display: flex; align-items: center; gap: .6rem;
  width: 100%; padding: .65rem 1rem;
  font-size: .83rem; font-weight: 500;
  border: none; background: none; cursor: pointer;
  transition: background .15s;
  color: #475569;
  text-align: right;
}
.profile-dropdown-item:hover { background: #f8fafc; }
.profile-dropdown-item.danger { color: #ef4444; }
.profile-dropdown-item.danger:hover { background: rgba(239,68,68,.06); }

.page-body { padding: 1.5rem; flex: 1; }

/* ── Page header ───────────────────────────────────────────── */
.page-hdr { margin-bottom: 1.5rem; }
.page-hdr h4 { font-size: 1.35rem; font-weight: 700; color: #0f172a; margin: 0; }
.page-hdr p { font-size: .82rem; color: #64748b; margin: .2rem 0 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  border-radius: var(--radius) !important;
  border: 1px solid rgba(0,0,0,.04) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: box-shadow .2s;
}

.card-header {
  border-bottom: 1px solid rgba(0,0,0,.05) !important;
  background: #fff !important;
  padding: 1rem 1.25rem !important;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  display: flex; align-items: center; justify-content: space-between;
}

.card-header-title { font-size: .9rem; font-weight: 600; color: #0f172a; }

/* ── Stat cards ────────────────────────────────────────────── */
.stat-card {
  border-radius: var(--radius) !important;
  border: none !important;
  overflow: hidden;
  position: relative;
  padding: 1.4rem 1.25rem;
  color: #fff;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -30%; right: -15%;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.stat-card.grad-1 { background: var(--grad-primary); box-shadow: 0 4px 20px rgba(124,58,237,.35) !important; }
.stat-card.grad-2 { background: var(--grad-info); box-shadow: 0 4px 20px rgba(59,130,246,.35) !important; }
.stat-card.grad-3 { background: var(--grad-success); box-shadow: 0 4px 20px rgba(16,185,129,.35) !important; }
.stat-card.grad-4 { background: var(--grad-danger); box-shadow: 0 4px 20px rgba(239,68,68,.35) !important; }

.stat-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: .8rem;
}

.stat-value { font-size: 2.1rem; font-weight: 800; line-height: 1; margin-bottom: .25rem; }
.stat-label { font-size: .78rem; opacity: .85; }

/* ── Status indicator ──────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}

.status-pill.connected {
  background: rgba(16,185,129,.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,.2);
}

.status-pill.disconnected {
  background: rgba(239,68,68,.1);
  color: #dc2626;
  border: 1px solid rgba(239,68,68,.2);
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.on {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16,185,129,.2);
  animation: pulse-on 2s infinite;
}

.status-dot.off { background: #ef4444; }

@keyframes pulse-on {
  0%,100% { box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,.08); }
}

/* Connection card */
.conn-card {
  border-radius: var(--radius) !important;
  overflow: hidden;
}

.conn-card-header {
  padding: 1.25rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
}

.platform-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.platform-icon.tg { background: linear-gradient(135deg, #229ed9, #1a7fb5); color: #fff; }
.platform-icon.wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; }

.conn-info .conn-name { font-size: 1rem; font-weight: 700; color: #0f172a; }
.conn-info .conn-phone { font-size: .82rem; color: #64748b; direction: ltr; display: inline-block; }

/* ── Badges ────────────────────────────────────────────────── */
.badge-sent { background: rgba(16,185,129,.1) !important; color: #059669 !important; border: 1px solid rgba(16,185,129,.2); padding: .25rem .6rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }
.badge-failed { background: rgba(239,68,68,.1) !important; color: #dc2626 !important; border: 1px solid rgba(239,68,68,.2); padding: .25rem .6rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }
.badge-pending { background: rgba(245,158,11,.1) !important; color: #d97706 !important; border: 1px solid rgba(245,158,11,.2); padding: .25rem .6rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }
.badge-tg { background: rgba(34,158,217,.1) !important; color: #1a7fb5 !important; border: 1px solid rgba(34,158,217,.2); padding: .2rem .55rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }
.badge-wa { background: rgba(37,211,102,.1) !important; color: #128c7e !important; border: 1px solid rgba(37,211,102,.2); padding: .2rem .55rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }
.badge-both { background: rgba(124,58,237,.1) !important; color: #7c3aed !important; border: 1px solid rgba(124,58,237,.2); padding: .2rem .55rem !important; border-radius: 6px !important; font-size: .73rem !important; font-weight: 600 !important; }

/* ── Table ─────────────────────────────────────────────────── */
.tbl-wrap { border-radius: var(--radius) !important; overflow: hidden; }

.tbl-wrap table { margin: 0; }

.tbl-wrap thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: .72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .75rem 1rem !important;
  border-bottom: 1px solid #f1f5f9 !important;
  white-space: nowrap;
}

.tbl-wrap tbody td {
  padding: .8rem 1rem !important;
  vertical-align: middle;
  border-bottom: 1px solid #f8fafc !important;
  font-size: .85rem;
  color: #334155;
}

.tbl-wrap tbody tr:last-child td { border-bottom: none !important; }

.tbl-wrap tbody tr { transition: background .12s; cursor: pointer; }
.tbl-wrap tbody tr:hover td { background: rgba(124,58,237,.03) !important; }

.tbl-footer {
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  padding: .65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  border-radius: var(--radius-xs) !important;
  font-size: .855rem !important;
  font-weight: 500 !important;
  transition: all .18s !important;
}

.btn-primary {
  background: var(--grad-primary) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(124,58,237,.3) !important;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(124,58,237,.4) !important; }
.btn-primary:disabled { opacity: .65; transform: none; }

.btn-success-grad {
  background: var(--grad-success) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(16,185,129,.3) !important;
}
.btn-success-grad:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(16,185,129,.4) !important; }

.btn-outline-secondary {
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}
.btn-outline-secondary:hover { background: #f8fafc !important; }

.btn-outline-danger:hover { transform: translateY(-1px); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: .6rem .9rem !important;
  font-size: .875rem !important;
  transition: all .18s !important;
  background: #fff !important;
  color: #1e293b !important;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(124,58,237,.1) !important;
  outline: none !important;
}

.form-label { font-size: .82rem; font-weight: 600; color: #475569; margin-bottom: .35rem; }

textarea.form-control { resize: vertical; min-height: 90px; }

/* File upload zone */
.file-zone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: #fafafa;
  position: relative;
}

.file-zone:hover { border-color: var(--primary); background: rgba(124,58,237,.03); }
.file-zone.has-file { border-color: #10b981; background: rgba(16,185,129,.04); }
.file-zone input[type=file] { opacity: 0; position: absolute; inset: 0; cursor: pointer; }
.file-zone .zone-icon { font-size: 1.6rem; color: #94a3b8; margin-bottom: .4rem; }
.file-zone.has-file .zone-icon { color: #10b981; }
.file-zone .zone-text { font-size: .8rem; color: #64748b; }
.file-zone.has-file .zone-text { color: #059669; }

/* Platform toggle */
.platform-tabs { display: flex; gap: .5rem; }
.platform-tab {
  flex: 1; border: 1.5px solid #e2e8f0; border-radius: var(--radius-sm);
  padding: .55rem; text-align: center; cursor: pointer;
  transition: all .18s; background: #fff; font-size: .82rem; font-weight: 500; color: #64748b;
}
.platform-tab:hover { border-color: #a78bfa; color: var(--primary); }
.platform-tab.active-tg { border-color: #229ed9; background: rgba(34,158,217,.07); color: #1a7fb5; }
.platform-tab.active-wa { border-color: #25d366; background: rgba(37,211,102,.07); color: #128c7e; }
.platform-tab.active-both { border-color: var(--primary); background: rgba(124,58,237,.07); color: var(--primary); }

/* ── Alert ─────────────────────────────────────────────────── */
.alert { border-radius: var(--radius-sm) !important; font-size: .85rem !important; border: none !important; }
.alert-success { background: rgba(16,185,129,.1) !important; color: #059669 !important; }
.alert-danger { background: rgba(239,68,68,.1) !important; color: #dc2626 !important; }
.alert-warning { background: rgba(245,158,11,.1) !important; color: #92400e !important; }
.alert-info { background: rgba(59,130,246,.1) !important; color: #1d4ed8 !important; }

/* ── Modal ─────────────────────────────────────────────────── */
.modal-content { border-radius: var(--radius) !important; border: none !important; box-shadow: var(--shadow-lg) !important; }
.modal-header { border-bottom: 1px solid #f1f5f9 !important; padding: 1.1rem 1.4rem !important; }
.modal-header .modal-title { font-size: .95rem; font-weight: 700; }
.modal-body { padding: 1.25rem 1.4rem !important; }
.modal-footer { border-top: 1px solid #f1f5f9 !important; padding: 1rem 1.4rem !important; }
.modal-backdrop.show { opacity: .35 !important; }

/* ── Login page ────────────────────────────────────────────── */
.login-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1445 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.login-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.login-bg .glow-1 {
  width: 450px; height: 450px;
  background: rgba(124,58,237,.25);
  top: -150px; right: -150px;
  animation: glow-float 7s ease-in-out infinite;
}

.login-bg .glow-2 {
  width: 350px; height: 350px;
  background: rgba(59,130,246,.2);
  bottom: -100px; left: -100px;
  animation: glow-float 9s ease-in-out infinite reverse;
}

.login-bg .glow-3 {
  width: 200px; height: 200px;
  background: rgba(16,185,129,.15);
  top: 50%; left: 50%;
  animation: glow-float 11s ease-in-out infinite;
}

@keyframes glow-float {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-30px) scale(1.1); }
}

.login-card {
  width: 100%; max-width: 400px;
  background: rgba(255,255,255,.97) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.05) !important;
  position: relative; z-index: 10;
}

.login-logo {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(124,58,237,.4);
}

/* ── CAPTCHA ───────────────────────────────────────────────── */
.captcha-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: linear-gradient(135deg, rgba(124,58,237,.05), rgba(59,130,246,.04));
  border: 1.5px solid rgba(124,58,237,.18);
  border-radius: 12px;
  padding: .75rem 1rem;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}

.captcha-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #7c3aed;
  line-height: 1;
  font-feature-settings: 'tnum';
  letter-spacing: .02em;
}

.captcha-op {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3b82f6;
  padding: 0 .1rem;
}

.captcha-eq {
  font-size: 1.3rem;
  font-weight: 700;
  color: #64748b;
}

.captcha-input-wrap {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex: 1;
}

.captcha-input {
  text-align: center !important;
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  color: #0f172a !important;
  border-radius: 9px !important;
  padding: .45rem .5rem !important;
}

.captcha-input.is-invalid {
  border-color: #ef4444 !important;
  background: rgba(239,68,68,.04) !important;
}

.captcha-refresh {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all .18s;
  flex-shrink: 0;
}
.captcha-refresh:hover {
  border-color: #a78bfa;
  color: #7c3aed;
  background: rgba(124,58,237,.06);
  transform: rotate(90deg);
}

/* ── QR code card ──────────────────────────────────────────── */
.qr-card {
  border-radius: 20px;
  border: 2px solid rgba(124,58,237,.15) !important;
  background: linear-gradient(135deg, rgba(124,58,237,.04), rgba(59,130,246,.04));
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 360px;
}

.qr-card img {
  border-radius: 14px;
  border: 3px solid rgba(124,58,237,.15);
  padding: 8px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* ── Setup step indicator ──────────────────────────────────── */
.setup-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
}

.setup-icon-wrap.tg { background: linear-gradient(135deg, rgba(34,158,217,.15), rgba(26,127,181,.1)); color: #229ed9; }
.setup-icon-wrap.wa { background: linear-gradient(135deg, rgba(37,211,102,.15), rgba(18,140,126,.1)); color: #25d366; }
.setup-icon-wrap.ok { background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(5,150,105,.1)); color: #10b981; }
.setup-icon-wrap.err { background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.1)); color: #ef4444; }

/* ── Phones page ───────────────────────────────────────────── */
.phone-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid #f1f5f9;
  margin-bottom: .5rem;
  transition: all .15s;
  background: #fff;
}

.phone-item:hover { border-color: #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.phone-item.active-phone { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.04); }

/* ── Send result ───────────────────────────────────────────── */
.send-result {
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  display: flex; align-items: center; gap: .6rem;
  font-size: .85rem;
  font-weight: 500;
}

.send-result.ok { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.send-result.err { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Misc ──────────────────────────────────────────────────── */
.text-mono { font-family: 'Courier New', monospace; direction: ltr; }
.divider { border-color: rgba(255,255,255,.08); }

.loading-spinner { display: inline-block; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(124,58,237,.15); border-top-color: var(--primary); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state { text-align: center; padding: 3rem 1.5rem; }
.empty-state i { font-size: 3rem; color: #cbd5e1; display: block; margin-bottom: .75rem; }
.empty-state p { color: #94a3b8; font-size: .9rem; margin: 0; }

pre { white-space: pre-wrap; word-break: break-word; background: #f8fafc; border-radius: 8px; padding: .75rem 1rem; font-size: .8rem; }

.spinner-border-sm { width: 1rem !important; height: 1rem !important; border-width: 2px !important; }
