:root {
  --cb-blue: #1a56db;
  --cb-gold: #d97706;
  --cb-ink: #0f172a;
}

.accent, .text-accent, .hover\:text-accent:hover { color: var(--cb-blue) !important; }
.bg-accent, .bg-primary { background-color: var(--cb-blue) !important; }
.border-accent, .border-accent\/30, .border-accent\/40 { border-color: rgba(26, 86, 219, 0.4) !important; }
.shadow-accent\/25 { --tw-shadow-color: rgb(26 86 219 / 0.25); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px;
  background: #fff;
}
.lang-toggle a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  text-decoration: none;
}
.lang-toggle a.active {
  background: #1a56db;
  color: #fff;
}
.flag { width: 16px; height: 12px; border-radius: 2px; display: inline-block; }

.dash-shell { min-height: 100vh; background: #f8fafc; color: #0f172a; }
.dash-nav {
  width: 260px;
  background: #0f172a;
  color: #cbd5e1;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 22px 16px;
  overflow: auto;
}
.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.dash-nav a.active, .dash-nav a:hover { background: rgba(26,86,219,.2); color: #fff; }
.dash-main { margin-left: 260px; padding: 28px; }
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 30px -20px rgb(15 23 42 / .4);
}
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { font-size: 26px; font-weight: 900; letter-spacing: -.03em; }
.badge-info, .badge-warn, .badge-ok, .badge-danger, .badge-gold {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 800;
}
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-warn { background: #fef3c7; color: #92400e; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-gold { background: #ffedd5; color: #9a3412; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 16px; border-radius: 12px; font-weight: 800; border: 0; cursor: pointer; text-decoration: none;
}
.btn-primary { background: #1a56db; color: #fff; }
.btn-gold { background: #d97706; color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #e2e8f0; color: #0f172a; }
.input, select, textarea {
  width: 100%; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 12px 14px; font: inherit;
}
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-ok { background: #dcfce7; color: #166534; }
.topic-page { min-height: 70vh; }
.topic-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.topic-form-sticky {
  position: sticky;
  top: 96px;
}
.topic-form-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px -28px rgb(15 23 42 / .45);
}
.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: #64748b;
  font-weight: 700;
}
.client-name {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}
.case-title-sub {
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}
.dash-user-name {
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
}
.btn-danger { background: #991b1b; color: #fff; }
.btn-ok { background: #166534; color: #fff; }
@media (max-width: 960px) {
  .dash-nav { position: relative; width: auto; inset: auto; }
  .dash-main { margin-left: 0; padding: 16px; }
  .topic-wrap { grid-template-columns: 1fr; }
  .topic-form-sticky { position: static; }
}

.auth-page {
  min-height: 100vh;
  position: relative;
  color: #fff;
  padding: 20px 20px 40px;
  overflow: hidden;
  background: #0b1220;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(26, 86, 219, 0.45), transparent 60%),
    radial-gradient(700px 360px at 100% 10%, rgba(217, 119, 6, 0.22), transparent 55%),
    linear-gradient(180deg, #16003f 0%, #0b1220 100%);
  z-index: 0;
}
.auth-top, .auth-grid, .auth-card-center { position: relative; z-index: 1; }
.auth-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto 28px;
}
.auth-brand img { height: 40px; width: auto; }
.auth-top-right { display: flex; align-items: center; gap: 12px; }
.auth-ghost {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 8px 14px;
}
.auth-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.auth-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 12px 0 16px;
}
.auth-copy p { color: rgba(255,255,255,.72); max-width: 460px; line-height: 1.7; }
.auth-kicker {
  display: inline-flex;
  border: 1px solid rgba(26,86,219,.4);
  background: rgba(26,86,219,.15);
  color: #93c5fd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.auth-points { margin-top: 22px; padding-left: 18px; color: rgba(255,255,255,.8); }
.auth-points li { margin: 8px 0; }
.auth-card {
  background: #fff;
  color: #0f172a;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.45);
}
.auth-card h2 { font-size: 1.6rem; font-weight: 900; }
.auth-sub { color: #64748b; margin: 8px 0 18px; font-size: 14px; }
.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #64748b;
  margin: 12px 0 6px;
}
.auth-form .btn { margin-top: 18px; min-height: 48px; width: 100%; }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
}
.auth-links a { color: #1a56db; text-decoration: none; }
.auth-help { font-size: 12px; color: #64748b; margin-top: 8px; line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 84px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #1a56db;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.auth-page-simple { display: flex; flex-direction: column; }
.auth-card-center { max-width: 420px; width: 100%; margin: 40px auto 0; }
.totp-input { font-size: 28px; letter-spacing: .35em; text-align: center; font-weight: 800; }
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-copy { text-align: center; }
  .auth-copy p, .auth-points { margin-left: auto; margin-right: auto; text-align: left; }
}

