:root {
  --pink-50:   #fdf2f8;
  --pink-100:  #fce7f3;
  --pink-200:  #fbcfe8;
  --pink-300:  #f9a8d4;
  --pink-400:  #f472b6;
  --pink-500:  #ec4899;
  --pink-600:  #db2777;
  --pink-700:  #be185d;
  --pink-800:  #9d174d;
  --pink-900:  #831843;

  --rose-400:  #fb7185;
  --rose-500:  #f43f5e;
  --fuchsia-400:#e879f9;
  --fuchsia-500:#d946ef;
  --purple-500: #a855f7;

  --grad-main:     linear-gradient(135deg, #be185d 0%, #ec4899 40%, #f472b6 70%, #d946ef 100%);
  --grad-soft:     linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
  --grad-card:     linear-gradient(145deg, #ffffff 0%, #fdf2f8 100%);
  --grad-sidebar:  linear-gradient(180deg, #1a0a12 0%, #2d1020 50%, #3d1530 100%);

  --text-primary:  #1f0a15;
  --text-secondary:#6b3a52;
  --text-muted:    #a17a8e;
  --text-white:    #ffffff;

  --bg-body:       #faf0f5;
  --bg-card:       #ffffff;
  --bg-input:      #ffffff;

  --border:        #f0c8de;
  --border-light:  #fce7f3;

  --shadow-sm:     0 1px 3px rgba(190,24,93,.08);
  --shadow-md:     0 4px 16px rgba(190,24,93,.12);
  --shadow-lg:     0 8px 32px rgba(190,24,93,.18);
  --shadow-xl:     0 16px 48px rgba(190,24,93,.22);

  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --sidebar-w:     260px;
  --topbar-h:      64px;
  --font-main:     'Sarabun', sans-serif;
  --font-heading:  'Kanit', sans-serif;

  --transition:    all .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============ TOPBAR ============ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--topbar-h);
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(190,24,93,.3);
}

.topbar-brand { display: flex; align-items: center; gap: 12px; }

.brand-logo {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(10px);
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-heading); font-weight: 600; color: white; font-size: 15px; line-height: 1.2; }
.brand-org  { font-size: 11px; color: rgba(255,255,255,.75); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.topbar-icon {
  position: relative;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.15);
  border: none; border-radius: var(--radius-md);
  color: white; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; cursor: pointer; transition: var(--transition);
}
.topbar-icon:hover { background: rgba(255,255,255,.25); color: white; }

.badge-dot {
  position: absolute; top: -4px; right: -4px;
  background: var(--rose-500);
  color: white; font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--pink-600);
  padding: 0 3px;
}

/* User menu */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-full);
  padding: 6px 12px 6px 6px;
  color: white; cursor: pointer; transition: var(--transition);
  font-family: var(--font-main); font-size: 14px;
}
.user-btn:hover { background: rgba(255,255,255,.25); }

.user-avatar {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.3);
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: white;
  border: 1px solid rgba(255,255,255,.4);
}
.user-avatar.lg { width: 44px; height: 44px; font-size: 18px; background: var(--grad-main); }

.user-name { display: none; }
@media(min-width:640px){ .user-name { display: block; } }

.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-width: 240px;
  box-shadow: var(--shadow-xl);
  display: none; z-index: 1100;
  overflow: hidden;
}
.user-dropdown.open { display: block; }

.dropdown-header { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--grad-soft); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: var(--text-primary); text-decoration: none;
  font-size: 14px; transition: var(--transition);
}
.dropdown-item:hover { background: var(--pink-50); color: var(--pink-600); }
.dropdown-item i { width: 18px; text-align: center; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed; top: var(--topbar-h); left: 0; bottom: 0; z-index: 900;
  width: var(--sidebar-w);
  background: var(--grad-sidebar);
  overflow-y: auto; overflow-x: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.1) transparent;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: -1;
}

.sidebar-nav { padding: 12px 0 24px; }

.nav-section {
  padding: 16px 20px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: rgba(255,255,255,.7);
  text-decoration: none; font-size: 14px;
  transition: var(--transition); cursor: pointer;
  position: relative;
}
.nav-item:hover {
  color: white;
  background: rgba(255,255,255,.08);
}
.nav-item.active {
  color: white;
  background: linear-gradient(90deg, rgba(244,114,182,.3) 0%, rgba(244,114,182,.1) 100%);
  border-left: 3px solid var(--pink-400);
}
.nav-item.active i { color: var(--pink-300); }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.nav-badge {
  margin-left: auto;
  background: var(--rose-500);
  color: white; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: var(--radius-full);
}
.nav-item.text-danger { color: rgba(248,113,113,.8); }
.nav-item.text-danger:hover { color: #fca5a5; background: rgba(239,68,68,.15); }

.sidebar-toggle {
  display: none;
  background: rgba(255,255,255,.15);
  border: none; border-radius: var(--radius-md);
  width: 40px; height: 40px;
  color: white; font-size: 16px; cursor: pointer;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.sidebar-toggle:hover { background: rgba(255,255,255,.25); }

/* ============ MAIN CONTENT ============ */
.main-content {
  padding-top: var(--topbar-h);
  min-height: 100vh;
  transition: margin-left .3s cubic-bezier(.4,0,.2,1);
}
.main-content.with-sidebar { margin-left: var(--sidebar-w); }

.page-container { padding: 24px; max-width: 1400px; }

/* ============ CARDS ============ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  background: var(--grad-soft);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.card-title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 600;
  color: var(--pink-800); display: flex; align-items: center; gap: 8px;
}
.card-body { padding: 24px; }

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-info { flex: 1; min-width: 0; }
.stat-value { font-family: var(--font-heading); font-size: 28px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.stat-change { font-size: 12px; margin-top: 4px; }
.stat-change.up { color: #22c55e; }
.stat-change.down { color: var(--rose-500); }

/* ============ FORMS ============ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; margin-bottom: 6px;
  font-weight: 600; font-size: 14px; color: var(--pink-800);
}
.form-label .required { color: var(--rose-500); margin-left: 3px; }

.form-control, .form-select, textarea.form-control {
  width: 100%; padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-main); font-size: 15px; color: var(--text-primary);
  transition: var(--transition);
  outline: none; appearance: none;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--pink-400);
  box-shadow: 0 0 0 3px rgba(244,114,182,.2);
}
.form-control::placeholder { color: var(--text-muted); }
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 12 12'%3E%3Cpath fill='%23be185d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}

.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--rose-500); margin-top: 5px; }
.form-control.is-invalid { border-color: var(--rose-500); }

/* File upload */
.upload-zone {
  border: 2px dashed var(--pink-300);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer; transition: var(--transition);
  background: var(--pink-50);
  position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--pink-500);
  background: var(--pink-100);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 36px; color: var(--pink-400); margin-bottom: 12px; }
.upload-text { font-size: 14px; color: var(--text-secondary); }
.upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.upload-preview { margin-top: 16px; }
.upload-preview img { max-width: 200px; max-height: 200px; border-radius: var(--radius-md); border: 2px solid var(--border); object-fit: cover; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-main); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: var(--transition); text-decoration: none;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 12px rgba(190,24,93,.3);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 16px rgba(190,24,93,.4); transform: translateY(-1px); color: white; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--pink-400);
  color: var(--pink-600);
}
.btn-outline:hover { background: var(--pink-50); color: var(--pink-700); }

.btn-light { background: var(--pink-50); color: var(--pink-700); border: 1px solid var(--pink-200); }
.btn-light:hover { background: var(--pink-100); }

.btn-success { background: #22c55e; color: white; }
.btn-success:hover { background: #16a34a; color: white; }

.btn-danger { background: var(--rose-500); color: white; }
.btn-danger:hover { background: #e11d48; color: white; }

.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; color: white; }

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ============ TABLE ============ */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--grad-soft); }
thead th { padding: 12px 16px; font-size: 13px; font-weight: 700; color: var(--pink-800); text-align: left; white-space: nowrap; border-bottom: 2px solid var(--border); }
tbody tr { border-bottom: 1px solid var(--border-light); transition: background .15s; }
tbody tr:hover { background: var(--pink-50); }
tbody td { padding: 12px 16px; font-size: 14px; vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ============ BADGE ============ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge-pink { background: var(--pink-100); color: var(--pink-700); border: 1px solid var(--pink-200); }
.badge-role-super_admin { background: #f3e8ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-role-admin { background: var(--pink-100); color: var(--pink-700); border: 1px solid var(--pink-200); }
.badge-role-manager { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-role-user { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ============ ALERTS ============ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px; font-size: 14px;
  animation: slideDown .3s ease;
}
.alert button { margin-left: auto; background: none; border: none; cursor: pointer; opacity: .7; font-size: 14px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-error   { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.alert-warning { background: #fffbeb; border: 1px solid #fed7aa; color: #92400e; }
.alert-info    { background: var(--pink-50); border: 1px solid var(--pink-200); color: var(--pink-800); }

/* ============ PAGE HEADER ============ */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 2px solid var(--border-light);
}
.page-title {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: var(--pink-800); display: flex; align-items: center; gap: 10px;
}
.page-title i { color: var(--pink-500); }
.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 560px; width: 100%;
  box-shadow: var(--shadow-xl);
  transform: scale(.95) translateY(20px);
  transition: var(--transition); overflow: hidden;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 20px 24px;
  background: var(--grad-main); color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: var(--font-heading); font-size: 17px; font-weight: 600; }
.modal-close { background: rgba(255,255,255,.2); border: none; border-radius: var(--radius-md); width: 32px; height: 32px; color: white; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: rgba(255,255,255,.35); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; gap: 10px; justify-content: flex-end; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 52px; color: var(--pink-200); margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.page-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; transition: var(--transition);
}
.page-link:hover { border-color: var(--pink-400); color: var(--pink-600); background: var(--pink-50); }
.page-link.active { background: var(--grad-main); color: white; border-color: transparent; }
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ============ SEARCH & FILTER ============ */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  align-items: center; margin-bottom: 20px;
}
.filter-bar .form-control, .filter-bar .form-select { flex: 1; min-width: 160px; }
.search-input { position: relative; flex: 1; min-width: 220px; }
.search-input .form-control { padding-left: 38px; }
.search-input i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--pink-400); font-size: 14px; }

/* ============ UTILITY ============ */
.fw-600 { font-weight: 600; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--rose-500); }
.text-success { color: #22c55e; }
.text-primary-pink { color: var(--pink-600); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--grad-main);
  color: rgba(255,255,255,.8); font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; max-width: 1400px;
}

/* ============ LOGIN PAGE ============ */
.login-page {
  min-height: 100vh;
  background: var(--grad-main);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative; overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-xl);
  position: relative;
}
.login-logo {
  text-align: center; margin-bottom: 28px;
}
.login-icon {
  width: 72px; height: 72px;
  background: var(--grad-main);
  border-radius: var(--radius-xl);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: white;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(190,24,93,.4);
}
.login-logo h1 { font-family: var(--font-heading); font-size: 20px; color: var(--pink-800); font-weight: 700; }
.login-logo p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ============ ANIMATIONS ============ */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.skeleton {
  background: linear-gradient(90deg, #f0c8de 25%, #f9e8f2 50%, #f0c8de 75%);
  background-size: 400px;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: -400px; }
  100% { background-position: 400px; }
}

/* ============ CHART AREA ============ */
.chart-container { position: relative; }

/* ============ TIMELINE (request log) ============ */
.timeline { list-style: none; position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 20px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -24px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--pink-400);
  background: white;
}
.timeline-item.active::before { background: var(--pink-400); }
.timeline-time { font-size: 12px; color: var(--text-muted); }
.timeline-text { font-size: 14px; margin-top: 2px; }

/* ============ RESPONSIVE ============ */
@media(max-width:1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar.open .sidebar-overlay { display: block; }
  .main-content.with-sidebar { margin-left: 0; }
  .sidebar-toggle { display: flex; }
}

@media(max-width:768px) {
  .topbar { padding: 0 14px; }
  .page-container { padding: 16px; }
  .brand-org { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .card-body { padding: 16px; }
  .card-header { padding: 14px 16px; }
  .login-card { padding: 28px 20px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .page-header { flex-direction: column; align-items: flex-start; }
}

@media(max-width:480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn-group { flex-wrap: wrap; }
}

/* =========================
   ENTERPRISE AUTH UI
========================= */

.auth-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
}

.auth-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right,
    rgba(255,255,255,.15),
    transparent 30%),
    var(--grad-main);

  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px;
}

.auth-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background:url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-hero-content{
  position:relative;
  z-index:2;
  max-width:520px;
  color:white;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.2);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  margin-bottom:24px;
  backdrop-filter:blur(10px);
}

.auth-hero h1{
  font-size:52px;
  line-height:1.1;
  margin-bottom:18px;
  font-family:var(--font-heading);
}

.auth-hero p{
  font-size:18px;
  color:rgba(255,255,255,.85);
  margin-bottom:40px;
}

.hero-features{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.hero-feature{
  display:flex;
  align-items:center;
  gap:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.1);
  border-radius:16px;
  padding:16px 18px;
  backdrop-filter:blur(12px);
}

.hero-feature i{
  font-size:20px;
}

.auth-form-side{
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
}

.enterprise-card{
  width:100%;
  max-width:680px;
}

.auth-header{
  margin-bottom:28px;
}

.auth-header h2{
  font-size:34px;
  color:var(--pink-800);
  margin-top:18px;
  font-family:var(--font-heading);
}

.auth-header p{
  color:var(--text-muted);
  margin-top:6px;
}

.form-section{
  border:1px solid var(--border-light);
  border-radius:20px;
  padding:24px;
  margin-bottom:22px;
  background:linear-gradient(
    180deg,
    #fff 0%,
    #fff8fc 100%
  );
}

.section-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  font-weight:700;
  color:var(--pink-700);
  margin-bottom:20px;
}

.section-title i{
  width:36px;
  height:36px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--pink-100);
}

.form-control,
.form-select{
  height:48px;
  border-radius:14px;
}

.form-control:focus,
.form-select:focus{
  transform:translateY(-1px);
}

.avatar-upload{
  display:flex;
  align-items:center;
  gap:20px;
}

.avatar-preview{
  width:120px;
  height:120px;
  border-radius:24px;
  object-fit:cover;
  border:4px solid #fff;
  box-shadow:var(--shadow-md);
}

.upload-btn{
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:14px 20px;
  border-radius:14px;
  background:var(--pink-100);
  color:var(--pink-700);
  font-weight:600;
}

.password-strength{
  margin-top:10px;
  height:6px;
  border-radius:999px;
  background:#f3f4f6;
  overflow:hidden;
}

.strength-bar{
  width:60%;
  height:100%;
  background:linear-gradient(
    90deg,
    #ef4444,
    #f59e0b,
    #22c55e
  );
}

@media(max-width:1100px){

  .auth-layout{
    grid-template-columns:1fr;
  }

  .auth-hero{
    display:none;
  }

  .auth-form-side{
    padding:24px;
  }

}

@media(max-width:768px){

  .enterprise-card{
    max-width:100%;
  }

  .form-section{
    padding:18px;
  }

  .auth-header h2{
    font-size:28px;
  }

}
