/* Dashboard — main.css */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Mono:wght@400;500&display=swap');

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

:root {
  --accent:        #1686d2;
  --accent-hover:  #1686d2;
  --accent-light:  #EEF2FF;
  --accent-muted:  #61bdec;

  --bg:            #F7F8FC;
  --surface:       #FFFFFF;
  --surface2:      #F1F2F7;
  --border:        rgba(0,0,0,0.08);
  --border2:       rgba(0,0,0,0.14);

  --text1:         #111827;
  --text2:         #6B7280;
  --text3:         #9CA3AF;

  --success-bg:    #ECFDF5; --success:    #059669;
  --danger-bg:     #FEF2F2; --danger:     #DC2626;
  --warn-bg:       #FFFBEB; --warn:       #D97706;
  --info-bg:       #EFF6FF; --info:       #2563EB;

  --radius-sm:     6px;
  --radius:        10px;
  --radius-lg:     14px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:        0 4px 16px rgba(0,0,0,0.08);
  --font:          'DM Sans', system-ui, sans-serif;
  --mono:          'DM Mono', monospace;
}

body {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text1);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/*  LAYOUT  */
.page-wrap { max-width: 1400px; margin: 0 auto; padding: 0 24px 100px 40px; }

/*  LOGIN  */
.login-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EEF2FF 0%, #F7F8FC 60%, #E0E7FF 100%);
  padding: 1.5rem;
}

.login-card {
  background: var(--surface);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  /* background: var(--accent); */
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.4px; }
.logo-text span { color: var(--accent); }

.login-title { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.login-sub   { color: var(--text2); font-size: 13px; margin-bottom: 1.75rem; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.field input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-size: 14px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text1);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  background: #fff;
}

.btn-primary {
  width: 100%;
  height: 42px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, transform 0.1s;
  margin-top: 0.25rem;
}
.btn-primary:hover  { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }

.login-hint { font-size: 11.5px; color: var(--text3); text-align: center; margin-top: 1rem; }

.alert-error {
  font-size: 13px;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 1rem;
  display: none;
}
.alert-error.show { display: block; }
.alert-success {
  font-size: 13px;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(5,150,105,0.2);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 1rem;
  display: none;
}
.alert-success.show { display: block; }

/*  TOPBAR  */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-logo { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; }
.topbar-logo svg { width: 17px; height: 17px; fill: #fff; }
.topbar-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
.topbar-brand span { color: var(--accent); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 4px 12px 4px 6px;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--accent);
}
.user-name { font-size: 13px; font-weight: 500; }
.btn-logout {
  font-size: 12px;
  color: var(--text2);
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-logout:hover { color: var(--text1); border-color: var(--border2); }

/*  STATS  */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 11px; font-weight: 500; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.stat-val   { font-size: 26px; font-weight: 500; font-family: var(--mono); line-height: 1; }
.stat-sub   { font-size: 11.5px; color: var(--text3); margin-top: 4px; }
.stat-answered { color: var(--success); }
.stat-missed   { color: var(--danger); }
.stat-pending  { color: var(--warn); }
.stat-duration { font-size: 21px; }

/*  TOOLBAR  */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.toolbar-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.search-wrap { position: relative; }
.search-icon {
  position: absolute;
  left: 10px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text3);
  pointer-events: none;
}
.search-input {
  width: 230px; height: 38px;
  padding: 0 12px 0 34px;
  font-size: 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text1);
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }

.filter-select {
  height: 38px; padding: 0 28px 0 10px;
  font-size: 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text1);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.btn-export {
  height: 38px; padding: 0 16px;
  background: var(--surface);
  color: var(--text1);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.15s;
}
.btn-export:hover  { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-export:active { transform: scale(0.98); }
.btn-export svg { width: 15px; height: 15px; }

.btn-upload {
  height: 38px; padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.15s, transform 0.1s;
}
.btn-upload:hover  { background: var(--accent-hover); }
.btn-upload:active { transform: scale(0.98); }
.btn-upload svg { width: 15px; height: 15px; fill: #fff; }

/*  TABLE  */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 860px;
}
thead { background: var(--surface2); }
th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  user-select: none;
}
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text1); }
th .sort-arrow { display: inline-block; margin-left: 3px; opacity: 0.35; font-size: 10px; }
th.sorted-asc .sort-arrow::after  { content: '↑'; opacity: 1; color: var(--accent); }
th.sorted-desc .sort-arrow::after { content: '↓'; opacity: 1; color: var(--accent); }
th:not(.sorted-asc):not(.sorted-desc) .sort-arrow::after { content: '↕'; }

td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text1);
  vertical-align: middle;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFBFF; }

.agent-cell { display: flex; align-items: center; gap: 8px; }
.agent-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--accent);
  flex-shrink: 0;
}
.email-cell { color: var(--info); font-size: 12px; }
.phone-cell { font-family: var(--mono); font-size: 12px; }
.duration-cell { font-family: var(--mono); font-size: 12px; color: var(--text2); }

/*  BADGES  */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.65; }
.badge-answered  { background: var(--success-bg); color: var(--success); }
.badge-missed    { background: var(--danger-bg);  color: var(--danger); }
.badge-voicemail { background: var(--warn-bg);    color: var(--warn); }
.badge-callback  { background: var(--info-bg);    color: var(--info); }
.badge-noanswer  { background: var(--surface2);   color: var(--text2); border: 1px solid var(--border2); }
.badge-pending   { background: var(--warn-bg);    color: var(--warn); }
.badge-unknown   { background: var(--surface2);   color: var(--text3); border: 1px solid var(--border2); }
.stat-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-active { background: var(--success-bg); color: var(--success); }
.badge-paused { background: var(--danger-bg);  color: var(--danger); }

/*  ACTION BUTTONS  */
.action-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 11.5px;
  color: var(--text2);
  transition: all 0.15s;
  margin-right: 4px;
}
.action-btn:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.action-btn.delete:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-bg); }
.action-btn svg { width: 12px; height: 12px; }

/*  EMPTY STATE  */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty-title { font-weight: 500; font-size: 15px; margin-bottom: 5px; }
.empty-sub   { font-size: 13px; color: var(--text2); }

/*  PAGINATION  */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface2);
  font-size: 12px;
  color: var(--text2);
}
.page-btns { display: flex; gap: 4px; }
.page-btn {
  height: 30px; min-width: 30px; padding: 0 8px;
  border: 1px solid var(--border2);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text1);
  font-size: 12px;
  transition: all 0.15s;
}
.page-btn:hover:not(:disabled):not(.active) { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/*  MODAL  */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17,24,39,0.45);
  align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  width: 100%; max-width: 480px;
  box-shadow: var(--shadow);
  animation: modal-in 0.18s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.modal-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.modal-sub   { font-size: 12.5px; color: var(--text2); margin-bottom: 1.25rem; }

.drop-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--radius);
  padding: 2.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 1rem;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}
.drop-icon { font-size: 30px; margin-bottom: 10px; }
.drop-text { font-size: 13.5px; color: var(--text2); }
.drop-text strong { color: var(--accent); }
.drop-formats { font-size: 11px; color: var(--text3); margin-top: 4px; }

.file-chosen {
  font-size: 12.5px;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 1rem;
  display: none;
}
.file-chosen.show { display: block; }

.modal-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-cancel {
  height: 38px; padding: 0 16px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: none;
  font-size: 13px;
  color: var(--text1);
  transition: border-color 0.15s;
}
.btn-cancel:hover { border-color: var(--border2); }
.btn-import {
  height: 38px; padding: 0 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  transition: background 0.15s;
}
.btn-import:hover:not(:disabled) { background: var(--accent-hover); }
.btn-import:disabled { opacity: 0.4; cursor: not-allowed; }

.loading-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/*  VIEW / EDIT MODAL  */
.modal-view {
  max-width: 660px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.modal-close-btn {
  width: 28px; height: 28px; flex-shrink: 0; margin-left: 12px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: all 0.15s;
}
.modal-close-btn:hover { color: var(--text1); background: var(--surface2); }
.modal-close-btn svg { width: 14px; height: 14px; }

.modal-section { margin-bottom: 1.2rem; }
.modal-section-title {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-input {
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text1);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #fff;
}

.form-select {
  height: 38px;
  padding: 0 28px 0 10px;
  font-size: 13px;
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text1);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-textarea {
  width: 100%;
  padding: 9px 10px;
  font-size: 13px;
  font-family: var(--font);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--text1);
  outline: none;
  resize: vertical;
  min-height: 76px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
  background: #fff;
}
.form-textarea.transcription-box {
  min-height: 130px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.65;
}

.btn-save {
  height: 38px; padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-save:hover:not(:disabled) { background: var(--accent-hover); }
.btn-save:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-danger {
  height: 38px; padding: 0 20px;
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }

.settings-card--danger { border-color: #fca5a5; }

/*  PAGE NAV  */
.page-nav {
  display: flex;
  gap: 2px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-tab svg { width: 14px; height: 14px; }
.nav-tab:hover { color: var(--text1); }
.nav-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/*  SETTINGS  */
.settings-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.settings-card-header { margin-bottom: 24px; }
.settings-card-title { font-size: 16px; font-weight: 600; color: var(--text1); margin-bottom: 4px; }
.settings-card-sub { font-size: 13px; color: var(--text2); }
.settings-actions { margin-top: 24px; display: flex; justify-content: flex-end; }

.alert-success {
  display: none; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  background: var(--success-bg); color: var(--success);
  margin-bottom: 16px;
}
.alert-success.show { display: block; }

/*  AGENTS  */
.code-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--accent);
  letter-spacing: 0.2px;
}
.code-input {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2px;
}
.code-input[readonly] {
  background: var(--surface2);
  color: var(--text2);
  cursor: default;
}
.script-preview {
  color: var(--text2);
  font-size: 12.5px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.form-textarea.script-box {
  min-height: 180px;
  font-size: 13px;
  line-height: 1.7;
}
.field-hint {
  font-size: 10px;
  font-weight: 400;
  color: var(--text3);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
}

/*  RESPONSIVE  */
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .search-input { width: 160px; }
  .topbar-right .user-name { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-wrap { padding: 0 12px 30px; }
}

footer {
  position: fixed;
  margin: 50px 0 0;
  bottom:0;
  width: 100%;
  background-color: #f7f8fc;
  padding: 20px;
}
footer p {
  font-size:12px;
  text-align: center;
}