@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   WhatsApp Rotator - Bold Awwwards UI
   Dials: ENERGY 3 / RHYTHM 3 / MOTION 2
   Palette: charcoal base + electric lime accent
   Reason R-29: 2 core + 1 accent, control-room identity
   Reason R-21: dark base for operator tool, long sessions
   ============================================ */

:root {
  --base: #0c0d10;
  --surface: #161719;
  --surface-2: #1c1e22;
  --border: #232428;
  --border-light: #2e3035;
  --text: #f5f5f5;
  --text-muted: #8a8d93;
  --text-dim: #5a5d63;
  --accent: #d4ff3a;
  --accent-dim: #a8cc2e;
  --accent-glow: rgba(212, 255, 58, 0.15);
  --success: #4ade80;
  --danger: #f87171;
  --warning: #fbbf24;
  --radius: 4px;
  --radius-lg: 8px;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --sidebar-w: 240px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--base);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--base);
}

/* FOCUS STATE (R-32: visible focus indicator) */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#app {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR - slim, icon-driven, expands on hover
   Reason R-05: not a generic 4-col template, content-driven
   ============================================ */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  overflow: hidden;
}

.logo {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius);
  position: relative;
}

.logo-mark svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  white-space: nowrap;
}

.logo-text h2 {
  font-family: var(--font-head);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  flex: 1;
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  border-left: 2px solid transparent;
  white-space: nowrap;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--surface-2);
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav-label {
  white-space: nowrap;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}

.sse-status {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.sse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sse-status.connected {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
}

.sse-status.connected .sse-dot {
  background: var(--success);
  animation: pulse-dot 2s infinite;
}

.sse-status.disconnected {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
}

.sse-status.disconnected .sse-dot {
  background: var(--danger);
}

.sse-text {
  white-space: nowrap;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================
   MAIN CONTENT - wide, asymmetric breathing room
   ============================================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 0;
  min-height: 100vh;
}

.page {
  display: none;
  padding: 32px 40px 48px;
  max-width: 1400px;
}

.page.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PAGE HEADER - bold, asymmetric */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

h1 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
}

h1 .accent {
  color: var(--accent);
}

h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* ============================================
   STATS - bold numbers, varied sizes (R-14: not identical cards)
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition);
}

.stat-card:hover {
  border-color: var(--border-light);
}

.stat-card.featured {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-color: var(--accent-dim);
}

.stat-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.stat-value {
  font-family: var(--font-head);
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card.featured .stat-value {
  color: var(--accent);
  font-size: 56px;
}

.stat-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 8px;
}

.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.mini-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-stat strong {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 18px;
}

/* ============================================
   CARDS - varied composition (R-05, R-14)
   ============================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.card-inner {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  margin-bottom: 24px;
}

/* ============================================
   TABLES - dense data, readable
   ============================================ */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
table th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.data-table td,
table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover {
  background: var(--surface-2);
}

/* ============================================
   BUTTONS - specific CTAs (R-15), not generic
   ============================================ */
.btn {
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
  background: var(--surface-2);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--border-light);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

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

.btn-lg {
  padding: 14px 36px;
  font-size: 15px;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: var(--base);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-success {
  background: var(--success);
  color: var(--base);
  border-color: var(--success);
}

.btn-warning {
  background: var(--warning);
  color: var(--base);
  border-color: var(--warning);
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.3);
}

.btn-danger:hover {
  background: rgba(248, 113, 113, 0.1);
  border-color: var(--danger);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

/* ============================================
   ACCOUNTS - grid with varied content
   ============================================ */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
}

.account-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.account-card .acc-label {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.account-card .acc-phone {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.account-card .acc-status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-connected {
  background: rgba(74, 222, 128, 0.12);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-disconnected {
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.15);
}

.status-qr_ready {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-banned {
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.account-card .acc-qr {
  width: 100%;
  max-width: 180px;
  border-radius: var(--radius);
  margin: 8px auto;
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
}

.account-card .acc-qr:hover {
  border-color: var(--accent);
}

.account-card .acc-actions {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.account-card .acc-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
}

.account-card .acc-stats strong {
  color: var(--text);
  font-family: var(--font-head);
}

/* ============================================
   TEMPLATES - list with varied layout
   ============================================ */
.templates-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.template-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  transition: border-color var(--transition);
}

.template-item:hover {
  border-color: var(--border-light);
}

.template-item .tpl-info {
  min-width: 0;
}

.template-item .tpl-name {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.template-item .tpl-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.template-item .tpl-body {
  font-size: 13px;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 80px;
  overflow: hidden;
  background: var(--base);
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  line-height: 1.6;
}

.template-item .tpl-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.badge {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.badge-active {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
  border-color: rgba(74, 222, 128, 0.2);
}

.badge-inactive {
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  border-color: rgba(248, 113, 113, 0.15);
}

.badge-uc {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: rgba(212, 255, 58, 0.2);
}

/* ============================================
   FORMS
   ============================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  font-family: 'Consolas', 'Space Grotesk', monospace;
  line-height: 1.6;
}

/* ============================================
   MODAL
   ============================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}

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

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.25s ease;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-lg {
  width: 720px;
  max-width: 95%;
}

.modal-sm {
  width: 380px;
  max-width: 95%;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* ============================================
   ROTATOR - the focal point of the app
   ============================================ */
.rotator-status-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.rotator-indicator {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rotator-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.rotator-indicator.running {
  background: rgba(212, 255, 58, 0.1);
  color: var(--accent);
  border: 1px solid rgba(212, 255, 58, 0.2);
}

.rotator-indicator.running::before {
  background: var(--accent);
  animation: pulse-dot 1.5s infinite;
}

.rotator-indicator.paused {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
}

.rotator-indicator.paused::before {
  background: var(--warning);
}

.rotator-info {
  font-size: 14px;
  color: var(--text-muted);
}

.rotator-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.progress-bar-wrap {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 28px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.progress-bar {
  background: var(--accent);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  color: var(--base);
  transition: width 0.4s ease;
  min-width: 44px;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2));
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { transform: translateX(30px); }
  to { transform: translateX(0); }
}

.progress-stats {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.progress-stats strong {
  color: var(--accent);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

/* ============================================
   LIVE ACTIVITY
   ============================================ */
.live-activity {
  max-height: 360px;
  overflow-y: auto;
}

.activity-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: center;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.activity-time {
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 12px;
  flex-shrink: 0;
}

.activity-status {
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius);
  flex-shrink: 0;
  font-weight: 600;
  text-transform: uppercase;
}

/* ============================================
   PREVIEW
   ============================================ */
.preview-box {
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-family: 'Consolas', var(--font-body);
  font-size: 13px;
  white-space: pre-wrap;
  color: var(--text);
  min-height: 60px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ============================================
   EMPTY STATE (R-27)
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.empty-state h4 {
  font-size: 16px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   MISC
   ============================================ */
.muted {
  color: var(--text-muted);
  font-size: 12px;
}

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

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.info-grid strong {
  color: var(--text);
  font-family: var(--font-head);
}

select {
  padding: 8px 12px;
  background: var(--base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--base);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ============================================
   RESPONSIVE (R-03: mobile must be perfect)
   ============================================ */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-w);
  }
  .main-content {
    margin-left: var(--sidebar-w);
  }
  .page {
    padding: 24px 20px 32px;
  }
  h1 {
    font-size: 28px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-card.featured .stat-value {
    font-size: 40px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-actions {
    width: 100%;
  }
  .rotator-controls {
    flex-direction: column;
  }
  .rotator-controls .btn {
    width: 100%;
    justify-content: center;
  }
  .template-item {
    grid-template-columns: 1fr;
  }
  .progress-stats {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .accounts-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-lg, .modal-sm {
    width: 95%;
    margin: 10px;
  }
  .btn {
    min-height: 44px;
  }
}
