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

:root {
  --navy:      #0a1428;
  --blue:      #1e5eff;
  --blue-dark: #0d3bc4;
  --blue-light:#e8f0ff;
  --cyan:      #06b6d4;
  --green:     #10b981;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --white:     #ffffff;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── AUTH PAGES ─────────────────────────────────────────────── */

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a1428 0%, #0d3bc4 100%);
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

.auth-card.wide { max-width: 520px; }

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo img {
  height: 138px;
}

.auth-logo .brand-name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 0.4rem;
  letter-spacing: -0.01em;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 2rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.auth-info {
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  color: var(--blue-dark);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Django messages */
.messages { list-style: none; margin-bottom: 1.25rem; }
.messages li { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 0.5rem; }
.messages li.success { background:#f0fdf4; border:1px solid #bbf7d0; color:#15803d; }
.messages li.error   { background:#fef2f2; border:1px solid #fecaca; color:#dc2626; }
.messages li.warning { background:#fffbeb; border:1px solid #fde68a; color:#b45309; }
.messages li.info    { background:var(--blue-light); border:1px solid #bfdbfe; color:var(--blue-dark); }

/* ─── FORM ELEMENTS ──────────────────────────────────────────── */

.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,94,255,0.10);
}

.form-group .errorlist {
  list-style: none;
  color: var(--red);
  font-size: 0.8rem;
  margin-top: 0.3rem;
}

.form-group .helptext {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Password strength */
.pw-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  margin-top: 0.4rem;
  overflow: hidden;
}
.pw-strength-bar {
  height: 100%;
  width: 0%;
  transition: width 0.2s, background 0.2s;
  border-radius: 2px;
}
.pw-hint { font-size: 0.78rem; color: var(--gray-500); margin-top: 0.25rem; }

/* Checkbox */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check label {
  font-size: 0.875rem;
  color: var(--gray-600);
  cursor: pointer;
  line-height: 1.4;
}
.form-check a { color: var(--blue); }

/* Radio group */
.radio-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.radio-option input[type="radio"] { accent-color: var(--blue); }

/* Account type tabs */
.account-type-tabs {
  display: flex;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.account-type-tabs a {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.account-type-tabs a.active {
  background: var(--blue);
  color: var(--white);
}
.account-type-tabs a:not(.active):hover {
  background: var(--gray-50);
}

/* ─── BUTTONS ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-primary {
  width: 100%;
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-danger {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-danger:hover { background: #dc2626; border-color: #dc2626; }

.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.82rem; }

/* ─── AUTH FOOTER LINKS ─────────────────────────────────────── */

.auth-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.auth-links a { color: var(--blue); font-weight: 500; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--gray-400);
  font-size: 0.8rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* ─── OTP INPUT ──────────────────────────────────────────────── */

.otp-wrap input {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-weight: 700;
}

/* ─── RECOVERY CODES ─────────────────────────────────────────── */

.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1rem 0;
  list-style: none;
}
.recovery-codes li {
  padding: 0.25rem 0.5rem;
  background: var(--white);
  border-radius: 4px;
  text-align: center;
  letter-spacing: 0.1em;
}

/* ─── PORTAL LAYOUT ──────────────────────────────────────────── */

body.portal-page {
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.sidebar-logo {
  padding: 0 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo img { height: 138px; }
.sidebar-org {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

.sidebar-nav { flex: 1; padding: 1.25rem 0.75rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.nav-item:hover, .nav-item.active {
  background: rgba(255,255,255,0.10);
  color: var(--white);
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }

.nav-section { font-size: 0.65rem; color: rgba(255,255,255,0.35); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.75rem 0.75rem 0.25rem; }

.sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user-name { display: block; font-size: 0.875rem; font-weight: 600; color: var(--white); }
.sidebar-user-role { display: block; font-size: 0.75rem; color: rgba(255,255,255,0.5); }

.sidebar-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.sidebar-actions a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65);
  text-decoration: none; transition: background 0.15s, color 0.15s;
}
.sidebar-actions a:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.sidebar-actions svg { width: 14px; height: 14px; }

.portal-main {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.page-subtitle { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 2rem; }

/* Dashboard cards */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-size: 1.75rem; font-weight: 800; color: var(--navy); margin-top: 0.25rem; }

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }
.card-empty { padding: 2rem; text-align: center; color: var(--gray-400); font-size: 0.9rem; }

/* Verification banner */
.verify-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.875rem;
}
.verify-banner a { color: var(--blue); font-weight: 600; }

/* Subscription table */
.table { width: 100%; border-collapse: collapse; }
.table th { font-size: 0.75rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gray-100); text-align: left; }
.table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef3c7; color: #b45309; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: var(--gray-100); color: var(--gray-500); }
.badge-blue   { background: var(--blue-light); color: var(--blue-dark); }

/* QR code */
.qr-wrap { text-align: center; margin: 1.25rem 0; }
.qr-wrap img { max-width: 180px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); padding: 4px; }

/* Manual key display */
.secret-key {
  font-family: 'Courier New', monospace;
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  word-break: break-all;
  margin: 0.5rem 0 1.25rem;
}

/* Step indicator */
.step-indicator {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 1.5rem;
}
.step { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); }
.step.active { background: var(--blue); width: 24px; border-radius: 4px; }
.step.done { background: var(--green); }

@media (max-width: 640px) {
  .auth-card { padding: 1.75rem 1.25rem; }
  .form-row-2 { grid-template-columns: 1fr; }
  .portal-main { padding: 1.25rem; }
  .sidebar { width: 200px; }
}

/* ──────────────────────────────
   ALERTS & MESSAGES
────────────────────────────── */
.messages-container { margin-bottom: 1.25rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 0.5rem; }
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error, .alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-warning { background: #fef9c3; color: #a16207; border: 1px solid #fde047; }
.alert-info { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ──────────────────────────────
   QUICK ACTION CARDS
────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.quick-action-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); text-decoration: none; color: var(--navy); transition: box-shadow 0.15s, border-color 0.15s; }
.quick-action-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--blue); }
.quick-action-card p { font-size: 0.8rem; color: var(--gray-500); margin: 0.15rem 0 0; }
.quick-action-card strong { display: block; font-size: 0.9rem; }
.quick-action-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-action-icon svg { width: 20px; height: 20px; }
.quick-action-icon.blue { background: #dbeafe; color: var(--blue); }
.quick-action-icon.navy { background: rgba(10,20,40,0.07); color: var(--navy); }
.quick-action-icon.green { background: #dcfce7; color: #16a34a; }
.quick-action-icon.yellow { background: #fef9c3; color: #a16207; }
.quick-action-icon.cyan { background: #cffafe; color: #0891b2; }

/* ──────────────────────────────
   PAGE TITLE ROW
────────────────────────────── */
.page-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

/* ──────────────────────────────
   CARD EXTRAS
────────────────────────────── */
.card-body { padding: 1.5rem; }
.card-body-flex { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem; flex-wrap: wrap; }
.card-empty { padding: 2rem 1.5rem; color: var(--gray-500); text-align: center; }
.mfa-prompt { margin-top: 1rem; border: 1.5px solid #fde68a; }
.form-error-block { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; border-radius: var(--radius-sm); padding: 0.6rem 0.875rem; margin-bottom: 1rem; font-size: 0.875rem; }
.form-hint { font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; }
.sidebar-signout-btn { background: rgba(255,255,255,0.08); border: none; cursor: pointer; padding: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: rgba(255,255,255,0.65); transition: background 0.15s; }
.sidebar-signout-btn:hover { background: rgba(255,255,255,0.15); color: var(--white); }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #f59e0b; color: #fff; border-radius: 50%; font-size: 0.65rem; font-weight: 700; margin-left: auto; flex-shrink: 0; }

/* ──────────────────────────────
   APPLICATION CATALOG
────────────────────────────── */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.catalog-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: box-shadow 0.15s; }
.catalog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.catalog-card-soon { opacity: 0.65; }
.catalog-card-header { display: flex; align-items: center; gap: 0.875rem; }
.catalog-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); object-fit: contain; }
.catalog-icon-placeholder { width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--gray-100); display: flex; align-items: center; justify-content: center; color: var(--gray-400); flex-shrink: 0; }
.catalog-icon-placeholder svg { width: 24px; height: 24px; }
.catalog-card-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.catalog-card-title-group h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--navy); width: 100%; }
.catalog-description { font-size: 0.875rem; color: var(--gray-600); flex: 1; margin: 0; }
.catalog-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.catalog-price { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.catalog-price-unit { font-size: 0.8rem; font-weight: 500; color: var(--gray-500); }
.catalog-price-alt { font-size: 0.8rem; color: var(--gray-500); }
.catalog-price-note { font-size: 0.75rem; color: var(--gray-500); }
.catalog-trial { font-size: 0.78rem; background: #dbeafe; color: var(--blue); border-radius: 999px; padding: 0.1rem 0.6rem; font-weight: 600; }
.catalog-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.text-muted { color: var(--gray-500); }

/* ──────────────────────────────
   PROFILE TABS
────────────────────────────── */
.profile-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-200); margin-bottom: 1.25rem; }
.profile-tab { padding: 0.6rem 1.25rem; text-decoration: none; color: var(--gray-500); font-size: 0.9rem; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.15s, border-color 0.15s; cursor: pointer; }
.profile-tab:hover { color: var(--navy); }
.profile-tab.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ──────────────────────────────
   TABLE ACTIONS
────────────────────────────── */
.table-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.btn-xs { padding: 0.25rem 0.6rem; font-size: 0.75rem; }

/* ──────────────────────────────
   RADIO GROUP
────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.radio-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }
.radio-label input[type="radio"] { margin-top: 0.2rem; flex-shrink: 0; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }
.checkbox-label input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; }

/* ──────────────────────────────
   ONBOARDING WIZARD
────────────────────────────── */
.onboarding-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 2rem 1rem 4rem; background: var(--gray-50); }
.onboarding-header { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.onboarding-logo { height: 138px; }
.onboarding-steps { display: flex; align-items: center; gap: 0; }
.onboarding-step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: background 0.2s; flex-shrink: 0; }
.onboarding-step-dot.active { background: var(--blue); color: #fff; }
.onboarding-step-dot.done { background: #16a34a; color: #fff; }
.onboarding-step-line { width: 24px; height: 2px; background: var(--gray-200); transition: background 0.2s; }
.onboarding-step-line.done { background: #16a34a; }
.onboarding-card { width: 100%; max-width: 560px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.onboarding-card h2 { margin: 0; font-size: 1.35rem; color: var(--navy); }
.onboarding-sub { margin: 0; color: var(--gray-500); font-size: 0.9rem; }
.onboarding-btn-row { display: flex; gap: 0.75rem; justify-content: flex-end; }
.btn-full { width: 100%; justify-content: center; }
.onboarding-apps { display: flex; flex-direction: column; gap: 0.5rem; }
.onboarding-app-card { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1rem; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.onboarding-app-card:has(input:checked), .onboarding-app-card.selected { border-color: var(--blue); background: #f0f5ff; }
.onboarding-app-card input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; }
.onboarding-app-info strong { display: block; font-size: 0.9rem; color: var(--navy); }
.onboarding-app-info p { font-size: 0.8rem; color: var(--gray-500); margin: 0.2rem 0 0; }
.onboarding-mfa-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.onboarding-invite-hint { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.875rem 1rem; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 0.875rem; color: var(--gray-600); }
.onboarding-done-icon { display: flex; justify-content: center; padding: 1rem 0; }

@media (max-width: 768px) {
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .profile-tabs { overflow-x: auto; }
  .table-actions { flex-direction: column; }
  .page-title-row { flex-direction: column; }
}

