html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin-bottom: 0;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #0f766e;
}

.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.page-hero {
  background: linear-gradient(135deg, #111827, #0f766e);
  color: white;
}

.glass-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
}

.navbar-dark .nav-link:hover {
  color: #10b981 !important;
}

/* Header modernization */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header-top {
  background-color: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.site-header-brand {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1rem;
  white-space: nowrap;
}

.site-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.site-header-search {
  width: auto;
  max-width: 340px;
  min-width: 240px;
  flex: 1 1 340px;
}

.site-header-panel-btn {
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-header-panel-btn:hover,
.site-header-panel-btn:focus-visible {
  color: #10b981;
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.12);
}

.site-header-register-btn {
  white-space: nowrap;
  border: 1px solid #10b981;
  color: #fff;
  background-color: #0f766e;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.site-header-register-btn:hover,
.site-header-register-btn:focus-visible {
  color: #fff;
  border-color: #34d399;
  background-color: #0d9488;
}

.site-header-user-name {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.55rem;
  border-radius: 0.375rem;
  background-color: rgba(16, 185, 129, 0.18);
}

.site-header-search .form-control {
  background-color: #111;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.site-header-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.site-header-search .form-control:focus,
.site-header-search .btn:focus,
.site-header-link:focus-visible,
.navbar-toggler:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.1rem #000, 0 0 0 0.25rem #10b981;
}

.site-header-nav {
  background-color: #000;
}

.site-header-nav .navbar {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.site-header-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  padding: 0.6rem 0.9rem !important;
  border-radius: 0.35rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-header-link:hover,
.site-header-link:focus-visible {
  color: #10b981 !important;
  background-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991.98px) {
  .site-header-top-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header-brand {
    text-align: center;
    white-space: normal;
  }

  .site-header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-header-search {
    width: 100%;
    max-width: none;
    min-width: 0;
    flex: 1 1 100%;
  }

  .site-header-panel-btn {
    width: 100%;
  }

  .site-header-nav .navbar-collapse {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .site-header-link {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }
}

.card {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
}

.btn-dark {
  background-color: #111827;
  border-color: #111827;
}

.btn-dark:hover {
  background-color: #1f2937;
  border-color: #1f2937;
}

.text-primary {
  color: #0f766e !important;
}

.bg-primary {
  background-color: #0f766e !important;
}

a.link-dark:hover {
  color: #0f766e !important;
}

.table th {
  font-weight: 600;
  font-size: 0.875rem;
}

.badge {
  font-weight: 500;
}

.legal-page .card {
  border-radius: 1rem;
}

.legal-content p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content p:last-child {
  margin-bottom: 0;
}

.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: rgba(17, 24, 39, 0.96);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}

.cookie-consent-banner[hidden] {
  display: none !important;
}

.cookie-consent-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.cookie-consent-text {
  font-size: 0.92rem;
  max-width: 760px;
}

.cookie-consent-text strong {
  display: block;
  margin-bottom: 0.2rem;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-consent-actions {
    width: 100%;
  }

  .cookie-consent-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }
}