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

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

:root {
  --sidebar-w: 248px;
  --topbar-h: 60px;
  --navy: #111827;
  --navy-hover: rgba(255,255,255,0.07);
  --navy-section: #374151;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-light: #EEF2FF;
  --accent-light-hover: #E0E7FF;
  --page-bg: #F1F4F9;
  --card-bg: #ffffff;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --text-1: #111827;
  --text-2: #374151;
  --text-3: #6B7280;
  --text-4: #9CA3AF;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  color: var(--text-1);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

/* ─── SIDEBAR ─────────────────────────────── */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 18px 18px;
  text-decoration: none;
}

.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 17px;
  flex-shrink: 0;
}

.sidebar-brand-text {
  line-height: 1;
}
.sidebar-brand-name {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
}
.sidebar-brand-sub {
  font-size: 10.5px;
  color: var(--text-4);
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.1px;
}

.sidebar-section {
  padding: 16px 18px 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #4B5563;
}

.sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 2px 10px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #9CA3AF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.sidebar-nav li a .nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.sidebar-nav li a:hover {
  background: var(--navy-hover);
  color: #E5E7EB;
}

.sidebar-nav li a.active {
  background: var(--accent);
  color: #fff;
}

.sidebar-nav li a.active .nav-icon {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: #6B7280;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.12s, color 0.12s;
}

.sidebar-footer a:hover {
  background: var(--navy-hover);
  color: #9CA3AF;
}

/* ─── MAIN WRAPPER ───────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

/* ─── TOPBAR ─────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
  margin: 0;
}

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

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

.topbar-user-info {
  text-align: right;
}

.topbar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
}

.topbar-user-email {
  font-size: 11px;
  color: var(--text-4);
  line-height: 1.2;
}

.avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: 0.2px;
}

.avatar-circle.sm {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* ─── CONTENT AREA ───────────────────────── */
.content-area {
  padding: 24px;
  flex: 1;
}

/* ─── CARD ───────────────────────────────── */
.card-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
}

.card-panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-panel-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin: 0;
}

/* ─── TABLES ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-light);
  background: #FAFAFA;
  white-space: nowrap;
}

.data-table thead th:first-child { border-radius: 0; }

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.1s;
}

.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody tr:hover { background: #FAFBFF; }

.data-table tbody td {
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--text-2);
  vertical-align: middle;
}

.data-table tbody tr.row-deleted {
  opacity: 0.55;
  background: #FFFBFA;
}

.data-table tbody tr.row-deleted:hover {
  background: #FFF5F5;
  opacity: 0.75;
}

.data-table tbody tr.row-inactive {
  opacity: 0.6;
}

/* Member name cell */
.member-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.member-name-cell .name-text {
  font-weight: 600;
  color: var(--text-1);
  font-size: 13.5px;
}

.member-name-cell .email-text {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 1px;
}

/* ─── BADGES ─────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}

.badge-success  { background: #D1FAE5; color: #065F46; }
.badge-warning  { background: #FEF3C7; color: #92400E; }
.badge-danger   { background: #FEE2E2; color: #991B1B; }
.badge-secondary{ background: #F3F4F6; color: #4B5563; }
.badge-info     { background: #DBEAFE; color: #1E40AF; }
.badge-purple   { background: #EDE9FE; color: #5B21B6; }

/* ─── ACTION BUTTONS ─────────────────────── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.12s;
  line-height: 1.5;
  background: none;
}

.btn-action-edit {
  background: var(--accent-light);
  color: var(--accent);
  border-color: #C7D2FE;
}
.btn-action-edit:hover {
  background: var(--accent-light-hover);
  color: var(--accent-hover);
}

.btn-action-view {
  background: #F0FDF4;
  color: #16A34A;
  border-color: #BBF7D0;
}
.btn-action-view:hover {
  background: #DCFCE7;
  color: #15803D;
}

.btn-action-delete {
  background: #FFF1F2;
  color: #E11D48;
  border-color: #FECDD3;
}
.btn-action-delete:hover {
  background: #FFE4E6;
  color: #BE123C;
}

.btn-action-restore {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}
.btn-action-restore:hover {
  background: #D1FAE5;
}

.btn-action-deactivate {
  background: #FFFBEB;
  color: #B45309;
  border-color: #FDE68A;
}

.btn-action-activate {
  background: #F0FDF4;
  color: #16A34A;
  border-color: #BBF7D0;
}

/* ─── PRIMARY BUTTON ─────────────────────── */
.btn-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s;
  line-height: 1.4;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.12s;
  line-height: 1.4;
}

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text-1);
}

.btn-danger-solid {
  background: #DC2626;
  border: 1px solid #DC2626;
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: background 0.12s;
  line-height: 1.4;
}

.btn-danger-solid:hover {
  background: #B91C1C;
  color: #fff;
}

/* ─── FILTER BAR ─────────────────────────── */
.filter-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: #FAFAFA;
}

.filter-bar .form-control,
.filter-bar .form-select {
  font-size: 13px;
  height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  background: #fff;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.filter-bar .search-wrap {
  position: relative;
}

.filter-bar .search-wrap .bi {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-4);
  font-size: 13px;
  pointer-events: none;
}

.filter-bar .search-wrap .form-control {
  padding-left: 30px;
  width: 220px;
}

/* ─── PAGINATION ─────────────────────────── */
.pagination-bar {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FAFAFA;
}

.pagination-info {
  font-size: 12.5px;
  color: var(--text-3);
}

.pagination {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination .page-item .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.1s;
  background: #fff;
}

.pagination .page-item .page-link:hover {
  background: var(--border-light);
}

.pagination .page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── FORM SECTIONS ──────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  margin-bottom: 16px;
}

.form-section-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  background: #FAFAFA;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.1px;
}

.form-section-desc {
  font-size: 12px;
  color: var(--text-3);
  margin: 3px 0 0;
}

.form-section-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

label.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
}

label.form-label .req {
  color: #DC2626;
  margin-left: 2px;
}

.form-control,
.form-select,
textarea.form-control {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13.5px;
  color: var(--text-1);
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
  appearance: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-control::placeholder { color: var(--text-4); }

.form-control[readonly],
.form-control:disabled {
  background: #F9FAFB;
  color: var(--text-3);
  cursor: not-allowed;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-select {
  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.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* Toggle / switch */
.form-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-toggle input[type="checkbox"] {
  width: 38px;
  height: 20px;
  appearance: none;
  background: #D1D5DB;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.form-toggle input[type="checkbox"]::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.form-toggle input[type="checkbox"]:checked {
  background: var(--accent);
}

.form-toggle input[type="checkbox"]:checked::after {
  left: 20px;
}

.form-toggle-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  user-select: none;
}

/* Two-col form row */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 700px) {
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* Date field highlight */
.date-expired-input input {
  border-color: #FCA5A5 !important;
  background: #FFF5F5 !important;
}

.date-expired-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-expired-label .badge { font-size: 10px; padding: 2px 7px; }

/* Meta / read-only section */
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.meta-item label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-4);
  display: block;
  margin-bottom: 3px;
}

.meta-item .meta-value {
  font-size: 13.5px;
  color: var(--text-2);
  font-weight: 500;
}

/* ─── DETAIL VIEW ────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.detail-item label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-4);
  display: block;
  margin-bottom: 3px;
}

.detail-item .detail-val {
  font-size: 13.5px;
  color: var(--text-1);
  font-weight: 500;
  word-break: break-word;
}

.detail-item .detail-val.muted {
  color: var(--text-4);
  font-weight: 400;
  font-style: italic;
}

/* ─── STAT CARDS (dashboard) ─────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

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

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}

.stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.stat-icon-indigo  { background: var(--accent-light); color: var(--accent); }
.stat-icon-green   { background: #D1FAE5; color: #059669; }
.stat-icon-amber   { background: #FEF3C7; color: #D97706; }
.stat-icon-red     { background: #FEE2E2; color: #DC2626; }

.stat-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-3);
  font-weight: 500;
}

/* ─── LOGIN PAGE ─────────────────────────── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #0F172A 0%, #1E293B 40%, #0F172A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.login-brand-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
}

.login-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
  line-height: 1;
}

.login-brand-sub {
  font-size: 12px;
  color: var(--text-4);
  margin-top: 2px;
}

.login-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 24px;
}

/* ─── FLASH MESSAGES ─────────────────────── */
.flash-success,
.flash-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
  position: relative;
}

.flash-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.flash-error {
  background: #FFF1F2;
  border: 1px solid #FECDD3;
  color: #9F1239;
}

.flash-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.flash-close:hover { opacity: 0.8; }

/* ─── EMAIL PREVIEW ──────────────────────── */
.email-tabs {
  display: flex;
  gap: 2px;
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.email-tab {
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-3);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
  margin-bottom: -1px;
}

.email-tab:hover { color: var(--text-1); }

.email-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.email-preview-wrap {
  background: #F8F9FA;
  padding: 24px;
}

.email-preview-frame-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.email-preview-bar {
  background: #F3F4F6;
  border-bottom: 1px solid var(--border);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.email-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.email-preview-frame {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

/* ─── PAGE HEADER ────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header-left h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.3px;
}

.page-header-left p {
  font-size: 13px;
  color: var(--text-3);
  margin: 3px 0 0;
}

/* ─── FORM PAGE HEADER ───────────────────── */
.form-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.form-page-header .back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-3);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.12s;
}

.form-page-header .back-btn:hover {
  background: var(--border-light);
  color: var(--text-1);
}

.form-page-header h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-1);
  margin: 0;
  letter-spacing: -0.3px;
}

/* ─── INLINE ALERT ───────────────────────── */
.inline-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}

.inline-alert-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}

/* ─── NOTIFICATION LIST ──────────────────── */
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-2);
}

.notif-item:last-child { border-bottom: none; }

.notif-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ─── DELETED MEMBER BANNER ──────────────── */
.deleted-banner {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: #92400E;
  font-weight: 500;
  margin-bottom: 18px;
}

/* ─── EMPTY STATE ────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}

.empty-state-icon {
  font-size: 40px;
  color: var(--text-4);
  margin-bottom: 14px;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-3);
}
