/* Trustpilot rating badge (shared/_trustpilot_badge.php) */
.tp-badge, .tp-footrow {
  --tp-green: #00b67a;
  --tp-star: var(--tp-green);
  --tp-star-off: rgba(255, 255, 255, 0.14);
  --tp-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l3.09 7.26 7.86.68-5.96 5.17 1.79 7.69L12 18.27 5.22 22.3l1.79-7.69L1.05 9.44l7.86-.68z'/%3E%3C/svg%3E"); /* SVG so it centres the same in every font */
}
[data-theme="light"] .tp-badge,
[data-theme="light"] .tp-footrow { --tp-star-off: #dcdce6; }

.tp-badge { color: var(--text-primary); }
.tp-badge b { font-weight: 700; color: var(--text-primary); }

.tp-name { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 800; color: var(--text-primary); letter-spacing: -0.01em; }
.tp-name::before { content: ""; width: 1.05em; height: 1.05em; flex-shrink: 0; background: var(--tp-green); -webkit-mask: var(--tp-star-shape) center / contain no-repeat; mask: var(--tp-star-shape) center / contain no-repeat; }

/* Stars: square tiles, always Trustpilot green */
.tp-stars { display: inline-flex; gap: 0.125rem; vertical-align: middle; }
.tp-stars i { --tp-size: 1.375rem; position: relative; display: inline-block; width: var(--tp-size); height: var(--tp-size); border-radius: 0.125rem; background: var(--tp-star-off); }
.tp-stars i.tp-star-full { background: var(--tp-star); }
.tp-stars i.tp-star-half { background: linear-gradient(90deg, var(--tp-star) 50%, var(--tp-star-off) 50%); }
.tp-stars i::after { content: ""; position: absolute; inset: 18%; background: #fff; -webkit-mask: var(--tp-star-shape) center / contain no-repeat; mask: var(--tp-star-shape) center / contain no-repeat; }
.tp-stars.tp-sm i { --tp-size: 1rem; }
.tp-stars.tp-xs i { --tp-size: 0.8125rem; }

/* Home card: Trustpilot-green glow and top highlight */
.tp-combo {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 31.75rem; /* same width as the Kumuls card; wider screens centre it */
  margin: 1rem auto;
  padding: 1rem 1.125rem;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(0, 182, 122, 0.22), transparent 70%),
    #1A1A26;
  border: 0.0625rem solid rgba(0, 182, 122, 0.35);
  border-radius: 1rem;
}
[data-theme="light"] .tp-combo { background: radial-gradient(70% 120% at 0% 0%, rgba(0, 182, 122, 0.12), transparent 70%), var(--bg-card); }
.tp-combo::before { content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 0.125rem; background: linear-gradient(90deg, transparent, var(--tp-green), transparent); }
.tp-combo-main { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; min-width: 0; }
.tp-combo .tp-name { font-size: 0.875rem; }
.tp-word { font-size: 1.25rem; font-weight: 800; line-height: 1.1; color: var(--text-primary); }
.tp-meta { font-size: 0.75rem; color: var(--text-secondary); }

/* Withdrawal strip: same glow + top highlight as the home card */
.tp-line {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  margin: 1.25rem 0 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  background:
    radial-gradient(50% 180% at 50% 0%, rgba(0, 182, 122, 0.18), transparent 70%),
    rgba(0, 182, 122, 0.05);
  border: 0.0625rem solid rgba(0, 182, 122, 0.35);
  border-radius: 0.75rem;
}
.tp-line::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 0.0625rem; background: linear-gradient(90deg, transparent, var(--tp-green), transparent); }
.tp-line .tp-name { font-family: var(--font-brand); font-size: 0.875rem; font-weight: 700; }
.tp-line b { font-weight: 600; }
.tp-line > span:not(.tp-stars):not(.tp-name) b:first-child { font-family: var(--font-brand); font-weight: 700; }

/* Footer row: pills like the licence tags */
.tp-footrow { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 1.25rem; }
.tp-chip, .tp-ms {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border: 0.0625rem solid var(--border-field);
  border-radius: 62.4375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.tp-ms .tp-name { font-size: 0.75rem; }

/* PC home: same card, one centred row, glow from the top centre and a star at both ends */
.tp-combo-wide {
  max-width: none;
  margin: 0 0 2.5rem;
  padding: 1.125rem 1.5rem;
  justify-content: center;
  background:
    radial-gradient(55% 160% at 50% 0%, rgba(0, 182, 122, 0.24), transparent 70%),
    #1A1A26;
}
[data-theme="light"] .tp-combo-wide { background: radial-gradient(55% 160% at 50% 0%, rgba(0, 182, 122, 0.12), transparent 70%), var(--bg-card); }
.tp-combo-wide::after,
.tp-combo-wide .tp-combo-main::before { content: ""; position: absolute; top: 50%; width: 5.5rem; height: 5.5rem; background: rgba(0, 182, 122, 0.1); -webkit-mask: var(--tp-star-shape) center / contain no-repeat; mask: var(--tp-star-shape) center / contain no-repeat; pointer-events: none; }
.tp-combo-wide::after { right: 1.5rem; transform: translateY(-50%) rotate(14deg); }
.tp-combo-wide .tp-combo-main::before { left: 1.5rem; transform: translateY(-50%) rotate(-14deg); }
.tp-combo-wide .tp-combo-main { position: static; flex-direction: row; align-items: center; gap: 1.25rem; }
.tp-combo-wide .tp-name { font-family: var(--font-brand); font-size: 1.0625rem; font-weight: 700; }
.tp-combo-wide .tp-word { font-family: var(--font-brand); font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; }
.tp-combo-wide .tp-stars i { --tp-size: 1.625rem; }
.tp-combo-wide .tp-meta { font-size: 0.875rem; padding-left: 1.25rem; border-left: 0.0625rem solid rgba(0, 182, 122, 0.35); }
.tp-combo-wide .tp-meta b { font-weight: 600; }
.tp-footrow .tp-ms { border-color: rgba(0, 182, 122, 0.55); }
.tp-combo-top { margin-bottom: 1.5rem; } /* mobile home: a bit of space before the Kumuls card */

/* Withdrawal Submitted modal: small green card between the message and OK */
.tp-modal {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4375rem;
  margin-top: 1.375rem;
  padding: 0.875rem 1rem 0.8125rem;
  background:
    radial-gradient(60% 160% at 50% 0%, rgba(0, 182, 122, 0.2), transparent 70%),
    rgba(0, 182, 122, 0.05);
  border: 0.0625rem solid rgba(0, 182, 122, 0.35);
  border-radius: 0.875rem;
}
.tp-modal::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 0.0625rem; background: linear-gradient(90deg, transparent, var(--tp-green), transparent); }
.tp-modal-row { display: inline-flex; align-items: center; gap: 0.625rem; }
.tp-modal .tp-name { font-family: var(--font-brand); font-size: 0.9375rem; font-weight: 700; }
.tp-modal .tp-stars i { --tp-size: 1.125rem; }
.tp-modal-meta { font-size: 0.75rem; color: var(--text-secondary); }
.tp-modal-meta b { font-weight: 600; }
.tp-modal-meta b:first-child { font-family: var(--font-brand); font-weight: 700; color: var(--tp-green); }
