:root {
  --bg: #16294a;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(173, 214, 255, 0.18);
  --gradient-start: #2D3B87;
  --gradient-end: #00B4D8;
  --accent-plum: #6B2D5C;
  --accent-rose: #D4577A;
  --text-light: rgba(226, 240, 255, 0.9);
  --muted: rgba(180, 206, 232, 0.7);
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background: radial-gradient(circle at top, rgba(104, 214, 255, 0.2), transparent 55%),
              linear-gradient(180deg, #1b3f7d 0%, #16294a 45%, #142442 100%);
  min-height: 100vh;
  color: #e8f1ff;
}

.text-body {
  color: #e8f1ff !important;
}

.text-muted {
  color: rgba(197, 219, 242, 0.8) !important;
}

.bg-canvas {
  background: var(--bg);
}

.glass-nav {
  background: rgba(17, 40, 82, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(112, 170, 240, 0.25);
}


.brand-logo {
  width: auto;
  height: 56px;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}
.navbar .nav-link {
  color: rgba(196, 222, 255, 0.85);
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: white;
}

.locked-pill {
  color: rgba(170, 201, 232, 0.7);
  border: 1px dashed rgba(130, 170, 215, 0.35);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  cursor: not-allowed;
}

.locked-feature-card {
  filter: grayscale(1);
  opacity: 0.62;
}

.toast-stack {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 720px);
  margin-bottom: 1.5rem;
}

.toast-stack .app-notice {
  gap: 0.9rem;
  margin: 0;
  padding: 0.9rem 1rem;
  color: #e8f1ff;
  border: 1px solid rgba(112, 170, 240, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 61, 107, 0.96), rgba(25, 48, 86, 0.94));
  box-shadow: 0 14px 32px rgba(7, 20, 45, 0.2);
  backdrop-filter: blur(16px);
}

.toast-stack .app-notice-success {
  border-color: rgba(91, 206, 168, 0.25);
  background: linear-gradient(135deg, rgba(30, 91, 91, 0.66), rgba(25, 52, 88, 0.96));
}

.app-notice-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  place-items: center;
  border-radius: 50%;
  color: #102f37;
  background: linear-gradient(135deg, #82e6c2, #71bde8);
  font-size: 1rem;
  font-weight: 800;
}

.app-notice-danger .app-notice-icon,
.app-notice-warning .app-notice-icon {
  background: linear-gradient(135deg, #f2c879, #e7807f);
  color: #40231e;
}

.app-notice-content {
  min-width: 0;
}

.app-notice-label {
  color: #79ddbe;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.app-notice-danger .app-notice-label,
.app-notice-warning .app-notice-label {
  color: #efc585;
}

.app-notice-message {
  color: rgba(226, 240, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.4;
}

.app-notice-close {
  flex: 0 0 auto;
  padding: 0.65rem !important;
  filter: invert(1) grayscale(1);
  opacity: 0.55;
  box-shadow: none !important;
}

.app-notice-close:hover,
.app-notice-close:focus {
  opacity: 0.9;
}

.gradient-surface {
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 55%),
              linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 55%, var(--accent-rose) 100%);
  border-radius: 32px;
  padding: 2.5rem;
  color: white;
  border: 1px solid rgba(140, 190, 240, 0.25);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-heading {
  font-size: clamp(2rem, 4vw, 3rem);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.stat-pill {
  background: linear-gradient(135deg, rgba(45, 59, 135, 0.5), rgba(0, 180, 216, 0.35));
  border: 1px solid rgba(140, 190, 240, 0.3);
  border-radius: 20px;
  padding: 1rem 1.25rem;
  min-width: 110px;
  text-align: center;
}

.stat-pill span {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  color: white;
}

.glass-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  color: #f5f7ff;
}

.result-card,
.survey-card,
.timeline-body,
.ladder-step,
.mini-card {
  color: #e8f1ff;
}

.gradient-card {
  background: linear-gradient(135deg, var(--gradient-start), var(--accent-rose));
  border-radius: 24px;
  color: white;
  border: none;
}

.mini-card {
  background: linear-gradient(135deg, rgba(45, 59, 135, 0.35), rgba(107, 45, 92, 0.35));
  border-radius: 18px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(212, 87, 122, 0.25);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

.card .row.g-3 {
  align-items: stretch;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--muted);
}

.progress.bg-soft-dark {
  background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  background: linear-gradient(90deg, #fa709a, #fee140);
  border-radius: 999px;
}

.assessment-status-message {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 0.15rem 0.1rem;
  color: #e8f1ff;
}

.assessment-status-dot {
  width: 0.7rem;
  height: 0.7rem;
  flex: 0 0 0.7rem;
  border-radius: 50%;
  background: #72d7ef;
  box-shadow: 0 0 0 5px rgba(114, 215, 239, 0.1), 0 0 18px rgba(114, 215, 239, 0.35);
}

.assessment-status-message.is-locked .assessment-status-dot {
  background: #f0bd72;
  box-shadow: 0 0 0 5px rgba(240, 189, 114, 0.1), 0 0 18px rgba(240, 189, 114, 0.28);
}

.assessment-status-message.is-idle .assessment-status-dot {
  background: rgba(180, 206, 232, 0.65);
  box-shadow: 0 0 0 5px rgba(180, 206, 232, 0.08);
}

.assessment-status-label {
  color: #9fdff1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.assessment-status-message.is-locked .assessment-status-label {
  color: #f0c987;
}

.assessment-status-message.is-idle .assessment-status-label {
  color: var(--muted);
}

.assessment-status-copy {
  color: rgba(226, 240, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.5;
}

.timeline {
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.65rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #65d0ff, #2c7ce6);
  box-shadow: 0 0 0 4px rgba(120, 180, 235, 0.18);
}

.timeline-date {
  font-size: 0.85rem;
  color: var(--muted);
}

.timeline-body {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ladder-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ladder-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.ladder-step.done {
  border-color: rgba(94, 255, 142, 0.4);
  background: rgba(94, 255, 142, 0.08);
}

.ladder-step.current {
  border-color: rgba(104, 214, 255, 0.45);
  background: rgba(104, 214, 255, 0.1);
}

.ladder-generate-hint {
  color: rgba(180, 206, 232, 0.72);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.step-index {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.result-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  backdrop-filter: blur(14px);
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #68d6ff, #8be3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #0b1a33;
}

.score-circle span {
  font-size: 3rem;
  font-weight: 700;
}

.result-next-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(104, 214, 255, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(45, 59, 135, 0.22), rgba(0, 180, 216, 0.09));
}

.result-next-step-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: #102f37;
  background: linear-gradient(135deg, #82e6c2, #71bde8);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(53, 183, 149, 0.16);
}

.result-next-step .eyebrow {
  color: #73d9b7;
  font-weight: 600;
}

.result-next-step h4 {
  color: #f1f8ff;
  font-size: 1.05rem;
}

.result-next-step p:last-child {
  color: rgba(197, 219, 242, 0.82);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--gradient-end), var(--accent-rose));
  color: floralwhite;
  border: none;
}

.btn-gradient:hover {
  color: floralwhite;
  opacity: 0.95;
}

.btn,
.btn-light,
.btn-primary,
.btn-outline-light,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
  background: linear-gradient(135deg, var(--gradient-end), var(--accent-rose)) !important;
  color: floralwhite !important;
  border: none !important;
  box-shadow: 0 12px 30px rgba(26, 94, 167, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background-size: 200% auto;
}

.btn:not(.btn-gradient):hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
  background: #758195 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  opacity: 0.65 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.survey-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
}

.survey-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.survey-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.survey-option input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(13, 18, 40, 0.65);
  background: rgba(13, 18, 40, 0.12);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.survey-option input[type="radio"]:hover {
  border-color: rgba(13, 18, 40, 0.9);
  background: rgba(13, 18, 40, 0.2);
}

.survey-option input[type="radio"]:checked {
  border-color: #68d6ff;
  background: radial-gradient(circle, #68d6ff 45%, rgba(104, 214, 255, 0.2) 60%, transparent 70%);
  box-shadow: 0 0 0 3px rgba(104, 214, 255, 0.25);
}

.survey-option input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(104, 214, 255, 0.35);
}

.rses-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2.5rem;
}

body.rses-lock-active {
  overflow: hidden;
}

.rses-start-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: radial-gradient(circle at top, rgba(104, 214, 255, 0.14), rgba(12, 24, 49, 0.92) 55%),
              linear-gradient(160deg, rgba(15, 34, 74, 0.96), rgba(12, 24, 49, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.rses-start-panel {
  width: min(680px, 100%);
  background: rgba(17, 40, 82, 0.86);
  border: 1px solid rgba(120, 180, 235, 0.28);
  border-radius: 22px;
  padding: 2rem 2.25rem;
  box-shadow: 0 20px 50px rgba(8, 16, 35, 0.45);
}

.rses-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: radial-gradient(circle at top, rgba(104, 214, 255, 0.14), rgba(12, 24, 49, 0.92) 55%),
              linear-gradient(160deg, rgba(15, 34, 74, 0.96), rgba(12, 24, 49, 0.98));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.rses-loading-overlay[hidden] {
  display: none !important;
}

.rses-fullscreen-root:fullscreen {
  background: radial-gradient(circle at top, rgba(104, 214, 255, 0.2), transparent 55%),
              linear-gradient(180deg, #1b3f7d 0%, #16294a 45%, #142442 100%);
  overflow-y: auto;
  padding: 1.25rem;
}

.rses-mini {
  padding: 0.9rem 1.1rem;
}

.rses-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rses-statement {
  font-weight: 600;
  line-height: 1.35;
}

.rses-question {
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rses-question:focus-within {
  border-color: rgba(104, 214, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(104, 214, 255, 0.14);
  transform: translateY(-1px);
}

.rses-question.is-answered {
  border-color: rgba(94, 255, 142, 0.32);
  box-shadow: 0 0 0 3px rgba(94, 255, 142, 0.08);
}

.likert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.btn-likert {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(13, 18, 40, 0.18);
  color: rgba(226, 240, 255, 0.92);
  padding: 0.85rem 0.75rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-likert:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(13, 18, 40, 0.28);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);

}

.btn-check:checked + .btn-likert {
  border-color: rgba(104, 214, 255, 0.85);
  background: linear-gradient(135deg, rgba(104, 214, 255, 0.92), rgba(0, 180, 216, 0.75));
  color: #0b1a33;
  box-shadow: 0 0 0 4px rgba(104, 214, 255, 0.16);
}

.btn-check:focus-visible + .btn-likert {
  box-shadow: 0 0 0 4px rgba(104, 214, 255, 0.35);
}

.rses-submit-bar {
  position: sticky;
  bottom: 1rem;
  z-index: 10;
}

.rses-submit-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  background: rgba(17, 40, 82, 0.82);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(112, 170, 240, 0.22);
  box-shadow: 0 18px 45px rgba(8, 16, 35, 0.35);
}

@media (max-width: 767px) {
  .likert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rses-submit-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .rses-submit-inner > .d-flex {
    width: 100%;
    justify-content: stretch;
  }
}

.win-form .form-control,
.glass-card .form-control,
.glass-card .form-select,
.glass-card textarea {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
}

.win-form .form-control::placeholder,
.glass-card .form-control::placeholder,
.glass-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.win-form .form-control:focus,
.glass-card .form-control:focus,
.glass-card textarea:focus {
  border-color: white;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
}

.assessment-complete-panel {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(91, 206, 168, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(48, 153, 129, 0.14), rgba(64, 117, 170, 0.09));
}

.assessment-complete-panel h4 {
  color: #f1f8ff;
  font-size: 1.05rem;
}

.assessment-complete-panel .eyebrow {
  color: #73d9b7;
}

.assessment-complete-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: 50%;
  color: #102f37;
  background: linear-gradient(135deg, #82e6c2, #71bde8);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(53, 183, 149, 0.16);
}

.wins-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.5rem 0.25rem;
}

.wins-page-header h1 {
  color: #f8fbff;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.wins-page-header > div:first-child {
  max-width: 700px;
}

.wins-streak-chip {
  min-width: 112px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
}

.wins-streak-value,
.wins-streak-label {
  display: block;
}

.wins-streak-value {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.wins-streak-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wins-capture-card,
.wins-history-card {
  overflow: hidden;
}

.wins-capture-card {
  position: relative;
  min-height: 470px;
}

.wins-capture-card::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.wins-capture-card .card-body {
  position: relative;
  z-index: 1;
}

.win-number {
  display: inline-grid;
  width: 1.65rem;
  height: 1.65rem;
  margin-right: 0.6rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  font-weight: 700;
}

.wins-complete-state {
  display: grid;
  max-width: 620px;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 1.15rem;
  align-items: start;
  margin-top: 3rem;
}

.wins-complete-state > .wins-complete-icon {
  grid-row: 1 / span 3;
}

.wins-complete-state > .eyebrow,
.wins-complete-state > h3,
.wins-complete-state > p:last-child {
  grid-column: 2;
}

.wins-complete-state > .eyebrow {
  margin-top: 0.15rem;
}

.wins-complete-icon,
.wins-empty-icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1rem;
  border-radius: 50%;
}

.wins-complete-icon {
  color: #3b2b69;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  font-weight: 800;
}

.wins-entry-count {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #bcd1ee;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
}

.wins-entry-list {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  max-height: 580px;
  padding-right: 0.2rem;
  overflow-y: auto;
}

.wins-entry-card {
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.wins-entry-date {
  margin-bottom: 0.8rem;
  color: #9fb6d5;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.wins-entry-items {
  display: grid;
  gap: 0.55rem;
}

.wins-entry-items p {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.55rem;
  align-items: start;
  margin: 0;
  color: #edf4ff;
  line-height: 1.45;
}

.wins-entry-items p span {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 50%;
  color: #a8dbff;
  background: rgba(79, 165, 238, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
}

.wins-trait {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1rem;
  color: #eef5ff;
  font-size: 0.86rem;
}

.wins-trait span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  color: #badbff;
  background: rgba(105, 177, 239, 0.13);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wins-empty-state {
  padding: 3rem 1.5rem;
  text-align: center;
}

.wins-empty-icon {
  margin-right: auto;
  margin-left: auto;
  color: #b9dcff;
  background: rgba(105, 177, 239, 0.12);
  font-size: 1.25rem;
}

@media (max-width: 767.98px) {
  .wins-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .wins-streak-chip {
    display: flex;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    text-align: left;
  }

  .wins-streak-label {
    margin-top: 0;
  }

  .wins-capture-card {
    min-height: auto;
  }

  .wins-complete-state {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .wins-complete-state > .wins-complete-icon,
  .wins-complete-state > .eyebrow,
  .wins-complete-state > h3,
  .wins-complete-state > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }
}

.card-footer {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.auth-hero .mini-card {
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.25), rgba(107, 45, 92, 0.25));
  border-color: rgba(212, 87, 122, 0.3);
}

.auth-card {
  background: linear-gradient(160deg, rgba(45, 59, 135, 0.75), rgba(107, 45, 92, 0.7) 60%, rgba(0, 180, 216, 0.6));
  border: 1px solid rgba(212, 87, 122, 0.35);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-1 {
  width: 220px;
  height: 220px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle, rgba(104, 214, 255, 0.85), transparent 60%);
}

.orb-2 {
  width: 260px;
  height: 260px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, rgba(31, 76, 153, 0.9), transparent 60%);
}

.text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

.loading-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(104, 214, 255, 0.18), rgba(12, 24, 49, 0.92) 55%),
              linear-gradient(160deg, rgba(15, 34, 74, 0.95), rgba(12, 24, 49, 0.98));
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.is-redirecting .loading-overlay {
  display: flex !important;
}

.is-redirecting .row.g-4 > [class*="col-"] {
  opacity: 0;
  pointer-events: none;
}

.loading-panel {
  background: rgba(17, 40, 82, 0.82);
  border: 1px solid rgba(120, 180, 235, 0.28);
  border-radius: 22px;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(8, 16, 35, 0.35);
}

.loading-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(120, 180, 235, 0.35);
  border-top-color: #68d6ff;
  margin: 0 auto 1rem;
  animation: spin 1s linear infinite;
}

.loading-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #e8f1ff;
}

.loading-subtitle {
  color: rgba(190, 214, 240, 0.8);
  margin-top: 0.35rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 767px) {
  .glass-nav {
    border-radius: 0;
  }
  .dashboard-hero {
    padding: 2rem;
  }
  .hero-stats {
    justify-content: flex-start;
  }
}
