html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
.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 #D264B9;
}

/* Utility and component replacements for Bootstrap classes */
.bg-dark { background: #0f0f13; }

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #000;
  border-bottom: 1px solid #1B1B1B;
  padding: 12px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.4px;
}

.navbar-brand:hover {
  color: #E98FCD;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-nav.nav-left {
  flex-wrap: wrap;
}

.navbar-nav.nav-right {
  gap: 10px;
}

.nav-item {
  display: flex;
  align-items: center;
}

.nav-link {
  color: #c7c7c7;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-text {
  color: #6C6C6C;
  font-size: 0.95rem;
}

.navbar-toggler {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.navbar-toggler-icon,
.navbar-toggler::after,
.navbar-toggler::before {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  content: '';
  box-shadow: 0 6px 0 #fff, 0 -6px 0 #fff;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

@media (max-width: 900px) {
  .navbar-toggler {
    display: inline-flex;
  }

  .navbar-collapse {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0 4px;
  }

  .navbar.open .navbar-collapse {
    display: flex;
  }

  .navbar-nav.nav-right {
    width: 100%;
  }
}

body {
  background: radial-gradient(1200px 600px at 15% 10%, rgba(210, 100, 185, 0.18), transparent 60%),
              radial-gradient(900px 500px at 85% 25%, rgba(210, 100, 185, 0.10), transparent 55%),
              #0b0b0f;
  color: #6C6C6C;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-weight: normal;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-weight: normal;
}

.navbar-brand {
  font-weight: normal;
}

.auth-shell,
.dash-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
}

.auth-card,
.dash-card {
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dash-card {
  max-width: 860px;
}

.text-muted {
  color: rgba(108, 108, 108, 0.70) !important;
}

.text-light {
  color: #e9e9e9;
}

.text-danger {
  color: #ff6b6b;
}

.form-control {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #6C6C6C;
}

.form-label {
  color: #c7c7c7;
  margin-bottom: 6px;
  display: inline-block;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(210, 100, 185, 0.55);
  color: #6C6C6C;
}

.navbar .btn-primary {
  background: linear-gradient(135deg, #D264B9, #E98FCD);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #D264B9, #E98FCD);
  border: none;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
}

.border-secondary {
  border-color: #1B1B1B !important;
}

.border-top {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.border {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-link-register {
  color: #D264B9 !important;
}

.nav-link-register:hover {
  color: #E98FCD !important;
}

.footer {
  padding: 20px 0;
  margin-top: 40px;
}

.app-preview-wrapper {
  display: inline-block;
  perspective: 1000px;
}

.app-preview-img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease-out;
  cursor: pointer;
  transform-style: preserve-3d;
}

.app-preview-img:hover {
  box-shadow: 0 12px 40px rgba(210, 100, 185, 0.35), 0 0 60px rgba(210, 100, 185, 0.2);
  border-color: rgba(210, 100, 185, 0.4);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: #e9e9e9;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-warning {
  border-color: rgba(255, 193, 7, 0.45);
  color: #ffd66b;
  background: transparent;
}

.btn-outline-warning:hover {
  background: rgba(255, 193, 7, 0.12);
}

.btn-outline-success {
  border-color: rgba(50, 205, 50, 0.45);
  color: #b2f7b0;
  background: transparent;
}

.btn-outline-success:hover {
  background: rgba(50, 205, 50, 0.12);
}

.bg-black {
  background: #000;
}

.border {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rounded {
  border-radius: 12px;
}

.p-3 {
  padding: 16px;
}

.small {
  font-size: 0.9rem;
}

.text-center {
  text-align: center;
}

.g-4 {
  gap: 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.align-items-center {
  align-items: center;
}

.col-lg-8, .col-lg-4 {
  width: 100%;
}

@media (min-width: 992px) {
  .col-lg-8 {
    width: 66.666%;
  }

  .col-lg-4 {
    width: 33.333%;
  }
}

.text-center {
  text-align: center;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 8px;
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.pb-3 { padding-bottom: 16px; }
.display-6 { font-size: 1.9rem; }

.welcome-banner {
  position: fixed;
  left: 16px;
  bottom: 16px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 10px 14px;
  color: #e0e0e0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.cta[data-auth="true"],
.nav-item[data-auth="true"],
.nav-item[data-admin="true"] {
  display: none;
}

[data-auth-state="auth"] .nav-item[data-auth="true"],
[data-auth-state="auth"] .cta[data-auth="true"] {
  display: flex;
}

[data-auth-state="auth"] .nav-item[data-auth="false"],
[data-auth-state="auth"] .cta[data-auth="false"] {
  display: none;
}

[data-auth-state="auth"][data-admin-state="true"] .nav-item[data-admin="true"] {
  display: flex;
}