/* =========================================================
   Dodo Tradez Score System

   Official Dodo Pink:
   #ff165d

   Prop Score:
   Firm reputation = gold stars + review count.

   Account Score:
   Account/challenge quality = Golden Eggs.

   Dodo Verified:
   Blue rosette verification badge.
   ========================================================= */

.dt-prop-score,
.dt-account-score,
.dt-verified-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
  box-sizing: border-box;
}

/* =========================================================
   PROP SCORE
   ========================================================= */

.dt-prop-score {
  --dt-mark-size: 18px;

  gap: 9px;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;

  color: #ffffff;
  background: rgba(8, 8, 13, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 15px rgba(255,255,255,0.025);

  vertical-align: middle;
}

.dt-prop-score__number,
.dt-prop-score__reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--dt-mark-size);
  line-height: 1;
  margin: 0;
  padding: 0;

  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dt-prop-score__number {
  color: #ffffff;
  font-size: 24px;
}

.dt-prop-score__reviews {
  color: #ff165d;
  font-size: 24px;
}

.dt-prop-score__stars {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: var(--dt-mark-size);
  line-height: 1;
}

.dt-prop-score__star {
  --star-fill: 0%;

  position: relative;
  display: inline-block;
  width: var(--dt-mark-size);
  height: var(--dt-mark-size);
  flex: 0 0 auto;

  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 56%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 56%,
    2% 35%,
    39% 35%
  );

  background: #4a4c54;
  overflow: hidden;
}

.dt-prop-score__star::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--star-fill);
  background: linear-gradient(180deg, #ffe37a 0%, #f6c640 46%, #e8a900 100%);
}

.dt-prop-score__divider {
  width: 2px;
  height: 24px;
  margin: 0 4px;
  background: rgba(255,255,255,0.16);
}

/* Compact version for dense tables if needed */
.dt-prop-score--compact {
  --dt-mark-size: 12px;
  gap: 5px;
  min-height: 25px;
  padding: 4px 8px;
  border-width: 1px;
}

.dt-prop-score--compact .dt-prop-score__number,
.dt-prop-score--compact .dt-prop-score__reviews {
  font-size: 12px;
}

.dt-prop-score--compact .dt-prop-score__divider {
  width: 1px;
  height: 14px;
  margin: 0 2px;
}

/* =========================================================
   HEART COUNT
   ========================================================= */

.dt-heart-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ff165d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.dt-heart-count::before {
  content: "♡";
  font-size: 15px;
  line-height: 1;
}

/* =========================================================
   ACCOUNT SCORE
   Number first, then proper SVG-masked eggs.
   No multi-gradient border.
   No Fit Score.
   ========================================================= */

.dt-account-score {
  --dt-mark-size: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;

  color: #ffffff;
  background: rgba(8, 8, 13, 0.96);
  border: 1px solid rgba(255,255,255,0.20);

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 0 12px rgba(255,255,255,0.025);

  white-space: nowrap;
  line-height: 1;
  box-sizing: border-box;
  vertical-align: middle;
}

.dt-account-score--pink {
  border-color: rgba(255, 22, 93, 0.86);
}

.dt-account-score__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: var(--dt-mark-size);
  line-height: 1;
  margin: 0;
  padding: 0;

  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.dt-account-score__eggs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: var(--dt-mark-size);
  line-height: 1;
}

.dt-account-score__egg {
  position: relative;
  display: inline-block;
  width: calc(var(--dt-mark-size) * 0.72);
  height: var(--dt-mark-size);
  flex: 0 0 auto;

  overflow: hidden;
  transform: rotate(-14deg);

  background:
    radial-gradient(circle at 36% 27%, rgba(255,255,255,0.18), rgba(255,255,255,0) 36%),
    linear-gradient(180deg, #585b64 0%, #2e3038 100%);

  -webkit-mask: url("/assets/dodo-golden-egg-mask.svg") center / contain no-repeat;
  mask: url("/assets/dodo-golden-egg-mask.svg") center / contain no-repeat;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.08),
    inset 0 -2px 3px rgba(0,0,0,0.30);
}

.dt-account-score__egg-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;

  background:
    radial-gradient(circle at 36% 27%, rgba(255,255,255,0.36), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #ffe37a 0%, #f6c640 46%, #e8a900 100%);
}

.dt-account-score--compact {
  --dt-mark-size: 14px;
  gap: 6px;
  min-height: 24px;
  padding: 4px 8px;
}

.dt-account-score--compact .dt-account-score__number {
  font-size: 12px;
}

.dt-account-score--large {
  --dt-mark-size: 28px;
  gap: 11px;
  min-height: 46px;
  padding: 8px 14px;
  border-width: 2px;
}

.dt-account-score--large .dt-account-score__number {
  font-size: 26px;
}

/* =========================================================
   DODO VERIFIED
   ========================================================= */

.dt-verified-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: url("/assets/dodo-verified-badge.svg") center / contain no-repeat;
  vertical-align: middle;
  flex: 0 0 auto;
}

.dt-verified-icon--small {
  width: 18px;
  height: 18px;
}

.dt-verified-icon--large {
  width: 42px;
  height: 42px;
}

.dt-verified-pill {
  position: relative;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;

  color: #ffffff;
  background:
    linear-gradient(#101018,#101018) padding-box,
    linear-gradient(90deg,#0a7cff,#ff165d,#8d4dff) border-box;

  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);

  font-size: 12px;
  font-weight: 900;
}

.dt-verified-pill .dt-verified-icon {
  width: 22px;
  height: 22px;
}

/* =========================================================
   MEGA MENU VERIFIED ITEM
   Badge is outside the text flow so columns stay aligned.
   ========================================================= */

.dt-mega-verified-link {
  position: relative !important;
  display: block !important;
  overflow: visible !important;
}

.dt-mega-verified-link .dt-verified-icon {
  position: absolute !important;
  left: -36px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 28px !important;
  height: 28px !important;
}

.dt-mega-verified-copy {
  display: block !important;
}

.dt-mega-verified-title {
  display: block !important;
  color: #ffffff !important;
  font-weight: 900 !important;
}

.dt-mega-verified-sub {
  display: block !important;
  margin-top: 3px !important;
  color: #aeb3c2 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

/* Kill old dual score pieces if any old script survives */
.dodo-fit-mark,
.dodo-fit-score-number,
.dodo-score-slash {
  display: none !important;
}

/* =========================================================
   Dodo Verified inside account rows and Account Score pill
   ========================================================= */

.dt-account-name-with-verified {
  position: relative;
  display: inline-block;
  overflow: visible;
}

/* Badge sits outside the account-name text flow.
   Account names remain aligned in the column. */
.dt-account-name-with-verified::before {
  content: "";
  position: absolute;
  left: -28px;
  top: calc(50% + 1px);
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("/assets/DodoVerified.svg?v=final-user-logo-1") center / contain no-repeat;
  pointer-events: none;
}

/* Badge inside the Golden Egg / Account Score pill */
.dt-account-score__verified-divider {
  display: inline-block;
  width: 1px;
  height: 16px;
  margin-left: 2px;
  margin-right: 1px;
  background: rgba(255,255,255,.24);
  align-self: center;
}

.dt-account-score__verified-badge {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url("/assets/DodoVerified.svg?v=final-user-logo-1") center / contain no-repeat;
  vertical-align: middle;
}

.dt-account-score--compact .dt-account-score__verified-divider {
  height: 14px;
}

.dt-account-score--compact .dt-account-score__verified-badge {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.dt-account-score--large .dt-account-score__verified-divider {
  height: 22px;
}

.dt-account-score--large .dt-account-score__verified-badge {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

/* Future filter button state for Dodo Verified only */
.dodo-filter-verified.is-active,
.dodo-filter-verified[aria-pressed="true"] {
  border-color: rgba(10,114,245,.9);
}

/* =========================================================
   Comparison table column dividers
   Helps separate account badges, scores, account size, price, etc.
   ========================================================= */

.dodo-compare-table th,
.dodo-compare-table td {
  border-left: 1px solid rgba(255,255,255,0.08);
}

.dodo-compare-table th:first-child,
.dodo-compare-table td:first-child {
  border-left: 0;
}

.dodo-compare-table th {
  border-left-color: rgba(255,255,255,0.11);
}

.dodo-compare-table td {
  border-left-color: rgba(255,255,255,0.075);
}

/* Move standalone Dodo Verified account badge closer to the account name.
   Old position was further left. This keeps the account text aligned. */

.dt-account-name-with-verified::before {
  left: -23px !important;
}

/* Dense table eggs should be visually calm and uniform. */
.dodo-compare-table .dt-account-score__egg {
  transform: rotate(0deg) !important;
}

/* =========================================================
   Sophisticated comparison table layout
   - no heavy table box
   - no separate table background
   - soft partial-height column dividers
   - sticky header ready
   - horizontal scrolling ready
   ========================================================= */

.dodo-table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  scrollbar-gutter: stable;
}

/* Remove old full-height column borders */
.dodo-compare-table th,
.dodo-compare-table td {
  border-left: 0 !important;
  position: relative;
}

/* Soft partial-height vertical dividers */
.dodo-compare-table th:not(:first-child)::before,
.dodo-compare-table td:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255,255,255,0.075);
  pointer-events: none;
}

.dodo-compare-table th:not(:first-child)::before {
  top: 25%;
  height: 50%;
  background: rgba(255,255,255,0.105);
}

/* Keep the table clean on the section background */
.dodo-compare-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Sticky header ready for wide scrolling tables */
.dodo-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5,5,10,0.94);
  backdrop-filter: blur(10px);
}

/* Cleaner row separation */
.dodo-compare-table tbody tr {
  background: transparent !important;
}

.dodo-compare-table tbody td {
  border-bottom: 1px solid rgba(255,255,255,0.075);
}

.dodo-compare-table thead th {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Space inside cells so dividers do not crowd text */
.dodo-compare-table th,
.dodo-compare-table td {
  padding-left: 14px;
  padding-right: 14px;
}

/* First column does not need the extra left padding */
.dodo-compare-table th:first-child,
.dodo-compare-table td:first-child {
  padding-left: 0;
}

/* Move standalone Dodo Verified badge a little closer to the account name */
.dt-account-name-with-verified::before {
  left: -23px !important;
}

/* Dense data tables look calmer with upright eggs */
.dodo-compare-table .dt-account-score__egg {
  transform: rotate(0deg) !important;
}

/* =========================================================
   Sophisticated comparison table layout
   - no heavy table box
   - no separate table background
   - soft partial-height column dividers
   - sticky header ready
   - horizontal scrolling ready
   ========================================================= */

.dodo-table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  scrollbar-gutter: stable;
}

/* Remove old full-height column borders */
.dodo-compare-table th,
.dodo-compare-table td {
  border-left: 0 !important;
  position: relative;
}

/* Soft partial-height vertical dividers */
.dodo-compare-table th:not(:first-child)::before,
.dodo-compare-table td:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: rgba(255,255,255,0.075);
  pointer-events: none;
}

.dodo-compare-table th:not(:first-child)::before {
  top: 25%;
  height: 50%;
  background: rgba(255,255,255,0.105);
}

/* Keep the table clean on the section background */
.dodo-compare-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Sticky header ready for wide scrolling tables */
.dodo-compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(5,5,10,0.94);
  backdrop-filter: blur(10px);
}

/* Cleaner row separation */
.dodo-compare-table tbody tr {
  background: transparent !important;
}

.dodo-compare-table tbody td {
  border-bottom: 1px solid rgba(255,255,255,0.075);
}

.dodo-compare-table thead th {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

/* Space inside cells so dividers do not crowd text */
.dodo-compare-table th,
.dodo-compare-table td {
  padding-left: 14px;
  padding-right: 14px;
}

/* First column does not need the extra left padding */
.dodo-compare-table th:first-child,
.dodo-compare-table td:first-child {
  padding-left: 0;
}

/* Move standalone Dodo Verified badge a little closer to the account name */
.dt-account-name-with-verified::before {
  left: -23px !important;
}

/* Dense data tables look calmer with upright eggs */
.dodo-compare-table .dt-account-score__egg {
  transform: rotate(0deg) !important;
}
