@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
  /* base surfaces (HSL triplets; use with hsl(var(--token))) */
  --bg: 215 33% 7%;
  --bg-secondary: 212 26% 11%;
  --border: 214 20% 21%;

  /* text */
  --text: 0 0% 92%;
  --text-muted: 210 12% 70%;
  --text-inactive: 215 8% 48%;

  /* accents */
  --accent: 28 30% 48%;
  --accent-hover: 17 56% 58%;
  --highlight: 29 83% 79%;

  /* states */
  --success: 153 49% 57%;
  --danger: 6 100% 61%;
  --inactive: 213 10% 60%;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
  background: hsl(var(--bg));
  color: hsl(var(--text));
  font-family: 'Space Grotesk', sans-serif;
}

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

a:visited {
  color: inherit;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: hsl(var(--accent-hover) / 0.12); }
.btn:disabled, .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary { background: hsl(var(--accent)); border-color: hsl(var(--accent)); color: hsl(var(--text)); }
.btn-primary:hover { background: hsl(var(--accent-hover)); border-color: hsl(var(--accent-hover)); }
.btn-success { background: hsl(var(--success)); border-color: hsl(var(--success)); color: hsl(var(--text)); }
.btn-danger { background: hsl(var(--danger)); border-color: hsl(var(--danger)); color: hsl(var(--text)); }
.btn-outline { background: transparent; color: hsl(var(--text)); }
.btn-outline:hover { background: hsl(var(--accent) / 0.1); }

/* Cards */
.card {
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
}
.card-header { padding: 0.75rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.card-body { padding: 1rem; }
.card-footer { padding: 0.75rem 1rem; border-top: 1px solid hsl(var(--border)); }
.card-title { 
  margin-top: 0;
  margin-bottom: 0.5rem; 
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.card-title > * {
  margin: 0;
}
.card-text { 
  margin-bottom: 0.5rem; 
}

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: 0.5rem; border: 1px solid transparent; }
.alert-success { background: hsl(var(--success) / 0.12); border-color: hsl(var(--success) / 0.3); color: hsl(var(--text)); }
.alert-danger { background: hsl(var(--danger) / 0.12); border-color: hsl(var(--danger) / 0.3); color: hsl(var(--text)); }
.alert-info { background: hsl(var(--accent) / 0.12); border-color: hsl(var(--accent) / 0.3); color: hsl(var(--text)); }

/* Badges */
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.75rem; line-height: 1; }
.badge-primary { background: hsl(var(--accent)); color: hsl(var(--text)); }
.badge-success { background: hsl(var(--success)); color: hsl(var(--text)); }
.badge-danger { background: hsl(var(--danger)); color: hsl(var(--text)); }

/* Forms */
.form-control,
.form-select,
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
}

.form-select,
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}
.form-control::placeholder,
textarea::placeholder { color: hsl(var(--text-muted)); }
.form-control:focus,
.form-select:focus,
select:focus,
textarea:focus { outline: none; border-color: hsl(var(--accent)); box-shadow: 0 0 0 3px hsl(var(--accent) / 0.25); }
.form-text { color: hsl(var(--text-inactive)); font-size: 0.875rem; }

/* Input groups */
.input-group {
  display: flex;
  width: 100%;
  max-width: 400px;
  margin-bottom: 1rem;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--text-muted));
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem 0 0 0.5rem;
  border-right: none;
}

.input-group .form-select,
.input-group select {
  flex: 1;
  border-radius: 0 0.5rem 0.5rem 0;
}

.input-group .form-control {
  border-radius: 0.5rem 0 0 0.5rem;
}

.input-group .btn {
  border-radius: 0 0.5rem 0.5rem 0;
  border-left: none;
}

/* Navigation */
.nav { display: flex; gap: 0.75rem; }
.nav-link { color: hsl(var(--text)); text-decoration: none; padding: 0.5rem 0.25rem; border-radius: 0.375rem; }
.nav-link:hover { background: hsl(var(--accent) / 0.1); }
.navbar {
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: hsl(var(--bg-secondary));
  border-bottom: 1px solid hsl(var(--border));
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
  color: hsl(var(--text));
}
.table th, .table td {
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--border));
}
.table thead th {
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
  font-weight: 600;
}
.table tbody td {
  color: hsl(var(--text));
}
.table tbody td a,
.table tbody td a:link,
.table tbody td a:visited,
.table tbody td a:active {
  color: hsl(var(--text)) !important;
  text-decoration: none !important;
}
.table tbody td a:hover {
  color: hsl(var(--accent-hover)) !important;
  text-decoration: underline !important;
}

/* Striped tables */
.table-striped tbody tr:nth-child(odd) {
  background: hsl(var(--bg)) !important;
}
.table-striped tbody tr:nth-child(even) {
  background: hsl(var(--bg-secondary)) !important;
}

/* DataTables overrides */
table.dataTable tbody tr {
  background: transparent;
}
table.dataTable.table-striped tbody tr:nth-child(odd) {
  background: hsl(var(--bg)) !important;
}
table.dataTable.table-striped tbody tr:nth-child(even) {
  background: hsl(var(--bg-secondary)) !important;
}
table.dataTable tbody td {
  color: hsl(var(--text)) !important;
}
table.dataTable tbody td a {
  color: hsl(var(--text)) !important;
}
table.dataTable thead th {
  color: hsl(var(--text)) !important;
  background: hsl(var(--bg-secondary)) !important;
}

/* Sortable table headers */
.sortable-header {
  cursor: pointer;
  user-select: none;
}
.sortable-header:hover {
  background: hsl(var(--accent) / 0.1);
}
.sortable-header::after {
  content: ' ↕';
  opacity: 0.5;
  font-size: 0.8em;
}
.sortable-header.asc::after {
  content: ' ↑';
  opacity: 1;
}
.sortable-header.desc::after {
  content: ' ↓';
  opacity: 1;
}

/* ============================================
   LAYOUT SYSTEM (Grid)
   ============================================ */

/* Container */
.container {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* Row */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.75rem;
  margin-left: -0.75rem;
  justify-content: center;
}

/* Columns - Base */
.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-sm, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-md, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-lg, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-xl, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.offset-1 { margin-left: 8.333333%; }
.offset-2 { margin-left: 16.666667%; }
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }
.offset-5 { margin-left: 41.666667%; }
.offset-6 { margin-left: 50%; }
.offset-7 { margin-left: 58.333333%; }
.offset-8 { margin-left: 66.666667%; }
.offset-9 { margin-left: 75%; }
.offset-10 { margin-left: 83.333333%; }
.offset-11 { margin-left: 91.666667%; }

/* Columns - Small (sm) breakpoint */
@media (min-width: 576px) {
  .col-sm { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-sm-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
  .offset-sm-0 { margin-left: 0; }
  .offset-sm-1 { margin-left: 8.333333%; }
  .offset-sm-2 { margin-left: 16.666667%; }
  .offset-sm-3 { margin-left: 25%; }
  .offset-sm-4 { margin-left: 33.333333%; }
  .offset-sm-5 { margin-left: 41.666667%; }
  .offset-sm-6 { margin-left: 50%; }
  .offset-sm-7 { margin-left: 58.333333%; }
  .offset-sm-8 { margin-left: 66.666667%; }
  .offset-sm-9 { margin-left: 75%; }
  .offset-sm-10 { margin-left: 83.333333%; }
  .offset-sm-11 { margin-left: 91.666667%; }
}

/* Columns - Medium (md) breakpoint */
@media (min-width: 768px) {
  .col-md { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-md-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .offset-md-0 { margin-left: 0; }
  .offset-md-1 { margin-left: 8.333333%; }
  .offset-md-2 { margin-left: 16.666667%; }
  .offset-md-3 { margin-left: 25%; }
  .offset-md-4 { margin-left: 33.333333%; }
  .offset-md-5 { margin-left: 41.666667%; }
  .offset-md-6 { margin-left: 50%; }
  .offset-md-7 { margin-left: 58.333333%; }
  .offset-md-8 { margin-left: 66.666667%; }
  .offset-md-9 { margin-left: 75%; }
  .offset-md-10 { margin-left: 83.333333%; }
  .offset-md-11 { margin-left: 91.666667%; }
}

/* Columns - Large (lg) breakpoint */
@media (min-width: 992px) {
  .col-lg { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-lg-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
  .offset-lg-0 { margin-left: 0; }
  .offset-lg-1 { margin-left: 8.333333%; }
  .offset-lg-2 { margin-left: 16.666667%; }
  .offset-lg-3 { margin-left: 25%; }
  .offset-lg-4 { margin-left: 33.333333%; }
  .offset-lg-5 { margin-left: 41.666667%; }
  .offset-lg-6 { margin-left: 50%; }
  .offset-lg-7 { margin-left: 58.333333%; }
  .offset-lg-8 { margin-left: 66.666667%; }
  .offset-lg-9 { margin-left: 75%; }
  .offset-lg-10 { margin-left: 83.333333%; }
  .offset-lg-11 { margin-left: 91.666667%; }
}

/* Columns - Extra Large (xl) breakpoint */
@media (min-width: 1200px) {
  .col-xl { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-xl-auto { flex: 0 0 auto; width: auto; max-width: 100%; }
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
  .offset-xl-0 { margin-left: 0; }
  .offset-xl-1 { margin-left: 8.333333%; }
  .offset-xl-2 { margin-left: 16.666667%; }
  .offset-xl-3 { margin-left: 25%; }
  .offset-xl-4 { margin-left: 33.333333%; }
  .offset-xl-5 { margin-left: 41.666667%; }
  .offset-xl-6 { margin-left: 50%; }
  .offset-xl-7 { margin-left: 58.333333%; }
  .offset-xl-8 { margin-left: 66.666667%; }
  .offset-xl-9 { margin-left: 75%; }
  .offset-xl-10 { margin-left: 83.333333%; }
  .offset-xl-11 { margin-left: 91.666667%; }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Display utilities */
.d-grid { display: grid; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-sm-flex { display: block; }
@media (min-width: 576px) { .d-sm-flex { display: flex; } }
.justify-content-sm-center { justify-content: normal; }
@media (min-width: 576px) { .justify-content-sm-center { justify-content: center; } }
.me-sm-3 { margin-right: 0; }
@media (min-width: 576px) { .me-sm-3 { margin-right: 1rem; } }

/* Flexbox utilities */
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-shrink-0 { flex-shrink: 0; }

/* Gap utilities */
.gap-0 { gap: 0; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 3rem; }
.g-0 { gap: 0; }
.g-1 { gap: 0.25rem; }
.g-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }
.g-4 { gap: 1.5rem; }
.g-5 { gap: 3rem; }

/* Typography utilities */
.display-1 { font-size: 5rem; line-height: 1.2; color: hsl(var(--text)); }
.display-2 { font-size: 4.5rem; line-height: 1.2; color: hsl(var(--text)); }
.display-3 { font-size: 3.5rem; line-height: 1.2; color: hsl(var(--text)); }
.display-4 { font-size: 2.5rem; line-height: 1.2; color: hsl(var(--text)); }
.display-5 { font-size: 2rem; line-height: 1.2; color: hsl(var(--text)); }
.display-6 { font-size: 1.5rem; line-height: 1.2; color: hsl(var(--text)); }
.lead { font-size: 1.25rem; color: hsl(var(--text-muted)); }
.small { font-size: 0.875rem; }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.text-muted { color: hsl(var(--text-muted)) !important; }
.text-primary { color: hsl(var(--accent)) !important; }
.text-nowrap { white-space: nowrap; }
.text-wrap { white-space: normal; }
.bg-white { background: #ffffff; }

/* Button variants */
.btn-outline-primary { background: transparent; color: hsl(var(--accent)); border-color: hsl(var(--accent)); }
.btn-outline-primary:hover { background: hsl(var(--accent) / 0.1); color: hsl(var(--text)); }
.btn-outline-secondary { background: transparent; color: hsl(var(--text)); border-color: hsl(var(--border)); }
.btn-outline-secondary:hover { background: hsl(var(--accent) / 0.08); }
.btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.625rem 1rem; font-size: 1.125rem; }
.btn-xl { padding: 2rem 3rem; font-size: 1.5rem; min-width: 300px; }
.shadow-sm { box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075); }

/* List group */
.list-group { display: flex; flex-direction: column; border-radius: 0.5rem; overflow: hidden; }
.list-group-item { padding: 1rem; border-top: 1px solid hsl(var(--border)); background: hsl(var(--bg-secondary)); color: hsl(var(--text)); }
.list-group-item:first-child { border-top: none; }

/* Image utilities */
.img-fluid { 
  width: 100%; 
  height: auto; 
}
.card-img-top { 
  width: 100%; 
  height: auto; 
  object-fit: cover;
  border-radius: 0.75rem 0.75rem 0 0;
}

/* Margin utilities */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 1rem; }
.m-4 { margin: 1.5rem; }
.m-5 { margin: 3rem; }

.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: 0.25rem; margin-right: 0.25rem; }
.mx-2 { margin-left: 0.5rem; margin-right: 0.5rem; }
.mx-3 { margin-left: 1rem; margin-right: 1rem; }
.mx-4 { margin-left: 1.5rem; margin-right: 1.5rem; }
.mx-5 { margin-left: 3rem; margin-right: 3rem; }

.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 1rem; }
.ml-4 { margin-left: 1.5rem; }
.ml-5 { margin-left: 3rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.mr-4 { margin-right: 1.5rem; }
.mr-5 { margin-right: 3rem; }

.ms-auto { margin-left: auto; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 3rem; }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 3rem; }

.pl-0 { padding-left: 0; }
.pl-1 { padding-left: 0.25rem; }
.pl-2 { padding-left: 0.5rem; }
.pl-3 { padding-left: 1rem; }
.pl-4 { padding-left: 1.5rem; }
.pl-5 { padding-left: 3rem; }

.pr-0 { padding-right: 0; }
.pr-1 { padding-right: 0.25rem; }
.pr-2 { padding-right: 0.5rem; }
.pr-3 { padding-right: 1rem; }
.pr-4 { padding-right: 1.5rem; }
.pr-5 { padding-right: 3rem; }

/* Sizing utilities */
.h-100 { height: 100%; }
.vh-80 { min-height: 80vh; }
.w-100 { width: 100%; }
.mw-100 { max-width: 100%; }

/* Display utilities */
.d-none { display: none !important; }

/* Aspect ratio utility */
.ratio {
  position: relative;
  width: 100%;
}

.ratio::before {
  display: block;
  padding-top: var(--bs-aspect-ratio, 100%);
  content: "";
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

/* Border utilities */
.border { border: 1px solid hsl(var(--border)); }
.rounded { border-radius: 0.5rem; }

/* Navigation state */
.nav-link.active { background: hsl(var(--accent) / 0.12); }

/* Position utilities */
.position-fixed { position: fixed; }
.top-0 { top: 0; }
.end-0 { right: 0; }
.start-0 { left: 0; }
.vh-100 { height: 100vh; }

/* Close button */
.btn-close {
  width: 40px;
  height: 40px;
  background: hsl(var(--bg-secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: hsl(var(--text));
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.btn-close:hover {
  background: hsl(var(--accent) / 0.12);
}

/* ============================================
   PAGE-SPECIFIC SECTIONS
   ============================================ */

/* Features section */
.features-section {
  padding: 3rem 0;
  text-align: center;
}

.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  text-align: center;
}

.feature-card {
  background: hsl(var(--bg-secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  height: 100%;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: hsl(var(--accent));
}

.feature-card h5 {
  margin-top: 1rem;
}

.digital-wellbeing-section {
  padding: 3rem 0;
  text-align: center;
  color: hsl(var(--text));
}

.digital-wellbeing-logo {
  width: 150px;
  margin-bottom: 2rem;
}

.digital-wellbeing-section .row {
  justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: hsl(var(--bg-secondary));
  color: hsl(var(--text));
  padding: 1rem 0;
  border-top: 1px solid hsl(var(--border));
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.footer a {
  color: hsl(var(--text-muted));
  text-decoration: none;
}

.footer a:hover,
.footer a.active {
  color: hsl(var(--accent));
}
