/* Panel klienta i administratora - Bootstrap 5 w kolorach inspektauto.pl (public/assets/style.css) */
:root {
  --ia-blue: #1d4ea5;
  --ia-blue-dark: #163d84;
  --ia-blue-soft: #e8eef9;
  --ia-ink: #141a27;
  --ia-ink-2: #4b5363;
  --ia-line: #dfe3ea;
  --ia-paper: #f5f6f8;
  --bs-primary: #1d4ea5;
  --bs-primary-rgb: 29, 78, 165;
  --bs-link-color: #1d4ea5;
  --bs-link-color-rgb: 29, 78, 165;
  --bs-link-hover-color: #163d84;
  --bs-body-color: #141a27;
  --bs-border-color: #dfe3ea;
  --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--ia-paper); }
.btn-primary { --bs-btn-bg: var(--ia-blue); --bs-btn-border-color: var(--ia-blue); --bs-btn-hover-bg: var(--ia-blue-dark); --bs-btn-hover-border-color: var(--ia-blue-dark); --bs-btn-active-bg: var(--ia-blue-dark); --bs-btn-active-border-color: var(--ia-blue-dark); --bs-btn-disabled-bg: var(--ia-blue); --bs-btn-disabled-border-color: var(--ia-blue); }
.btn-outline-primary { --bs-btn-color: var(--ia-blue); --bs-btn-border-color: var(--ia-blue); --bs-btn-hover-bg: var(--ia-blue); --bs-btn-hover-border-color: var(--ia-blue); --bs-btn-active-bg: var(--ia-blue-dark); }
.text-primary { color: var(--ia-blue) !important; }
.bg-primary-soft { background: var(--ia-blue-soft); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #7b9bd3; box-shadow: 0 0 0 .2rem rgba(29, 78, 165, .15); }
.form-check-input:checked { background-color: var(--ia-blue); border-color: var(--ia-blue); }
.card { border-color: var(--ia-line); }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.small-muted { font-size: .85rem; color: var(--ia-ink-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* Strony logowania i rejestracji */
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-logo img { height: 30px; width: auto; margin: 0 auto 24px; display: block; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--ia-line); border-radius: 8px; padding: 28px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.auth-foot { margin-top: 18px; font-size: .9rem; color: var(--ia-ink-2); text-align: center; }

/* Szkielet panelu */
.shell-side { position: fixed; inset: 0 auto 0 0; width: 240px; background: #fff; border-right: 1px solid var(--ia-line); display: flex; flex-direction: column; z-index: 1030; transition: transform .2s; }
.shell-side .brand { height: 64px; display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--ia-line); }
.shell-side .brand img { height: 22px; width: auto; }
.shell-side nav { padding: 12px; flex: 1; overflow-y: auto; }
.shell-side .nav-link { display: flex; align-items: center; gap: 10px; color: var(--ia-ink-2); border-radius: 6px; padding: 9px 12px; font-weight: 500; }
.shell-side .nav-link:hover { background: var(--ia-paper); color: var(--ia-ink); }
.shell-side .nav-link.active { background: var(--ia-blue-soft); color: var(--ia-blue); }
.shell-side .nav-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #7c8492; padding: 14px 12px 4px; }
.shell-side .who { border-top: 1px solid var(--ia-line); padding: 14px 20px; font-size: .88rem; }
.shell-main { margin-left: 240px; min-height: 100vh; }
.shell-top { height: 64px; background: #fff; border-bottom: 1px solid var(--ia-line); display: flex; align-items: center; gap: 12px; padding: 0 16px; position: sticky; top: 0; z-index: 1020; }
.shell-top h1 { font-size: 1.15rem; font-weight: 650; margin: 0; }
.shell-content { padding: 24px 16px; max-width: 1200px; }
@media (min-width: 768px) { .shell-top { padding: 0 28px; } .shell-content { padding: 28px; } }
.shell-toggle { display: none; }
@media (max-width: 991.98px) {
  .shell-side { transform: translateX(-100%); }
  .shell-side.show { transform: none; box-shadow: 0 0 40px rgba(20, 26, 39, .25); }
  .shell-main { margin-left: 0; }
  .shell-toggle { display: inline-flex; }
}

/* Wybór pakietu */
.plan-card { cursor: pointer; transition: border-color .15s, box-shadow .15s; height: 100%; }
.plan-card:hover { border-color: #9fb4dc; }
.plan-radio:checked + .plan-card { border-color: var(--ia-blue); box-shadow: 0 0 0 2px var(--ia-blue); }
.plan-radio:disabled + .plan-card { opacity: .55; cursor: not-allowed; }
.plan-card .price { font-size: 1.6rem; font-weight: 750; letter-spacing: -.02em; }
.plan-card ul { padding-left: 1.1rem; margin: 0; }
.plan-badge { position: absolute; top: -10px; right: 14px; }
.stat { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.secret-box { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; }
