/* =========================
   GLOBAL IMPROVEMENTS
========================= */
body.th-body {
  background: #f8fafc;
  font-family: 'Inter', 'Poppins', sans-serif;
  color: #111827;
}

.th-main {
  max-width: 1200px;
}

/* =========================
   HERO SECTION
========================= */
.th-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.th-hero__bg,
.th-hero__img,
.th-hero__overlay {
  position: absolute;
  inset: 0;
}

.th-hero__bg {
  background-size: cover;
  background-position: center;
  filter: blur(10px);
  transform: scale(1.08);
  opacity: 0.55;
}

.th-hero__img {
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.th-hero__overlay {
  background: linear-gradient(110deg, rgba(37, 26, 34, 0.52), rgba(85, 88, 57, 0.34));
}

.th-hero__content {
  position: relative;
  z-index: 2;
}

.th-home-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 2rem;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.th-home-hero__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem;
  max-width: 650px;
}

.th-home-hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d1fae5;
  margin-bottom: 0.5rem;
}

.th-hero__title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.th-hero__subtitle {
  color: rgba(255,255,255,0.85);
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
}

.th-hero__actions .btn {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.th-home-hero__meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  color: white;
}

.th-home-hero__meta-label {
  font-size: 0.75rem;
  opacity: 0.8;
}

.th-home-hero__meta-value {
  font-weight: 600;
}

/* =========================
   USER DASHBOARD (Index)
========================= */
.th-dashboard-page .th-dashboard-hero__overlay {
  background: linear-gradient(110deg, rgba(15, 23, 42, 0.68), rgba(22, 101, 52, 0.28));
}

/* Keep full dashboard hero photo visible (no crop) */
.th-dashboard-page .th-dashboard-hero {
  background: #0f172a;
}

.th-dashboard-page .th-dashboard-hero .th-hero__img {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
}

.th-dashboard-page .th-home-hero__eyebrow,
.th-dashboard-page .th-hero__title,
.th-dashboard-page .th-hero__subtitle,
.th-dashboard-page .th-home-hero__meta-label,
.th-dashboard-page .th-home-hero__meta-value {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.th-dashboard-page .th-dashboard-btn-primary {
  background: var(--admin-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 800;
}

.th-dashboard-page .th-dashboard-btn-primary:hover {
  background: #166534;
  color: #fff;
}

.th-dashboard-page .th-dashboard-btn-ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.th-dashboard-page .th-dashboard-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* =========================
   STATS
========================= */
.th-home-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.th-stat {
  background: white;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid #e5e7eb;
}

.th-stat__icon {
  font-size: 1.3rem;
}

.th-stat__label {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.th-stat__value {
  font-weight: 600;
  margin: 0;
}

/* =========================
   CARD SYSTEM
========================= */
.th-surface-card {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
}

/* =========================
   FORM CARD
========================= */
.th-report-card {
  border-radius: 18px;
}

.th-card-title {
  font-weight: 600;
}

.th-section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 0.2rem;
}

/* =========================
   INPUT BLOCK
========================= */
.th-input-block {
  display: flex;
  flex-direction: column;
}

.form-control,
.form-select {
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.form-control:focus,
.form-select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.15);
}

/* =========================
   UPLOAD BOX
========================= */
.th-upload-box {
  border: 2px dashed #cbd5f5;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  background: #f9fafb;
  transition: 0.2s;
}

.th-upload-box:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.th-upload-box__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.th-upload-box__text span {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
}

.th-file-input {
  margin-top: 0.7rem;
}

.th-thumb-preview {
  max-width: 100%;
  border-radius: 10px;
}

/* =========================
   RADIO CARD (LOCATION)
========================= */
.th-radio-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.th-radio-card:hover {
  border-color: #22c55e;
  background: #f0fdf4;
}

.th-radio-card input {
  display: none;
}

.th-radio-card input:checked + .th-radio-card__content {
  border-left: 4px solid #22c55e;
  padding-left: 0.5rem;
}

.th-radio-card__title {
  font-weight: 600;
  display: block;
}

.th-radio-card__text {
  font-size: 0.8rem;
  color: #6b7280;
}

/* =========================
   LOCATION PANEL
========================= */
.th-location-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem;
  background: #f9fafb;
}

.th-location-panel__title {
  font-weight: 600;
}

.th-location-panel__desc {
  font-size: 0.85rem;
  color: #6b7280;
}

.th-geo-status {
  font-size: 0.85rem;
  color: #15803d;
}

/* =========================
   SIDEBAR
========================= */
.th-side-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.th-progress-list,
.th-tip-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.th-progress-item {
  display: flex;
  justify-content: space-between;
}

.th-progress-item__label {
  color: #6b7280;
  font-size: 0.85rem;
}

.th-tip-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.th-tip-item__icon {
  color: #22c55e;
}

/* =========================
   NAVBAR IMPROVEMENT
========================= */
.th-navbar {
  background: linear-gradient(to right, #14532d, #166534);
  border-bottom: 2px solid #22c55e;
}

.navbar .nav-link {
  color: rgba(255,255,255,0.85);
}

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

/* =========================
   FOOTER
========================= */
.th-footer {
  background: #111827;
  color: #9ca3af;
  padding: 1.5rem;
}

.th-footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.th-footer__brand {
  font-weight: 600;
  color: white;
}

.th-footer a {
  color: #9ca3af;
  text-decoration: none;
}

.th-footer a:hover {
  color: white;
}

/* =========================
   BUTTON IMPROVEMENTS
========================= */
.btn-primary {
  background: #16a34a;
  border: none;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-outline-dark {
  border-radius: 10px;
}

/* =========================
   LEADERBOARD PAGE
========================= */
.th-leaderboard-hero {
  min-height: 300px;
  margin-bottom: 1.5rem;
}

.th-leaderboard-hero__content {
  max-width: 760px;
  text-align: left;
  padding: 2.25rem;
}

.th-leaderboard-hero .th-home-hero__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.th-leaderboard-hero .th-home-hero__meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.th-leaderboard-hero .th-home-hero__eyebrow,
.th-leaderboard-hero .th-hero__title,
.th-leaderboard-hero .th-hero__subtitle,
.th-leaderboard-hero .th-home-hero__meta-label,
.th-leaderboard-hero .th-home-hero__meta-value {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.th-toolbar-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.th-toolbar-card__content {
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.th-leaderboard-card {
  border-radius: 18px;
}

.th-leaderboard-tabs {
  gap: 0.75rem;
}

.th-leaderboard-tabs .nav-link {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: none;
}

.th-leaderboard-tabs .nav-link.active {
  background: #166534;
  color: #ffffff;
}

.th-leaderboard-pane {
  min-height: 220px;
}

.th-leaderboard-footer-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.th-leaderboard-highlight {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.th-leaderboard-highlight__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  color: #16a34a;
  font-size: 1.25rem;
}

.th-leaderboard-highlight__icon--crown {
  background: linear-gradient(180deg, #fff7ed, #fef3c7);
  color: #d97706;
}

.th-leaderboard-highlight__copy {
  min-width: 0;
}

.th-leaderboard-highlight__eyebrow {
  font-size: 0.88rem;
  font-weight: 500;
  color: #f08a6a;
  line-height: 1.25;
}

.th-leaderboard-highlight__title {
  margin-top: 0.2rem;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
}

.th-leaderboard-table-wrap {
  border: 1px solid #edf0f3;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.th-leaderboard-table thead th {
  background: #f8fafc;
  color: #6b7280;
  font-size: 0.82rem;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem;
}

.th-leaderboard-table tbody td {
  padding: 1rem;
  border-color: #eef2f7;
}

:root {
  --th-row-highlight-bg: linear-gradient(180deg, rgba(22, 163, 74, 0.12), rgba(236, 253, 245, 0.92));
  --th-row-highlight-hover-bg: linear-gradient(180deg, rgba(22, 163, 74, 0.18), rgba(236, 253, 245, 0.95));
  --th-row-highlight-inset: inset 0 1px 0 rgba(22, 163, 74, 0.08), inset 4px 0 0 #16a34a;
  --th-row-highlight-pill-bg: #166534;
  --th-row-highlight-pill-fg: #ffffff;
}

.th-row-highlight--mine td,
.th-row-current-user td,
.th-team-row--mine td {
  background: var(--th-row-highlight-bg);
  box-shadow: var(--th-row-highlight-inset);
}

.th-usercell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.th-usercell__meta {
  min-width: 0;
}

.th-usercell__name {
  font-weight: 600;
  color: #111827;
}

.th-row-highlight-pill,
.th-team-own-pill,
.th-you {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: var(--th-row-highlight-pill-bg);
  color: var(--th-row-highlight-pill-fg);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-usercell__subtext {
  font-size: 0.82rem;
  color: #6b7280;
}

.th-points-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-weight: 700;
}

.th-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  font-weight: 700;
}

.th-rank-badge--gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.th-rank-badge--silver {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  color: #fff;
}

.th-rank-badge--bronze {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #fff;
}

.th-empty-state {
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  padding: 2rem 1.25rem;
  background: #f9fafb;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.th-empty-state__icon {
  font-size: 2rem;
}

.th-empty-state__title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.th-empty-state__text {
  color: #6b7280;
}

body.th-leaderboard-full-page-shell .th-global-progress-wrap {
  display: none;
}

.th-leaderboard-full-toolbar {
  position: sticky;
  top: 12px;
  z-index: 50;
}

.th-leaderboard-full-toolbar__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
}

.th-leaderboard-full-toolbar__summary {
  min-width: 0;
}

.th-leaderboard-full-toolbar__title {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
}

.th-leaderboard-full-toolbar__meta {
  margin-top: 0.15rem;
  font-size: 0.86rem;
  color: #64748b;
  overflow-wrap: anywhere;
}

.th-leaderboard-full-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.th-leaderboard-full-toolbar__controls .form-select {
  width: 190px;
  min-height: 46px;
  border-radius: 14px;
  border-color: #dbe4ee;
  box-shadow: none;
}

.th-leaderboard-full-toolbar__controls .btn {
  min-height: 46px;
  border-radius: 14px;
  padding-inline: 1rem;
}

.th-leaderboard-full-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.th-leaderboard-full-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.th-leaderboard-full-search .form-control {
  width: min(320px, 70vw);
  min-height: 44px;
  border-radius: 14px;
  border-color: #dbe4ee;
  box-shadow: none;
}

.th-leaderboard-full-search .btn {
  min-height: 44px;
  border-radius: 14px;
  padding-inline: 1rem;
}

.th-loading-state {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9e1ea;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
}

.th-verified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.86rem;
}

@media (max-width: 767.98px) {
  .th-toolbar-card__content {
    padding: 1rem;
  }

  .th-leaderboard-hero__content {
    padding: 1.5rem 1.1rem;
  }

  .th-leaderboard-hero .th-home-hero__meta {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .th-leaderboard-tabs {
    gap: 0.5rem;
  }

  .th-leaderboard-tabs .nav-link {
    width: 100%;
    text-align: center;
  }

  body.th-leaderboard-page-shell .th-leaderboard-card .card-body {
    padding: 1.1rem;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane > .d-flex.flex-wrap.justify-content-between.align-items-center.gap-2.mb-3 small {
    display: block;
    padding-inline: 0.1rem;
    font-size: 0.82rem;
    font-weight: 600;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane .page-link {
    min-width: 40px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border-color: #d9e1ea;
    color: #334155;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane .page-item.active .page-link {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
  }

  body.th-leaderboard-page-shell .th-leaderboard-pane .page-item.disabled .page-link {
    background: #f8fafc;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table-wrap,
  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap,
  section.th-team-page #standings-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table-wrap .table-responsive,
  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap .table-responsive,
  section.th-team-page #standings-table-wrap .table-responsive {
    overflow: visible;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table,
  body.th-leaderboard-full-page-shell .th-leaderboard-table,
  section.th-team-page #standings-table-wrap .th-team-table {
    display: block;
    width: 100%;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table thead,
  body.th-leaderboard-full-page-shell .th-leaderboard-table thead,
  section.th-team-page #standings-table-wrap .th-team-table thead {
    display: none;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody,
  section.th-team-page #standings-table-wrap .th-team-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr {
    display: grid;
    position: relative;
    width: 100%;
    overflow: hidden;
    row-gap: 0.78rem;
    column-gap: 0.8rem;
    padding: 0.95rem 1rem 0.9rem;
    border: 1px solid #e5ebf2;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr::before,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr::before,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td,
  section.th-team-page #standings-table-wrap .th-team-table tbody td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "rank . points"
      "user user user";
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(2) {
    grid-area: user;
    min-width: 0;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
    align-self: start;
  }

  body.th-leaderboard-page-shell .th-usercell,
  body.th-leaderboard-full-page-shell .th-usercell {
    min-width: 0;
    gap: 0.72rem;
    padding-top: 0.78rem;
    border-top: 1px solid #edf2f7;
    color: inherit;
  }

  body.th-leaderboard-page-shell .th-avatar,
  body.th-leaderboard-full-page-shell .th-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    font-size: 0.88rem;
    background: linear-gradient(180deg, #f8fafc, #e8eef5);
  }

  body.th-leaderboard-page-shell .th-usercell__name,
  body.th-leaderboard-full-page-shell .th-usercell__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
    font-size: 1rem;
    font-weight: 700;
  }

  body.th-leaderboard-page-shell .th-usercell__subtext,
  body.th-leaderboard-full-page-shell .th-usercell__subtext {
    margin-top: 0.18rem;
    color: #64748b !important;
  }

  body.th-leaderboard-page-shell .th-rank-badge,
  body.th-leaderboard-full-page-shell .th-rank-badge,
  section.th-team-page #standings-table-wrap .th-rank-badge {
    min-width: 58px;
    padding: 0.52rem 0.78rem;
    border: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc, #edf2f7);
    box-shadow: none;
  }

  body.th-leaderboard-page-shell .th-rank-badge--gold,
  body.th-leaderboard-full-page-shell .th-rank-badge--gold,
  section.th-team-page #standings-table-wrap .th-rank-badge--gold {
    border-color: rgba(245, 158, 11, 0.24);
  }

  body.th-leaderboard-page-shell .th-rank-badge--silver,
  body.th-leaderboard-full-page-shell .th-rank-badge--silver,
  section.th-team-page #standings-table-wrap .th-rank-badge--silver {
    border-color: rgba(148, 163, 184, 0.24);
  }

  body.th-leaderboard-page-shell .th-rank-badge--bronze,
  body.th-leaderboard-full-page-shell .th-rank-badge--bronze,
  section.th-team-page #standings-table-wrap .th-rank-badge--bronze {
    border-color: rgba(180, 83, 9, 0.24);
  }

  body.th-leaderboard-page-shell .th-points-pill,
  body.th-leaderboard-full-page-shell .th-points-pill,
  section.th-team-page #standings-table-wrap .th-points-pill {
    min-width: 78px;
    padding: 0.48rem 0.82rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
    box-shadow: none;
  }

  body.th-leaderboard-full-page-shell .th-verified-pill {
    min-width: 0;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
    font-size: 0.79rem;
    letter-spacing: 0.01em;
  }

  body.th-leaderboard-page-shell .th-row-highlight-pill,
  body.th-leaderboard-page-shell .th-you,
  body.th-leaderboard-full-page-shell .th-row-highlight-pill,
  body.th-leaderboard-full-page-shell .th-you,
  section.th-team-page #standings-table-wrap .th-team-own-pill {
    padding: 0.22rem 0.56rem;
    font-size: 0.7rem;
    letter-spacing: 0.03em;
    background: #166534;
    color: #ffffff;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr.th-row-current-user {
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(238, 251, 243, 0.96));
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.1);
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr.th-row-current-user::before {
    background: #16a34a;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-full-toolbar {
    position: static;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-card .card-body {
    padding: 1.1rem;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-full-toolbar__body,
  body.th-leaderboard-full-page-shell .th-leaderboard-full-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-full-toolbar__controls,
  body.th-leaderboard-full-page-shell .th-leaderboard-full-search {
    width: 100%;
    justify-content: stretch;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-full-toolbar__controls .form-select,
  body.th-leaderboard-full-page-shell .th-leaderboard-full-toolbar__controls .btn,
  body.th-leaderboard-full-page-shell .th-leaderboard-full-search .form-control,
  body.th-leaderboard-full-page-shell .th-leaderboard-full-search .btn {
    width: 100%;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-full-head #rangeText {
    display: block;
    padding-inline: 0.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    overflow-wrap: anywhere;
  }

  body.th-leaderboard-full-page-shell #lbPager .pagination {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  body.th-leaderboard-full-page-shell #lbPager .page-link {
    min-width: 40px;
    padding: 0.42rem 0.72rem;
    border-radius: 999px;
    border-color: #d9e1ea;
    color: #334155;
  }

  body.th-leaderboard-full-page-shell #lbPager .page-item.active .page-link {
    background: #166534;
    border-color: #166534;
    color: #ffffff;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap {
    border: none;
    background: transparent;
    overflow: visible;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap .table-responsive {
    overflow: visible;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table {
    display: block;
    width: 100%;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table thead {
    display: none;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "rank . points"
      "user user user"
      "verified verified verified";
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(2) {
    grid-area: user;
    min-width: 0;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
    align-self: start;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(4) {
    grid-area: verified;
    justify-self: start;
    text-align: left !important;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr.th-row-current-user {
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(238, 251, 243, 0.96));
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.1);
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr.th-row-current-user::before {
    background: #16a34a;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody tr {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "rank . points"
      "team team team"
      "reports members members";
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(2) {
    grid-area: team;
    min-width: 0;
    padding-top: 0.78rem !important;
    border-top: 1px solid #edf2f7 !important;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
    align-self: start;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4),
  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5) {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1rem;
    min-width: 108px;
    padding: 0.52rem 0.76rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: left !important;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4) {
    grid-area: reports;
    justify-self: start;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5) {
    grid-area: members;
    justify-self: end;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4)::before,
  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5)::before {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4)::before {
    content: "Reports";
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5)::before {
    content: "Members";
  }

  section.th-team-page #standings-table-wrap .th-team-name-line {
    gap: 0.45rem;
  }

  section.th-team-page #standings-table-wrap .th-team-name-line a {
    font-size: 1rem;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  section.th-team-page #standings-table-wrap .th-team-name-sub {
    margin-top: 0.24rem;
    color: #64748b;
  }

  section.th-team-page #standings-table-wrap .th-team-row--mine {
    border-color: rgba(22, 163, 74, 0.3);
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(238, 251, 243, 0.96));
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.1);
  }

  section.th-team-page #standings-table-wrap .th-team-row--mine::before {
    background: #16a34a;
  }
}

/* =========================
   PROFILE PAGE
========================= */
.th-profile-hero {
  background: linear-gradient(to right, #166534, #15803d);
  border-radius: 18px;
  padding: 2rem;
  color: white;
  margin-bottom: 1.5rem;
}

.th-profile-hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.th-profile-hero__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.th-profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.75rem;
}

.th-profile-hero__left {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.th-profile-avatar-lg {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: white;
  color: #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  overflow: hidden;
}

.th-profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.th-profile-name {
  margin: 0;
  font-weight: 700;
}

.th-profile-meta {
  font-size: 0.85rem;
  opacity: 0.85;
}

.th-profile-stat {
  text-align: right;
}

.th-profile-stat__label {
  font-size: 0.75rem;
  display: block;
  opacity: 0.8;
}

.th-profile-stat__value {
  font-size: 1.4rem;
  font-weight: 700;
}

.th-profile-stat__value--sm {
  font-size: 1.05rem;
}

.th-profile-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.th-profile-role--team {
  background: rgba(255, 255, 255, 0.08);
}

.th-rank-settings {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #f9fafb;
}

/* MOBILE */
@media (max-width: 768px) {
  .th-profile-hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .th-profile-stat {
    text-align: left;
  }

  .th-profile-hero__right {
    width: 100%;
    align-items: flex-start;
  }

  .th-profile-hero__stats {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .th-profile-hero__actions {
    justify-content: flex-start;
  }
}

/* =========================
   ADMIN DASHBOARD
========================= */
.th-admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e5e7eb;
}

.th-admin-hero--image {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(37, 26, 34, 0.72), rgba(85, 88, 57, 0.55)),
    var(--admin-hero-image);
  background-size: cover;
  background-position: center;
  border-color: var(--th-palette-lime);
}

.th-admin-hero--image .th-section-kicker,
.th-admin-hero--image .th-admin-title {
  color: #ffffff;
}

.th-admin-hero--image p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.th-admin-title {
  margin: 0;
  font-weight: 700;
}

.th-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.th-admin-stat {
  background: white;
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid #e5e7eb;
}

.th-admin-stat__icon {
  font-size: 1.5rem;
}

.th-admin-stat__label {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

.th-admin-stat__value {
  font-weight: 700;
  margin: 0;
}

/* TABLE */
.th-admin-table th {
  font-size: 0.8rem;
  color: #6b7280;
}

.th-admin-table td {
  font-size: 0.9rem;
}

/* STATUS BADGE */
.th-status {
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.th-status--pending {
  background: #fef3c7;
  color: #92400e;
}

.th-status--approved {
  background: #dcfce7;
  color: #166534;
}

.th-status--rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* MOBILE */
@media (max-width: 768px) {
  .th-admin-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* =========================
   ADMIN REVIEW PAGE
========================= */
.th-review-card {
  border-radius: 18px;
}

.th-review-card__media {
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.th-review-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.th-review-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.th-review-score-pill {
  min-width: 105px;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.th-review-score-pill span {
  font-size: 0.75rem;
  color: #6b7280;
}

.th-review-score-pill strong {
  font-size: 1rem;
  color: #111827;
}

.th-review-panel {
  height: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #f9fafb;
  padding: 1rem;
}

.th-review-panel__body {
  font-size: 0.92rem;
  color: #111827;
}

.th-review-bonus-box {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
  padding: 1rem;
}

.pagination .page-link {
  border-radius: 10px;
  margin-right: 0.35rem;
  border-color: #e5e7eb;
  color: #374151;
}

.pagination .page-item.active .page-link {
  background: #166534;
  border-color: #166534;
}

@media (max-width: 991.98px) {
  .th-review-card__image {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .th-review-scores {
    width: 100%;
  }

  .th-review-score-pill {
    flex: 1 1 30%;
    min-width: unset;
  }
}

/* =========================
   GONGPHELHUB FEED
========================= */
.th-gh-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.th-gh-header__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eaf2ff;
  color: #3b82f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.th-gh-title {
  font-size: clamp(1.7rem, 2.7vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.th-gh-page {
  max-width: 1240px;
}

.th-gh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.th-gh-stat-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.th-gh-stat-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.th-gh-stat-card__icon--blue {
  background: #eaf2ff;
  color: #3b82f6;
}

.th-gh-stat-card__icon--green {
  background: #e8faf1;
  color: #10b981;
}

.th-gh-stat-card__icon--orange {
  background: #fff3e8;
  color: #f59e0b;
}

.th-gh-stat-card__label {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.th-gh-stat-card__value {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.th-gh-composer,
.th-gh-filter,
.th-gh-post {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.th-gh-composer,
.th-gh-filter,
.th-gh-feed {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.th-gh-composer textarea {
  resize: vertical;
}

.th-gh-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #1f8a5b;
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-gh-post__title {
  margin: 0 0 0.45rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: #111827;
}

.th-gh-post__message {
  color: #334155;
  white-space: pre-wrap;
  line-height: 1.65;
  margin: 0;
}

.th-gh-post__message.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-gh-post__toggle {
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: #166534;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0;
}

.th-gh-post__image-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
}

.th-gh-post__image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.th-gh-post__meta {
  border-top: 1px solid #e5e7eb;
  padding-top: 0.85rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .th-gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-gh-stat-card__value {
    font-size: 1.7rem;
  }
}

@media (max-width: 575.98px) {
  .th-gh-stats {
    grid-template-columns: 1fr;
  }

  .th-gh-post .card-body,
  .th-gh-composer .card-body {
    padding: 1rem;
  }

  .th-gh-post__meta {
    gap: 0.7rem;
    font-size: 0.85rem;
  }
}

/* =========================
   DANGKHA PAGE
========================= */
.th-dangkha-hero {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 320px;
  margin-bottom: 1.5rem;
  background:
    linear-gradient(rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.55)),
    url("images/dangkha-hero.jpeg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.th-dangkha-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.55), rgba(21, 128, 61, 0.2));
}

.th-dangkha-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 2.5rem 1.5rem;
}

.th-dangkha-title {
  color: #fff;
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.th-dangkha-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.th-dangkha-card,
.th-dangkha-side-card {
  border-radius: 18px;
}

.th-dangkha-banner {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #f0fdf4, #ecfdf5);
  border: 1px solid #d1fae5;
}

.th-dangkha-banner__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.th-dangkha-points {
  display: grid;
  gap: 1rem;
}

.th-dangkha-point {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fafafa;
}

.th-dangkha-point__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.th-dangkha-point__title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}

.th-dangkha-point__text {
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.6;
}

.th-dangkha-steps {
  display: grid;
  gap: 0.9rem;
}

.th-dangkha-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 0.95rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.th-dangkha-step__num {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #166534;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .th-dangkha-title {
    font-size: 1.8rem;
  }

  .th-dangkha-hero {
    min-height: 280px;
  }

  .th-dangkha-hero__content {
    padding: 2rem 1rem;
  }
}

/* =========================
   PALETTE OVERRIDE (from user image)
   #BAC2D9  #DCE4F2  #24A65C  #BF7D65  #0D0D0D
========================= */
:root {
  --th-palette-soft-slate: #BAC2D9;
  --th-palette-light: #DCE4F2;
  --th-palette-green: #24A65C;
  --th-palette-tan: #BF7D65;
  --th-palette-dark: #0D0D0D;

  /* aliases used throughout current stylesheet */
  --th-palette-olive: var(--th-palette-green);
  --th-palette-lime: var(--th-palette-soft-slate);
  --th-palette-deep-olive: var(--th-palette-tan);
}

body.th-body {
  background: #DCE4F2;
  color: var(--th-palette-dark);
}

.th-navbar {
  background: linear-gradient(to right, var(--th-palette-dark), var(--th-palette-green));
  border-bottom-color: var(--th-palette-lime);
}

.th-footer {
  background: var(--th-palette-dark);
  color: rgba(220, 228, 242, 0.92);
}

.th-footer a {
  color: var(--th-palette-light);
}

.th-footer a:hover {
  color: #ffffff;
}

.th-surface-card,
.th-toolbar-card,
.th-admin-stat,
.th-feed-hero,
.th-location-panel,
.th-review-panel,
.th-review-bonus-box,
.th-review-score-pill,
.th-empty-state,
.th-upload-box {
  background: #ffffff;
  border-color: var(--th-palette-lime);
}

.form-control,
.form-select,
.th-radio-card,
.pagination .page-link {
  border-color: var(--th-palette-lime);
}

.form-control:focus,
.form-select:focus,
.th-radio-card:hover,
.th-upload-box:hover {
  border-color: var(--th-palette-olive);
  box-shadow: 0 0 0 2px rgba(36, 166, 92, 0.2);
}

.btn-primary,
.th-dangkha-banner__icon,
.th-dangkha-step__num {
  background: var(--th-palette-olive);
}

.btn-primary:hover {
  background: var(--th-palette-lime);
}

.th-leaderboard-tabs .nav-link {
  background: var(--th-palette-light);
  color: var(--th-palette-deep-olive);
}

.th-leaderboard-tabs .nav-link.active,
.pagination .page-item.active .page-link {
  background: var(--th-palette-olive);
  border-color: var(--th-palette-olive);
  color: #ffffff;
}

.th-points-pill {
  background: var(--th-palette-light);
  color: var(--th-palette-deep-olive);
}

.th-rank-badge {
  background: var(--th-palette-light);
  color: var(--th-palette-dark);
}

.th-status--pending {
  background: rgba(220, 228, 242, 0.9);
  color: var(--th-palette-deep-olive);
}

.th-status--approved {
  background: rgba(36, 166, 92, 0.2);
  color: var(--th-palette-deep-olive);
}

.th-status--rejected {
  background: rgba(13, 13, 13, 0.12);
  color: var(--th-palette-dark);
}

.th-section-kicker,
.th-stat__label,
.th-progress-item__label,
.th-usercell__subtext,
.th-admin-stat__label,
.th-review-score-pill span,
.th-empty-state__text,
.th-dangkha-point__text {
  color: var(--th-palette-deep-olive);
}

/* =========================
   AUTH PAGES ENHANCEMENTS
========================= */
.auth-wrap {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.auth-card {
  border-radius: 18px;
  overflow: hidden;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-side {
  min-height: 460px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.auth-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 13, 13, 0.55), rgba(191, 125, 101, 0.35));
}

.auth-side-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 2rem;
  max-width: 28rem;
}

.auth-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 0.5rem;
}

.auth-form {
  padding: 2rem;
  background: #fff;
}

.auth-helper-text {
  color: var(--th-palette-deep-olive);
  font-size: 0.9rem;
  margin-bottom: 1.15rem;
}

.auth-submit-btn {
  min-height: 44px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-side { min-height: 220px; }
}

/* =========================
   ADMIN DASHBOARD V2
========================= */
.th-admin2{
  display: grid;
  gap: 1.25rem;
}

.th-admin2-hero{
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(13,13,13,0.82) 0%, rgba(36,166,92,0.68) 100%),
    url("images/gongphelhub-hero.jpeg");
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.th-admin2-kicker{
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .9;
  margin-bottom: .35rem;
}

.th-admin2-title{
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
}

.th-admin2-subtitle{
  margin-top: .4rem;
  max-width: 42rem;
  opacity: .92;
  font-size: .92rem;
}

.th-admin2-kpis{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .9rem;
}

.th-admin2-kpi{
  background: #fff;
  border: 1px solid rgba(13,13,13,.08);
  border-radius: 14px;
  padding: .95rem 1rem;
  box-shadow: 0 6px 18px rgba(13,13,13,.05);
}

.th-admin2-kpi--pending{ border-top: 3px solid #BF7D65; }
.th-admin2-kpi--approved{ border-top: 3px solid #24A65C; }
.th-admin2-kpi--rejected{ border-top: 3px solid #0D0D0D; }

.th-admin2-kpi__label{
  font-size: .78rem;
  color: #6b7280;
}

.th-admin2-kpi__value{
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: .35rem;
  color: #0D0D0D;
}

.th-admin2-kpi__link,
.th-admin2-kpi__muted{
  display: inline-block;
  margin-top: .5rem;
  font-size: .78rem;
}

.th-admin2-kpi__link{
  color: #24A65C;
  font-weight: 600;
}

.th-admin2-kpi__muted{
  color: #8a93a8;
}

.th-admin2-list{
  display: grid;
  gap: .6rem;
}

.th-admin2-item{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  border: 1px solid rgba(13,13,13,.08);
  border-radius: 12px;
  padding: .7rem .75rem;
  background: #fff;
  color: inherit;
  transition: border-color .18s ease, transform .14s ease;
}

.th-admin2-item:hover{
  border-color: #BAC2D9;
  transform: translateY(-1px);
}

.th-admin2-item__title{
  font-size: .92rem;
  font-weight: 600;
  color: #0D0D0D;
}

.th-admin2-item__meta{
  font-size: .78rem;
  color: #6b7280;
}

@media (max-width: 1100px){
  .th-admin2-kpis{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .th-admin2-kpis{ grid-template-columns: 1fr; }
}

/* =========================
   ADMIN SHELL (sidebar + header)
   Matches dashboard reference layout
========================= */
:root {
  --admin-bg: #f3f4f8;
  --admin-surface: #ffffff;
  --admin-border: #e8ebf2;
  --admin-text: #0f172a;
  --admin-text-soft: #64748b;
  --admin-primary: #1a7f4a;
  --admin-primary-soft: #e3f4eb;
  --admin-orange: #e7893c;
  --admin-orange-soft: #fff1e5;
  --admin-blue: #3b7dd6;
  --admin-blue-soft: #e8f1fb;
  --admin-green: #22a06b;
  --admin-green-soft: #e6f7ef;
  --admin-shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
  --admin-shadow-md: 0 16px 40px rgba(15, 23, 42, 0.08);
}

body.th-admin-shell-page .th-navbar,
body.th-admin-shell-page .th-footer,
body.th-admin-shell-page .th-live-banner {
  display: none !important;
}

body.th-admin-shell-page.th-body {
  background: var(--admin-bg) !important;
}

body.th-admin-shell-page #th-main-content.th-main,
body.th-admin-shell-page main.th-main {
  max-width: 100% !important;
  width: 100%;
  padding: 0 !important;
}

body.th-admin-shell-page.th-body.d-flex {
  min-height: 100vh;
}

.th-admin-app {
  height: 100vh;
  display: flex;
  gap: 0;
  background: var(--admin-bg);
  overflow: hidden;
}

.th-admin-sidebar {
  width: 288px;
  flex-shrink: 0;
  background: var(--admin-surface);
  border-right: 1px solid var(--admin-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.th-admin-sidebar__top {
  padding: 28px 24px 22px;
  border-bottom: 1px solid var(--admin-border);
}

.th-admin-sidebar__top,
.th-admin-sidebar__footer {
  background: var(--admin-surface);
}

.th-admin-brand {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--admin-primary);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.th-admin-brand-sub {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--admin-text-soft);
  font-weight: 500;
}

.th-admin-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-admin-sidebar__close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--admin-border);
  background: #f8fafc;
  color: #475569;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.th-admin-sidebar__close:hover {
  background: #f1f5f9;
}

.th-admin-nav {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.th-admin-nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  min-height: 46px;
}

.th-admin-nav a span {
  line-height: 1.15;
}

.th-admin-nav a:hover {
  background: #f1f5f4;
  color: var(--admin-primary);
}

.th-admin-nav a.active {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
}

.th-admin-nav__icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #64748b;
}

.th-admin-nav a span:last-child {
  flex: 1;
  min-width: 0;
}

.th-admin-nav a.active .th-admin-nav__icon,
.th-admin-nav a:hover .th-admin-nav__icon {
  color: var(--admin-primary);
}

.th-admin-nav__icon i {
  font-size: 1.05rem;
}

.th-admin-sidebar__footer {
  margin-top: auto;
  border-top: 1px solid var(--admin-border);
  padding: 20px 18px 24px;
}

.th-admin-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-admin-mobile-logout {
  margin-top: 14px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(153, 27, 27, 0.22);
  background: #fff5f5;
  color: #991b1b;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  min-height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.th-admin-mobile-logout:hover {
  color: #7f1d1d;
  background: #ffecec;
}

.th-admin-user__meta {
  min-width: 0;
  flex: 1;
}

.th-admin-user__menu {
  flex-shrink: 0;
}

.th-admin-kebab {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  background: #fff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.th-admin-kebab:hover {
  background: #f1f5f7;
  border-color: #dbe3ee;
}

.th-admin-kebab i {
  font-size: 1.1rem;
}

.th-admin-user__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.th-admin-user__name {
  margin: 0;
  font-weight: 700;
  color: var(--admin-text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.th-admin-user__email {
  margin: 4px 0 0;
  color: var(--admin-text-soft);
  font-size: 0.8rem;
  line-height: 1.3;
  word-break: break-word;
}

.th-admin-user__name,
.th-admin-user__email {
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.th-admin-topbar {
  min-height: 76px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 28px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.th-admin-search-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 820px;
}

.th-admin-menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #dfe3ea;
  background: #f8fafc;
  color: #475569;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.th-admin-menu-toggle:hover {
  background: #ffffff;
  border-color: #cfd6e0;
}

.th-admin-sidebar-overlay {
  display: none;
  border: 0;
}

.th-admin-search {
  flex: 1;
  max-width: none;
  position: relative;
}

.th-admin-search__icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  display: flex;
  pointer-events: none;
}

.th-admin-search input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #f1f3f7;
  padding: 0 20px 0 52px;
  font-size: 0.95rem;
  color: var(--admin-text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.th-admin-search input::placeholder {
  color: #94a3b8;
}

.th-admin-search input:focus {
  border-color: #b8d4c4;
  box-shadow: 0 0 0 4px rgba(26, 127, 74, 0.12);
  background: #fff;
}

.th-admin-filter-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #f1f3f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.th-admin-filter-toggle:hover {
  background: #fff;
  border-color: #cfd6e0;
}

.th-admin-filter-toggle[aria-pressed="true"] {
  background: var(--admin-primary-soft);
  border-color: #b8d4c4;
  color: var(--admin-primary);
}

.th-admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.th-admin-topbar__actions i {
  font-size: 1.05rem;
}

.th-admin-bell {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s ease;
}

.th-admin-bell:hover {
  background: #f1f3f7;
  color: var(--admin-text);
}

.th-admin-bell__dot {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--admin-orange);
  border: 2px solid #fff;
}

.th-admin-profile-chip {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--admin-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.th-admin-profile-chip:hover {
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 14px rgba(26, 127, 74, 0.35);
}

.th-admin-content {
  flex: 1;
  padding: 28px 32px 40px;
  overflow-y: auto;
  overflow-x: hidden;
}

.th-admin-page-header {
  margin-bottom: 24px;
}

.th-admin-page-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: #0c1222;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

.th-admin-page-subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--admin-text-soft);
}

.th-admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 28px;
}

.th-admin-kpi {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: var(--admin-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.th-admin-kpi__label {
  margin: 0 0 8px;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 500;
}

.th-admin-kpi__value {
  margin: 0;
  color: #0c1222;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.th-admin-kpi__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.th-admin-kpi--green .th-admin-kpi__icon {
  background: var(--admin-primary-soft);
  color: var(--admin-primary);
}

.th-admin-kpi--orange .th-admin-kpi__icon {
  background: var(--admin-orange-soft);
  color: var(--admin-orange);
}

.th-admin-kpi--mint .th-admin-kpi__icon {
  background: var(--admin-green-soft);
  color: var(--admin-green);
}

.th-admin-kpi--blue .th-admin-kpi__icon {
  background: var(--admin-blue-soft);
  color: var(--admin-blue);
}

.th-admin-panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 20px;
  box-shadow: var(--admin-shadow-sm);
  padding: 24px 28px 28px;
}

.th-admin-panel__title {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0c1222;
}

.th-admin-map-controls .th-admin-map-select {
  width: min(220px, 100%);
  min-width: 180px;
  padding-right: 2.2rem;
  background-position: right 0.65rem center;
  text-overflow: ellipsis;
}

.th-admin-chart-box {
  border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 0%, rgba(22, 163, 74, 0.08), rgba(255, 255, 255, 0));
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 14px;
  min-height: 260px;
}

.th-admin-activity-viz {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.th-admin-activity-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.th-admin-activity-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe6f3;
  background: #ffffff;
}

.th-admin-activity-pill span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.th-admin-activity-pill strong {
  color: #0f172a;
  font-size: 0.96rem;
  font-weight: 800;
}

.th-admin-activity-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.th-admin-activity-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid #dce6f2;
  background: #f8fafc;
  outline: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.th-admin-activity-day.is-peak {
  border-color: rgba(22, 163, 74, 0.45);
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.12), rgba(255, 255, 255, 0.95));
}

.th-admin-activity-column {
  width: 24px;
  height: 118px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  padding: 2px;
  display: flex;
  align-items: flex-end;
}

.th-admin-activity-fill {
  width: 100%;
  height: var(--fill, 10%);
  border-radius: inherit;
  background: linear-gradient(180deg, #33c978 0%, #13834a 100%);
  box-shadow: 0 8px 16px rgba(19, 131, 74, 0.2);
  transition: height 0.3s ease, filter 0.2s ease, transform 0.2s ease;
}

.th-admin-activity-count {
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

.th-admin-activity-day-label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #1f2937;
}

.th-admin-activity-date-label {
  font-size: 0.74rem;
  color: #64748b;
}

.th-admin-activity-day::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  color: #f8fafc;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.35);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.th-admin-activity-day:hover,
.th-admin-activity-day:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(22, 163, 74, 0.55);
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.2);
}

.th-admin-activity-day:hover .th-admin-activity-fill,
.th-admin-activity-day:focus-visible .th-admin-activity-fill {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.th-admin-activity-day:hover::after,
.th-admin-activity-day:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .th-admin-activity-day,
  .th-admin-activity-fill,
  .th-admin-activity-day::after {
    transition: none;
  }
}

/* Dashboard widgets under chart */
.th-admin-below-chart {
  display: grid;
  grid-template-columns: 1.45fr 0.9fr;
  gap: 22px;
  margin-top: 22px;
}

.th-admin-right-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.th-admin-table-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
}

.th-admin-table-inner {
  min-width: 100%;
}

.th-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.th-admin-table thead th {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--admin-border);
  background: #f8fafc;
}

.th-admin-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: middle;
}

.th-admin-mini-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.th-admin-circle-action {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ee;
  background: #ffffff;
  cursor: pointer;
  padding: 0;
}

.th-admin-circle-action--approve {
  color: var(--admin-primary);
  border-color: rgba(36, 166, 92, 0.35);
}

.th-admin-circle-action--reject {
  color: #991b1b;
  border-color: rgba(191, 125, 101, 0.35);
}

.th-admin-xscroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.th-admin-contrib-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 100%;
}

.th-admin-contrib-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.th-admin-contrib-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-admin-contrib-name {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 700;
  color: #0c1222;
  white-space: nowrap;
}

.th-admin-contrib-points {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.th-admin-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 100%;
}

.th-admin-quick-action {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid #e8ebf2;
  background: #ffffff;
  transition: transform 0.12s ease, border-color 0.12s ease;
  min-width: 0;
}

.th-admin-quick-action i {
  color: var(--admin-primary);
}

.th-admin-quick-action:hover {
  border-color: var(--admin-border);
  transform: translateY(-1px);
}

.th-admin-quick-action span {
  font-weight: 700;
  color: #0c1222;
  white-space: nowrap;
}

.th-admin-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #1e293b;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  z-index: 1080;
  transition: transform 0.15s ease, background 0.15s ease;
}

.th-admin-fab:hover {
  background: #0f172a;
  color: #fff !important;
  transform: scale(1.06);
}

.th-admin-app--compact .th-admin-content {
  padding-left: 28px;
  padding-right: 28px;
}

@media (max-width: 1199.98px) {
  .th-admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .th-admin-app {
    position: relative;
    height: 100dvh;
  }

  .th-admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(82vw, 320px);
    max-width: 320px;
    border-right: 1px solid var(--admin-border);
    border-bottom: none;
    box-shadow: var(--admin-shadow-md);
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    z-index: 1050;
    height: 100dvh;
  }

  .th-admin-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 16px 10px;
    gap: 6px;
  }

  .th-admin-nav a {
    width: 100%;
    min-width: 0;
    flex: none;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .th-admin-sidebar__top {
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
  }

  .th-admin-brand-row {
    gap: 8px;
    padding: 0 6px;
  }

  .th-admin-brand {
    font-size: 2rem;
  }

  .th-admin-sidebar__close {
    display: inline-flex;
  }

  .th-admin-brand-sub {
    margin-left: 48px;
  }

  .th-admin-sidebar__footer {
    display: block;
    padding: 18px 16px 20px;
  }

  .th-admin-user__menu {
    display: none;
  }

  .th-admin-mobile-logout {
    display: inline-flex;
  }

  .th-admin-main {
    height: 100dvh;
  }

  .th-admin-topbar {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 12px;
    min-height: 66px;
  }

  .th-admin-search-wrap {
    max-width: none;
    width: auto;
    min-width: 0;
    gap: 10px;
  }

  .th-admin-menu-toggle {
    display: inline-flex;
  }

  .th-admin-search input {
    height: 40px;
    padding-left: 44px;
    font-size: 0.92rem;
  }

  .th-admin-search__icon {
    left: 16px;
  }

  .th-admin-topbar__actions {
    gap: 6px;
    flex-shrink: 0;
  }

  .th-admin-bell {
    width: 40px;
    height: 40px;
  }

  .th-admin-profile-chip {
    width: 40px;
    height: 40px;
    font-size: 0.96rem;
  }

  .th-admin-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1040;
  }

  body.th-admin-shell-page.th-admin-sidebar-open {
    overflow: hidden;
  }

  body.th-admin-shell-page.th-admin-sidebar-open .th-admin-sidebar {
    transform: translateX(0);
  }

  body.th-admin-shell-page.th-admin-sidebar-open .th-admin-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .th-admin-content {
    padding: 20px 16px 28px;
  }

  .th-admin-table-wrap {
    padding-bottom: 2px;
    overflow-x: scroll;
  }

  .th-admin-table-inner {
    min-width: fit-content;
  }

  .th-admin-table {
    width: max-content;
    min-width: 640px;
  }

  .th-admin-table thead th,
  .th-admin-table td {
    white-space: nowrap;
  }

  .th-admin-activity-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .th-admin-activity-day {
    min-width: 86px;
    flex: 0 0 86px;
  }

  .th-admin-activity-column {
    height: 104px;
  }

  .th-admin-xscroll {
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
  }

  .th-admin-contrib-list {
    min-width: 500px;
  }

  .th-admin-quick-actions {
    gap: 12px;
  }

  .th-admin-xscroll--quick-actions {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .th-admin-xscroll--quick-actions .th-admin-quick-actions {
    min-width: 100%;
  }

  .th-admin-xscroll--quick-actions .th-admin-quick-action {
    gap: 10px;
  }

  .th-admin-xscroll--quick-actions .th-admin-quick-action span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    white-space: normal;
  }

  .th-admin-below-chart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .th-admin-kpis {
    grid-template-columns: 1fr;
  }

  .th-admin-map-controls {
    align-items: stretch !important;
  }

  .th-admin-map-controls .th-admin-map-select {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .th-admin-kpi__value {
    font-size: 2.1rem;
  }

  .th-admin-sidebar {
    width: min(88vw, 320px);
  }

  .th-admin-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .th-admin-chart-box {
    padding: 10px;
  }

  .th-admin-activity-summary {
    gap: 8px;
  }

  .th-admin-activity-pill {
    padding: 8px 10px;
  }

  .th-admin-activity-pill span {
    font-size: 0.68rem;
  }

  .th-admin-activity-pill strong {
    font-size: 0.85rem;
  }

  .th-admin-activity-day {
    min-width: 78px;
    flex-basis: 78px;
    padding: 8px 6px;
  }

  .th-admin-activity-column {
    width: 20px;
    height: 92px;
  }

  .th-admin-activity-count {
    font-size: 0.92rem;
  }

  .th-admin-activity-day-label {
    font-size: 0.78rem;
  }

  .th-admin-activity-date-label {
    font-size: 0.68rem;
  }

  .th-admin-activity-day::after {
    display: none;
  }

  /* iPhone-size fallback: keep all Recent Reports columns visible */
  .th-admin-table-inner {
    min-width: 100%;
  }

  .th-admin-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .th-admin-table thead th,
  .th-admin-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 10px 8px;
    font-size: 0.83rem;
  }

  .th-admin-table th:nth-child(1),
  .th-admin-table td:nth-child(1) {
    width: 20%;
  }

  .th-admin-table th:nth-child(2),
  .th-admin-table td:nth-child(2) {
    width: 17%;
  }

  .th-admin-table th:nth-child(3),
  .th-admin-table td:nth-child(3) {
    width: 25%;
  }

  .th-admin-table th:nth-child(4),
  .th-admin-table td:nth-child(4) {
    width: 20%;
  }

  .th-admin-table th:nth-child(5),
  .th-admin-table td:nth-child(5) {
    width: 18%;
  }

  .th-admin-mini-actions {
    justify-content: center;
    gap: 6px;
  }

  .th-admin-circle-action {
    width: 30px;
    height: 30px;
  }

  .th-status {
    display: inline-block;
    font-size: 0.7rem;
    line-height: 1.15;
    padding: 0.24rem 0.42rem;
  }
}

/* ---------- Unified avatars (leaderboard/feed) ---------- */
.th-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.86rem;
  flex: 0 0 40px;
  overflow: hidden;
}

.th-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Topbar streak + notifications ---------- */
.th-admin-streak-pill {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #f7c873;
  background: linear-gradient(135deg, #fff7e6, #ffedd5);
  color: #9a3412;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.th-admin-streak-pill:hover {
  color: #7c2d12;
}

.th-notif-menu {
  width: min(94vw, 360px);
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  overflow: hidden;
}

.th-admin-bell {
  position: relative;
}

.th-admin-bell__count {
  position: absolute;
  right: -2px;
  top: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.th-notif-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5edf4;
  background: #f8fbff;
}

.th-notif-menu__title {
  font-weight: 700;
  color: #0f172a;
}

.th-notif-menu__sub {
  font-size: 0.78rem;
  color: #64748b;
}

.th-notif-menu__list {
  max-height: 360px;
  overflow: auto;
}

.th-notif-menu__footer {
  border-top: 1px solid #e5edf4;
  background: #f8fbff;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.th-notif-menu__footer .btn {
  min-width: 62px;
}

.th-notif-menu__page {
  text-align: center;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
}

.th-notif-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  padding: 12px 14px;
  background: #ffffff;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.th-notif-item:last-child {
  border-bottom: 0;
}

.th-notif-item.is-unread {
  background: #f0f9ff;
}

.th-notif-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}

.th-notif-item__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-notif-item__title {
  font-weight: 600;
  color: #0f172a;
}

.th-notif-item__body {
  color: #475569;
  font-size: 0.86rem;
}

.th-notif-item__time {
  color: #94a3b8;
  font-size: 0.75rem;
}

.th-notif-empty {
  padding: 16px 14px;
  color: #64748b;
  font-size: 0.9rem;
}

.th-notif-toast-stack {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(96vw, 460px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.th-notif-toast {
  width: 100%;
  pointer-events: auto;
  border: 1px solid #dbe8f5;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  color: #0f172a;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
  text-align: left;
  padding: 10px 12px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  animation: thNotifToastIn 0.2s ease;
}

.th-notif-toast.is-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.th-notif-toast__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.th-notif-toast__icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.th-notif-toast__title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}

.th-notif-toast__close {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.th-notif-toast__close:hover {
  background: #f1f5f9;
  color: #334155;
}

.th-notif-toast__body {
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.35;
}

.th-notif-toast__time {
  color: #94a3b8;
  font-size: 0.74rem;
}

@keyframes thNotifToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Global monthly progress ---------- */
.th-global-progress-card {
  border: 1px solid #cbe4d3;
  background: linear-gradient(120deg, #ecfdf3, #f6fff9);
  border-radius: 18px;
  padding: 18px;
}

.th-global-progress-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.th-global-progress-card__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.73rem;
  color: #047857;
  font-weight: 700;
}

.th-global-progress-card__title {
  font-size: 1.15rem;
  color: #0f172a;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.3em;
}

.th-global-progress-card__title-text {
  flex: 1 1 auto;
  min-width: 0;
}

.th-global-progress-card__title-icon {
  flex-shrink: 0;
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1;
}

.th-global-progress-card__subtitle {
  color: #334155;
  font-size: 0.92rem;
}

.th-global-progress-card__badge {
  min-width: 74px;
  text-align: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #166534;
  color: #fff;
  font-weight: 700;
}

.th-global-progress-track {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  background: #d9f7e2;
  overflow: hidden;
  border: 1px solid #bbdfc6;
}

.th-global-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  transition: width 0.35s ease;
}

.th-global-progress-card__meta {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
}

.th-global-progress-form {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto auto;
  align-items: end;
  gap: 8px;
}

/* ---------- User dashboard goal card ---------- */
.th-dashboard-goal-big__numbers {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.th-dashboard-goal-big__numbers strong {
  font-size: 2rem;
  line-height: 1;
  color: #0f172a;
}

.th-dashboard-goal-big__numbers span {
  color: #475569;
}

.th-dashboard-goal-big__track {
  margin-top: 10px;
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: #d8f5e1;
  border: 1px solid #b8e0c7;
  overflow: hidden;
}

.th-dashboard-goal-big__track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
}

.th-dashboard-goal-big__meta {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  color: #475569;
  font-size: 0.82rem;
}

/* ---------- Team Battle ---------- */
.th-team-hero {
  min-height: 360px;
}

.th-team-hero__content {
  max-width: 860px;
  text-align: left;
  padding: 2.4rem;
}

.th-team-hero .th-home-hero__eyebrow,
.th-team-hero .th-hero__title,
.th-team-hero .th-hero__subtitle {
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.th-team-hero .th-hero__subtitle {
  max-width: 58ch;
}

.th-team-hero .th-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.th-team-hero .th-hero__actions .btn {
  margin: 0;
}

.th-team-month-pill {
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: #eff6ff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 700;
}

.th-team-table thead th {
  background: #f8fafc;
  color: #64748b;
  font-size: 0.8rem;
  border-bottom: 1px solid #e5e7eb;
}

.th-team-table tbody td {
  border-color: #eef2f7;
}

.th-team-freeze-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .th-team-hero {
    min-height: 330px;
  }

  .th-team-hero__content {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
}

@media (max-width: 575.98px) {
  .th-team-hero {
    min-height: 300px;
  }

  .th-team-hero__content {
    padding: 1.5rem 1.1rem;
  }
}

/* ---------- GongphelHub reactions ---------- */
.th-gh-post__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.th-gh-reaction-form {
  margin: 0;
}

.th-gh-react-btn {
  border: 1px solid #d6dde6;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.th-gh-react-btn span {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0 6px;
  min-width: 22px;
  text-align: center;
}

.th-gh-react-btn.is-active {
  border-color: #15803d;
  background: #ecfdf3;
  color: #166534;
}

body.th-leaderboard-page-shell .th-admin-content > .th-global-progress-wrap {
  display: none;
}

body.th-leaderboard-page-shell .th-leaderboard-progress-slot {
  margin-bottom: 1.5rem;
}

body.th-leaderboard-page-shell .th-leaderboard-progress-slot:empty {
  display: none;
}

body.th-leaderboard-page-shell .th-leaderboard-progress-slot > .th-global-progress-wrap {
  display: flex;
  justify-content: center;
}

body.th-leaderboard-page-shell .th-leaderboard-progress-slot > .th-global-progress-wrap > .th-global-progress-card,
body.th-leaderboard-page-shell .th-leaderboard-progress-slot > .th-global-progress-wrap > .th-progress-target-panel {
  margin-bottom: 0 !important;
}

body.th-leaderboard-page-shell .th-leaderboard-progress-slot > .th-global-progress-wrap > #progressSuccessBlock,
body.th-leaderboard-page-shell .th-leaderboard-progress-slot > .th-global-progress-wrap > #progressTargetPanel {
  margin-top: 1rem;
}

@media (max-width: 767.98px) {

  .th-leaderboard-footer-highlights {
    grid-template-columns: 1fr;
  }

  .th-location-panel--camera-only-mobile-hidden {
    display: none;
  }

  .th-global-progress-form {
    grid-template-columns: 1fr;
  }

  .th-admin-streak-pill {
    padding: 0 10px;
  }

  .th-notif-menu {
    width: min(96vw, 340px);
  }

  .th-notif-toast-stack {
    top: 74px;
    width: min(96vw, 360px);
  }
}

/* ---------- Feedback update: mission hero + upload toggle ---------- */
.th-upload-paused-state {
  justify-content: flex-start;
  background: linear-gradient(180deg, #fff8f2, #fff1f2);
  border-color: #f3c6c8;
}

.th-upload-paused-state .th-empty-state__icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.th-admin-users-toggle {
  flex-wrap: wrap;
  padding: 0.75rem 0.9rem;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #ffffff;
}

.th-admin-users-toggle .badge {
  min-width: 88px;
  text-align: center;
}

.th-global-progress-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.24);
  /* Light variant (for comparison):
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.16), transparent 28%),
    linear-gradient(135deg, #0f5b35 0%, #0b7a45 55%, #0f5b35 100%); */
  background:
    radial-gradient(circle at top left, rgba(34, 197, 94, 0.14), transparent 36%),
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.10), transparent 28%),
    linear-gradient(135deg, #06331f 0%, #08463a 55%, #0b5d37 100%);
  border-radius: 24px;
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: 0 20px 40px rgba(8, 35, 20, 0.24);
  color: #f8fafc;
}

.th-global-progress-wrap {
  display: flex;
  justify-content: center;
}

.th-global-progress-wrap .th-global-progress-card {
  width: min(100%, 1360px);
}

.th-global-progress-card::before,
.th-global-progress-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.24;
}

.th-global-progress-card::before {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 65%);
}

.th-global-progress-card::after {
  width: 120px;
  height: 120px;
  left: -36px;
  bottom: -50px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.3), transparent 65%);
}

.th-global-progress-card > * {
  position: relative;
  z-index: 1;
}

.th-global-progress-card__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.th-global-progress-card__pill,
.th-global-progress-card__live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.th-global-progress-card__pill {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.th-global-progress-card__live {
  background: rgba(236, 253, 245, 0.12);
  border: 1px solid rgba(236, 253, 245, 0.2);
  color: #dcfce7;
}

.th-global-progress-card__body {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.5fr) minmax(140px, 0.8fr);
  gap: 1rem;
  align-items: center;
}

.th-global-progress-card__main {
  text-align: center;
}

.th-global-progress-card__aside {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  text-align: center;
}

.th-global-progress-card__aside-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 2.5rem;
}

.th-global-progress-card__aside--right {
  text-align: center;
}

.th-global-progress-card__aside-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(240, 253, 244, 0.75);
}

.th-global-progress-card__aside-value {
  margin-top: 0.32rem;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: #ffffff;
}

.th-global-progress-card__aside-value--muted {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  color: rgba(241, 245, 249, 0.72);
}

.th-global-progress-card__eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bbf7d0;
}

.th-global-progress-card__goal-line {
  margin-top: 0.3rem;
  font-size: 0.98rem;
  color: rgba(236, 253, 245, 0.95);
  font-weight: 700;
}

.th-global-progress-card__title {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(1.45rem, 2.3vw, 2.2rem);
  line-height: 1.08;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.3em;
}

.th-global-progress-card__title-icon {
  flex-shrink: 0;
  font-size: clamp(1.2rem, 2.5vw, 2.5rem);
  line-height: 1;
}

.th-global-progress-card__subtitle {
  margin: 0;
  color: rgba(241, 245, 249, 0.88);
}

.th-global-progress-card__numbers {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #ffffff;
}

.th-global-progress-card__numbers strong {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1;
  font-weight: 800;
  color: #ffffff;
}

.th-global-progress-card__numbers strong:nth-of-type(1) {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.35), 0 0 40px rgba(76, 222, 128, 0.25);
}

.th-global-progress-card__numbers strong:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.42);
}

.th-global-progress-card__numbers span {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  line-height: 1;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
}

.th-global-progress-card__caption {
  margin-top: 0.2rem;
  color: rgba(220, 252, 231, 0.88);
  font-weight: 600;
}

.th-global-progress-card__completion {
  margin-top: 0.28rem;
  color: #dcfce7;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.th-global-progress-card__badge {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  color: #0f5b35;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.16);
}

.th-global-progress-bar-wrap {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  min-width: 0;
}

.th-global-progress-track {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  border-radius: 999px;
  background: #062f1a;
  border: none;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(74, 222, 128, 0.15);
  overflow: hidden;
  position: relative;
}

.th-global-progress-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.15) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(90deg, #10b981 0%, #a3e635 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  transition: width 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

.th-global-progress-track span::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: radial-gradient(ellipse at right, rgba(253, 224, 71, 0.9) 0%, transparent 70%);
  border-radius: inherit;
}

.th-global-progress-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 999px;
  padding: 0 0.75rem;
  height: 48px;
  min-width: 80px;
  flex-shrink: 0;
  margin-left: -10px;
  z-index: 2;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.th-gpp-percent {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.05rem;
  line-height: 1.1;
}

.th-gpp-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 2px;
}

.th-global-progress-card__meta {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  color: rgba(240, 253, 244, 0.9);
  font-size: 0.88rem;
  font-weight: 600;
}

.th-progress-settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #ecfdf5;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.th-progress-settings-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  transform: translateY(-1px);
}

.th-progress-timer {
  margin-top: 1rem;
  text-align: center;
}

.th-progress-timer__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.66);
}

.th-progress-timer__value {
  margin-top: 0.25rem;
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.02;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
}

.th-progress-timer__urgency {
  margin-top: 0.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
}

.th-progress-timer__urgency::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}

.th-progress-timer__urgency--muted {
  color: rgba(226, 232, 240, 0.82);
}

.th-progress-timer__urgency--warn {
  color: #fbbf24;
  text-shadow: 0 0 14px rgba(251, 191, 36, 0.2);
}

.th-progress-timer__urgency--urgent {
  color: #fca5a5;
  text-shadow: 0 0 18px rgba(248, 113, 113, 0.3);
  animation: th-progress-urgent-pulse 1.2s ease-in-out infinite;
}

.th-progress-target-panel {
  position: relative;
  overflow: hidden;
  padding: 1.4rem 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.16), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #ecfeff 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.th-progress-target-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.th-progress-target-panel__title {
  color: #0f172a;
}

.th-progress-target-panel__copy {
  max-width: 46rem;
  color: #475569;
  line-height: 1.45;
}

.th-progress-form-field {
  display: flex;
  flex-direction: column;
}

.th-progress-form-field--custom.is-disabled {
  opacity: 0.62;
}

.th-progress-form-field--custom.is-disabled .form-label {
  color: #94a3b8;
}

.th-progress-form-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.th-global-progress-form {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 180px) minmax(160px, 180px) auto;
  align-items: end;
  gap: 0.7rem;
}

.th-global-progress-form--panel {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  align-items: start;
  max-width: 820px;
  row-gap: 0.9rem;
}

.th-global-progress-form--panel [data-progress-custom-days-wrap] {
  grid-column: 1 / 2;
  max-width: 240px;
}

.th-global-progress-form .form-label {
  color: #334155;
}

.th-global-progress-form .form-control,
.th-global-progress-form .form-select {
  border: 1px solid rgba(220, 252, 231, 0.24);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
}

.th-global-progress-form .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
}

.th-global-progress-form .btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .th-global-progress-card__body {
    grid-template-columns: 1fr;
  }

  .th-global-progress-card__aside,
  .th-global-progress-card__aside--right {
    text-align: left;
  }

  .th-global-progress-card__badge {
    margin-top: 0.45rem;
  }

  .th-progress-settings-toggle {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .th-global-progress-card {
    padding: 1rem;
    border-radius: 20px;
  }

  .th-global-progress-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-global-progress-card__numbers strong {
    font-size: 2rem;
  }

  .th-global-progress-card__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-progress-timer__value {
    font-size: 1.9rem;
  }

  .th-global-progress-form {
    grid-template-columns: 1fr;
  }

  .th-global-progress-form--panel {
    grid-template-columns: 1fr;
  }

  .th-global-progress-form--panel [data-progress-custom-days-wrap] {
    max-width: none;
  }
}

@keyframes th-progress-urgent-pulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

/* ---------- Feedback update: dashboard/profile/team/feed polish ---------- */
.th-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 300px;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #ccead7;
  color: #166534;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.th-badge-soft i {
  flex: 0 0 auto;
  font-size: 1rem;
  color: #16a34a;
}

.th-profile-name {
  color: #ffffff;
  letter-spacing: -0.02em;
}

.th-profile-meta {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.96);
  opacity: 1;
}

.th-profile-role {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
}

.th-profile-bio {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
  font-weight: 500;
}

.th-profile-bio--row {
  display: block;
}

.th-team-name-cell {
  min-width: 0;
}

.th-team-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.th-team-name-sub {
  margin-top: 0.2rem;
  color: #475569;
  font-size: 0.82rem;
}

.th-gh-react-btn.is-busy {
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .th-badge-soft {
    max-width: 100%;
    width: 100%;
  }

  .th-profile-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .th-team-name-line {
    align-items: flex-start;
  }
}

/* ─────────────────────────────────────────────
   Team Battle v2 — redesigned styles
───────────────────────────────────────────── */

/* Freeze toggle — switch glow */
.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 0.18rem rgba(21, 128, 61, 0.3);
}
.form-switch .form-check-input:checked {
  background-color: #16a34a;
  border-color: #15803d;
}

/* Standings table row hover */
.th-team-table tbody tr:not(.th-team-row--mine):hover td {
  background: #f0fdf4;
  transition: background 0.12s;
}
.th-row-highlight--mine:hover td,
.th-row-current-user:hover td,
.th-team-row--mine:hover td {
  background: var(--th-row-highlight-hover-bg) !important;
}

/* Points pill gradient */
.th-points-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #166534, #16a34a);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.22);
}

/* =====================================================
   UI/UX ENHANCEMENTS — visual layer only
   Preserves all existing rules; only adds new ones.
===================================================== */

/* ----- Animation tokens ----- */
:root {
  --th-ease-base:   cubic-bezier(0.4, 0, 0.2, 1);
  --th-ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --th-ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --th-shadow-hover:  0 8px 24px rgba(0,0,0,0.10);
  --th-shadow-lift:   0 14px 36px rgba(0,0,0,0.13);
}

/* ----- Keyframes ----- */
@keyframes th-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes th-shimmer {
  from { transform: translateX(-120%); }
  to   { transform: translateX(220%); }
}

@keyframes th-streak-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,0),   0 2px 8px rgba(249,115,22,0.12); }
  50%       { box-shadow: 0 0 0 5px rgba(249,115,22,0.2), 0 2px 8px rgba(249,115,22,0.22); }
}

@keyframes th-streak-flame {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(251,146,60,0.6)); }
  50%       { filter: drop-shadow(0 0 9px rgba(251,146,60,0.95)); }
}

/* ----- Button micro-interactions ----- */
.btn {
  transition:
    transform 180ms var(--th-ease-bounce),
    box-shadow 160ms var(--th-ease-base),
    background-color 150ms var(--th-ease-base),
    border-color 150ms var(--th-ease-base);
}

.btn:hover  { transform: translateY(-2px); box-shadow: var(--th-shadow-hover); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }

/* Fix btn-primary hover (was resolving to #BAC2D9 via --th-palette-lime chain) */
.btn-primary:hover {
  background: #166534 !important;
  border-color: #166534 !important;
}

/* Dashboard hero ghost button — preserve its custom hover */
.th-dashboard-btn-ghost:hover { transform: none; box-shadow: none; }
.th-dashboard-btn-primary:hover { transform: none; box-shadow: none; }

/* ----- Input focus ----- */
.form-control,
.form-select {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 140ms ease;
}

.form-control:focus,
.form-select:focus {
  transform: scale(1.007);
}

/* Dropdown arrow never overflows — set right padding + position */
.form-select {
  padding-right: 2.6rem;
  background-position: right 0.8rem center;
}

/* ----- Radio card — whole card highlights when checked ----- */
.th-radio-card:has(input:checked) {
  border-color: var(--th-palette-green);
  background: #f0fdf4;
  box-shadow: 0 0 0 2px rgba(36,166,92,0.22);
}

/* ----- Stat card hover lift ----- */
.th-stat {
  transition: transform 220ms var(--th-ease-bounce), box-shadow 180ms var(--th-ease-base);
  cursor: default;
}

.th-stat:hover { transform: translateY(-3px) scale(1.015); box-shadow: var(--th-shadow-hover); }

/* Stat icon — proper icon container */
.th-stat__icon {
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0fdf4;
  color: var(--th-palette-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ----- Admin KPI card hover ----- */
.th-admin-kpi {
  transition: transform 220ms var(--th-ease-bounce), box-shadow 180ms var(--th-ease-base);
}

.th-admin-kpi:hover { transform: translateY(-3px); box-shadow: var(--th-shadow-lift); }

/* ----- Dashboard sidebar card hover ----- */
.th-dashboard-side-card {
  transition: transform 220ms var(--th-ease-bounce), box-shadow 180ms var(--th-ease-base);
}

.th-dashboard-side-card:hover { transform: translateY(-4px); box-shadow: var(--th-shadow-lift); }

/* ----- Tip item icon ----- */
.th-tip-item__icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ----- Upload box icon ----- */
.th-upload-box__icon {
  font-size: 2rem;
  color: var(--th-palette-green);
  margin-bottom: 0.4rem;
}

/* ----- Entrance animations ----- */
/* Stat cards stagger */
.th-home-stats .th-stat {
  animation: th-fade-up 420ms var(--th-ease-base) both;
}
.th-home-stats .th-stat:nth-child(1) { animation-delay:  30ms; }
.th-home-stats .th-stat:nth-child(2) { animation-delay:  90ms; }
.th-home-stats .th-stat:nth-child(3) { animation-delay: 150ms; }
.th-home-stats .th-stat:nth-child(4) { animation-delay: 210ms; }

/* Report form card */
.th-report-card { animation: th-fade-up 400ms var(--th-ease-base) 60ms both; }

/* Sidebar cards stagger */
.th-dashboard-sidebar > * {
  animation: th-fade-up 430ms var(--th-ease-base) both;
}
.th-dashboard-sidebar > *:nth-child(1) { animation-delay: 120ms; }
.th-dashboard-sidebar > *:nth-child(2) { animation-delay: 200ms; }
.th-dashboard-sidebar > *:nth-child(3) { animation-delay: 280ms; }

/* Admin KPI stagger */
.th-admin-kpis .th-admin-kpi {
  animation: th-fade-up 380ms var(--th-ease-base) both;
}
.th-admin-kpis .th-admin-kpi:nth-child(1) { animation-delay:  50ms; }
.th-admin-kpis .th-admin-kpi:nth-child(2) { animation-delay: 110ms; }
.th-admin-kpis .th-admin-kpi:nth-child(3) { animation-delay: 170ms; }
.th-admin-kpis .th-admin-kpi:nth-child(4) { animation-delay: 230ms; }

/* ----- Streak pill glow ----- */
.th-admin-streak-pill {
  animation: th-streak-glow 2.8s ease infinite;
}

.th-admin-streak-pill > i {
  animation: th-streak-flame 2.8s ease infinite;
}

/* ----- Progress bar shimmer ----- */
.th-global-progress-track span::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
  animation: th-shimmer 2.4s linear infinite;
  pointer-events: none;
}

/* ----- Notification item hover ----- */
.th-notif-item {
  transition: background 140ms ease;
  cursor: pointer;
}

.th-notif-item:hover { background: #f8fafc; }
.th-notif-item.is-unread:hover { background: #e0f2fe; }

/* ----- Responsive — dashboard hero + stats ----- */
@media (max-width: 767.98px) {
  .th-hero__title    { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  .th-hero__subtitle { font-size: 0.9rem; }
  .th-hero__actions .btn { font-size: 0.9rem; padding: 0.65rem 1rem; }
  .th-home-hero__content { padding: 1.5rem 1.1rem !important; }
  .th-home-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .th-dashboard-main .card-body { padding: 1.25rem !important; }
}

@media (max-width: 479.98px) {
  .th-home-stats { grid-template-columns: 1fr; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .th-stat,
  .th-admin-kpi,
  .th-dashboard-side-card,
  .th-notif-item { transition: none; }

  .th-home-stats .th-stat,
  .th-dashboard-sidebar > *,
  .th-report-card,
  .th-admin-kpis .th-admin-kpi {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .th-admin-streak-pill,
  .th-admin-streak-pill > i { animation: none; }

  .th-global-progress-track span::before { animation: none; }
}

/* =====================================================
   ENHANCEMENT PASS 2 — field sizes + animation cascade
===================================================== */

/* ── File input: compact, styled, on-brand ── */
.th-file-input {
  margin-top: 0.75rem;
  padding: 0.38rem 0.5rem;
  font-size: 0.82rem;
  color: #374151;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 150ms ease;
  line-height: 1.4;
}

.th-file-input:hover {
  border-color: var(--th-palette-green);
}

.th-file-input::file-selector-button {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  margin-right: 0.6rem;
  transition: background 140ms ease, border-color 140ms ease;
  line-height: 1.5;
}

.th-file-input::file-selector-button:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}

/* ── Normalize all form control heights ── */
.form-control:not(textarea),
.form-select {
  min-height: 46px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ── Use camera button — match green theme ── */
#openCameraBtn {
  --bs-btn-color: #166534;
  --bs-btn-border-color: #22c55e;
  --bs-btn-hover-bg: #166534;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-border-color: #166534;
  --bs-btn-active-bg: #15803d;
  --bs-btn-active-border-color: #15803d;
  --bs-btn-active-color: #fff;
}

/* ── TOP-DOWN animation cascade ──
   Section order: hero (instant) → progress card → stats → form → sidebar
   Each section starts after the previous, creating a true top-to-bottom reveal.
   Override previous per-item delays. */

/* Progress card (in base.html, shown on index) */
.th-global-progress-wrap {
  animation: th-fade-up 440ms var(--th-ease-base) 80ms both;
}

/* Stat cards — section starts at 220ms */
.th-home-stats .th-stat:nth-child(1) { animation-delay: 220ms; }
.th-home-stats .th-stat:nth-child(2) { animation-delay: 290ms; }
.th-home-stats .th-stat:nth-child(3) { animation-delay: 360ms; }
.th-home-stats .th-stat:nth-child(4) { animation-delay: 430ms; }

/* Report form — after last stat card */
.th-report-card { animation-delay: 380ms; }

/* Sidebar cards — after form starts */
.th-dashboard-sidebar > *:nth-child(1) { animation-delay: 460ms; }
.th-dashboard-sidebar > *:nth-child(2) { animation-delay: 560ms; }
.th-dashboard-sidebar > *:nth-child(3) { animation-delay: 660ms; }

/* Admin KPI cascade — starts at 100ms (no progress card on admin pages) */
.th-admin-kpis .th-admin-kpi:nth-child(1) { animation-delay: 100ms; }
.th-admin-kpis .th-admin-kpi:nth-child(2) { animation-delay: 180ms; }
.th-admin-kpis .th-admin-kpi:nth-child(3) { animation-delay: 260ms; }
.th-admin-kpis .th-admin-kpi:nth-child(4) { animation-delay: 340ms; }

/* Hero section — subtle instant fade-in (background image reveals cleanly) */
.th-home-hero {
  animation: th-hero-reveal 500ms ease both;
}

@keyframes th-hero-reveal {
  from { opacity: 0; transform: scale(1.015); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Reduced motion: disable all added animations above ── */
@media (prefers-reduced-motion: reduce) {
  .th-global-progress-wrap,
  .th-home-hero {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* =====================================================
   ENHANCEMENT PASS 3 — button consistency + sequential
   section animations for all pages/screen sizes
===================================================== */

/* ── Global button token reset ─────────────────────
   Bootstrap's --bs-btn-* custom properties let us
   retheme buttons without touching specificity wars. */

/* btn-success → brand green (not Bootstrap default) */
.btn-success {
  --bs-btn-bg:           #22a06b;
  --bs-btn-border-color: #22a06b;
  --bs-btn-hover-bg:     #166534;
  --bs-btn-hover-border-color: #166534;
  --bs-btn-active-bg:    #15803d;
  --bs-btn-color:        #fff;
  --bs-btn-hover-color:  #fff;
  --bs-btn-active-color: #fff;
}

/* btn-outline-primary → brand green (not Bootstrap blue) */
.btn-outline-primary {
  --bs-btn-color:              #166534;
  --bs-btn-border-color:       #22c55e;
  --bs-btn-hover-bg:           #166534;
  --bs-btn-hover-color:        #fff;
  --bs-btn-hover-border-color: #166534;
  --bs-btn-active-bg:          #15803d;
  --bs-btn-active-border-color:#15803d;
  --bs-btn-active-color:       #fff;
}

/* btn-outline-secondary → consistent slate */
.btn-outline-secondary {
  --bs-btn-color:              #475569;
  --bs-btn-border-color:       #cbd5e1;
  --bs-btn-hover-bg:           #f1f5f9;
  --bs-btn-hover-color:        #1e293b;
  --bs-btn-hover-border-color: #94a3b8;
  --bs-btn-active-bg:          #e2e8f0;
  --bs-btn-active-color:       #1e293b;
}

/* Progress form: btn-outline-secondary lives on dark bg → white outline */
.th-global-progress-form .btn-outline-secondary {
  --bs-btn-color:              rgba(255,255,255,0.85);
  --bs-btn-border-color:       rgba(255,255,255,0.35);
  --bs-btn-hover-bg:           rgba(255,255,255,0.12);
  --bs-btn-hover-color:        #fff;
  --bs-btn-hover-border-color: rgba(255,255,255,0.55);
}

.th-global-progress-form--panel .btn-outline-secondary {
  --bs-btn-color:              #475569;
  --bs-btn-border-color:       #cbd5e1;
  --bs-btn-hover-bg:           #f1f5f9;
  --bs-btn-hover-color:        #1e293b;
  --bs-btn-hover-border-color: #94a3b8;
  color: #475569;
  border-color: #cbd5e1;
  background: #ffffff;
}

.th-global-progress-form--panel .form-control,
.th-global-progress-form--panel .form-select {
  border-color: #d9e2ec;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.th-global-progress-form--panel .form-control:focus,
.th-global-progress-form--panel .form-select:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

/* "Full reset" → demoted to a subtle underlined text action */
.th-progress-danger-link {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 150ms ease;
  white-space: nowrap;
}

.th-global-progress-form--panel .th-progress-danger-link {
  color: #b91c1c;
  padding-left: 0;
}

.th-global-progress-form--panel .th-progress-danger-link:hover {
  color: #991b1b;
}

.th-progress-danger-link:hover {
  color: #fca5a5;
  background: none;
  border: none;
  transform: none;
  box-shadow: none;
}

/* Progress form compact — override the 46px min-height that applies globally */
.th-global-progress-form .form-control {
  min-height: unset;
  height: auto;
  padding: 0.32rem 0.55rem;
  font-size: 0.84rem;
}

.th-global-progress-form .form-select {
  min-height: unset;
  height: auto;
  padding: 0.4rem 2rem 0.4rem 0.55rem;
  font-size: 0.84rem;
}

.th-global-progress-form .btn {
  min-height: unset;
  white-space: nowrap;
}

/* ── SEQUENTIAL SECTION ANIMATIONS — all pages ─────
   Pattern: hero → progress card → stats/kpis → main
   content → sidebar/secondary. Each tier waits for
   the previous before starting (300ms gap per tier).
   Duration 600ms so the motion is clearly visible.
   translateY 32px so it reads as "coming from below".
   All devices — no breakpoint restrictions.           */

/* Shared animation for every animated element */
.th-anim {
  animation: th-fade-up-lg 600ms var(--th-ease-base) both;
}

@keyframes th-fade-up-lg {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* Override previous shorter keyframe to match */
@keyframes th-fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── TIER 1 — 0ms — Hero sections ── */
.th-home-hero,
.th-leaderboard-hero,
.th-dangkha-hero,
.th-admin2-hero,
.th-profile-hero,
.th-admin-hero,
.th-team-hero {
  animation: th-fade-up 600ms var(--th-ease-base) 0ms both;
}

/* ── TIER 2 — 300ms — Progress card / page-level kicker ── */
.th-global-progress-wrap {
  animation: th-fade-up 600ms var(--th-ease-base) 300ms both;
}

/* ── TIER 3 — 500ms — Stat/KPI grids (items stagger 80ms each) ── */
/* Index stats */
.th-home-stats .th-stat { animation-duration: 600ms; }
.th-home-stats .th-stat:nth-child(1) { animation-delay: 500ms; }
.th-home-stats .th-stat:nth-child(2) { animation-delay: 580ms; }
.th-home-stats .th-stat:nth-child(3) { animation-delay: 660ms; }
.th-home-stats .th-stat:nth-child(4) { animation-delay: 740ms; }

/* Admin KPI cards */
.th-admin-kpis .th-admin-kpi { animation-duration: 600ms; }
.th-admin-kpis .th-admin-kpi:nth-child(1) { animation-delay: 300ms; }
.th-admin-kpis .th-admin-kpi:nth-child(2) { animation-delay: 380ms; }
.th-admin-kpis .th-admin-kpi:nth-child(3) { animation-delay: 460ms; }
.th-admin-kpis .th-admin-kpi:nth-child(4) { animation-delay: 540ms; }

/* Admin v2 KPI cards */
.th-admin2-kpi {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-admin2-kpis .th-admin2-kpi:nth-child(1) { animation-delay: 300ms; }
.th-admin2-kpis .th-admin2-kpi:nth-child(2) { animation-delay: 380ms; }
.th-admin2-kpis .th-admin2-kpi:nth-child(3) { animation-delay: 460ms; }
.th-admin2-kpis .th-admin2-kpi:nth-child(4) { animation-delay: 540ms; }

/* GongphelHub stat cards */
.th-gh-stat-card {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-gh-stats .th-gh-stat-card:nth-child(1) { animation-delay: 200ms; }
.th-gh-stats .th-gh-stat-card:nth-child(2) { animation-delay: 280ms; }
.th-gh-stats .th-gh-stat-card:nth-child(3) { animation-delay: 360ms; }

/* Profile stats */
.th-profile-hero__stats .th-profile-stat {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-profile-hero__stats .th-profile-stat:nth-child(1) { animation-delay: 120ms; }
.th-profile-hero__stats .th-profile-stat:nth-child(2) { animation-delay: 200ms; }
.th-profile-hero__stats .th-profile-stat:nth-child(3) { animation-delay: 280ms; }

/* ── TIER 4 — 800ms — Main content cards / panels ── */
.th-report-card {
  animation: th-fade-up 600ms var(--th-ease-base) 820ms both;
}

.th-leaderboard-card,
.th-toolbar-card {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-toolbar-card   { animation-delay: 300ms; }
.th-leaderboard-card { animation-delay: 500ms; }

.th-dangkha-card {
  animation: th-fade-up 600ms var(--th-ease-base) 300ms both;
}

.th-gh-composer {
  animation: th-fade-up 600ms var(--th-ease-base) 450ms both;
}

/* Admin panels */
.th-admin-panel {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-admin-panel:nth-child(1) { animation-delay: 620ms; }
.th-admin-panel:nth-child(2) { animation-delay: 720ms; }

/* Admin v2 list items */
.th-admin2-item {
  animation: th-fade-up 500ms var(--th-ease-base) both;
}
.th-admin2-list .th-admin2-item:nth-child(1) { animation-delay: 640ms; }
.th-admin2-list .th-admin2-item:nth-child(2) { animation-delay: 700ms; }
.th-admin2-list .th-admin2-item:nth-child(3) { animation-delay: 760ms; }
.th-admin2-list .th-admin2-item:nth-child(4) { animation-delay: 820ms; }
.th-admin2-list .th-admin2-item:nth-child(5) { animation-delay: 880ms; }

/* GongphelHub posts — stagger nicely */
.th-gh-post {
  animation: th-fade-up 600ms var(--th-ease-base) both;
}
.th-gh-feed .th-gh-post:nth-child(1) { animation-delay: 550ms; }
.th-gh-feed .th-gh-post:nth-child(2) { animation-delay: 650ms; }
.th-gh-feed .th-gh-post:nth-child(3) { animation-delay: 750ms; }
.th-gh-feed .th-gh-post:nth-child(4) { animation-delay: 850ms; }
.th-gh-feed .th-gh-post:nth-child(5) { animation-delay: 950ms; }
.th-gh-feed .th-gh-post:nth-child(n+6) { animation-delay: 1050ms; }

/* ── TIER 5 — 1000ms+ — Sidebar cards ── */
.th-dashboard-sidebar > *:nth-child(1) { animation-delay: 880ms; }
.th-dashboard-sidebar > *:nth-child(2) { animation-delay: 1000ms; }
.th-dashboard-sidebar > *:nth-child(3) { animation-delay: 1120ms; }

/* ── Leaderboard table rows ── */
.th-leaderboard-table tbody tr {
  animation: th-fade-up 500ms var(--th-ease-base) both;
}
.th-leaderboard-table tbody tr:nth-child(1) { animation-delay: 600ms; }
.th-leaderboard-table tbody tr:nth-child(2) { animation-delay: 660ms; }
.th-leaderboard-table tbody tr:nth-child(3) { animation-delay: 720ms; }
.th-leaderboard-table tbody tr:nth-child(4) { animation-delay: 780ms; }
.th-leaderboard-table tbody tr:nth-child(5) { animation-delay: 840ms; }
.th-leaderboard-table tbody tr:nth-child(n+6) { animation-delay: 900ms; }

/* ── Reduced motion — kill all animations ── */
@media (prefers-reduced-motion: reduce) {
  .th-home-hero, .th-leaderboard-hero, .th-dangkha-hero,
  .th-admin2-hero, .th-profile-hero, .th-admin-hero, .th-team-hero,
  .th-global-progress-wrap,
  .th-home-stats .th-stat,
  .th-admin-kpis .th-admin-kpi,
  .th-admin2-kpi,
  .th-gh-stat-card, .th-gh-post,
  .th-profile-hero__stats .th-profile-stat,
  .th-report-card, .th-leaderboard-card, .th-toolbar-card,
  .th-dangkha-card, .th-gh-composer, .th-admin-panel,
  .th-admin2-item, .th-dashboard-sidebar > *,
  .th-leaderboard-table tbody tr {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   ENHANCEMENT PASS 4 — table row sequential animations
   All tables across the app animate rows in order,
   giving a "loading in" feel as data appears.
   Rows animate slightly faster (500ms) to feel snappy.
===================================================== */

/* ── Admin table (review, users, action queue) ── */
.th-admin-table tbody tr {
  animation: th-fade-up 500ms var(--th-ease-base) both;
}
.th-admin-table tbody tr:nth-child(1)  { animation-delay: 400ms; }
.th-admin-table tbody tr:nth-child(2)  { animation-delay: 470ms; }
.th-admin-table tbody tr:nth-child(3)  { animation-delay: 540ms; }
.th-admin-table tbody tr:nth-child(4)  { animation-delay: 610ms; }
.th-admin-table tbody tr:nth-child(5)  { animation-delay: 680ms; }
.th-admin-table tbody tr:nth-child(6)  { animation-delay: 750ms; }
.th-admin-table tbody tr:nth-child(7)  { animation-delay: 820ms; }
.th-admin-table tbody tr:nth-child(8)  { animation-delay: 890ms; }
.th-admin-table tbody tr:nth-child(9)  { animation-delay: 960ms; }
.th-admin-table tbody tr:nth-child(n+10) { animation-delay: 1000ms; }

/* ── Leaderboard table ── */
.th-leaderboard-table tbody tr {
  animation: th-fade-up 500ms var(--th-ease-base) both;
}
.th-leaderboard-table tbody tr:nth-child(1)  { animation-delay: 600ms; }
.th-leaderboard-table tbody tr:nth-child(2)  { animation-delay: 665ms; }
.th-leaderboard-table tbody tr:nth-child(3)  { animation-delay: 730ms; }
.th-leaderboard-table tbody tr:nth-child(4)  { animation-delay: 795ms; }
.th-leaderboard-table tbody tr:nth-child(5)  { animation-delay: 860ms; }
.th-leaderboard-table tbody tr:nth-child(6)  { animation-delay: 925ms; }
.th-leaderboard-table tbody tr:nth-child(7)  { animation-delay: 990ms; }
.th-leaderboard-table tbody tr:nth-child(8)  { animation-delay: 1055ms; }
.th-leaderboard-table tbody tr:nth-child(9)  { animation-delay: 1120ms; }
.th-leaderboard-table tbody tr:nth-child(10) { animation-delay: 1185ms; }
.th-leaderboard-table tbody tr:nth-child(n+11) { animation-delay: 1240ms; }

/* ── Team table (team battle page) ── */
.th-team-table tbody tr {
  animation: th-fade-up 500ms var(--th-ease-base) both;
}
.th-team-table tbody tr:nth-child(1)  { animation-delay: 400ms; }
.th-team-table tbody tr:nth-child(2)  { animation-delay: 470ms; }
.th-team-table tbody tr:nth-child(3)  { animation-delay: 540ms; }
.th-team-table tbody tr:nth-child(4)  { animation-delay: 610ms; }
.th-team-table tbody tr:nth-child(5)  { animation-delay: 680ms; }
.th-team-table tbody tr:nth-child(n+6) { animation-delay: 750ms; }

/* ── History page table ── */
.th-history-table tbody tr,
.table tbody tr:not(.th-leaderboard-table tbody tr):not(.th-admin-table tbody tr):not(.th-team-table tbody tr) {
  animation: th-fade-up 480ms var(--th-ease-base) both;
}

/* Generic table rows (history, profile submissions, etc.) */
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(1)  { animation-delay: 300ms; }
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(2)  { animation-delay: 360ms; }
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(3)  { animation-delay: 420ms; }
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(4)  { animation-delay: 480ms; }
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(5)  { animation-delay: 540ms; }
.table:not(.th-admin-table):not(.th-leaderboard-table):not(.th-team-table) tbody tr:nth-child(n+6) { animation-delay: 600ms; }

/* ── Table row hover — makes each row feel interactive ── */
.th-admin-table tbody tr,
.th-leaderboard-table tbody tr,
.th-team-table tbody tr,
.table tbody tr {
  transition: background-color 140ms ease, transform 140ms ease;
}

.th-admin-table tbody tr:hover td,
.table:not(.th-leaderboard-table):not(.th-team-table) tbody tr:hover td {
  background-color: #f8fafc;
}

/* ── Reduced motion additions ── */
@media (prefers-reduced-motion: reduce) {
  .th-admin-table tbody tr,
  .th-leaderboard-table tbody tr,
  .th-team-table tbody tr,
  .table tbody tr {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================
   ENHANCEMENT PASS 5 — GongphelHub polish + form
   control sizing scope fixes
===================================================== */

/* ── Fix: min-height should NOT apply to -sm variants
   or file inputs — those have their own sizing ── */
.form-control-sm,
.form-select-sm,
input[type="file"].form-control,
.th-file-input {
  min-height: unset !important;
  height: auto !important;
}

/* File input — re-apply compact sizing cleanly */
.th-file-input {
  padding: 0.3rem 0.45rem;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ── GongphelHub: 4-column stat grid ── */
.th-gh-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 4th stat card colour — purple/violet */
.th-gh-stat-card__icon--purple {
  background: #f3f0ff;
  color: #7c3aed;
}

/* Stat card — add hover lift for consistency */
.th-gh-stat-card {
  transition: transform 220ms var(--th-ease-bounce, cubic-bezier(0.34,1.56,0.64,1)),
              box-shadow 180ms ease;
}
.th-gh-stat-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
}

/* 4th animation delay (was missing) */
.th-gh-stats .th-gh-stat-card:nth-child(4) { animation-delay: 440ms; }

/* ── Reaction buttons — richer feel ── */
.th-gh-react-btn {
  cursor: pointer;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 160ms ease;
  user-select: none;
  white-space: nowrap;
}

.th-gh-react-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.th-gh-react-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}

.th-gh-react-btn.is-active {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
  box-shadow: 0 0 0 2px rgba(22,163,74,0.18);
}

.th-gh-react-btn.is-active:hover {
  background: #dcfce7;
  border-color: #15803d;
}

.th-gh-react-btn span {
  font-size: 0.75rem;
  font-weight: 700;
  transition: transform 200ms ease;
}

.th-gh-react-btn.is-active span {
  background: #bbf7d0;
  color: #15803d;
}

@media (max-width: 767.98px) {
  .th-gh-post__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    align-items: stretch;
  }

  .th-gh-reaction-form {
    width: 100%;
  }

  .th-gh-react-btn {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 0.34rem 0.45rem;
    gap: 0.28rem;
    font-size: 0.74rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  .th-gh-react-btn i {
    margin-right: 0 !important;
    font-size: 0.78rem;
  }

  .th-gh-react-btn span {
    min-width: 20px;
    padding: 0 5px;
    font-size: 0.72rem;
  }
}

/* ── Filter bar — compact and proportional ── */
.th-gh-filter__body {
  padding: 1rem 1.05rem !important;
}

.th-gh-filter__form {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 0;
}

.th-gh-filter__field {
  min-width: 0;
  padding: 0;
}

.th-gh-filter__field .form-label {
  font-size: 0.78rem !important;
  font-weight: 700;
  color: #64748b !important;
  letter-spacing: 0.02em;
}

.th-gh-filter__form input[type="hidden"][name="page"] {
  display: none;
}

.th-gh-filter .form-control-sm,
.th-gh-filter .form-select-sm {
  height: 42px;
  font-size: 0.875rem;
  border-radius: 12px;
  border-color: #dde1e9;
}

.th-gh-filter .form-control-sm:focus,
.th-gh-filter .form-select-sm:focus {
  border-color: var(--th-palette-green, #24A65C);
  box-shadow: 0 0 0 3px rgba(36,166,92,0.15);
}

/* Apply button — match filter bar height and look more intentional */
.th-gh-filter .btn-outline-secondary {
  height: 42px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0 1.1rem;
  white-space: nowrap;
}

.th-gh-filter__field--actions {
  display: flex;
}

.th-gh-filter__field--actions .btn {
  align-self: stretch;
}

.th-gh-filter__hint,
.th-gh-filter__search-note {
  line-height: 1.45;
}

.th-gh-filter__hint {
  margin-top: 0.9rem !important;
  padding-top: 0.8rem;
  border-top: 1px solid #edf2f7;
}

/* ── Post card — tighter, more polished layout ── */
.th-gh-post {
  border-radius: 18px !important;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

.th-gh-post:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Category badge — styled per type */
.th-gh-post .badge.text-bg-light {
  background: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

/* Avatar — add a ring on hover */
.th-gh-avatar {
  transition: box-shadow 160ms ease, transform 160ms ease;
}
.th-gh-avatar:hover {
  box-shadow: 0 0 0 3px rgba(31,138,91,0.25);
  transform: scale(1.06);
}

/* Post meta row — more breathing room */
.th-gh-post__meta {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid #f1f5f9;
  gap: 10px;
}

/* ── Page header — make icon/title more prominent ── */
.th-gh-header__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  flex-shrink: 0;
}

.th-gh-title {
  margin-bottom: 0.2rem !important;
}

/* ── Responsive: stack to 2 cols on tablet, 1 on mobile ── */
@media (max-width: 991.98px) {
  .th-gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .th-gh-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .th-gh-filter__body {
    padding: 0.9rem !important;
  }

  .th-gh-filter__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .th-gh-filter__field--search {
    grid-column: 1 / -1;
  }

  .th-gh-filter__field--actions {
    align-self: end;
  }

  .th-gh-filter__field--actions .btn {
    width: 100%;
  }

  .th-gh-filter__hint,
  .th-gh-filter__search-note {
    font-size: 0.8rem;
  }
}

@media (max-width: 399.98px) {
  .th-gh-filter__form {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .th-gh-filter__field--search,
  .th-gh-filter__field--category,
  .th-gh-filter__field--range,
  .th-gh-filter__field--per-page,
  .th-gh-filter__field--actions {
    grid-column: 1 / -1;
  }
}

/* ── Composer card — consistent with rest of cards ── */
.th-gh-composer {
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
}

.th-gh-filter {
  border-radius: 18px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05) !important;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .th-gh-stat-card,
  .th-gh-react-btn,
  .th-gh-post,
  .th-gh-avatar {
    transition: none !important;
    animation: none !important;
  }
}

/* =====================================================
   ENHANCEMENT PASS 6 — universal action button
   consistency (Apply, Search, filters, sm actions)
===================================================== */

/* ── All btn-sm get consistent size and weight ── */
.btn-sm {
  padding: 0.42rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 10px;
  line-height: 1.4;
  min-height: 34px;
}

/* ── Filter/search action buttons (Apply, Apply filters,
   Search) — these sit beside form-control-sm inputs and
   need to align perfectly in height ── */
.btn-sm.w-100,
form .btn-sm[type="submit"],
form .btn-sm[type="button"] {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

/* ── inline search button beside a normal form-control
   (admin_users Search button) ── */
form .btn:not(.btn-sm)[type="submit"] {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 600;
}

/* ── Tab/filter nav pill buttons (Review queue tabs) ──
   Keep them pill-shaped and uniform */
.btn-group > .btn-sm,
.d-flex > .btn-sm,
.gap-2 > .btn-sm {
  border-radius: 10px;
}

/* ── Table action buttons (Open, Manage, Open report) ── */
.th-admin-table .btn-sm,
.table .btn-sm {
  height: 32px;
  padding: 0 0.75rem;
  font-size: 0.8rem;
  min-height: 32px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ── btn-outline-secondary used as a filter action ──
   Unified appearance across GongphelHub, admin_review,
   admin_users, history, leaderboard_full ── */
.btn-outline-secondary.btn-sm {
  --bs-btn-color:              #475569;
  --bs-btn-border-color:       #cbd5e1;
  --bs-btn-hover-bg:           #f1f5f9;
  --bs-btn-hover-color:        #1e293b;
  --bs-btn-hover-border-color: #94a3b8;
}

/* ── Leaderboard/history tab groups — pill style ── */
.btn-group .btn-sm:first-child { border-radius: 10px 0 0 10px; }
.btn-group .btn-sm:last-child  { border-radius: 0 10px 10px 0; }
.btn-group .btn-sm:not(:first-child):not(:last-child) { border-radius: 0; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .btn-sm { transition: none; }
}

/* =====================================================
   ENHANCEMENT PASS 7 — Auth, Leaderboard, Profile,
   Result page polish + entrance animations
===================================================== */

/* ── AUTH PAGES — entrance animation cascade ── */

/* Whole card floats in */
.auth-card {
  animation: th-fade-up 550ms cubic-bezier(0.175,0.885,0.32,1.275) 60ms both;
}

/* Side panel text stagger */
.auth-side-content .auth-kicker {
  animation: th-fade-up 500ms var(--th-ease-base) 280ms both;
}
.auth-side-content h2 {
  animation: th-fade-up 500ms var(--th-ease-base) 390ms both;
}
.auth-side-content p {
  animation: th-fade-up 500ms var(--th-ease-base) 490ms both;
}

/* Form pane stagger */
.auth-form > h3 {
  animation: th-fade-up 500ms var(--th-ease-base) 230ms both;
}
.auth-form .auth-helper-text {
  animation: th-fade-up 500ms var(--th-ease-base) 310ms both;
}
.auth-form form .mb-3:nth-child(1) {
  animation: th-fade-up 500ms var(--th-ease-base) 400ms both;
}
.auth-form form .mb-3:nth-child(2) {
  animation: th-fade-up 500ms var(--th-ease-base) 480ms both;
}
.auth-form form .mb-3:nth-child(3) {
  animation: th-fade-up 500ms var(--th-ease-base) 555ms both;
}
.auth-submit-btn {
  animation: th-fade-up 500ms cubic-bezier(0.34,1.56,0.64,1) 590ms both;
}
.auth-form .text-center {
  animation: th-fade-up 500ms var(--th-ease-base) 660ms both;
}

/* Submit button micro-interaction */
.auth-submit-btn {
  height: 50px;
  font-size: 1rem;
  border-radius: 12px !important;
  letter-spacing: 0.01em;
  transition:
    transform 220ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 200ms ease;
}
.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22,101,52,0.28);
}
.auth-submit-btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(22,101,52,0.14);
}

/* ── LEADERBOARD — tab polish + rank badge glow ── */

/* Tab pill transition */
.th-leaderboard-tabs .nav-link {
  transition:
    background 170ms ease,
    color 170ms ease,
    transform 200ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 180ms ease;
}
.th-leaderboard-tabs .nav-link:not(.active):hover {
  background: #e3e8ed;
  color: #1a2633;
  transform: translateY(-1px);
}
.th-leaderboard-tabs .nav-link.active {
  box-shadow: 0 4px 14px rgba(22,101,52,0.22);
}

/* Second leaderboard card (teams) enters after individual */
.th-leaderboard-card:last-of-type {
  animation-delay: 700ms !important;
}

/* Crown icon — amber accent */
.th-stat__icon--crown {
  background: #fffbeb;
  color: #d97706;
}

/* Rank badge — metallic sheen + hover */
.th-rank-badge {
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.th-rank-badge:hover {
  transform: scale(1.1);
}
.th-rank-badge--gold {
  box-shadow: 0 2px 10px rgba(251,191,36,0.45);
}
.th-rank-badge--silver {
  box-shadow: 0 2px 8px rgba(156,163,175,0.4);
}
.th-rank-badge--bronze {
  box-shadow: 0 2px 8px rgba(217,119,6,0.35);
}

/* User cell hover in leaderboard rows */
.th-usercell {
  transition: opacity 160ms ease;
}
.th-usercell:hover {
  opacity: 0.82;
}

/* ── PROFILE PAGE — content column entrance + avatar hover ── */

/* Main content col and sidebar col float in after hero */
.th-profile-page .row.g-4 > .col-lg-8 {
  animation: th-fade-up 600ms var(--th-ease-base) 360ms both;
}
.th-profile-page .row.g-4 > .col-lg-4 {
  animation: th-fade-up 600ms var(--th-ease-base) 500ms both;
}

/* Avatar hover — green glow ring */
.th-profile-avatar-lg {
  transition: box-shadow 250ms ease, transform 250ms cubic-bezier(0.34,1.56,0.64,1);
}
.th-profile-avatar-lg:hover {
  box-shadow: 0 0 0 4px rgba(22,163,74,0.25), 0 8px 28px rgba(0,0,0,0.12);
  transform: scale(1.04);
}

/* Privacy toggle — snappier feel */
.form-check-input[type="checkbox"][role="switch"] {
  transition: background-color 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.form-check-label {
  cursor: pointer;
}

/* ── RESULT PAGE — entrance animation cascade ── */

.th-result-success-banner {
  animation: th-fade-up 520ms cubic-bezier(0.34,1.56,0.64,1) 0ms both;
}

.th-result-page .th-page-title {
  animation: th-fade-up 520ms var(--th-ease-base) 80ms both;
}

/* Section type/location labels */
.th-result-page > p {
  animation: th-fade-up 500ms var(--th-ease-base) 160ms both;
}

/* Share button row */
.th-result-page .d-flex.flex-wrap.align-items-center.gap-2.mb-2 {
  animation: th-fade-up 500ms var(--th-ease-base) 220ms both;
}

/* Report photo */
.th-result-page .img-fluid {
  animation: th-fade-up 600ms var(--th-ease-base) 280ms both;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* Cards stagger */
.th-result-page .card.th-surface-card:nth-of-type(1) {
  animation: th-fade-up 600ms var(--th-ease-base) 360ms both;
}
.th-result-page .card.th-surface-card:nth-of-type(2) {
  animation: th-fade-up 600ms var(--th-ease-base) 480ms both;
}
.th-result-page .card.th-surface-card:nth-of-type(3) {
  animation: th-fade-up 600ms var(--th-ease-base) 580ms both;
}

/* Section headings in result */
.th-result-page h3 {
  animation: th-fade-up 500ms var(--th-ease-base) 520ms both;
}

/* Message thread */
.th-result-page .list-group {
  animation: th-fade-up 600ms var(--th-ease-base) 620ms both;
}

/* Reply form */
.th-result-page form.d-flex.gap-2 {
  animation: th-fade-up 600ms var(--th-ease-base) 700ms both;
}

/* Share buttons — lift feel */
#fbShareSub,
#ttShareSub {
  transition:
    transform 200ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 180ms ease;
}
#fbShareSub:hover,
#ttShareSub:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
#fbShareSub:active,
#ttShareSub:active {
  transform: translateY(0) scale(0.96);
  box-shadow: none;
}

/* Streak overlay card — subtle polish */
#streakOverlay .card {
  border: none !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35) !important;
}
#streakOverlay #closeStreakOverlay {
  border-radius: 12px;
  font-weight: 700;
  min-height: 48px;
  font-size: 1.05rem;
  transition: transform 200ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 200ms ease;
}
#streakOverlay #closeStreakOverlay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22,101,52,0.3);
}

/* ── Global button border-radius — normalize all sizes consistently ──
   team_battle and other pages have inline style="border-radius:10px;"
   This rule removes the need for those inline overrides project-wide. ── */
.btn {
  --bs-btn-border-radius: 10px;
}
.btn-lg {
  --bs-btn-border-radius: 12px;
}
/* Micro-interaction on every full-size .btn (not sm, not link, not close) */
.btn:not(.btn-sm):not(.btn-link):not(.btn-close):not(.nav-link):not(.page-link) {
  transition:
    transform 200ms cubic-bezier(0.34,1.56,0.64,1),
    box-shadow 180ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}
.btn:not(.btn-sm):not(.btn-link):not(.btn-close):not(.nav-link):not(.page-link):hover {
  transform: translateY(-1px);
}
.btn:not(.btn-sm):not(.btn-link):not(.btn-close):not(.nav-link):not(.page-link):active {
  transform: translateY(0) scale(0.97);
}

/* ── Filter row height alignment — all selects and btn-sm submit
   in filter forms share the same 34px height ── */
#reviewFilterForm .form-select-sm,
#reviewFilterForm .form-control-sm {
  height: 34px;
  min-height: 34px !important;
}
#reviewFilterForm .btn-sm[type="submit"],
#reviewFilterForm .btn-sm:not([type]) {
  height: 34px !important;
  min-height: 34px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Table action buttons — compact, pill-free, vertically centered ──
   Covers all .table (not just .th-admin-table) so admin_users Manage
   and history Details buttons are both correctly sized ── */
.table .btn-sm {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 0.7rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap;
}

/* ── Reduced motion — pass 7 ── */
@media (prefers-reduced-motion: reduce) {
  .btn:not(.btn-sm):not(.btn-link):not(.btn-close):not(.nav-link):not(.page-link),
  .auth-card,
  .auth-side-content .auth-kicker,
  .auth-side-content h2,
  .auth-side-content p,
  .auth-form > h3,
  .auth-form .auth-helper-text,
  .auth-form form .mb-3,
  .auth-submit-btn,
  .auth-form .text-center,
  .th-leaderboard-tabs .nav-link,
  .th-rank-badge,
  .th-usercell,
  .th-profile-page .row.g-4 > .col-lg-8,
  .th-profile-page .row.g-4 > .col-lg-4,
  .th-profile-avatar-lg,
  .th-result-success-banner,
  .th-result-page .th-page-title,
  .th-result-page > p,
  .th-result-page .d-flex.flex-wrap.align-items-center.gap-2.mb-2,
  .th-result-page .img-fluid,
  .th-result-page .card.th-surface-card,
  .th-result-page h3,
  .th-result-page .list-group,
  .th-result-page form.d-flex.gap-2,
  #fbShareSub, #ttShareSub,
  #streakOverlay .card,
  #streakOverlay #closeStreakOverlay {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════
   COLLAPSIBLE SIDEBAR
══════════════════════════════════════ */

/* Sidebar gets width transition */
.th-admin-sidebar {
  transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle chevron button — desktop only */
.th-sidebar-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--admin-border);
  background: #f8fafc;
  color: #64748b;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.th-sidebar-collapse-btn:hover {
  background: #f1f5f9;
  color: var(--admin-primary);
  border-color: #c7d6e0;
}
.th-sidebar-collapse-btn i {
  font-size: 0.75rem;
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
  .th-sidebar-collapse-btn {
    display: inline-flex;
  }
}

/* ── Collapsed state ── */
.th-admin-app.th-sidebar-collapsed .th-admin-sidebar {
  width: 72px;
}
.th-admin-app.th-sidebar-collapsed .th-sidebar-collapse-btn i {
  transform: rotate(180deg);
}

/* Hide text labels, brand text, user meta */
.th-admin-app.th-sidebar-collapsed .th-admin-brand,
.th-admin-app.th-sidebar-collapsed .th-admin-brand-sub,
.th-admin-app.th-sidebar-collapsed .th-admin-user__meta,
.th-admin-app.th-sidebar-collapsed .th-admin-mobile-logout {
  display: none;
}

/* In collapsed mode: hide kebab, make avatar the click target */
.th-admin-app.th-sidebar-collapsed .th-admin-user__menu {
  display: none;
}
.th-admin-app.th-sidebar-collapsed .th-admin-user__avatar {
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.th-admin-app.th-sidebar-collapsed .th-admin-user__avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 0 3px rgba(15,91,53,0.2);
}

.th-admin-app.th-sidebar-collapsed .th-admin-nav a span:last-child {
  display: none;
}

/* Center icons in nav items */
.th-admin-app.th-sidebar-collapsed .th-admin-nav {
  padding: 10px 8px;
}
.th-admin-app.th-sidebar-collapsed .th-admin-nav a {
  justify-content: center;
  padding: 12px;
  gap: 0;
}

/* Center brand row around the collapse button */
.th-admin-app.th-sidebar-collapsed .th-admin-sidebar__top {
  padding: 18px 8px 14px;
}
.th-admin-app.th-sidebar-collapsed .th-admin-brand-row {
  justify-content: center;
}
.th-admin-app.th-sidebar-collapsed .th-sidebar-collapse-btn {
  margin-left: 0;
}

/* Center footer */
.th-admin-app.th-sidebar-collapsed .th-admin-sidebar__footer {
  padding: 16px 10px;
}
.th-admin-app.th-sidebar-collapsed .th-admin-user {
  align-items: center;
}

/* Collapsed nav tooltip via data-label */
.th-admin-app.th-sidebar-collapsed .th-admin-nav a {
  position: relative;
}
.th-admin-app.th-sidebar-collapsed .th-admin-nav a[data-label]:hover::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: #1e293b;
  color: #f8fafc;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  z-index: 200;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* ══════════════════════════════════════
   TEAM RANK BADGE — FA icon style
══════════════════════════════════════ */
.th-rank-badge--gold i,
.th-rank-badge--silver i,
.th-rank-badge--bronze i {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
}

@media (max-width: 767.98px) {
  body.th-leaderboard-page-shell .th-leaderboard-table-wrap,
  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap,
  section.th-team-page #standings-table-wrap {
    border: 1px solid #e5ebf2;
    border-radius: 18px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  }

  body.th-leaderboard-page-shell .th-leaderboard-table-wrap .table-responsive,
  body.th-leaderboard-full-page-shell .th-leaderboard-table-wrap .table-responsive,
  section.th-team-page #standings-table-wrap .table-responsive {
    overflow: hidden;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody,
  section.th-team-page #standings-table-wrap .th-team-table tbody {
    display: block;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr {
    position: relative;
    display: grid;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0.92rem 0.95rem;
    border: 0;
    border-bottom: 1px solid #edf2f7;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr:last-child,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr:last-child,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr:last-child {
    border-bottom: 0;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr::before,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr::before,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    bottom: 0.55rem;
    width: 3px;
    border-radius: 999px;
    background: transparent;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td,
  section.th-team-page #standings-table-wrap .th-team-table tbody td {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas: "rank user points";
    gap: 0.75rem;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(2) {
    grid-area: user;
    min-width: 0;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank user points"
      "rank verified verified";
    row-gap: 0.4rem;
    column-gap: 0.75rem;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(2) {
    grid-area: user;
    min-width: 0;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
  }

  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody td:nth-child(4) {
    grid-area: verified;
    justify-self: start;
    text-align: left !important;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody tr {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "rank team points"
      "rank reports members";
    row-gap: 0.42rem;
    column-gap: 0.75rem;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(1) {
    grid-area: rank;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(2) {
    grid-area: team;
    min-width: 0;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(3) {
    grid-area: points;
    justify-self: end;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4) {
    grid-area: reports;
    justify-self: start;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5) {
    grid-area: members;
    justify-self: end;
  }

  body.th-leaderboard-page-shell .th-usercell,
  body.th-leaderboard-full-page-shell .th-usercell {
    align-items: center;
    gap: 0.72rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body.th-leaderboard-page-shell .th-avatar,
  body.th-leaderboard-full-page-shell .th-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    font-size: 0.84rem;
    background: linear-gradient(180deg, #f8fafc, #e8eef5);
  }

  body.th-leaderboard-page-shell .th-usercell__name,
  body.th-leaderboard-full-page-shell .th-usercell__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
  }

  body.th-leaderboard-page-shell .th-usercell__subtext,
  body.th-leaderboard-full-page-shell .th-usercell__subtext,
  section.th-team-page #standings-table-wrap .th-team-name-sub {
    margin-top: 0.14rem;
    font-size: 0.78rem;
    color: #64748b !important;
  }

  body.th-leaderboard-page-shell .th-rank-badge,
  body.th-leaderboard-full-page-shell .th-rank-badge,
  section.th-team-page #standings-table-wrap .th-rank-badge {
    min-width: 46px;
    padding: 0.42rem 0.56rem;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    font-size: 0.82rem;
  }

  body.th-leaderboard-page-shell .th-points-pill,
  body.th-leaderboard-full-page-shell .th-points-pill,
  section.th-team-page #standings-table-wrap .th-points-pill {
    min-width: 0;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    box-shadow: none;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
  }

  body.th-leaderboard-full-page-shell .th-verified-pill,
  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4),
  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5) {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.28rem 0.62rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 999px;
    background: #f8fafc !important;
    box-shadow: none;
    color: #475569 !important;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.1;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4)::before,
  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5)::before {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #64748b;
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(4)::before {
    content: "Reports";
  }

  section.th-team-page #standings-table-wrap .th-team-table tbody td:nth-child(5)::before {
    content: "Members";
  }

  body.th-leaderboard-page-shell .th-row-highlight-pill,
  body.th-leaderboard-page-shell .th-you,
  body.th-leaderboard-full-page-shell .th-row-highlight-pill,
  body.th-leaderboard-full-page-shell .th-you,
  section.th-team-page #standings-table-wrap .th-team-own-pill {
    padding: 0.16rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  section.th-team-page #standings-table-wrap .th-team-name-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.42rem;
  }

  section.th-team-page #standings-table-wrap .th-team-name-line a {
    font-size: 0.98rem;
    font-weight: 700 !important;
    color: #0f172a !important;
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr.th-row-current-user,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr.th-row-current-user,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr.th-team-row--mine {
    background: linear-gradient(180deg, rgba(244, 253, 247, 0.98), rgba(238, 251, 243, 0.96));
  }

  body.th-leaderboard-page-shell .th-leaderboard-table tbody tr.th-row-current-user::before,
  body.th-leaderboard-full-page-shell .th-leaderboard-table tbody tr.th-row-current-user::before,
  section.th-team-page #standings-table-wrap .th-team-table tbody tr.th-team-row--mine::before {
    background: #16a34a;
  }
}

section.th-team-page .th-team-battle-hero {
  min-height: 0 !important;
  padding: 1.55rem 1.7rem !important;
  border-radius: 28px;
}

section.th-team-page .th-team-battle-hero__header {
  justify-content: center;
  margin-bottom: 1.2rem;
}

section.th-team-page .th-team-battle-hero__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.12);
}

section.th-team-page .th-team-battle-hero__body {
  grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.4fr) minmax(220px, 0.95fr);
  align-items: stretch;
  gap: 1.05rem;
}

section.th-team-page .th-team-battle-hero__aside,
section.th-team-page .th-team-battle-hero__main {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

section.th-team-page .th-team-battle-hero__aside::before,
section.th-team-page .th-team-battle-hero__main::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 48%);
}

section.th-team-page .th-team-battle-hero__aside {
  padding: 1.1rem 1.15rem;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 0.2rem;
}

section.th-team-page .th-team-battle-hero__main {
  padding: 1.35rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

section.th-team-page .th-team-battle-hero__aside .th-global-progress-card__aside-label {
  color: rgba(220, 252, 231, 0.76);
}

section.th-team-page .th-team-battle-hero__aside .th-global-progress-card__aside-value {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

section.th-team-page .th-team-battle-hero__aside .th-global-progress-card__aside-label.mt-2 {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

section.th-team-page .th-team-battle-hero__aside .th-global-progress-card__aside-value span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

section.th-team-page .th-team-battle-hero__main .th-global-progress-card__eyebrow {
  margin-bottom: 0.3rem;
}

section.th-team-page .th-team-battle-hero__main .th-global-progress-card__title {
  justify-content: center;
  margin-bottom: 0.55rem;
}

section.th-team-page .th-team-battle-hero__main .th-global-progress-card__subtitle {
  max-width: 34rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.55;
}

section.th-team-page .th-team-battle-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1rem !important;
}

section.th-team-page .th-team-battle-hero__actions .btn {
  min-height: 46px;
  padding-inline: 1rem;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(2, 6, 23, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

section.th-team-page .th-team-battle-hero__actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.16);
}

@media (max-width: 991.98px) {
  section.th-team-page .th-team-battle-hero {
    padding: 1.3rem 1.25rem !important;
    border-radius: 24px;
  }

  section.th-team-page .th-team-battle-hero__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "main main"
      "left right";
    gap: 0.9rem;
  }

  section.th-team-page .th-team-battle-hero__main {
    grid-area: main;
  }

  section.th-team-page .th-team-battle-hero__aside--left {
    grid-area: left;
  }

  section.th-team-page .th-team-battle-hero__aside--right {
    grid-area: right;
  }
}

@media (max-width: 767.98px) {
  section.th-team-page .th-team-battle-hero-wrap {
    margin-bottom: 1rem !important;
  }

  section.th-team-page .th-team-battle-hero {
    padding: 1rem !important;
    border-radius: 22px;
  }

  section.th-team-page .th-team-battle-hero__header {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
  }

  section.th-team-page .th-team-battle-hero__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "left"
      "right";
    gap: 0.8rem;
  }

  section.th-team-page .th-team-battle-hero__aside,
  section.th-team-page .th-team-battle-hero__main {
    padding: 0.95rem 1rem;
    border-radius: 18px;
  }

  section.th-team-page .th-team-battle-hero__main {
    text-align: left;
    justify-content: flex-start;
  }

  section.th-team-page .th-team-battle-hero__main .th-global-progress-card__title,
  section.th-team-page .th-team-battle-hero__actions {
    justify-content: flex-start;
  }

  section.th-team-page .th-team-battle-hero__main .th-global-progress-card__subtitle {
    margin-inline: 0;
    font-size: 0.92rem;
  }

  section.th-team-page .th-team-battle-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  section.th-team-page .th-team-battle-hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  section.th-team-page .th-team-battle-hero__aside .th-global-progress-card__aside-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --th-mobile-type-2xs: 0.68rem;
    --th-mobile-type-xs: 0.74rem;
    --th-mobile-type-sm: 0.8rem;
    --th-mobile-type-md: 0.92rem;
    --th-mobile-type-lg: 1rem;
    --th-mobile-type-xl: 1.12rem;
    --th-mobile-type-2xl: 1.28rem;
    --th-mobile-type-3xl: clamp(1.48rem, 5.8vw, 1.86rem);
  }

  body.th-body {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
  }

  body.th-body,
  body.th-body .form-control,
  body.th-body .form-select,
  body.th-body textarea,
  body.th-body input,
  body.th-body .dropdown-item,
  body.th-body .alert {
    font-size: var(--th-mobile-type-md);
    line-height: 1.5;
  }

  body.th-body .th-admin-content h1,
  body.th-body .th-hero__title,
  body.th-body .th-global-progress-card__title,
  body.th-body .th-profile-name,
  body.th-body .th-gh-title {
    font-size: var(--th-mobile-type-3xl) !important;
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  body.th-body .th-admin-content h2,
  body.th-body .th-card-title,
  body.th-body .th-admin-title,
  body.th-body .th-gh-post__title,
  body.th-body .th-empty-state__title,
  body.th-body .modal-title {
    font-size: var(--th-mobile-type-2xl);
    line-height: 1.2;
    letter-spacing: -0.015em;
  }

  body.th-body .th-admin-content h3,
  body.th-body .th-admin-content h4 {
    font-size: var(--th-mobile-type-xl);
    line-height: 1.24;
    letter-spacing: -0.01em;
  }

  body.th-body .th-admin-content p,
  body.th-body .th-admin-content li,
  body.th-body .th-hero__subtitle,
  body.th-body .th-global-progress-card__subtitle,
  body.th-body .th-empty-state__text,
  body.th-body .th-gh-post__message,
  body.th-body .th-progress-target-panel__copy,
  body.th-body .th-badge-soft {
    font-size: var(--th-mobile-type-md);
    line-height: 1.55;
  }

  body.th-body .small,
  body.th-body small,
  body.th-body .form-label,
  body.th-body .form-text,
  body.th-body .th-section-kicker,
  body.th-body .th-home-hero__eyebrow,
  body.th-body .th-home-hero__meta-label,
  body.th-body .th-home-hero__meta-value,
  body.th-body .th-stat__label,
  body.th-body .th-admin-stat__label,
  body.th-body .th-usercell__subtext,
  body.th-body .th-team-name-sub,
  body.th-body .th-gh-post__meta,
  body.th-body .th-gh-filter__hint,
  body.th-body .th-gh-filter__search-note,
  body.th-body .th-progress-timer__label,
  body.th-body .th-global-progress-card__aside-label,
  body.th-body .th-notif-menu__sub,
  body.th-body .th-notif-item__time,
  body.th-body .th-notif-toast__time,
  body.th-body .th-profile-meta,
  body.th-body .th-admin-user__email {
    font-size: var(--th-mobile-type-sm) !important;
    line-height: 1.45;
  }

  body.th-body .btn {
    font-size: var(--th-mobile-type-md);
  }

  body.th-body .btn-sm,
  body.th-body .page-link,
  body.th-body .badge,
  body.th-body .th-row-highlight-pill,
  body.th-body .th-you,
  body.th-body .th-team-own-pill,
  body.th-body .th-rank-badge,
  body.th-body .th-points-pill,
  body.th-body .th-verified-pill,
  body.th-body .th-progress-settings-toggle,
  body.th-body .th-progress-timer__urgency,
  body.th-body .th-global-progress-card__pill,
  body.th-body .th-global-progress-card__live {
    font-size: var(--th-mobile-type-xs) !important;
  }

  body.th-body .btn-lg {
    font-size: var(--th-mobile-type-md) !important;
  }

  body.th-body .form-control-sm,
  body.th-body .form-select-sm {
    font-size: var(--th-mobile-type-sm) !important;
  }

  body.th-body .table th,
  body.th-body .table td,
  body.th-body .th-admin-table th,
  body.th-body .th-admin-table td,
  body.th-body .th-notif-item__body,
  body.th-body .th-notif-menu__page {
    font-size: var(--th-mobile-type-sm);
  }

  body.th-body .th-stat__value,
  body.th-body .th-admin-stat__value,
  body.th-body .th-notif-item__title,
  body.th-body .th-admin-user__name {
    font-size: var(--th-mobile-type-lg);
  }
}

.th-global-progress-wrap [data-progress-root] {
  overflow: hidden;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 16%, rgba(163, 230, 53, 0.16), transparent 18%),
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.12), transparent 24%),
    linear-gradient(180deg, #083f29 0%, #0a5537 56%, #083f29 100%);
  border: 1px solid rgba(220, 252, 231, 0.12);
  box-shadow:
    0 24px 48px rgba(2, 6, 23, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.th-global-progress-wrap [data-progress-root]::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.08)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.015) 0,
      rgba(255, 255, 255, 0.015) 1px,
      transparent 1px,
      transparent 24px
    );
  pointer-events: none;
  z-index: 0;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
.th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
  min-height: 58px;
  padding: 0.9rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill {
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill i,
.th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle i {
  font-size: 1.15rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
  gap: 1.15rem;
  align-items: start;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
  position: relative;
  text-align: center;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
  position: relative;
  width: 136px;
  height: 136px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before,
.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
  background:
    radial-gradient(circle, rgba(163, 230, 53, 0.22), rgba(163, 230, 53, 0.04) 58%, transparent 70%);
  box-shadow: 0 0 0 14px rgba(163, 230, 53, 0.06);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
  inset: 14px;
  border: 1px solid rgba(220, 252, 231, 0.22);
  box-shadow: 0 0 30px rgba(163, 230, 53, 0.2), inset 0 0 18px rgba(163, 230, 53, 0.12);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(8, 63, 41, 0.8);
  border: 1px solid rgba(220, 252, 231, 0.18);
  color: #ffffff;
  font-size: 2.2rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(2, 6, 23, 0.26);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
  justify-content: center;
  gap: 0.6rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
  max-width: 34rem;
  margin-inline: auto;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.95rem;
  align-items: center;
  padding: 1.1rem 1.15rem;
  border-radius: 24px;
  background: rgba(4, 35, 22, 0.34);
  border: 1px solid rgba(220, 252, 231, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(163, 230, 53, 0.12);
  color: #bef264;
  font-size: 1.85rem;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__content {
  min-width: 0;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__label {
  color: rgba(240, 253, 244, 0.86);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
  margin-top: 0.28rem;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__urgency {
  margin-top: 0.6rem;
  padding: 0.72rem 0.9rem;
  border-radius: 999px;
  background: rgba(190, 242, 100, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
  min-height: 158px;
  padding: 1.05rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
  width: 74px;
  height: 74px;
  margin-bottom: 0.8rem;
  background: rgba(163, 230, 53, 0.12);
  border: 1px solid rgba(190, 242, 100, 0.16);
  color: #ffffff;
  font-size: 1.8rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
  position: relative;
  margin-top: 1.35rem;
  padding: 2.35rem 1.2rem 1.2rem;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  color: #0f172a;
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
  position: absolute;
  left: 50%;
  top: -36px;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.4), transparent 32%),
    linear-gradient(180deg, rgba(22, 101, 52, 0.96), rgba(8, 63, 41, 0.96));
  color: #facc15;
  font-size: 1.8rem;
  border: 4px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
  margin-bottom: 1rem;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f2937;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
  margin-top: 0;
  gap: 0.9rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  height: 18px;
  background: #edf2f7;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  background:
    linear-gradient(90deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0) 70%),
    linear-gradient(90deg, #15803d 0%, #65a30d 100%);
  box-shadow: none;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
  min-width: 108px;
  height: 74px;
  margin-left: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 20px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ecfdf3, #dcfce7);
  color: #14532d;
  box-shadow: none;
  border: 1px solid #d1fae5;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-percent {
  font-size: 1.65rem;
  color: #166534;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-label {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: #166534;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta {
  display: contents;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
  position: relative;
  min-height: 88px;
  margin: 0;
  padding: 1rem 0.95rem 0.95rem;
  border-radius: 18px;
  background: #f7fbf9;
  border: 1px solid #e3efe8;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before {
  content: "Goal";
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span:nth-child(1)::before {
  content: "Remaining";
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span:nth-child(2)::before {
  content: "Cycle";
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span:nth-child(3)::before {
  content: "Status";
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #eefbf2 0%, #e6f7ec 100%);
  border: 1px solid #d8efe0;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #d9f99d 0%, #bbf7d0 100%);
  color: #166534;
  font-size: 1.45rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
  margin-top: 0.2rem;
  color: #475569;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #166534, #14532d);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(20, 83, 45, 0.18);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action:hover {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    flex-direction: column;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 1fr;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    min-height: 0;
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    margin-inline: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    flex-wrap: wrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 0.95rem;
    border-radius: 24px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    min-height: 48px;
    padding: 0.72rem 0.9rem;
    border-radius: 16px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    width: 108px;
    height: 108px;
    margin-bottom: 0.85rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 11px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    justify-content: space-between;
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    margin-inline: 0;
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    justify-content: flex-start;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer {
    grid-template-columns: 52px 1fr;
    gap: 0.8rem;
    padding: 0.95rem;
    border-radius: 20px;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 1.45rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__urgency {
    width: 100%;
    justify-content: flex-start;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.65rem;
    border-radius: 16px;
    font-size: 1.4rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 1rem;
    padding: 2rem 0.9rem 0.9rem;
    border-radius: 22px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    top: -28px;
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    grid-column: 1 / -1;
    height: 14px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 96px;
    height: auto;
    padding: 0.7rem 0.75rem;
    border-radius: 16px;
    align-items: flex-end;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1.2rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 78px;
    padding: 0.85rem 0.8rem;
    border-radius: 16px;
    font-size: 0.92rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 1.15rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
    font-size: 0.96rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
    font-size: 0.84rem;
  }
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 1rem;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(163, 230, 53, 0.18), transparent 32%),
      linear-gradient(160deg, #0d4b2b 0%, #0f6a39 55%, #0c5a31 100%);
    border: 1px solid rgba(220, 252, 231, 0.14);
    box-shadow: 0 18px 36px rgba(2, 6, 23, 0.18);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    gap: 0.75rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    border-radius: 16px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill {
    padding: 0.7rem 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    grid-column: 1 / -1;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    margin: 0.1rem 0 0.45rem;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: clamp(1.4rem, 6.3vw, 1.85rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    margin: 0;
    max-width: none;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.8rem;
    justify-content: flex-start;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer {
    margin-top: 0.9rem;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(7, 29, 18, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
    margin-top: 0.35rem;
    font-size: clamp(1.35rem, 7vw, 1.9rem);
    letter-spacing: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__urgency {
    margin-top: 0.55rem;
    justify-content: flex-start;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    min-height: 0;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 2.6rem;
    height: 2.6rem;
    margin: 0 0 0.6rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    margin-top: 0;
    font-size: 0.98rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    margin-top: 0.2rem;
    font-size: 0.84rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    grid-column: 1 / -1;
    height: 16px;
    border-radius: 999px;
    background: rgba(6, 47, 26, 0.78);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
    width: 10px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    margin-left: 0;
    min-width: 90px;
    height: auto;
    padding: 0.55rem 0.75rem;
    border-radius: 18px;
    align-items: flex-end;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    font-size: 0.62rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line {
    margin: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f0fdf4;
    font-size: 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__meta {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__meta > span {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(240, 253, 244, 0.94);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__meta > span::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #86efac;
    flex: 0 0 auto;
    margin-top: 0.36rem;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
  }

  .th-global-progress-wrap .th-progress-target-panel {
    padding: 1rem;
    border-radius: 20px;
  }

  .th-global-progress-wrap #progressSuccessBlock {
    padding: 1.5rem 1rem !important;
  }

  body.th-leaderboard-page-shell .th-leaderboard-progress-slot {
    margin-bottom: 1.25rem;
  }
}

/* ---------- Progress + Profile Refresh ---------- */
.th-global-progress-wrap [data-progress-root] {
  background:
    radial-gradient(circle at 50% 15%, rgba(145, 197, 62, 0.14), transparent 18%),
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 26%),
    linear-gradient(180deg, #042b1c 0%, #08462d 58%, #063622 100%);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__content {
  display: grid;
  gap: 0.55rem;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
  font-weight: 800;
  color: rgba(236, 253, 245, 0.8);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 252, 231, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__urgency {
  display: none !important;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  height: 22px;
  background: #edf4ef;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, #0f5c34 0%, #2d7a38 100%);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
  min-width: 114px;
  min-height: 82px;
}

.th-profile-page__form {
  display: grid;
  gap: 1.25rem;
}

.th-profile-panel {
  overflow: hidden;
  border: 1px solid #dfe9e2 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefc 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.th-profile-panel .card-header {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #f7fbf8 0%, #eff7f1 100%) !important;
  border-bottom: 1px solid #dbe8df !important;
}

.th-profile-panel .card-body {
  padding: 1.25rem !important;
}

.th-profile-page .form-control,
.th-profile-page .form-select,
.th-profile-page textarea.form-control {
  border: 1px solid #d6e3da;
  border-radius: 16px;
  background: #f8fbf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.th-profile-page .form-control:focus,
.th-profile-page .form-select:focus,
.th-profile-page textarea.form-control:focus {
  border-color: #22c55e;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.th-profile-page .btn-primary {
  min-height: 46px;
  padding-inline: 1.1rem;
  border-radius: 14px;
  font-weight: 700;
}

.th-profile-page .th-rank-settings {
  border-color: #dbe8df;
  border-radius: 18px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, #f8fbf9 0%, #f1f7f2 100%);
}

.th-profile-page .th-progress-list {
  gap: 0.75rem;
}

.th-profile-page .th-progress-item {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid #e4eee7;
  align-items: center;
}

.th-profile-page .th-profile-hero {
  background:
    radial-gradient(circle at top right, rgba(187, 247, 208, 0.14), transparent 22%),
    linear-gradient(135deg, #0d4b2b 0%, #166534 45%, #15803d 100%);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
    min-height: 60px;
    border-radius: 16px;
    justify-content: flex-start;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 18px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 98px;
    min-height: 70px;
  }

  .th-profile-panel {
    border-radius: 20px !important;
  }

  .th-profile-panel .card-header,
  .th-profile-panel .card-body {
    padding: 1rem !important;
  }

  .th-profile-page .th-progress-item {
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
  }
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    display: block;
    min-height: 88px;
    padding: 0.85rem 0.8rem;
    border-radius: 16px;
    background: #f7fbf9;
    border: 1px solid #e4eee7;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 0.32rem 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__meta {
    display: contents;
    margin-top: 0;
  }
}

.th-profile-identity {
  min-width: 0;
}

.th-profile-avatar-lg--fallback {
  background: linear-gradient(180deg, #f7faf8 0%, #e8f3ec 100%);
  color: #166534;
}

.th-profile-avatar-lg__fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (max-width: 767.98px) {
  .th-profile-page .th-profile-hero {
    position: relative;
    padding: 1rem;
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(187, 247, 208, 0.14), transparent 24%),
      linear-gradient(145deg, #0c4a2a 0%, #166534 52%, #13703a 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    overflow: hidden;
  }

  .th-profile-page .th-profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.06)),
      radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.08), transparent 16%);
    pointer-events: none;
  }

  .th-profile-page .th-profile-hero__content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  .th-profile-page .th-profile-hero__left {
    width: 100%;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
    min-height: 108px;
    padding: 0.95rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  .th-profile-page .th-profile-hero__left,
  .th-profile-page .th-profile-hero__right {
    justify-self: stretch;
    min-width: 0;
  }

  .th-profile-page .th-profile-identity {
    display: grid;
    align-content: center;
    gap: 0.35rem;
    min-width: 0;
  }

  .th-profile-page .th-profile-avatar-lg {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, #f7faf8 0%, #e8f3ec 100%);
    color: #166534;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  }

  .th-profile-page .th-profile-avatar-lg img {
    border-radius: inherit;
    display: block;
  }

  .th-profile-page .th-profile-avatar-lg__fallback {
    font-size: 1.55rem;
  }

  .th-profile-page .th-profile-name {
    margin: 0;
    margin-bottom: 0 !important;
    font-size: clamp(1.7rem, 7vw, 2rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
  }

  .th-profile-page .th-profile-meta {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .th-profile-page .th-profile-role {
    min-height: 30px;
    padding: 0.36rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
  }

  .th-profile-page .th-profile-bio {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .th-profile-page .th-profile-bio--row {
    grid-column: 1 / -1;
    margin-top: -0.15rem;
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .th-profile-page .th-profile-hero__right {
    width: 100%;
    align-items: stretch;
    gap: 0.8rem;
  }

  .th-profile-page .th-profile-hero__stats {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    align-items: stretch;
  }

  .th-profile-page .th-profile-hero__stats .th-profile-stat {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    text-align: left;
  }

  .th-profile-page .th-profile-hero__stats .th-profile-stat:nth-child(3) {
    grid-column: 1 / -1;
  }

  .th-profile-page .th-profile-stat__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(240, 253, 244, 0.72);
  }

  .th-profile-page .th-profile-stat__value {
    margin-top: 0.35rem;
    display: block;
    font-size: 1.9rem;
    line-height: 1;
    color: #ffffff;
  }

  .th-profile-page .th-profile-stat__value--sm {
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .th-profile-page .th-profile-hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 0.05rem;
  }

  .th-profile-page .th-profile-hero__actions .btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
  }

  .th-profile-page .th-profile-hero__actions .btn:first-child {
    background: #ffffff;
    border-color: #ffffff;
    color: #14532d;
  }

  .th-profile-page .th-profile-hero__actions .btn:last-child {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
  }

  .th-profile-page .row.g-4 {
    --bs-gutter-y: 1rem;
  }
}

/* ---------- Progress Mobile Polish ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 1rem;
    border-radius: 26px;
    background:
      radial-gradient(circle at 50% 0%, rgba(163, 230, 53, 0.12), transparent 22%),
      radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), transparent 26%),
      linear-gradient(180deg, #041f14 0%, #073524 42%, #0b5a38 100%);
    border: 1px solid rgba(220, 252, 231, 0.12);
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.22);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    width: 100%;
    min-height: 50px;
    justify-content: flex-start;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.16);
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.06));
    border-color: rgba(255, 255, 255, 0.14);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "main main"
      "live goal";
    gap: 0.85rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body > .th-global-progress-card__aside:not(.th-global-progress-card__aside--right) {
    grid-area: live;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    grid-area: main;
    padding: 1.1rem 1rem 1rem;
    border-radius: 22px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.06)),
      linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border: 1px solid rgba(220, 252, 231, 0.14);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 12px 24px rgba(2, 6, 23, 0.12);
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    grid-area: goal;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    width: 92px;
    height: 92px;
    margin: 0 auto 0.8rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
    box-shadow: 0 0 0 10px rgba(163, 230, 53, 0.08);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 10px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 58px;
    height: 58px;
    font-size: 1.5rem;
    background: rgba(5, 52, 34, 0.88);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    text-align: center;
    font-size: clamp(1.55rem, 7vw, 1.95rem) !important;
    line-height: 1.08;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 19rem;
    margin: 0.55rem auto 0;
    text-align: center;
    color: rgba(240, 253, 244, 0.84);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.85rem;
    justify-content: center;
    gap: 0.24rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.85rem, 8.2vw, 2.35rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    margin-top: 0.2rem;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer {
    margin-top: 1rem;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem;
    border-radius: 20px;
    background: rgba(3, 25, 17, 0.42);
    border: 1px solid rgba(220, 252, 231, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.28rem;
    background: rgba(163, 230, 53, 0.12);
    color: #d9f99d;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__content {
    gap: 0.45rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__label {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
    min-height: 64px;
    justify-content: center;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    font-size: clamp(1.45rem, 7.4vw, 1.95rem);
    line-height: 1.05;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    min-height: 118px;
    padding: 0.9rem;
    border-radius: 18px;
    display: grid;
    align-content: start;
    gap: 0.28rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 44px;
    height: 44px;
    margin: 0 0 0.45rem;
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 1rem;
    line-height: 1.25;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    position: static;
    transform: none;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.5rem;
    border-width: 3px;
    font-size: 1.35rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0.8rem;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    grid-column: 1 / -1;
    height: 20px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    justify-self: end;
    min-width: 104px;
    min-height: 72px;
    padding: 0.7rem 0.85rem;
    border-radius: 18px;
    align-items: flex-end;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1.18rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    font-size: 0.66rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    margin-top: 0.85rem;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 92px;
    padding: 0.9rem 0.85rem;
    border-radius: 16px;
    font-size: 0.93rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 18px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.15rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-copy {
    min-width: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
    font-size: 0.95rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
    font-size: 0.83rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
  }
}

@media (max-width: 389.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "live"
      "goal";
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    grid-template-columns: minmax(0, 1fr);
  }
}

@keyframes th-progress-fill-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.22),
      inset 0 -1px 0 rgba(4, 120, 87, 0.2),
      0 0 12px rgba(22, 163, 74, 0.18),
      0 0 22px rgba(163, 230, 53, 0.08);
    filter: saturate(1) brightness(1);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(4, 120, 87, 0.28),
      0 0 18px rgba(22, 163, 74, 0.26),
      0 0 34px rgba(163, 230, 53, 0.14);
    filter: saturate(1.08) brightness(1.04);
  }
}

@keyframes th-progress-fill-sparkle {
  0% {
    transform: translateX(-115%) skewX(-18deg);
    opacity: 0;
  }
  12% {
    opacity: 0.24;
  }
  42% {
    opacity: 0.78;
  }
  100% {
    transform: translateX(235%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes th-progress-fill-tip-glow {
  0%, 100% {
    opacity: 0.78;
    transform: scale(0.96);
    filter: blur(0.2px);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    filter: blur(0.6px);
  }
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #edf5ef 0%, #dcebe1 100%);
  border: 1px solid rgba(22, 101, 52, 0.08);
  box-shadow:
    inset 0 1px 3px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.45);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 55%),
    linear-gradient(90deg, #0f5c34 0%, #1f8a46 52%, #84cc16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(4, 120, 87, 0.2),
    0 0 12px rgba(22, 163, 74, 0.18),
    0 0 22px rgba(163, 230, 53, 0.08);
  animation: th-progress-fill-breathe 2.8s ease-in-out infinite;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, transparent 10%, rgba(255, 255, 255, 0.08) 24%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0.08) 72%, transparent 90%);
  animation: th-progress-fill-sparkle 2.7s linear infinite;
  pointer-events: none;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 18%, rgba(217, 249, 157, 0.95) 22%, rgba(34, 197, 94, 0.6) 52%, transparent 72%);
  box-shadow:
    0 0 10px rgba(217, 249, 157, 0.45),
    0 0 18px rgba(34, 197, 94, 0.24);
  animation: th-progress-fill-tip-glow 2.2s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
    animation: none !important;
  }
}

/* ---------- Progress Emphasis ---------- */
.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
  margin-top: 1rem;
  gap: 0.26rem;
  align-items: baseline;
  justify-content: center;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(3.45rem, 8.4vw, 5.3rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.065em;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
  text-shadow:
    0 3px 10px rgba(2, 6, 23, 0.22),
    0 0 22px rgba(163, 230, 53, 0.14);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(1) {
  color: #d9f99d;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.82);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(2.55rem, 6.2vw, 3.75rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: rgba(236, 253, 245, 0.74);
  text-shadow:
    0 2px 8px rgba(2, 6, 23, 0.18),
    0 0 14px rgba(255, 255, 255, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
  margin-top: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
  margin-bottom: 1rem;
  font-size: 1.02rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
  gap: 1rem;
  align-items: center;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  height: 28px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #eef6f1 0%, #dcebe1 100%);
  box-shadow:
    inset 0 2px 5px rgba(15, 23, 42, 0.1),
    0 8px 18px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(255, 255, 255, 0.5);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  min-width: 14px;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%),
    linear-gradient(90deg, #0f5c34 0%, #1d8745 46%, #84cc16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(4, 120, 87, 0.24),
    0 0 14px rgba(22, 163, 74, 0.22),
    0 0 28px rgba(163, 230, 53, 0.1);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::before {
  background:
    linear-gradient(100deg, transparent 8%, rgba(255, 255, 255, 0.1) 24%, rgba(255, 255, 255, 0.82) 48%, rgba(255, 255, 255, 0.12) 72%, transparent 92%);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
  right: -1px;
  width: 30px;
  height: 30px;
  box-shadow:
    0 0 12px rgba(217, 249, 157, 0.5),
    0 0 24px rgba(34, 197, 94, 0.26);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
  min-width: 122px;
  min-height: 88px;
  padding: 0.9rem 1rem;
  border-radius: 20px;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-percent {
  font-size: 1.42rem;
  line-height: 1;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-label {
  margin-top: 0.3rem;
  font-size: 0.7rem;
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.95rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(3rem, 12vw, 4.35rem);
    line-height: 0.86;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(2.2rem, 8.2vw, 3rem);
    line-height: 0.9;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    font-size: 0.96rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0.9rem;
    font-size: 0.96rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 24px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
    width: 26px;
    height: 26px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 108px;
    min-height: 76px;
    padding: 0.8rem 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1.22rem;
  }
}

/* ---------- Progress Fill Overhang ---------- */
.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  --th-progress-fill-overhang: 4px;
  overflow: visible;
  isolation: isolate;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  height: calc(100% + (var(--th-progress-fill-overhang) * 2));
  margin-top: calc(var(--th-progress-fill-overhang) * -1);
  margin-bottom: calc(var(--th-progress-fill-overhang) * -1);
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    --th-progress-fill-overhang: 3px;
  }
}

/* ---------- Progress Reference Refresh ---------- */
.th-global-progress-wrap [data-progress-root] {
  position: relative;
  overflow: hidden;
  padding: 1.45rem 1.5rem 1.3rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(163, 230, 53, 0.06), transparent 18%),
    radial-gradient(circle at 84% 22%, rgba(251, 191, 36, 0.08), transparent 14%),
    radial-gradient(circle at 50% 92%, rgba(34, 197, 94, 0.09), transparent 20%),
    linear-gradient(180deg, #0a4d33 0%, #0a412d 48%, #083523 100%);
  border: 1px solid rgba(220, 252, 231, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 40px rgba(2, 6, 23, 0.18);
}

.th-global-progress-wrap [data-progress-root]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 16%, rgba(251, 191, 36, 0.7) 0 2px, transparent 2.5px),
    radial-gradient(circle at 90% 18%, rgba(251, 191, 36, 0.7) 0 2px, transparent 2.5px),
    radial-gradient(circle at 82% 74%, rgba(163, 230, 53, 0.32) 0 2px, transparent 2.5px),
    radial-gradient(circle at 18% 74%, rgba(163, 230, 53, 0.24) 0 1.5px, transparent 2px);
  opacity: 0.5;
}

.th-global-progress-wrap [data-progress-root] > * {
  position: relative;
  z-index: 1;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
  justify-content: center;
  gap: 0.85rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 252, 231, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 252, 231, 0.12);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) minmax(120px, 150px);
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
  padding: 0.15rem 0.5rem 0;
  background: none;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
  width: 74px;
  height: 74px;
  margin: 0 auto 0.75rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
  background: radial-gradient(circle, rgba(163, 230, 53, 0.18), rgba(163, 230, 53, 0.03) 62%, transparent 74%);
  box-shadow: 0 0 0 9px rgba(163, 230, 53, 0.05);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
  inset: 9px;
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.16), inset 0 0 12px rgba(163, 230, 53, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
  width: 48px;
  height: 48px;
  font-size: 1.15rem;
  background: rgba(7, 63, 42, 0.94);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
  justify-content: center;
  gap: 0.45rem;
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 2.45rem) !important;
  line-height: 1.08;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
  margin: 0.45rem auto 0;
  max-width: 34rem;
  font-size: 1rem;
  color: rgba(240, 253, 244, 0.86);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
  min-height: 0;
  padding: 0.5rem 0.25rem;
  border-radius: 0;
  background: none;
  border: 0;
  box-shadow: none;
  display: grid;
  justify-items: start;
  gap: 0.15rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
  width: 52px;
  height: 52px;
  margin: 0 0 0.45rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(220, 252, 231, 0.12);
  color: #f8fafc;
  font-size: 1.05rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
  justify-items: end;
  text-align: right;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right .th-global-progress-card__aside-icon {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.26), transparent 34%),
    linear-gradient(180deg, rgba(250, 204, 21, 0.24), rgba(245, 158, 11, 0.12));
  color: #fde047;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.76);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  color: #f8fafc;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
  font-size: 0.8rem;
  color: rgba(220, 252, 231, 0.8);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer {
  max-width: 420px;
  margin: 0.9rem auto 0;
  padding: 0.75rem 0.85rem;
  border-radius: 18px;
  background: rgba(2, 30, 20, 0.34);
  border: 1px solid rgba(220, 252, 231, 0.1);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.15rem;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
  min-height: 54px;
  background: rgba(255, 255, 255, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading badge"
    "bar bar"
    "timer timer"
    "stats stats"
    "footer footer";
  align-items: start;
  column-gap: 0.8rem;
  row-gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.95rem 0 0;
  border-radius: 0;
  background: none;
  color: #f8fafc;
  box-shadow: none;
  border-top: 1px solid rgba(220, 252, 231, 0.18);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
  position: static;
  grid-area: badge;
  justify-self: end;
  align-self: start;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  place-items: initial;
  border-radius: 0;
  border: 0;
  background: none;
  color: inherit;
  box-shadow: none;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
  grid-area: heading;
  margin-bottom: 0;
  padding-right: 0;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.78);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
  grid-area: bar;
  margin-top: 0;
  display: block;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
  grid-area: timer;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
  grid-area: stats;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
  grid-area: footer;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  height: 24px;
  background:
    linear-gradient(180deg, rgba(3, 35, 23, 0.92), rgba(5, 54, 36, 0.92));
  border: 1px solid rgba(163, 230, 53, 0.12);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  min-width: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 36%),
    linear-gradient(90deg, #17a24b 0%, #39d463 48%, #b8f72a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(4, 120, 87, 0.22),
    0 0 16px rgba(34, 197, 94, 0.28),
    0 0 30px rgba(163, 230, 53, 0.12);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
  min-width: 84px;
  height: auto;
  min-height: 62px;
  padding: 0.7rem 0.8rem;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(16, 87, 52, 0.96) 0%, rgba(11, 67, 39, 0.96) 100%);
  color: #ffffff;
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 20px rgba(2, 6, 23, 0.16);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge .th-global-progress-pill {
  min-width: 84px;
  min-height: 62px;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-percent {
  font-size: 1.3rem;
  color: #ffffff;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-label {
  margin-top: 0.22rem;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
  margin-top: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
  min-height: 76px;
  padding: 0.8rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(220, 252, 231, 0.08);
  color: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
  color: rgba(220, 252, 231, 0.66);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
  margin-top: 0.8rem;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  background: rgba(163, 230, 53, 0.08);
  border: 1px solid rgba(163, 230, 53, 0.12);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(163, 230, 53, 0.2), rgba(34, 197, 94, 0.16));
  color: #d9f99d;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
  color: #f8fafc;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
  color: rgba(220, 252, 231, 0.82);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
  min-height: 42px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
}

@media (max-width: 991.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 1fr;
    gap: 0.95rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    justify-items: center;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 1.1rem 1rem 1rem;
    border-radius: 22px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    gap: 0.65rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    width: 100%;
    justify-content: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    margin-top: 0.85rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    font-size: clamp(1.55rem, 7vw, 1.95rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    font-size: 0.92rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    padding: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer {
    max-width: none;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    top: -8px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    padding-right: 3rem;
    font-size: 0.7rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 22px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 78px;
    min-height: 58px;
    padding: 0.62rem 0.72rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1.12rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    font-size: 0.58rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    gap: 0.55rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 84px;
    padding: 0.78rem 0.8rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    gap: 0.7rem;
  }
}

/* ---------- Progress Mobile Compact ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 0.95rem 0.9rem 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    gap: 0.55rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    min-height: 44px;
    padding: 0.62rem 0.85rem;
    font-size: 0.86rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span {
    font-size: 0.72rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    gap: 0.7rem;
    margin-top: 0.7rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-areas:
      "crest title"
      "crest subtitle"
      "numbers numbers"
      "caption caption"
      "timer timer";
    column-gap: 0.75rem;
    row-gap: 0.28rem;
    align-items: center;
    padding: 0.1rem 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    grid-area: crest;
    width: 60px;
    height: 60px;
    margin: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
    box-shadow: 0 0 0 7px rgba(163, 230, 53, 0.05);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 7px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    grid-area: title;
    justify-content: flex-start;
    text-align: left;
    gap: 0.35rem;
    font-size: clamp(1.38rem, 6.2vw, 1.72rem) !important;
    line-height: 1.05;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    grid-area: subtitle;
    max-width: none;
    margin: 0;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.36;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    grid-area: numbers;
    margin-top: 0.2rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.65rem, 10.3vw, 3.9rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.95rem, 7.2vw, 2.7rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    grid-area: caption;
    margin-top: 0;
    font-size: 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer {
    grid-area: timer;
    margin-top: 0.4rem;
    padding: 0.62rem 0.72rem;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.6rem;
    border-radius: 16px;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__label {
    font-size: 0.68rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer__value {
    min-height: 48px;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    font-size: clamp(1.24rem, 6.5vw, 1.7rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    min-height: 92px;
    gap: 0.12rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.66rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.76rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0.55rem;
    padding-right: 2.85rem;
    font-size: 0.66rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    top: -6px;
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    gap: 0.55rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 20px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 72px;
    min-height: 52px;
    padding: 0.55rem 0.65rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 1rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    font-size: 0.54rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    margin-top: 0.7rem;
    gap: 0.5rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 74px;
    padding: 0.68rem 0.72rem;
    font-size: 0.86rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 0.6rem;
    padding: 0.72rem 0.8rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
    font-size: 0.88rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
    font-size: 0.76rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    grid-column: auto;
    width: auto;
    min-height: 40px;
    padding: 0.62rem 0.85rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* ---------- Progress Timer Under Bar ---------- */
.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
  max-width: 360px;
  margin: 0.72rem auto 0;
  padding: 0.58rem 0.68rem;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.58rem;
  border-radius: 15px;
  background: rgba(2, 30, 20, 0.28);
  border: 1px solid rgba(220, 252, 231, 0.08);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
  min-height: 42px;
  padding: 0.58rem 0.72rem;
  border-radius: 13px;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1;
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    grid-template-areas:
      "crest title"
      "crest subtitle"
      "numbers numbers"
      "caption caption";
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    max-width: 320px;
    margin-top: 0.62rem;
    padding: 0.5rem 0.58rem;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.52rem;
    border-radius: 14px;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    font-size: 0.6rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
    min-height: 38px;
    padding: 0.5rem 0.62rem;
    border-radius: 11px;
    font-size: clamp(0.96rem, 5vw, 1.18rem);
  }
}

/* ---------- Progress Mobile Alignment Cleanup ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 0.9rem 0.85rem 0.85rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    gap: 0.5rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    min-height: 42px;
    padding: 0.58rem 0.78rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span {
    font-size: 0.7rem;
    letter-spacing: 0.035em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "main main"
      "live goal";
    gap: 0.68rem;
    margin-top: 0.62rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body > .th-global-progress-card__aside:not(.th-global-progress-card__aside--right) {
    grid-area: live;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    grid-area: goal;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    grid-area: main;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 0.68rem;
    row-gap: 0.22rem;
    padding: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    width: 56px;
    height: 56px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
    box-shadow: 0 0 0 6px rgba(163, 230, 53, 0.05);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 6px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    gap: 0.3rem;
    font-size: clamp(1.28rem, 5.9vw, 1.58rem) !important;
    line-height: 1.04;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    font-size: 0.84rem;
    line-height: 1.3;
    color: rgba(240, 253, 244, 0.8);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.14rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.45rem, 9.8vw, 3.5rem);
    line-height: 0.84;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.76rem, 6.8vw, 2.45rem);
    line-height: 0.88;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside {
    min-height: 86px;
    justify-items: center;
    text-align: center;
    align-content: start;
    gap: 0.08rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 0.28rem;
    font-size: 0.84rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.84rem;
    line-height: 1.18;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 0.68rem;
    padding-top: 0.68rem;
    column-gap: 0.56rem;
    row-gap: 0.42rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0;
    padding-right: 0;
    font-size: 0.63rem;
    line-height: 1.2;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    justify-self: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    margin-top: 0;
    display: block;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 18px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 68px;
    min-height: 48px;
    padding: 0.48rem 0.56rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 0.94rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    margin-top: 0.15rem;
    font-size: 0.5rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    max-width: 292px;
    margin-top: 0.56rem;
    padding: 0.46rem 0.54rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    font-size: 0.58rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
    font-size: clamp(0.92rem, 4.7vw, 1.08rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    margin-top: 0.62rem;
    gap: 0.44rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 68px;
    padding: 0.6rem 0.66rem;
    font-size: 0.8rem;
    line-height: 1.22;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
    margin-bottom: 0.22rem;
    font-size: 0.64rem;
    line-height: 1.08;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.54rem;
    margin-top: 0.66rem;
    padding: 0.64rem 0.7rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
    width: 38px;
    height: 38px;
    font-size: 0.94rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
    margin-top: 0.14rem;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    min-height: 36px;
    padding: 0.54rem 0.72rem;
    font-size: 0.78rem;
  }
}

/* ---------- Progress Bar Larger ---------- */
@keyframes th-progress-track-halo {
  0%, 100% {
    box-shadow:
      inset 0 2px 5px rgba(0, 0, 0, 0.26),
      0 0 0 1px rgba(255, 255, 255, 0.03),
      0 0 12px rgba(34, 197, 94, 0.14),
      0 0 24px rgba(163, 230, 53, 0.07);
  }
  50% {
    box-shadow:
      inset 0 2px 5px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.04),
      0 0 18px rgba(34, 197, 94, 0.2),
      0 0 34px rgba(163, 230, 53, 0.11);
  }
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track {
  height: 30px;
  --th-progress-fill-overhang: 5px;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 12px rgba(34, 197, 94, 0.14),
    0 0 24px rgba(163, 230, 53, 0.07);
  animation: th-progress-track-halo 3s ease-in-out infinite;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(4, 120, 87, 0.22),
    0 0 18px rgba(34, 197, 94, 0.34),
    0 0 36px rgba(163, 230, 53, 0.15);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
  min-width: 78px;
  min-height: 54px;
}

.th-global-progress-wrap [data-progress-root] .th-gpp-percent {
  font-size: 1.02rem;
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 24px;
    --th-progress-fill-overhang: 4px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 74px;
    min-height: 52px;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    animation: none !important;
  }
}

/* ---------- Progress Header Inline ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header > :only-child {
    grid-column: 1 / -1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    width: 100%;
    min-height: 40px;
    padding: 0.5rem 0.65rem;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 16px;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle span {
    font-size: 0.65rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill i,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle i {
    font-size: 0.86rem;
  }
}

/* ---------- Progress Body Reference Row ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: minmax(72px, 0.78fr) minmax(0, 1.5fr) minmax(72px, 0.78fr);
    grid-template-areas: "live main goal";
    gap: 0.55rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    display: block;
    text-align: center;
    padding: 0 0.15rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.42rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
    box-shadow: 0 0 0 5px rgba(163, 230, 53, 0.05);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 5px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    justify-content: center;
    text-align: center;
    gap: 0.24rem;
    font-size: clamp(1.08rem, 4.9vw, 1.34rem) !important;
    line-height: 1.04;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    margin-top: 0.26rem;
    font-size: 0.74rem;
    line-height: 1.24;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.35rem;
    gap: 0.18rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.15rem, 9vw, 3.1rem);
    line-height: 0.84;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.55rem, 6vw, 2.15rem);
    line-height: 0.88;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    margin-top: 0.12rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.15;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    min-height: 0;
    justify-items: center;
    align-content: end;
    text-align: center;
    padding: 0 0.08rem 0.06rem;
    gap: 0.08rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.22rem;
    font-size: 0.75rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.54rem;
    letter-spacing: 0.05em;
    line-height: 1.1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.72rem;
    line-height: 1.15;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.64rem;
    line-height: 1.1;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    gap: 0.45rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    font-size: clamp(1rem, 4.8vw, 1.22rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(1.95rem, 8.8vw, 2.75rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.4rem, 5.8vw, 1.95rem);
  }
}

/* ---------- Progress Body Alignment Final ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: minmax(56px, 0.72fr) minmax(0, 2.1fr) minmax(56px, 0.72fr);
    gap: 0.5rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    min-width: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    flex-wrap: nowrap;
    justify-content: center;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(0.96rem, 4.2vw, 1.12rem) !important;
    line-height: 1;
    white-space: nowrap;
    max-width: 100%;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-text {
    white-space: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-icon {
    flex: 0 0 auto;
    font-size: 0.86em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 16rem;
    margin-inline: auto;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.3rem;
    align-items: flex-end;
    justify-content: center;
    gap: 0.16rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.55rem, 10.6vw, 3.65rem);
    line-height: 0.8;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.8rem, 7vw, 2.45rem);
    line-height: 0.84;
    margin-bottom: 0.08em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    font-size: 0.7rem;
    line-height: 1.1;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    width: 100%;
    justify-items: center;
    align-content: center;
    text-align: center;
    padding: 0 0.04rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    margin-bottom: 0.18rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.52rem;
    line-height: 1.08;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.7rem;
    line-height: 1.1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.62rem;
    line-height: 1.06;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 50px minmax(0, 1fr) 50px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    font-size: clamp(0.88rem, 4.5vw, 1rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.3rem, 10vw, 3.05rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.62rem, 6.4vw, 2.05rem);
  }
}

/* ---------- Progress Overview Compact ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    margin-top: 0.54rem;
    gap: 0.38rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 58px;
    padding: 0.5rem 0.56rem;
    font-size: 0.72rem;
    line-height: 1.14;
    border-radius: 14px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
    margin-bottom: 0.16rem;
    font-size: 0.56rem;
    line-height: 1.02;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    gap: 0.34rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 54px;
    padding: 0.46rem 0.5rem;
    font-size: 0.68rem;
  }
}

/* ---------- Progress Title Alignment Final ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 0.4rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    position: relative;
    display: block;
    width: 100%;
    margin-inline: auto;
    padding-right: 0.95rem;
    font-size: clamp(0.84rem, 3.9vw, 0.98rem) !important;
    line-height: 1.04;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-text {
    display: block;
    white-space: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.78em;
    line-height: 1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 12.5rem;
    margin-top: 0.22rem;
    font-size: 0.7rem;
    line-height: 1.18;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 30px;
    height: 30px;
    font-size: 0.68rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.48rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.66rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.58rem;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    padding-right: 0.85rem;
    font-size: clamp(0.76rem, 4vw, 0.88rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 11.5rem;
    font-size: 0.66rem;
  }
}

/* ---------- Progress Mobile Reference Final ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] {
    padding: 0.95rem 0.9rem 0.9rem;
    border-radius: 22px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header > :only-child {
    grid-column: 1 / -1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    width: 100%;
    min-height: 38px;
    padding: 0.48rem 0.6rem;
    justify-content: center;
    gap: 0.38rem;
    border-radius: 14px;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle span {
    font-size: 0.62rem;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill i,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle i {
    font-size: 0.8rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    grid-template-areas: "live main goal";
    gap: 0.45rem;
    margin-top: 0.72rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body > .th-global-progress-card__aside:not(.th-global-progress-card__aside--right) {
    grid-area: live;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    grid-area: goal;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    min-width: 0;
    padding: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.38rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::before {
    box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.05);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest::after {
    inset: 4px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__crest-icon {
    width: 26px;
    height: 26px;
    font-size: 0.68rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: clamp(0.82rem, 3.7vw, 0.98rem) !important;
    line-height: 1.02;
    text-align: center;
    white-space: nowrap;
    flex-wrap: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-text {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-icon {
    position: static;
    transform: none;
    flex: 0 0 auto;
    font-size: 0.82em;
    line-height: 1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 12.4rem;
    margin: 0.36rem auto 0;
    font-size: 0.68rem;
    line-height: 1.18;
    text-align: center;
    color: rgba(240, 253, 244, 0.82);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    margin-top: 0.82rem;
    align-items: flex-end;
    justify-content: center;
    gap: 0.14rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.7rem, 11vw, 3.9rem);
    line-height: 0.78;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.8rem, 7.2vw, 2.5rem);
    line-height: 0.82;
    margin-bottom: 0.08em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__caption {
    margin-top: 0.08rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.08;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    width: 100%;
    min-height: 0;
    justify-items: center;
    align-content: end;
    text-align: center;
    padding: 0;
    gap: 0.06rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 0.18rem;
    font-size: 0.68rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.48rem;
    line-height: 1.06;
    letter-spacing: 0.05em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.66rem;
    line-height: 1.08;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.58rem;
    line-height: 1.02;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview {
    margin-top: 0.62rem;
    padding-top: 0.62rem;
    column-gap: 0.48rem;
    row-gap: 0.36rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__heading {
    margin-bottom: 0;
    padding-right: 0;
    font-size: 0.6rem;
    line-height: 1.16;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__badge {
    justify-self: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-bar-wrap {
    margin-top: 0;
    display: block;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-track {
    height: 20px;
    --th-progress-fill-overhang: 4px;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-pill {
    min-width: 56px;
    min-height: 36px;
    padding: 0.34rem 0.4rem;
    align-items: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-percent {
    font-size: 0.78rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-gpp-label {
    margin-top: 0.08rem;
    font-size: 0.4rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    max-width: 272px;
    margin-top: 0.46rem;
    padding: 0.38rem 0.46rem;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: end;
    gap: 0.38rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 0.72rem;
    align-self: end;
    margin-bottom: 0.02rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__content {
    display: grid;
    gap: 0.18rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    font-size: 0.52rem;
    line-height: 1;
    text-align: center;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.34rem 0.42rem;
    font-size: clamp(0.78rem, 4vw, 0.92rem);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats {
    margin-top: 0.52rem;
    gap: 0.36rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span {
    min-height: 56px;
    padding: 0.46rem 0.52rem;
    font-size: 0.7rem;
    line-height: 1.12;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__goal-line::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__stats .th-global-progress-card__meta > span::before {
    margin-bottom: 0.14rem;
    font-size: 0.54rem;
    line-height: 1;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 0.48rem;
    margin-top: 0.58rem;
    padding: 0.58rem 0.64rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-icon {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-title {
    font-size: 0.78rem;
    line-height: 1.12;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-text {
    margin-top: 0.12rem;
    font-size: 0.68rem;
    line-height: 1.16;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-overview__footer-action {
    min-height: 34px;
    padding: 0.48rem 0.64rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 0.34rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    font-size: clamp(0.76rem, 3.9vw, 0.88rem) !important;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__subtitle {
    max-width: 11.3rem;
    font-size: 0.64rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong {
    font-size: clamp(2.38rem, 10.2vw, 3.2rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.62rem, 6.4vw, 2.08rem);
  }
}

/* ---------- Progress Header Single Line ---------- */
@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.9fr);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle {
    min-height: 36px;
    padding: 0.42rem 0.5rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle span {
    white-space: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span {
    font-size: 0.56rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle span {
    font-size: 0.58rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill i,
  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle i {
    font-size: 0.74rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body > .th-global-progress-card__aside:not(.th-global-progress-card__aside--right) .th-global-progress-card__aside-value {
    display: none;
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__header {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.86fr);
    gap: 0.34rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__pill span {
    font-size: 0.52rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-settings-toggle span {
    font-size: 0.54rem;
  }
}

/* ---------- Progress Desktop Alignment ---------- */
@media (min-width: 768px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__body {
    grid-template-columns: minmax(112px, 132px) minmax(0, 1fr) minmax(112px, 132px);
    gap: 1rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 0.32rem;
    font-size: clamp(1.46rem, 2.2vw, 1.9rem) !important;
    line-height: 1;
    max-width: 100%;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-text {
    white-space: nowrap;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__title-icon {
    font-size: 0.9em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside--right {
    justify-items: center;
    align-content: end;
    text-align: center;
    padding: 0.35rem 0.25rem 0;
    gap: 0.18rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-icon {
    margin-bottom: 0.38rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-label {
    font-size: 0.7rem;
    line-height: 1.1;
    letter-spacing: 0.05em;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value {
    font-size: 0.92rem;
    line-height: 1.15;
    max-width: 11ch;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__aside-value--muted {
    font-size: 0.76rem;
    line-height: 1.08;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
    align-self: end;
    margin-bottom: 0.02rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__content {
    display: grid;
    gap: 0.2rem;
    align-items: end;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    line-height: 1;
    text-align: center;
  }
}

/* ---------- Progress Finish Clean ---------- */

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(90deg, #148c42 0%, #1dcb54 44%, #b7f52f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(4, 120, 87, 0.22),
    0 0 14px rgba(34, 197, 94, 0.34),
    0 0 28px rgba(163, 230, 53, 0.12);
  animation: th-progress-fill-breathe 2.8s ease-in-out infinite;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      transparent 8%,
      rgba(255, 255, 255, 0.06) 24%,
      rgba(255, 255, 255, 0.38) 48%,
      rgba(255, 255, 255, 0.08) 72%,
      transparent 92%
    );
  opacity: 0.72;
  animation: th-progress-fill-sparkle 4.4s linear infinite;
  pointer-events: none;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -1px;
  width: 20px;
  height: calc(100% + 8px);
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 50%, rgba(255, 255, 255, 0.96) 0 12%, rgba(246, 255, 191, 0.9) 24%, rgba(184, 247, 47, 0.62) 52%, rgba(184, 247, 47, 0) 78%);
  box-shadow:
    0 0 10px rgba(217, 249, 157, 0.34),
    0 0 18px rgba(34, 197, 94, 0.18);
  animation: th-progress-fill-tip-glow 2.8s ease-in-out infinite;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::before,
  .th-global-progress-wrap [data-progress-root] .th-global-progress-track span::after {
    animation: none !important;
  }
}

/* ---------- Progress Number Contrast ---------- */
.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
  gap: 0.18rem;
  align-items: baseline;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(1) {
  font-size: clamp(4rem, 9.8vw, 6.25rem);
  line-height: 0.84;
  color: #d9f99d;
  text-shadow:
    0 4px 14px rgba(2, 6, 23, 0.22),
    0 0 26px rgba(163, 230, 53, 0.16);
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(2) {
  font-size: clamp(2.35rem, 5.8vw, 3.5rem);
  line-height: 0.9;
  color: rgba(236, 253, 245, 0.38);
  text-shadow: none;
}

.th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
  font-size: clamp(2rem, 5.1vw, 3rem);
  color: rgba(236, 253, 245, 0.62);
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers {
    gap: 0.12rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(1) {
    font-size: clamp(3.15rem, 13.2vw, 4.45rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers strong:nth-of-type(2) {
    font-size: clamp(1.85rem, 7vw, 2.6rem);
  }

  .th-global-progress-wrap [data-progress-root] .th-global-progress-card__numbers span {
    font-size: clamp(1.55rem, 5.9vw, 2.12rem);
  }
}

/* ---------- Progress Timer Reference ---------- */
.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
  max-width: none;
  margin-top: 1rem;
  padding: 1rem 1rem;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 0.72rem;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(6, 58, 34, 0.68), rgba(4, 47, 27, 0.78));
  border: 1px solid rgba(179, 255, 210, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(2, 6, 23, 0.14);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(15, 63, 40, 0.94), rgba(8, 43, 27, 0.94));
  color: rgba(240, 253, 244, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(2, 6, 23, 0.14);
  font-size: 1.22rem;
  align-self: center;
  margin-bottom: 0;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-width: 0;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  text-align: left;
  white-space: nowrap;
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
  min-height: 0;
  margin-top: 0;
  padding: 0.64rem 1.02rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  background:
    linear-gradient(180deg, rgba(112, 54, 33, 0.94), rgba(86, 39, 24, 0.94));
  border: 1px solid rgba(255, 196, 154, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(45, 15, 8, 0.22);
  color: #ff845f;
  font-size: clamp(1.02rem, 2vw, 1.48rem);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(255, 132, 95, 0.18);
}

.th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value::before {
  content: "\f252";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
  line-height: 1;
  color: rgba(255, 132, 95, 0.92);
}

@media (max-width: 767.98px) {
  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    max-width: none;
    margin-top: 0.68rem;
    padding: 0.54rem 0.62rem;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 0.46rem;
    border-radius: 16px;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
    border-radius: 999px;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.42rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    font-size: 0.6rem;
    text-align: left;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
    width: 100%;
    justify-content: center;
    padding: 0.46rem 0.68rem;
    font-size: clamp(0.88rem, 4vw, 1.08rem);
  }
}

@media (max-width: 379.98px) {
  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview {
    padding: 0.48rem 0.54rem;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.42rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__icon {
    width: 32px;
    height: 32px;
    font-size: 0.84rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__label {
    font-size: 0.56rem;
  }

  .th-global-progress-wrap [data-progress-root] .th-progress-timer--overview .th-progress-timer__value {
    padding: 0.4rem 0.6rem;
    font-size: clamp(0.82rem, 4vw, 1rem);
  }
}
