:root {
  --bg-surface: #f8fafc;
  --bg-panel: #ffffff;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --accent: #059669;
  /* deep forest green for CTAs/wins */
  --accent-strong: #047857;
  --premium: #d97706;
  /* gold for premium badges only */
  --border: #e2e8f0;
  --pill-bg: rgba(5, 150, 105, 0.12);
  --pill-text: #10b981;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --danger: #dc2626;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-surface);
  color: var(--text-primary);
  min-height: 100vh;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-inverse {
  color: #0f172a !important;
}

.section-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  width: 100%;
}

.section-card .section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-card .section-title {
  margin: 0;
  font-weight: 800;
}

.section-card .section-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.section-grid {
  display: grid;
  gap: 14px;
}

.home-posts-load-more {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 2px;
  width: 100%;
}

@media (min-width: 768px) {
  .section-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-grid.columns-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .section-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.app-shell {
  min-height: 100vh;
}

.content {
  min-height: 100vh;
}

.page-body {
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  color: var(--text-primary);
}

@media (max-width: 767px) {
  .page-body {
    padding: 18px 14px;
    max-width: 100%;
  }
}

/* Sidebar using Bootstrap nav layout */
.sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 1030;
  box-shadow: var(--shadow);
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.sidebar-header {
  border-bottom: 1px solid var(--border);
}

.premium-color {
  color: var(--premium) !important;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--premium);
}

.sidebar .nav-link {
  color: var(--text-primary);
  border-radius: 10px;
  padding: 10px 14px;
}

.sidebar .nav-link .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  display: inline-block;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
  background: rgba(4, 120, 87, 0.08);
  color: var(--text-primary);
}

.sidebar .nav-link.active .dot,
.sidebar .nav-link:hover .dot {
  background: var(--premium);
}

.sidebar .avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.sidebar .avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .sidebar {
    transform: none;
    position: fixed;
    top: 0;
    bottom: 0;
  }

  .content {
    margin-left: 260px;
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

.pill-brand {
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--premium), #f8b84f);
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.35);
}

.badge.text-bg-accent {
  background: var(--accent);
  color: #0b1b2f;
}

.badge-premium {
  background: var(--premium);
  color: #0b1b2f;
}

.vip-tip-edit-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  box-shadow: 0 4px 12px rgba(146, 64, 14, 0.12);
}

.vip-tip-edit-button[hidden] {
  display: none !important;
}

.vip-tip-admin-trigger {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.vip-tip-admin-trigger:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.38);
  outline-offset: 3px;
}

.vip-tip-edit-button:hover,
.vip-tip-edit-button:focus-visible {
  color: #fff;
  background: var(--premium);
  border-color: var(--premium);
}

.vip-tip-modal {
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.vip-tip-modal .modal-header {
  background: linear-gradient(135deg, #fffdf5, #fff7d6);
  border-bottom-color: rgba(217, 119, 6, 0.2);
}

.vip-tip-modal .modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.vip-tip-modal .form-label {
  margin-bottom: 0.35rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 700;
}

.vip-tip-modal .form-control,
.vip-tip-modal .form-select,
.vip-tip-modal .btn {
  min-height: 44px;
}

.vip-tip-modal-actions {
  min-width: 0;
}

.text-bg-secondary {
  background: #243047 !important;
  color: #f8fafc !important;
}

.tip-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.tip-table {
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
}

.tip-head {
  display: grid;
  grid-template-columns: 140px 1fr 140px;
  padding: 12px 16px;
  background: #f1f5f9;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.tip-row {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  gap: 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  background: #ffffff;
}

.tip-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  background: #f8fafc;
}

.tip-row.empty {
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
}

.tip-cell.match {
  line-height: 1.5;
}

.tip-cell.pick {
  align-self: center;
  min-width: 0;
}

.vip-tip-pick-content {
  width: 100%;
}

.tip-odd {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 28px;
  padding: 0.25rem 0.6rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.tip-odd strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.tip-outcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 30px;
  padding: 0.3rem 0.65rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  white-space: nowrap;
}

.tip-outcome strong {
  padding-left: 0.45rem;
  border-left: 1px solid currentColor;
  font-variant-numeric: tabular-nums;
}

.tip-outcome--won {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tip-outcome--lost {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.vip-booking-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, #fffdf5, #fffaf0);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.vip-booking-card__content,
.vip-booking-card__actions {
  min-width: 0;
}

.vip-booking-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #92400e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.vip-booking-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.8rem;
  margin-bottom: 0.55rem;
}

.vip-booking-total-odds {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.055em;
}

.vip-booking-total-odds strong {
  color: #0f172a;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.vip-booking-code-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
  min-width: 0;
}

.vip-booking-code {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(146, 64, 14, 0.42);
  border-radius: 10px;
  color: #0f172a;
  background: #fff;
  font-size: clamp(0.92rem, 3vw, 1.08rem);
  font-weight: 800;
  letter-spacing: 0.055em;
}

.vip-booking-copy-button {
  min-height: 44px;
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #fff;
}

.vip-booking-copy-button:hover,
.vip-booking-copy-button.is-copied {
  color: #047857;
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.vip-booking-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.vip-bookmaker-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.vip-booking-edit-button[hidden] {
  display: none !important;
}

.vip-booking-admin-trigger,
.vip-booking-empty-trigger {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.vip-booking-admin-trigger:focus-visible,
.vip-booking-empty-trigger:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.38);
  outline-offset: 3px;
}

.vip-booking-card--empty {
  border-style: dashed;
  background: #fffbeb;
  box-shadow: none;
}

.vip-booking-empty-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.8rem;
}

.vip-booking-empty-trigger {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #92400e;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: left;
}

.vip-booking-code-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.04em;
}

.vip-locked-day {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 112px;
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.vip-locked-day__icon {
  display: inline-grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #92400e;
  background: #fef3c7;
}

.tip-cell.time {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tip-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--pill-bg);
  color: var(--pill-text);
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  min-width: 150px;
  text-align: center;
}

.pill.pill-vip {
  background: linear-gradient(90deg, var(--premium), #f8b84f);
  color: #0b1b2f;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.35);
  border: none;
}

.pill-muted {
  background: #e9eef5;
  color: var(--text-primary);
}

.blog-card .pill {
  min-width: auto;
  padding: 6px 10px;
  font-weight: 600;
  letter-spacing: 0;
  border: 1px solid var(--border);
  background: #eef2f7;
}

.league-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .tip-row {
    grid-template-columns: 140px 1fr 140px;
    align-items: center;
  }

  .tip-panel[data-tip-category="vip"] .tip-head,
  .tip-panel[data-tip-category="vip"] .tip-row {
    grid-template-columns: 140px minmax(0, 1fr) 180px;
  }

  .vip-booking-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .vip-booking-card__actions {
    align-self: end;
    justify-content: flex-end;
  }
}

@media (max-width: 767px) {
  .day-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .day-toggle .nav-item {
    width: calc(33.33% - 4px);
  }

  .day-toggle .nav-link {
    width: 100%;
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  #vipTipEditModal .modal-dialog,
  #vipBookingCodeEditModal .modal-dialog {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
  }

  .vip-tip-modal {
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .vip-tip-modal .modal-header {
    padding: 0.85rem 1rem;
  }

  .vip-tip-modal .modal-body {
    padding: 1rem;
  }

  .vip-tip-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  .vip-tip-delete-button {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .vip-tip-modal-actions {
    display: grid !important;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .vip-booking-code-row {
    flex-wrap: wrap;
  }

  .vip-booking-copy-button {
    flex: 1 0 auto;
  }

  .vip-booking-card__actions,
  .vip-bookmaker-button {
    width: 100%;
  }

  .vip-booking-modal .modal-footer {
    display: flex;
  }

  .vip-booking-modal .vip-booking-delete-button {
    width: 100%;
  }
}

.day-toggle .btn {
  min-width: 100px;
}

.day-toggle .nav-link {
  color: #e2e8f0;
  min-width: 100px;
  text-align: center;
}

.day-toggle .nav-link.active {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
}

.info-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--text-primary);
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 18px;
}

.timeline-item {
  position: relative;
  margin-bottom: 14px;
}

.timeline-item .dot {
  position: absolute;
  left: -10px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item .content h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.timeline-item .content p {
  margin: 0;
  color: var(--text-muted);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.prose p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text-primary);
}

footer {
  color: var(--text-muted);
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

body.sidebar-open .sidebar {
  animation: slideIn 0.2s ease;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1025;
}

.sidebar-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.btts-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.btts-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  transition: box-shadow 0.1s ease, transform 0.1s ease;
  color: var(--text-primary);
}

.btts-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.blog-card .card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
  transition: transform 0.7s ease, filter 0.7s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.28);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.blog-card:hover .card-img-top {
  transform: scale(1.055);
  filter: saturate(1.08) contrast(1.05);
}

.sokanews-card {
  border-color: rgba(5, 150, 105, 0.24);
}

.sokanews-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 25%, rgba(16, 185, 129, 0.2), transparent 45%), linear-gradient(135deg, #052e25 0%, #064e3b 55%, #0f172a 100%);
  padding: 28px;
}

.sokanews-card__logo {
  width: min(54%, 150px) !important;
  height: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.28));
}

.blog-card:hover .sokanews-card__logo {
  transform: scale(1.06);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
}

.auth-layout {
  background: #f4f7f3;
}

.auth-layout-main {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  overflow-x: clip;
  background:
    radial-gradient(circle at 10% 12%, rgba(5, 150, 105, 0.1), transparent 30rem),
    radial-gradient(circle at 92% 86%, rgba(217, 119, 6, 0.1), transparent 26rem),
    #f4f7f3;
}

.auth-layout-main::before {
  position: fixed;
  z-index: -1;
  width: min(38rem, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(5, 150, 105, 0.09);
  border-radius: 50%;
  content: '';
  transform: translate(42vw, -35vh);
}

.auth-screen {
  display: flex;
  width: min(100%, 29rem);
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
}

.auth-screen--reset {
  width: min(100%, 34rem);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.75rem;
  color: #0f172a;
  text-decoration: none;
}

.auth-brand__mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.85rem;
  color: #fff;
  background: #047857;
  box-shadow: 0 10px 22px rgba(4, 120, 87, 0.2);
}

.auth-brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.auth-brand__wordmark strong {
  font-size: 0.93rem;
  font-weight: 850;
  letter-spacing: 0.025em;
}

.auth-brand__wordmark em {
  color: #b45309;
  font-style: normal;
}

.auth-brand__wordmark small {
  margin-top: 0.24rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
}

.auth-panel {
  padding: clamp(1.4rem, 5vw, 2.25rem);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 65px rgba(15, 47, 35, 0.11);
}

.auth-panel__header {
  margin-bottom: 1.5rem;
}

.auth-eyebrow {
  display: block;
  margin-bottom: 0.45rem;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.auth-panel__header h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.08;
  text-wrap: balance;
}

.auth-panel__header p {
  max-width: 38ch;
  margin: 0.65rem 0 0;
  color: #526174;
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.auth-panel > .alert {
  margin: 0 0 1rem;
  border: 0;
  border-radius: 0.75rem;
}

.auth-reset-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.65rem;
  padding: 0;
  list-style: none;
}

.auth-reset-progress li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border-radius: 0.8rem;
  background: #f5f7f6;
  transition: color 180ms ease, background-color 180ms ease;
}

.auth-reset-progress li.is-active {
  background: #eef8f3;
}

.auth-reset-progress li.is-complete {
  background: #f3f7f5;
}

.auth-step-number {
  display: grid;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.65rem;
  color: #526174;
  background: #e2e8e5;
  font-size: 0.82rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease, background-color 180ms ease;
}

.auth-reset-progress li.is-active .auth-step-number {
  color: #fff;
  background: #047857;
}

.auth-reset-progress li.is-complete .auth-step-number {
  color: #047857;
  background: #d8f0e4;
}

.auth-reset-progress strong,
.auth-reset-progress small {
  display: block;
}

.auth-reset-progress strong {
  overflow: hidden;
  color: #263548;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-reset-progress small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.68rem;
}

.auth-reset-step {
  scroll-margin-top: 1rem;
}

.auth-reset-step[hidden] {
  display: none !important;
}

.auth-reset-step.is-active.is-transitioning {
  animation: auth-step-enter 200ms ease-out;
}

@keyframes auth-step-enter {
  from {
    opacity: 0;
    transform: translateY(0.4rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-reset-step__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.auth-reset-step__label {
  display: block;
  margin-bottom: 0.18rem;
  color: #047857;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.auth-reset-step__header h2 {
  margin: 0;
  color: #172235;
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.auth-reset-jump {
  flex: 0 0 auto;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 750;
  text-decoration: none;
}

.auth-reset-jump:hover {
  color: #065f46;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.auth-reset-expiry {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.auth-reset-step__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.7rem;
}

.auth-reset-sent-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.75rem;
  color: #065f46;
  background: #ecfdf5;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
}

.auth-reset-sent-note[hidden] {
  display: none !important;
}

.auth-reset-step > .alert {
  margin: 0 0 1rem;
  border: 0;
  border-radius: 0.75rem;
}

.auth-form {
  display: grid;
  gap: 1.05rem;
}

.auth-field {
  display: grid;
  gap: 0.42rem;
}

.auth-field label,
.auth-label-row label {
  color: #263548;
  font-size: 0.84rem;
  font-weight: 750;
}

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.auth-label-row a,
.auth-switch a {
  color: #047857;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.auth-label-row a:hover,
.auth-switch a:hover {
  color: #065f46;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.auth-input {
  display: flex;
  min-height: 3.15rem;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.9rem;
  border: 1px solid #d7e0e9;
  border-radius: 0.8rem;
  background: #f8fafc;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.auth-input:hover {
  border-color: #b8c5d2;
  background: #fff;
}

.auth-input:focus-within {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 0.22rem rgba(5, 150, 105, 0.14);
}

.auth-input > i {
  flex: 0 0 auto;
  width: 1rem;
  color: #64748b;
  text-align: center;
}

.auth-input:focus-within > i {
  color: #047857;
}

.auth-input input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 0.95rem;
}

.auth-input input::placeholder {
  color: #8a98a9;
}

.auth-otp-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.05rem !important;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.32em;
}

.auth-input input:-webkit-autofill {
  transition: background-color 9999s ease-out;
}

.auth-password-toggle {
  display: grid;
  flex: 0 0 2.25rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0.6rem;
  color: #526174;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.auth-password-toggle:hover {
  color: #047857;
  background: rgba(5, 150, 105, 0.09);
}

.auth-password-toggle:focus-visible,
.auth-brand:focus-visible,
.auth-home-link:focus-visible,
.auth-reset-jump:focus-visible,
.auth-label-row a:focus-visible,
.auth-switch a:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.24);
  outline-offset: 3px;
}

.auth-field > small {
  color: #64748b;
  font-size: 0.75rem;
  line-height: 1.4;
}

.auth-submit {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #047857;
  border-radius: 0.8rem;
  color: #fff;
  background: #047857;
  box-shadow: 0 12px 24px rgba(4, 120, 87, 0.18);
  font-weight: 800;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-submit:hover {
  border-color: #065f46;
  background: #065f46;
  box-shadow: 0 14px 28px rgba(4, 120, 87, 0.24);
}

.auth-submit--secondary {
  border-color: rgba(5, 150, 105, 0.32);
  color: #047857;
  background: #f0fdf7;
  box-shadow: none;
}

.auth-submit--secondary:hover {
  border-color: rgba(5, 150, 105, 0.48);
  color: #065f46;
  background: #e7f8f0;
  box-shadow: none;
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.26);
  outline-offset: 3px;
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.auth-submit .htmx-indicator {
  margin: 0;
}

.auth-switch {
  margin: 1.35rem 0 0;
  color: #526174;
  font-size: 0.86rem;
  text-align: center;
}

.auth-switch a {
  margin-left: 0.2rem;
}

.auth-home-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 0.45rem;
  padding: 0.3rem;
  color: #526174;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.auth-home-link:hover {
  color: #047857;
}

@media (max-width: 575.98px) {
  .auth-layout-main {
    place-items: start center;
    padding: 1.1rem 0.85rem 1.75rem;
  }

  .auth-screen {
    gap: 0.9rem;
  }

  .auth-panel {
    padding: 1.35rem 1.1rem 1.4rem;
    border-radius: 1rem;
    box-shadow: 0 18px 45px rgba(15, 47, 35, 0.1);
  }

  .auth-panel__header {
    margin-bottom: 1.2rem;
  }

  .auth-panel--reset {
    padding-bottom: 1.6rem;
  }

  .auth-reset-progress {
    gap: 0.45rem;
    margin-bottom: 1.4rem;
  }

  .auth-reset-progress li {
    align-items: flex-start;
    padding: 0.65rem;
  }

  .auth-step-number {
    flex-basis: 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
  }

  .auth-reset-progress strong {
    white-space: normal;
  }

  .auth-reset-progress small {
    display: none;
  }

  .auth-reset-step__header {
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-input,
  .auth-password-toggle,
  .auth-submit,
  .auth-home-link {
    transition: none;
  }

  .auth-reset-step.is-active.is-transitioning {
    animation: none;
  }
}

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-indicator.htmx-request {
  display: inline-block;
}

.btn .htmx-indicator {
  margin-right: 6px;
  vertical-align: -0.125em;
}
