/* ========================================
   Cebinde Sigorta Acente Panel — Premium Green
   ======================================== */

:root {
  --bg-primary: #f4f6f9;
  --bg-secondary: #eef0f4;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --bg-sidebar: #0f1b2d;
  --bg-sidebar-hover: rgba(255,255,255,0.08);
  --bg-sidebar-active: rgba(23,186,108,0.18);
  --border-color: rgba(0,0,0,0.06);
  --border-light: rgba(0,0,0,0.09);
  --text-primary: #1a1d26;
  --text-secondary: #5a6178;
  --text-muted: #8e95a9;
  --text-sidebar: rgba(255,255,255,0.75);
  --text-sidebar-active: #17ba6c;
  --accent: #17ba6c;
  --accent-hover: #13a05d;
  --accent-light: rgba(23,186,108,0.08);
  --accent-glow: rgba(23,186,108,0.20);
  --accent-gradient: linear-gradient(135deg, #17ba6c 0%, #0ea85f 50%, #0d9652 100%);
  --success: #10b981;
  --success-light: rgba(16,185,129,0.08);
  --warning: #f59e0b;
  --warning-light: rgba(245,158,11,0.10);
  --danger: #ef4444;
  --danger-light: rgba(239,68,68,0.08);
  --info: #3b82f6;
  --info-light: rgba(59,130,246,0.08);
  --purple: #8b5cf6;
  --purple-light: rgba(139,92,246,0.08);
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 64px rgba(0,0,0,0.10);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

/* ======== ANIMATIONS ======== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: translateX(0); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }

/* ======== LAYOUT ======== */
.panel-wrapper { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* ======== SIDEBAR ======== */
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand img { max-height: 38px; width: auto; filter: brightness(0) invert(1); }

.sidebar-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent-gradient);
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
  margin-top: 2px;
}

.sidebar-nav { flex: 1; padding: 12px 12px; }

.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: var(--transition);
  position: relative;
}

.nav-item i { width: 18px; text-align: center; font-size: 14px; opacity: 0.8; }

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: rgba(255,255,255,0.95);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--accent);
  font-weight: 600;
}

.nav-item.active i { opacity: 1; }

.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.nav-item .badge-green {
  background: var(--accent);
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-user:hover { background: var(--bg-sidebar-hover); color: rgba(255,255,255,0.9); }

.sidebar-user-avatar {
  width: 34px; height: 34px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0;
}

.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.4); }

/* ======== TOP HEADER ======== */
.top-header {
  height: var(--header-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-left { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; display: none;
  align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.menu-toggle:hover { background: var(--accent-light); color: var(--accent); }

.page-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }

.header-right { display: flex; align-items: center; gap: 8px; }

.header-btn {
  width: 36px; height: 36px;
  background: var(--bg-secondary);
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  font-size: 14px;
}

.header-btn:hover { background: var(--accent-light); color: var(--accent); }
.header-btn .dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; background: var(--danger); border-radius: 50%; border: 2px solid var(--bg-card); }

.header-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-user:hover { background: var(--accent-light); }

.header-avatar {
  width: 28px; height: 28px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: white;
}

/* ======== PAGE CONTENT ======== */
.page-content { flex: 1; padding: 28px 28px; animation: fadeIn 0.3s ease; }

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

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, var(--accent-gradient));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.stat-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-trend {
  font-size: 11px; font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  display: flex; align-items: center; gap: 3px;
}

.stat-trend.up { color: var(--success); background: var(--success-light); }
.stat-trend.neutral { color: var(--text-muted); background: var(--bg-secondary); }

.stat-value { font-size: 26px; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 12.5px; color: var(--text-muted); font-weight: 500; }

/* ======== CARDS ======== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

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

.card-title { font-size: 15px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--accent); font-size: 16px; }
.card-subtitle { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.card-body { padding: 22px; }

/* ======== TABLES ======== */
.table-responsive { overflow-x: auto; }

table.panel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.panel-table thead th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 16px;
  text-align: left;
  white-space: nowrap;
}

.panel-table thead th:first-child { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.panel-table thead th:last-child { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }

.panel-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.panel-table tbody tr:last-child { border-bottom: none; }
.panel-table tbody tr:hover { background: var(--bg-secondary); }

.panel-table td { padding: 12px 16px; color: var(--text-primary); vertical-align: middle; }

/* ======== BADGES ======== */
.badge-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px; font-weight: 600;
  white-space: nowrap;
}

.badge-green { background: var(--success-light); color: var(--success); }
.badge-yellow { background: var(--warning-light); color: #d97706; }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-blue { background: var(--info-light); color: var(--info); }
.badge-purple { background: var(--purple-light); color: var(--purple); }
.badge-gray { background: var(--bg-secondary); color: var(--text-muted); }

/* ======== BUTTONS ======== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); color: white; }

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

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

.btn-danger { background: var(--danger-light); color: var(--danger); border: 1px solid rgba(239,68,68,0.15); }
.btn-danger:hover { background: var(--danger); color: white; }

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-sm); }

/* ======== FORMS ======== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.form-label .required { color: var(--danger); }

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.form-control::placeholder { color: var(--text-muted); }

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

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

.form-hint { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 11.5px; color: var(--danger); margin-top: 5px; }

/* ======== ALERT ======== */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}

.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: var(--success-light); color: #065f46; border: 1px solid rgba(16,185,129,0.2); }
.alert-error { background: var(--danger-light); color: #991b1b; border: 1px solid rgba(239,68,68,0.2); }
.alert-warning { background: var(--warning-light); color: #92400e; border: 1px solid rgba(245,158,11,0.2); }
.alert-info { background: var(--info-light); color: #1e40af; border: 1px solid rgba(59,130,246,0.2); }

/* ======== EMPTY STATE ======== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state i { font-size: 40px; margin-bottom: 14px; opacity: 0.4; display: block; }
.empty-state h3 { font-size: 16px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { font-size: 13px; }

/* ======== MODAL ======== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15,27,45,0.6);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex; align-items: center; justify-content: space-between;
}

.modal-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg-secondary); border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; justify-content: flex-end; }

/* ======== SEARCH & FILTER BAR ======== */
.filter-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.search-box { position: relative; flex: 1; min-width: 200px; }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 13px; }
.search-box input { padding-left: 36px; }

/* ======== PAGINATION ======== */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 16px 0 4px; }
.page-btn { width: 32px; height: 32px; border: 1.5px solid var(--border-light); border-radius: var(--radius-xs); background: var(--bg-card); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent-gradient); color: white; border-color: transparent; }
.page-btn:disabled { opacity: 0.4; cursor: default; }

/* ======== INFO WIDGET ======== */
.info-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); padding: 8px 0; border-bottom: 1px solid var(--border-color); }
.info-row:last-child { border-bottom: none; }
.info-row i { width: 20px; text-align: center; color: var(--accent); }
.info-row strong { color: var(--text-primary); font-weight: 600; margin-left: auto; }

/* ======== COMMISSION SUMMARY ======== */
.commission-box {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
}

.commission-box::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.commission-box::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -10px;
  width: 90px; height: 90px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.commission-label { font-size: 12px; font-weight: 600; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.commission-value { font-size: 34px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.commission-sub { font-size: 12px; opacity: 0.7; }

/* ======== ACTIVITY FEED ======== */
.activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.activity-content { flex: 1; min-width: 0; }
.activity-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.activity-desc { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ======== WELCOME BANNER ======== */
.welcome-banner {
  background: var(--accent-gradient);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  overflow: hidden;
  position: relative;
}

.welcome-banner::after {
  content: '\f0ac';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 24px;
  font-size: 100px;
  opacity: 0.07;
  color: white;
}

.welcome-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.welcome-sub { font-size: 13px; opacity: 0.85; }

/* ======== GRID LAYOUTS ======== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }

/* ======== LOGIN PAGE ======== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f1b2d 0%, #1a2d44 50%, #0d1e30 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.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='%2317ba6c' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.3);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 10px;
}

.login-logo img { max-height: 50px; width: auto; }

.login-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.login-sub { text-align: center; font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.login-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

/* ======== PASSWORD TOGGLE ======== */
.input-group { position: relative; }
.input-group .form-control { padding-right: 44px; }
.input-group .toggle-pw { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 14px; padding: 4px; transition: var(--transition); }
.input-group .toggle-pw:hover { color: var(--accent); }

/* ======== WHATSAPP CTA ======== */
.wa-cta {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.wa-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,0.3); color: white; }
.wa-cta i { font-size: 28px; flex-shrink: 0; }
.wa-cta-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.wa-cta-sub { font-size: 12px; opacity: 0.85; }

/* ======== LOADING SPINNER ======== */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ======== STEP INDICATOR ======== */
.step-indicator { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.step { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-num { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--text-muted); background: white; flex-shrink: 0; }
.step.active .step-num { background: var(--accent-gradient); color: white; border-color: transparent; }
.step.done .step-num { background: var(--success); color: white; border-color: transparent; }
.step-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.step.active .step-label { color: var(--accent); }
.step-line { flex: 1; height: 2px; background: var(--border-light); margin: 0 6px; }
.step.done + .step .step-line, .step.active .step-line { background: var(--accent); }

/* ======== TABS ======== */
.tabs { display: flex; gap: 4px; background: var(--bg-secondary); padding: 4px; border-radius: var(--radius-md); margin-bottom: 22px; }
.tab-btn { flex: 1; padding: 8px 14px; border: none; border-radius: var(--radius-sm); background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.tab-btn.active { background: white; color: var(--accent); box-shadow: var(--shadow-sm); }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-sidebar { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 18px 16px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .welcome-banner::after { display: none; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .search-box { min-width: unset; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
}
