/* ═══════════════════════════════════════════════════════════════════
   supp0rt.tech mail — Neon Glass Dark Theme
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --bg:           #04020e;
  --glass:        rgba(8, 2, 28, 0.55);
  --glass-hi:     rgba(14, 4, 44, 0.50);
  --border:       rgba(0, 255, 136, 0.28);
  --border-hi:    rgba(0, 255, 136, 0.65);
  --green:        #00ff88;
  --green-dim:    #00cc6a;
  --green-glow:   rgba(0, 255, 136, 0.22);
  --purple:       #7c3aed;
  --purple-bright:#a855f7;
  --purple-dark:  rgba(18, 0, 52, 0.72);
  --text:         #d4ffe8;
  --text-dim:     #6abf90;
  --text-muted:   #2e5a42;
  --hover:        rgba(0, 255, 136, 0.10);
  --selected:     rgba(0, 255, 136, 0.16);
  --danger:       #ff4477;
  --radius:       10px;
  --blur:         blur(20px) saturate(180%);
  --topbar-h:     52px;
  --sidebar-w:    220px;
  --list-w:       320px;
  --transition:   0.18s ease;
}

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

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* ── NEON BACKGROUND GLOWS ─────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 10% 0%,    rgba(124, 58, 237, 0.55) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 90% 100%,  rgba(0,  255, 136, 0.22) 0%, transparent 58%),
    radial-gradient(ellipse 40% 40% at 80% 10%,   rgba(124, 58, 237, 0.20) 0%, transparent 55%),
    radial-gradient(ellipse 35% 35% at 20% 90%,   rgba(0,  255, 136, 0.12) 0%, transparent 55%),
    #04020e;
}

body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 30% 25% at 50% 50%, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
}

/* ── UTILITIES ─────────────────────────────────────────────────── */

.hidden { display: none !important; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); box-shadow: 0 0 8px rgba(0,255,136,0.6); }

a { color: var(--green); text-decoration: none; }
button { cursor: pointer; font: inherit; }

/* ── VIEWS ─────────────────────────────────────────────────────── */
.view { width: 100%; height: 100%; }

/* ── LOGIN ─────────────────────────────────────────────────────── */
#view-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  width: 100%;
  max-width: 420px;
  padding: 48px 40px;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(0,255,136,0.14),
    0 16px 70px rgba(0,0,0,0.70),
    0 0 100px rgba(124,58,237,0.25),
    0 0 40px  rgba(0,255,136,0.08);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
  justify-content: center;
}

.logo-icon {
  font-size: 2em;
  line-height: 1;
}

.logo-icon i {
  color: var(--green);
  filter: drop-shadow(0 0 12px rgba(0,255,136,0.9)) drop-shadow(0 0 28px rgba(0,255,136,0.5));
}

.logo-text {
  font-size: 1.4em;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.logo-dot { color: var(--green); text-shadow: 0 0 10px rgba(0,255,136,0.7); }

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(0,255,136,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-size: 0.95em;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.16), 0 0 20px rgba(0,255,136,0.14);
  background: rgba(0,255,136,0.08);
}

.field input::placeholder { color: var(--text-muted); }

.btn-primary {
  background: linear-gradient(135deg, rgba(0,255,136,0.20), rgba(0,180,80,0.12));
  border: 1px solid var(--green);
  color: var(--green);
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.04em;
  box-shadow: 0 0 20px rgba(0,255,136,0.22), inset 0 0 20px rgba(0,255,136,0.04);
  transition: all var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(0,255,136,0.35), rgba(0,200,90,0.25));
  box-shadow: 0 0 40px rgba(0,255,136,0.50), 0 0 80px rgba(0,255,136,0.20), inset 0 0 20px rgba(0,255,136,0.08);
  color: #fff;
  text-shadow: 0 0 10px rgba(0,255,136,1);
}

.btn-primary:active { transform: scale(0.98); }

.btn-block { width: 100%; margin-top: 8px; padding: 13px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 9px 16px;
  transition: all var(--transition);
}

.btn-ghost:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,136,0.20);
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9em;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}

.icon-btn:hover {
  color: var(--green);
  background: var(--hover);
  box-shadow: 0 0 10px rgba(0,255,136,0.15);
}

.icon-btn:hover i,
.icon-btn:focus-visible i {
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.70));
}

#btn-delete:hover i {
  color: var(--danger);
  filter: drop-shadow(0 0 6px rgba(255,68,119,0.70));
}

.btn-primary i, .btn-ghost i { margin-right: 3px; }

.error-msg {
  background: rgba(255,68,119,0.10);
  border: 1px solid rgba(255,68,119,0.40);
  color: #ff99bb;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 0.88em;
  margin-bottom: 12px;
}

/* ── TOP BAR ───────────────────────────────────────────────────── */
#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: rgba(4, 1, 16, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 30px rgba(124,58,237,0.18), 0 0 60px rgba(0,255,136,0.05);
  gap: 12px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-logo {
  font-weight: 800;
  font-size: 1.05em;
  color: var(--text);
  white-space: nowrap;
}

.app-logo i {
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.6));
  margin-right: 4px;
}

.logo-domain {
  color: var(--green);
  text-shadow: 0 0 14px rgba(0,255,136,0.6);
}

.topbar-center { flex: 1; max-width: 480px; }

#search-wrap { position: relative; }

#search-input {
  width: 100%;
  background: rgba(0,255,136,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font: inherit;
  padding: 7px 14px 7px 34px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 16px rgba(0,255,136,0.18);
}

#search-input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  font-size: 0.9em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  position: relative;
  cursor: pointer;
}

#user-label {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0,255,136,0.07);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.82em;
  color: var(--text-dim);
  transition: all var(--transition);
}

.user-chip:hover #user-label {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 14px rgba(0,255,136,0.22);
}

.user-dropdown {
  position: absolute;
  right: 0; top: calc(100% + 6px);
  min-width: 150px;
  border-radius: 10px;
  overflow: hidden;
  display: none;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 20px rgba(124,58,237,0.20);
  z-index: 200;
}

.user-chip:hover .user-dropdown { display: block; }

.user-dropdown button {
  display: block; width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  text-align: left;
  font: inherit;
  transition: background var(--transition), color var(--transition);
}

.user-dropdown button i {
  margin-right: 6px;
  width: 14px;
  text-align: center;
}

.user-dropdown button:hover {
  background: var(--hover);
  color: var(--green);
}

/* ── MAIN LAYOUT ───────────────────────────────────────────────── */
#view-app { display: flex; flex-direction: column; height: 100%; }

#main-layout {
  display: flex;
  margin-top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  overflow: hidden;
}

/* ── SIDEBAR ───────────────────────────────────────────────────── */
#sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  border-radius: 0;
  border-top: none; border-left: none; border-bottom: none;
  overflow-y: auto;
  transition: width var(--transition), min-width var(--transition);
  background: var(--purple-dark);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: inset -1px 0 0 var(--border), 2px 0 20px rgba(124,58,237,0.12);
}

#sidebar.collapsed {
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.sidebar-section { padding: 16px 0; }

.sidebar-label {
  font-size: 0.68em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 0 16px 10px;
}

#folder-list { list-style: none; }

#folder-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  cursor: pointer;
  color: var(--text-dim);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-left: 3px solid transparent;
}

#folder-list li:hover {
  background: var(--hover);
  color: var(--text);
}

#folder-list li.active {
  background: var(--selected);
  color: var(--green);
  border-left-color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
  box-shadow: inset 0 0 20px rgba(0,255,136,0.06);
}

.folder-icon {
  margin-right: 10px;
  width: 16px;
  text-align: center;
}

.folder-icon i {
  color: var(--text-muted);
  font-size: 0.9em;
  transition: color var(--transition), filter var(--transition);
}

#folder-list li:hover .folder-icon i { color: var(--text-dim); }

#folder-list li.active .folder-icon i {
  color: var(--green);
  filter: drop-shadow(0 0 5px rgba(0,255,136,0.70));
}

.folder-name { flex: 1; font-size: 0.9em; }

.folder-badge {
  background: var(--green);
  color: #04020e;
  font-size: 0.68em;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,255,136,0.6);
  animation: pulse-badge 2.5s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 6px rgba(0,255,136,0.5); }
  50%       { box-shadow: 0 0 16px rgba(0,255,136,1.0); }
}

/* ── MESSAGE LIST ──────────────────────────────────────────────── */
#msg-list-pane {
  width: var(--list-w);
  min-width: var(--list-w);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  background: rgba(4, 1, 14, 0.50);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

#msg-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(6, 1, 22, 0.90);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#msg-list-title {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,136,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#msg-list-scroll { flex: 1; overflow-y: auto; }
#msg-list { list-style: none; }

#msg-list li {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,255,136,0.07);
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}

#msg-list li:hover { background: var(--hover); }

#msg-list li.selected {
  background: var(--selected);
  border-left: 3px solid var(--green);
  box-shadow: inset 0 0 20px rgba(0,255,136,0.06);
}

#msg-list li.unread .msg-sender,
#msg-list li.unread .msg-subject {
  font-weight: 700;
  color: var(--text);
}

#msg-list li.unread::before {
  content: '';
  position: absolute;
  left: 5px; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green), 0 0 16px rgba(0,255,136,0.5);
}

.msg-sender {
  font-size: 0.88em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.msg-subject {
  font-size: 0.85em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.msg-date {
  font-size: 0.72em;
  color: var(--text-muted);
}

.msg-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#msg-list-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
}

#msg-list-pagination button {
  background: rgba(0,255,136,0.06);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.82em;
  transition: all var(--transition);
}

#msg-list-pagination button:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 10px rgba(0,255,136,0.18);
}

#msg-list-pagination button.active {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,136,0.28);
}

/* ── READING PANE ──────────────────────────────────────────────── */
#read-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: rgba(3, 1, 10, 0.35);
}

#read-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 14px;
}

.placeholder-icon i {
  font-size: 3.5rem;
  color: rgba(0,255,136,0.18);
  filter: drop-shadow(0 0 20px rgba(0,255,136,0.25));
}

#read-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

#read-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  border-left: none; border-right: none; border-top: none;
  background: rgba(8, 2, 32, 0.80);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  flex-shrink: 0;
}

#read-subject {
  font-size: 1.18em;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 14px rgba(0,255,136,0.40);
  margin-bottom: 10px;
  line-height: 1.3;
}

#read-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.83em;
}

#read-meta > div { display: flex; gap: 8px; }

.meta-label {
  color: var(--text-muted);
  min-width: 36px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#read-toolbar { display: flex; gap: 4px; flex-wrap: wrap; }

#read-toolbar .icon-btn {
  font-size: 0.82em;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
}

#read-toolbar .icon-btn:hover { border-color: var(--green); }

#read-toolbar .icon-btn i { margin-right: 4px; }

#read-body-wrap {
  flex: 1;
  overflow: hidden;
  background: #fff;
}

#read-body-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
}

#read-attachments {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  border-radius: 0;
  flex-shrink: 0;
}

.attach-label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

#attach-list { display: flex; flex-wrap: wrap; gap: 8px; }

.attach-item {
  background: rgba(0,255,136,0.07);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.82em;
  color: var(--text-dim);
}

.attach-item i {
  color: var(--green);
  margin-right: 5px;
}

/* ── COMPOSE MODAL ─────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2,1,10,0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 20px 90px rgba(0,0,0,0.75),
    0 0 50px rgba(124,58,237,0.20),
    0 0 0 1px rgba(0,255,136,0.12);
  overflow: hidden;
}

.modal-box.modal-wide   { max-width: 760px; }
.modal-box.modal-narrow { max-width: 420px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(10, 2, 38, 0.96);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--green);
  font-size: 0.95em;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(0,255,136,0.4);
  flex-shrink: 0;
}

.modal-body {
  padding: 16px 18px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compose-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(0,255,136,0.08);
  padding-bottom: 8px;
}

.compose-row label {
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  min-width: 52px;
}

.compose-row input,
.compose-row select {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.92em;
  outline: none;
}

.compose-row input::placeholder { color: var(--text-muted); }

.compose-row select option {
  background: #0c0126;
  color: var(--text);
}

.compose-body-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 4px;
}

#compose-toolbar-fmt {
  display: flex;
  gap: 2px;
  padding: 6px 8px;
  background: rgba(0,255,136,0.04);
  border-bottom: 1px solid var(--border);
}

#compose-toolbar-fmt button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.9em;
  transition: all var(--transition);
}

#compose-toolbar-fmt button:hover {
  border-color: var(--border);
  color: var(--green);
  background: var(--hover);
  box-shadow: 0 0 8px rgba(0,255,136,0.12);
}

#compose-body {
  flex: 1;
  padding: 12px 14px;
  background: rgba(0,255,136,0.02);
  color: var(--text);
  outline: none;
  font-size: 0.92em;
  line-height: 1.6;
  overflow-y: auto;
  min-height: 180px;
}

.modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(6, 1, 24, 0.92);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

#send-status {
  font-size: 0.82em;
  color: var(--green);
  margin-left: auto;
}

#send-status.error { color: var(--danger); }

/* ── LOADING STATE ─────────────────────────────────────────────── */
body.loading::after {
  content: '';
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 999;
}

/* ── SPINNER ───────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(0,255,136,0.15);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88em;
}

/* ── ADMIN PANEL ───────────────────────────────────────────────── */
.admin-body {
  gap: 16px;
  max-height: 75vh;
  overflow-y: auto;
}

.glass-inner {
  background: rgba(0,255,136,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: inset 0 0 30px rgba(124,58,237,0.05);
}

.admin-section-title {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,136,0.40);
  margin-bottom: 14px;
  font-weight: 700;
}

.admin-section-title i { margin-right: 6px; opacity: 0.85; }

.admin-subsection {
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 14px 0 10px;
}

.admin-hint {
  font-size: 0.78em;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Quota bar */
.quota-bar-wrap { margin: 10px 0 6px; }

.quota-bar {
  height: 8px;
  background: rgba(0,255,136,0.08);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #00aaff);
  box-shadow: 0 0 10px rgba(0,255,136,0.6);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.quota-fill.warn   { background: linear-gradient(90deg, #ffaa00, #ff6600); box-shadow: 0 0 10px rgba(255,170,0,0.5); }
.quota-fill.danger { background: linear-gradient(90deg, #ff4477, #ff0000); box-shadow: 0 0 10px rgba(255,68,119,0.5); }

.quota-label { font-size: 0.78em; color: var(--text-dim); }

/* User list */
#admin-user-list,
#admin-identity-list { margin-bottom: 4px; }

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,255,136,0.07);
  gap: 10px;
}

.user-row:last-child { border-bottom: none; }

.user-row-email {
  flex: 1;
  font-size: 0.88em;
  color: var(--text);
}

.user-row-badge {
  font-size: 0.68em;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.user-row-badge.admin {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 8px rgba(0,255,136,0.2);
}

.user-row-actions { display: flex; gap: 6px; }

.user-row-actions button {
  font-size: 0.75em;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  transition: all var(--transition);
}

.user-row-actions button:hover    { border-color: var(--green);  color: var(--green);  box-shadow: 0 0 8px rgba(0,255,136,0.18); }
.user-row-actions button.del:hover{ border-color: var(--danger); color: var(--danger); box-shadow: 0 0 8px rgba(255,68,119,0.18); }

/* Add user/identity form */
.admin-add-form { margin-top: 4px; }

.admin-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.admin-form-row input {
  flex: 1;
  min-width: 160px;
  padding: 8px 12px;
  background: rgba(0,255,136,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  font-size: 0.88em;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-form-row input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,136,0.16);
}

.admin-form-row input::placeholder { color: var(--text-muted); }

/* Change-password label */
#chpass-email-label {
  color: var(--text-dim);
  margin-bottom: 12px;
  font-size: .88em;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --list-w: 260px; --sidebar-w: 180px; }
}

@media (max-width: 680px) {
  #sidebar { position: fixed; left: 0; top: var(--topbar-h); bottom: 0; z-index: 50; }
  #msg-list-pane { min-width: 100%; }
  #read-pane { display: none; }
  #read-pane.mobile-show { display: flex; position: fixed; inset: var(--topbar-h) 0 0; z-index: 60; }
}
