:root {
  --bg0: #0b0e14;
  --bg1: #0f172a;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --muted2: rgba(255, 255, 255, 0.55);

  --good: #2dd4bf;
  --warn: #fbbf24;
  --bad: #fb7185;
  --accent: #60a5fa;
  --shadow: 0 22px 65px rgba(0, 0, 0, 0.42);

  --r: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1400px 900px at 8% 12%, rgba(96, 165, 250, 0.14), transparent 60%),
    radial-gradient(1200px 800px at 88% 22%, rgba(45, 212, 191, 0.10), transparent 60%),
    radial-gradient(900px 700px at 50% 90%, rgba(251, 191, 36, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: 0.22;
  mask-image: radial-gradient(800px 700px at 50% 25%, rgba(0, 0, 0, 1), transparent 70%);
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 36px auto 64px;
}

.hero {
  padding: 18px 6px 22px;
  animation: rise 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 12px;
}

.hero__title {
  margin: 12px 0 8px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 70ch;
}

.hero__note {
  margin: 12px 0 0;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.6;
  max-width: 78ch;
}

.grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.card {
  border-radius: var(--r);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, var(--card), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
  padding: 16px;
  backdrop-filter: blur(10px);
  animation: rise 650ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.card--wide {
  margin-top: 18px;
}

.card__title {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.78);
}

.card__footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.form {
  display: grid;
  gap: 12px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.field__input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 12, 18, 0.60);
  color: var(--text);
  outline: none;
  transition: border-color 140ms ease, transform 140ms ease, background 140ms ease;
}

.field__input:focus {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(10, 12, 18, 0.72);
}

.field__textarea {
  resize: vertical;
  min-height: 92px;
}

.field__hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}

.field__tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 6px;
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: help;
  transition: all 150ms ease;
}

.field__tooltip-icon:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(99, 102, 241, 0.3);
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 4px 0;
}

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.4;
  user-select: none;
}

.check input {
  margin-top: 2px;
}

.contact {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.contact--hidden {
  display: none;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  border: 1px solid rgba(96, 165, 250, 0.35);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.22), rgba(96, 165, 250, 0.10));
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.55);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.empty {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.6;
  padding: 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.14);
}

.result {
  display: grid;
  gap: 12px;
}

.result--hidden {
  display: none;
}

.pillrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
}

.pill--ghost {
  background: transparent;
}

.result__main {
  padding: 8px 2px 4px;
}

.result__label {
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.60);
}

.result__title {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 6px;
}

.result__sub {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

.reasons {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.basis {
  padding: 12px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  font-size: 13px;
  line-height: 1.6;
}

.basis--hidden {
  display: none;
}

.basis-row {
  margin-bottom: 6px;
}

.basis-row:last-child {
  margin-bottom: 0;
}

.basis-row span {
  color: rgba(96, 165, 250, 0.9);
  font-weight: 500;
}

.result__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}

.small {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  line-height: 1.7;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .form__row {
    grid-template-columns: 1fr;
  }
}

/* v2 - Additional styles */

.field__row {
  display: flex;
  gap: 8px;
}

.field__input--with-btn {
  flex: 1;
}

.btn--small {
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.btn--secondary {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.22), rgba(251, 191, 36, 0.10));
  border-color: rgba(251, 191, 36, 0.35);
}

.btn--secondary:hover {
  border-color: rgba(251, 191, 36, 0.55);
}

/* Two buttons side by side */
.field__row .btn--small {
  flex-shrink: 0;
}

.btn--accent {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.10));
  border-color: rgba(45, 212, 191, 0.35);
}

.btn--accent:hover {
  border-color: rgba(45, 212, 191, 0.55);
}

/* Measures section */
.measures-section,
.booking-section {
  margin-top: 12px;
}

.measures-section--hidden,
.booking-section--hidden {
  display: none;
}

.measures-card--hidden,
.booking-card--hidden {
  display: none;
}

.measures-list {
  display: grid;
  gap: 0;
  margin: 16px 0;
}

/* Category header - gray-blue style */
.measure-category {
  margin-top: 20px;
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.25), rgba(71, 85, 105, 0.18));
  border: 1px solid rgba(148, 163, 184, 0.3);
  cursor: pointer;
  transition: all 200ms ease;
}

.measure-category:first-child {
  margin-top: 0;
}

.measure-category:hover {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.32), rgba(71, 85, 105, 0.25));
  border-color: rgba(148, 163, 184, 0.5);
}

.measure-category__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.measure-category__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.3);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  margin-right: 12px;
}

.measure-category__title {
  font-weight: 600;
  font-size: 15px;
  color: #e2e8f0;
  flex: 1;
}

.measure-category__count {
  font-size: 12px;
  color: rgba(148, 163, 184, 0.8);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.3);
}

.measure-category__toggle {
  margin-left: 12px;
  font-size: 12px;
  color: rgba(148, 163, 184, 0.7);
}

.measure-category--collapsed .measure-category__toggle::after {
  content: "▼";
}

.measure-category--expanded .measure-category__toggle::after {
  content: "▲";
}

/* Measures inside category */
.measure-category__items {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
}

.measure-category--collapsed .measure-category__items {
  display: none;
}

.measure-category__intro {
  padding: 8px 12px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 8px;
  border-left: 3px solid rgba(99, 102, 241, 0.4);
}

.measure-category__intro em {
  font-style: normal;
}

.measure-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 8px;
  align-items: start;
  transition: all 150ms ease;
}

.measure-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.measure-item__code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.9);
  min-width: 36px;
  padding-top: 2px;
}

.measure-item__code--category {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.3), rgba(71, 85, 105, 0.2));
  padding: 4px 8px;
  border-radius: 4px;
  color: #cbd5e1;
}

.measure-item__main {
  display: grid;
  gap: 6px;
}

.measure-item__title {
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
  cursor: help;
  position: relative;
}

.measure-item__description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.measure-item__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.measure-item__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  cursor: help;
  transition: all 150ms ease;
}

.measure-item__badge--justification {
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.measure-item__badge--justification:hover {
  background: rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.5);
}

.measure-item__badge--nis2 {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

.measure-item__badge--nis2:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
}

/* Tooltip */
.measure-item__tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  max-width: 400px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all 200ms ease;
  pointer-events: none;
}

.measure-item__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 20px;
  border: 6px solid transparent;
  border-top-color: rgba(148, 163, 184, 0.3);
}

.measure-item__title:hover .measure-item__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Badge tooltip */
.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 350px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
  pointer-events: none;
  white-space: pre-wrap;
}

.badge-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(148, 163, 184, 0.3);
}

.measure-item__badge:hover .badge-tooltip {
  opacity: 1;
  visibility: visible;
}

.measure-item__status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.status-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 18px;
  transition: all 200ms ease;
  opacity: 0.5;
  filter: grayscale(60%);
}

.status-btn:hover {
  transform: scale(1.1);
  opacity: 0.8;
  filter: grayscale(20%);
}

.status-btn--green {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}

.status-btn--green.selected {
  background: rgba(34, 197, 94, 0.9);
  border-color: #22c55e;
  opacity: 1;
  filter: grayscale(0%);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

.status-btn--yellow {
  background: rgba(234, 179, 8, 0.15);
  border-color: rgba(234, 179, 8, 0.3);
}

.status-btn--yellow.selected {
  background: rgba(234, 179, 8, 0.9);
  border-color: #eab308;
  opacity: 1;
  filter: grayscale(0%);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.6);
}

.status-btn--red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.status-btn--red.selected {
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
  opacity: 1;
  filter: grayscale(0%);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.6);
}

.measure-item__notes textarea {
  width: 100%;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 12px;
  resize: vertical;
}

.measures-summary {
  margin-top: 16px;
}

.measures-summary--hidden {
  display: none;
}

.measures-summary--top {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  position: sticky;
  top: 8px;
  z-index: 10;
}

.overall-status {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.overall-status__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overall-status__pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  transition: all 200ms ease;
}

.overall-status__pill--neutral {
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #94a3b8;
}

.overall-status__pill--green {
  background: rgba(45, 212, 191, 0.2);
  border: 2px solid rgba(45, 212, 191, 0.5);
  color: #2dd4bf;
}

.overall-status__pill--yellow {
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid rgba(251, 191, 36, 0.5);
  color: #fbbf24;
}

.overall-status__pill--red {
  background: rgba(251, 113, 133, 0.2);
  border: 2px solid rgba(251, 113, 133, 0.5);
  color: #fb7185;
}

.overall-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.stat {
  font-size: 14px;
  font-weight: 500;
}

.stat--green {
  color: #2dd4bf;
}

.stat--yellow {
  color: #fbbf24;
}

.stat--red {
  color: #fb7185;
}

.stat--total {
  color: rgba(255, 255, 255, 0.5);
}

/* Law sections */
.law-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.law-section-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  color: #818cf8;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 150ms ease;
}

.law-section-link:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* Law modal */
.law-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
}

.law-modal--visible {
  opacity: 1;
  visibility: visible;
}

.law-modal__content {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  max-width: 800px;
  max-height: 80vh;
  width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 200ms ease;
}

.law-modal--visible .law-modal__content {
  transform: scale(1);
}

.law-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(99, 102, 241, 0.1);
}

.law-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #a5b4fc;
}

.law-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  cursor: pointer;
  transition: all 150ms ease;
}

.law-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.law-modal__body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.law-modal__section {
  margin-bottom: 16px;
}

.law-modal__section-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(148, 163, 184, 0.8);
  margin-bottom: 8px;
}

.law-modal__text {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.law-modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 13px;
  margin-top: 12px;
}

.law-modal__link:hover {
  text-decoration: underline;
}

/* Subjects list in modal */
.law-modal__subjects {
  margin-top: 16px;
}

.law-modal__subject-category {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.law-modal__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.law-modal__category-name {
  font-weight: 600;
  color: #e2e8f0;
}

.law-modal__category-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.law-modal__category-badge--essential {
  background: rgba(251, 113, 133, 0.2);
  color: #fb7185;
}

.law-modal__category-badge--important {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.law-modal__subject-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.law-modal__subject-item {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.law-modal__subject-item:last-child {
  border-bottom: none;
}

.law-modal__law-ref {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.8);
  margin-left: 8px;
}

/* Booking slots */
.slots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.slot-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: all 150ms ease;
}

.slot-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.1);
}

.slot-btn.selected {
  border-color: rgba(45, 212, 191, 0.6);
  background: rgba(45, 212, 191, 0.2);
}

.slot-btn__date {
  font-size: 12px;
  opacity: 0.7;
}

.slot-btn__time {
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
}

/* Debug view */
.debug-section {
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.05);
}

.debug-section--hidden {
  display: none;
}

.debug-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: rgba(96, 165, 250, 0.9);
}

.debug-content {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.debug-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.debug-row--section {
  grid-column: 1 / -1;
  margin-top: 12px;
  margin-bottom: 4px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(96, 165, 250, 0.2);
}

.debug-row--section .debug-label {
  color: rgba(96, 165, 250, 0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.debug-label {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.debug-value {
  color: rgba(255, 255, 255, 0.9);
  word-break: break-all;
}

.debug-value--null {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
}
