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

body {
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e8eaf0;
  background: #0b0d17;
  overflow-x: hidden;
}

canvas#bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── LOGIN ── */
.login-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.6s cubic-bezier(.22,1,.36,1);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(168,85,247,0.25));
  color: #a78bfa;
}

.login-card h1 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.subtitle {
  text-align: center;
  font-size: 0.85rem;
  color: #7a7c8a;
  margin-bottom: 1.75rem;
}

.input-group {
  position: relative;
  margin-bottom: 1rem;
}

.input-group .input-icon {
  position: absolute;
  left: 14px; top: 50%; transform: translateY(-50%);
  color: #555;
  pointer-events: none;
  transition: color 0.2s;
}

.input-group input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 2.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.input-group input:focus {
  border-color: rgba(99,102,241,0.6);
  background: rgba(99,102,241,0.08);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.input-group input:focus ~ .input-icon,
.input-group input:focus + .input-icon {
  color: #a78bfa;
}

.input-group input::placeholder { color: #555; }

.toggle-pass {
  position: absolute;
  right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #666; padding: 8px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, background 0.2s;
  z-index: 3;
}
.toggle-pass:hover { color: #a78bfa; background: rgba(255,255,255,0.08); }

.btn-primary {
  width: 100%;
  padding: 0.85rem;
  margin-top: 0.5rem;
  border: none; border-radius: 12px;
  font-size: 0.95rem; font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.25s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(99,102,241,0.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(0.97); }

.error {
  margin-top: 0.75rem;
  min-height: 1.3em;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  color: #f87171;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}

.footer {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: #444;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   NOTES PAGE
   ═══════════════════════════════════════════ */
.page-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.notes-card {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: cardIn 0.5s cubic-bezier(.22,1,.36,1);
  margin-top: 2vh;
}

.notes-header { margin-bottom: 1.25rem; }

.notes-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notes-title-row h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.section-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 0.5rem 0 0.75rem;
}

.btn-add-admin {
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.btn-add-admin:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}

.btn-back-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(99,102,241,0.2);
  background: rgba(99,102,241,0.08);
  color: #a78bfa;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-back-sm:hover { background: rgba(99,102,241,0.18); transform: scale(1.05); }

.btn-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.7rem;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-tab:hover { color: #ccc; border-color: rgba(255,255,255,0.15); }
.btn-tab.active {
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
  border-color: rgba(99,102,241,0.3);
}

.btn-with-label {
  width: auto;
  padding: 0 0.75rem;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-logout-sm {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(248,113,113,0.2);
  background: rgba(248,113,113,0.08);
  color: #f87171;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
}
.btn-logout-sm:hover { background: rgba(248,113,113,0.18); transform: scale(1.05); }

.notes-subtitle {
  font-size: 0.82rem;
  color: #666;
  margin-top: 0.3rem;
}

/* Input area */
.note-input-area {
  margin-bottom: 1rem;
}

.note-input-area textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 70px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.note-input-area textarea:focus {
  border-color: rgba(99,102,241,0.5);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

.note-input-area textarea::placeholder { color: #555; }

.btn-add {
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem;
  border: none; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform 0.15s, box-shadow 0.25s;
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }
.btn-add:active { transform: scale(0.97); }

/* Filters */
.notes-filters {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.filter-btn {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #888;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { color: #ccc; border-color: rgba(255,255,255,0.15); }
.filter-btn.active {
  background: rgba(99,102,241,0.2);
  color: #a5b4fc;
  border-color: rgba(99,102,241,0.3);
}

/* Notes list */
.notes-list {
  max-height: 45vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 4px;
  margin-bottom: 0.75rem;
}

.notes-list::-webkit-scrollbar { width: 4px; }
.notes-list::-webkit-scrollbar-track { background: transparent; }
.notes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
}
.empty-icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.empty-hint { font-size: 0.78rem; color: #444; margin-top: 0.25rem; }

/* Single note */
.note-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s, opacity 0.3s, transform 0.3s;
  animation: noteIn 0.3s ease;
}

@keyframes noteIn {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.note-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

.note-item.done { opacity: 0.45; }
.note-item.done .note-text { text-decoration: line-through; color: #666; }

.note-check {
  width: 22px; height: 22px;
  min-width: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
  color: transparent;
}
.note-check:hover { border-color: #6366f1; }
.note-item.done .note-check {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}

.note-text {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #d1d5db;
  word-break: break-word;
}

.note-delete {
  width: 28px; height: 28px;
  min-width: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  margin-top: -2px;
}
.note-delete:hover { background: rgba(248,113,113,0.15); color: #f87171; }

/* Footer */
.notes-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.notes-footer span {
  font-size: 0.78rem;
  color: #555;
}

.btn-clear {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #888;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-clear:hover { background: rgba(248,113,113,0.1); color: #f87171; border-color: rgba(248,113,113,0.2); }

/* ═══════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════ */
.admin-card { border-top: 3px solid #f59e0b; }

.admin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.admin-stats .stat-card { border-color: rgba(245,158,11,0.12); }
.stat-online .stat-num { color: #34d399; }

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ccc;
}

.btn-refresh {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #888;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-refresh:hover { color: #f59e0b; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }

.users-list {
  max-height: 45vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 4px;
  margin-bottom: 0.75rem;
}

.users-list::-webkit-scrollbar { width: 4px; }
.users-list::-webkit-scrollbar-track { background: transparent; }
.users-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.loading-state {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: #f59e0b;
  border-radius: 50%;
  margin: 0 auto 0.5rem;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* User item */
.user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  transition: background 0.2s, border-color 0.2s;
  animation: noteIn 0.3s ease;
}

.user-item:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.user-me { border-color: rgba(245,158,11,0.25); background: rgba(245,158,11,0.04); }

.user-avatar {
  width: 38px; height: 38px;
  min-width: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #6366f1, #818cf8);
}

.user-me .user-avatar { background: linear-gradient(135deg, #f59e0b, #fbbf24); }

.user-info { flex: 1; min-width: 0; }

.user-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 2px;
}

.user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(245,158,11,0.2);
  color: #fbbf24;
  vertical-align: middle;
}

.user-creds {
  font-size: 0.78rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cred-label { color: #666; }
.cred-value { color: #b0b0c0; font-family: 'JetBrains Mono', Menlo, monospace; font-size: 0.76rem; }
.cred-sep { color: #444; margin: 0 0.1rem; }

.user-page {
  margin-top: 3px;
  font-size: 0.72rem;
  color: #666;
}

/* Add user form */
.add-user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.add-user-form input {
  flex: 1 1 120px;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.add-user-form input:focus {
  border-color: rgba(245,158,11,0.5);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}

.add-user-form input::placeholder { color: #555; }

.add-user-form .btn-add {
  flex: 0 0 auto;
  width: auto;
  padding: 0.65rem 1.1rem;
  margin-top: 0;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  font-size: 0.85rem;
}

.add-user-form .btn-add:hover {
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
}

.add-error {
  width: 100%;
  min-height: 1em;
  font-size: 0.82rem;
  color: #f87171;
  text-align: center;
}

.add-success {
  width: 100%;
  min-height: 1em;
  font-size: 0.82rem;
  color: #34d399;
  text-align: center;
}

/* ═══════════════════════════════════════════
   MODAL — user notes
   ═══════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.open { display: flex; }

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

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: rgba(20,22,34,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(.22,1,.36,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header { margin-bottom: 1rem; }

.modal-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-row h2 {
  font-size: 1.15rem;
  color: #fff;
}

.btn-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #888;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}

.btn-close:hover { color: #f87171; background: rgba(248,113,113,0.1); }

.modal-subtitle {
  font-size: 0.78rem;
  color: #666;
  margin-top: 0.3rem;
}

.modal-notes {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 4px;
  min-height: 60px;
}

.modal-notes::-webkit-scrollbar { width: 4px; }
.modal-notes::-webkit-scrollbar-track { background: transparent; }
.modal-notes::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.modal-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.8rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  animation: noteIn 0.3s ease;
}

.modal-note.done { opacity: 0.4; }
.modal-note.done .note-text { text-decoration: line-through; color: #666; }

.modal-note .note-check {
  width: 20px; height: 20px; min-width: 20px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.12);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  color: transparent;
}
.modal-note .note-check:hover { border-color: #6366f1; }
.modal-note.done .note-check {
  background: #6366f1; border-color: #6366f1; color: #fff;
}

.modal-note .note-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #ccc;
  word-break: break-word;
}

.modal-note .note-delete {
  width: 26px; height: 26px; min-width: 26px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-note .note-delete:hover { background: rgba(248,113,113,0.15); color: #f87171; }

.modal-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #555;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 0.6rem;
}

.modal-footer span {
  font-size: 0.75rem;
  color: #555;
}

/* User item clickable */
.user-item { cursor: pointer; }
.user-item:active { transform: scale(0.99); }

.btn-delete-user {
  width: 30px; height: 30px; min-width: 30px;
  border-radius: 8px;
  border: 1px solid rgba(248,113,113,0.15);
  background: transparent;
  color: #666;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  align-self: center;
}
.btn-delete-user:hover { color: #f87171; background: rgba(248,113,113,0.12); border-color: rgba(248,113,113,0.3); }

/* Search */
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.search-icon { color: #555; min-width: 15px; }

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: #ddd;
  font-size: 0.85rem;
  outline: none;
}

.search-bar input::placeholder { color: #555; }

.search-count {
  font-size: 0.72rem;
  color: #666;
  min-width: 20px;
  text-align: right;
}

/* Section actions */
.section-actions {
  display: flex;
  gap: 0.35rem;
}

.btn-action {
  width: 28px; height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #888;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-action:hover { color: #a78bfa; border-color: rgba(167,139,250,0.3); background: rgba(167,139,250,0.08); }

/* Note badge */
.note-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
  margin-left: 0.35rem;
  vertical-align: middle;
}

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-stats .stat-card { padding: 0.7rem 0.3rem; }
.stat-notes .stat-num { color: #a78bfa; }
.stat-online .stat-num { color: #34d399; }
.stat-done .stat-num { color: #fbbf24; }

@media (max-width: 420px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Broadcast */
.broadcast-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.broadcast-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 60px;
}

.broadcast-form textarea:focus {
  border-color: rgba(167,139,250,0.5);
}

.broadcast-form textarea::placeholder { color: #555; }

.btn-broadcast-send {
  padding: 0.7rem;
  border: none; border-radius: 12px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  transition: transform 0.15s, box-shadow 0.25s;
}

.btn-broadcast-send:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(99,102,241,0.35); }

/* Modal actions */
.modal-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.btn-modal-action {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-modal-action:hover { background: rgba(255,255,255,0.1); }
