/* TrustByClients Shell — design system foundation
 * Inspired by ReviewGuard ID layout patterns (AppShell.jsx, DashboardPage.jsx)
 * Adapted for TrustByClients brand: yellow #fbbf24 + navy #0f172a + blue #2563eb
 * Used by: client.html, admin.html, login.html (and future pages)
 */

:root {
  --tbc-bg: #f8fafc;
  --tbc-card: #ffffff;
  --tbc-border: #e2e8f0;
  --tbc-border-strong: #cbd5e1;
  --tbc-text: #0f172a;
  --tbc-text-muted: #64748b;
  --tbc-text-soft: #475569;
  --tbc-primary: #fbbf24;
  --tbc-primary-hover: #f59e0b;
  --tbc-primary-fg: #ffffff;
  --tbc-secondary: #0f172a;
  --tbc-secondary-fg: #ffffff;
  --tbc-accent: #2563eb;
  --tbc-accent-hover: #1d4ed8;
  --tbc-success: #16a34a;
  --tbc-warning: #f59e0b;
  --tbc-danger: #dc2626;
  --tbc-radius: 0.75rem;
  --tbc-radius-lg: 1rem;
  --tbc-radius-xl: 1.25rem;
  --tbc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --tbc-shadow: 0 4px 12px rgba(15, 23, 42, .08);
  --tbc-shadow-lg: 0 14px 40px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; }

body { margin: 0; font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; background: var(--tbc-bg); color: var(--tbc-text); font-size: 15px; line-height: 1.55; font-weight: 400; letter-spacing: -0.005em; }
p, li, td, th, label, input, select, textarea, button { font: inherit; letter-spacing: inherit; }
a { color: inherit; text-decoration: none; }

/* Heading hierarchy */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.022em; line-height: 1.2; color: var(--tbc-text); }
h1 { font-size: 28px; font-weight: 900; letter-spacing: -0.028em; line-height: 1.15; }
h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.018em; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.012em; }
h4 { font-size: 14px; font-weight: 700; letter-spacing: -0.005em; text-transform: none; }

/* Tabular numbers for metrics, prices, etc. */
.tbc-tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ========== SHELL LAYOUT (ReviewGuard-style flex pattern) ========== */
.tbc-shell { display: flex; min-height: 100vh; align-items: stretch; }

/* Sidebar — fixed on mobile, in-flow (static) on desktop via flex */
.tbc-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--tbc-card);
  border-right: 1px solid var(--tbc-border);
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .25s ease;
}
.tbc-sidebar-brand {
  height: 64px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px;
  border-bottom: 1px solid var(--tbc-border);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.tbc-sidebar-brand-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--tbc-primary), #f59e0b);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--tbc-secondary);
  font-size: 16px; font-weight: 900;
  box-shadow: 0 4px 10px rgba(251, 191, 36, .25);
}
.tbc-sidebar-brand-accent { color: var(--tbc-primary); }
.tbc-sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.tbc-nav-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--tbc-text-muted); font-weight: 700;
  padding: 12px 14px 8px;
}
.tbc-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  min-height: 44px;
  border-radius: var(--tbc-radius);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--tbc-text-soft);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  border: 0; background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit;
}
.tbc-nav-item:hover { background: #f1f5f9; color: var(--tbc-text); }
.tbc-nav-item.active { background: #fef3c7; color: var(--tbc-secondary); font-weight: 800; }
.tbc-nav-item .nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.tbc-nav-item .nav-badge {
  margin-left: auto;
  background: #e2e8f0; color: var(--tbc-text-soft);
  font-size: 11px; font-weight: 800; letter-spacing: 0;
  padding: 1px 8px; border-radius: 999px;
}
.tbc-nav-item.active .nav-badge { background: var(--tbc-primary); color: var(--tbc-secondary); }

.tbc-sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--tbc-border);
  flex-shrink: 0;
}
.tbc-sidebar-user {
  font-size: 12px;
  color: var(--tbc-text-muted);
  margin-bottom: 8px;
  padding: 4px 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-weight: 600;
}
.tbc-sidebar-logout {
  width: 100%;
  display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0;
  padding: 14px 12px;
  min-height: 44px;
  border-radius: var(--tbc-radius);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  color: var(--tbc-text-soft);
  font-family: inherit;
  transition: background .15s ease;
}
.tbc-sidebar-logout:hover { background: #f1f5f9; color: var(--tbc-text); }

/* Sidebar mobile overlay */
.tbc-sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .35);
  z-index: 90;
  backdrop-filter: blur(2px);
}
.tbc-sidebar-overlay.open { display: block; }

/* Main — proper flex item, no margin hack */
.tbc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--tbc-bg);
  border-left: 1px solid var(--tbc-border);
}

/* Topbar */
.tbc-topbar {
  height: 64px;
  background: var(--tbc-card);
  border-bottom: 1px solid var(--tbc-border);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0;
  z-index: 50;
  gap: 12px;
}
.tbc-topbar-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.tbc-tier-pill { display: none; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.tbc-tier-pill[data-tier="pro"] { background: linear-gradient(135deg, #1d4ed8, #3b82f6); color: #fff; border-color: #1e40af; display: inline-flex; }
.tbc-tier-pill[data-tier="lite"] { background: #f1f5f9; color: #475569; border-color: #cbd5e1; display: inline-flex; }
.tbc-quota-bar { display: flex; flex-direction: column; gap: 6px; padding: 10px 32px; background: linear-gradient(180deg, rgba(241, 245, 249, .7), rgba(241, 245, 249, .3)); border-bottom: 1px solid var(--tbc-border, #e2e8f0); font-size: 13px; color: #475569; }
.tbc-quota-bar-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; }
.tbc-quota-bar-tier { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; font-weight: 800; color: #1e293b; }
.tbc-quota-bar-label strong { color: #0f172a; font-weight: 800; font-size: 14px; }
.tbc-quota-bar-sep { opacity: .4; margin: 0 4px; }
.tbc-quota-bar-track { height: 6px; background: rgba(15, 23, 42, .08); border-radius: 999px; overflow: hidden; }
.tbc-quota-bar-fill { height: 100%; background: linear-gradient(90deg, #10b981, #14b8a6); border-radius: 999px; transition: width .3s ease; width: 0; }
.tbc-quota-bar[data-tier="pro"][data-status="ok"] .tbc-quota-bar-fill { background: linear-gradient(90deg, #10b981, #14b8a6); }
.tbc-quota-bar[data-tier="pro"][data-status="mid"] .tbc-quota-bar-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.tbc-quota-bar[data-tier="pro"][data-status="low"] .tbc-quota-bar-fill { background: linear-gradient(90deg, #dc2626, #ef4444); }
.tbc-quota-bar[data-tier="pro"][data-status="exhausted"] .tbc-quota-bar-fill { background: linear-gradient(90deg, #b91c1c, #dc2626); }
.tbc-quota-bar[data-tier="pro"][data-status="exhausted"] { background: linear-gradient(180deg, rgba(254, 226, 226, .6), rgba(254, 226, 226, .2)); }
.tbc-topbar-badges { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.tbc-topbar-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  background: rgba(15, 23, 42, .04);
  color: var(--tbc-text);
  border: 1px solid var(--tbc-border);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.tbc-topbar-badge:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.tbc-topbar-badge-badge {
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  font-size: 10.5px; font-weight: 900;
  background: var(--tbc-text-muted);
  color: white;
  line-height: 1;
}
.tbc-topbar-badge.is-urgent .tbc-topbar-badge-badge { background: #dc2626; }
.tbc-topbar-badge.is-followup .tbc-topbar-badge-badge { background: #2563eb; }
.tbc-topbar-badge.is-business .tbc-topbar-badge-badge { background: #16a34a; }
.tbc-topbar-badge.is-outbox .tbc-topbar-badge-badge { background: #f59e0b; color: #0f172a; }
.tbc-topbar-badge.is-urgent { border-color: rgba(220, 38, 38, .3); background: rgba(220, 38, 38, .06); }
.tbc-topbar-badge.is-followup { border-color: rgba(37, 99, 235, .3); background: rgba(37, 99, 235, .06); }
.tbc-topbar-badge.is-empty { opacity: 0.4; cursor: default; }
.tbc-topbar-badge.is-empty:hover { transform: none; box-shadow: none; }
@media (max-width: 1023px) {
  .tbc-topbar-badges { gap: 5px; }
  .tbc-topbar-badge { padding: 4px 9px 4px 7px; font-size: 11px; }
  .tbc-topbar-badge-icon-desktop { display: none; }
}
@media (max-width: 520px) {
  .tbc-topbar-badges { display: none; }
}
.tbc-mobile-menu-btn {
  display: none;
  background: transparent; border: 0;
  padding: 8px;
  border-radius: var(--tbc-radius);
  cursor: pointer;
  color: var(--tbc-text);
  font-family: inherit;
}
.tbc-mobile-menu-btn:hover { background: #f1f5f9; }
.tbc-business-name {
  font-size: 14px;
  color: var(--tbc-text-muted);
  font-weight: 600;
  max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tbc-topbar-right { display: flex; align-items: center; gap: 12px; }

.tbc-lang-pill {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--tbc-border);
  border-radius: 999px;
  padding: 3px;
  background: var(--tbc-card);
}
.tbc-lang-btn {
  background: transparent; border: 0;
  padding: 8px 12px;
  min-height: 36px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  cursor: pointer;
  color: var(--tbc-text-muted);
  font-family: inherit;
  transition: background .15s ease, color .15s ease;
}
.tbc-lang-btn.active { background: var(--tbc-secondary); color: var(--tbc-secondary-fg); }

/* Content */
.tbc-content { padding: 28px 32px 48px; flex: 1; }
.tbc-content-inner { max-width: 1200px; margin: 0 auto; }
.tbc-business-name { font-weight: 700; letter-spacing: -0.015em; }

.tbc-page-title {
  font-size: 28px; font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -.028em;
  line-height: 1.15;
  color: var(--tbc-text);
}
.tbc-page-subtitle {
  font-size: 14px; color: var(--tbc-text-muted);
  margin: 0 0 24px;
  line-height: 1.55; font-weight: 500;
}

/* ========== COMPONENTS ========== */

/* Card */
.tbc-card {
  background: var(--tbc-card);
  border: 1px solid var(--tbc-border);
  border-radius: var(--tbc-radius-lg);
  padding: 22px;
  box-shadow: var(--tbc-shadow-sm);
}
.tbc-card-pad-lg { padding: 26px; }
.tbc-card-hover { transition: box-shadow .18s ease, transform .18s ease; }
.tbc-card-hover:hover { box-shadow: var(--tbc-shadow); transform: translateY(-1px); }

.tbc-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 16px;
}
.tbc-card-title { font-size: 16px; font-weight: 800; margin: 0; letter-spacing: -.015em; }
.tbc-card-sub { font-size: 13px; color: var(--tbc-text-muted); margin: 4px 0 0; line-height: 1.55; font-weight: 500; }

/* Metric grid */
.tbc-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 768px) { .tbc-metrics { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .tbc-metrics { grid-template-columns: repeat(6, 1fr); } }

.tbc-metric-card {
  background: var(--tbc-card);
  border: 1px solid var(--tbc-border);
  border-radius: var(--tbc-radius-lg);
  padding: 20px;
  box-shadow: var(--tbc-shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.tbc-metric-card:hover { box-shadow: var(--tbc-shadow); transform: translateY(-2px); border-color: #cbd5e1; }
.tbc-metric-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tbc-metric-icon {
  width: 38px; height: 38px;
  border-radius: var(--tbc-radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
}
.tbc-metric-icon.bg-yellow { background: #fef3c7; color: #b45309; }
.tbc-metric-icon.bg-blue { background: #dbeafe; color: var(--tbc-accent); }
.tbc-metric-icon.bg-green { background: #dcfce7; color: var(--tbc-success); }
.tbc-metric-icon.bg-red { background: #fee2e2; color: var(--tbc-danger); }
.tbc-metric-icon.bg-purple { background: #ede9fe; color: #7c3aed; }
.tbc-metric-icon.bg-gray { background: #e2e8f0; color: var(--tbc-text-soft); }

.tbc-metric-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--tbc-text-soft); font-weight: 700;
}
.tbc-metric-value {
  font-size: 32px; font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Grid 2-1 */
.tbc-grid-2-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) {
  .tbc-grid-2-1 { grid-template-columns: 2fr 1fr; }
}
.tbc-grid-1-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .tbc-grid-1-1 { grid-template-columns: 1fr 1fr; }
}

/* Buttons */
.tbc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--tbc-radius);
  border: 0;
  font-size: 14px; font-weight: 700; letter-spacing: -0.005em;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, background .15s ease;
}
.tbc-btn:focus-visible { outline: 2px solid var(--tbc-accent); outline-offset: 2px; }
.tbc-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.tbc-btn-primary {
  background: var(--tbc-primary); color: var(--tbc-primary-fg);
}
.tbc-btn-primary:hover:not(:disabled) {
  background: var(--tbc-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, .35);
}
.tbc-btn-primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 6px rgba(251, 191, 36, .25); }
.tbc-btn-secondary {
  background: #dbeafe; color: #1e40af;
}
.tbc-btn-secondary:hover:not(:disabled) { background: #bfdbfe; }
.tbc-btn-ghost {
  background: transparent; color: var(--tbc-text);
  border: 1px solid var(--tbc-border);
}
.tbc-btn-ghost:hover:not(:disabled) { background: #f1f5f9; border-color: var(--tbc-border-strong); }
.tbc-btn-danger { background: var(--tbc-danger); color: white; }
.tbc-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.tbc-btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 8px; font-weight: 700; }
.tbc-btn-lg { padding: 14px 22px; font-size: 15px; font-weight: 800; border-radius: var(--tbc-radius); }
.tbc-btn-full { width: 100%; }
.tbc-btn-icon { padding: 8px; }

/* Inputs */
.tbc-input,
.tbc-select,
.tbc-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--tbc-border-strong);
  border-radius: var(--tbc-radius);
  font-size: 15px;
  font-weight: 500;
  background: var(--tbc-card);
  color: var(--tbc-text);
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-family: inherit;
}
.tbc-input::placeholder, .tbc-textarea::placeholder { color: #94a3b8; font-weight: 400; }
.tbc-input:focus,
.tbc-select:focus,
.tbc-textarea:focus {
  outline: none;
  border-color: var(--tbc-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.tbc-textarea { min-height: 100px; resize: vertical; }
.tbc-field { display: block; margin-bottom: 16px; }
.tbc-field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--tbc-text); letter-spacing: -0.005em; }

/* Pills */
.tbc-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.005em;
  background: #dbeafe; color: #1e40af;
  margin: 0 6px 6px 0;
  white-space: nowrap;
}
.tbc-pill-good { background: #dcfce7; color: #166534; }
.tbc-pill-bad { background: #fee2e2; color: #991b1b; }
.tbc-pill-warn { background: #fef3c7; color: #92400e; }
.tbc-pill-neutral { background: #e2e8f0; color: #334155; }
.tbc-pill-urgent { background: #fecaca; color: #7f1d1d; }

/* Banner (trial/readonly) */
.tbc-banner {
  padding: 12px 24px;
  font-size: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tbc-banner-trial { background: #fef3c7; color: #92400e; border-bottom: 1px solid #fde68a; }
.tbc-banner-readonly { background: #fee2e2; color: #991b1b; border-bottom: 1px solid #fecaca; }

/* Empty state */
.tbc-empty {
  border: 1px dashed var(--tbc-border-strong);
  border-radius: var(--tbc-radius-xl);
  padding: 32px 24px;
  text-align: center;
  background: linear-gradient(180deg, var(--tbc-card), var(--tbc-bg));
}
.tbc-empty-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #eff6ff; color: var(--tbc-accent);
  font-size: 24px; font-weight: 900;
}
.tbc-empty h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.tbc-empty p { margin: 0; color: var(--tbc-text-muted); line-height: 1.6; max-width: 420px; margin-left: auto; margin-right: auto; }

/* Table */
.tbc-table-wrap { overflow: auto; border: 1px solid var(--tbc-border); border-radius: var(--tbc-radius-lg); background: var(--tbc-card); }
.tbc-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 720px; }
.tbc-table th, .tbc-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--tbc-border); font-size: 13px; line-height: 1.5; }
.tbc-table th { position: sticky; top: 0; background: var(--tbc-bg); color: var(--tbc-text-soft); font-weight: 800; z-index: 1; }
.tbc-table tr:last-child td { border-bottom: 0; }
.tbc-table tbody tr:hover { background: var(--tbc-bg); }
.tbc-table tr.tbc-row-urgent td { background: #fff7f7; }
.tbc-table tr.tbc-row-urgent td:first-child { box-shadow: inset 4px 0 0 var(--tbc-danger); }

/* ========== SPLIT-SCREEN (login) ========== */
.tbc-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: var(--tbc-bg);
}
@media (min-width: 1024px) {
  .tbc-auth-shell { grid-template-columns: 1fr 1fr; }
}
.tbc-auth-hero {
  display: none;
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #2563eb 100%);
  color: white;
  overflow: hidden;
}
@media (min-width: 1024px) { .tbc-auth-hero { display: block; } }
.tbc-auth-hero-inner {
  position: absolute; inset: 0;
  padding: 56px 48px;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, transparent 30%, rgba(15, 23, 42, .7) 100%);
}
.tbc-auth-hero-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 18px; letter-spacing: -0.02em;
  color: white;
}
.tbc-auth-hero-icon {
  width: 34px; height: 34px;
  background: var(--tbc-primary); color: var(--tbc-secondary);
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 17px;
  box-shadow: 0 6px 14px rgba(251, 191, 36, .35);
}
.tbc-auth-hero-tagline {
  margin: 22px 0 0; font-size: 26px; line-height: 1.25;
  font-weight: 800; max-width: 480px; letter-spacing: -0.025em;
  color: white;
}
.tbc-auth-hero-bullets {
  margin: 28px 0 0; padding: 0; list-style: none;
  display: grid; gap: 12px;
  font-size: 14px; color: #dbeafe; font-weight: 500;
}
.tbc-auth-hero-bullets li { display: flex; align-items: center; gap: 10px; }
.tbc-auth-hero-check {
  width: 20px; height: 20px;
  border-radius: 50%; background: var(--tbc-success); color: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  flex-shrink: 0;
}

.tbc-auth-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}
.tbc-auth-card {
  width: 100%; max-width: 440px;
}
.tbc-auth-logo {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
  font-weight: 900; font-size: 18px; letter-spacing: -0.02em;
  color: var(--tbc-text);
}

/* ========== MOBILE ========== */
@media (max-width: 1023px) {
  .tbc-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 1000;
  }
  .tbc-sidebar.open { transform: translateX(0); box-shadow: 0 30px 60px rgba(15, 23, 42, .3); z-index: 1000; }
  .tbc-sidebar-overlay { z-index: 900; }
  .tbc-main { border-left: 0; z-index: 1; position: relative; }
  .tbc-mobile-menu-btn { display: inline-flex; }
  .tbc-topbar { padding: 0 16px; }
  .tbc-content { padding: 18px 16px 36px; }
  .tbc-page-title { font-size: 22px; }
  .tbc-metrics { grid-template-columns: 1fr 1fr; }
  .tbc-topbar-logout { display: inline-flex !important; }
}
.tbc-topbar-logout { display: none; align-items: center; gap: 5px; background: transparent; border: 1px solid var(--tbc-border); border-radius: 10px; padding: 7px 10px; min-height: 36px; cursor: pointer; color: var(--tbc-text-soft); font-size: 14px; font-weight: 700; font-family: inherit; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.tbc-topbar-logout:hover { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.tbc-topbar-logout-label { display: inline; }
@media (max-width: 380px) { .tbc-topbar-logout-label { display: none; } }
@media (max-width: 1023px) { .tbc-topbar-logout { padding: 7px 12px; background: rgba(15, 23, 42, .04); } }

/* Hide floating i18n switcher when the topbar already has a lang-pill (admin/client dashboards).
   The floating widget stays visible on pages without a topbar (homepage, login, onboarding, etc.). */
body:has(.tbc-topbar .tbc-lang-pill) .tbc-lang-switcher { display: none !important; }
@media (max-width: 520px) {
  .tbc-metrics { grid-template-columns: 1fr; }
  .tbc-content { padding: 16px 12px 28px; }
}

/* Legacy tab compatibility — keep horizontal tabs hidden when sidebar shell is used */
.tbc-shell .legacy-tabs { display: none; }
.tbc-tab-panel { display: none; }
.tbc-tab-panel.active { display: block; }

/* Animations */
@keyframes tbcFadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.tbc-fade-in { animation: tbcFadeIn .22s ease; }