/* ---- Reset & Foundation ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --accent: #2DB1E6;
  --accent-light: #5ec8f0;
  --accent-bg: rgba(45,177,230,0.08);
  --surface-0: #ffffff;
  --surface-1: #f8f9fa;
  --surface-2: #f1f3f5;
  --surface-3: #e9ecef;
  --surface-4: #dee2e6;
  --border: #e2e5e9;
  --border-hover: #ced4da;
  --text-1: #1a1a2e;
  --text-2: #495057;
  --text-3: #868e96;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --danger: #e03131;
  --danger-bg: rgba(224,49,49,0.06);
  --danger-border: rgba(224,49,49,0.2);
  --success: #2f9e44;
}

body {
  font-family: 'DM Sans', 'Sora', sans-serif;
  background: var(--surface-1);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Sidebar ---- */
.sidebar {
  width: 260px;
  background: var(--surface-0);
  border-right: 1px solid var(--border);
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 24px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.sidebar-brand svg { fill: var(--accent); }
.sidebar-nav {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text-3);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  position: relative;
}
.nav-item:hover {
  color: var(--text-2);
  background: var(--surface-2);
}
.nav-item.is-active {
  color: var(--accent);
  background: var(--accent-bg);
}
.nav-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

/* Sidebar user section */
.sidebar-user {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-avatar svg { width: 18px; height: 18px; color: var(--accent); }
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user-role {
  font-size: 11px;
  color: var(--text-3);
}

/* ---- Main ---- */
.main {
  flex: 1;
  margin-left: 260px;
  padding: 40px;
  min-height: 100vh;
}

/* ---- Pages ---- */
.page { display: none; }
.page.is-active { display: block; }

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.page-header h1 {
  font-family: 'Sora', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-1);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.btn:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  color: var(--text-1);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover {
  opacity: 0.88;
  color: #fff;
}
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-bg);
}
.btn-danger:hover {
  background: rgba(224,49,49,0.12);
  border-color: rgba(224,49,49,0.3);
}
.btn-icon {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-3);
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}
.btn-icon:hover { color: var(--text-1); }

/* ---- Form ---- */
.input, .select {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text-1);
  width: 100%;
  transition: all 0.2s;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,177,230,0.12);
}
.input::placeholder { color: var(--text-3); }
.input[readonly] {
  background: var(--surface-2);
  color: var(--text-3);
  cursor: not-allowed;
}
.domain-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.domain-field-row .input { flex: 1; }
.btn-sm {
  padding: 6px 14px;
  font-size: 0.78rem;
  border-radius: 8px;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-bg);
}
.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-danger:hover { background: #c92a2a; }
.btn-danger:disabled {
  background: var(--surface-3);
  color: var(--text-3);
  cursor: not-allowed;
}
.domain-change-warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #664d03;
  margin-bottom: 16px;
}
.input-sm { width: 110px; }
.select {
  cursor: pointer;
  width: auto;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23868e96' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-section {
  background: var(--surface-0);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.form-section h3 {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.form-group {
  margin-bottom: 20px;
}
.form-group:last-child { margin-bottom: 0; }
.form-group > label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---- Color Picker ---- */
.color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.color-picker-row input[type="color"] {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 3px;
  background: var(--surface-0);
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}
.color-picker-row input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 50%;
}
.color-picker-row input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 50%;
}
.color-picker-row input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 50%;
}
.color-presets {
  display: flex;
  gap: 8px;
}
.color-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.color-swatch:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ---- Position Grid ---- */
.position-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 280px;
}
.position-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  transition: all 0.2s;
}
.position-option:hover {
  border-color: var(--border-hover);
}
.position-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}
.position-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.position-box {
  width: 32px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  position: relative;
  flex-shrink: 0;
}
.position-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--text-3);
  transition: background 0.2s;
}
.position-option:has(input:checked) .position-dot {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.offset-row {
  display: flex;
  gap: 16px;
}
.offset-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.offset-field .input-sm {
  width: 80px;
}

/* ---- Feature Toggles ---- */
.feature-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.feature-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-2);
  background: var(--surface-0);
}
.toggle-switch {
  position: relative;
  width: 38px;
  height: 20px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--surface-4);
  border-radius: 20px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
  background: white;
}

/* ---- Account List (Table) ---- */
.accounts-list {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accounts-list-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 80px 1fr;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-1);
}
.account-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 80px 1fr;
  gap: 16px;
  padding: 16px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.account-row:last-child { border-bottom: none; }
.account-row:hover { background: var(--surface-1); }

.account-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.account-row-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.account-row-dot svg { width: 16px; height: 16px; fill: white; }
.account-row-label {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.account-row-domain {
  font-size: 12px;
  color: var(--text-3);
  font-family: 'DM Sans', sans-serif;
}
.account-row-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--success);
  letter-spacing: 0.02em;
}
.account-row-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.account-row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ---- Customize Layout ---- */
.customize-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
}
.customize-preview {
  position: sticky;
  top: 40px;
}
.customize-preview h3 {
  font-family: 'Sora', sans-serif;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.preview-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.preview-mock {
  background: var(--surface-0);
  border-radius: var(--radius-sm);
  padding: 24px;
  min-height: 420px;
  border: 1px solid var(--border);
}
.mock-header {
  height: 16px;
  width: 45%;
  background: var(--surface-3);
  border-radius: 4px;
  margin-bottom: 20px;
}
.mock-line {
  height: 8px;
  background: var(--surface-2);
  border-radius: 4px;
  margin-bottom: 12px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w90 { width: 90%; }
.mock-line.w40 { width: 40%; }

.btn-save {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  justify-content: center;
  border-radius: var(--radius);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  margin-bottom: 20px;
  cursor: pointer;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text-1); }

/* Customize header with account name */
.customize-account-name {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-1);
}

.customize-domain {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 4px;
  font-family: 'DM Sans', sans-serif;
}

/* Tabs within customize */
.customize-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.customize-tab {
  padding: 10px 20px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  margin-bottom: -1px;
}
.customize-tab:hover { color: var(--text-2); }
.customize-tab.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Tab content */
.tab-content { display: none; }
.tab-content.is-active { display: block; }

/* ---- Embed ---- */
.embed-card {
  background: var(--surface-0);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.embed-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.embed-card p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.embed-card code {
  background: var(--surface-2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--accent);
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}
.code-block {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
}
.code-block pre {
  color: var(--text-2);
  font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}
.code-block .btn-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--surface-0);
  color: var(--text-3);
  border-color: var(--border);
}
.code-block .btn-copy:hover {
  background: var(--surface-2);
  color: var(--text-1);
}

/* ---- Modal ---- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 420px;
  max-width: 90vw;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  animation: modalReveal 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modalReveal {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.modal-body { padding: 28px; }
.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Delete confirm */
.delete-confirm-text {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
  line-height: 1.7;
}
.delete-confirm-text strong {
  color: var(--danger);
  font-weight: 700;
}
.delete-confirm-input {
  margin-bottom: 8px;
}
.btn-delete-confirm {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-delete-confirm:hover {
  opacity: 0.88;
  color: white;
}
.btn-delete-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  color: var(--text-1);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1), toastOut 0.3s ease 2.5s forwards;
}
.toast::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(12px) scale(0.95); } }

/* ---- Login Screen ---- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.login-card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-float);
}
.login-brand {
  margin-bottom: 36px;
}
.login-brand svg {
  color: var(--accent);
  margin-bottom: 16px;
}
.login-brand h1 {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.login-brand p {
  font-size: 13px;
  color: var(--text-3);
}
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.login-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.login-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Sidebar user photo */
.sidebar-user-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.btn-logout {
  border: none;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.btn-logout:hover {
  color: var(--danger);
  background: var(--danger-bg);
}

/* ---- Page Description ---- */
.page-description {
  font-size: 13px;
  color: var(--text-3);
  margin: -16px 0 24px;
  line-height: 1.6;
}

/* ---- Users List ---- */
.users-list {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.users-list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 100px;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--surface-1);
}
.user-row {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 100px;
  gap: 16px;
  padding: 14px 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.user-row:last-child { border-bottom: none; }
.user-row:hover { background: var(--surface-1); }
.user-row-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
}
.user-row-name {
  font-size: 13px;
  color: var(--text-3);
}
.user-row-actions {
  display: flex;
  justify-content: flex-end;
}
.user-self-label {
  font-size: 11px;
  color: var(--text-3);
  font-style: italic;
}
.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Sora', sans-serif;
}
.role-admin {
  background: var(--accent-bg);
  color: var(--accent);
}
.role-member {
  background: var(--surface-2);
  color: var(--text-3);
}

/* Login error */
.login-error {
  margin-top: 20px;
  padding: 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.login-error p {
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.login-error-sub {
  font-weight: 400 !important;
  color: var(--text-3) !important;
  margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 24px 16px; }
  .customize-layout { grid-template-columns: 1fr; }
  .accounts-list-header { display: none; }
  .account-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .account-row-actions { justify-content: flex-start; }
}
