/* =============================================
   SRI Client - Portal CSS v3 (Font Awesome + Pro UI)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #d1fae5;
  --primary-rgb: 5, 150, 105;
  --secondary: #1e40af;
  --secondary-light: #dbeafe;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0284c7;
  --info-light: #e0f2fe;
  --purple: #7c3aed;
  --purple-light: #f5f3ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 40px rgba(0,0,0,.12);
  --transition: 150ms ease;
  --sidebar-w: 264px;
  --admin-primary: #4f46e5;
  --admin-dark: #1e1b4b;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace; font-size: .9em; }

/* ============================================
   AUTH PAGE
   ============================================ */
.auth-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -200px; right: -100px;
}

.auth-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.03);
  border-radius: 50%;
  bottom: -100px; left: -50px;
}

.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.auth-card .logo { text-align: center; margin-bottom: 28px; }
.auth-card .logo .logo-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), .3);
}
.auth-card .logo .logo-icon i { font-size: 22px; color: #fff; }
.auth-card .logo h1 { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.auth-card .logo span { font-size: 13px; color: var(--gray-500); display: block; margin-top: 4px; }

.auth-tabs {
  display: flex;
  margin-bottom: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 3px;
}

.auth-tabs button {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.auth-tabs button.active {
  color: var(--primary);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group .input-icon {
  position: relative;
}

.form-group .input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 14px;
}

.form-group .input-icon input {
  padding-left: 40px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12);
}

.form-group input::placeholder { color: var(--gray-400); }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn i { font-size: 13px; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 4px rgba(var(--primary-rgb),.3); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 4px 8px rgba(var(--primary-rgb),.3); }

.btn-secondary { background: #fff; color: var(--gray-700); border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 2px 4px rgba(220,38,38,.3); }
.btn-danger:hover { background: #b91c1c; }

.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { background: #b45309; }

.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #0369a1; }

.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-800); transform: none; }

.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-sm i { font-size: 11px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 5px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ============================================
   ALERTS
   ============================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
}

.alert.show { display: flex; align-items: center; gap: 10px; }
.alert i { font-size: 15px; flex-shrink: 0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* ============================================
   APP LAYOUT
   ============================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* -- Sidebar -- */
.sidebar {
  background: var(--gray-900);
  color: #fff;
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-brand {
  padding: 24px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), #10b981);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-brand .brand-icon i { font-size: 16px; color: #fff; }

.sidebar-brand .brand-text h2 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.sidebar-brand .brand-text small {
  font-size: 11px;
  color: var(--gray-500);
  display: block;
}

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

.sidebar-nav .nav-section {
  padding: 20px 24px 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray-500);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}

.sidebar-nav a.active {
  background: rgba(var(--primary-rgb), .15);
  color: #10b981;
  border-left-color: #10b981;
  font-weight: 600;
}

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

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

.sidebar-user {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.15);
}

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

.sidebar-user .user-avatar {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user .user-avatar i { font-size: 14px; color: var(--gray-400); }

.sidebar-user .user-name { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-user .user-plan { font-size: 11px; color: var(--gray-500); margin-top: 1px; }

.sidebar-user .btn-logout {
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-500);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.sidebar-user .btn-logout i { font-size: 12px; }
.sidebar-user .btn-logout:hover { color: #ef4444; }

/* -- Admin sidebar overrides -- */
.sidebar.admin-sidebar {
  background: var(--admin-dark);
}

.sidebar.admin-sidebar .brand-icon {
  background: linear-gradient(135deg, var(--admin-primary), #818cf8);
}

.sidebar.admin-sidebar .sidebar-nav a.active {
  background: rgba(79, 70, 229, .2);
  color: #a5b4fc;
  border-left-color: var(--admin-primary);
}

/* -- Main Content -- */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 36px;
  min-height: 100vh;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.02em;
}

.page-header .page-date {
  font-size: 13px;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-header .page-date i { font-size: 13px; }

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

.stat-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: box-shadow .2s, transform .2s;
}

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

.stat-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
}

.stat-card .stat-icon i { font-size: 17px; }

.stat-card .stat-icon.blue { background: var(--secondary-light); color: var(--secondary); }
.stat-card .stat-icon.orange { background: var(--warning-light); color: var(--warning); }
.stat-card .stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-card .stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-card .stat-icon.info { background: var(--info-light); color: var(--info); }

.stat-card .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 2px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.stat-card .stat-sub {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 1px solid var(--gray-100);
}

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

.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  font-size: 14px;
  color: var(--gray-400);
}

.card-body { padding: 20px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--gray-100);
  background: var(--gray-50);
  white-space: nowrap;
}

table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-50);
  color: var(--gray-700);
  vertical-align: middle;
}

table tbody tr { transition: background .1s; }
table tbody tr:hover td { background: #f8fafc; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge i { font-size: 10px; }

.badge-green { background: #ecfdf5; color: #065f46; }
.badge-blue { background: #eff6ff; color: #1e40af; }
.badge-red { background: #fef2f2; color: #991b1b; }
.badge-orange { background: #fffbeb; color: #92400e; }
.badge-purple { background: #f5f3ff; color: #5b21b6; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar .fill {
  height: 100%;
  border-radius: 4px;
  transition: width 400ms ease;
  background: linear-gradient(90deg, #10b981, #059669);
}

.progress-bar .fill.warning { background: linear-gradient(90deg, #fbbf24, #d97706); }
.progress-bar .fill.danger { background: linear-gradient(90deg, #f87171, #dc2626); }

/* ============================================
   PLAN CARDS
   ============================================ */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.plan-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 32px 24px;
  text-align: center;
  border: 2px solid var(--gray-100);
  transition: all .2s;
  position: relative;
}

.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.plan-card.current { border-color: var(--primary); }

.plan-card.current::after {
  content: 'Plan Actual';
  position: absolute;
  top: -11px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 6px;
}

.plan-card .plan-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: var(--primary-light);
  color: var(--primary);
}

.plan-card .plan-icon i { font-size: 20px; }

.plan-card h3 { font-size: 18px; font-weight: 700; color: var(--gray-900); }

.plan-card .price {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin: 12px 0 4px;
  letter-spacing: -.02em;
}

.plan-card .price small { font-size: 15px; font-weight: 400; color: var(--gray-400); }

.plan-card .features {
  list-style: none;
  text-align: left;
  margin: 20px 0 24px;
  font-size: 13px;
}

.plan-card .features li {
  padding: 6px 0;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card .features li i {
  font-size: 12px;
  color: var(--primary);
  width: 16px;
  text-align: center;
}

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

.modal-overlay.show { display: flex; }

.modal {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}

@keyframes modalIn {
  from { transform: scale(.95) translateY(8px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i { font-size: 16px; color: var(--gray-400); }

.modal-close {
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--gray-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--gray-200); color: var(--gray-700); }

.modal-body { padding: 24px; }

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============================================
   LICENSE BOX
   ============================================ */
.license-box {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #10b981;
  font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
  font-size: 18px;
  font-weight: 600;
  padding: 18px 24px;
  border-radius: 10px;
  text-align: center;
  letter-spacing: 2px;
  user-select: all;
  cursor: pointer;
  margin: 12px 0;
  transition: all .2s;
}

.license-box:hover { background: linear-gradient(135deg, #0f172a, #020617); transform: scale(1.01); }

/* ============================================
   TOASTS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  animation: slideIn .25s ease;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast i { font-size: 14px; }
.toast-success { background: var(--primary); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   ADMIN: CHART BAR
   ============================================ */
.chart-bar { display: flex; align-items: end; gap: 6px; height: 90px; margin-top: 8px; padding-bottom: 20px; }
.chart-bar .bar {
  flex: 1; background: linear-gradient(to top, #818cf8, #c7d2fe); border-radius: 4px 4px 0 0;
  min-height: 4px; position: relative; transition: height .3s; cursor: pointer;
}
.chart-bar .bar:hover { background: linear-gradient(to top, #6366f1, #a5b4fc); }
.chart-bar .bar-label {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--gray-400); white-space: nowrap;
}
.chart-bar .bar-value {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--gray-600);
}

/* ============================================
   ADMIN: METRICS
   ============================================ */
.metric-row { display: flex; gap: 16px; margin-bottom: 20px; }
.metric-box {
  flex: 1; padding: 16px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); text-align: center; border: 1px solid var(--gray-100);
}
.metric-box .val { font-size: 24px; font-weight: 800; color: var(--gray-900); }
.metric-box .lbl { font-size: 10px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.metric-box .val i { font-size: 18px; margin-right: 4px; }

/* ============================================
   ADMIN: REVENUE
   ============================================ */
.revenue-big {
  font-size: 42px; font-weight: 800; color: var(--admin-primary);
  text-align: center; padding: 16px 0;
}
.revenue-big small { font-size: 16px; color: var(--gray-400); font-weight: 400; }

.growth-chart { display: flex; align-items: end; gap: 8px; height: 100px; padding: 10px 0 20px; }
.growth-bar {
  flex: 1; background: linear-gradient(to top, #818cf8, #c7d2fe); border-radius: 4px 4px 0 0;
  position: relative; min-height: 4px; transition: height .3s;
}
.growth-bar .g-label {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--gray-400); white-space: nowrap;
}
.growth-bar .g-value {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 700; color: var(--gray-700);
}

.warning-row {
  background: #fef3c7; padding: 12px 16px; border-radius: var(--radius);
  font-size: 13px; color: #92400e; margin-bottom: 8px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-400);
}

.empty-state i { font-size: 36px; margin-bottom: 12px; display: block; }
.empty-state p { font-size: 14px; }

/* ============================================
   INFO ROW (Key-Value pairs)
   ============================================ */
.info-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
  font-size: 13px;
}

.info-row:last-child { border-bottom: none; }
.info-row .info-label { width: 140px; font-weight: 600; color: var(--gray-500); flex-shrink: 0; }
.info-row .info-value { color: var(--gray-800); }

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

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.gap-1 { gap: 8px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
