.btn-primary {
  --btn-color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: var(--btn-color); color: #fff;
  border: 1px solid var(--btn-color);
  border-radius: var(--radius); padding: 10px 20px;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 12px; letter-spacing: 2px;
  cursor: pointer; width: 100%; text-transform: uppercase;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.btn-primary:hover  { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(232,52,26,0.35); }
.btn-primary:active { transform: translateY(0); opacity: 0.95; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text-mid);
  border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 8px 16px;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 11px; letter-spacing: 1.5px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary:hover       { border-color: var(--accent); color: var(--accent); }
.btn-secondary.danger-border { border-color: rgba(232,52,26,0.4); color: #EF4444; }
.btn-secondary.danger-border:hover { border-color: #EF4444; }

.btn-xs {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-5); color: var(--text-mid);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 4px 9px; font-size: 10px; font-weight: 600;
  font-family: 'Russo One', sans-serif; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.12s; white-space: nowrap; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.btn-xs:hover        { border-color: var(--accent); color: var(--accent); }
.btn-xs.danger       { color: #EF4444; border-color: rgba(239,68,68,0.3); }
.btn-xs.danger:hover { border-color: #EF4444; }
.btn-xs.approve      { color: #10B981; border-color: rgba(16,185,129,0.3); }
.btn-xs.approve:hover { border-color: #10B981; }
.btn-xs.decline      { color: #EF4444; border-color: rgba(239,68,68,0.3); }
.btn-xs.decline:hover { border-color: #EF4444; }

.btn-logout {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px 16px;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 10px; letter-spacing: 2px;
  cursor: pointer; width: 100%; transition: all 0.15s; text-transform: uppercase;
}
.btn-logout:hover { border-color: var(--accent); color: var(--accent); }

.field-group  { margin-bottom: 15px; }
.field-label  {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 6px; font-family: 'Russo One', sans-serif;
  text-transform: uppercase;
}
.field-hint   { font-size: 11px; color: var(--text-dim); margin-bottom: 5px; }
.field-input  {
  width: 100%; background: var(--bg-4); border: 1px solid var(--border-2);
  border-radius: var(--radius); color: var(--text); padding: 10px 13px;
  font-size: 14px; font-family: 'Exo 2', sans-serif;
  transition: border-color 0.18s, box-shadow 0.18s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }
.field-input.error { border-color: #EF4444; box-shadow: 0 0 0 2px rgba(239,68,68,0.1); }
.field-textarea    { resize: vertical; min-height: 76px; line-height: 1.5; }
select.field-input { cursor: pointer; }
select.field-input option { background: var(--bg-4); color: var(--text); }
.input-row    { display: flex; gap: 8px; align-items: center; }
.input-row-sm { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.checkbox-row {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: var(--text-mid);
  padding: 4px 0;
}
.checkbox-row input[type=checkbox] { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.prefix-check-list { display: flex; flex-direction: column; gap: 6px; }

.prefix-badge,
.role-badge,
.status-badge,
.source-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  font-family: 'Russo One', sans-serif; border: 1px solid;
  white-space: nowrap; vertical-align: middle; text-transform: uppercase;
}
.points-badge { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 15px; color: var(--gold); }
.warning-badge {
  display: inline-block; padding: 2px 8px; border-radius: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  font-family: 'Russo One', sans-serif; border: 1px solid; text-transform: uppercase;
}

.cards-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px; margin-bottom: 22px;
}
.stat-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px;
  display: flex; align-items: center; gap: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.15s;
}
.stat-card:hover { border-color: rgba(232,52,26,0.3); }
.stat-card:hover::before { opacity: 1; }
.stat-card-icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-card-val   { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 21px; line-height: 1; }
.stat-card-label { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 520px; }
.data-table thead { background: var(--bg-3); }
.data-table th {
  padding: 11px 14px; text-align: left;
  font-family: 'Russo One', sans-serif; font-size: 9px; font-weight: 400;
  letter-spacing: 2.5px; color: var(--text-dim);
  border-bottom: 1px solid var(--border-2); white-space: nowrap; text-transform: uppercase;
}
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-4); }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 100; display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 540px;
  max-height: 88vh; max-height: 88dvh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg), var(--shadow-red);
  animation: fade-up 0.22s ease-out;
  overflow: hidden;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--bg-4); flex-shrink: 0;
  position: relative;
}
.modal-header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 100px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.modal-title { font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.modal-close {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 17px; line-height: 1;
  padding: 3px 7px; border-radius: 4px; transition: color 0.15s;
}
.modal-close:hover { color: var(--accent); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-confirm-msg { font-size: 13px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.modal-actions .btn-primary, .modal-actions .btn-secondary { width: auto; }

.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 11px 16px;
  font-size: 13px; box-shadow: var(--shadow);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.32s cubic-bezier(0.34,1.56,0.64,1);
  max-width: 300px; pointer-events: auto;
  border-left: 3px solid var(--border-2);
}
.toast.show { transform: translateX(0); }
.toast-icon { flex-shrink: 0; opacity: 0.8; }
.toast-success { border-left-color: #10B981; }
.toast-error   { border-left-color: var(--accent); }
.toast-info    { border-left-color: var(--gold); }
.toast-warning { border-left-color: #F59E0B; }

.notif-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border: none; }
.notif-item.unread .notif-msg { color: var(--text); font-weight: 500; }
.notif-msg  { font-size: 13px; color: var(--text-mid); }
.notif-date { font-size: 11px; color: var(--text-dim); margin-top: 3px; }

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-4); border: 1px solid var(--border-2); color: var(--text-mid);
  border-radius: var(--radius); padding: 10px 14px;
  font-family: 'Russo One', sans-serif; font-weight: 400; font-size: 11px; letter-spacing: 1.5px;
  cursor: pointer; transition: all 0.15s; white-space: nowrap; text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

.warning-item {
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 13px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border-left: 2px solid rgba(239,68,68,0.4);
}
.warning-reason { font-size: 12px; flex: 1; color: var(--text-mid); }
.warning-date   { font-size: 11px; color: var(--text-dim); }

.form-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; max-width: 680px;
  border-left: 3px solid rgba(232,52,26,0.3);
}
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-dim); font-size: 13px;
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-lg);
}

.detail-block { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.detail-row   { font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.detail-row b { color: var(--text); }

.manage-user-header {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.profile-name.sm { font-size: 16px; }
.profile-avatar.sm { width: 44px; height: 44px; font-size: 18px; }

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}
.page-loading-spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--border-2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.nav-group-pill { display:inline-flex; align-items:center; padding:2px 8px; border-radius:3px; font-size:10px; font-weight:700; font-family:'Russo One',sans-serif; letter-spacing:0.5px; background:var(--accent-dim); color:var(--accent); border:1px solid rgba(232,52,26,0.3); text-transform:uppercase; }
