/**
 * iconic.pro — White SaaS Design System
 *
 * Completely distinct from iconic.health's dark navy/green/gold theme.
 * Think Practice Better, Linear, Notion — clean, modern, premium SaaS.
 *
 * Accent: Teal (#0EA5E9 sky/teal spectrum) — professional, SaaS-forward,
 * complements gold without competing with ICONIC Board's institutional palette.
 */

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --pro-teal:          #0891B2;   /* Primary accent — Cyan 600 */
  --pro-teal-light:    #06B6D4;   /* Hover states — Cyan 500 */
  --pro-teal-dark:     #0E7490;   /* Active/pressed — Cyan 700 */
  --pro-teal-pale:     #ECFEFF;   /* Light teal bg — Cyan 50 */
  --pro-teal-soft:     #CFFAFE;   /* Subtle teal — Cyan 100 */

  /* Surfaces */
  --pro-white:         #FFFFFF;
  --pro-bg:            #F8FAFC;   /* App background — Slate 50 */
  --pro-surface:       #FFFFFF;   /* Card / panel surface */
  --pro-surface-2:     #F1F5F9;   /* Nested surface — Slate 100 */
  --pro-border:        #E2E8F0;   /* Default border — Slate 200 */
  --pro-border-light:  #F1F5F9;   /* Subtle border — Slate 100 */

  /* Text */
  --pro-text:          #0F172A;   /* Primary text — Slate 900 */
  --pro-text-2:        #334155;   /* Secondary text — Slate 700 */
  --pro-text-3:        #64748B;   /* Muted text — Slate 500 */
  --pro-text-4:        #94A3B8;   /* Placeholder — Slate 400 */

  /* Semantic */
  --pro-success:       #059669;   /* Emerald 600 */
  --pro-success-bg:    #ECFDF5;
  --pro-success-border:#A7F3D0;
  --pro-warning:       #D97706;   /* Amber 600 */
  --pro-warning-bg:    #FFFBEB;
  --pro-warning-border:#FDE68A;
  --pro-danger:        #DC2626;   /* Red 600 */
  --pro-danger-bg:     #FEF2F2;
  --pro-danger-border: #FECACA;
  --pro-info:          #2563EB;   /* Blue 600 */
  --pro-info-bg:       #EFF6FF;
  --pro-info-border:   #BFDBFE;

  /* Badge gold (pulled from ICONIC credential display) */
  --pro-gold:          #B45309;   /* Amber 700 — for credential badge */
  --pro-gold-bg:       #FFFBEB;

  /* Layout */
  --pro-sidebar-width: 260px;
  --pro-topbar-height: 60px;
  --pro-content-max:   1100px;
  --pro-radius:        8px;
  --pro-radius-lg:     12px;
  --pro-radius-xl:     16px;
  --pro-shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --pro-shadow:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --pro-shadow-lg:     0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);

  /* Typography */
  --pro-font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pro-font-display:  'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   RESET / BASE
═══════════════════════════════════════════════════════════ */
.pro-scope *, .pro-scope *::before, .pro-scope *::after { box-sizing: border-box; }
.pro-scope { margin: 0; padding: 0; }

/* For full pages that ARE the pro scope */
html.pro-page {
  font-family: var(--pro-font-sans);
  color: var(--pro-text);
  background: var(--pro-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.pro-page body {
  margin: 0; padding: 0;
  font-family: var(--pro-font-sans);
  color: var(--pro-text);
  background: var(--pro-bg);
  line-height: 1.6;
  min-height: 100vh;
}

html.pro-page *, html.pro-page *::before, html.pro-page *::after {
  box-sizing: border-box;
}

html.pro-page a { color: inherit; text-decoration: none; }
html.pro-page button { cursor: pointer; }
html.pro-page input, html.pro-page textarea, html.pro-page select {
  font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════ */
.pro-h1 {
  font-family: var(--pro-font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--pro-text);
}

.pro-h2 {
  font-family: var(--pro-font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--pro-text);
}

.pro-h3 {
  font-family: var(--pro-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--pro-text);
}

.pro-h4 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--pro-text);
}

.pro-body { font-size: 0.9375rem; line-height: 1.65; color: var(--pro-text-2); }
.pro-body-sm { font-size: 0.875rem; line-height: 1.6; color: var(--pro-text-2); }
.pro-caption { font-size: 0.75rem; line-height: 1.5; color: var(--pro-text-3); }
.pro-label { font-size: 0.8125rem; font-weight: 500; color: var(--pro-text-2); }
.pro-overline { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pro-text-3); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.pro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--pro-font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--pro-radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.pro-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Primary */
.pro-btn-primary {
  background: var(--pro-teal);
  border-color: var(--pro-teal);
  color: #fff;
}
.pro-btn-primary:hover {
  background: var(--pro-teal-light);
  border-color: var(--pro-teal-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}
.pro-btn-primary:active { transform: translateY(0); box-shadow: none; }

/* Secondary */
.pro-btn-secondary {
  background: var(--pro-surface);
  border-color: var(--pro-border);
  color: var(--pro-text-2);
}
.pro-btn-secondary:hover {
  background: var(--pro-surface-2);
  border-color: var(--pro-text-4);
  color: var(--pro-text);
}

/* Ghost */
.pro-btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pro-text-3);
}
.pro-btn-ghost:hover {
  background: var(--pro-surface-2);
  color: var(--pro-text);
}

/* Teal outline */
.pro-btn-outline {
  background: transparent;
  border-color: var(--pro-teal);
  color: var(--pro-teal);
}
.pro-btn-outline:hover {
  background: var(--pro-teal-pale);
  color: var(--pro-teal-dark);
}

/* Danger */
.pro-btn-danger {
  background: var(--pro-danger);
  border-color: var(--pro-danger);
  color: #fff;
}
.pro-btn-danger:hover {
  background: #B91C1C;
  border-color: #B91C1C;
}

/* Sizes */
.pro-btn-sm { padding: 0.4rem 0.875rem; font-size: 0.8125rem; }
.pro-btn-sm svg { width: 14px; height: 14px; }
.pro-btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.pro-btn-lg svg { width: 18px; height: 18px; }
.pro-btn-xl { padding: 1rem 2rem; font-size: 1.0625rem; border-radius: 10px; }

/* Full width */
.pro-btn-block { width: 100%; }

/* Loading state */
.pro-btn.loading { opacity: 0.75; pointer-events: none; }
.pro-btn.loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pro-spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

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

/* ═══════════════════════════════════════════════════════════
   FORM INPUTS
═══════════════════════════════════════════════════════════ */
.pro-form-group { display: flex; flex-direction: column; gap: 0.375rem; margin-bottom: 1.25rem; }
.pro-form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pro-text-2);
}
.pro-form-label .required { color: var(--pro-danger); margin-left: 2px; }

.pro-input, .pro-select, .pro-textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--pro-font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pro-text);
  background: var(--pro-surface);
  border: 1.5px solid var(--pro-border);
  border-radius: var(--pro-radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}

.pro-input::placeholder, .pro-textarea::placeholder { color: var(--pro-text-4); }

.pro-input:hover, .pro-select:hover, .pro-textarea:hover {
  border-color: #CBD5E1;
}

.pro-input:focus, .pro-select:focus, .pro-textarea:focus {
  border-color: var(--pro-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.pro-textarea { min-height: 100px; resize: vertical; }

.pro-input-hint { font-size: 0.8125rem; color: var(--pro-text-3); margin-top: 0.25rem; }
.pro-input-error .pro-input,
.pro-input-error .pro-select,
.pro-input-error .pro-textarea {
  border-color: var(--pro-danger);
}
.pro-input-error .pro-input:focus,
.pro-input-error .pro-select:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.pro-error-msg { font-size: 0.8125rem; color: var(--pro-danger); margin-top: 0.25rem; }

/* Select arrow */
.pro-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* ═══════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════ */
.pro-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-lg);
  box-shadow: var(--pro-shadow-sm);
  padding: 1.5rem;
}

.pro-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--pro-border-light);
}

.pro-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pro-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pro-card-title svg { width: 18px; height: 18px; stroke: var(--pro-teal); fill: none; stroke-width: 2; }

.pro-card-sm { padding: 1.125rem; }
.pro-card-lg { padding: 2rem; }

.pro-card-hover:hover {
  border-color: var(--pro-teal-soft);
  box-shadow: var(--pro-shadow);
  transform: translateY(-1px);
  transition: all 0.2s ease;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════
   BADGES / CHIPS
═══════════════════════════════════════════════════════════ */
.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 999px;
  line-height: 1.5;
}

.pro-badge-teal    { background: var(--pro-teal-pale); color: var(--pro-teal-dark); }
.pro-badge-green   { background: var(--pro-success-bg); color: var(--pro-success); }
.pro-badge-yellow  { background: var(--pro-warning-bg); color: var(--pro-warning); }
.pro-badge-red     { background: var(--pro-danger-bg); color: var(--pro-danger); }
.pro-badge-gray    { background: var(--pro-surface-2); color: var(--pro-text-3); }
.pro-badge-gold    { background: var(--pro-gold-bg); color: var(--pro-gold); }

/* Credential badge — prominent */
.pro-credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--pro-gold-bg);
  border: 1.5px solid #FDE68A;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pro-gold);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════════════════════ */
.pro-stat-card {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pro-stat-label { font-size: 0.8125rem; font-weight: 500; color: var(--pro-text-3); }
.pro-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--pro-text); line-height: 1; letter-spacing: -0.025em; }
.pro-stat-sub { font-size: 0.8125rem; color: var(--pro-text-3); }
.pro-stat-up { color: var(--pro-success); }
.pro-stat-down { color: var(--pro-danger); }

.pro-stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--pro-radius);
  display: flex; align-items: center; justify-content: center;
  background: var(--pro-teal-pale);
  margin-bottom: 0.25rem;
}
.pro-stat-icon svg { width: 20px; height: 20px; stroke: var(--pro-teal); fill: none; stroke-width: 2; }

/* ═══════════════════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════════════════ */
.pro-table-wrapper {
  overflow-x: auto;
  border-radius: var(--pro-radius-lg);
  border: 1px solid var(--pro-border);
}

.pro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.pro-table thead tr {
  background: var(--pro-surface-2);
  border-bottom: 1px solid var(--pro-border);
}

.pro-table th {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pro-text-3);
  text-align: left;
  white-space: nowrap;
}

.pro-table td {
  padding: 0.875rem 1rem;
  color: var(--pro-text-2);
  border-bottom: 1px solid var(--pro-border-light);
  vertical-align: middle;
}

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

.pro-table tbody tr:hover { background: var(--pro-bg); }

.pro-table-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ═══════════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════════ */
.pro-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.pro-modal-overlay.open { opacity: 1; }

.pro-modal {
  background: var(--pro-surface);
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius-xl);
  box-shadow: var(--pro-shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.pro-modal-overlay.open .pro-modal { transform: translateY(0); }

.pro-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.pro-modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--pro-text-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pro-modal-close:hover { background: var(--pro-surface-2); color: var(--pro-text); }

.pro-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--pro-border-light);
}

/* ═══════════════════════════════════════════════════════════
   ALERTS / BANNERS
═══════════════════════════════════════════════════════════ */
.pro-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--pro-radius);
  border: 1px solid;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.pro-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.pro-alert-teal   { background: var(--pro-teal-pale); border-color: var(--pro-teal-soft); color: var(--pro-teal-dark); }
.pro-alert-green  { background: var(--pro-success-bg); border-color: var(--pro-success-border); color: var(--pro-success); }
.pro-alert-yellow { background: var(--pro-warning-bg); border-color: var(--pro-warning-border); color: var(--pro-warning); }
.pro-alert-red    { background: var(--pro-danger-bg); border-color: var(--pro-danger-border); color: var(--pro-danger); }

/* ═══════════════════════════════════════════════════════════
   EMPTY STATES
═══════════════════════════════════════════════════════════ */
.pro-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
}

.pro-empty-icon {
  width: 64px; height: 64px;
  border-radius: var(--pro-radius-lg);
  background: var(--pro-surface-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.5rem;
}

.pro-empty-icon svg {
  width: 28px; height: 28px;
  stroke: var(--pro-text-4);
  fill: none; stroke-width: 1.5;
}

.pro-empty-title { font-size: 1rem; font-weight: 600; color: var(--pro-text); }
.pro-empty-desc { font-size: 0.875rem; color: var(--pro-text-3); max-width: 320px; }

/* ═══════════════════════════════════════════════════════════
   AVATAR
═══════════════════════════════════════════════════════════ */
.pro-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pro-teal);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-avatar-sm { width: 28px; height: 28px; font-size: 0.75rem; }
.pro-avatar-lg { width: 48px; height: 48px; font-size: 1.125rem; }
.pro-avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD APP SHELL
═══════════════════════════════════════════════════════════ */

/* App wrapper */
.pro-app { display: flex; min-height: 100vh; background: var(--pro-bg); }

/* Sidebar */
.pro-sidebar {
  width: var(--pro-sidebar-width);
  background: var(--pro-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pro-sidebar-brand {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.pro-sidebar-logo {
  width: 38px; height: 38px;
  background: var(--pro-teal);
  border-radius: var(--pro-radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.pro-sidebar-logo svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; }

.pro-sidebar-brand-text .brand-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.pro-sidebar-brand-text .brand-sub {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav */
.pro-sidebar-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }

.pro-nav-section { margin-bottom: 0.25rem; }

.pro-nav-section-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem 0.375rem;
}

.pro-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.12s;
  border-left: 2px solid transparent;
  text-decoration: none;
}

.pro-nav-item svg {
  width: 17px; height: 17px;
  stroke: currentColor;
  fill: none; stroke-width: 2;
  flex-shrink: 0;
}

.pro-nav-item:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

.pro-nav-item.active {
  color: #fff;
  background: rgba(8, 145, 178, 0.15);
  border-left-color: var(--pro-teal-light);
}

.pro-nav-item.active svg { stroke: var(--pro-teal-light); }

.pro-nav-chip {
  margin-left: auto;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.6875rem;
  font-weight: 500;
  padding: 0.125rem 0.4rem;
  border-radius: 999px;
}

.pro-nav-item.active .pro-nav-chip {
  background: rgba(8, 145, 178, 0.25);
  color: var(--pro-teal-light);
}

/* Sidebar footer */
.pro-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.pro-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pro-sidebar-user .user-info { flex: 1; min-width: 0; }
.pro-sidebar-user .user-name {
  font-size: 0.875rem; font-weight: 500;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pro-sidebar-user .user-cred {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
}

/* Main content area */
.pro-main {
  margin-left: var(--pro-sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Top bar */
.pro-topbar {
  height: var(--pro-topbar-height);
  background: var(--pro-surface);
  border-bottom: 1px solid var(--pro-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.pro-topbar-left { display: flex; align-items: center; gap: 1rem; }
.pro-topbar-right { display: flex; align-items: center; gap: 0.75rem; }

.pro-topbar-title { font-size: 1rem; font-weight: 600; color: var(--pro-text); }

/* Mobile hamburger */
.pro-menu-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  border: none; background: transparent;
  color: var(--pro-text-3);
  border-radius: 6px;
  cursor: pointer;
}
.pro-menu-toggle:hover { background: var(--pro-surface-2); }
.pro-menu-toggle svg { width: 20px; height: 20px; }

/* Notification bell */
.pro-topbar-btn {
  position: relative;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--pro-border);
  border-radius: var(--pro-radius);
  background: var(--pro-surface);
  color: var(--pro-text-3);
  cursor: pointer;
  transition: all 0.15s;
}
.pro-topbar-btn:hover { background: var(--pro-surface-2); color: var(--pro-text); }
.pro-topbar-btn svg { width: 17px; height: 17px; }
.pro-topbar-btn-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 7px; height: 7px;
  background: var(--pro-teal);
  border-radius: 50%;
  border: 1.5px solid var(--pro-surface);
}

/* Page content */
.pro-page-content {
  flex: 1;
  padding: 2rem 1.75rem;
  max-width: var(--pro-content-max);
  width: 100%;
}

.pro-page-header {
  margin-bottom: 1.75rem;
}

.pro-page-header h1 { margin-bottom: 0.375rem; }
.pro-page-header p { color: var(--pro-text-3); font-size: 0.9375rem; }

/* ═══════════════════════════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════════════════════════ */
.pro-progress { height: 8px; background: var(--pro-surface-2); border-radius: 999px; overflow: hidden; }
.pro-progress-bar { height: 100%; background: var(--pro-teal); border-radius: 999px; transition: width 0.4s ease; }
.pro-progress-bar-gold { background: linear-gradient(90deg, #B45309, #D97706); }

/* ═══════════════════════════════════════════════════════════
   DIVIDERS
═══════════════════════════════════════════════════════════ */
.pro-divider {
  border: none;
  border-top: 1px solid var(--pro-border);
  margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════
   LOADERS
═══════════════════════════════════════════════════════════ */
.pro-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--pro-border);
  border-top-color: var(--pro-teal);
  border-radius: 50%;
  animation: pro-spin 0.7s linear infinite;
}

.pro-skeleton {
  background: linear-gradient(90deg, var(--pro-surface-2) 25%, var(--pro-border) 50%, var(--pro-surface-2) 75%);
  background-size: 200% 100%;
  animation: pro-shimmer 1.4s infinite;
  border-radius: var(--pro-radius);
}

@keyframes pro-shimmer { to { background-position: -200% 0; } }

/* ═══════════════════════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════════════════════ */
.pro-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.pro-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pro-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 1024px) {
  .pro-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .pro-grid-2, .pro-grid-3, .pro-grid-4 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --pro-sidebar-width: 280px;
  }

  .pro-menu-toggle { display: flex; }

  .pro-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--pro-shadow-lg);
  }

  .pro-sidebar.open {
    transform: translateX(0);
  }

  .pro-main { margin-left: 0; }

  .pro-page-content { padding: 1.25rem 1rem; }

  .pro-topbar { padding: 0 1rem; }

  .pro-card { padding: 1.125rem; }

  .pro-modal { padding: 1.25rem; }

  .pro-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.4);
    z-index: 199;
  }
  .pro-sidebar-overlay.open { display: block; }
}

@media (max-width: 480px) {
  .pro-h1 { font-size: 1.5rem; }
  .pro-h2 { font-size: 1.25rem; }
  .pro-btn-lg { padding: 0.75rem 1.25rem; font-size: 0.9375rem; }
  .pro-topbar { height: 52px; }
}

/* ═══════════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════════ */
.pro-flex { display: flex; }
.pro-flex-center { display: flex; align-items: center; }
.pro-flex-between { display: flex; align-items: center; justify-content: space-between; }
.pro-flex-col { display: flex; flex-direction: column; }
.pro-gap-1 { gap: 0.25rem; }
.pro-gap-2 { gap: 0.5rem; }
.pro-gap-3 { gap: 0.75rem; }
.pro-gap-4 { gap: 1rem; }
.pro-gap-6 { gap: 1.5rem; }
.pro-gap-8 { gap: 2rem; }

.pro-mt-4 { margin-top: 1rem; }
.pro-mt-6 { margin-top: 1.5rem; }
.pro-mt-8 { margin-top: 2rem; }
.pro-mb-4 { margin-bottom: 1rem; }
.pro-mb-6 { margin-bottom: 1.5rem; }
.pro-mb-8 { margin-bottom: 2rem; }

.pro-text-center { text-align: center; }
.pro-text-right { text-align: right; }
.pro-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
