@charset "UTF-8";
@import "@fortawesome/fontawesome-free/css/all.min.css";
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/fredoka-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/bebas-neue-latin-400-normal.woff2") format("woff2");
}
:root {
  --brand-ink: #0b0b0f;
  --brand-dark: #160a13;
  --brand-deep: #241020;
  --brand-plum: #3a1830;
  --brand-rose: #ff5f86;
  --brand-rose-strong: #d8134f;
  --brand-pink-soft: #ff8fb0;
  --brand-paper: #faf8f5;
  --brand-paper-2: #f2f1ec;
  --brand-gold: #f4c020;
  --brand-rose-tint: #faf1f5;
  --brand-danger: #e5484d;
  --brand-muted: #6b6472;
  --brand-sans: 'Inter', system-ui, sans-serif;
  --brand-display: 'Inter Tight', system-ui, sans-serif;
  --brand-cosmic-gradient: radial-gradient(
    120% 130% at 80% 0%,
    var(--brand-plum) 0%,
    var(--brand-deep) 55%,
    var(--brand-dark) 100%
  );
}

html[data-bs-theme=light] {
  --canvas: #faf7f8;
  --surface: #ffffff;
  --surface-alt: #fbf9fa;
  --border: #efe7ec;
  --border-input: #e2d8de;
  --ink: #1f1a24;
  --text: #2b2430;
  --muted: #6b6472;
  --muted-2: #8a8290;
  --faint: #a89aa4;
  --accent: #b0356e;
  --accent-hover: #8a2957;
  --accent-tint: #fbeef4;
  --tag-bg: #f4eef1;
  --accent-solid: var(--accent);
  --accent-solid-hover: var(--accent-hover);
}

html[data-bs-theme=dark] {
  --canvas: #0c0b0a;
  --surface: #2c163a;
  --surface-alt: #1c0e26;
  --border: rgba(255, 255, 255, 0.1);
  --border-input: rgba(255, 255, 255, 0.2);
  --ink: #fff;
  --text: #f1e9f7;
  --muted: rgba(241, 233, 247, 0.65);
  --muted-2: rgba(241, 233, 247, 0.5);
  --faint: rgba(241, 233, 247, 0.35);
  --accent: #ffb2f3;
  --accent-hover: #ffabd6;
  --accent-tint: rgba(255, 178, 243, 0.16);
  --tag-bg: rgba(255, 255, 255, 0.08);
  --accent-solid: #c42c7e;
  --accent-solid-hover: #e0567e;
}

.profile_container {
  width: 100%;
}

.native-multiselect {
  display: none;
}

.multiselect-list {
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  padding: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.multiselect-row {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.multiselect-row:hover {
  background: rgba(127, 127, 127, 0.15);
}
.multiselect-row.selected {
  background: rgba(127, 127, 127, 0.25);
  font-weight: 600;
}

.compact-profile-form {
  max-width: 100%;
  margin: 0 auto;
}

.compact-profile-body {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.compact-profile-body > * {
  margin-bottom: 1rem;
}
.compact-profile-body > *:last-child {
  margin-bottom: 0;
}

.interest-selector-wrapper {
  background-color: rgba(0, 0, 0, 0.03);
}

html[data-bs-theme=dark] .interest-selector-wrapper {
  background-color: rgba(255, 255, 255, 0.04);
}

.compact-profile-card.card {
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  animation: fadeIn 0.5s ease-in-out;
}
.compact-profile-card.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.compact-profile-card.card .card-header {
  padding: 1rem 1.5rem;
}
.compact-profile-card.card .card-header h3 {
  font-size: 1.5rem;
}
.compact-profile-card.card .card-body {
  padding: 1rem;
}
.compact-profile-card.card .border {
  border: none !important;
}

.profile-img-preview {
  max-width: 200px;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  margin: 0 auto;
}
.profile-img-preview:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  max-width: 420px;
}

.photo-gallery-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
}

.photo-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.photo-gallery-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}
.photo-gallery-remove:hover {
  background: rgba(220, 53, 69, 0.85);
}

.photo-gallery-add {
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.photo-gallery-add i {
  font-size: 1.25rem;
}
.photo-gallery-add:hover {
  border-color: var(--bs-primary);
  background: rgba(255, 255, 255, 0.04);
}

.form-label {
  margin-bottom: 0.375rem;
  font-weight: 500;
  color: var(--bs-body-color);
  display: block;
}
.form-label.small {
  font-size: 0.875rem;
}

.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
@media (max-width: 991.98px) {
  .profile-layout {
    flex-direction: column;
    padding: 1rem;
  }
}

.profile-sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 1rem;
  padding: 0.375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}
@media (max-width: 991.98px) {
  .profile-sidebar {
    position: static;
    width: 100%;
    flex: 0 0 auto;
  }
}

.profile-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.9rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: inherit;
  text-align: left;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.profile-sidebar-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.75;
}
.profile-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
}
.profile-sidebar-link.active {
  background: var(--cta-gradient);
  color: #fff;
}
.profile-sidebar-link.active i {
  opacity: 1;
}

.profile-content {
  flex: 1 1 auto;
  min-width: 0;
}

.form-section {
  display: flex;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  margin: 10px 0;
  flex-direction: column;
  padding: 0.75rem;
  background-color: rgba(200, 90, 23, 0.05);
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}
.form-field .form-label {
  order: 1;
}
.form-field .form-control,
.form-field .form-select,
.form-field .select-wrap,
.form-field .multiselect-list,
.form-field .input-group {
  order: 2;
}
.form-field .form-check {
  order: 3;
  margin-top: 0.5rem;
}
.form-field .text-danger {
  order: 4;
}

.compact-profile-form .form-control,
.compact-profile-form .form-select {
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  border: none !important;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  max-width: 300px;
}
.compact-profile-form .form-control:focus,
.compact-profile-form .form-select:focus {
  border: none !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.compact-profile-form .file-upload-wrapper {
  text-align: center;
}
.compact-profile-form .file-upload-wrapper .form-control {
  max-width: 100%;
}
.compact-profile-form #profilepicture {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.compact-profile-form .file-upload-btn {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  width: 100%;
  max-width: 300px;
  font-size: 0 !important;
  line-height: 0;
}
.compact-profile-form .file-upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}
.compact-profile-form .file-upload-btn i {
  font-size: 1rem;
  line-height: 1;
}
.compact-profile-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
  max-width: 100% !important;
}
.compact-profile-form .row.g-3 {
  --bs-gutter-x: 0.5rem;
  --bs-gutter-y: 0.5rem;
}
.compact-profile-form .row.g-3.mb-3 {
  margin-bottom: 0.75rem !important;
}
.compact-profile-form h5.fw-semibold {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.compact-profile-form hr {
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

.form-check {
  order: 3;
  display: flex;
  margin-top: 0.5rem;
  align-items: center;
  padding-right: 5px;
  padding-right: 35px;
}
.form-check .form-check-input {
  margin-top: 0;
  cursor: pointer;
}
.form-check .form-check-label {
  cursor: pointer;
  user-select: none;
  margin-left: 0.5rem;
}
.form-check .form-check-label.small {
  font-size: 0.8125rem;
  color: #6c757d;
}

h5.fw-semibold {
  font-size: 1.125rem;
  color: var(--bs-body-color);
}
h5.fw-semibold i {
  color: #6c757d;
  font-size: 1rem;
}

hr {
  opacity: 0.1;
  margin: 1.5rem 0;
}

.btn {
  transition: all 0.3s ease;
  border: none !important;
}
.btn.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.btn.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}
.btn i {
  font-size: 0.875rem;
}

.text-danger.small {
  font-size: 0.8125rem;
  margin-top: 0.25rem;
  display: block;
}

.text-success {
  font-size: 0.8125rem;
  color: #198754;
}

#suggestions {
  position: absolute;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  width: 100%;
  margin-top: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
}

.alert {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}
.alert ul {
  padding-left: 1.25rem;
}
.alert ul li {
  margin-bottom: 0.25rem;
}

.compact-profile-form .mb-section {
  margin-bottom: 2rem;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
html[data-bs-theme=dark] .compact-profile-card {
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-bs-theme=dark] h5.fw-semibold {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  background: #423c3e;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
}
html[data-bs-theme=dark] .profile-img-preview {
  border-color: rgba(255, 255, 255, 0.2);
}
html[data-bs-theme=dark] .form-control,
html[data-bs-theme=dark] .form-select {
  background-color: #343a40;
  color: #fff;
  border: none !important;
}
html[data-bs-theme=dark] .form-control:focus,
html[data-bs-theme=dark] .form-select:focus {
  background-color: #495057;
  border: none !important;
}
html[data-bs-theme=dark] .form-check-label.small {
  color: #adb5bd;
}
html[data-bs-theme=dark] hr {
  border-color: rgba(255, 255, 255, 0.1);
}

@media print {
  .compact-profile-card {
    box-shadow: none !important;
    border: 1px solid #dee2e6;
  }
  .btn,
  .form-check-input[type=checkbox],
  .modal {
    display: none !important;
  }
  .form-control,
  .form-select {
    border: none;
    border-bottom: 1px solid #dee2e6;
    padding: 0.25rem 0;
  }
}
@media (max-width: 768px) {
  .compact-profile-card .card-header {
    padding: 0.75rem 1rem;
  }
  .compact-profile-card .card-header h3 {
    font-size: 1.25rem;
  }
  .compact-profile-card .card-body {
    padding: 1rem;
  }
  h5.fw-semibold {
    font-size: 1rem;
  }
  hr {
    margin: 1rem 0;
  }
  .compact-profile-form .mb-section {
    margin-bottom: 1.5rem;
  }
  .row.g-3 {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }
}
@media (max-width: 576px) {
  .compact-profile-card .card-header {
    padding: 0.75rem 1rem;
  }
  .compact-profile-card .card-header h3 {
    font-size: 1.25rem;
  }
  .compact-profile-card .card-body {
    padding: 0.75rem;
  }
  .profile-img-preview {
    max-width: 150px;
  }
  .compact-profile-form .form-control,
  .compact-profile-form .form-select {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
  }
  .compact-profile-form .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }
  .compact-profile-form .mb-section {
    margin-bottom: 1rem;
  }
  h5.fw-semibold {
    font-size: 1rem;
  }
  hr {
    margin: 1rem 0;
  }
  .alert {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
  }
  .row.g-3 {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }
  .compact-profile-form #btnsubmit {
    width: 100%;
  }
}
.profile_container {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  position: relative;
  min-height: 100vh;
}
@media (max-width: 576px) {
  .profile_container.profile-view-center {
    padding-left: 0;
    padding-right: 0;
  }
}
.profile_container a {
  color: var(--accent);
}
.profile_container a:hover {
  color: var(--accent-hover);
}
.profile_container .profile-header {
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border) !important;
}
.profile_container .profile-page-title {
  font-family: "Inter Tight", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.profile_container .profile-preview-btn {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 10px;
}
.profile_container .profile-preview-btn:hover {
  color: var(--ink);
  border-color: var(--border-input);
}
.profile_container .compact-profile-card.card {
  border: none;
  box-shadow: none;
}
.profile_container .compact-profile-card.card:hover {
  box-shadow: none;
}
.profile_container .profile-card {
  position: relative;
  z-index: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 30px;
  box-shadow: 0 1px 3px rgba(43, 36, 48, 0.04);
}
@media (max-width: 576px) {
  .profile_container .profile-card {
    padding: 20px 16px;
  }
}
.profile_container .profile-section-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.profile_container .profile-card-header {
  display: flex;
  align-items: center;
  font-family: "Inter Tight", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 22px;
}
.profile_container .profile-card-header i {
  color: var(--muted);
  font-size: 16px;
}
.profile_container .profile-card-header .profile-icon-accent {
  color: var(--accent);
}
.profile_container .form-field {
  display: block;
  background: transparent;
  padding: 0;
  margin: 0 0 16px;
}
.profile_container .form-label.small {
  display: block;
}
.profile_container .form-label.small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.profile_container .form-control,
.profile_container .form-select {
  padding: 11px 14px;
  border: 1px solid var(--border-input) !important;
  border-radius: 10px;
  background-color: var(--surface-alt);
  color: var(--text);
  font-size: 15px;
  max-width: 100% !important;
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.profile_container .form-control::placeholder,
.profile_container .form-select::placeholder {
  color: var(--faint);
}
.profile_container .form-control:focus,
.profile_container .form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-tint) !important;
}
.profile_container textarea.form-control {
  min-height: 100px;
}
.profile_container .form-check-input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}
.profile_container .form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}
.profile_container .form-check-label {
  margin-left: 9px;
  color: var(--muted);
}
.profile_container .form-check-label.small {
  font-size: 13px;
  color: var(--muted);
}
.profile_container .select-wrap {
  position: relative;
}
.profile_container .select-wrap .form-select {
  padding-right: 36px;
}
.profile_container .select-wrap .select-chevron {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 12px;
  pointer-events: none;
}
.profile_container .interests-prefs-grid,
.profile_container .profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 767.98px) {
  .profile_container .interests-prefs-grid,
  .profile_container .profile-form-grid {
    grid-template-columns: 1fr;
  }
}
.profile_container .multiselect-list {
  border: 1px solid var(--border-input);
  border-radius: 10px;
  background: var(--surface-alt);
  padding: 6px;
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-input) transparent;
}
.profile_container .multiselect-list::-webkit-scrollbar {
  width: 6px;
}
.profile_container .multiselect-list::-webkit-scrollbar-thumb {
  background: var(--border-input);
  border-radius: 999px;
}
.profile_container .multiselect-list::-webkit-scrollbar-track {
  background: transparent;
}
.profile_container .multiselect-row {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.profile_container .multiselect-row.selected {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
}
.profile_container .interest-selector-wrapper {
  background: transparent;
  border: none;
  padding: 0;
}
.profile_container .selected-interests-container {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
}
.profile_container .interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tag-bg);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}
.profile_container .interest-tag i {
  color: var(--faint);
  cursor: pointer;
  font-size: 12px;
}
.profile_container .interest-input-group .input-group-text {
  background: var(--surface-alt);
  border: 1px solid var(--border-input);
  border-right: none;
  color: var(--faint);
  border-radius: 10px 0 0 10px;
}
.profile_container .interest-input-group .form-control {
  border-left: none !important;
  border-radius: 0 10px 10px 0 !important;
}
.profile_container .profile-btn-solid {
  background: var(--accent-solid);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 9px 18px;
  white-space: nowrap;
  flex-shrink: 0;
}
.profile_container .profile-btn-solid:hover {
  background: var(--accent-solid-hover);
  color: #fff;
}
.profile_container .profile-caption {
  color: var(--muted-2);
  font-size: 13px;
}
.profile_container .interest-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
@media (max-width: 576px) {
  .profile_container .interest-input-row {
    flex-direction: column;
    align-items: stretch;
  }
  .profile_container .interest-input-row .profile-btn-solid {
    width: 100%;
  }
}
.profile_container .suggested-interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-input);
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.profile_container .suggested-interest-tag i {
  color: var(--accent);
  font-weight: 600;
  font-size: 11px;
}
.profile_container .suggested-interest-tag:hover {
  border-color: var(--accent);
}
.profile_container .profile-show-more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.profile_container .profile-show-more:hover {
  color: var(--accent-hover);
}
.profile_container .profile-sidebar {
  flex: 0 0 250px;
  top: 32px;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
@media (max-width: 991.98px) {
  .profile_container .profile-sidebar {
    flex: 0 0 auto;
  }
}
.profile_container .profile-sidebar-link {
  padding: 12px 16px;
  border-radius: 10px;
  gap: 13px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}
.profile_container .profile-sidebar-link i {
  opacity: 0.55;
}
.profile_container .profile-sidebar-link:hover {
  background: var(--surface-alt);
}
.profile_container .profile-sidebar-link.active {
  background: var(--accent-tint);
  color: var(--accent);
  font-weight: 600;
}
.profile_container .profile-sidebar-link.active i {
  opacity: 1;
}
.profile_container .profile-sidebar-link.active:hover {
  background: var(--accent-tint);
}
.profile_container .btn:focus-visible,
.profile_container .profile-sidebar-link:focus-visible,
.profile_container .multiselect-row:focus-visible,
.profile_container .interest-tag i:focus-visible,
.profile_container .suggested-interest-tag:focus-visible {
  outline: 2px solid var(--accent-tint);
  outline-offset: 2px;
}

#cosmic-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

#cosmic-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43, 4, 18, 0.55) 0%, rgba(43, 4, 18, 0.75) 55%, rgba(43, 4, 18, 0.92) 100%);
}

html[data-bs-theme=light] #cosmic-bg-wrap::after {
  background: linear-gradient(180deg, rgba(250, 247, 248, 0.55) 0%, rgba(250, 247, 248, 0.75) 55%, rgba(250, 247, 248, 0.92) 100%);
}

.cosmic-bg-dark-locked::after {
  background: linear-gradient(180deg, rgba(43, 4, 18, 0.55) 0%, rgba(43, 4, 18, 0.75) 55%, rgba(43, 4, 18, 0.92) 100%) !important;
}

#cosmic-bg-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

body:has(#cosmic-bg-wrap) nav.navbar {
  background-color: var(--bs-body-bg);
}

#inline-calendar-card {
  background: linear-gradient(180deg, rgba(44, 22, 58, 0.55), rgba(28, 14, 38, 0.35)) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(240, 169, 60, 0.18) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#inline-calendar-card > p:first-child {
  color: var(--nebula-gold-soft) !important;
}

#inline-calendar-card .text-muted {
  color: var(--nebula-text-muted) !important;
}

#chart-form-card {
  background: linear-gradient(180deg, rgba(44, 22, 58, 0.55), rgba(28, 14, 38, 0.35));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(240, 169, 60, 0.18) !important;
  border-radius: 24px;
  padding: 42px 40px 32px !important;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#chart-form-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: var(--font-size-h1-display);
  color: var(--nebula-gold);
  letter-spacing: 0.005em;
}

#chart-form-card > p.text-muted {
  color: var(--nebula-text-muted-2) !important;
  font-size: 0.90625rem;
}

#chart-form-card .form-label {
  font-weight: 500 !important;
  font-size: 0.9375rem;
  color: var(--nebula-text) !important;
  margin-bottom: 9px;
}

#chart-form-card .form-control,
#chart-form-card .form-select {
  background-color: rgba(18, 11, 28, 0.55) !important;
  border: 1px solid rgba(185, 160, 232, 0.22) !important;
  border-radius: 14px;
  color: var(--nebula-text) !important;
  padding: 14px 18px;
  font-size: 0.9375rem;
}

#chart-form-card .form-control::placeholder {
  color: rgba(185, 160, 232, 0.5) !important;
}

#chart-form-card .form-control:focus,
#chart-form-card .form-select:focus {
  background-color: rgba(18, 11, 28, 0.7) !important;
  border-color: var(--nebula-gold) !important;
  box-shadow: 0 0 0 3px rgba(240, 169, 60, 0.15);
}

#chart-form-card .form-text {
  color: var(--nebula-text-muted) !important;
  font-size: 0.78125rem;
}

#chart-form-card .form-check-input {
  width: 22px;
  height: 22px;
  margin-top: 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: rgba(18, 11, 28, 0.55);
  border: 1px solid rgba(240, 169, 60, 0.5);
  border-radius: 6px;
  cursor: pointer;
}

#chart-form-card .form-check-input:checked {
  background: linear-gradient(135deg, #f0a93c, #e0567e);
  border-color: transparent;
}

#chart-form-card .form-check-label {
  color: var(--nebula-text-muted-3) !important;
  font-size: 0.875rem;
}

#chart-form-card #chart-submit-btn {
  background: linear-gradient(135deg, #7c3aed 0%, #c42c7e 55%, #e0567e 100%);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-weight: 600;
  letter-spacing: var(--letter-spacing-btn-cta);
  box-shadow: 0 16px 34px -12px rgba(224, 86, 126, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#chart-form-card #chart-submit-btn:hover,
#chart-form-card #chart-submit-btn:focus {
  filter: brightness(1.08);
  box-shadow: 0 20px 40px -12px rgba(224, 86, 126, 0.75);
}

#chart-form-card a.text-muted {
  color: var(--nebula-link) !important;
}

#chart-form-card a.text-muted:hover {
  color: var(--nebula-gold) !important;
}

#suggestions.list-group {
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}

#suggestions .list-group-item {
  color: var(--nebula-text) !important;
  background-color: rgba(28, 14, 38, 0.97) !important;
  border-color: rgba(185, 160, 232, 0.18) !important;
}

#suggestions .list-group-item:hover,
#suggestions .list-group-item:focus {
  color: var(--nebula-text) !important;
  background-color: rgba(124, 58, 237, 0.35) !important;
}

#astral-chart-page:has(#chart-main-col:not(.d-none)) {
  background: linear-gradient(to bottom, #1a0230 0%, #7b1846 45%, #d4145a 80%, #e8315a 100%);
}

#chart-top-cta-banner {
  background: linear-gradient(135deg, var(--nebula-banner-start), var(--nebula-banner-end));
  color: #fff;
  padding: 0.6rem 1rem;
  text-align: center;
}

.chart-top-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.chart-top-banner-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.chart-top-banner-btn {
  white-space: nowrap;
}

body.home .datepicker-dropdown {
  background: linear-gradient(180deg, rgba(28, 14, 38, 0.98), rgba(28, 14, 38, 0.99)) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(240, 169, 60, 0.22) !important;
  border-radius: 18px;
  padding: 10px !important;
  box-shadow: 0 34px 74px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(224, 86, 126, 0.08);
}
body.home #inline-date-picker .datepicker.datepicker-inline {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100%;
}
body.home #inline-date-picker .datepicker.datepicker-inline table {
  width: 100%;
  table-layout: fixed;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) span {
  color: var(--nebula-text-soft) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.dow {
  color: var(--nebula-dow) !important;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.datepicker-switch {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--nebula-gold) !important;
  cursor: pointer;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.prev,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.next {
  color: var(--nebula-gold-soft) !important;
  border-radius: 8px;
  cursor: pointer;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.prev:hover,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.next:hover,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) th.datepicker-switch:hover {
  background-color: rgba(240, 169, 60, 0.14) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day {
  border-radius: 9px;
  cursor: pointer;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day:hover {
  background-color: rgba(185, 160, 232, 0.14) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.old,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.new {
  color: rgba(150, 135, 175, 0.4) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.today {
  box-shadow: inset 0 0 0 1px rgba(240, 169, 60, 0.65);
  color: var(--nebula-gold) !important;
  font-weight: 600;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.active,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.active:hover {
  background: linear-gradient(135deg, #f0a93c, #e0567e) !important;
  color: var(--nebula-on-gold) !important;
  font-weight: 600;
  box-shadow: 0 6px 18px -6px rgba(240, 169, 60, 0.7);
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.disabled,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) td.day.disabled:hover {
  color: rgba(150, 135, 175, 0.25) !important;
  background: transparent !important;
  cursor: default;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-months table,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-years table,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-decades table,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-centuries table {
  width: 100%;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-months td,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-years td,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-decades td,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .datepicker-centuries td {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .century {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(25% - 5px);
  min-width: 56px;
  padding: 10px 4px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.875rem;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month:hover,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year:hover,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade:hover,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .century:hover {
  background-color: rgba(185, 160, 232, 0.14) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month.focused,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year.focused,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade.focused,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .century.focused {
  box-shadow: inset 0 0 0 1px rgba(240, 169, 60, 0.65);
  color: var(--nebula-gold) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month.active,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year.active,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade.active,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .century.active {
  background: linear-gradient(135deg, #f0a93c, #e0567e) !important;
  color: var(--nebula-on-gold) !important;
  font-weight: 600;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month.old,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year.old,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade.old,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month.new,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year.new,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade.new {
  color: rgba(150, 135, 175, 0.4) !important;
}
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .month.disabled,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .year.disabled,
body.home :is(.datepicker-dropdown, #inline-date-picker .datepicker) .decade.disabled {
  color: rgba(150, 135, 175, 0.25) !important;
  cursor: default;
}
body.home {
  --td-widget-background: rgba(28, 14, 38, 0.98);
  --td-font-color: #f1e9f7;
  --td-active-bg: #f0a93c;
  --td-active-color: #1a0e1a;
  --td-btn-hover-bg: rgba(240, 169, 60, 0.14);
  --td-disabled-color: rgba(150, 135, 175, 0.25);
  --td-alternate-color: rgba(150, 135, 175, 0.4);
  --td-secondary-border-color: rgba(185, 160, 232, 0.22);
  --td-secondary-border-color-rgba: rgba(185, 160, 232, 0.22);
  --td-dow-color: #9a86b4;
}
body.home .tempus-dominus-widget.light {
  border-radius: 18px;
  border: 1px solid rgba(240, 169, 60, 0.22);
  box-shadow: 0 34px 74px -22px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(224, 86, 126, 0.08);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 10px;
}
body.home .tempus-dominus-widget.light [data-action] {
  color: var(--nebula-gold-soft);
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
}
body.home .tempus-dominus-widget.light [data-action]:hover {
  background-color: rgba(240, 169, 60, 0.14);
  color: var(--nebula-gold);
}
body.home .tempus-dominus-widget.light .separator {
  color: var(--nebula-gold-soft);
  font-weight: 700;
}

.auth-heart-logo {
  display: block;
  width: min(260px, 60vw);
  aspect-ratio: 16/9;
  margin: 0 auto 1.25rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.auth-heart-logo:hover, .auth-heart-logo:focus-visible {
  transform: scale(1.03);
}

.auth-side-heart-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin-bottom: 1rem;
}
.auth-side-heart-wrap .auth-heart-logo {
  width: 100%;
  margin: 0;
}

.heart-logo-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.heart-logo-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center;
}

.heart-logo-heart {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1133px;
}

.heart-logo-star {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.heart-logo-text {
  position: absolute;
  left: 50%;
  top: calc(50% - 32px);
  transform: translate(-50%, -50%) scale(0);
  font-family: "Quicksand", "Trebuchet MS", sans-serif;
  font-weight: 700;
  font-size: 72px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 28px rgba(255, 170, 220, 0.75), 0 0 60px rgba(240, 80, 170, 0.55);
  white-space: nowrap;
  z-index: 10;
  opacity: 0;
}
.heart-logo-text.show {
  animation: heart-logo-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards, heart-logo-beat 1.6s ease-in-out 0.9s infinite;
}

@keyframes heart-logo-in {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.05);
  }
  55% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
  }
  72% {
    transform: translate(-50%, -50%) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes heart-logo-beat {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  12% {
    transform: translate(-50%, -50%) scale(1.08);
  }
  24% {
    transform: translate(-50%, -50%) scale(0.98);
  }
  36% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  48% {
    transform: translate(-50%, -50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .heart-logo-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: none !important;
  }
}
body.home:has(.landing-page) .home-container {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

body.home:has(.landing-page) .home-container > .row.justify-content-center {
  justify-content: flex-start !important;
}

.landing-page.home-page {
  padding: 0;
}

body.home:has(.landing-page) {
  min-height: auto;
  background: none;
}

html:has(.landing-page),
body:has(.landing-page) {
  height: auto;
}

.landing-page {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.landing-page > * {
  width: 100%;
}
.landing-page {
  --l-ink: var(--brand-ink);
  --l-dark: var(--brand-dark);
  --l-deep: var(--brand-deep);
  --l-plum: var(--brand-plum);
  --l-rose: var(--brand-rose);
  --l-rose-strong: var(--brand-rose-strong);
  --l-pink-soft: var(--brand-pink-soft);
  --l-rose-tint: var(--brand-rose-tint);
  --l-paper: var(--brand-paper);
  --l-paper-2: var(--brand-paper-2);
  --l-line: #e5e3da;
  --l-line-2: #eee9e2;
  --l-muted: var(--brand-muted);
  --l-dim: #d8cfd6;
  --l-dimmer: #b8a9b3;
  --l-sans: var(--brand-sans);
  --l-display: var(--brand-display);
  --l-round: 'Fredoka', var(--brand-display);
  font-family: var(--l-sans);
  color: var(--l-ink);
}
.landing-page a {
  text-decoration: none;
  color: var(--l-rose-strong);
}
.landing-page .btn {
  font-family: var(--l-display);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: inline-block;
}

.landing-page.home-page {
  position: relative;
}

.landing-nav {
  background-color: transparent;
  padding: 18px 40px;
}

.landing-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

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

.landing-wordmark {
  display: inline-block;
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 26px;
}

.home-page .landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}

.home-page .landing-nav-inner {
  max-width: none;
  justify-content: flex-end;
}

.home-page .landing-nav-right .landing-btn-rose {
  font-size: 14px;
  padding: 10px 22px;
}

.landing-nav .landing-nav-link {
  color: var(--l-rose);
  font-size: 15px;
  font-weight: 500;
}
.landing-nav .landing-nav-link:hover {
  color: #fff;
}

.landing-page .landing-btn-light {
  background: #fff;
  color: var(--l-dark);
  font-size: 15px;
  padding: 11px 24px;
}
.landing-page .landing-btn-light:hover, .landing-page .landing-btn-light:focus-visible {
  background: #fff;
  color: var(--l-rose-strong);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.25);
}

.landing-page .landing-btn-rose {
  background: var(--l-rose);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 95, 134, 0.35);
}
.landing-page .landing-btn-rose:hover, .landing-page .landing-btn-rose:focus-visible {
  background: var(--l-pink-soft);
  color: #fff;
  box-shadow: 0 12px 36px rgba(255, 95, 134, 0.6);
}

.home-page .landing-btn-rose {
  background: var(--l-rose-strong);
  box-shadow: 0 8px 24px rgba(216, 19, 79, 0.35);
}
.home-page .landing-btn-rose:hover, .home-page .landing-btn-rose:focus-visible {
  background: var(--l-rose);
  box-shadow: 0 12px 36px rgba(255, 95, 134, 0.5);
}

.landing-hero {
  background: radial-gradient(130% 110% at 78% 0%, var(--l-plum) 0%, var(--l-deep) 52%, var(--l-dark) 100%);
  padding: 64px 40px 80px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 235px;
  align-items: center;
  justify-content: center;
}

.landing-spark {
  position: absolute;
  color: #8a6ff0;
  top: 110px;
  right: 130px;
  font-size: 16px;
  z-index: 0;
}
.landing-spark.landing-spark-2 {
  bottom: 140px;
  right: 170px;
  font-size: 11px;
}

.landing-hero-copy {
  flex: 0 1 480px;
  min-width: 0;
  color: var(--l-ink);
}
.landing-hero-copy .brand-mark {
  filter: drop-shadow(0 8px 18px rgba(11, 11, 15, 0.12));
}

.landing-hero-wedge {
  position: absolute;
  inset: 0;
  background: var(--l-paper);
  clip-path: polygon(0 0, var(--wedge-top-x, 1050px) 0, var(--wedge-bottom-x, 610px) 100%, 0 100%);
  animation: landing-hero-wave 16s ease-in-out infinite;
  z-index: 0;
}

.landing-hero-seam {
  position: absolute;
  top: -10%;
  left: calc(var(--wedge-bottom-x, 610px) - 90px);
  width: 420px;
  height: 120%;
  background: radial-gradient(closest-side, rgba(255, 95, 134, 0.18), transparent 75%);
  transform: rotate(9deg);
  pointer-events: none;
  z-index: 0;
}

.landing-hero-lockup {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 44px;
}

.landing-hero-wordmark {
  display: inline-block;
}

.landing-pill {
  display: inline-block;
  background: rgba(255, 95, 134, 0.14);
  color: var(--l-pink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.landing-hero-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.landing-h1 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}
.landing-h1 .accent {
  color: var(--l-rose);
}

.landing-hero-copy .landing-h1 {
  color: var(--l-ink);
  margin-top: 20px;
}
.landing-hero-copy .landing-h1 .accent {
  color: var(--l-rose-strong);
}

.landing-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0 0 32px;
  max-width: 460px;
}

.landing-cta-row {
  display: flex;
  gap: 18px;
  align-items: center;
}
.landing-cta-row .landing-btn-rose {
  font-size: 17px;
  padding: 15px 38px;
}

.landing-link-watch {
  color: var(--l-rose-strong);
  font-weight: 600;
  font-size: 15px;
  text-decoration: underline;
}
.landing-link-watch:hover, .landing-link-watch:focus-visible {
  color: var(--l-rose);
}

.landing-phone-wrap {
  flex-shrink: 0;
  width: 300px;
  position: relative;
  transform: rotate(4deg) translateZ(0);
  backface-visibility: hidden;
}

.landing-phone-glow {
  position: absolute;
  inset: -9px;
  background: radial-gradient(circle, rgba(255, 95, 134, 0.28), transparent 70%);
}

.landing-phone {
  position: relative;
  background: var(--l-ink);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 38px;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.landing-phone-screen {
  position: relative;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
}

.landing-phone-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.landing-phone-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .landing-phone-slide {
    transition: none;
  }
}
.landing-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efeae4;
  color: #a89aa4;
  font-size: 13px;
  text-align: center;
  border: 1px dashed #cfc6cf;
  padding: 0 16px;
}

.landing-app-header {
  flex-shrink: 0;
  background: var(--brand-cosmic-gradient);
  padding: 14px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.landing-app-wordmark {
  display: inline-block;
}

.landing-app-icon-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-app-card-wrap {
  flex: 1;
  min-height: 0;
  padding: 10px 10px 0;
}

.landing-app-card {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0d9e2, #e2d6f0);
}

.landing-app-card-photo {
  position: absolute;
  inset: 0;
}

.landing-app-card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.62) 0%, rgba(11, 11, 15, 0) 42%);
}

.landing-app-score {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-ink);
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.landing-app-card-meta {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
}

.landing-app-name {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
}

.landing-app-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.landing-app-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 11, 15, 0.55);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.landing-app-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 0 8px;
  background: #fff;
}

.landing-app-act {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-app-act-pass {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  color: var(--brand-ink);
  font-size: 14px;
}

.landing-app-act-like {
  width: 54px;
  height: 54px;
  background: var(--brand-rose);
  box-shadow: 0 8px 18px rgba(216, 19, 79, 0.3);
  color: #fff;
  font-size: 17px;
}

.landing-app-tabs {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  padding: 8px 8px 14px;
  background: #fff;
  border-top: 1px solid #f2eef1;
}

.landing-app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: var(--brand-muted);
}
.landing-app-tab.landing-app-tab-active {
  color: var(--brand-rose-strong);
}

.landing-app-tab-badge {
  position: relative;
}

.landing-app-tab-count {
  position: absolute;
  top: -3px;
  right: -6px;
  backgolor: #fff;
  font-size: 7px;
  font-weight: 700;
  min-width: 12px;
  height: 12px;
  line-height: 12px;
  text-align: center;
  border-radius: 999px;
  padding: 0 2px;
}

.landing-hero-lockup .brand-mark {
  animation: landing-hero-pop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.landing-hero-wordmark {
  animation: landing-hero-fade-down 0.7s ease-out 0.12s both;
}

.landing-hero-copy .landing-h1 {
  animation: landing-hero-fade-up 0.7s ease-out 0.24s both;
}

.landing-lede {
  animation: landing-hero-fade-up 0.7s ease-out 0.36s both;
}

.landing-cta-row .landing-btn-rose {
  animation: landing-hero-fade-up 0.7s ease-out 0.48s both, landing-hero-beat 1.2s ease-in-out 1.18s both;
}

.landing-hero-phone-col .landing-phone-wrap {
  animation: landing-hero-fade-right 0.8s ease-out 0.6s both;
}

.landing-hero-phone-col .landing-pill {
  animation: landing-hero-fade-in 0.6s ease-out 0.72s both;
}

@keyframes landing-hero-pop {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes landing-hero-fade-down {
  0% {
    opacity: 0;
    transform: translateY(-28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes landing-hero-fade-up {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes landing-hero-fade-right {
  0% {
    opacity: 0;
    transform: rotate(4deg) translateX(40px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: rotate(4deg) translateX(0) translateZ(0);
  }
}
@keyframes landing-hero-fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes landing-hero-beat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.12);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.08);
  }
  56% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-lockup .brand-mark,
  .landing-hero-wordmark,
  .landing-hero-copy .landing-h1,
  .landing-lede,
  .landing-cta-row .landing-btn-rose,
  .landing-hero-phone-col .landing-phone-wrap,
  .landing-hero-phone-col .landing-pill,
  .landing-hero-wedge {
    animation: none;
  }
}
.landing-why {
  background: #fff;
  padding: 80px 40px;
}

.landing-why-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.landing-why-pill {
  background: var(--l-rose-tint);
  color: var(--l-rose-strong);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.landing-why-title {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: var(--l-ink);
  margin: 0 0 16px;
}

.landing-why-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0;
}

.landing-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-card {
  background: var(--l-paper);
  border: 1px solid var(--l-line-2);
  border-radius: 18px;
  padding: 28px;
}
.landing-card h3 {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--l-ink);
  margin: 0 0 10px;
}
.landing-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0;
}

.landing-card-ico {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.landing-card-ico.landing-card-ico-1 {
  background: #fde7ee;
  color: var(--l-rose-strong);
}
.landing-card-ico.landing-card-ico-2 {
  background: #eae4fb;
  color: #7c5ee0;
}
.landing-card-ico.landing-card-ico-3 {
  background: #fdf1d6;
  color: #c8890a;
}

.landing-card-wide {
  grid-column: 1/-1;
  border: none;
  padding: 48px 40px;
  text-align: center;
  background: radial-gradient(130% 130% at 50% 0%, var(--l-plum) 0%, var(--l-deep) 55%, var(--l-dark) 100%);
}
.landing-card-wide h3 {
  color: #fff;
  font-size: 28px;
}
.landing-card-wide p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--l-dim);
}

.landing-card-wide-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.landing-card-wide .landing-card-ico {
  margin-left: auto;
  margin-right: auto;
}

.landing-card-wide-cta {
  margin-top: 28px;
  white-space: normal;
}

#why-cards .landing-why-head,
#why-cards .landing-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#why-cards .landing-why-head.is-revealed,
#why-cards .landing-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

#why-cards .landing-why-grid .landing-card:nth-child(1) {
  transition-delay: 0s;
}
#why-cards .landing-why-grid .landing-card:nth-child(1) .landing-card-ico {
  animation-delay: 0.1s;
}
#why-cards .landing-why-grid .landing-card:nth-child(1) h3 {
  animation-delay: 0.22s;
}
#why-cards .landing-why-grid .landing-card:nth-child(1) p {
  animation-delay: 0.32s;
}
#why-cards .landing-why-grid .landing-card:nth-child(2) {
  transition-delay: 0.12s;
}
#why-cards .landing-why-grid .landing-card:nth-child(2) .landing-card-ico {
  animation-delay: 0.22s;
}
#why-cards .landing-why-grid .landing-card:nth-child(2) h3 {
  animation-delay: 0.34s;
}
#why-cards .landing-why-grid .landing-card:nth-child(2) p {
  animation-delay: 0.44s;
}
#why-cards .landing-why-grid .landing-card:nth-child(3) {
  transition-delay: 0.24s;
}
#why-cards .landing-why-grid .landing-card:nth-child(3) .landing-card-ico {
  animation-delay: 0.34s;
}
#why-cards .landing-why-grid .landing-card:nth-child(3) h3 {
  animation-delay: 0.46s;
}
#why-cards .landing-why-grid .landing-card:nth-child(3) p {
  animation-delay: 0.56s;
}
#why-cards .landing-why-grid .landing-card:nth-child(4) {
  transition-delay: 0.36s;
}
#why-cards .landing-why-grid .landing-card:nth-child(4) .landing-card-ico {
  animation-delay: 0.46s;
}
#why-cards .landing-why-grid .landing-card:nth-child(4) h3 {
  animation-delay: 0.58s;
}
#why-cards .landing-why-grid .landing-card:nth-child(4) p {
  animation-delay: 0.68s;
}

#why-cards .landing-card-ico,
#why-cards .landing-card h3,
#why-cards .landing-card p {
  opacity: 0;
}

#why-cards .landing-card.is-revealed .landing-card-ico {
  animation: landing-card-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#why-cards .landing-card.is-revealed h3,
#why-cards .landing-card.is-revealed p {
  animation: landing-card-fade-up 0.5s ease-out both;
}

@keyframes landing-card-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes landing-card-fade-up {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #why-cards .landing-why-head,
  #why-cards .landing-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #why-cards .landing-card-ico,
  #why-cards .landing-card h3,
  #why-cards .landing-card p {
    opacity: 1;
    animation: none;
  }
}
:root {
  --l-mission-dur: 600ms;
}

.landing-mission {
  background: #fff;
  padding: 80px 40px;
  border-top: 1px solid var(--l-line-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}

.landing-mission-eyebrow {
  margin: 0;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-rose-strong);
}

.landing-mission-viewport {
  width: 100%;
  max-width: 960px;
}

.landing-mission-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.landing-mission-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.landing-mission-slide-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.landing-mission-title {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--l-ink);
  margin: 0;
  max-width: 620px;
}
.landing-mission-title .accent {
  color: var(--l-rose-strong);
}

.landing-mission-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0 auto;
  max-width: 440px;
}

.landing-mission-slide-figure {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-mission-collage {
  position: relative;
  width: 340px;
  height: 320px;
  max-width: 100%;
  --mc-bx: 70px;
  --mc-by: 30px;
  --mc-cx: 122px;
  --mc-cy: 54px;
}

.landing-mission-card {
  position: absolute;
  left: 0;
  top: 0;
  width: 236px;
  height: 290px;
  border-radius: 20px;
  background-color: var(--l-rose-tint);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid var(--l-line-2);
  box-shadow: 0 20px 34px rgba(11, 11, 15, 0.14);
}

.landing-mission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #160a13;
  opacity: 0;
  pointer-events: none;
}

.landing-mission-card-2::after {
  opacity: 0.28;
}

.landing-mission-card-3::after {
  opacity: 0.4;
}

@keyframes landing-mission-tint {
  0%, 100% {
    opacity: 0;
  }
  33.333% {
    opacity: 0.28;
  }
  66.666% {
    opacity: 0.4;
  }
}
.landing-mission-card-1 {
  transform: translate(0, 0) scale(1);
  opacity: 1;
  z-index: 3;
  background-image: url("../images/rolling-cards/couple-beach.webp");
}

.landing-mission-card-2 {
  transform: translate(var(--mc-bx), var(--mc-by)) scale(0.9);
  opacity: 0.9;
  z-index: 2;
  background-position: center 22%;
  background-image: url("../images/rolling-cards/runner.webp");
}

.landing-mission-card-3 {
  transform: translate(var(--mc-cx), var(--mc-cy)) scale(0.82);
  opacity: 0.78;
  z-index: 1;
  background-image: url("../images/rolling-cards/outdoors.webp");
}

@keyframes landing-mission-shuffle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
    z-index: 3;
  }
  33.333% {
    transform: translate(var(--mc-bx), var(--mc-by)) scale(0.9);
    opacity: 0.9;
    z-index: 2;
  }
  66.666% {
    transform: translate(var(--mc-cx), var(--mc-cy)) scale(0.82);
    opacity: 0.78;
    z-index: 1;
  }
}
.landing-mission-slide.is-current .landing-mission-card {
  animation: landing-mission-shuffle 9s ease-in-out infinite;
}

.landing-mission-slide.is-current .landing-mission-card-2 {
  animation-delay: -3s;
}

.landing-mission-slide.is-current .landing-mission-card-3 {
  animation-delay: -6s;
}

.landing-mission-slide.is-current .landing-mission-card::after {
  animation: landing-mission-tint 9s ease-in-out infinite;
}

.landing-mission-slide.is-current .landing-mission-card-2::after {
  animation-delay: -3s;
}

.landing-mission-slide.is-current .landing-mission-card-3::after {
  animation-delay: -6s;
}

.landing-mission-chip {
  position: absolute;
  top: 14px;
  right: -10px;
  background: var(--brand-gold);
  color: var(--l-ink);
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 7px 8px;
  border-radius: 999px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  box-shadow: 0 6px 14px rgba(11, 11, 15, 0.15);
  white-space: nowrap;
}

.landing-mission-photo {
  position: relative;
  width: 264px;
  height: 320px;
  border-radius: 22px;
  background-color: var(--l-rose-tint);
  background-image: url("../images/rolling-cards/petlover.webp");
  background-size: cover;
  background-position: center;
  border: 1px solid var(--l-line-2);
  box-shadow: 0 22px 48px rgba(30, 12, 26, 0.22);
}

.landing-mission-glow {
  position: absolute;
  inset: -24px;
  z-index: -1;
  border-radius: 34px;
  background: radial-gradient(closest-side, rgba(216, 19, 79, 0.22), transparent 72%);
  filter: blur(8px);
}

.landing-mission-panel {
  position: relative;
  width: 340px;
  height: 300px;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: radial-gradient(122% 150% at 76% 16%, var(--l-plum) 0%, var(--l-deep) 56%, var(--l-dark) 100%);
  box-shadow: 0 22px 48px rgba(30, 12, 26, 0.28);
}

.landing-mission-panel img {
  width: 100%;
  height: auto;
  opacity: 0.92;
}

.landing-mission-controls {
  display: flex;
  justify-content: center;
}

.landing-mission-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--l-line);
  background: #fff;
  color: var(--l-muted);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 140ms, color 140ms, background 140ms;
}

.landing-mission-toggle:hover {
  border-color: var(--l-rose-strong);
  color: var(--l-rose-strong);
}

.landing-mission-toggle:focus-visible {
  outline: 3px solid var(--l-rose);
  outline-offset: 2px;
}

.landing-mission-toggle-ico {
  font-size: 13px;
  line-height: 1;
}

.landing-mission-toggle-ico-play {
  display: none;
}

.landing-mission-toggle[aria-pressed=true] .landing-mission-toggle-ico-pause {
  display: none;
}

.landing-mission-toggle[aria-pressed=true] .landing-mission-toggle-ico-play {
  display: inline;
}

.landing-mission-toggle[aria-pressed=true] {
  padding-left: 2px;
}

.landing-mission.is-enhanced .landing-mission-viewport {
  overflow: hidden;
}
.landing-mission.is-enhanced .landing-mission-track {
  flex-direction: row;
  gap: 0;
  transition: transform var(--l-mission-dur) cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}
.landing-mission.is-enhanced .landing-mission-track.is-snapping {
  transition: none;
}
.landing-mission.is-enhanced .landing-mission-slide {
  flex: 0 0 100%;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .landing-mission-slide.is-current .landing-mission-card,
  .landing-mission-slide.is-current .landing-mission-card::after {
    animation: none;
  }
  .landing-mission.is-enhanced .landing-mission-viewport {
    overflow: visible;
  }
  .landing-mission.is-enhanced .landing-mission-track {
    flex-direction: column;
    gap: 64px;
    transform: none !important;
    transition: none;
  }
  .landing-mission.is-enhanced .landing-mission-slide {
    flex: 1 1 auto;
  }
}
.landing-how {
  background: var(--l-paper);
  padding: 80px 40px;
  border-top: 1px solid var(--l-line-2);
}

.landing-how-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.landing-how-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--l-rose-strong);
}

.landing-how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-how-step-n {
  display: block;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--l-rose-strong);
  line-height: 1;
  margin-bottom: 4px;
}

.landing-how-step {
  padding-top: 20px;
  border-top: 2px solid var(--l-line);
}
.landing-how-step:nth-child(1) {
  border-top-color: var(--l-rose);
}
.landing-how-step:nth-child(2) {
  border-top-color: var(--l-pink-soft);
}
.landing-how-step h3 {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--l-ink);
  margin: 0 0 8px;
}
.landing-how-step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0;
}

#how-it-works .landing-how-head,
#how-it-works .landing-how-step {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#how-it-works .landing-how-head.is-revealed,
#how-it-works .landing-how-step.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

#how-it-works .landing-how-grid .landing-how-step:nth-child(1) {
  transition-delay: 0s;
}
#how-it-works .landing-how-grid .landing-how-step:nth-child(1) .landing-how-step-n {
  animation-delay: 0.15s;
}
#how-it-works .landing-how-grid .landing-how-step:nth-child(2) {
  transition-delay: 0.12s;
}
#how-it-works .landing-how-grid .landing-how-step:nth-child(2) .landing-how-step-n {
  animation-delay: 0.27s;
}
#how-it-works .landing-how-grid .landing-how-step:nth-child(3) {
  transition-delay: 0.24s;
}
#how-it-works .landing-how-grid .landing-how-step:nth-child(3) .landing-how-step-n {
  animation-delay: 0.39s;
}

#how-it-works .landing-how-step .landing-how-step-n {
  opacity: 0;
}

#how-it-works .landing-how-step.is-revealed .landing-how-step-n {
  animation: landing-card-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  #how-it-works .landing-how-head,
  #how-it-works .landing-how-step,
  #how-it-works .landing-how-step .landing-how-step-n {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
.landing-dark-block {
  background: radial-gradient(160% 55% at 50% 0%, var(--l-plum) 0%, var(--l-deep) 35%, var(--l-dark) 65%, var(--l-ink) 100%);
  margin-top: auto;
}

.landing-final {
  position: relative;
  overflow: hidden;
  padding: 76px 40px 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.landing-final-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
}

.landing-final-content {
  max-width: 560px;
}
.landing-final-content h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 14px;
}
.landing-final-content p {
  font-size: 17px;
  color: var(--l-dim);
  margin: 0 0 28px;
}
.landing-final-content .landing-btn-rose {
  font-size: 18px;
  padding: 16px 46px;
}

.landing-final-spark-1 {
  top: 64px;
  left: 12%;
  right: auto;
  font-size: 14px;
}

.landing-final-spark-2 {
  top: 118px;
  left: 8%;
  right: auto;
  font-size: 10px;
}

.landing-final-spark-3 {
  bottom: 96px;
  right: 11%;
  font-size: 12px;
}

.landing-flip-row {
  --l-flip-dur: 780ms;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 800px;
}

.landing-flip-card {
  perspective: 1400px;
  aspect-ratio: 3/4;
  min-width: 0;
}

.landing-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  transition: transform var(--l-flip-dur) cubic-bezier(0.55, 0.06, 0.32, 1);
}

.landing-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #241a26;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  transition: box-shadow 0.3s;
}
.landing-flip-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-flip-back {
  transform: rotateY(180deg);
}

.landing-flip-card.is-flipping .landing-flip-face {
  box-shadow: 0 30px 56px rgba(0, 0, 0, 0.5);
}

.landing-flip-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0) 56%, rgba(11, 11, 15, 0.6) 100%);
}

.landing-flip-name {
  position: absolute;
  left: 12px;
  bottom: 11px;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.landing-flip-score {
  position: absolute;
  right: 10px;
  top: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 11.5px;
  color: var(--l-ink);
}

@media (prefers-reduced-motion: reduce) {
  .landing-flip-inner {
    transition: none;
  }
}
body.home #footer.landing-footer {
  background: transparent !important;
}

@media (max-width: 900px) {
  .landing-nav {
    padding: 16px 20px;
  }
  .landing-nav-inner {
    justify-content: space-between;
    gap: 12px;
  }
  .landing-nav-right {
    gap: 14px;
  }
  .landing-hero {
    padding: 110px 28px 64px;
    text-align: center;
  }
  .landing-hero-inner {
    flex-direction: column;
    gap: 48px;
    justify-content: center;
  }
  .landing-hero-copy .brand-mark {
    display: block;
    width: 96px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
  .landing-hero-wedge {
    clip-path: polygon(0 0, 100% 0, 100% var(--wedge-right-y, 520px), 0 var(--wedge-left-y, 460px));
    animation-name: landing-hero-wave-mobile;
  }
  .landing-hero-seam {
    top: calc(var(--wedge-left-y, 460px) - 70px);
    left: -10%;
    width: 120%;
    height: 200px;
    transform: rotate(-4deg);
  }
  .landing-spark {
    top: 70px;
    right: 14%;
  }
  .landing-spark.landing-spark-2 {
    top: 230px;
    right: auto;
    bottom: auto;
    left: 10%;
  }
  .landing-hero-lockup {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
  }
  .landing-hero-wordmark {
    font-size: min(96px, 22vw) !important;
  }
  .landing-hero-copy {
    flex: 0 1 339px;
  }
  .landing-hero-copy .landing-h1 {
    margin-top: 0;
  }
  .landing-lede {
    font-size: 14px;
    margin-left: auto;
    margin-right: auto;
  }
  .landing-cta-row {
    justify-content: center;
  }
  .landing-h1 {
    font-size: 38px;
  }
  .landing-phone-wrap {
    width: 306px;
    align-self: center;
  }
  .landing-why,
  .landing-how,
  .landing-final,
  .landing-mission {
    padding-left: 20px;
    padding-right: 20px;
  }
  .landing-final {
    padding-top: 56px;
    padding-bottom: 62px;
  }
  .landing-final-inner {
    gap: 36px;
  }
  .landing-flip-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .landing-final-spark-1,
  .landing-final-spark-2,
  .landing-final-spark-3 {
    display: none;
  }
  .landing-why-grid,
  .landing-how-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  #why-cards .landing-card {
    text-align: center;
  }
  #why-cards .landing-card-ico {
    margin-left: auto;
    margin-right: auto;
  }
  .landing-how-step {
    text-align: center;
  }
  .landing-mission {
    gap: 28px;
  }
  .landing-mission-track {
    gap: 48px;
  }
  .landing-mission-slide {
    gap: 24px;
  }
  .landing-mission-title {
    font-size: 30px;
  }
  .landing-mission-slide-figure {
    height: 260px;
  }
  .landing-mission-collage {
    width: 244px;
    height: 236px;
    --mc-bx: 48px;
    --mc-by: 21px;
    --mc-cx: 84px;
    --mc-cy: 38px;
  }
  .landing-mission-card {
    width: 166px;
    height: 204px;
  }
  .landing-mission-photo {
    width: 224px;
    height: 280px;
  }
  .landing-mission-panel {
    width: 280px;
    height: 248px;
  }
  .landing-card-wide {
    padding: 40px 24px;
  }
  .landing-card-wide h3 {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .landing-nav {
    padding: 12px 10px;
  }
  .landing-nav-inner {
    gap: 4px;
  }
  .landing-brand {
    gap: 5px;
  }
  .landing-nav-right {
    gap: 8px;
  }
  .landing-wordmark {
    font-size: 22px !important;
  }
  .landing-nav .landing-nav-link {
    font-size: 11px;
    white-space: nowrap;
  }
  .landing-page .landing-btn-light {
    font-size: 11px;
    padding: 7px 12px;
    white-space: nowrap;
  }
}
.modal-backdrop {
  --bs-backdrop-bg: #000;
}

.offcanvas-backdrop {
  background-color: #000;
}

.landing-login-modal {
  --bs-body-color: #fff;
  --bs-card-color: #fff;
  --bs-card-bg: transparent;
  --bs-emphasis-color-rgb: 255, 255, 255;
}
.landing-login-modal .modal-dialog {
  max-width: 380px;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}
.landing-login-modal.show .modal-dialog {
  transform: scale(1);
  opacity: 1;
}
.landing-login-modal .modal-content {
  background: radial-gradient(130% 130% at 85% 0%, var(--brand-plum) 0%, var(--brand-deep) 55%, var(--brand-dark) 100%);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(3, 1, 3, 0.7);
}
.landing-login-modal .modal-header {
  padding: 20px 22px 0;
  border-bottom: none;
}
.landing-login-modal .modal-body {
  padding: 16px 22px 22px;
}
.landing-login-modal .modal-title {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.landing-login-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.55;
  transition: opacity 0.14s ease;
}
.landing-login-modal .btn-close:hover, .landing-login-modal .btn-close:focus {
  opacity: 1;
}
.landing-login-modal .auth-swap .card-title {
  display: none;
}
.landing-login-modal .modal-body .card {
  background: transparent;
  color: #fff;
  box-shadow: none;
  border: none;
}
.landing-login-modal .modal-body .card .card-title {
  color: #fff;
}
.landing-login-modal .modal-body .card .form-label {
  color: rgba(255, 255, 255, 0.78);
}
.landing-login-modal .modal-body .card .form-label-description a,
.landing-login-modal .modal-body .card .form-hint,
.landing-login-modal .modal-body .card .form-text {
  color: rgba(255, 255, 255, 0.6);
}
.landing-login-modal .modal-body .card .form-label:has(.form-label-description) {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.landing-login-modal .modal-body .card .form-label-description {
  font-weight: 500;
}
.landing-login-modal .modal-body .card .form-control,
.landing-login-modal .modal-body .card .form-select {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff !important;
}
.landing-login-modal .modal-body .card .form-control::placeholder,
.landing-login-modal .modal-body .card .form-select::placeholder {
  color: rgba(255, 255, 255, 0.34);
}
.landing-login-modal .modal-body .card .form-control:focus,
.landing-login-modal .modal-body .card .form-select:focus {
  background: rgba(255, 255, 255, 0.045) !important;
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(255, 95, 134, 0.18);
  color: #fff !important;
}
.landing-login-modal .modal-body .card .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}
.landing-login-modal .modal-body .card .form-select option {
  color: #000;
}
.landing-login-modal .modal-body .card .form-control:-webkit-autofill,
.landing-login-modal .modal-body .card .form-control:-webkit-autofill:hover,
.landing-login-modal .modal-body .card .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 40px #2a1224 inset;
  box-shadow: 0 0 0 40px #2a1224 inset;
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
}
.landing-login-modal .modal-body .card .input-group-flat .form-control {
  border-right-color: rgba(255, 255, 255, 0.14);
}
.landing-login-modal .modal-body .card .input-group-flat .input-group-text a {
  color: rgba(255, 255, 255, 0.6);
}
.landing-login-modal .modal-body .card .input-group-flat .input-group-text a:hover {
  color: #fff;
}
.landing-login-modal .modal-body .card .form-check-input {
  background-color: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.14);
}
.landing-login-modal .modal-body .card .form-check-input:checked {
  background-color: var(--brand-rose);
  border-color: var(--brand-rose);
}
.landing-login-modal .modal-body .card .form-check-label {
  color: rgba(255, 255, 255, 0.6);
}
.landing-login-modal .modal-body .card .form-check-label a {
  color: var(--brand-rose);
}
.landing-login-modal .modal-body .card #hcaptcha-slot .h-captcha:not([hidden]) {
  display: inline-block;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}
.landing-login-modal .modal-body .card .text-danger {
  color: var(--brand-pink-soft) !important;
}
.landing-login-modal .modal-body .card .btn-primary {
  background: var(--brand-rose);
  border-color: var(--brand-rose);
  color: #fff;
}
.landing-login-modal .modal-body .card .btn-primary:hover, .landing-login-modal .modal-body .card .btn-primary:focus {
  background: var(--brand-rose-strong);
  border-color: var(--brand-rose-strong);
  box-shadow: 0 8px 20px rgba(216, 19, 79, 0.32);
}
.landing-login-modal .modal-body .card .btn-outline-secondary {
  color: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.14);
}
.landing-login-modal .modal-body .card .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.landing-login-modal .alert-danger {
  background: rgba(216, 19, 79, 0.16);
  border: 1px solid rgba(255, 95, 134, 0.35);
  color: var(--brand-pink-soft);
}
.landing-login-modal .text-body {
  color: rgba(255, 255, 255, 0.6) !important;
}
.landing-login-modal .link-primary {
  color: var(--brand-rose) !important;
}
.landing-login-modal .link-primary:hover {
  color: var(--brand-pink-soft) !important;
}

.auth-swap {
  display: grid;
  position: relative;
  transition: height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-swap.is-animating {
  overflow: hidden;
}

.auth-swap-pane {
  grid-area: 1/1;
  transition: opacity 0.192s ease, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-swap[data-active] .auth-swap-pane {
  opacity: 0;
  transform: translateX(1.25rem);
  pointer-events: none;
  visibility: hidden;
}
.auth-swap[data-active] .auth-swap-pane:not(.is-active) {
  position: absolute;
  inset: 0 0 auto 0;
}
.auth-swap[data-active] .auth-swap-pane.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.auth-swap[data-active=login] .auth-swap-pane[data-pane=register] {
  transform: translateX(1.25rem);
}

.auth-swap[data-active=register] .auth-swap-pane[data-pane=login] {
  transform: translateX(-1.25rem);
}

@media (prefers-reduced-motion: reduce) {
  .auth-swap,
  .auth-swap-pane {
    transition: none;
  }
  .auth-swap[data-active] .auth-swap-pane {
    transform: none;
  }
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

html, body {
  overscroll-behavior: none;
}

body {
  font-size: clamp(0.9rem, 1.6vw, 1.125rem);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--bs-body-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--bs-heading-color);
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

h4 {
  font-size: var(--font-size-h4);
}

h5 {
  font-size: var(--font-size-h5);
}

h6 {
  font-size: var(--font-size-h6);
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
}

:root {
  --bs-nav-link-color: #2a2f3f;
  --bs-nav-link-color-hover: rgba(0, 0, 0, 0.75);
  --bs-body-color: #2a2f3f;
  --bs-border-radius: 1.5rem;
  --bs-card-border-radius: 1.5rem;
  --astro-box-bg: #290533;
  --astro-card-bg: #4e0c3a;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;
  --font-size-h1-display: clamp(1.75rem, 5vw, 2.125rem);
  --font-size-btn: 1rem;
  --font-size-btn-cta: 1.0625rem;
  --letter-spacing-btn-cta: 0.02em;
  --nebula-purple-deep: #2c163a;
  --nebula-purple-dark: #1c0e26;
  --nebula-purple-black: #120b1c;
  --nebula-gold: #f0a93c;
  --nebula-gold-soft: #e9c48a;
  --nebula-pink: #e0567e;
  --nebula-magenta: #c42c7e;
  --nebula-violet: #7c3aed;
  --nebula-text: #f1e9f7;
  --nebula-text-soft: #ede4f5;
  --nebula-text-muted: #b9a6c8;
  --nebula-text-muted-2: #d8c4e0;
  --nebula-text-muted-3: #e4d6ec;
  --nebula-link: #c9aed8;
  --nebula-border: #b9a0e8;
  --nebula-muted-inactive: #9687af;
  --nebula-dow: #9a86b4;
  --nebula-on-gold: #1a0e1a;
  --nebula-bg-scrim: #2b0412;
  --nebula-banner-start: #6f42c1;
  --nebula-banner-end: #7952b3;
  --cta-start: #7c3aed;
  --cta-mid: #c42c7e;
  --cta-end: #e0567e;
  --cta-gradient: linear-gradient(135deg, var(--cta-start), var(--cta-mid), var(--cta-end));
}

html[data-bs-theme=light] {
  --astro-box-bg: #f5eafa;
  --astro-card-bg: #f0e5f5;
  --astro-text-on-box: #2a2f3f;
  --site-title-color: #2a2f3f;
  --site-header-color: #2a2f3f;
  --site-card-title-color: #c85a17;
  --site-card-body-color: #1f2a38;
  --bs-body-bg: #fafbfc;
  --bs-body-color: #2a2f3f;
  --bs-card-bg: #fff;
  --bs-card-color: #2a2f3f;
  --bs-primary: #d71c1c;
  --bs-heading-color: #2a2f3f;
  --bs-secondary: #1f2a38;
  --bs-accent: #651959;
  --bs-accent-2: #ff0084;
  --bs-border-radius: 1.5rem;
  --bs-card-border-radius: 0.5rem;
  --bs-nav-link-color: #2a2f3f;
  --bs-nav-link-color-hover: rgba(0, 0, 0, 0.75);
  --bs-navbar-brand-color: #2a2f3f;
  --bs-navbar-brand-hover-color: #2a2f3f;
  --bs-navbar-color: #2a2f3f;
  --bs-emphasis-color-rgb: 42, 47, 63;
  --scrollbar-track: transparent;
  --scrollbar-thumb: #b8c2cc;
  --scrollbar-thumb-hover: #9aa6b2;
  --scrollbar-thumb-active: #8090a0;
  --bg-app-start: #faf7fc;
  --bg-app-end: #f3ecf5;
}

html[data-bs-theme=dark] {
  --astro-box-bg: #290533;
  --astro-card-bg: #4e0c3a;
  --astro-text-on-box: #fff;
  --site-title-color: #fff;
  --site-header-color: #fff;
  --site-card-title-color: #ebff00;
  --site-card-body-color: #ebff00;
  --bs-body-bg:#0c0b0a;
  --bs-body-color: #fff;
  --bs-card-bg: #212529;
  --bs-card-color: #fff;
  --bs-primary: #d71c1c;
  --bs-secondary: #1f2a38;
  --bs-accent: #ffb2f3;
  --bs-accent-2: #ffabd6;
  --bs-border-radius: 1.5rem;
  --bs-card-border-radius: 0.5rem;
  --bs-heading-color: #fff;
  --bs-nav-link-color: #fff;
  --bs-nav-link-color-hover: rgba(255, 255, 255, 0.85);
  --bs-navbar-brand-color: rgba(255, 255, 255, 1);
  --bs-navbar-brand-hover-color: rgba(255, 255, 255, 1);
  --bs-navbar-color: rgba(255, 255, 255, 1);
  --bs-emphasis-color-rgb: 255, 255, 255;
  --scrollbar-track: transparent;
  --scrollbar-thumb: #5a6474;
  --scrollbar-thumb-hover: #6b7586;
  --scrollbar-thumb-active: #7a879a;
  --bg-app-start: #170a20;
  --bg-app-end: #0c0b0a;
}

.btn-primary {
  background: var(--accent-solid);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--accent-solid-hover);
  color: #fff;
}

body.app {
  background: linear-gradient(180deg, var(--bg-app-start) 0%, var(--bg-app-end) 100%);
  background-attachment: fixed;
  min-height: 100dvh;
}

html[data-bs-theme=light] body.app {
  background: var(--canvas);
}

.fw-bold {
  font-weight: 600 !important;
  color: var(--site-card-title-color, #dcb6c2) !important;
}

html[data-bs-theme=dark] .fw-bold {
  color: #ffcccc !important;
}

html[data-bs-theme=light] .fw-bold {
  color: #c85a17 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

html[data-bs-theme=dark] .text-light {
  color: #ffffff !important;
}

html[data-bs-theme=light] .text-light {
  color: #6b4423 !important;
}

.text-muted {
  color: var(--site-card-body-color, white) !important;
}

.font-xs-responsive {
  font-size: calc(1rem * 0.82) !important;
}

.my-value {
  color: var(--site-card-title-color, #b35c00);
  font-weight: 600;
  letter-spacing: 0.01em;
}

html[data-bs-theme=dark] .my-value {
  color: #ffcccc;
}

.wavespell-value {
  color: #ff0084;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.08em;
}

html[data-bs-theme=dark] .wavespell-value {
  color: #ffcccc;
}

.astro-profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.astro-card-cn {
  grid-column: 1/2;
  grid-row: 1/2;
  background: transparent;
}

.astro-card-zd {
  grid-column: 2/3;
  grid-row: 1/2;
}

.astro-card-hd {
  grid-column: 1/2;
  grid-row: 2/3;
}

.astro-card-my {
  grid-column: 2/3;
  grid-row: 2/3;
  background: transparent;
}

.conversation-container {
  width: 100%;
  max-width: 100%;
}

.zd-flow-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.zd-planets-row, .zd-houses-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

.zd-planet-box, .zd-house-box {
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  font-size: calc(1rem * 1.01);
  overflow-wrap: anywhere;
}

.zd-planet-box {
  min-width: 110px;
  flex: 1 1 110px;
}

.zd-house-box {
  max-width: 100px;
  flex: 1 1 110px;
}

.astro_box_effect {
  box-shadow: 1px 5px 6px rgba(0, 0, 0, 0.1);
}

.zd-planet-detail, .zd-house-detail {
  font-size: calc(1rem * 0.97);
  color: #999;
}

html[data-bs-theme=dark] .zd-planet-detail, html[data-bs-theme=dark] .zd-house-detail {
  color: #999;
}

html[data-bs-theme=light] .zd-planet-detail, html[data-bs-theme=light] .zd-house-detail {
  color: #6b4423 !important;
}

.my-section-card {
  background: transparent;
  border-radius: 0.75rem;
  padding: 1rem;
  border: none;
  flex: 0 1 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.my-kin-row, .my-guide-row, .my-antipode-row, .my-tribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.my-kin-box, .my-guide-box, .my-antipode-box, .my-tribe-box {
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  min-width: 80px;
  max-width: 100px;
  flex: 1 1 80px;
  font-size: calc(1rem * 1.05);
}

.my-kin-box .fw-bold, .my-guide-box .fw-bold, .my-antipode-box .fw-bold, .my-tribe-box .fw-bold {
  font-size: calc(1rem * 1.08);
}

.cn-flow-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cn-pillars-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.cn-pillar-group {
  min-width: 90px;
  max-width: 120px;
  flex: 1 1 90px;
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.75rem;
  padding: 0.5rem 0.25rem 0.75rem 0.25rem;
}

.cn-pillar-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin-bottom: 0.25rem;
  background: rgba(255, 255, 255, 0.1333333333);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cn-pillar-label {
  font-size: 0.75em;
  color: #6b4423;
}

html[data-bs-theme=dark] .cn-pillar-label {
  color: rgba(255, 255, 255, 0.88);
}

html[data-bs-theme=light] .cn-pillar-label {
  color: #6b4423 !important;
}

.cn-stats-row, .cn-elements-row, .cn-yy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.cn-stat-box, .cn-element-box, .cn-yy-box {
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  min-width: 80px;
  flex: 1 1 80px;
  font-size: calc(1rem * 1.05);
}

.cn-stat-box .fw-bold, .cn-element-box .fw-bold, .cn-yy-box .fw-bold {
  font-size: calc(1rem * 0.8);
}

.cn-birth-info {
  margin-top: 0.5rem;
  color: #999;
}

html[data-bs-theme=dark] .cn-birth-info {
  color: #999;
}

html[data-bs-theme=light] .cn-birth-info {
  color: #6b4423 !important;
}

.hd-flow-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hd-design-row, .hd-personality-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.hd-design-box, .hd-personality-box {
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  min-width: 110px;
  flex: 1 1 110px;
  font-size: 1.01em;
}
.hd-design-box .fw-bold, .hd-personality-box .fw-bold {
  font-size: calc(1rem * 1.08);
}

.hd-design-detail, .hd-personality-detail {
  font-size: calc(1rem * 0.97);
  color: #999;
}

html[data-bs-theme=dark] .hd-design-detail, html[data-bs-theme=dark] .hd-personality-detail {
  color: #999;
}

html[data-bs-theme=light] .hd-design-detail, html[data-bs-theme=light] .hd-personality-detail {
  color: #6b4423 !important;
}

.hd-bodygraph-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.hd-bodygraph-svg {
  width: 100%;
  max-width: 425px;
  margin: 0 auto;
  display: block;
}

html[data-bs-theme=dark] .hd-design-box, html[data-bs-theme=dark] .hd-personality-box, html[data-bs-theme=dark] .hd-bodygraph-box {
  box-shadow: 0 2px 8px rgba(247, 151, 30, 0.1);
}

.astro-cards-mosaic {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 992px) {
  .astro-cards-mosaic {
    flex-direction: row;
    align-items: flex-start;
  }
}

.astro-mosaic-col {
  display: contents;
}
@media (min-width: 992px) {
  .astro-mosaic-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    min-width: 0;
  }
}

.astro-card {
  width: 100%;
}

.astro-card-my {
  margin-top: 1.5rem;
}

.astro-panel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
}

html[data-bs-theme=light] .astro-panel {
  --site-card-title-color: #fff;
  --site-card-body-color: rgba(255, 255, 255, 0.85);
}

.astro-panel-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 1.75rem;
  color: var(--site-card-title-color);
  cursor: pointer;
  user-select: none;
}
.astro-panel-head::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 0;
  top: 50%;
  font-size: 0.75rem;
  color: #999;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}
.astro-panel-head .ico {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: color-mix(in srgb, var(--bs-accent) 14%, transparent);
  color: var(--bs-accent);
}
html[data-bs-theme=light] .astro-panel-head .ico {
  background: color-mix(in srgb, #ffb2f3 14%, transparent);
  color: #ffb2f3;
}
.astro-panel-head .count {
  font-size: 0.75rem;
  font-weight: 500;
  color: #999;
}

.astro-card.is-collapsed .astro-panel-head {
  margin-bottom: 0;
}
.astro-card.is-collapsed .astro-panel-head::after {
  transform: translateY(-50%) rotate(-90deg);
}
.astro-card.is-collapsed .astro-panel > *:not(.astro-panel-head) {
  display: none !important;
}

.astro-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}
.astro-chip-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.astro-chip-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 767.98px) {
  .astro-chip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .astro-chip-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.astro-chip {
  background: var(--astro-box-bg);
  color: var(--astro-text-on-box, #fff);
  border-radius: 0.75rem;
  padding: 0.6rem 0.5rem;
  text-align: center;
  overflow-wrap: anywhere;
}
.astro-chip .chip-label {
  font-size: 0.8rem;
  font-weight: 700;
}
.astro-chip .chip-value {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.2rem;
  color: var(--bs-accent);
}
.astro-chip.inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 0.55rem 0.75rem;
}
.astro-chip.inline .chip-value {
  margin-top: 0;
}

.astro-element-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.astro-element-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.astro-element-bar-name {
  width: 3.5rem;
  flex: none;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--site-card-title-color);
}

.astro-element-bar-track {
  flex: 1;
  height: 0.55rem;
  border-radius: 0.4rem;
  background: var(--astro-box-bg);
  overflow: hidden;
}

.astro-element-bar-fill {
  height: 100%;
  border-radius: 0.4rem;
  background: linear-gradient(90deg, var(--bs-accent), var(--bs-accent-2));
}

.astro-element-bar-pct {
  width: 2.25rem;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--site-card-body-color);
}

.astro-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  background: var(--bs-card-bg, #fff);
  border: 1px solid var(--astro-box-bg);
  border-radius: 2rem;
  padding: 0.25rem;
  margin-bottom: 1.25rem;
}

.astro-tab {
  border: none;
  background: transparent;
  color: var(--site-card-body-color);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.astro-tab.active {
  background: var(--bs-accent);
  color: #fff;
}

.natal-wheel-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 0.75rem;
  background: var(--natal-wheel-bg);
  transition: background-color 0.2s ease;
}
.natal-wheel-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

:root {
  --natal-wheel-bg: transparent;
  --natal-wheel-points-color: var(--bs-body-color);
  --natal-wheel-signs-color: var(--bs-accent);
  --natal-wheel-circle-color: var(--astro-box-bg);
  --natal-wheel-line-color: var(--astro-box-bg);
  --natal-wheel-cusps-color: var(--bs-body-color);
  --natal-wheel-axis-color: var(--bs-accent-2);
  --natal-wheel-symbol-scale: 1;
  --natal-wheel-colors-signs: #FF4500, #8B4513, #87CEEB, #27AE60, #FF4500, #8B4513, #87CEEB, #27AE60, #FF4500, #8B4513, #87CEEB, #27AE60;
}

.natal-wheel-wrap.natal-wheel--nebula {
  --natal-wheel-bg: #141020;
  --natal-wheel-points-color: #F7DCE8;
  --natal-wheel-signs-color: #F6EDFA;
  --natal-wheel-circle-color: #7C3AED;
  --natal-wheel-line-color: #4A3D66;
  --natal-wheel-cusps-color: #8A7CA8;
  --natal-wheel-axis-color: #D6297E;
  --natal-wheel-symbol-scale: 1;
  --natal-wheel-colors-signs: #E0567E, #D9A24B, #B9A0E8, #4F9DAE, #E0567E, #D9A24B, #B9A0E8, #4F9DAE, #E0567E, #D9A24B, #B9A0E8, #4F9DAE;
}

.natal-wheel-wrap.natal-wheel--amethyst {
  --natal-wheel-bg: #120F1C;
  --natal-wheel-points-color: #EFD6F5;
  --natal-wheel-signs-color: #F1E8FB;
  --natal-wheel-circle-color: #8B2FD6;
  --natal-wheel-line-color: #453564;
  --natal-wheel-cusps-color: #9A8CB8;
  --natal-wheel-axis-color: #C930A8;
  --natal-wheel-symbol-scale: 1;
  --natal-wheel-colors-signs: #C24BC7, #9A5BD1, #C9A6F0, #7B52C4, #C24BC7, #9A5BD1, #C9A6F0, #7B52C4, #C24BC7, #9A5BD1, #C9A6F0, #7B52C4;
}

.natal-wheel-wrap.natal-wheel--dusk {
  --natal-wheel-bg: #0F1024;
  --natal-wheel-points-color: #D8CFE6;
  --natal-wheel-signs-color: #EAE6F2;
  --natal-wheel-circle-color: #4B3B8F;
  --natal-wheel-line-color: #33375E;
  --natal-wheel-cusps-color: #7E85AA;
  --natal-wheel-axis-color: #8E5CA6;
  --natal-wheel-symbol-scale: 1;
  --natal-wheel-colors-signs: #C98A6B, #A6864F, #8E9BD6, #5E8AA6, #C98A6B, #A6864F, #8E9BD6, #5E8AA6, #C98A6B, #A6864F, #8E9BD6, #5E8AA6;
}

.natal-wheel-wrap.natal-wheel--orchid {
  --natal-wheel-bg: #17111A;
  --natal-wheel-points-color: #F3DDC9;
  --natal-wheel-signs-color: #F8F0E6;
  --natal-wheel-circle-color: #B0357E;
  --natal-wheel-line-color: #4E3A44;
  --natal-wheel-cusps-color: #9A8878;
  --natal-wheel-axis-color: #B0357E;
  --natal-wheel-symbol-scale: 1;
  --natal-wheel-colors-signs: #C0468C, #D4A24E, #E0C67A, #8E4E9E, #C0468C, #D4A24E, #E0C67A, #8E4E9E, #C0468C, #D4A24E, #E0C67A, #8E4E9E;
}

html[data-bs-theme=light] .natal-wheel-wrap.natal-wheel--nebula {
  --natal-wheel-bg: #F6EEFB;
  --natal-wheel-points-color: #4A2350;
  --natal-wheel-signs-color: #2E1733;
  --natal-wheel-line-color: #E3D6F0;
  --natal-wheel-cusps-color: #8D74A8;
  --natal-wheel-axis-color: #B81C64;
}
html[data-bs-theme=light] .natal-wheel-wrap.natal-wheel--amethyst {
  --natal-wheel-bg: #F7EEFB;
  --natal-wheel-points-color: #4B1F57;
  --natal-wheel-signs-color: #2B1533;
  --natal-wheel-line-color: #E6D9F2;
  --natal-wheel-cusps-color: #96789E;
  --natal-wheel-axis-color: #9B2488;
}
html[data-bs-theme=light] .natal-wheel-wrap.natal-wheel--dusk {
  --natal-wheel-bg: #EFEFF9;
  --natal-wheel-points-color: #33345C;
  --natal-wheel-signs-color: #1E1F38;
  --natal-wheel-line-color: #D9DCEE;
  --natal-wheel-cusps-color: #6E7398;
  --natal-wheel-axis-color: #6E3F82;
}
html[data-bs-theme=light] .natal-wheel-wrap.natal-wheel--orchid {
  --natal-wheel-bg: #FBF1F6;
  --natal-wheel-points-color: #5C3620;
  --natal-wheel-signs-color: #332420;
  --natal-wheel-line-color: #F0DDE7;
  --natal-wheel-cusps-color: #8F7A6A;
  --natal-wheel-axis-color: #9A2B69;
}

#hdkit-iframe {
  width: 100%;
  max-width: 600px;
  height: 600px;
  margin: 0 auto;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
}

html[data-bs-theme=dark] #hdkit-iframe {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-bs-theme=light] #hdkit-iframe {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.site-shell {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  width: 100%;
}
@media (max-width: 991.98px) {
  .site-shell {
    flex-direction: column;
  }
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
  background-color: var(--bs-body-bg);
}

[data-bs-theme=light] .navbar-toggler-icon {
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-sidebar {
  --bs-offcanvas-width: 240px;
  flex: 0 0 240px;
  border-right: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
  background-color: color-mix(in srgb, var(--bs-body-bg) 20%, transparent) !important;
}
.site-sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  gap: 8px;
}

.site-topbar .navbar-brand,
.site-sidebar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-sidebar-brand {
  padding: 0.5rem 0.75rem 1rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-brand-wordmark {
  display: inline-block;
}

.site-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.site-sidebar-nav .nav-item {
  margin: 0 !important;
  width: 100%;
}
.site-sidebar-nav .nav-link {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  transition: background-color 0.15s ease;
}
.site-sidebar-nav .nav-link:hover {
  background: rgba(var(--bs-emphasis-color-rgb), 0.08);
}
.site-sidebar-nav .site-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1rem;
}
.site-sidebar-nav .site-sidebar-group .nav-link {
  font-size: 14px;
}
.site-sidebar-nav .site-sidebar-group-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0 14px 8px;
}

.site-sidebar-footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

html[data-bs-theme=light] .site-sidebar {
  background-color: color-mix(in srgb, var(--surface) 20%, transparent) !important;
  border-right-color: var(--border);
}
html[data-bs-theme=light] .site-sidebar-brand {
  font-family: "Inter Tight", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
html[data-bs-theme=light] .site-sidebar-nav {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-bs-theme=light] .site-sidebar-nav .nav-link {
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: normal;
  overflow-wrap: break-word;
}
html[data-bs-theme=light] .site-sidebar-nav .nav-link:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
html[data-bs-theme=light] .site-sidebar-nav .nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-tint);
}
html[data-bs-theme=light] .site-sidebar-nav .nav-link.active:hover {
  background: var(--accent-tint);
}
html[data-bs-theme=light] .site-sidebar-nav .site-sidebar-group-label {
  color: var(--faint);
}
html[data-bs-theme=light] .site-sidebar-logout {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  border-radius: 10px;
}
html[data-bs-theme=light] .site-sidebar-logout:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
html[data-bs-theme=light] .site-sidebar-footer {
  border-top: none;
  padding-top: 24px;
}
html[data-bs-theme=light] .site-sidebar-footer .navbar-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

html[data-bs-theme=dark] .site-sidebar {
  background-color: color-mix(in srgb, var(--surface) 20%, transparent) !important;
  border-right-color: var(--border);
}
html[data-bs-theme=dark] .site-sidebar-brand {
  font-family: "Inter Tight", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
html[data-bs-theme=dark] .site-sidebar-nav {
  font-family: "Inter", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html[data-bs-theme=dark] .site-sidebar-nav .nav-link {
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  white-space: normal;
  overflow-wrap: break-word;
}
html[data-bs-theme=dark] .site-sidebar-nav .nav-link:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
html[data-bs-theme=dark] .site-sidebar-nav .nav-link.active {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-tint);
}
html[data-bs-theme=dark] .site-sidebar-nav .nav-link.active:hover {
  background: var(--accent-tint);
}
html[data-bs-theme=dark] .site-sidebar-nav .site-sidebar-group-label {
  color: var(--faint);
}
html[data-bs-theme=dark] .site-sidebar-logout {
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  border-radius: 10px;
}
html[data-bs-theme=dark] .site-sidebar-logout:hover {
  background: var(--surface-alt);
  color: var(--ink);
}
html[data-bs-theme=dark] .site-sidebar-footer .navbar-theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  html[data-bs-theme=light] .site-sidebar {
    background-color: color-mix(in srgb, var(--surface) 90%, transparent) !important;
  }
  html[data-bs-theme=dark] .site-sidebar {
    background-color: color-mix(in srgb, var(--surface) 86%, transparent) !important;
  }
  html[data-bs-theme=dark] .site-topbar {
    background-color: #271334;
  }
  html[data-bs-theme=dark] .footer.sticky-footer {
    background-color: #271334 !important;
  }
}
.site-main {
  flex: 1 1 auto;
  min-width: 0;
}

.navbar-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.15);
  background: rgba(var(--bs-emphasis-color-rgb), 0.06);
  color: var(--bs-nav-link-color);
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.navbar-theme-toggle:hover, .navbar-theme-toggle:focus-visible {
  background: rgba(var(--bs-emphasis-color-rgb), 0.14);
  transform: scale(1.08);
}
.navbar-theme-toggle:focus {
  outline: none;
  box-shadow: none;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

html[data-bs-theme=dark] .navbar {
  --bs-emphasis-color-rgb: 255, 255, 255 !important;
  --bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-nav-link-color: #fff !important;
}

html[data-bs-theme=light] .navbar {
  --bs-emphasis-color-rgb: 42, 47, 63 !important;
  --bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), 1) !important;
  --bs-nav-link-color: #2a2f3f !important;
}

html[data-bs-theme=dark] .navbar-brand, html[data-bs-theme=dark] .navbar-brand a, html[data-bs-theme=dark] .navbar-nav .nav-link {
  color: #fff !important;
}

html[data-bs-theme=light] .navbar-brand, html[data-bs-theme=light] .navbar-brand a, html[data-bs-theme=light] .navbar-nav .nav-link {
  color: #2a2f3f !important;
}

html[data-bs-theme=dark] .card-title {
  color: #fff !important;
}

html[data-bs-theme=light] .card-title {
  color: #2a2f3f !important;
}

.home .card-title, .home-container .card-title, #home_wrapper .card-title {
  color: #fff !important;
}

html[data-bs-theme=light] .home .card-title,
html[data-bs-theme=light] .home-container .card-title,
html[data-bs-theme=light] #home_wrapper .card-title {
  color: #fff !important;
}

.home .navbar-brand, .home .navbar-brand a, .home .navbar-nav .nav-link,
.home-container .navbar-brand, .home-container .navbar-brand a, .home-container .navbar-nav .nav-link,
#home_wrapper .navbar-brand, #home_wrapper .navbar-brand a, #home_wrapper .navbar-nav .nav-link {
  color: #fff !important;
}

html[data-bs-theme=dark] #theme-toggle-btn,
html[data-bs-theme=dark] .btn-secondary#theme-toggle-btn {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme=light] #theme-toggle-btn,
html[data-bs-theme=light] .btn-secondary#theme-toggle-btn {
  color: #fff !important;
  background-color: #1f2a38 !important;
  border-color: #1f2a38 !important;
}

#theme-toggle-btn {
  padding: 0.5rem 0.75rem !important;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
#theme-toggle-btn:hover {
  transform: scale(1.1);
}
#theme-toggle-btn:focus {
  box-shadow: none !important;
}

#home_wrapper {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  font-family: serif;
  font-size: 28px;
  font-weight: 400;
  justify-content: center;
  line-height: 28px;
  margin: 0;
  min-height: 100vh;
  overflow-wrap: break-word;
  overflow-x: hidden;
  overflow-y: visible;
  padding: 0;
  position: relative;
  z-index: 2;
  --background-height: 100vh;
}

body.home {
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, #1a0230 0%, #7b1846 45%, #d4145a 80%, #e8315a 100%);
  background-attachment: fixed;
}

.home, .home-container, #home_wrapper {
  --bs-nav-link-color: #ffffff;
  --bs-nav-link-color-hover: rgba(255, 255, 255, 0.85);
  --bs-navbar-brand-color: rgba(255, 255, 255, 1);
  --bs-navbar-brand-hover-color: rgba(255, 255, 255, 1);
  --bs-navbar-color: rgba(255, 255, 255, 1);
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-body-color: #fff;
}

.home-container {
  position: relative;
  z-index: 2;
  color: white;
}

.home .home-container, .home #home_wrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.home .home-container > .row {
  flex: 1 1 auto;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
}

.home .navbar {
  z-index: 3;
}

.home .row.h-100 {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#welcome {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 25vw;
  line-height: 1;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  width: 100vw;
  text-align: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  animation: cosmic-breathe 8s ease-in-out infinite alternate;
}

@keyframes cosmic-breathe {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.15;
  }
}
#welcome h1 {
  font-size: 5rem;
  font-weight: 800;
  text-transform: uppercase;
  font-family: "Sora", sans-serif;
  background: linear-gradient(344deg, rgb(186, 186, 186) 0%, rgb(142, 50, 150) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#welcome_button {
  background-color: #651959;
  color: #fff;
  background-image: linear-gradient(45deg, rgb(60.119047619, 14.880952381, 52.9761904762) 0%, rgba(101, 25, 89, 0.008) 100%);
  background-position: 0% 0%;
  background-repeat: repeat;
  background-size: cover;
  border: none;
  border-radius: 10px;
  max-width: 90vw;
  width: fit-content;
}

#welcome_button a {
  display: block;
  line-height: 1.3;
  padding: 0.75rem 1.5rem;
  vertical-align: middle;
  font-family: "Open Sans", sans-serif;
  letter-spacing: clamp(0.1rem, 0.5vw, 0.5rem);
  font-size: clamp(1.4rem, 5vw, 3.5rem);
  font-weight: 600;
  border-radius: 3rem;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
}

.hero-background-title {
  display: none !important;
}

.navbar-home-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  width: 100%;
}

.home-nav-logo {
  text-decoration: none;
}

.site-logomark {
  display: inline-block;
  background: var(--cta-gradient);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(196, 44, 126, 0.5);
}

.home-nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-home-ghost {
  color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 150ms, color 150ms;
}
.btn-home-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.btn-home-pill {
  color: var(--cta-start);
  background: #ffffff;
  border-radius: 9999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 150ms, color 150ms;
}
.btn-home-pill:hover {
  background: rgb(244.52, 239.24, 253.56);
}

#hero-content {
  flex: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  background-image: url("/assets/images/hero/heartplain2.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position-y: center;
  background-position-x: center;
  will-change: transform, opacity;
}

#hero-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: clip;
  width: 100%;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  font-family: "Inter", "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-align: center;
  margin-top: 4.5rem;
  text-shadow: 0 0 30px rgba(212, 20, 90, 0.5);
}
.hero-brand .site-logomark {
  font-size: 1rem;
  flex-shrink: 0;
}

.auth-brand-link {
  position: absolute;
  top: 2.75rem;
  left: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.auth-brand-name {
  display: inline-block;
}

.auth-form-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--bs-body-color);
}

.auth-form-wordmark {
  display: inline-block;
}

.auth-form-title {
  margin: 1rem 0 0;
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  color: var(--bs-body-color);
}

.auth-form-subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted, var(--bs-body-color));
}

#hero-cluster {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0 0.5rem;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  min-height: 180px;
  z-index: 2;
}
#hero-cluster::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(340px, 90vw);
  height: min(340px, 90vw);
  background: radial-gradient(circle, rgba(212, 20, 90, 0.3) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.hero-blob-wrap {
  position: relative;
  z-index: 1;
  padding: 3px;
  border-radius: 60% 40% 55% 45%/50% 60% 40% 50%;
  background: linear-gradient(135deg, #d4145a, #8b1446, #1a0230);
  flex: 1 1 0;
  min-width: 0;
  max-width: 34vw;
}

.hero-blob-wrap:nth-of-type(1) {
  aspect-ratio: 4/5;
  transform: translateY(12px);
}

.hero-blob-wrap:nth-of-type(2) {
  aspect-ratio: 4/5;
  transform: translateY(-8px);
  z-index: 2;
  flex-grow: 1.3;
  max-width: 40vw;
}

.hero-blob-wrap:nth-of-type(3) {
  aspect-ratio: 4/5;
  transform: translateY(12px);
}

.hero-blob {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  border-radius: inherit;
}
.hero-blob.blob-1 {
  clip-path: polygon(30% 0%, 70% 5%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%);
}
.hero-blob.blob-2 {
  clip-path: polygon(20% 0%, 80% 8%, 100% 40%, 88% 85%, 55% 100%, 15% 92%, 0% 55%, 8% 15%);
}
.hero-blob.blob-3 {
  clip-path: polygon(35% 0%, 75% 2%, 100% 35%, 92% 75%, 65% 100%, 20% 98%, 0% 60%, 10% 20%);
}

.hero-sparkle {
  position: absolute;
  color: rgba(139, 92, 246, 0.8);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  animation: sparkle-pulse 3s ease-in-out infinite alternate;
}

.hero-sparkle:nth-child(4) {
  top: 8%;
  left: 6%;
  font-size: 1.4rem;
  animation-delay: 0s;
}

.hero-sparkle:nth-child(5) {
  top: 12%;
  right: 7%;
  font-size: 0.9rem;
  animation-delay: 0.8s;
}

.hero-sparkle:nth-child(6) {
  bottom: 25%;
  left: 8%;
  font-size: 0.8rem;
  animation-delay: 1.5s;
}

.hero-sparkle:nth-child(7) {
  bottom: 12%;
  right: 5%;
  font-size: 1.2rem;
  animation-delay: 0.4s;
}

@keyframes sparkle-pulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 1;
    transform: scale(1.3);
  }
}
#welcome-cta {
  background: transparent;
  color: #ffffff;
  padding: 0 1.5rem 1rem;
  text-align: center;
  width: 100%;
}
#welcome-cta h2 {
  font-family: "Inter", "Lexend", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 1.75rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

#cta-button {
  display: block;
  width: 100%;
  min-height: 52px;
  border-radius: 9999px;
  background: var(--cta-gradient);
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border: none;
  cursor: pointer;
  transition: filter 150ms ease;
  line-height: 1.3;
  animation: cta-neon-glow 1.5s ease-in-out infinite alternate;
}
#cta-button:hover, #cta-button:focus {
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
}

@keyframes cta-neon-glow {
  0% {
    text-shadow: 0 0 5px var(--cta-start), 0 0 10px var(--cta-start), 0 0 20px var(--cta-start), 0 0 40px var(--cta-start);
  }
  100% {
    text-shadow: 0 0 10px var(--cta-end), 0 0 20px var(--cta-end), 0 0 40px var(--cta-end), 0 0 80px var(--cta-end);
  }
}
@media (prefers-reduced-motion: reduce) {
  #cta-button {
    animation: none;
    text-shadow: 0 0 16px var(--cta-mid);
  }
}
.cta-login-link {
  display: block;
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  text-decoration: underline;
}
.cta-login-link:hover {
  color: #ffffff;
}

@media (min-width: 480px) {
  .hero-blob-wrap:nth-of-type(1) {
    max-width: 130px;
  }
  .hero-blob-wrap:nth-of-type(2) {
    max-width: 155px;
  }
  .hero-blob-wrap:nth-of-type(3) {
    max-width: 130px;
  }
}
@media (min-width: 576px) {
  .hero-blob-wrap:nth-of-type(1) {
    max-width: 185px;
  }
  .hero-blob-wrap:nth-of-type(2) {
    max-width: 215px;
  }
  .hero-blob-wrap:nth-of-type(3) {
    max-width: 185px;
  }
  #cta-button {
    width: auto;
    display: inline-block;
    min-width: 280px;
  }
  #welcome-cta {
    padding: 0 2rem 1rem;
  }
  #hero-cluster {
    gap: 0.75rem;
    min-height: 220px;
  }
}
body.home #footer {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.6) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
}

body.home #footer a, body.home #footer .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
}

body.home #footer p {
  color: rgba(255, 255, 255, 0.6) !important;
}

#astral-chart-page .form-text,
#astral-chart-page .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

#astral-chart-page .form-control,
#astral-chart-page .form-select {
  color: #212529 !important;
}

#astral-chart-page .form-control::placeholder {
  color: rgba(33, 37, 41, 0.4) !important;
}

html[data-bs-theme=dark] #astral-chart-page .form-control,
html[data-bs-theme=dark] #astral-chart-page .form-select {
  color: #dee2e6 !important;
}

html[data-bs-theme=dark] #astral-chart-page .form-control::placeholder {
  color: rgba(222, 226, 230, 0.4) !important;
}

html[data-bs-theme=dark] #astral-chart-page .form-text {
  color: rgba(255, 255, 255, 0.6) !important;
}

#mini-hero-cluster-wrap {
  position: relative;
  width: 85vw;
  max-width: 340px;
  margin: -19vw auto 12px;
  padding: 9vw 8px 4px;
  background-image: url("/assets/images/hero/heartplain2.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
}
@media (min-width: 576px) {
  #mini-hero-cluster-wrap {
    width: 420px;
    max-width: 107%;
    margin: -128px auto 14px;
    padding: 70px 8px 4px;
  }
}

#mini-hero-cluster {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0.4rem;
  width: 100%;
}

.mini-hero-blob-wrap {
  position: relative;
  z-index: 1;
  padding: 2px;
  border-radius: 60% 40% 55% 45%/50% 60% 40% 50%;
  background: linear-gradient(135deg, #d4145a, #8b1446, #1a0230);
  flex: 1 1 0;
  min-width: 0;
}

.mini-hero-blob-wrap:nth-of-type(1) {
  aspect-ratio: 4/5;
  transform: translateY(10px);
}

.mini-hero-blob-wrap:nth-of-type(2) {
  aspect-ratio: 4/5;
  transform: translateY(-6px);
  z-index: 2;
  flex-grow: 1.3;
}

.mini-hero-blob-wrap:nth-of-type(3) {
  aspect-ratio: 4/5;
  transform: translateY(10px);
}

.mini-hero-blob {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  border-radius: inherit;
}
.mini-hero-blob.blob-1 {
  clip-path: polygon(30% 0%, 70% 5%, 100% 30%, 95% 70%, 70% 100%, 30% 95%, 0% 70%, 5% 30%);
}
.mini-hero-blob.blob-2 {
  clip-path: polygon(20% 0%, 80% 8%, 100% 40%, 88% 85%, 55% 100%, 15% 92%, 0% 55%, 8% 15%);
}
.mini-hero-blob.blob-3 {
  clip-path: polygon(35% 0%, 75% 2%, 100% 35%, 92% 75%, 65% 100%, 20% 98%, 0% 60%, 10% 20%);
}

.mini-hero-sparkle {
  position: absolute;
  color: rgba(139, 92, 246, 0.85);
  pointer-events: none;
  user-select: none;
  z-index: 3;
  animation: sparkle-pulse 3s ease-in-out infinite alternate;
}

.mini-hero-sparkle:nth-child(4) {
  top: 2%;
  left: 2%;
  font-size: 1.2rem;
  animation-delay: 0s;
}

.mini-hero-sparkle:nth-child(5) {
  top: 6%;
  right: 4%;
  font-size: 0.85rem;
  animation-delay: 0.8s;
}

.mini-hero-sparkle:nth-child(6) {
  bottom: 30%;
  left: 0%;
  font-size: 0.8rem;
  animation-delay: 1.5s;
}

.mini-hero-sparkle:nth-child(7) {
  bottom: 18%;
  right: 0%;
  font-size: 1.05rem;
  animation-delay: 0.4s;
}

.auth-page-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100dvh;
}

.auth-side-hero {
  flex: 0 0 42%;
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 3rem 2rem;
}
@media (max-width: 991.98px) {
  .auth-side-hero {
    display: none !important;
  }
}

.auth-side-blobs {
  position: relative;
  width: 240px;
  height: 320px;
}

.auth-blob-wrap {
  position: absolute;
  padding: 3px;
  border-radius: 60% 40% 55% 45%/50% 60% 40% 50%;
  background: linear-gradient(135deg, #d4145a, #8b1446, #1a0230);
}
.auth-blob-wrap.auth-blob-top {
  width: 165px;
  height: 205px;
  top: 0;
  right: 10px;
  transform: rotate(5deg);
}
.auth-blob-wrap.auth-blob-btm {
  width: 145px;
  height: 180px;
  bottom: 0;
  left: 10px;
  transform: rotate(-7deg);
}

.auth-blob {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  border-radius: inherit;
}

.auth-sparkle {
  position: absolute;
  color: rgba(139, 92, 246, 0.85);
  font-size: 1.1rem;
  pointer-events: none;
  user-select: none;
  animation: sparkle-pulse 3s ease-in-out infinite alternate;
}

.auth-side-tagline {
  position: relative;
  margin-top: 2.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.auth-form-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.25rem;
  min-width: 0;
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
}
.auth-form-col > * {
  width: 100%;
  max-width: 420px;
}

.home-container.container:has(.auth-page-wrap-login, .auth-page-wrap-forgot, .auth-page-wrap-register) {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
}
.home-container.container:has(.auth-page-wrap-login, .auth-page-wrap-forgot, .auth-page-wrap-register) > .row:has(.auth-page-wrap-login, .auth-page-wrap-forgot, .auth-page-wrap-register) {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.auth-page-wrap-login, .auth-page-wrap-forgot, .auth-page-wrap-register {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.auth-side-hero-login, .auth-side-hero-forgot, .auth-side-hero-register {
  position: relative;
  background: var(--brand-cosmic-gradient);
}

.auth-side-hero-login::after,
.auth-side-hero-forgot::after,
.auth-side-hero-register::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--brand-paper);
  clip-path: polygon(100% 0%, 100% 100%, 83% 100%, 82.21% 95.83%, 81.5% 91.67%, 80.96% 87.5%, 80.67% 83.33%, 80.67% 79.17%, 81% 75%, 81.67% 70.83%, 82.67% 66.67%, 83.96% 62.5%, 85.5% 58.33%, 87.21% 54.17%, 89% 50%, 90.79% 45.83%, 92.5% 41.67%, 94.04% 37.5%, 95.33% 33.33%, 96.33% 29.17%, 97% 25%, 97.33% 20.83%, 97.33% 16.67%, 97.04% 12.5%, 96.5% 8.33%, 95.79% 4.17%, 95% 0%);
  filter: drop-shadow(-10px 0 26px rgba(255, 95, 134, 0.28));
  animation: auth-seam-wave 16s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auth-seam-wave {
  0%, 100% {
    clip-path: polygon(100% 0%, 100% 100%, 83% 100%, 82.21% 95.83%, 81.5% 91.67%, 80.96% 87.5%, 80.67% 83.33%, 80.67% 79.17%, 81% 75%, 81.67% 70.83%, 82.67% 66.67%, 83.96% 62.5%, 85.5% 58.33%, 87.21% 54.17%, 89% 50%, 90.79% 45.83%, 92.5% 41.67%, 94.04% 37.5%, 95.33% 33.33%, 96.33% 29.17%, 97% 25%, 97.33% 20.83%, 97.33% 16.67%, 97.04% 12.5%, 96.5% 8.33%, 95.79% 4.17%, 95% 0%);
  }
  50% {
    clip-path: polygon(100% 0%, 100% 100%, 83% 100%, 84.79% 95.83%, 86.5% 91.67%, 88.04% 87.5%, 89.33% 83.33%, 90.33% 79.17%, 91% 75%, 91.33% 70.83%, 91.33% 66.67%, 91.04% 62.5%, 90.5% 58.33%, 89.79% 54.17%, 89% 50%, 88.21% 45.83%, 87.5% 41.67%, 86.96% 37.5%, 86.67% 33.33%, 86.67% 29.17%, 87% 25%, 87.67% 20.83%, 88.67% 16.67%, 89.96% 12.5%, 91.5% 8.33%, 93.21% 4.17%, 95% 0%);
  }
}
.auth-side-hero-login > *,
.auth-side-hero-forgot > *,
.auth-side-hero-register > * {
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .auth-side-hero-login::after,
  .auth-side-hero-forgot::after,
  .auth-side-hero-register::after {
    animation: none;
  }
}
.auth-form-col-login, .auth-form-col-forgot, .auth-form-col-register {
  background: var(--brand-paper);
  --bs-body-color: #2a2f3f;
  --bs-emphasis-color-rgb: 42, 47, 63;
}

.auth-login-photos {
  position: relative;
  width: 260px;
  height: 260px;
}

.auth-login-photo {
  position: absolute;
  border-radius: 44% 44% 46% 46%/48%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center top;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.auth-login-photo-a {
  width: 162px;
  height: 186px;
  left: 34px;
  top: 0;
}

.auth-login-photo-b {
  width: 130px;
  height: 152px;
  left: 0;
  top: 130px;
}

.auth-side-tagline .accent {
  color: var(--brand-rose);
}

.card.auth-login-card, .card.auth-forgot-card, .card.auth-register-card {
  background: transparent;
  border: none;
  box-shadow: none;
}
.card.auth-login-card .card-body, .card.auth-forgot-card .card-body, .card.auth-register-card .card-body {
  padding: 0;
}
.card.auth-login-card .form-label, .card.auth-forgot-card .form-label, .card.auth-register-card .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
}
.card.auth-login-card .form-control, .card.auth-forgot-card .form-control, .card.auth-register-card .form-control {
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border-color: var(--border-input);
  background: var(--canvas);
  color: var(--bs-body-color);
}
.card.auth-login-card .form-control:focus, .card.auth-forgot-card .form-control:focus, .card.auth-register-card .form-control:focus {
  border-color: var(--brand-rose);
  box-shadow: 0 0 0 3px rgba(255, 95, 134, 0.15);
}
.card.auth-login-card .input-group-flat, .card.auth-forgot-card .input-group-flat, .card.auth-register-card .input-group-flat {
  position: relative;
}
.card.auth-login-card .input-group-flat .form-control, .card.auth-forgot-card .input-group-flat .form-control, .card.auth-register-card .input-group-flat .form-control {
  padding-right: 2.75rem;
  border-radius: 0.75rem;
  border-right-color: var(--border-input);
}
.card.auth-login-card .input-group-flat .input-group-text, .card.auth-forgot-card .input-group-flat .input-group-text, .card.auth-register-card .input-group-flat .input-group-text {
  position: absolute;
  right: 0.25rem;
  top: 0;
  bottom: 0;
  z-index: 4;
  background: none;
  border: none;
  padding: 0 0.5rem;
}
.card.auth-login-card .btn-primary, .card.auth-forgot-card .btn-primary, .card.auth-register-card .btn-primary {
  border-radius: 0.75rem;
  padding: 0.9375rem;
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 1rem;
}

.home footer.footer, .home .footer, #footer {
  background: transparent !important;
  color: #fff !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  width: 100%;
}

.home footer.footer a, .home .footer .nav-link, #footer a, #footer .nav-link {
  color: #fff !important;
}

.page-card, .card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08));
  border: none;
  color: var(--bs-body-color);
}

:where(html[data-bs-theme=light]) .page-card,
:where(html[data-bs-theme=light]) .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(43, 36, 48, 0.04);
  color: var(--text);
}

.accordion .accordion-button {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.accordion .accordion-body {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.card .card-title {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.settings-submit {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

#btnsubmit {
  min-width: 160px;
  margin-bottom: 0.5rem;
}

.bodygraph {
  background: #212529;
  border-radius: 20px;
  padding: 1rem;
  max-width: 425px;
  margin: 0 auto;
}
.bodygraph svg {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
  min-width: 200px;
  max-width: 425px;
}

.match-action-btn {
  width: auto;
  height: auto;
  padding: 2px 6px;
  background: transparent;
  border: 1px solid #d71c1c;
  color: #d71c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
}
.match-action-btn:hover {
  background: rgba(215, 28, 28, 0.1);
  border-color: #d71c1c;
  color: #d71c1c;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 9999px;
  border: none;
  opacity: 0.55;
  transition: opacity 0.2s ease, background 0.2s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  opacity: 0.8;
}
::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  opacity: 1;
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

.scrollbar-compact {
  scrollbar-width: thin;
}
.scrollbar-compact::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.scrollbar-wide {
  scrollbar-width: auto;
}
.scrollbar-wide::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.scrollbar-elevated::-webkit-scrollbar-thumb {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.scrollbar-elevated::-webkit-scrollbar-thumb:hover {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.scrollbar-minimal::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.scrollbar-minimal::-webkit-scrollbar-thumb {
  opacity: 0;
}
.scrollbar-minimal:hover::-webkit-scrollbar-thumb {
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  ::-webkit-scrollbar-thumb {
    transition: none;
  }
}
@media (min-width: 992px) {
  .dashboard-glass-bg .container {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .astro-profile-grid {
    grid-template-columns: 2fr 1fr;
  }
  .conversation-container {
    width: 35%;
  }
  .home .container, .home-container.container, #home_wrapper {
    min-height: 100% !important;
    display: flex;
    flex-direction: column;
  }
}
@media (max-width: 991.98px) {
  .astro-profile-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  .profile-dashboard-card {
    min-height: 260px;
    border-radius: 1.1rem;
  }
  .dashboard-glass-bg .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .zd-planets-row, .zd-houses-row {
    gap: 0.5rem;
  }
  .zd-planet-box, .zd-house-box {
    min-width: 80px;
    font-size: calc(1rem * 0.97);
  }
  .zd-planet-detail, .zd-house-detail {
    font-size: calc(1rem * 0.92);
  }
  .my-kin-row, .my-guide-row, .my-antipode-row, .my-tribe-row {
    gap: 0.5rem;
  }
  .my-kin-box, .my-guide-box, .my-antipode-box, .my-tribe-box {
    min-width: 70px;
    max-width: 100px;
    font-size: calc(1rem * 0.97);
  }
  .my-kin-box .fw-bold, .my-guide-box .fw-bold, .my-antipode-box .fw-bold, .my-tribe-box .fw-bold {
    font-size: calc(1rem * 1.02);
  }
  .cn-pillars-row, .cn-stats-row, .cn-elements-row, .cn-yy-row {
    flex-direction: row;
    gap: 0.5rem;
  }
  .cn-pillar-group, .cn-stat-box, .cn-element-box, .cn-yy-box {
    min-width: 70px;
    max-width: 100px;
    font-size: calc(1rem * 0.97);
  }
  .cn-stat-box .fw-bold, .cn-element-box .fw-bold, .cn-yy-box .fw-bold {
    font-size: calc(1rem * 1.02);
  }
  .hd-design-row, .hd-personality-row {
    gap: 0.5rem;
  }
  .hd-design-box, .hd-personality-box {
    min-width: 80px;
    max-width: 120px;
    font-size: calc(1rem * 0.97);
  }
  .hd-design-box .fw-bold, .hd-personality-box .fw-bold {
    font-size: calc(1rem * 1.02);
  }
  .hd-design-detail, .hd-personality-detail {
    font-size: calc(1rem * 0.92);
  }
  #hdkit-iframe {
    max-width: 500px;
    height: 500px;
  }
  #welcome h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 767.98px) {
  .sidebar {
    top: 5rem;
  }
  .astro-profile-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  .astro-card-cn, .astro-card-zd, .astro-card-hd, .astro-card-my {
    width: 100%;
    max-width: 100%;
  }
  .profile-dashboard-card {
    min-height: 180px;
    border-radius: 0.85rem;
  }
  .profile-dashboard-card .profile-card-title {
    font-size: 1.05rem;
  }
  .profile-dashboard-card .profile-card-body {
    padding: 0.75rem 1rem 1rem 1rem;
  }
  .profile-dashboard-card.card {
    min-height: 220px;
    border-radius: 1rem;
  }
  .profile-dashboard-card .card-header {
    font-size: 1rem;
    padding: 0.75rem 1rem;
  }
  .profile-dashboard-card .card-body {
    padding: 1rem;
  }
  .dashboard-glass-bg .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .zd-flow-layout {
    gap: 0.75rem;
  }
  .zd-planets-row, .zd-houses-row {
    gap: 0.25rem;
  }
  .zd-planet-box, .zd-house-box {
    min-width: 54px;
    max-width: 80px;
    font-size: calc(1rem * 0.88);
    padding: 0.35rem 0.15rem;
  }
  .zd-planet-detail, .zd-house-detail {
    font-size: calc(1rem * 0.82);
  }
  .my-flow-layout {
    gap: 0.75rem;
  }
  .my-kin-row, .my-guide-row, .my-antipode-row, .my-tribe-row {
    gap: 0.25rem;
  }
  .my-kin-box, .my-guide-box, .my-antipode-box, .my-tribe-box {
    min-width: 54px;
    max-width: 80px;
    font-size: calc(1rem * 0.88);
    padding: 0.35rem 0.15rem;
  }
  .my-kin-box .fw-bold, .my-guide-box .fw-bold, .my-antipode-box .fw-bold, .my-tribe-box .fw-bold {
    font-size: calc(1rem * 0.95);
  }
  .my-section-card {
    flex: 1 1 100%;
  }
  .cn-flow-layout {
    gap: 0.75rem;
  }
  .cn-pillars-row, .cn-stats-row, .cn-elements-row, .cn-yy-row {
    flex-direction: row;
    gap: 0.25rem;
  }
  .cn-pillar-group, .cn-stat-box, .cn-element-box, .cn-yy-box {
    min-width: 54px;
    max-width: 80px;
    font-size: calc(1rem * 0.88);
    padding: 0.35rem 0.15rem;
  }
  .cn-stat-box .fw-bold, .cn-element-box .fw-bold, .cn-yy-box .fw-bold {
    font-size: calc(1rem * 0.95);
  }
  .cn-pillar-img {
    width: 28px;
    height: 28px;
  }
  .hd-flow-layout {
    gap: 0.75rem;
  }
  .hd-design-row, .hd-personality-row {
    gap: 0.25rem;
  }
  .hd-design-box, .hd-personality-box {
    min-width: 54px;
    max-width: 80px;
    font-size: calc(1rem * 0.93);
    padding: 0.35rem 0.15rem;
  }
  .hd-design-box .fw-bold, .hd-personality-box .fw-bold {
    font-size: calc(1rem * 0.95);
  }
  .hd-design-detail, .hd-personality-detail {
    font-size: calc(1rem * 0.85);
  }
  .hd-bodygraph-box {
    padding: 0.35rem 0.15rem 0.55rem 0.15rem;
  }
  #hdkit-iframe {
    max-width: 100%;
    height: 400px;
  }
  .font-xs-responsive {
    font-size: calc(1rem * 0.72) !important;
  }
  .settings-submit {
    margin-bottom: 3.5rem;
    padding-bottom: 0.5rem;
  }
  #btnsubmit {
    display: inline-block;
    width: 90%;
  }
  #hdkit-iframe {
    height: 350px;
  }
}
.conversations-page {
  min-height: 100vh;
  padding: 2rem 0;
}

.conversations-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--bs-heading-color);
}

.conversations-list {
  gap: 1rem;
  display: flex;
  flex-direction: column;
  max-width: fit-content;
}
.conversations-list .list-group-item {
  background: var(--bs-card-bg);
  border: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.125));
  border-radius: 0.5rem;
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}
.conversations-list .list-group-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

html[data-bs-theme=dark] .conversations-list .list-group-item {
  background: #212529;
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-bs-theme=dark] .conversations-list .list-group-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html[data-bs-theme=light] .conversations-list .list-group-item {
  background: var(--surface);
  border-color: var(--border);
}
html[data-bs-theme=light] .conversations-list .list-group-item:hover {
  box-shadow: 0 4px 12px rgba(43, 36, 48, 0.08);
}

@media (max-width: 767.98px) {
  .conversations-title {
    font-size: 1.5rem;
  }
  .conversations-list .list-group-item {
    padding: 0.5rem;
  }
}
.matches-page-wrap {
  margin-top: 40px;
}

.matches-empty-state {
  max-width: 480px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.matches-empty-art {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 0.5rem;
}

.matches-empty-orbit {
  position: absolute;
  inset: 0;
  border: 1.5px dashed var(--border-input);
  border-radius: 50%;
}

.matches-empty-orbit-2 {
  inset: 22px;
  border-color: var(--border);
}

.matches-empty-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 18px rgba(176, 53, 110, 0.22));
}

.matches-empty-spark {
  position: absolute;
  color: var(--brand-pink-soft);
  font-size: 14px;
}

.matches-empty-title {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.5rem;
  color: var(--ink);
}

.matches-empty-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.matches-empty-hint {
  font-size: 0.9rem;
  color: var(--muted-2);
  margin: 0.5rem 0 0;
}
.matches-empty-hint a {
  font-weight: 600;
  color: var(--accent);
}

.matches-referral-card {
  width: 100%;
  margin-top: 2rem;
  background: var(--brand-cosmic-gradient);
  border-radius: 22px;
  padding: 1.75rem 1.75rem 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(43, 16, 32, 0.28);
}

.matches-referral-spark {
  position: absolute;
  color: rgba(255, 255, 255, 0.35);
}

.matches-referral-title {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.matches-referral-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 1.25rem;
}

.matches-referral-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.matches-referral-btn {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.75rem 1.5rem;
}

.matches-referral-btn-rose {
  background: var(--brand-rose);
  color: var(--brand-dark);
  box-shadow: 0 8px 22px rgba(255, 95, 134, 0.34);
}
.matches-referral-btn-rose:hover {
  background: var(--brand-pink-soft);
}

.matches-referral-btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.matches-referral-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

#matches-next-btn,
#matches-prev-btn {
  background: var(--accent-tint);
  color: var(--accent);
  border-color: var(--accent-tint);
}
#matches-next-btn:hover:not(:disabled),
#matches-prev-btn:hover:not(:disabled) {
  background: var(--accent-tint);
  color: var(--accent);
}

/* Spec-028: stories row + photo-card grid */
.match-stories-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

.match-stories-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0.25rem 1rem;
  margin-bottom: 1rem;
}

.match-story {
  flex: 0 0 auto;
  width: 68px;
  text-align: center;
  cursor: pointer;
}

.match-story img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bs-accent, #d4145a);
  padding: 2px;
}

.match-story span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bs-body-color);
}

.match-tile {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #222;
}

.match-tile-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.match-tile-shadow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 40%);
}

.match-tile-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  z-index: 2;
}

.match-tile-score {
  /* Bottom-left of the photo, clearing .match-tile-bar (~55-62px tall,
     varies with its own clamp()'d text) so it never overlaps the name. */
  position: absolute;
  bottom: 4.2rem;
  left: 0.6rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Same responsive scale as .match-tile-btn, so the two read as one
     consistent sizing system across viewports. min- (not fixed) so
     "100%" still fits without clipping at the smallest sizes. */
  min-width: clamp(28px, 8vw, 38px);
  min-height: clamp(28px, 8vw, 38px);
  font-size: clamp(0.75rem, 3vw, 1rem);
  padding: 0.2rem;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.match-tile-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
}

.match-tile-name {
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.8rem, 3.2vw, 1rem);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-tile-age {
  font-weight: 400;
  opacity: 0.85;
  margin-left: 0.25rem;
  font-size: clamp(0.7rem, 2.6vw, 0.95rem);
}

.match-tile-actions {
  display: flex;
  gap: clamp(0.25rem, 1.5vw, 0.4rem);
  flex-shrink: 0;
}

.match-tile-btn {
  /* Scales with viewport instead of a fixed 38px — on narrow mobile cards
     (2-column grid) a fixed size ate too much of the bottom bar, squeezing
     the name/age text. Clamped so it never shrinks below legible/tappable
     or grows past the original desktop size. */
  width: clamp(28px, 8vw, 38px);
  height: clamp(28px, 8vw, 38px);
  font-size: clamp(0.75rem, 3vw, 1rem);
  border-radius: 50%;
  background: rgba(120, 120, 120, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.match-tile-btn:hover,
.match-tile-btn:focus {
  background: rgba(140, 140, 140, 0.55);
  color: #fff;
}

.match-tile-btn:active {
  transform: scale(0.92);
}

.match-tile-btn.is-liked {
  background: rgba(239, 68, 68, 0.65);
  border-color: rgba(239, 68, 68, 0.5);
}

.match-tile-btn.is-favorited {
  background: rgba(245, 158, 11, 0.65);
  border-color: rgba(245, 158, 11, 0.5);
}

.match-tile-replied-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28a745;
  border: 2px solid rgba(0, 0, 0, 0.4);
}

/* Profile popup — sized to match .public-profile-card (public_profile.php)
   instead of a generic fixed box: full viewport below lg (modal-fullscreen-lg-down
   handles that), card-shaped at lg+ where .public-profile-card itself is a fixed
   680px-tall card rather than full-height. */
#profileModalDialog .modal-content,
#profileModalDialog .modal-body {
  height: 100%;
}

#profileModalIframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

#profileModal {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 992px) {
  #profileModalDialog {
    width: 480px;
    max-width: 480px;
    height: 680px;
    min-height: 0;
  }
  #profileModalIframe {
    border-radius: 20px;
  }
}
.matchCard {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

.matchCard:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(77, 166, 255, 0.2);
  border-color: #4da6ff;
}

.match-bodygraph-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bs-border-color);
  transition: background 0.3s;
}

html[data-bs-theme=light] .match-bodygraph-container:hover {
  background: rgba(0, 0, 0, 0.05);
}

html[data-bs-theme=dark] .match-bodygraph-container:hover {
  background: rgba(255, 255, 255, 0.05);
}

.match-bodygraph-iframe {
  filter: brightness(0.9);
}

#matches-grid .card-body {
  backdrop-filter: blur(5px);
}

/* Full-screen modal styles */
.bodygraph-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.bodygraph-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 50px rgba(77, 166, 255, 0.3);
}

.bodygraph-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #4da6ff;
  color: #4da6ff;
  font-size: 32px;
  cursor: pointer;
  padding: 5px 15px;
  z-index: 10001;
  border-radius: 4px;
  transition: all 0.3s;
}

.bodygraph-modal-close:hover {
  background: #4da6ff;
  color: #000;
}

.bodygraph-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Desktop screens - constrain height and let width scale */
@media (min-width: 1200px) {
  .bodygraph-modal-content {
    height: 90vh;
    width: auto;
    aspect-ratio: 1;
    max-width: 90vw;
  }
}
/* Tablet screens */
@media (min-width: 768px) and (max-width: 1199px) {
  .bodygraph-modal-content {
    height: 85vh;
    width: auto;
    aspect-ratio: 1;
    max-width: 85vw;
  }
}
/* Responsive adjustments for small screens */
@media (max-width: 767px) {
  .bodygraph-modal {
    padding: 10px;
  }
  .bodygraph-modal-close {
    top: 10px;
    right: 10px;
    font-size: 24px;
    padding: 3px 10px;
  }
}
@media (max-width: 480px) {
  .bodygraph-modal-close {
    font-size: 20px;
    padding: 2px 8px;
  }
}
.pp-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.pp-wrap--embed {
  max-width: none;
  padding: 0.75rem;
}

.pp-grid {
  margin-top: 80px;
}

.pp-preview-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--brand-rose-tint);
  color: var(--brand-rose-strong);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.pp-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .pp-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ── Photo card ── */
.pp-photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  height: 480px;
  background: linear-gradient(160deg, #f0d9e2, #e2d6f0);
  box-shadow: 0 16px 40px rgba(20, 10, 20, 0.16);
}

.pp-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.pp-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.6) 0%, rgba(11, 11, 15, 0) 42%);
}

.pp-top-bar {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
}

.pp-score {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.pp-score-pct {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--brand-ink);
}

.pp-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.pp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 11, 15, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.pp-chip i {
  color: var(--brand-gold);
  font-size: 0.85em;
}

.pp-meta {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.1rem;
  z-index: 2;
}

.pp-name {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pp-age {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: rgba(255, 255, 255, 0.85);
  margin-left: 0.35rem;
}

.pp-btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.pp-btn-icon:hover {
  background: rgba(30, 30, 30, 0.6);
}

.pp-btn-icon:active {
  transform: scale(0.94);
}

/* ── Thumbnail strip ── */
.pp-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.pp-thumb {
  flex: 1;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  background: none;
}
.pp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pp-thumb.is-active {
  border-color: var(--brand-rose-strong);
}

/* ── Actions row ── */
.pp-actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.pp-act {
  flex: 1;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pp-act:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.pp-act-like.is-active {
  background: var(--brand-rose-tint);
  border-color: var(--brand-rose-strong);
  color: var(--brand-rose-strong);
}

.pp-act-save.is-active {
  background: rgba(244, 192, 32, 0.16);
  border-color: var(--brand-gold);
  color: #a5720a;
}

.pp-act-msg {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--canvas);
}
.pp-act-msg:hover {
  background: var(--muted);
  color: var(--canvas);
}

.pp-act-edit {
  background: var(--accent-solid);
  border-color: var(--accent-solid);
  color: #fff;
}
.pp-act-edit:hover {
  background: var(--accent-solid-hover);
  border-color: var(--accent-solid-hover);
  color: #fff;
}

/* ── Right column panels ── */
.pp-right {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pp-extra {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pp-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
}

.pp-panel h2 {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}
.pp-panel h2 i {
  color: var(--brand-rose-strong);
  font-size: 0.95em;
}

.pp-about {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.pp-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.pp-fact-k {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.pp-fact-v {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 500;
}

.pp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pp-tag {
  background: var(--brand-rose-tint);
  color: var(--brand-rose-strong);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

/* ── Mobile: basic info only (spec 039) — .pp-extra is also toggled by the
   Bootstrap d-none/d-md-block utility classes in the view; this only
   reclaims the photo card's height once the two-column grid collapses. ── */
@media (max-width: 767.98px) {
  .pp-photo-card {
    height: 380px;
  }
}
/* ── Embed mode (matches-modal iframe) — compact, no thumbnails/right column ── */
.pp-wrap--embed .pp-grid {
  grid-template-columns: 1fr;
}

.pp-wrap--embed .pp-photo-card {
  height: 70svh;
  max-height: 640px;
}

.faq-page {
  background: var(--l-paper);
}

.faq-page .landing-nav {
  background: var(--brand-cosmic-gradient);
}

.faq-head {
  text-align: center;
  padding: 64px 24px 40px;
}
.faq-head h1 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.03em;
  color: var(--l-ink);
  margin: 0 0 12px;
}
.faq-head p {
  font-size: 17px;
  color: var(--l-muted);
  margin: 0;
}

.faq-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.faq-page .accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-page .accordion-item {
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(43, 36, 48, 0.04);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-page .accordion-item:has(.accordion-button:not(.collapsed)) {
  border-color: #f3d7e2;
  box-shadow: 0 2px 10px rgba(216, 19, 79, 0.12);
}

.faq-page .accordion-button {
  background: transparent;
  color: var(--l-ink);
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 17px;
  padding: 20px 24px;
  box-shadow: none;
}
.faq-page .accordion-button:focus {
  box-shadow: none;
}
.faq-page .accordion-button::after {
  width: 34px;
  height: 34px;
  background-color: var(--brand-rose-tint);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23d8134f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 17px 17px;
  border-radius: 50%;
  transition: transform 0.25s, background-color 0.2s;
}
.faq-page .accordion-button:not(.collapsed) {
  color: var(--l-ink);
}
.faq-page .accordion-button:not(.collapsed)::after {
  background-color: var(--brand-rose-strong);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.faq-page .accordion-body {
  background: transparent;
  color: var(--l-muted);
  font-size: 15px;
  line-height: 1.65;
  padding: 0 24px 22px;
}

.faq-help {
  margin: 20px 0 0;
  background: radial-gradient(120% 200% at 50% 0%, var(--l-plum) 0%, var(--l-dark) 80%);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
}
.faq-help h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 24px;
  color: #fff;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.faq-help p {
  font-size: 15px;
  color: var(--l-dim);
  margin: 0 0 22px;
}

@media (max-width: 576px) {
  .faq-head {
    padding: 44px 20px 28px;
  }
  .faq-head h1 {
    font-size: 32px;
  }
  .faq-page .accordion-button {
    padding: 16px 18px;
    font-size: 16px;
  }
  .faq-help {
    padding: 28px 22px;
  }
}
.about-page {
  background: var(--l-paper);
}

.about-page .landing-nav .landing-wordmark {
  color: #230432;
}

.about-hero {
  background: var(--brand-cosmic-gradient);
  padding: 72px 24px 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero .landing-spark {
  top: 70px;
  left: 16%;
}

.about-hero .landing-spark-2 {
  bottom: 80px;
  left: auto;
  right: 20%;
}

.about-hero .landing-h1 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.about-hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--l-dim);
  margin: 0 auto;
  max-width: 520px;
}

.about-mission {
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 22px;
  padding: 44px 48px;
  margin: -56px auto 0;
  max-width: 912px;
  box-shadow: 0 20px 50px rgba(43, 36, 48, 0.1);
  position: relative;
}
.about-mission h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--l-ink);
  margin: 0 0 14px;
}
.about-mission p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--l-muted);
  margin: 0 0 14px;
}
.about-mission p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 912px;
  margin: 40px auto;
  padding: 0 24px;
}

.about-stat {
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(43, 36, 48, 0.04);
}
.about-stat .num {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--l-rose-strong);
}
.about-stat .lbl {
  font-size: 14px;
  color: var(--l-muted);
  margin-top: 4px;
}

.about-section-sub {
  text-align: center;
  color: var(--l-muted);
  font-size: 16px;
  margin: 0 0 34px;
}

.about-page .landing-why-title {
  margin-bottom: 8px;
}

.about-team-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.about-team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto 64px;
}

.about-member {
  text-align: center;
}
.about-member .avatar {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0d9e2, #e2d6f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b7a6b0;
  font-size: 12px;
  margin-bottom: 12px;
}
.about-member .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-member .nm {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--l-ink);
}
.about-member .role {
  font-size: 13px;
  color: var(--l-muted);
  margin-top: 2px;
}

@media (max-width: 760px) {
  .about-stats,
  .about-team {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-mission {
    padding: 32px 26px;
  }
}
@media (max-width: 576px) {
  .about-hero {
    padding: 48px 20px 80px;
  }
  .about-hero .landing-h1 {
    font-size: 34px;
  }
}
.site-footer-public {
  background: var(--brand-paper);
  color: var(--brand-ink);
  font-family: var(--brand-sans);
  margin-top: auto;
  width: 100%;
}

.sfp-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 40px;
  border-top: 1px solid #ece6ea;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.sfp-brand-col {
  display: flex;
  flex-direction: column;
}

.sfp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: auto;
  text-decoration: none;
}

.sfp-wordmark {
  display: inline-block;
}

.sfp-app-teaser {
  margin-top: 32px;
  background: radial-gradient(130% 170% at 20% 0%, var(--brand-plum) 0%, var(--brand-dark) 90%);
  border-radius: 20px;
  padding: 18px 20px;
  max-width: 340px;
  box-shadow: 0 14px 34px rgba(43, 16, 32, 0.24);
  color: #fff;
}
.sfp-app-teaser .sfp-app-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-gold);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.sfp-app-teaser p {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  margin: 0;
}

.sfp-col h4 {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a8f96;
  margin: 0 0 18px;
}
.sfp-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sfp-col a {
  font-size: 15px;
  font-weight: 500;
  color: var(--brand-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.sfp-col a:hover {
  color: var(--brand-rose-strong);
}

.sfp-bottom {
  max-width: 1200px;
  margin: 26px auto 0;
  padding: 22px 40px 0;
  border-top: 1px solid #ece6ea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sfp-socials {
  display: flex;
  gap: 20px;
}
.sfp-socials a {
  width: 22px;
  height: 22px;
  color: var(--brand-muted);
  transition: color 0.15s;
}
.sfp-socials a:hover {
  color: var(--brand-rose-strong);
}
.sfp-socials svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.sfp-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.sfp-copyright {
  font-size: 13px;
  color: #9a8f96;
}

.sfp-right .language-selector .btn {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ece6ea;
  border-radius: 999px;
  padding: 9px 16px;
  background: #fff;
  color: var(--brand-muted);
  font-size: 14px;
  font-weight: 500;
}
.sfp-right .language-selector .btn:hover {
  background: var(--brand-rose-tint);
  color: var(--brand-rose-strong);
}

@media (max-width: 860px) {
  .sfp-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  .sfp-brand-col {
    grid-column: 1/-1;
  }
  .sfp-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
#compatibility-check-page ~ #site-footer {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.compat-announce {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 24px;
  background: #1a0c17;
  color: var(--brand-paper);
  font-size: 14.5px;
  text-align: center;
  flex-wrap: wrap;
}
.compat-announce .compat-announce-brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.compat-announce .compat-announce-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.compat-announce .compat-announce-cta a {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 14px;
  background: var(--brand-rose-strong);
  color: #fff;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
.compat-announce .compat-announce-cta a:hover, .compat-announce .compat-announce-cta a:focus-visible {
  background: var(--brand-rose);
  color: #fff;
}

.compat-hero-band {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--brand-paper);
  padding: 8px 24px 0;
}

.compat-hero {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 0 40px;
}

.compat-hero-wordmark {
  margin-bottom: 14px;
}
.compat-hero-wordmark .compat-hero-lockup {
  font-size: clamp(64px, 13vw, 132px) !important;
}

.compat-pill {
  display: inline-block;
  color: var(--brand-rose-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.compat-hero h1 {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  margin: 0 0 12px;
}

.compat-hero .accent {
  color: var(--brand-rose-strong);
}

.compat-hero p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--brand-muted);
  max-width: 480px;
  margin: 0 auto;
}

.compat-split {
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  position: relative;
  overflow-x: hidden;
  padding: 48px 24px 118px;
  background: radial-gradient(120% 120% at 78% 30%, #431d38 0%, #2a1223 52%, var(--brand-dark) 100%);
}

.compat-split::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-paper);
  clip-path: polygon(0 0, 56% 0, 42% 100%, 0 100%);
  z-index: 0;
}

.compat-spark {
  position: absolute;
  z-index: 1;
  color: #8a6ff0;
  pointer-events: none;
  animation: compat-spark-twinkle 3s ease-in-out infinite;
}

.compat-spark-1 {
  top: 90px;
  right: 15%;
  font-size: 16px;
  animation-delay: 0s;
}

.compat-spark-2 {
  top: 230px;
  right: 8%;
  font-size: 11px;
  animation-delay: 1s;
}

.compat-spark-3 {
  bottom: 140px;
  right: 20%;
  font-size: 13px;
  animation-delay: 2s;
}

@keyframes compat-spark-twinkle {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@media (max-width: 900px) {
  .compat-spark {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .compat-spark,
  .compat-seam-mark,
  .compat-announce,
  .compat-hero-wordmark,
  .compat-pill,
  .compat-hero h1,
  .compat-hero p,
  .compat-card-a,
  .compat-card-b,
  .compat-seam,
  .compat-submit {
    animation: none;
  }
}
.compat-split-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
}

#compat-error-alert {
  max-width: 1040px;
  margin: 0 auto 20px;
}

.compat-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr);
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto;
}

.compat-card {
  position: relative;
  z-index: 2;
  padding: 32px;
}

.compat-card-a {
  background: #fff;
  border-radius: 22px 4px 4px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  color: var(--brand-ink);
}

.compat-card-b {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(11, 5, 10, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px 22px 22px 4px;
  color: #fff;
}

.compat-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.compat-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compat-card-a .compat-badge {
  background: var(--brand-rose-tint);
  color: var(--brand-rose-strong);
}

.compat-card-b .compat-badge {
  background: rgba(255, 95, 134, 0.22);
  color: var(--brand-pink-soft);
}

.compat-card-title {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.compat-seam {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compat-seam::before {
  content: "";
  position: absolute;
  inset: -60px -140px;
  background: radial-gradient(circle at 50% 45%, rgba(255, 95, 134, 0.35), transparent 68%);
  pointer-events: none;
}

.compat-seam-mark {
  position: relative;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
  animation: compat-seam-drift 6s ease-in-out infinite;
}

@keyframes compat-seam-drift {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes compat-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes compat-fly-in-left {
  from {
    opacity: 0;
    transform: translateX(-120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes compat-fly-in-right {
  from {
    opacity: 0;
    transform: translateX(120%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.compat-announce {
  animation: compat-fade-up 0.5s ease-out both;
}

.compat-hero-wordmark {
  animation: compat-fade-up 0.6s ease-out 0.05s both;
}

.compat-pill {
  animation: compat-fade-up 0.6s ease-out 0.15s both;
}

.compat-hero h1 {
  animation: compat-fade-up 0.6s ease-out 0.25s both;
}

.compat-hero p {
  animation: compat-fade-up 0.6s ease-out 0.35s both;
}

.compat-card-a {
  animation: compat-fly-in-left 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.compat-card-b {
  animation: compat-fly-in-right 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.compat-seam {
  animation: compat-fade-up 0.6s ease-out 1.15s both;
}

.compat-submit {
  animation: compat-fade-up 0.6s ease-out 1.3s both;
}

.compat-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.compat-pair .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.compat-pair .field .form-label {
  margin-bottom: 0;
}

.compat-card .form-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compat-card-a .form-label {
  color: var(--brand-muted);
}

.compat-card-b .form-label {
  color: rgba(255, 255, 255, 0.62);
}

.compat-card-a .form-control,
.compat-card-a .form-select,
.compat-card-a .form-control:focus,
.compat-card-a .form-select:focus {
  border: 1px solid #e2dae0;
  background: #fdfcfb !important;
  color: var(--brand-ink) !important;
}

.compat-card-b .form-control,
.compat-card-b .form-select,
.compat-card-b .form-control:focus,
.compat-card-b .form-select:focus {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(11, 11, 15, 0.34) !important;
  color: #fff !important;
}
.compat-card-b .form-control::placeholder,
.compat-card-b .form-select::placeholder,
.compat-card-b .form-control:focus::placeholder,
.compat-card-b .form-select:focus::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.compat-card-b .form-select option {
  color: var(--brand-ink);
}

.compat-card .form-control:focus,
.compat-card .form-select:focus {
  border-color: var(--brand-rose-strong);
  box-shadow: 0 0 0 3px rgba(216, 19, 79, 0.16);
}

.compat-card-a .form-check-label {
  color: var(--brand-muted);
}

.compat-card-b .form-check-label {
  color: rgba(255, 255, 255, 0.62);
}

.compat-card .form-check-input:checked {
  background-color: var(--brand-rose-strong);
  border-color: var(--brand-rose-strong);
}

.compat-suggestions {
  top: 100%;
}

.compat-suggestions:empty {
  display: none;
}

.compat-card-a .compat-suggestions {
  background: #fdfcfb;
  border: 1px solid #e2dae0;
}

.compat-card-a .compat-suggestions .list-group-item {
  background: transparent;
  color: var(--brand-ink);
  border-color: #e2dae0;
}

.compat-card-a .compat-suggestions .list-group-item-action:hover {
  background: rgba(11, 11, 15, 0.04);
}

.compat-card-b .compat-suggestions {
  background: var(--brand-deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.compat-card-b .compat-suggestions .list-group-item {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.compat-card-b .compat-suggestions .list-group-item-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.compat-submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.compat-submit .btn {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--brand-rose-strong);
  border: none;
  padding: 15px 46px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(216, 19, 79, 0.4);
}
.compat-submit .btn:hover, .compat-submit .btn:focus-visible {
  background: var(--brand-rose);
  color: #fff;
}

#compat-results-zone {
  max-width: 1180px;
  margin: -72px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.compat-results-card {
  background: #fff;
  color: var(--brand-ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.4);
  max-width: 1040px;
  margin: 0 auto;
}

.compat-verdict {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 34px 36px;
  border-bottom: 1px solid #f2ecef;
  flex-wrap: wrap;
  background: linear-gradient(180deg, #fffdfe 0%, #fff 100%);
}

.compat-dial {
  position: relative;
  flex-shrink: 0;
  width: 140px;
  height: 140px;
}
.compat-dial svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.compat-dial .compat-dial-track {
  fill: none;
  stroke: #f4eaef;
  stroke-width: 11;
}
.compat-dial .compat-dial-arc {
  fill: none;
  stroke: var(--brand-rose-strong);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: var(--compat-dial-circumference);
  stroke-dashoffset: var(--compat-dial-circumference);
  animation: compat-dial-fill 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes compat-dial-fill {
  from {
    stroke-dashoffset: var(--compat-dial-circumference);
  }
  to {
    stroke-dashoffset: var(--compat-dial-offset);
  }
}
.compat-dial-mid {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.compat-dial-num {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.03em;
}

.compat-dial-cap {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.compat-verdict-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.compat-verdict-copy h2 {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
  max-width: 520px;
}
.compat-verdict-copy p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--brand-muted);
  max-width: 520px;
}

.compat-pair-label {
  font-family: var(--brand-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-rose-strong);
}

.compat-fate-rows {
  display: flex;
  flex-direction: column;
}

.compat-fate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 90px;
  gap: 20px;
  align-items: center;
  padding: 18px 36px;
  border-bottom: 1px solid #f6f1f4;
}
.compat-fate-row:last-child {
  border-bottom: none;
}

.compat-fate-name {
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.compat-fate-desc {
  font-size: 13.5px;
  color: var(--brand-muted);
}

.compat-fate-bar {
  height: 8px;
  border-radius: 999px;
  background: #f4eaef;
  overflow: hidden;
}

.compat-fate-bar i {
  display: block;
  height: 100%;
  width: var(--compat-bar-final, 0%);
  border-radius: 999px;
  background: var(--brand-rose-strong);
  animation: compat-bar-fill 1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes compat-bar-fill {
  from {
    width: 0%;
  }
  to {
    width: var(--compat-bar-final, 0%);
  }
}
.compat-fate-val {
  text-align: right;
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.compat-fate-locked {
  grid-template-columns: minmax(0, 1fr) auto;
}

.compat-tag-soon {
  display: inline-block;
  font-family: var(--brand-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-muted);
  background: #f4f0f2;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: end;
}

.compat-link-unlock {
  font-family: var(--brand-sans);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-rose-strong);
  text-decoration: underline;
  white-space: nowrap;
  justify-self: end;
}

.compat-upsell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  flex-wrap: wrap;
  background: radial-gradient(120% 160% at 82% 20%, #431d38 0%, #2a1223 60%, var(--brand-dark) 100%);
}

.compat-upsell-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.compat-upsell-copy strong {
  font-family: var(--brand-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: #fff;
}
.compat-upsell-copy span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.compat-upsell a {
  flex-shrink: 0;
  font-family: var(--brand-display);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--brand-rose-strong);
  padding: 13px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(216, 19, 79, 0.4);
}
.compat-upsell a:hover, .compat-upsell a:focus-visible {
  background: var(--brand-rose);
  color: #fff;
}

@media (max-width: 900px) {
  .compat-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .compat-card-a {
    border-radius: 22px 22px 4px 4px;
  }
  .compat-card-b {
    border-radius: 4px 4px 22px 22px;
  }
  .compat-seam {
    height: 64px;
  }
  .compat-seam-mark svg {
    width: 48px !important;
  }
  .compat-split::before {
    clip-path: polygon(0 0, 100% 0, 100% 38%, 0 46%);
  }
  .compat-fate-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 16px;
    padding: 16px 22px;
  }
  .compat-fate-bar {
    grid-column: 1/-1;
    order: 3;
  }
}
@media (max-width: 600px) {
  .compat-verdict {
    padding: 26px 22px;
    gap: 20px;
  }
  .compat-upsell {
    padding: 22px;
  }
}
.features-page {
  background: var(--l-paper);
}

.features-page .landing-nav .landing-wordmark {
  color: #230432;
}

.features-shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
}

.features-hero {
  text-align: center;
  padding: 64px 24px 40px;
}
.features-hero .landing-pill {
  margin-bottom: 16px;
}

.features-hero h1 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--l-ink);
  max-width: 760px;
  margin: 0 auto 16px;
}
.features-hero h1 .accent {
  color: var(--l-rose-strong);
}

.features-hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--l-muted);
  max-width: 560px;
  margin: 0 auto;
}

.features-engine {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(43, 36, 48, 0.09);
  margin-top: 24px;
}

.features-engine-copy {
  padding: 38px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.features-engine-copy h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 31px;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--l-ink);
  max-width: 460px;
  margin: 0;
}
.features-engine-copy p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--l-muted);
  max-width: 470px;
  margin: 0;
}

.features-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--l-dimmer);
}

.features-engine-panel {
  position: relative;
  padding: 34px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 130% at 78% 24%, var(--l-plum) 0%, var(--l-deep) 56%, var(--l-dark) 100%);
}

.features-spark {
  position: absolute;
  color: #8a6ff0;
}
.features-spark.features-spark-1 {
  top: 30px;
  right: 44px;
  font-size: 13px;
}
.features-spark.features-spark-2 {
  top: 58px;
  right: 78px;
  font-size: 10px;
}

.features-fates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 26px;
  margin-top: 4px;
}

.features-fate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.features-fate.is-weak .features-fate-row b {
  color: var(--l-muted);
}

.features-fate-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.features-fate-row span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--l-ink);
  white-space: nowrap;
}
.features-fate-row b {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--l-ink);
}

.features-bar {
  height: 6px;
  border-radius: 999px;
  background: #f4eaef;
  overflow: hidden;
}
.features-bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--l-rose-strong);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.features-fate.is-weak .features-bar > i,
.features-bar > i.is-weak {
  background: var(--l-pink-soft);
}

.features-phone {
  width: 236px;
  border-radius: 34px;
  background: #0d0b10;
  padding: 9px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.44);
}

.features-phone-screen {
  border-radius: 27px;
  overflow: hidden;
  background: #141117;
  display: flex;
  flex-direction: column;
}

.features-phone-photo {
  position: relative;
  height: 230px;
  background: linear-gradient(160deg, #3a2740, #241a26);
}

.features-phone-score {
  position: absolute;
  top: 11px;
  right: 11px;
  background: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--l-ink);
}

.features-phone-body {
  padding: 13px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.features-phone-name {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.features-phone-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--l-pink-soft);
  background: rgba(255, 95, 134, 0.16);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.features-phone-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: #c4b2c0;
}

.features-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto 20px;
}
.features-grid-head h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--l-ink);
  margin: 0;
}
.features-grid-head .aside {
  font-size: 14px;
  color: var(--l-muted);
}

.features-page .landing-why {
  background: var(--l-paper);
  padding: 44px 40px 20px;
}

.features-labels {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}

.features-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--l-rose-strong);
}

.features-tag-premium {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a5a00;
  background: #fdf1d8;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.features-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 44px 0 8px;
}

.features-pane {
  border-radius: 20px;
  padding: 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.features-pane .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.features-pane h3 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.features-pane p {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.features-pane-dark {
  background: radial-gradient(120% 160% at 80% 18%, var(--l-plum) 0%, var(--l-deep) 60%, var(--l-dark) 100%);
}
.features-pane-dark h3 {
  color: #fff;
  max-width: 340px;
}
.features-pane-dark p {
  color: #c4b2c0;
  max-width: 380px;
}

.features-pane-light {
  background: #fff;
  border: 1px solid var(--l-line-2);
  gap: 16px;
}
.features-pane-light h3 {
  color: var(--l-ink);
}
.features-pane-light p {
  color: var(--l-muted);
}

.features-page .features-btn-ghost {
  background: var(--l-rose-tint);
  color: var(--l-rose-strong);
  box-shadow: inset 0 0 0 1px #efd0df;
  font-size: 15px;
  padding: 11px 24px;
}
.features-page .features-btn-ghost:hover, .features-page .features-btn-ghost:focus-visible {
  background: #f7e4ee;
  color: var(--l-rose-strong);
  box-shadow: inset 0 0 0 1px #e8c3d4;
}

.features-pane-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brand-gold);
}

.features-try-rows {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: auto;
}

.features-try-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.features-try-row .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--l-ink);
  width: 104px;
  flex-shrink: 0;
}
.features-try-row .features-bar {
  flex: 1;
}
.features-try-row .val {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 13.5px;
  width: 40px;
  text-align: right;
  color: var(--l-ink);
}

.features-page .landing-final-content h2 .accent {
  color: var(--l-rose);
}

.features-page .landing-final {
  min-height: 0;
  padding: 72px 40px 88px;
}

@media (max-width: 1060px) {
  .features-engine {
    grid-template-columns: minmax(0, 1fr);
  }
  .features-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 720px) {
  .features-shell {
    padding: 0 22px;
  }
  .features-hero {
    padding-top: 44px;
  }
  .features-hero h1 {
    font-size: 36px;
  }
  .features-hero-lede {
    font-size: 16.5px;
  }
  .features-engine-copy {
    padding: 28px 24px;
  }
  .features-engine-copy h2 {
    font-size: 26px;
  }
  .features-fates {
    grid-template-columns: minmax(0, 1fr);
  }
  .features-pane {
    padding: 26px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .features-bar > i {
    transition: none;
  }
}
/* ============================================================================
   Spec-047 — authenticated Home / Discover page
   Ported from specs/047-home-discover-page/design/unfate-home-discover.html
   (visual source of truth). The rose scale is scoped to .home-page so it does
   not touch the sidebar/chrome accent (--accent*). See plan.md D8.
   ========================================================================== */
.home-page {
  --rose: #d8134f;
  --rose-strong: #b0356e;
  --rose-tint: #fbeef4;
  --rose-line: #e8c3d4;
  --rose-soft: #f0a0ba;
  --amber-ink: #8a5a00;
  --amber-bg: #fdf1d8;
  --hp-ink: #0b0b0f;
  --hp-ink-2: #3f3846;
  --hp-muted: #6b6472;
  --hp-dim: #8a8290;
  --hp-faint: #a3919f;
  --hp-card: #fff;
  --hp-line: #f0e8ec;
  --hp-line-3: #e2dae0;
  --hp-track: #f4eaef;
  --hp-display: 'Inter Tight', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 8px 4px 40px;
}

:root[data-bs-theme=dark] .home-page {
  --hp-ink: #f3eef2;
  --hp-ink-2: #d9cfd8;
  --hp-muted: #b0a4b2;
  --hp-dim: #9a8ea0;
  --hp-faint: #8a7e90;
  --hp-card: #2c163a;
  --hp-line: rgba(255, 255, 255, .1);
  --hp-line-3: rgba(255, 255, 255, .16);
  --hp-track: rgba(255, 255, 255, .1);
}

.home-page h1 {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--hp-ink);
}

.home-page .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--hp-faint);
}

.home-page .section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-page .section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.home-page .section-note {
  font-size: 12.5px;
  color: var(--hp-faint);
}

/* page head + completion ring ------------------------------------- */
.home-page .page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.home-page .page-head-greeting {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.home-page .page-head .sub {
  font-size: 14.5px;
  color: var(--hp-dim);
}

.home-page .completion {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--hp-card);
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  padding: 12px 16px;
}

.home-page .ring {
  position: relative;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.home-page .ring svg {
  width: 38px;
  height: 38px;
  transform: rotate(-90deg);
}

.home-page .ring .track {
  fill: none;
  stroke: var(--hp-track);
  stroke-width: 5;
}

.home-page .ring .arc {
  fill: none;
  stroke: var(--rose);
  stroke-width: 5;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-page .ring b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 11.5px;
  color: var(--hp-ink);
}

.home-page .completion .copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.home-page .completion .copy span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hp-ink-2);
}

.home-page .completion .copy a {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
}

/* summary boxes ------------------------------------------------- */
.home-page .summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-page .box {
  background: var(--hp-card);
  border: 1px solid var(--hp-line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.home-page a.box:hover {
  border-color: var(--rose-line);
}

.home-page .box-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.home-page .box-head .go {
  font-size: 13px;
  font-weight: 700;
  color: var(--rose);
  white-space: nowrap;
}

.home-page .box .figure {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.home-page .box .figure b {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--hp-ink);
}

.home-page .box .figure span {
  font-size: 14px;
  color: var(--hp-muted);
}

.home-page .box .note {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--hp-muted);
}

.home-page .box .title-lg {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

.home-page .tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.home-page .tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--rose-strong);
  background: var(--rose-tint);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.home-page .stack {
  display: flex;
  align-items: center;
}

.home-page .stack .av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #efe7ec;
  border: 2px solid #fff;
  display: block;
}

.home-page .stack:not(.stack--revealed) .av {
  filter: blur(3px);
}

.home-page .stack .av + .av {
  margin-left: -10px;
}

.home-page .stack .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .stack .hint {
  font-size: 12.5px;
  color: var(--hp-faint);
  margin-left: 10px;
}

/* daily pick -------------------------------------------------- */
.home-page .daily {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  background: var(--hp-card);
  border: 1px solid var(--rose-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(43, 36, 48, 0.07);
}

.home-page .daily .photo {
  position: relative;
  min-height: 270px;
  background: #efe7ec;
}

.home-page .daily .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

.home-page .daily .body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.home-page .daily .id {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
}

.home-page .daily .id .name {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

.home-page .daily .id .place {
  font-size: 13px;
  color: var(--hp-dim);
}

.home-page .score-pill {
  font-family: var(--hp-display);
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: var(--rose);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.home-page .fates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 22px;
}

.home-page .fate {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.home-page .fate .row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.home-page .fate .row span {
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-ink-2);
  white-space: nowrap;
}

.home-page .fate .row b {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--hp-ink);
}

.home-page .fate.is-weak .row b {
  color: var(--hp-dim);
}

.home-page .bar {
  height: 6px;
  border-radius: 999px;
  background: var(--hp-track);
  overflow: hidden;
}

.home-page .bar > i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--rose);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-page .fate.is-weak .bar > i {
  background: var(--rose-soft);
}

.home-page .fate.is-locked .row {
  color: var(--hp-faint);
}

.home-page .daily .prompt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hp-muted);
}

.home-page .daily .actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.home-page .daily-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--hp-card);
  border: 1px dashed var(--hp-line-3);
  border-radius: 18px;
  padding: 32px 28px;
}

.home-page .daily-empty b {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--hp-ink);
}

.home-page .daily-empty span {
  font-size: 14.5px;
  color: var(--hp-dim);
  max-width: 420px;
}

/* buttons --------------------------------------------------- */
.home-page .btn {
  font-family: var(--hp-display);
  font-weight: 700;
  font-size: 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 11px 24px;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}

.home-page .btn-primary {
  color: #fff;
  background: var(--rose);
}

.home-page .btn-primary:hover {
  background: var(--rose-strong);
  color: #fff;
}

.home-page .btn-ghost {
  color: var(--rose-strong);
  background: var(--hp-card);
  border-color: var(--rose-line);
}

.home-page .btn-ghost:hover {
  background: var(--rose-tint);
}

.home-page .btn-sm {
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 9px;
}

.home-page .btn-quiet {
  font-weight: 400;
  font-size: 14px;
  color: var(--hp-dim);
  background: none;
  border: none;
  padding: 11px 8px;
  cursor: pointer;
}

.home-page .load-more {
  align-self: center;
  margin-top: 6px;
}

/* filter chips --------------------------------------------- */
.home-page .chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.home-page .chip {
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--hp-line-3);
  background: var(--hp-card);
  color: var(--hp-ink-2);
  padding: 8px 15px;
  border-radius: 999px;
  cursor: pointer;
}

.home-page .chip:hover {
  border-color: var(--rose-line);
}

.home-page .chip[aria-pressed=true] {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* discover grid ------------------------------------------- */
.home-page .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(206px, 1fr));
  gap: 18px;
}

.home-page .pcard {
  background: var(--hp-card);
  border: 1px solid var(--hp-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(43, 36, 48, 0.05);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-page .pcard:hover {
  border-color: var(--rose-line);
  box-shadow: 0 10px 26px rgba(43, 36, 48, 0.1);
}

.home-page .pcard .photo {
  position: relative;
  height: 214px;
  background: #efe7ec;
}

.home-page .pcard .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-page .badge-new {
  position: absolute;
  right: 10px;
  top: 10px;
  background: var(--rose);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.home-page .badge-online {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(11, 11, 15, 0.62);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
}

.home-page .badge-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5ce09b;
}

.home-page .pcard .body {
  padding: 14px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-page .pcard .name {
  font-family: var(--hp-display);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .pcard .meta {
  font-size: 13px;
  color: var(--hp-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .pcard .tag {
  align-self: flex-start;
}

.home-page .pcard .actions {
  display: flex;
  gap: 8px;
}

.home-page .pcard .actions .btn {
  flex: 1;
  text-align: center;
}

.home-page .icon-btn {
  width: 38px;
  font-size: 14px;
  color: var(--rose-strong);
  background: var(--hp-card);
  border: 1px solid var(--rose-line);
  border-radius: 9px;
  cursor: pointer;
}

.home-page .icon-btn:hover {
  background: var(--rose-tint);
}

.home-page .icon-btn.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.home-page .discover-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 52px 24px;
  background: var(--hp-card);
  border: 1px dashed var(--hp-line-3);
  border-radius: 18px;
  text-align: center;
}

.home-page .discover-empty b {
  font-family: var(--hp-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--hp-ink);
}

.home-page .discover-empty span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--hp-dim);
  max-width: 360px;
}

/* feature-in-progress marker ------------------------------ */
.feature-in-progress {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--amber-ink, #8a5a00);
  background: var(--amber-bg, #fdf1d8);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.feature-in-progress--note {
  font-weight: 600;
}

/* accessibility ----------------------------------------- */
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page .chip:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .ring .arc,
  .home-page .bar > i {
    transition: none;
  }
}
@media (max-width: 1120px) {
  .home-page .summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-page .daily {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-page .daily .photo {
    height: 260px;
    min-height: 0;
  }
  .home-page .fates {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .home-page h1 {
    font-size: 26px;
  }
  .home-page .btn {
    padding: 11px 18px;
  }
}
.blog-page {
  background: var(--l-paper);
  --blog-content-width: 1040px;
  --blog-content-gutter: 24px;
}

.blog-content-inner {
  max-width: var(--blog-content-width);
  margin: 0 auto;
  padding: 0 var(--blog-content-gutter);
}

.blog-hero {
  text-align: center;
  padding: 40px 0 32px;
}
.blog-hero .landing-h1 {
  margin: 14px 0 10px;
  color: var(--l-ink);
}

.blog-hero-lede {
  max-width: 560px;
  margin: 0 auto;
  color: var(--l-muted);
  font-size: 16px;
  line-height: 1.6;
}

.blog-section-heading {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -0.025em;
  color: var(--l-ink);
  margin: 0 0 20px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--l-paper);
  border: 1px solid var(--l-line-2);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(30, 12, 26, 0.13);
  text-decoration: none;
}

.blog-card-media {
  height: 180px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.blog-card-media-placeholder {
  background: linear-gradient(150deg, var(--l-paper-2) 0%, var(--l-dim) 100%);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
}

.blog-card-title {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.28;
  color: var(--l-ink);
}

.blog-card-title-sm {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--l-ink);
}

.blog-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--l-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-date {
  font-size: 12.5px;
  color: var(--l-muted);
}

.blog-card-sm {
  flex-direction: row;
  align-items: stretch;
}
.blog-card-sm .blog-card-media {
  width: 40%;
  height: auto;
}
.blog-card-sm .blog-card-body {
  padding: 12px 16px;
  justify-content: center;
}

.blog-card--bleed {
  padding: 0;
  position: relative;
}
.blog-card--bleed .blog-card-media {
  height: 100%;
  border-radius: 0;
  min-height: 260px;
  position: relative;
}
.blog-card--bleed .blog-card-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(11, 11, 15, 0.85) 0%, rgba(11, 11, 15, 0.45) 45%, rgba(11, 11, 15, 0) 100%);
  pointer-events: none;
}

.blog-card--bleed-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 22px 20px;
}
.blog-card--bleed-overlay .blog-card-title {
  color: #fff;
  font-size: 22px;
}
.blog-card--bleed-overlay .blog-card-excerpt {
  color: rgba(255, 255, 255, 0.82);
}

.blog-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}
.blog-stack:last-child {
  margin-bottom: 48px;
}

.blog-stack--flip {
  direction: rtl;
}
.blog-stack--flip > * {
  direction: ltr;
}

.blog-cluster {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.blog-cluster--3 {
  grid-template-rows: repeat(3, 1fr);
}

.blog-cluster--2 {
  grid-template-rows: repeat(2, 1fr);
}

.blog-cluster--1 {
  grid-template-rows: 1fr;
}

@media (max-width: 860px) {
  .blog-stack {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-stack--flip {
    direction: ltr;
  }
}
.blog-pairs {
  margin-bottom: 20px;
}

.blog-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 20px;
}

.blog-pair--flip {
  direction: rtl;
}
.blog-pair--flip > * {
  direction: ltr;
}

.blog-pair--single {
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .blog-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-pair--flip {
    direction: ltr;
  }
}
.blog-grid-section {
  margin-bottom: 48px;
}

@media (max-width: 620px) {
  .blog-card-sm {
    flex-direction: column;
  }
  .blog-card-sm .blog-card-media {
    width: 100%;
    height: 140px;
  }
}
.blog-empty-state {
  text-align: center;
  color: var(--l-muted);
  padding: 48px 0;
}

.blog-pager {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.blog-newsletter {
  background: var(--l-paper-2);
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 48px;
}

.blog-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.blog-newsletter-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--l-rose-strong);
  margin-bottom: 6px;
}

.blog-newsletter-copy h3 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--l-ink);
}
.blog-newsletter-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--l-muted);
}

.blog-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.blog-newsletter-form input {
  font-family: var(--l-sans);
  font-size: 14px;
  color: var(--l-ink);
  background: var(--l-paper);
  border: 1px solid var(--l-line-2);
  border-radius: 10px;
  height: 44px;
  width: 220px;
  padding: 0 14px;
}
.blog-newsletter-form button {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: var(--l-rose-strong);
  border: none;
  border-radius: 10px;
  height: 44px;
  padding: 0 24px;
  cursor: pointer;
}

.blog-newsletter-thanks {
  margin: 0;
  font-weight: 600;
  color: var(--l-ink);
}

.blog-post-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 64px;
}

.blog-back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--l-muted);
  font-size: 14px;
  text-decoration: none;
}
.blog-back-link:hover {
  color: var(--l-rose-strong);
}

.blog-post-cover {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 34px;
}
.blog-post-cover img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

@media (max-width: 620px) {
  .blog-post-cover img {
    height: 240px;
  }
}
.blog-post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--l-muted);
  margin-bottom: 14px;
}

.blog-post-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--l-line-2);
}

.blog-post-title {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.032em;
  color: var(--l-ink);
  margin: 0 0 18px;
}

@media (max-width: 620px) {
  .blog-post-title {
    font-size: 32px;
  }
}
.blog-post-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--l-muted);
  margin: 0 0 26px;
}

.blog-post-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--l-line-2);
  border-bottom: 1px solid var(--l-line-2);
  margin-bottom: 32px;
}

.blog-post-byline-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-post-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--l-rose-strong), var(--l-plum));
  color: #fff;
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 14px;
}

.blog-post-byline-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-post-byline-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--l-ink);
}

.blog-post-byline-role {
  font-size: 13px;
  color: var(--l-muted);
}

.blog-post-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--l-ink);
}
.blog-post-body h2 {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.026em;
  margin: 1.7em 0 0.6em;
  scroll-margin-top: 96px;
}
.blog-post-body h3 {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.018em;
  margin: 1.4em 0 0.5em;
}
.blog-post-body p {
  margin: 0 0 1.2em;
}
.blog-post-body img {
  max-width: 100%;
  border-radius: 12px;
}
.blog-post-body a {
  color: var(--l-rose-strong);
}
.blog-post-body blockquote {
  margin: 1.4em 0;
  padding: 20px 24px;
  background: #fff;
  border-left: 3px solid var(--l-rose-strong);
  border-radius: 0 14px 14px 0;
}
.blog-post-body blockquote p:last-child {
  margin-bottom: 0;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 56px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--blog-content-gutter, 24px);
  align-items: start;
}
.blog-post-grid .blog-post-inner {
  margin: 0;
  max-width: none;
}

@media (max-width: 860px) {
  .blog-post-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.blog-post-sidebar {
  min-width: 0;
}

.blog-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-card {
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 18px;
  padding: 22px;
}

.blog-sidebar-kicker {
  display: block;
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-rose-strong);
}

.blog-sidebar-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.blog-sidebar-all-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--l-rose-strong);
  white-space: nowrap;
}

.blog-toc {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.blog-toc a {
  display: block;
  font-size: 14px;
  line-height: 1.4;
  color: var(--l-muted);
  text-decoration: none;
  padding: 7px 0 7px 13px;
  border-left: 2px solid var(--l-line-2);
}
.blog-toc a:hover, .blog-toc a:focus-visible {
  color: var(--l-rose-strong);
  border-left-color: var(--l-rose-strong);
}

.blog-sidebar-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blog-sidebar-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 11px;
  margin: -11px;
  border-radius: 13px;
  text-decoration: none;
  transition: background 0.16s ease;
}
.blog-sidebar-row:hover {
  background: var(--l-rose-tint);
  text-decoration: none;
}
.blog-sidebar-row:hover .blog-sidebar-row-title {
  color: var(--l-rose-strong);
}

.blog-sidebar-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 11px;
  background: radial-gradient(120% 140% at 70% 20%, var(--l-plum) 0%, var(--l-deep) 60%, var(--l-dark) 100%);
  background-size: cover;
  background-position: center;
}

.blog-sidebar-row-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.blog-sidebar-row-title {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--l-ink);
  transition: color 0.16s ease;
}

.blog-sidebar-row-meta {
  font-size: 12.5px;
  color: var(--l-muted);
}

.blog-sidebar-row--numbered {
  align-items: center;
}

.blog-sidebar-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--l-rose-tint);
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--l-rose-strong);
}

.blog-sidebar-feat {
  position: relative;
  display: block;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: radial-gradient(120% 140% at 30% 20%, var(--l-plum) 0%, var(--l-deep) 60%, var(--l-dark) 100%);
  background-size: cover;
  background-position: center;
  text-decoration: none;
}

.blog-sidebar-feat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(22, 10, 19, 0.05), rgba(22, 10, 19, 0.82));
}

.blog-sidebar-feat-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--l-rose-tint);
}

.blog-sidebar-feat-title {
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: #fff;
}

.blog-sidebar-cta {
  border-radius: 18px;
  padding: 24px;
  background: radial-gradient(130% 150% at 20% 10%, var(--l-plum) 0%, var(--l-deep) 60%, var(--l-dark) 100%);
}

.blog-sidebar-cta-heading {
  display: block;
  font-family: var(--l-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: #fff;
}

.blog-sidebar-cta p {
  margin: 9px 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.blog-sidebar-cta .landing-btn-rose {
  display: block;
  text-align: center;
  width: 100%;
}

.blog-sidebar-newsletter .blog-newsletter {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.blog-sidebar-newsletter .blog-newsletter-inner {
  display: block;
}

.blog-sidebar-newsletter .blog-newsletter-form {
  margin-top: 14px;
}
.blog-sidebar-newsletter .blog-newsletter-form input {
  width: 100%;
}
.blog-sidebar-newsletter .blog-newsletter-form button {
  width: 100%;
}

.blog-fab {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1040;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--l-rose-strong);
  color: #fff;
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 12px 30px rgba(216, 19, 79, 0.38);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.blog-fab:active {
  transform: scale(0.96);
}
.blog-fab.blog-fab--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}
@media (max-width: 860px) {
  .blog-fab {
    display: inline-flex;
  }
}

.blog-fab-icon {
  font-size: 15px;
  line-height: 1;
}

.blog-drawer-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1035;
  background: rgba(22, 10, 19, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 0;
  padding: 0;
}
.blog-drawer-scrim.blog-drawer-scrim--open {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 860px) {
  .blog-drawer-scrim {
    display: block;
  }
}

.blog-drawer {
  position: sticky;
  top: 24px;
}
@media (max-width: 860px) {
  .blog-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1038;
    max-height: 86vh;
    background: var(--l-paper);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -18px 50px rgba(30, 12, 26, 0.26);
    overflow: hidden;
    transform: translateY(101%);
    transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.26, 1);
  }
}
.blog-drawer.blog-drawer--open {
  transform: translateY(0);
}
.blog-drawer .blog-drawer-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 860px) {
  .blog-drawer .blog-drawer-body {
    padding: 0 18px 26px;
  }
}

.blog-drawer-head {
  display: none;
}
@media (max-width: 860px) {
  .blog-drawer-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid var(--l-line-2);
    flex-shrink: 0;
    background: var(--l-paper);
  }
}
.blog-drawer-head button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--l-line-2);
  background: #fff;
  color: var(--l-muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.blog-drawer-head button:hover {
  border-color: var(--l-rose-strong);
  color: var(--l-rose-strong);
}

.blog-drawer-grab {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: var(--l-line-2);
}

.blog-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.blog-post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--l-line-2);
  border-radius: 14px;
  text-decoration: none;
}
.blog-post-nav-link:hover {
  border-color: var(--l-rose-strong);
  text-decoration: none;
}

.blog-post-nav-next {
  text-align: right;
  grid-column: 2;
}

.blog-post-nav-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--l-muted);
}

.blog-post-nav-title {
  font-family: var(--l-display);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--l-ink);
}

@media (max-width: 620px) {
  .blog-post-nav {
    grid-template-columns: 1fr;
  }
  .blog-post-nav-next {
    grid-column: 1;
    text-align: left;
  }
}
.blog-related {
  margin: 48px 0;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.blog-related-grid .blog-card {
  background: #fff;
  padding: 10px;
}
.blog-related-grid .blog-card .blog-card-media {
  border-radius: 12px;
  height: 150px;
}
.blog-related-grid .blog-card .blog-card-body {
  padding: 12px 4px 4px;
}

.blog-post-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: 3px;
  background: transparent;
}

.blog-post-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--l-rose-strong);
  transition: width 0.08s linear;
}

.blog-post-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  font-family: var(--l-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--l-muted);
  cursor: pointer;
}
.blog-post-share-btn:hover {
  color: var(--l-rose-strong);
}

.blog-post-share-icon {
  font-size: 13px;
  line-height: 1;
}

span.brand-wm {
  font-family: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
}

.brand-wm__un {
  color: var(--brand-ink);
}

.brand-wm__fate {
  color: var(--brand-rose-strong);
}

.brand-wm--on-dark .brand-wm__un {
  color: var(--brand-rose);
}
.brand-wm--on-dark .brand-wm__fate {
  color: #fff;
}

html[data-bs-theme=dark] .brand-wm--auto .brand-wm__un {
  color: var(--brand-rose);
}
html[data-bs-theme=dark] .brand-wm--auto .brand-wm__fate {
  color: #fff;
}
