/*
 * Public T-Points program page ("/t-points-program") — built from the
 * Metronic "تي بوينت - صفحة البرنامج" design, content only (the site header
 * and footer replace the design's own).
 *
 * Scoped under .tpp. Light is the base palette; the site theme classes
 * (body.darkMode / html.darkMode, see twelve-ui.css) switch to dark, so the
 * page follows the header theme toggle live.
 */

.tpp {
    --tpp-bg: #f6f6f8;
    --tpp-surface: #ffffff;
    --tpp-surface2: #f0f0f3;
    --tpp-line: #e0e0e5;
    --tpp-line2: #d2d2d8;
    --tpp-ink: #17171b;
    --tpp-ink2: #4b4b54;
    --tpp-ink3: #6b6b74;
    --tpp-chip: #ececf0;
    --tpp-tp: #ffb640;
    --tpp-tp-ink: #a35f00;
    --tpp-tp-soft: rgba(255, 182, 64, 0.14);
    --tpp-tp-line: rgba(255, 182, 64, 0.5);
    --tpp-good: #15803d;
    --tpp-good-soft: rgba(22, 163, 74, 0.1);
    --tpp-good-line: rgba(22, 163, 74, 0.3);
    --tpp-blue: #2563eb;
    --tpp-brand: var(--tw-brand, #f5395f);
    --tpp-brand-2: var(--tw-brand-2, #fb7185);
    --tpp-brand-ink: #dc2149;
    --tpp-brand-soft: rgba(244, 63, 94, 0.08);
    --tpp-brand-line: rgba(244, 63, 94, 0.3);
    --tpp-head: rgba(255, 255, 255, 0.86);
    --tpp-shadow: 0 2px 10px rgba(24, 24, 27, 0.06);
    --tpp-dots: rgba(0, 0, 0, 0.07);
    --tpp-card-shadow: 0 20px 44px rgba(24, 24, 27, 0.14);
    --tpp-h1: linear-gradient(110deg, #a35f00, #e0890f 55%, #a35f00);
    --tpp-display: "Baloo Bhaijaan 2", var(--tw-font, sans-serif);
    --tpp-nav-h: 50px;
    --tpp-anchor-offset: calc(var(--tw-header-h, 70px) + var(--tpp-nav-h) + 12px);

    padding-top: var(--tw-header-h, 70px);
    background: var(--tpp-bg);
    color: var(--tpp-ink);
    font-family: var(--tw-font);
    transition: background 0.4s, color 0.4s;
}

body.darkMode .tpp,
html.darkMode body:not(.lightMode) .tpp {
    --tpp-bg: #0f0f11;
    --tpp-surface: #151517;
    --tpp-surface2: #1d1d21;
    --tpp-line: #1e1e21;
    --tpp-line2: #2c2c31;
    --tpp-ink: #ffffff;
    --tpp-ink2: #8b8b93;
    --tpp-ink3: #77777f;
    --tpp-chip: #1e1e21;
    --tpp-tp-ink: #ffb640;
    --tpp-tp-soft: rgba(255, 182, 64, 0.1);
    --tpp-tp-line: rgba(255, 182, 64, 0.3);
    --tpp-good: #4ade80;
    --tpp-good-soft: rgba(74, 222, 128, 0.1);
    --tpp-good-line: rgba(74, 222, 128, 0.3);
    --tpp-blue: #60a5fa;
    --tpp-brand-ink: #fb7185;
    --tpp-brand-soft: rgba(244, 63, 94, 0.1);
    --tpp-head: rgba(15, 15, 17, 0.84);
    --tpp-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --tpp-dots: rgba(255, 255, 255, 0.05);
    --tpp-card-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --tpp-h1: linear-gradient(110deg, #ffb640, #ffd88a 55%, #ffb640);
}

.tpp *,
.tpp *::before,
.tpp *::after {
    box-sizing: border-box;
}

.tpp a {
    text-decoration: none;
}

.tpp h1,
.tpp h2,
.tpp p {
    margin: 0;
}

.tpp-defs {
    position: absolute;
    width: 0;
    height: 0;
}

.tpp-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 20px;
}

/* Tier color for text: dark uses the vivid color, light a deeper shade. */
.tpp [style*="--tier"] {
    --tier-ink: var(--tier-light);
}

body.darkMode .tpp [style*="--tier"],
html.darkMode body:not(.lightMode) .tpp [style*="--tier"] {
    --tier-ink: var(--tier);
}

.tpp-tier-ink { color: var(--tier-ink); }
.tpp-tp-ink { color: var(--tpp-tp-ink); }
.tpp-good-ink { color: var(--tpp-good); }
.tpp-blue-ink { color: var(--tpp-blue); }
.tpp-muted { color: var(--tpp-ink3); font-weight: 600; }
.tpp-sm { font-size: 12.5px; }

/* RTL arrows ("←") point the reading direction; mirror them in LTR. */
[dir="ltr"] .tpp-arrow {
    display: inline-block;
    transform: scaleX(-1);
}

/* ── Animations ─────────────────────────────────────────────────────── */

@keyframes tpp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes tpp-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes tpp-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes tpp-float { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes tpp-float2 { 0%, 100% { transform: translateY(0) rotate(10deg); } 50% { transform: translateY(-9px) rotate(4deg); } }
@keyframes tpp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes tpp-glow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes tpp-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(4deg); } }
@keyframes tpp-rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 12% { opacity: 0.55; } 70% { opacity: 0.35; } 100% { transform: translateY(-130px) scale(0.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .tpp *,
    .tpp *::before,
    .tpp *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Journey nav (sticky under the site header) ─────────────────────── */

.tpp-journey {
    position: sticky;
    top: var(--tw-header-h, 70px);
    z-index: 20;
    background: var(--tpp-head);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--tpp-line);
}

.tpp-journey__in {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: var(--tpp-nav-h);
    padding-block: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tpp-journey__in::-webkit-scrollbar { display: none; }

.tpp-journey__title {
    font-size: 11px;
    font-weight: 800;
    color: var(--tpp-ink3);
    white-space: nowrap;
    margin-inline-end: 6px;
}

.tpp-journey__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--tpp-line2);
    background: var(--tpp-surface);
    color: var(--tpp-ink2);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s;
}

.tpp-journey__link b {
    color: var(--tpp-tp-ink);
    font-size: 10.5px;
}

.tpp-journey__link:hover {
    border-color: var(--tpp-tp);
    color: var(--tpp-tp-ink);
}

.tpp section[id] {
    scroll-margin-top: var(--tpp-anchor-offset);
}

#tpp-leaders {
    scroll-margin-top: var(--tpp-anchor-offset);
}

/* ── Shared building blocks ─────────────────────────────────────────── */

.tpp-pill {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--tpp-tp-soft);
    border: 1px solid var(--tpp-tp-line);
    color: var(--tpp-tp-ink);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 800;
}

.tpp-pill svg { flex-shrink: 0; }

.tpp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tpp-tp);
    flex-shrink: 0;
}

.tpp-dot--glow {
    box-shadow: 0 0 8px var(--tpp-tp);
    animation: tpp-glow 2s ease-in-out infinite;
}

.tpp-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tpp-actions--center {
    justify-content: center;
    margin-top: 6px;
}

.tpp-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
}

.tpp-btn--lg { height: 50px; }

.tpp-btn--brand {
    background: linear-gradient(110deg, var(--tpp-brand), var(--tpp-brand-2));
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
}

.tpp-btn--brand:hover {
    color: #fff;
    transform: translateY(-2px);
}

.tpp-btn--ghost {
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    color: var(--tpp-ink);
}

.tpp-btn--ghost:hover {
    border-color: var(--tpp-tp);
    color: var(--tpp-tp-ink);
}

.tpp-btn--tp {
    background: var(--tpp-tp-soft);
    border: 1px solid var(--tpp-tp-line);
    color: var(--tpp-tp-ink);
    font-weight: 800;
}

.tpp-btn--tp:hover {
    border-color: var(--tpp-tp);
    color: var(--tpp-tp-ink);
    transform: translateY(-2px);
}

.tpp-btn--tp[aria-disabled="true"] {
    font-family: inherit;
    opacity: 0.5;
    cursor: not-allowed;
}

.tpp-btn--tp[aria-disabled="true"]:hover {
    border-color: var(--tpp-tp-line);
    transform: none;
}

/* Hover/focus hint above a control, text from data-tip. */
.tpp-tip {
    position: relative;
    display: inline-flex;
}

.tpp-tip::before,
.tpp-tip::after {
    position: absolute;
    left: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 4px);
    transition: opacity 0.18s, transform 0.18s;
}

.tpp-tip::after {
    content: attr(data-tip);
    bottom: calc(100% + 9px);
    padding: 6px 12px;
    border-radius: 9px;
    background: var(--tpp-ink);
    color: var(--tpp-bg);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--tpp-shadow);
    z-index: 5;
}

.tpp-tip::before {
    content: "";
    bottom: calc(100% + 3px);
    border: 6px solid transparent;
    border-bottom: 0;
    border-top-color: var(--tpp-ink);
    z-index: 5;
}

.tpp-tip:hover::before,
.tpp-tip:hover::after,
.tpp-tip:focus-within::before,
.tpp-tip:focus-within::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.tpp-grid {
    display: grid;
    gap: 12px;
    align-items: start;
}

.tpp-grid--130 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tpp-grid--170 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tpp-grid--210 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); align-items: stretch; }
.tpp-grid--300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tpp-grid--320 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.tpp-grid--stretch { align-items: stretch; gap: 14px; }

.tpp-stack {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tpp-stack--12 { gap: 12px; }

.tpp-card {
    position: relative;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line);
    border-radius: 20px;
    padding: 18px;
}

.tpp-card--lg {
    border-radius: 22px;
    padding: 22px 20px;
    gap: 14px;
}

.tpp-card--lift { transition: all 0.25s; }

.tpp-card--lift:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 182, 64, 0.5);
    box-shadow: var(--tpp-card-shadow);
}

/* Cards inside banded sections sit on the page background color. */
.tpp-panel {
    position: relative;
    overflow: hidden;
    background: var(--tpp-bg);
    border: 1px solid var(--tpp-line2);
    border-radius: 18px;
    padding: 14px 16px;
}

.tpp-card__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tpp-card__head > b { font-size: 14px; }
.tpp-card__head > span { font-size: 11px; color: var(--tpp-ink3); }
.tpp-card__title { font-size: 14.5px; }

.tpp-kv {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
}

.tpp-kv > span { color: var(--tpp-ink2); }

.tpp-note {
    position: relative;
    font-size: 12px;
    color: var(--tpp-ink3);
    line-height: 1.7;
}

.tpp-note--body {
    font-size: 12.5px;
    color: var(--tpp-ink2);
    text-wrap: pretty;
}

.tpp-note--body b { color: var(--tpp-ink); }

.tpp-label {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--tpp-ink3);
}

.tpp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tpp-chip {
    flex-shrink: 0;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    color: var(--tpp-ink2);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.tpp-chip--good { background: var(--tpp-good-soft); border-color: var(--tpp-good-line); color: var(--tpp-good); font-weight: 800; }
.tpp-chip--tp { background: var(--tpp-tp-soft); border-color: var(--tpp-tp-line); color: var(--tpp-tp-ink); font-weight: 800; }
.tpp-chip--bg { background: var(--tpp-bg); padding: 4px 11px; font-size: 10.5px; }

.tpp-tag {
    align-self: flex-start;
    background: var(--tpp-chip);
    border: 1px solid var(--tpp-line2);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--tpp-tp-ink);
}

.tpp-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--tpp-tp-soft);
    border: 1px solid var(--tpp-tp-line);
    display: grid;
    place-items: center;
    color: var(--tpp-tp-ink);
    flex-shrink: 0;
}

.tpp-icon-box--good,
.tpp-icon-box--brand,
.tpp-icon-box--tp {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: none;
}

.tpp-icon-box--good { background: var(--tpp-good-soft); color: var(--tpp-good); }
.tpp-icon-box--brand { background: var(--tpp-brand-soft); color: var(--tpp-brand-ink); }

.tpp-bar {
    height: 7px;
    border-radius: 999px;
    background: var(--tpp-bg);
    overflow: hidden;
}

.tpp-bar--lg {
    height: 12px;
    border: 1px solid var(--tpp-line2);
}

.tpp-bar__fill {
    height: 100%;
    border-radius: 999px;
}

.tpp-bar__fill--brand { background: linear-gradient(90deg, #f5395f, #ffb640); }
.tpp-bar__fill--blue { background: linear-gradient(90deg, #3b82f6, #7dd3fc); }

.tpp-hint-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--tpp-tp-soft);
    border: 1.5px dashed rgba(255, 182, 64, 0.55);
    border-radius: 14px;
    padding: 11px 14px;
    font-size: 13px;
}

.tpp-good-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--tpp-good-soft);
    border: 1px solid var(--tpp-good-line);
    border-radius: 12px;
    padding: 9px 14px;
    font-size: 12.5px;
    color: var(--tpp-good);
    font-weight: 700;
}

.tpp-good-box--lg {
    display: block;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 13px;
    animation: tpp-pop 0.3s ease-out;
}

.tpp-badge-img {
    display: block;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ── Sections ───────────────────────────────────────────────────────── */

.tpp-section__in {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: 48px;
}

.tpp-section--band {
    background: var(--tpp-surface);
    border-block: 1px solid var(--tpp-line);
}

.tpp-section--gap { margin-bottom: 40px; }

.tpp-head {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 680px;
}

.tpp-head__eyebrow {
    color: var(--tpp-tp-ink);
    font-weight: 800;
    font-size: 13px;
}

.tpp-head__title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--tpp-ink);
}

.tpp-head__desc {
    color: var(--tpp-ink2);
    font-size: 14.5px;
    line-height: 1.8;
    text-wrap: pretty;
}

/* ── Hero ───────────────────────────────────────────────────────────── */

.tpp-hero {
    position: relative;
    overflow: hidden;
}

.tpp-hero__glow,
.tpp-hero__dots {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tpp-hero__glow {
    background:
        radial-gradient(640px 340px at 82% 0%, rgba(255, 182, 64, 0.16), transparent 70%),
        radial-gradient(520px 320px at 8% 100%, rgba(244, 63, 94, 0.12), transparent 70%);
}

.tpp-hero__dots {
    background-image: radial-gradient(var(--tpp-dots) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, black, transparent 85%);
    mask-image: linear-gradient(180deg, black, transparent 85%);
}

.tpp-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 36px;
    align-items: center;
    padding-block: 56px 52px;
}

.tpp-hero__copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: tpp-in 0.5s cubic-bezier(0.22, 0.8, 0.26, 1) both;
}

.tpp-hero__title {
    width: fit-content;
    padding-bottom: 6px;
    font-family: var(--tpp-display);
    font-size: 68px;
    line-height: 1.05;
    font-weight: 800;
    background: var(--tpp-h1);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: tpp-shimmer 4s linear infinite;
}

.tpp-hero__subtitle {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
    text-wrap: pretty;
}

.tpp-hero__desc {
    max-width: 520px;
    color: var(--tpp-ink2);
    font-size: 15px;
    line-height: 1.9;
    text-wrap: pretty;
}

.tpp-facts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.tpp-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11.5px;
    color: var(--tpp-ink2);
    font-weight: 700;
}

.tpp-hero__visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    animation: tpp-pop 0.6s cubic-bezier(0.22, 0.8, 0.26, 1) 0.1s both;
}

.tpp-hero__stage {
    position: relative;
    height: 300px;
}

.tpp-hero__halo {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.tpp-hero__halo span {
    width: 320px;
    height: 320px;
    max-width: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 182, 64, 0.3), transparent 65%);
    filter: blur(12px);
    animation: tpp-glow 4s ease-in-out infinite;
}

.tpp-coin {
    position: absolute;
    color: var(--tpp-tp);
}

.tpp-coin--main {
    top: 66px;
    inset-inline-start: calc(50% - 100px);
    filter: drop-shadow(0 24px 40px rgba(255, 182, 64, 0.35));
    animation: tpp-float 7s ease-in-out infinite;
}

.tpp-coin--a { top: 120px; inset-inline-end: 4%; opacity: 0.8; animation: tpp-float2 8s ease-in-out infinite; }
.tpp-coin--b { bottom: 20px; inset-inline-start: 5%; opacity: 0.55; animation: tpp-float 9s ease-in-out 1s infinite; }
.tpp-coin--c { top: 30px; inset-inline-start: 8%; color: var(--tpp-brand); opacity: 0.5; animation: tpp-float2 7.5s ease-in-out 0.5s infinite; }

.tpp-hero__hint {
    position: absolute;
    top: 8px;
    inset-inline-end: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    background: var(--tpp-surface);
    border: 1.5px dashed rgba(255, 182, 64, 0.6);
    border-radius: 14px;
    padding: 10px 14px;
    box-shadow: var(--tpp-card-shadow);
    font-size: 12px;
    color: var(--tpp-ink2);
    white-space: nowrap;
    animation: tpp-bob 6s ease-in-out infinite;
}

.tpp-hero__hint > span:first-child { font-size: 16px; }

.tpp-hero__cards {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.tpp-balance {
    width: 270px;
    max-width: 100%;
    border-radius: 20px;
    background: linear-gradient(160deg, #ffc663, #ffb640 70%, #f09d1e);
    color: #2a1a00;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--tpp-card-shadow);
}

.tpp-balance__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tpp-balance__row svg { color: #2a1a00; opacity: 0.85; }
.tpp-balance__label { font-size: 12px; font-weight: 700; opacity: 0.8; }

.tpp-balance__amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.tpp-balance__amount b {
    font-family: var(--tpp-display);
    font-size: 38px;
    line-height: 1;
}

.tpp-balance__amount span { font-size: 13px; font-weight: 700; opacity: 0.75; }
.tpp-balance__foot { font-size: 12px; font-weight: 700; }
.tpp-balance__foot > span:first-child { opacity: 0.85; }

.tpp-balance__chip {
    background: rgba(42, 26, 0, 0.14);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 11px;
    white-space: nowrap;
}

.tpp-rank-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 10px 12px;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    border-radius: 16px;
    box-shadow: var(--tpp-card-shadow);
    animation: tpp-bob 7s ease-in-out 1.2s infinite;
}

.tpp-rank-chip img {
    width: 34px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.tpp-rank-chip > div {
    display: flex;
    flex-direction: column;
}

.tpp-rank-chip b { font-size: 13px; }
.tpp-rank-chip b .tpp-muted { font-size: 11px; }
.tpp-rank-chip > div > span { font-size: 10.5px; color: var(--tpp-ink2); white-space: nowrap; }

/* ── 01 Earn ────────────────────────────────────────────────────────── */

.tpp-way {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px;
}

.tpp-way__title { font-size: 15px; }

.tpp-way__desc {
    flex: 1;
    color: var(--tpp-ink2);
    font-size: 12.5px;
    line-height: 1.7;
    text-wrap: pretty;
}

.tpp-challenge {
    display: flex;
    gap: 12px;
    align-items: center;
    background: var(--tpp-surface2);
    border: 1px solid var(--tpp-line2);
    border-radius: 16px;
    padding: 12px 14px;
}

.tpp-challenge__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5395f, #ff7a93);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex-shrink: 0;
}

.tpp-challenge__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tpp-challenge__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tpp-challenge__head b { font-size: 13px; }
.tpp-challenge__head span { font-size: 10.5px; color: var(--tpp-ink3); white-space: nowrap; }
.tpp-challenge__meta { font-size: 11.5px; color: var(--tpp-ink2); }

/* ── 02 Ranks ───────────────────────────────────────────────────────── */

.tpp-tier {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 16px 12px 14px;
    border-radius: 18px;
    background: var(--tpp-bg);
    border: 1px solid var(--tpp-line2);
    color: var(--tpp-ink);
    font: inherit;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
}

.tpp-tier:hover { transform: translateY(-4px); }

.tpp-tier:focus-visible {
    outline: 2px solid var(--tier);
    outline-offset: 2px;
}

.tpp-tier.is-on {
    background: linear-gradient(180deg, var(--tier-soft), var(--tpp-bg));
    border-color: var(--tier-border);
}

.tpp-sparks {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.tpp-sparks span {
    position: absolute;
    bottom: -6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--tier);
    box-shadow: 0 0 6px var(--tier);
    opacity: 0;
    animation: tpp-rise 4.2s linear infinite;
}

.tpp-sparks span:nth-child(1) { inset-inline-start: 18%; }
.tpp-sparks span:nth-child(2) { inset-inline-start: 52%; width: 4px; height: 4px; animation-duration: 5.1s; animation-delay: 1.4s; }
.tpp-sparks span:nth-child(3) { inset-inline-start: 80%; width: 3.5px; height: 3.5px; animation-duration: 4.7s; animation-delay: 2.6s; }

.tpp-tier__badge {
    position: relative;
    width: 64px;
    height: 72px;
    display: grid;
    place-items: center;
}

.tpp-tier__glow {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tier-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.tpp-tier.is-on .tpp-tier__glow { opacity: 1; }

.tpp-tier__badge .tpp-badge-img {
    position: relative;
    width: 60px;
    height: 70px;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

.tpp-tier__name { font-size: 15px; }
.tpp-tier__range { font-size: 11px; color: var(--tpp-ink3); }

.tpp-tier__cells {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    width: 100%;
    margin-top: 4px;
}

.tpp-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 5px 2px;
    border-radius: 9px;
    border: 1px solid;
}

.tpp-cell b { font-size: 12.5px; white-space: nowrap; }
.tpp-cell span { font-size: 8.5px; opacity: 0.8; }
.tpp-cell--good { background: var(--tpp-good-soft); border-color: var(--tpp-good-line); color: var(--tpp-good); }
.tpp-cell--off { background: var(--tpp-chip); border-color: var(--tpp-line2); color: var(--tpp-ink3); }
.tpp-cell--tp { background: var(--tpp-tp-soft); border-color: var(--tpp-tp-line); color: var(--tpp-tp-ink); }

.tpp-tier__live {
    display: none;
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tier);
    box-shadow: 0 0 10px var(--tier);
    animation: tpp-glow 2s ease-in-out infinite;
}

.tpp-tier.is-on .tpp-tier__live { display: block; }

.tpp-sel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 22px;
    background: var(--tpp-bg);
    border: 1px solid var(--tier-glow);
    animation: tpp-pop 0.3s ease-out;
}

.tpp-sel[hidden] { display: none; }

.tpp-sel__haze {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(520px 220px at 100% 0%, var(--tier-haze), transparent 70%);
}

[dir="ltr"] .tpp-sel__haze {
    background: radial-gradient(520px 220px at 0% 0%, var(--tier-haze), transparent 70%);
}

.tpp-sel__id {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.tpp-sel__badge {
    position: relative;
    width: 88px;
    height: 100px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.tpp-sel__glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--tier-haze), transparent 70%);
    animation: tpp-glow 3s ease-in-out infinite;
}

.tpp-sel__badge .tpp-badge-img {
    position: relative;
    width: 84px;
    height: 96px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.tpp-sel__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tpp-sel__name { font-size: 26px; line-height: 1.1; }
.tpp-sel__range { font-size: 12.5px; color: var(--tpp-ink2); }
.tpp-sel__range b { color: var(--tpp-ink); }

.tpp-sel__block {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tpp-reward-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    border-radius: 14px;
}

.tpp-reward-box__emoji { font-size: 20px; }

.tpp-reward-box__mark {
    flex-shrink: 0;
    color: var(--tpp-tp);
    filter: drop-shadow(0 2px 6px rgba(255, 182, 64, 0.45));
}

.tpp-reward-box__text {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* ── 03 Progress ────────────────────────────────────────────────────── */

.tpp-upgrade {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tpp-upgrade > .tpp-card__title { align-self: flex-start; }

.tpp-ring {
    position: relative;
    width: 210px;
    height: 210px;
    display: grid;
    place-items: center;
}

.tpp-ring svg {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.tpp-ring circle {
    fill: none;
    stroke-width: 10;
}

.tpp-ring__track { stroke: var(--tpp-line2); }

.tpp-ring__bar {
    stroke: url(#tppRingG);
    stroke-linecap: round;
    stroke-dasharray: 628.3;
    stroke-dashoffset: 628.3;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.8, 0.26, 1);
}

/* 43% of the way to the next rank. */
.tpp.is-drawn .tpp-ring__bar { stroke-dashoffset: 358.1; }

.tpp-ring__text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 24px;
    text-align: center;
    font-size: 12.5px;
    color: var(--tpp-ink2);
}

.tpp-ring__value {
    font-family: var(--tpp-display);
    font-size: 32px;
    line-height: 1;
    color: var(--tpp-tp-ink);
}

.tpp-ring__to { font-size: 11px; color: var(--tpp-ink3); margin-top: 4px; line-height: 1.4; }
.tpp-ring__of { font-size: 12px; margin-top: 3px; }

.tpp-upgrade__path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--tpp-ink2);
    font-weight: 700;
}

.tpp-upgrade__path img { width: 20px; height: 24px; object-fit: contain; }
.tpp-upgrade__path .tpp-arrow { color: var(--tpp-ink3); }

.tpp-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tpp-countdown__cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background: var(--tpp-bg);
    border: 1px solid var(--tpp-line2);
    border-radius: 12px;
}

.tpp-countdown__cell b {
    font-family: var(--tpp-display);
    font-size: 22px;
    line-height: 1;
    color: var(--tpp-brand-ink);
}

.tpp-countdown__cell span { font-size: 10px; color: var(--tpp-ink3); }

.tpp-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.tpp-rule {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12.5px;
    color: var(--tpp-ink2);
    line-height: 1.6;
}

.tpp-rule__no {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 7px;
    background: var(--tpp-tp-soft);
    color: var(--tpp-tp-ink);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
}

.tpp-keep-fill {
    width: 0;
    transition: width 1.2s cubic-bezier(0.22, 0.8, 0.26, 1);
}

.tpp.is-drawn .tpp-keep-fill { width: 86%; }

.tpp-protect {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--tpp-bg);
    border: 1px solid var(--tpp-line2);
    border-radius: 14px;
}

.tpp-protect img {
    width: 28px;
    height: 33px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.tpp-protect > div { display: flex; flex-direction: column; }
.tpp-protect b { font-size: 12.5px; }
.tpp-protect span { font-size: 11px; color: var(--tpp-ink3); }

/* ── 04 Redeem ──────────────────────────────────────────────────────── */

.tpp-converter {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
}

.tpp-converter > .tpp-stack { gap: 14px; }

.tpp-panel__haze {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(420px 200px at 100% 0%, rgba(255, 182, 64, 0.12), transparent 70%);
}

[dir="ltr"] .tpp-panel__haze {
    background: radial-gradient(420px 200px at 0% 0%, rgba(255, 182, 64, 0.12), transparent 70%);
}

.tpp-converter .tpp-card__title { font-size: 15px; }

.tpp-seg {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    background: var(--tpp-surface2);
    border: 1px solid var(--tpp-line2);
    border-radius: 999px;
}

.tpp-seg__btn {
    padding: 7px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--tpp-ink2);
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.25s;
}

.tpp-seg__btn.is-on {
    background: linear-gradient(110deg, var(--tpp-brand), var(--tpp-brand-2));
    color: #fff;
}

.tpp-balance-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 14px;
    font-size: 12.5px;
    font-weight: 800;
    border: 1px solid rgba(255, 182, 64, 0.6);
    background: rgba(255, 182, 64, 0.1);
}

.tpp-balance-strip > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.tpp-balance-strip svg { color: var(--tpp-tp); flex-shrink: 0; }

.tpp-range {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tpp-range input[type="range"] {
    width: 100%;
    margin: 0;
    accent-color: var(--tpp-tp);
    cursor: pointer;
}

.tpp-range__ends {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--tpp-ink3);
}

.tpp-swap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 14px;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    border-radius: 16px;
}

.tpp-swap__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tpp-swap__side b {
    font-family: var(--tpp-display);
    font-size: 26px;
    line-height: 1;
}

.tpp-swap__side span { font-size: 11px; color: var(--tpp-ink3); }
.tpp-swap__arrow { font-size: 20px; color: var(--tpp-ink3); }

.tpp-swap__badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 10px;
    font-size: 9.5px;
    font-weight: 700;
    color: var(--tpp-ink3);
    background: var(--tpp-chip);
    border-radius: 999px;
    padding: 2px 8px;
}

.tpp-convert {
    position: relative;
    padding: 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(110deg, #ffc663, #ffb640 70%, #f09d1e);
    color: #2a1a00;
    font: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 182, 64, 0.22);
    transition: all 0.25s;
}

.tpp-convert.is-empty {
    background: var(--tpp-chip);
    color: var(--tpp-ink3);
    cursor: default;
}

.tpp-convert.is-done {
    background: var(--tpp-good-soft);
    color: var(--tpp-good);
}

.tpp-after {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--tpp-surface);
    border: 1px solid var(--tpp-line2);
    border-radius: 16px;
    font-size: 11.5px;
    color: var(--tpp-ink3);
}

.tpp-after > div > b:first-child { display: block; font-size: 13px; color: var(--tpp-ink); }
.tpp-after .tpp-good-ink { font-weight: 800; }

.tpp-shake {
    flex-shrink: 0;
    color: var(--tpp-tp);
    animation: tpp-shake 2.4s ease-in-out infinite;
}

.tpp-redeem-way {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s;
}

.tpp-redeem-way:hover { border-color: rgba(255, 182, 64, 0.5); }

.tpp-redeem-way__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.tpp-redeem-way__body b { font-size: 14px; }

.tpp-redeem-way__body span {
    color: var(--tpp-ink2);
    font-size: 12.5px;
    line-height: 1.6;
    text-wrap: pretty;
}

.tpp-redeem-way .tpp-chip { padding: 4px 11px; font-size: 11px; }

.tpp-log {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 8px;
}

.tpp-log .tpp-card__head > b { font-size: 13.5px; }

.tpp-log__row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid var(--tpp-line);
}

.tpp-tone--good { --tone-fg: var(--tpp-good); --tone-bg: var(--tpp-good-soft); }
.tpp-tone--brand { --tone-fg: var(--tpp-brand-ink); --tone-bg: var(--tpp-brand-soft); }
.tpp-tone--tp { --tone-fg: var(--tpp-tp-ink); --tone-bg: var(--tpp-tp-soft); }

.tpp-log__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 800;
    background: var(--tone-bg);
    color: var(--tone-fg);
}

.tpp-log__body { display: flex; flex-direction: column; min-width: 0; }
.tpp-log__body b { font-size: 12.5px; }
.tpp-log__body span { font-size: 10.5px; color: var(--tpp-ink3); }
.tpp-log__amount { font-size: 13.5px; color: var(--tone-fg); }

/* ── 05 Rewards & leaderboard ───────────────────────────────────────── */

.tpp-gift {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 12px;
    text-align: center;
    background: var(--tpp-surface2);
    border: 1px solid var(--tpp-line2);
    border-radius: 16px;
}

.tpp-gift__img {
    width: 44px;
    height: 52px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.tpp-gift__name { font-size: 12.5px; color: var(--tier-ink); }

.tpp-gift__reward {
    flex: 1;
    font-size: 11px;
    color: var(--tpp-ink2);
    line-height: 1.5;
    text-wrap: pretty;
}

.tpp-gift__btn {
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.tpp-gift--claimed .tpp-gift__btn { background: var(--tpp-good-soft); color: var(--tpp-good); }

.tpp-gift--current { border-color: var(--tier-border); }

.tpp-gift--current .tpp-gift__btn {
    background: linear-gradient(110deg, #ffb640, #f6a21f);
    color: #241a05;
    animation: tpp-shake 2.4s ease-in-out infinite;
}

.tpp-gift--locked { opacity: 0.7; }
.tpp-gift--locked .tpp-gift__img { filter: grayscale(0.8) brightness(0.75); }
.tpp-gift--locked .tpp-gift__name { color: var(--tpp-ink3); }
.tpp-gift--locked .tpp-gift__btn { background: var(--tpp-chip); color: var(--tpp-ink3); }

.tpp-prizes {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 12px;
    background: var(--tpp-tp-soft);
    border: 1px solid var(--tpp-tp-line);
    border-radius: 14px;
}

.tpp-prizes__title { color: var(--tpp-tp-ink); font-size: 11.5px; font-weight: 800; }
.tpp-prizes .tpp-chips { gap: 5px; }

.tpp-podium {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    padding-top: 8px;
}

.tpp-podium__col {
    flex: 1;
    max-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tpp-podium__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    border: 2px solid transparent;
}

.tpp-avatar--blue { background: linear-gradient(135deg, #2563eb, #7dd3fc); }
.tpp-avatar--brand { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.tpp-avatar--green { background: linear-gradient(135deg, #16a34a, #4ade80); }

.tpp-podium__name { font-size: 11px; }
.tpp-podium__pts { color: var(--tpp-tp-ink); font-size: 11px; font-weight: 800; }

.tpp-podium__bar {
    width: 100%;
    height: 56px;
    border-radius: 10px 10px 0 0;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(180deg, var(--tpp-line2), var(--tpp-chip));
    color: var(--tpp-ink2);
}

.tpp-podium__col--2 .tpp-podium__bar { height: 72px; }

.tpp-podium__col--1 .tpp-podium__avatar {
    width: 46px;
    height: 46px;
    border-color: #ffb640;
    box-shadow: 0 0 18px rgba(255, 182, 64, 0.45);
}

.tpp-podium__col--1 .tpp-podium__bar {
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 182, 64, 0.9), rgba(255, 182, 64, 0.3));
    color: #241a05;
}

.tpp-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 9px 12px;
    background: var(--tpp-brand-soft);
    border: 1px solid var(--tpp-brand-line);
    border-radius: 12px;
}

.tpp-me__who {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.tpp-me__pos {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--tpp-chip);
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    color: var(--tpp-brand-ink);
}

.tpp-me__gap { color: var(--tpp-ink2); font-size: 11px; }

/* ── 07 FAQ ─────────────────────────────────────────────────────────── */

.tpp-faq {
    padding: 16px 18px;
    background: var(--tpp-bg);
    border: 1px solid var(--tpp-line2);
    border-radius: 18px;
    transition: border-color 0.25s;
}

.tpp-faq:hover { border-color: rgba(255, 182, 64, 0.5); }
.tpp-faq[open] { border-color: rgba(255, 182, 64, 0.6); }

.tpp-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.tpp-faq__q::-webkit-details-marker { display: none; }

.tpp-faq__q b {
    font-size: 14.5px;
    line-height: 1.5;
    text-wrap: pretty;
}

.tpp-faq__plus {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 9px;
    background: var(--tpp-tp-soft);
    border: 1px solid var(--tpp-tp-line);
    color: var(--tpp-tp-ink);
    display: grid;
    place-items: center;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.25s;
}

.tpp-faq[open] .tpp-faq__plus { transform: rotate(45deg); }

.tpp .tpp-faq__a {
    margin-top: 10px;
    color: var(--tpp-ink2);
    font-size: 13px;
    line-height: 1.8;
    text-wrap: pretty;
    animation: tpp-pop 0.25s ease-out;
}

/* ── Closing CTA ────────────────────────────────────────────────────── */

.tpp-cta-wrap {
    padding: 8px 0 64px;
}

.tpp-cta {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 52px 32px;
    text-align: center;
    border-radius: 28px;
    border: 1px solid var(--tpp-line2);
    background:
        radial-gradient(640px 320px at 85% 0%, rgba(255, 182, 64, 0.22), transparent 70%),
        radial-gradient(520px 320px at 10% 100%, rgba(244, 63, 94, 0.18), transparent 70%),
        var(--tpp-surface);
}

.tpp-cta > * { position: relative; }

.tpp-cta__pattern {
    position: absolute !important;
    inset: 0;
    pointer-events: none;
    background: var(--tpp-ink);
    opacity: 0.045;
    -webkit-mask: url('../images/home-v2/modal-pattern.png') 0 0 / 260px 260px repeat;
    mask: url('../images/home-v2/modal-pattern.png') 0 0 / 260px 260px repeat;
}

.tpp-cta__marks {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tpp-cta__logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--tpp-brand);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(245, 57, 95, 0.35);
}

.tpp-cta__logo .tw-mask-logo {
    width: 36px;
    height: 30px;
    background: #fff;
}

.tpp-cta__plus { font-size: 22px; color: var(--tpp-ink3); font-weight: 800; }

.tpp-float {
    filter: drop-shadow(0 10px 20px rgba(255, 182, 64, 0.4));
    animation: tpp-float 7s ease-in-out infinite;
}

.tpp-cta__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--tpp-ink);
}

.tpp-cta__desc {
    max-width: 520px;
    color: var(--tpp-ink2);
    font-size: 15px;
    line-height: 1.8;
    text-wrap: pretty;
}

/* ── Small screens ──────────────────────────────────────────────────── */

@media (max-width: 767.98px) {
    .tpp-hero__grid { grid-template-columns: 1fr; padding-block: 36px 40px; }
    .tpp-hero__title { font-size: 52px; }
    .tpp-hero__subtitle { font-size: 22px; }
    .tpp-head__title { font-size: 26px; }
    .tpp-cta__title { font-size: 28px; }
    .tpp-cta { padding: 40px 20px; }
    .tpp-section__in { padding-block: 36px; }
    .tpp-grid--300,
    .tpp-grid--320 { grid-template-columns: 1fr; }
    .tpp-hero__hint { white-space: normal; max-width: 70%; }
    .tpp-rank-chip > div > span { white-space: normal; }
    .tpp-redeem-way { flex-wrap: wrap; }
}
