:root {
  --brand-950: #0b1518;
  --brand-900: #102126;
  --brand-800: #173038;
  --brand-700: #1f4150;
  --brand-600: #2a5668;
  --brand-500: #3a6e83;
  --brand-400: #4b879c;
  --brand-300: #6ca0b0;
  --brand-200: #a8c1cc;
  --brand-100: #d7e6ec;
  --brand-50: #eef6f8;
  --accent-600: #d97706;
  --accent-500: #f59e0b;
  --accent-400: #fbbf24;
  --warning-500: #b45309;
  --danger-500: #b42318;
  --surface-0: #f4f6f8;
  --surface-1: #ffffff;
  --surface-2: #eff3f5;
  --surface-3: #e3e8ee;
  --text-900: #0b1220;
  --text-700: #26303b;
  --text-500: #4a5a6a;
  --text-300: #7a8897;
  --border-200: #d4dde6;
  --border-100: #e4eaf0;
  --shadow-1: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-2: 0 10px 24px rgba(15, 23, 42, 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --font-code: "JetBrains Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text-900);
  font-family: var(--font-body);
}

body.app-shell {
  background-image: radial-gradient(1200px 800px at 15% -10%, rgba(59, 110, 131, 0.18), transparent 60%),
    radial-gradient(900px 700px at 95% 0%, rgba(245, 158, 11, 0.18), transparent 55%),
    linear-gradient(180deg, #f7f7f2 0%, #eef2f6 45%, #f5f7fa 100%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--brand-600);
}

a,
button {
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
}

button:active,
a:active {
  transform: translateY(1px);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 15, 20, 0.55);
  z-index: 50;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal__panel {
  width: min(860px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(228, 234, 240, 0.9);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal__title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-500);
}

.modal__close {
  border: 1px solid var(--border-200);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
}

.modal__close:hover {
  box-shadow: var(--shadow-2);
}

.page-shell {
  min-height: 100vh;
  display: flex;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table thead th {
  font-size: 0.72rem;
  color: var(--text-500);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0 14px 6px 14px;
}

.table tbody tr {
  background: var(--surface-1);
  box-shadow: var(--shadow-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(238, 246, 248, 0.9);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.18);
  transform: translateY(-2px);
}

.table tbody td {
  padding: 14px;
  font-size: 0.92rem;
  border-top: 1px solid var(--border-100);
  border-bottom: 1px solid var(--border-100);
}

.table tbody td:first-child {
  border-left: 1px solid var(--border-100);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.table tbody td:last-child {
  border-right: 1px solid var(--border-100);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-200);
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(75, 135, 156, 0.18);
}

textarea.input {
  resize: vertical;
}

select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-500) 50%),
    linear-gradient(135deg, var(--text-500) 50%, transparent 50%);
  background-position: calc(100% - 20px) 17px, calc(100% - 15px) 17px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.glass-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(228, 234, 240, 0.8);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border-200);
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pill-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-2);
  background: rgba(238, 246, 248, 0.9);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.metric {
  display: flex;
  align-items: center;
  gap: 10px;
}

.metric__value {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 600;
}

.metric__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-500);
}
.shadow-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shadow-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.glass-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}
