@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* IndoPe UI hotfix 20260707 */
/* IndoPe live UI patch active 20260707 */

:root {
    --indope-ink: #142033;
    --indope-muted: #5f6f86;
    --indope-blue: #3157d8;
    --indope-cyan: #168fb8;
    --indope-jade: #10a37f;
    --indope-gold: #ffd166;
    --indope-coral: #f26d5b;
    --indope-gradient: linear-gradient(135deg, var(--indope-blue), var(--indope-cyan) 55%, var(--indope-jade));
    --tp-bg: #f4f7fb;
    --tp-surface: #ffffff;
    --tp-surface-soft: #edf4ff;
    --tp-text: #142033;
    --tp-muted: #64748b;
    --tp-border: rgba(20, 32, 51, 0.1);
    --tp-primary: var(--indope-blue);
    --tp-primary-2: var(--indope-cyan);
    --tp-green: var(--indope-jade);
    --tp-yellow: var(--indope-gold);
    --tp-red: var(--indope-coral);
    --tp-violet: #6b5bd6;
    --tp-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --tp-radius: 26px;
}

/* IndoPe shared status-popup polish */
div:where(.swal2-container) div:where(.swal2-popup),
body.tp-money-native div:where(.swal2-container) div:where(.swal2-popup) {
    width: min(360px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    background: var(--tp-surface, #ffffff) !important;
    color: var(--tp-text, #142033) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18) !important;
}

div:where(.swal2-container) .swal2-popup.swal2-toast {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 28px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 64px !important;
}

div:where(.swal2-container) .swal2-popup .swal2-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    font-size: 0.56rem !important;
}

div:where(.swal2-container) .swal2-popup .swal2-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--tp-text, #142033) !important;
    font-size: 0.92rem !important;
    line-height: 1.28 !important;
    font-weight: 850 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

div:where(.swal2-container) .swal2-popup .swal2-html-container {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    color: var(--tp-muted, #64748b) !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

div:where(.swal2-container) .swal2-popup .swal2-close {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    color: var(--tp-muted, #64748b) !important;
    font-size: 1.4rem !important;
    line-height: 28px !important;
}

[data-theme="dark"] div:where(.swal2-container) div:where(.swal2-popup),
html[data-theme="dark"] body.tp-money-native div:where(.swal2-container) div:where(.swal2-popup) {
    background: var(--tp-surface, #101c2d) !important;
    color: var(--tp-text, #eff6ff) !important;
    border: 1px solid rgba(226, 232, 240, 0.12) !important;
}

[data-theme="dark"] {
    --indope-ink: #f3f8ff;
    --indope-muted: #a8b8cc;
    --indope-blue: #82a7ff;
    --indope-cyan: #34c6d4;
    --indope-jade: #3de0ae;
    --tp-bg: #08111f;
    --tp-surface: #101c2d;
    --tp-surface-soft: #15243a;
    --tp-text: #eff6ff;
    --tp-muted: #a6b4c8;
    --tp-border: rgba(226, 232, 240, 0.12);
    --tp-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--tp-bg);
}

body.tp-money-native {
    margin: 0;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--tp-text);
    background:
        radial-gradient(circle at 18% 0%, rgba(16, 87, 255, 0.16), transparent 28rem),
        radial-gradient(circle at 82% 8%, rgba(0, 168, 255, 0.14), transparent 24rem),
        var(--tp-bg);
}

.tp-money-native a {
    color: inherit;
    text-decoration: none;
}

.tp-money-native button,
.tp-money-native input {
    font: inherit;
}

.tp-money-screen {
    width: min(1180px, 100%);
    max-width: 100vw;
    margin: 0 auto;
    padding: 18px 16px 96px;
    overflow-x: hidden;
}

.tp-appbar,
.tp-money-appbar,
.tp-card-top,
.tp-card-bottom,
.tp-section-title,
.tp-status-row,
.tp-history-card-head,
.tp-history-title,
.tp-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.tp-appbar,
.tp-money-appbar {
    padding: 10px 0 18px;
}

.tp-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.tp-brand img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16, 87, 255, 0.2);
}

.tp-money-native img,
.tp-money-screen img {
    max-width: 100%;
    height: auto;
}

.tp-brand img,
.tp-icon-btn img,
.tp-theme-toggle img,
.tp-form-icon img,
.tp-history-icon img {
    object-fit: contain;
}

.tp-brand strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0;
}

.tp-brand span,
.tp-brand small,
.tp-kicker,
.tp-page-hero p,
.tp-card-label,
.tp-form label span,
.tp-stat span,
.tp-action-card p,
.tp-history-title small,
.tp-history-meta,
.tp-empty-state span,
.tp-detail-grid span {
    color: var(--tp-muted);
}

.tp-brand small {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
}

.tp-appbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-icon-btn,
.tp-theme-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    border: 1px solid var(--tp-border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--tp-text);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

[data-theme="dark"] .tp-icon-btn,
[data-theme="dark"] .tp-theme-toggle {
    background: rgba(16, 28, 45, 0.72);
}

.tp-page-hero,
.tp-hero-card,
.tp-panel,
.tp-action-card,
.tp-history-card,
.tp-stat,
.tp-form-shell,
.tp-pay-confirm-box {
    border: 1px solid var(--tp-border);
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.tp-page-hero,
.tp-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 30px;
    padding: 24px;
    margin-bottom: 18px;
    overflow: hidden;
}

.tp-page-hero > *,
.tp-hero-card > *,
.tp-hero-copy {
    min-width: 0;
    max-width: 100%;
}

.tp-page-hero h1,
.tp-hero-card h2 {
    margin: 8px 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tp-page-hero p,
.tp-hero-card p {
    max-width: 650px;
    margin: 0;
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.tp-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tp-hero-balance {
    min-width: 220px;
    border-radius: 24px;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 16px 34px rgba(16, 87, 255, 0.24);
}

.tp-hero-balance span {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tp-hero-balance strong {
    display: block;
    margin-top: 8px;
    font-size: 1.65rem;
    font-weight: 900;
}

.tp-money-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.tp-money-nav a {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    background: var(--tp-surface);
    color: var(--tp-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

.tp-money-nav a.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.22);
}

.tp-brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tp-brand-lockup img {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(16, 87, 255, 0.18);
}

.tp-public-status {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-wallet-mini {
    min-width: 190px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.17);
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.tp-wallet-mini strong,
.tp-wallet-mini small {
    display: block;
}

.tp-wallet-mini strong {
    margin-top: 8px;
    font-size: 1.45rem;
    font-weight: 900;
}

.tp-wallet-mini small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.78rem;
    font-weight: 800;
}

.tp-wallet-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tp-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    width: fit-content;
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    background: var(--tp-surface-2);
    color: var(--tp-text);
    font-weight: 900;
    text-decoration: none;
}

.tp-action-btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(16, 87, 255, 0.2);
}

body.tp-money-native > .container,
body.tp-money-native .container {
    width: min(1180px, 100%);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 96px !important;
    display: block;
    min-height: auto;
}

body.tp-money-native .main-container,
body.tp-money-native .main-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

body.tp-money-native .branded-form-container,
body.tp-money-native .page-header-card,
body.tp-money-native .history-section,
body.tp-money-native .bot-card,
body.tp-money-native .content {
    border: 1px solid var(--tp-border) !important;
    border-radius: 24px !important;
    background: var(--tp-surface) !important;
    box-shadow: var(--tp-shadow) !important;
}

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

.tp-filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.tp-filter-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    background: var(--tp-surface);
    color: var(--tp-text);
    padding: 0 16px;
    font-weight: 800;
    outline: none;
}

.tp-filter-input:focus {
    border-color: rgba(16, 87, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(16, 87, 255, 0.1);
}

.tp-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tp-filter-pill {
    min-height: 42px;
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    background: var(--tp-surface);
    color: var(--tp-muted);
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}

.tp-filter-pill.is-active {
    border-color: transparent;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 12px 24px rgba(16, 87, 255, 0.18);
}

.tp-history-card.is-filter-hidden {
    display: none;
}

.tp-wallet-card {
    position: relative;
    overflow: hidden;
    min-height: 322px;
    border-radius: 34px;
    padding: 26px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(143deg, #0b1737 0%, #1057ff 48%, #04c8d9 100%);
    box-shadow: var(--tp-shadow);
}

.tp-wallet-card::before,
.tp-wallet-card::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.tp-wallet-card::before {
    width: 240px;
    height: 240px;
    right: -72px;
    top: -84px;
    background: rgba(255, 255, 255, 0.14);
}

.tp-wallet-card::after {
    width: 170px;
    height: 170px;
    right: 34px;
    bottom: -72px;
    border: 24px solid rgba(255, 255, 255, 0.12);
}

.tp-wallet-content {
    position: relative;
    z-index: 1;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}

.tp-card-logo {
    width: 48px;
    height: 48px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    object-fit: contain;
}

.tp-card-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tp-card-balance strong {
    display: block;
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 0.96;
    font-weight: 900;
}

.tp-card-bottom strong,
.tp-card-bottom span {
    display: block;
}

.tp-card-bottom span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tp-card-bottom strong {
    margin-top: 5px;
    font-weight: 900;
}

.tp-card-number {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 900;
    text-align: right;
}

.tp-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    align-items: start;
}

.tp-grid.reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.tp-panel,
.tp-form-shell {
    border-radius: var(--tp-radius);
    padding: 20px;
}

.tp-section-title {
    margin-bottom: 16px;
}

.tp-section-title h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0;
}

.tp-section-title p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-weight: 600;
}

.tp-action-grid,
.tp-stat-grid,
.tp-history-list {
    display: grid;
    gap: 12px;
}

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

.tp-action-card {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 22px;
    padding: 16px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tp-action-card:hover,
.tp-history-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.tp-action-card i,
.tp-history-icon,
.tp-form-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.tp-action-card:nth-child(2n) i {
    background: linear-gradient(135deg, var(--tp-green), #34d399);
}

.tp-action-card:nth-child(3n) i {
    background: linear-gradient(135deg, var(--tp-yellow), #fbbf24);
}

.tp-action-card strong {
    display: block;
    margin-top: 14px;
    font-weight: 900;
}

.tp-action-card p {
    margin: 4px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

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

.tp-stat {
    border-radius: 20px;
    padding: 15px;
    box-shadow: none;
}

.tp-stat strong {
    display: block;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 900;
}

.tp-form {
    display: grid;
    gap: 14px;
}

.tp-form label {
    display: grid;
    gap: 8px;
    color: var(--tp-text);
    font-size: 0.88rem;
    font-weight: 900;
}

.tp-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    padding: 0 15px;
    outline: none;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
}

.tp-form input:focus {
    border-color: rgba(16, 87, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 87, 255, 0.1);
}

.tp-form textarea,
.tp-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    padding: 14px 15px;
    outline: none;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    resize: vertical;
}

.tp-form textarea:focus,
.tp-form select:focus {
    border-color: rgba(16, 87, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(16, 87, 255, 0.1);
}

.tp-form input:disabled,
.tp-form button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.tp-form button,
.tp-btn,
.tp-modal-actions button,
.tp-secondary-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    padding: 12px 15px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    font-weight: 900;
    cursor: pointer;
}

.tp-form button[type="submit"],
.tp-btn.primary,
.tp-modal-actions .primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.22);
}

.tp-btn.danger,
.tp-form button.danger {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-red), #fb7185);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.2);
}

.tp-btn.success {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-green), #34d399);
    box-shadow: 0 14px 28px rgba(19, 185, 129, 0.2);
}

.tp-alert,
.tp-info-strip {
    border-radius: 17px;
    padding: 12px 14px;
    font-weight: 800;
    line-height: 1.45;
}

.tp-alert-danger {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.22);
}

.tp-alert-success {
    color: #047857;
    background: rgba(19, 185, 129, 0.14);
    border: 1px solid rgba(19, 185, 129, 0.22);
}

.tp-info-strip {
    color: #1d4ed8;
    background: rgba(16, 87, 255, 0.1);
    border: 1px solid rgba(16, 87, 255, 0.18);
}

.tp-qr-panel {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: 24px;
    padding: 16px;
    margin: 14px 0;
    background: var(--tp-surface-soft);
}

.tp-qr-panel img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--tp-border);
    background: #ffffff;
}

.tp-qr-panel strong {
    display: block;
    font-size: 1.15rem;
    font-weight: 900;
}

.tp-qr-panel span {
    display: block;
    margin-top: 6px;
    color: var(--tp-muted);
    font-weight: 700;
    line-height: 1.45;
}

.tp-history-card {
    border-radius: 22px;
    padding: 16px;
}

.tp-history-icon {
    flex: 0 0 46px;
}

.tp-history-title {
    justify-content: flex-start;
}

.tp-history-title strong,
.tp-history-amount {
    display: block;
    font-weight: 900;
}

.tp-history-amount {
    text-align: right;
    font-size: 1rem;
}

.tp-card-credit .tp-history-amount {
    color: var(--tp-green);
}

.tp-card-debit .tp-history-amount {
    color: var(--tp-red);
}

.tp-status-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #047857;
    background: rgba(19, 185, 129, 0.14);
    border: 1px solid rgba(19, 185, 129, 0.22);
}

.tp-status-pending,
.tp-status-processing {
    color: #1d4ed8;
    background: rgba(16, 87, 255, 0.12);
    border-color: rgba(16, 87, 255, 0.22);
}

.tp-status-failed,
.tp-status-rejected,
.tp-status-cancelled {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.22);
}

.tp-status-refunded {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.24);
}

.tp-history-meta {
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 700;
}

.tp-history-details {
    margin-top: 12px;
}

.tp-history-details summary {
    cursor: pointer;
    color: var(--tp-primary);
    font-weight: 900;
}

.tp-lifafa-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
        linear-gradient(140deg, #06152f 0%, #1057ff 52%, #12d6c3 100%);
}

.tp-lifafa-hero .tp-kicker,
.tp-lifafa-hero p {
    color: rgba(255, 255, 255, 0.76);
}

.tp-lifafa-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -70px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.tp-lifafa-orb {
    position: relative;
    z-index: 1;
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px rgba(0, 0, 0, 0.16);
}

.tp-lifafa-orb i {
    font-size: 4rem;
}

.tp-lifafa-type-grid,
.tp-toggle-grid,
.tp-reward-grid {
    display: grid;
    gap: 12px;
}

.tp-lifafa-type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-toggle-grid,
.tp-reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-type-pill,
.tp-toggle-pill {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 12px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    font-weight: 900;
    cursor: pointer;
}

.tp-type-pill i,
.tp-toggle-pill i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.tp-type-pill.active,
.tp-toggle-pill:has(input:checked) {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.2);
}

.tp-toggle-pill input {
    width: 18px;
    height: 18px;
    margin-left: auto;
    accent-color: var(--tp-primary);
}

.tp-toggle-pill:has(input:checked) i,
.tp-type-pill.active i {
    background: rgba(255, 255, 255, 0.18);
}

.tp-dynamic-section,
.advanced-section {
    display: none;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    padding: 14px;
    background: var(--tp-surface-soft);
}

.tp-dynamic-section.is-visible,
.advanced-section.is-visible {
    display: grid;
    gap: 12px;
}

.tp-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 24px;
    padding: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0b1737, var(--tp-primary));
    box-shadow: 0 18px 36px rgba(16, 87, 255, 0.2);
}

.tp-total-card span,
.tp-total-card small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.tp-total-card strong {
    display: block;
    margin-top: 4px;
    font-size: 1.5rem;
    font-weight: 900;
}

.tp-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-bottom: 14px;
}

.tp-search-row input,
.tp-form textarea,
.tp-form select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    padding: 0 15px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    outline: none;
}

.tp-form textarea {
    min-height: 88px;
    padding-top: 14px;
    resize: vertical;
}

.tp-history-card.is-hidden,
.hidden-item,
.hidden-filtered {
    display: none !important;
}

.tp-progress {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
}

.tp-progress > span,
.tp-progress > div {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-green));
}

.tp-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tp-card-actions .tp-btn {
    flex: 1 1 130px;
}

.tp-modal,
.modal-backdrop,
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 17, 31, 0.62);
    backdrop-filter: blur(14px);
}

.tp-modal.active,
.modal-backdrop.active,
.popup-overlay.active {
    display: flex;
}

.modal-box,
.popup-container {
    width: min(560px, 100%);
    max-height: min(760px, 92vh);
    overflow: auto;
    border: 1px solid var(--tp-border);
    border-radius: 26px;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.modal-header,
.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    color: var(--tp-text);
    border-bottom: 1px solid var(--tp-border);
}

.modal-header h2,
.popup-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 900;
}

.modal-content,
.popup-body {
    padding: 18px;
}

.modal-close-icon,
.popup-close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    cursor: pointer;
}

.claimants-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.claimants-list li,
.detail-card,
.filter-item,
.channel-item {
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 12px;
    background: var(--tp-surface-soft);
}

.claimants-list li,
.filter-item,
.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.claimant-user,
.claimant-amt,
.card-label,
.calc-value,
.channel-name {
    font-weight: 900;
}

.claimant-time,
.calc-label,
.progress-label {
    color: var(--tp-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.tp-claim-screen {
    width: min(680px, 100%);
    margin: 0 auto;
    padding: 18px 14px 40px;
}

.tp-claim-card {
    overflow: hidden;
    border: 1px solid var(--tp-border);
    border-radius: 32px;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.tp-claim-header {
    padding: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.18), transparent),
        linear-gradient(145deg, #06152f 0%, #1057ff 58%, #12d6c3 100%);
}

.tp-claim-header small,
.tp-claim-header span {
    color: rgba(255,255,255,0.76);
    font-weight: 800;
}

.tp-claim-header h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.9rem, 8vw, 3rem);
    line-height: 1;
    font-weight: 900;
}

.tp-claim-amount {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(255,255,255,0.16);
    font-size: 1.1rem;
    font-weight: 900;
}

.tp-claim-body {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.tp-claim-body .container,
.tp-claim-body .content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.tp-claim-body input,
.tp-claim-body textarea,
.referral-link,
.input-field,
.search-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    padding: 0 15px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    outline: none;
}

.green-btn,
.popup-btn,
.btn-referral,
.btn-confirm-claim,
.show-more-btn,
.filter-btn,
.btn-claim-all,
.edit-submit-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 16px;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.22);
    font-weight: 900;
    cursor: pointer;
}

.btn-referral {
    width: 100%;
}

.status-verified,
.status-pending,
.status-error,
.status-banned,
.channel-status {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.72rem;
    font-weight: 900;
}

.status-verified {
    color: #047857;
    background: rgba(19, 185, 129, 0.14);
}

.status-pending {
    color: #1d4ed8;
    background: rgba(16, 87, 255, 0.12);
}

.status-error,
.status-banned {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.14);
}

.tp-claim-body #claimForm,
.tp-claim-body .verify-box,
.tp-claim-body .game-box,
.tp-claim-body .youtube-box {
    display: grid;
    gap: 14px;
    border: 1px solid var(--tp-border);
    border-radius: 24px;
    padding: 16px;
    background: var(--tp-surface);
}

.tp-claim-body .form-group {
    display: grid;
    gap: 8px;
}

.tp-claim-body .form-label {
    color: var(--tp-text);
    font-size: 0.88rem;
    font-weight: 900;
}

.tp-claim-body .btn,
.tp-claim-body .btn-claim,
.tp-claim-body .btn-primary,
.tp-claim-body button[type="submit"] {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 17px;
    padding: 13px 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.22);
    font-weight: 900;
    cursor: pointer;
}

.tp-claim-body #errordetail {
    color: var(--tp-red);
    font-weight: 800;
    text-align: center;
}

.tp-claim-body .user-name,
.tp-claim-body .progress-container {
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 12px;
    background: var(--tp-surface-soft);
}

.tp-claim-body .progress-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--tp-muted);
    font-weight: 800;
    margin-bottom: 8px;
}

.tp-claim-body .progress-bar,
.progress-bar-bg {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.14);
}

.tp-claim-body .progress-fill,
.progress-bar-fill {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: left center;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tp-primary), var(--tp-green));
}

body.tp-reward-claim-page {
    --tp-surface: #ffffff;
    --tp-surface-soft: #f8faff;
    --tp-border: #e6e9f5;
    --tp-text: #111a33;
    --tp-muted: #667085;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(105, 75, 255, 0.1), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(18, 214, 195, 0.12), transparent 25rem),
        linear-gradient(180deg, #fbf9ff 0%, #f7fbff 54%, #ffffff 100%);
    color: var(--tp-text);
}

body.tp-reward-claim-page .tp-claim-screen {
    width: min(1120px, calc(100% - 32px));
    display: grid;
    gap: 18px;
    padding: 18px 0 44px;
}

body.tp-reward-claim-page .tp-reward-card,
body.tp-reward-claim-page .tp-panel,
body.tp-reward-claim-page .popup-container {
    border: 1px solid rgba(110, 86, 207, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 60px rgba(31, 41, 77, 0.1);
    backdrop-filter: blur(14px);
}

body.tp-reward-claim-page .tp-claim-appbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    min-height: 74px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 48px rgba(31, 41, 77, 0.09);
    backdrop-filter: blur(16px);
}

body.tp-reward-claim-page .tp-claim-appbar .tp-brand img {
    width: 46px;
    height: 46px;
}

body.tp-reward-claim-page .tp-claim-appbar .tp-brand strong {
    color: #15123a;
    font-size: 1.12rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-claim-appbar .tp-brand small {
    color: var(--tp-muted);
    font-weight: 800;
}

body.tp-reward-claim-page .tp-claim-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: 18px;
    align-items: stretch;
    padding: 22px;
    overflow: hidden;
}

body.tp-reward-claim-page .tp-claim-hero-main {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 14px;
    padding: 6px;
}

body.tp-reward-claim-page .tp-claim-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #121735;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.02;
    font-weight: 900;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

body.tp-reward-claim-page .tp-reward-badge,
body.tp-reward-claim-page .tp-common-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(89, 57, 210, 0.16);
    border-radius: 999px;
    padding: 8px 12px;
    color: #4122b8;
    background: #f0ebff;
    font-size: 0.78rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-claim-amount {
    width: fit-content;
    border: 1px solid rgba(89, 57, 210, 0.16);
    padding: 12px 16px;
    color: #15123a;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(89, 57, 210, 0.11);
    font-size: clamp(1.25rem, 3vw, 2.1rem);
}

body.tp-reward-claim-page .tp-claim-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.tp-reward-claim-page .tp-claim-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--tp-muted);
    background: #ffffff;
    font-size: 0.83rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-claim-summary {
    display: grid;
    gap: 12px;
}

body.tp-reward-claim-page .tp-summary-item {
    display: grid;
    align-content: center;
    min-height: 112px;
    border: 1px solid #e8e7fb;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(135deg, #ffffff, #f7f5ff);
}

body.tp-reward-claim-page .tp-summary-item span {
    color: var(--tp-muted);
    font-size: 0.78rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-summary-item strong {
    margin-top: 8px;
    color: #15123a;
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 900;
}

body.tp-reward-claim-page .tp-claim-progress {
    padding: 14px;
}

body.tp-reward-claim-page .tp-stepper {
    counter-reset: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.tp-reward-claim-page .tp-stepper li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: 1px solid #e8e7fb;
    border-radius: 999px;
    padding: 8px 10px;
    color: #4b5565;
    background: linear-gradient(180deg, #ffffff, #f7f4ff);
    font-size: 0.78rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-stepper li span {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #ffffff;
    background: #5b2bd6;
    font-size: 0.75rem;
    box-shadow: 0 8px 18px rgba(91, 43, 214, 0.24);
}

body.tp-reward-claim-page .tp-stepper li strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-stepper li.is-active {
    border-color: rgba(91, 43, 214, 0.28);
    color: #20125f;
    background: linear-gradient(180deg, #f6f1ff, #ffffff);
}

body.tp-reward-claim-page .tp-claim-card {
    overflow: visible;
}

body.tp-reward-claim-page .tp-claim-body {
    gap: 18px;
    padding: 18px;
}

body.tp-reward-claim-page .tp-claim-body #claimForm,
body.tp-reward-claim-page .tp-claim-body .verify-box,
body.tp-reward-claim-page .tp-claim-body .game-box,
body.tp-reward-claim-page .tp-claim-body .youtube-box,
body.tp-reward-claim-page .tp-claim-body .user-name,
body.tp-reward-claim-page .tp-claim-body .progress-container {
    border-color: #e8e7fb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(31, 41, 77, 0.06);
}

body.tp-reward-claim-page .tp-icon-wrapper,
body.tp-reward-claim-page .tp-claim-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #4b22c8;
    background: #f0ebff;
}

body.tp-reward-claim-page .tp-popup-shell {
    border: 1px solid #e8e7fb;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 41, 77, 0.16);
}

body.tp-reward-claim-page .tp-stepper li.is-complete {
    border-color: rgba(19, 185, 129, 0.22);
    color: #065f46;
    background: linear-gradient(180deg, #f0fdf8, #ffffff);
}

body.tp-reward-claim-page .tp-stepper li.is-complete span {
    background: #10a37f;
    box-shadow: 0 8px 18px rgba(16, 163, 127, 0.22);
}

body.tp-reward-claim-page .tp-stepper li.is-locked {
    border-color: rgba(148, 163, 184, 0.28);
    color: #667085;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

body.tp-reward-claim-page .tp-stepper li.is-locked span {
    background: #94a3b8;
    box-shadow: none;
}

body.tp-reward-claim-page .tp-claim-intelligence {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 18px;
}

body.tp-reward-claim-page .tp-reward-details-card,
body.tp-reward-claim-page .tp-task-checklist-card {
    min-width: 0;
    padding: 18px;
}

body.tp-reward-claim-page .tp-intel-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

body.tp-reward-claim-page .tp-intel-card-head h2 {
    margin: 0;
    color: #141833;
    font-size: 1.05rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-intel-card-head p {
    margin: 3px 0 0;
    color: var(--tp-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    max-width: 100%;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-status-active,
body.tp-reward-claim-page .tp-status-ready,
body.tp-reward-claim-page .tp-status-verified {
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.14);
    background: #eaf1ff;
}

body.tp-reward-claim-page .tp-status-completed {
    color: #047857;
    border-color: rgba(16, 163, 127, 0.16);
    background: #eafaf4;
}

body.tp-reward-claim-page .tp-status-pending,
body.tp-reward-claim-page .tp-status-not-verified {
    color: #a16207;
    border-color: rgba(234, 179, 8, 0.18);
    background: #fffae8;
}

body.tp-reward-claim-page .tp-status-locked {
    color: #475467;
    border-color: rgba(148, 163, 184, 0.22);
    background: #f2f4f7;
}

body.tp-reward-claim-page .tp-reward-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.tp-reward-claim-page .tp-reward-detail-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 2px 10px;
    align-items: center;
    min-height: 78px;
    border: 1px solid #edf0f8;
    border-radius: 20px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

body.tp-reward-claim-page .tp-detail-icon {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #4b22c8;
    background: #f0ebff;
}

body.tp-reward-claim-page .tp-reward-detail-row span:not(.tp-detail-icon) {
    min-width: 0;
    color: var(--tp-muted);
    font-size: 0.73rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-reward-detail-row strong {
    min-width: 0;
    color: #141833;
    font-size: 0.92rem;
    line-height: 1.25;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-task-list {
    display: grid;
    gap: 10px;
}

body.tp-reward-claim-page .tp-task-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    border: 1px solid #edf0f8;
    border-radius: 20px;
    padding: 11px;
    background: #ffffff;
}

body.tp-reward-claim-page .tp-task-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #4b22c8;
    background: #f0ebff;
}

body.tp-reward-claim-page .tp-task-item strong,
body.tp-reward-claim-page .tp-task-item small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-task-item strong {
    color: #141833;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-task-item small {
    margin-top: 4px;
    color: var(--tp-muted);
    font-size: 0.68rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-task-item.is-completed {
    border-color: rgba(16, 163, 127, 0.18);
    background: linear-gradient(180deg, #f0fdf8, #ffffff);
}

body.tp-reward-claim-page .tp-task-item.is-completed .tp-task-icon {
    color: #047857;
    background: #dcfce7;
}

body.tp-reward-claim-page .tp-task-item.is-pending {
    border-color: rgba(234, 179, 8, 0.2);
    background: linear-gradient(180deg, #fffdf2, #ffffff);
}

body.tp-reward-claim-page .tp-task-item.is-pending .tp-task-icon {
    color: #a16207;
    background: #fef3c7;
}

body.tp-reward-claim-page .tp-task-item.is-locked {
    color: #667085;
    background: #f8fafc;
}

body.tp-reward-claim-page .tp-task-item.is-locked .tp-task-icon {
    color: #667085;
    background: #eef2f7;
}

body.tp-reward-claim-page .tp-normal-claim-card {
    width: min(620px, 100%);
    justify-self: center;
    padding: 20px;
}

body.tp-reward-claim-page .tp-normal-claim-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.tp-reward-claim-page .tp-normal-claim-head h2 {
    margin: 0;
    color: #121735;
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-normal-claim-head p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-normal-claim-icon,
body.tp-reward-claim-page .tp-normal-error-icon,
body.tp-reward-claim-page .tp-claim-state-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #4b22c8;
    background: #f0ebff;
}

body.tp-reward-claim-page .tp-normal-claim-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    padding: 7px 10px;
    color: #1d4ed8;
    background: #eaf1ff;
    font-size: 0.68rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-normal-claim-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.tp-reward-claim-page .tp-normal-claim-summary div {
    min-width: 0;
    border: 1px solid #edf0f8;
    border-radius: 18px;
    padding: 13px;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

body.tp-reward-claim-page .tp-normal-claim-summary span,
body.tp-reward-claim-page .tp-normal-receipt-grid span {
    display: block;
    color: var(--tp-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-normal-claim-summary strong,
body.tp-reward-claim-page .tp-normal-receipt-grid strong {
    display: block;
    margin-top: 5px;
    color: #121735;
    font-size: 0.95rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-normal-status-strip {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid #e8e7fb;
    border-radius: 18px;
    padding: 10px 12px;
    color: #475467;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-normal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1d4ed8;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

body.tp-reward-claim-page .tp-normal-status-strip strong {
    color: #121735;
    font-size: 0.82rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-normal-status-strip small {
    min-width: 0;
    color: var(--tp-muted);
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-normal-status-strip[data-state="claiming"] .tp-normal-status-dot {
    background: #7c3aed;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.14);
    animation: tpPulseSoft 1s ease-in-out infinite;
}

body.tp-reward-claim-page .tp-normal-status-strip[data-state="success"] .tp-normal-status-dot {
    background: #10a37f;
    box-shadow: 0 0 0 5px rgba(16, 163, 127, 0.14);
}

body.tp-reward-claim-page .tp-normal-status-strip[data-state="failed"] .tp-normal-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

body.tp-reward-claim-page .tp-normal-input-wrap {
    position: relative;
}

body.tp-reward-claim-page .tp-normal-input-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    color: #667085;
}

body.tp-reward-claim-page .tp-normal-input-wrap input {
    padding-left: 46px;
}

body.tp-reward-claim-page .tp-gate-card {
    min-width: 0;
    border: 1px solid #e8e7fb;
    border-radius: 24px;
    padding: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 252, 255, 0.98));
    box-shadow: 0 16px 44px rgba(31, 41, 77, 0.08);
}

body.tp-reward-claim-page .tp-gate-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

body.tp-reward-claim-page .tp-gate-head h3 {
    margin: 0;
    color: #121735;
    font-size: 1rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-gate-head p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-gate-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 17px;
    color: #4b22c8;
    background: #f0ebff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.tp-reward-claim-page .tp-youtube-gate-card .tp-gate-icon {
    color: #dc2626;
    background: #fff1f2;
}

body.tp-reward-claim-page .tp-channel-gate-card .tp-gate-icon {
    color: #0284c7;
    background: #e0f2fe;
}

body.tp-reward-claim-page .tp-referral-gate-card .tp-gate-icon,
body.tp-reward-claim-page .tp-task-gate-referral .tp-task-icon {
    color: #047857;
    background: #dcfce7;
}

body.tp-reward-claim-page .tp-access-code-card .tp-gate-icon,
body.tp-reward-claim-page .tp-task-gate-access-code .tp-task-icon {
    color: #7c3aed;
    background: #f3e8ff;
}

body.tp-reward-claim-page .tp-task-gate-special-user .tp-task-icon {
    color: #047857;
    background: #dcfce7;
}

body.tp-reward-claim-page .tp-gate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(91, 43, 214, 0.14);
    border-radius: 999px;
    padding: 7px 10px;
    color: #4b22c8;
    background: #f4f0ff;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-gate-input-wrap {
    position: relative;
}

body.tp-reward-claim-page .tp-gate-input-wrap > i {
    position: absolute;
    left: 16px;
    top: 50%;
    z-index: 1;
    color: #667085;
    transform: translateY(-50%);
}

body.tp-reward-claim-page .tp-gate-input-wrap input {
    width: 100%;
    padding-left: 46px;
}

body.tp-reward-claim-page #accessCodeGroup:not(.tp-access-code-card) {
    border: 1px solid #e8e7fb;
    border-radius: 20px;
    padding: 14px;
    background: #fbfcff;
}

body.tp-reward-claim-page #accessCodeGroup .form-label {
    color: #121735;
    font-weight: 900;
}

body.tp-reward-claim-page #accessCodeGroup input {
    min-height: 50px;
}

body.tp-reward-claim-page #errordetail,
body.tp-reward-claim-page .error,
body.tp-reward-claim-page .success {
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page #channelsSection.tp-channel-gate-card {
    display: grid;
    gap: 10px;
}

body.tp-reward-claim-page #channelsSection .channel-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border: 1px solid #edf0f8;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(31, 41, 77, 0.04);
}

body.tp-reward-claim-page #channelsSection .channel-item.joined {
    border-color: rgba(16, 163, 127, 0.18);
    background: #f0fdf8;
}

body.tp-reward-claim-page #channelsSection .channel-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: #eef7ff;
}

body.tp-reward-claim-page #channelsSection .channel-icon svg {
    width: 32px;
    height: 32px;
}

body.tp-reward-claim-page #channelsSection .channel-name {
    min-width: 0;
    color: #121735;
    font-size: 0.88rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page #channelsSection .channel-status,
body.tp-reward-claim-page #channelsSection .channel-status-link {
    max-width: 100%;
}

body.tp-reward-claim-page #channelsSection .channel-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 0.68rem;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page #channelsSection .status-pending {
    color: #1d4ed8;
    background: #eaf1ff;
}

body.tp-reward-claim-page #channelsSection .status-verified {
    color: #047857;
    background: #dcfce7;
}

body.tp-reward-claim-page #channelsSection .status-error,
body.tp-reward-claim-page #channelsSection .status-banned {
    color: #991b1b;
    background: #fee2e2;
}

body.tp-reward-claim-page .tp-gate-action-row .tp-btn,
body.tp-reward-claim-page #checkChannelsBtn,
body.tp-reward-claim-page #checkChannelsBtnInner {
    width: min(100%, 260px);
}

body.tp-reward-claim-page .tp-referral-gate-card {
    display: grid;
    gap: 12px;
    width: min(620px, 100%);
    margin: 0 auto;
}

body.tp-reward-claim-page .tp-referral-gate-card .btn-referral {
    min-height: 52px;
    border-radius: 18px;
}

body.tp-reward-claim-page .tp-task-gate-youtube,
body.tp-reward-claim-page .tp-task-gate-channel,
body.tp-reward-claim-page .tp-task-gate-access-code,
body.tp-reward-claim-page .tp-task-gate-special-user,
body.tp-reward-claim-page .tp-task-gate-referral {
    position: relative;
}

body.tp-reward-claim-page .tp-task-gate-youtube.is-pending::after,
body.tp-reward-claim-page .tp-task-gate-channel.is-pending::after,
body.tp-reward-claim-page .tp-task-gate-access-code.is-pending::after,
body.tp-reward-claim-page .tp-task-gate-special-user.is-pending::after,
body.tp-reward-claim-page .tp-task-gate-referral.is-pending::after,
body.tp-reward-claim-page .tp-task-gate-youtube.is-locked::after,
body.tp-reward-claim-page .tp-task-gate-channel.is-locked::after,
body.tp-reward-claim-page .tp-task-gate-access-code.is-locked::after,
body.tp-reward-claim-page .tp-task-gate-special-user.is-locked::after,
body.tp-reward-claim-page .tp-task-gate-referral.is-locked::after {
    content: "Complete this first";
    grid-column: 2 / -1;
    color: #a16207;
    font-size: 0.68rem;
    font-weight: 900;
}

body.tp-reward-claim-page #claimoutput {
    display: grid;
    gap: 16px;
    min-width: 0;
}

body.tp-reward-claim-page .tp-youtube-gate-card {
    width: min(640px, 100%);
    margin: 0 auto;
}

body.tp-reward-claim-page .tp-youtube-gate-card .player-content {
    display: grid;
    gap: 14px;
}

body.tp-reward-claim-page .tp-youtube-gate-card .video-wrapper {
    overflow: hidden;
    border: 1px solid #edf0f8;
    border-radius: 20px;
    background: #0f172a;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

body.tp-reward-claim-page .tp-youtube-gate-card .stats-container {
    display: grid;
    gap: 12px;
    border: 1px solid #edf0f8;
    border-radius: 18px;
    padding: 12px;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-youtube-gate-card #watchMessage {
    color: #475467;
    font-size: 0.78rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-youtube-gate-card .reward-button,
body.tp-reward-claim-page .tp-youtube-gate-card .claim-reward-btn {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #5b2bd6, #1d4ed8);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    font-weight: 900;
}

body.tp-reward-claim-page .user-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 12px auto 0;
    border: 1px solid rgba(16, 163, 127, 0.18);
    border-radius: 999px;
    padding: 9px 12px;
    color: #047857;
    background: #effdf7;
    font-size: 0.78rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-dice-claim-card {
    width: min(660px, 100%);
    justify-self: center;
    display: grid;
    gap: 16px;
    padding: 20px;
}

body.tp-reward-claim-page .tp-dice-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.tp-reward-claim-page .tp-dice-head h2 {
    margin: 0;
    color: #121735;
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-dice-head p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-dice-head-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #5b2bd6, #1d4ed8);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

body.tp-reward-claim-page .tp-dice-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 999px;
    padding: 7px 10px;
    color: #1d4ed8;
    background: #eaf1ff;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-dice-stage {
    display: grid;
    place-items: center;
    min-height: 172px;
    border: 1px solid #edf0f8;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 22%, rgba(91, 43, 214, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    perspective: 720px;
}

body.tp-reward-claim-page .tp-dice-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 124px;
    height: 124px;
    border: 1px solid rgba(91, 43, 214, 0.12);
    border-radius: 30px;
    color: #4b22c8;
    background:
        linear-gradient(145deg, #ffffff 0%, #f6f1ff 58%, #e8f1ff 100%);
    box-shadow:
        0 26px 48px rgba(31, 41, 77, 0.14),
        inset 12px 12px 24px rgba(255, 255, 255, 0.96),
        inset -12px -12px 24px rgba(91, 43, 214, 0.08);
    transform: rotateX(58deg) rotateZ(-32deg);
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s ease;
}

body.tp-reward-claim-page .tp-dice-preview::before,
body.tp-reward-claim-page .tp-dice-preview::after {
    content: "";
    position: absolute;
    border-radius: 24px;
    background: linear-gradient(135deg, #e6dcff, #dbeafe);
    box-shadow: inset 0 0 18px rgba(91, 43, 214, 0.08);
}

body.tp-reward-claim-page .tp-dice-preview::before {
    width: 26px;
    height: 108px;
    right: -16px;
    top: 11px;
    transform: skewY(42deg);
}

body.tp-reward-claim-page .tp-dice-preview::after {
    width: 108px;
    height: 26px;
    left: 13px;
    bottom: -15px;
    transform: skewX(42deg);
}

body.tp-reward-claim-page .tp-dice-face-mark {
    position: absolute;
    z-index: 1;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #5b2bd6;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.16);
}

body.tp-reward-claim-page .tp-dice-face-mark.mark-one {
    top: 28px;
    left: 28px;
}

body.tp-reward-claim-page .tp-dice-face-mark.mark-two {
    top: 28px;
    right: 28px;
}

body.tp-reward-claim-page .tp-dice-face-mark.mark-three {
    bottom: 28px;
    left: 28px;
}

body.tp-reward-claim-page .tp-dice-face-mark.mark-four {
    bottom: 28px;
    right: 28px;
}

body.tp-reward-claim-page .tp-dice-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 24px;
    border: 1px solid rgba(91, 43, 214, 0.18);
    border-radius: 999px;
    color: #4b22c8;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0;
}

body.tp-reward-claim-page .tp-dice-claim-card.is-rolling .tp-dice-preview {
    animation: tpDiceRoll 0.95s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
    box-shadow:
        0 30px 56px rgba(91, 43, 214, 0.2),
        inset 12px 12px 24px rgba(255, 255, 255, 0.96),
        inset -12px -12px 24px rgba(91, 43, 214, 0.08);
}

body.tp-reward-claim-page .tp-dice-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.tp-reward-claim-page .tp-dice-section-label span {
    color: #121735;
    font-size: 0.88rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-dice-section-label small {
    color: var(--tp-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-dice-claim-card .dice-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    justify-content: stretch;
}

body.tp-reward-claim-page .tp-dice-claim-card .dice-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.tp-reward-claim-page .tp-dice-claim-card .diceBox {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    height: 56px;
    border: 1px solid #e8e7fb;
    border-radius: 18px;
    color: #121735;
    background: linear-gradient(180deg, #ffffff, #fbfcff);
    box-shadow: 0 8px 22px rgba(31, 41, 77, 0.05);
    cursor: pointer;
    transform: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.tp-reward-claim-page .tp-dice-claim-card .diceBox::before,
body.tp-reward-claim-page .tp-dice-claim-card .diceBox::after {
    display: none;
}

body.tp-reward-claim-page .tp-dice-claim-card .diceBox:hover {
    border-color: rgba(91, 43, 214, 0.28);
    box-shadow: 0 12px 28px rgba(91, 43, 214, 0.1);
    transform: translateY(-1px);
}

body.tp-reward-claim-page .tp-dice-chip-number {
    font-size: 1rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-dice-claim-card .diceBox i {
    position: absolute;
    right: 8px;
    top: 8px;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #ffffff;
    background: #10a37f;
    font-size: 0.62rem;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body.tp-reward-claim-page .tp-dice-claim-card .dice-grid input[type="radio"]:checked + .diceBox {
    border-color: rgba(91, 43, 214, 0.55);
    color: #4b22c8;
    background: linear-gradient(180deg, #f8f5ff, #ffffff);
    box-shadow: 0 0 0 5px rgba(91, 43, 214, 0.08), 0 18px 34px rgba(91, 43, 214, 0.14);
    transform: scale(1.04);
}

body.tp-reward-claim-page .tp-dice-claim-card .dice-grid input[type="radio"]:checked + .diceBox i {
    opacity: 1;
    transform: scale(1);
}

body.tp-reward-claim-page .tp-dice-status-strip {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid #e8e7fb;
    border-radius: 18px;
    padding: 10px 12px;
    color: #475467;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-dice-status-strip strong {
    color: #121735;
    font-size: 0.82rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-dice-status-strip small {
    min-width: 0;
    color: var(--tp-muted);
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-dice-status-strip[data-state="rolling"] .tp-normal-status-dot,
body.tp-reward-claim-page .tp-dice-status-strip[data-state="processing"] .tp-normal-status-dot {
    background: #7c3aed;
    box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.14);
    animation: tpPulseSoft 1s ease-in-out infinite;
}

body.tp-reward-claim-page .tp-dice-status-strip[data-state="failed"] .tp-normal-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

body.tp-reward-claim-page .tp-dice-claim-card #claimButton {
    min-height: 54px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 900;
}

body.tp-reward-claim-page #diceContainer {
    margin: 0 auto 16px;
}

body.tp-reward-claim-page #diceContainer .dice,
body.tp-reward-claim-page .dice-container .dice {
    border-color: rgba(91, 43, 214, 0.18);
    border-radius: 24px;
    background: linear-gradient(145deg, #ffffff 0%, #f6f1ff 58%, #e8f1ff 100%);
    box-shadow:
        0 24px 50px rgba(31, 41, 77, 0.14),
        inset 10px 10px 20px rgba(255, 255, 255, 0.94),
        inset -10px -10px 20px rgba(91, 43, 214, 0.08);
}

body.tp-reward-claim-page #diceContainer .dice .dot,
body.tp-reward-claim-page .dice-container .dice .dot {
    background: #5b2bd6;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.18);
}

body.tp-reward-claim-page #rollmessage {
    display: grid;
    gap: 8px;
    width: min(560px, 100%);
    margin: 14px auto 0;
    border: 1px solid rgba(91, 43, 214, 0.14);
    border-radius: 24px;
    padding: 18px;
    color: #121735;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(31, 41, 77, 0.1);
    font-weight: 900;
    text-align: center;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-dice-result-win #rollmessage {
    border-color: rgba(16, 163, 127, 0.18);
    color: #047857;
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 163, 127, 0.14), transparent 36%),
        #ffffff;
    box-shadow: 0 24px 54px rgba(16, 163, 127, 0.13);
}

body.tp-reward-claim-page .tp-dice-result-lose #rollmessage {
    border-color: rgba(148, 163, 184, 0.22);
    color: #475467;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

body.tp-reward-claim-page .tp-dice-error-card {
    margin-top: 12px;
}

body.tp-reward-claim-page .tp-toss-claim-card {
    width: min(660px, 100%);
    justify-self: center;
    display: grid;
    gap: 16px;
    padding: 20px;
}

body.tp-reward-claim-page .tp-toss-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.tp-reward-claim-page .tp-toss-head h2 {
    margin: 0;
    color: #121735;
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-head p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-toss-head-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #6b3a00;
    background: linear-gradient(135deg, #fff7d6, #f7c948);
    box-shadow: 0 12px 26px rgba(184, 116, 10, 0.18);
}

body.tp-reward-claim-page .tp-toss-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(184, 116, 10, 0.18);
    border-radius: 999px;
    padding: 7px 10px;
    color: #92400e;
    background: #fff7d6;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-toss-stage {
    display: grid;
    place-items: center;
    min-height: 172px;
    border: 1px solid #edf0f8;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 18%, rgba(245, 158, 11, 0.16), transparent 36%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    perspective: 760px;
}

body.tp-reward-claim-page .tp-toss-preview {
    position: relative;
    display: grid;
    place-items: center;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    border: 1px solid rgba(180, 83, 9, 0.22);
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
        radial-gradient(circle at 58% 62%, rgba(146, 64, 14, 0.18), transparent 36%),
        linear-gradient(145deg, #fff7d6 0%, #f7c948 45%, #d97706 100%);
    box-shadow:
        0 26px 50px rgba(120, 53, 15, 0.16),
        inset 7px 7px 16px rgba(255, 255, 255, 0.7),
        inset -9px -9px 18px rgba(120, 53, 15, 0.22);
    transform: rotateX(56deg) rotateZ(-18deg);
    transform-style: preserve-3d;
}

body.tp-reward-claim-page .tp-toss-preview::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2px solid rgba(120, 53, 15, 0.16);
    border-radius: 50%;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.18);
}

body.tp-reward-claim-page .tp-toss-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(115deg, transparent 0 44%, rgba(255, 255, 255, 0.38) 50%, transparent 58% 100%);
}

body.tp-reward-claim-page .tp-toss-coin-ring {
    position: absolute;
    inset: 21px;
    border-radius: 50%;
    border: 1px dashed rgba(120, 53, 15, 0.28);
}

body.tp-reward-claim-page .tp-toss-coin-brand {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    min-width: 70px;
    min-height: 34px;
    border: 1px solid rgba(120, 53, 15, 0.18);
    border-radius: 999px;
    color: #78350f;
    background: rgba(255, 248, 218, 0.72);
    font-size: 0.72rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-coin-glint {
    position: absolute;
    right: 26px;
    top: 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    filter: blur(1px);
}

body.tp-reward-claim-page .tp-toss-claim-card.is-flipping .tp-toss-preview {
    animation: tpTossFlip 0.9s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

body.tp-reward-claim-page .tp-toss-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

body.tp-reward-claim-page .tp-toss-section-label span {
    color: #121735;
    font-size: 0.88rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-section-label small {
    color: var(--tp-muted);
    font-size: 0.72rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-claim-card .toss-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    width: 100%;
}

body.tp-reward-claim-page .tp-toss-claim-card .toss-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 86px;
    aspect-ratio: auto;
    border: 1px solid rgba(184, 116, 10, 0.16);
    border-radius: 24px;
    padding: 18px;
    color: #78350f;
    text-shadow: none;
    background: linear-gradient(180deg, #ffffff, #fffbeb) !important;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.06);
    transform: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 20%),
        linear-gradient(145deg, #fff7d6, #f7c948 54%, #d97706);
    box-shadow: inset -4px -4px 8px rgba(120, 53, 15, 0.18);
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select::after {
    display: none;
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select span {
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select i {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #ffffff;
    background: #10a37f;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body.tp-reward-claim-page .tp-toss-claim-card .coin-select:hover {
    border-color: rgba(184, 116, 10, 0.28);
    box-shadow: 0 14px 32px rgba(184, 116, 10, 0.1);
    transform: translateY(-1px);
}

body.tp-reward-claim-page .tp-toss-claim-card .toss-grid input[type="radio"]:checked + .coin-select {
    border-color: rgba(184, 116, 10, 0.45);
    background: linear-gradient(180deg, #fff8df, #ffffff) !important;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.1), 0 18px 34px rgba(184, 116, 10, 0.14);
    transform: scale(1.03);
}

body.tp-reward-claim-page .tp-toss-claim-card .toss-grid input[type="radio"]:checked + .coin-select i {
    opacity: 1;
    transform: scale(1);
}

body.tp-reward-claim-page .tp-toss-status-strip {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid #e8e7fb;
    border-radius: 18px;
    padding: 10px 12px;
    color: #475467;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-toss-status-strip strong {
    color: #121735;
    font-size: 0.82rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-toss-status-strip small {
    min-width: 0;
    color: var(--tp-muted);
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-toss-status-strip[data-state="flipping"] .tp-normal-status-dot,
body.tp-reward-claim-page .tp-toss-status-strip[data-state="processing"] .tp-normal-status-dot {
    background: #d97706;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
    animation: tpPulseSoft 1s ease-in-out infinite;
}

body.tp-reward-claim-page .tp-toss-status-strip[data-state="failed"] .tp-normal-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

body.tp-reward-claim-page .tp-toss-claim-card #claimButton {
    min-height: 54px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 900;
}

body.tp-reward-claim-page .coin-scene {
    width: 150px;
    height: 150px;
    margin: 0 auto 16px;
}

body.tp-reward-claim-page .coin-face {
    border: 1px solid rgba(120, 53, 15, 0.18);
    color: #78350f;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
        linear-gradient(145deg, #fff7d6, #f7c948 52%, #d97706) !important;
    box-shadow:
        0 22px 42px rgba(120, 53, 15, 0.16),
        inset 8px 8px 16px rgba(255, 255, 255, 0.72),
        inset -8px -8px 16px rgba(120, 53, 15, 0.22);
    text-shadow: none;
}

body.tp-reward-claim-page .coin-edge {
    background: linear-gradient(135deg, #b45309, #f59e0b) !important;
    box-shadow:
        0 0 0 2px #b45309,
        0 0 0 5px #f59e0b,
        0 0 0 8px #92400e !important;
}

body.tp-reward-claim-page .tp-toss-result-win #rollmessage {
    border-color: rgba(16, 163, 127, 0.18);
    color: #047857;
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 163, 127, 0.14), transparent 36%),
        #ffffff;
    box-shadow: 0 24px 54px rgba(16, 163, 127, 0.13);
}

body.tp-reward-claim-page .tp-toss-result-lose #rollmessage {
    border-color: rgba(148, 163, 184, 0.22);
    color: #475467;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

body.tp-reward-claim-page .tp-toss-error-card {
    margin-top: 12px;
}

body.tp-reward-claim-page .tp-scratch-claim-card {
    width: min(680px, 100%);
    justify-self: center;
    display: grid;
    gap: 16px;
    padding: 20px;
}

body.tp-reward-claim-page .tp-scratch-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

body.tp-reward-claim-page .tp-scratch-head h2 {
    margin: 0;
    color: #121735;
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-head p {
    margin: 4px 0 0;
    color: var(--tp-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-scratch-head-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    color: #6b3a00;
    background: linear-gradient(135deg, #fff7d6, #f7c948);
    box-shadow: 0 12px 26px rgba(184, 116, 10, 0.18);
}

body.tp-reward-claim-page .tp-scratch-state-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border: 1px solid rgba(184, 116, 10, 0.18);
    border-radius: 999px;
    padding: 7px 10px;
    color: #92400e;
    background: #fff7d6;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

body.tp-reward-claim-page .tp-scratch-preview {
    display: grid;
    place-items: center;
    min-height: 230px;
    border: 1px solid #edf0f8;
    border-radius: 28px;
    background:
        radial-gradient(circle at 18% 10%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff, #f8fbff);
    perspective: 800px;
}

body.tp-reward-claim-page .tp-scratch-voucher {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    width: min(420px, 92%);
    aspect-ratio: 1.62 / 1;
    overflow: hidden;
    border: 1px solid rgba(184, 116, 10, 0.18);
    border-radius: 30px;
    color: #121735;
    background:
        linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.45) 50%, transparent 58% 100%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.2), transparent 24%),
        linear-gradient(145deg, #ffffff, #fff7d6 44%, #f1efff);
    box-shadow:
        0 28px 60px rgba(31, 41, 77, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    animation: tpScratchPulse 2.8s ease-in-out infinite;
}

body.tp-reward-claim-page .tp-scratch-voucher::before,
body.tp-reward-claim-page .tp-scratch-voucher::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px dashed rgba(184, 116, 10, 0.22);
    pointer-events: none;
}

body.tp-reward-claim-page .tp-scratch-voucher::after {
    inset: auto -20% 18px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(91, 43, 214, 0.12), transparent 68%);
}

body.tp-reward-claim-page .tp-scratch-voucher img,
body.tp-reward-claim-page .tp-scratch-logo-wrap img {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    box-shadow: 0 12px 24px rgba(31, 41, 77, 0.14);
}

body.tp-reward-claim-page .tp-scratch-voucher strong {
    font-size: 1.24rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-voucher small {
    color: #667085;
    font-size: 0.78rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #78350f;
    background: linear-gradient(135deg, #fff7d6, #f7c948);
    font-size: 0.64rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-hologram {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background:
        conic-gradient(from 20deg, #c4b5fd, #bfdbfe, #fde68a, #a7f3d0, #c4b5fd);
    opacity: 0.9;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.36);
}

body.tp-reward-claim-page .tp-scratch-status-strip {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 48px;
    border: 1px solid #e8e7fb;
    border-radius: 18px;
    padding: 10px 12px;
    color: #475467;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-scratch-status-strip strong {
    color: #121735;
    font-size: 0.82rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-status-strip small {
    min-width: 0;
    color: var(--tp-muted);
    font-size: 0.76rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-scratch-status-strip[data-state="processing"] .tp-normal-status-dot {
    background: #d97706;
    box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.16);
    animation: tpPulseSoft 1s ease-in-out infinite;
}

body.tp-reward-claim-page .tp-scratch-status-strip[data-state="failed"] .tp-normal-status-dot {
    background: #ef4444;
    box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.14);
}

body.tp-reward-claim-page .tp-scratch-loading {
    display: none;
    position: relative;
    overflow: hidden;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(184, 116, 10, 0.16);
    border-radius: 18px;
    padding: 12px;
    color: #78350f;
    background: #fff8df;
}

body.tp-reward-claim-page .tp-scratch-loading.is-visible {
    display: flex;
}

body.tp-reward-claim-page .tp-scratch-loading strong,
body.tp-reward-claim-page .tp-scratch-loading small {
    position: relative;
    z-index: 1;
    display: block;
}

body.tp-reward-claim-page .tp-scratch-loading small {
    color: #92400e;
    font-size: 0.74rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-scratch-shimmer {
    width: 30px;
    height: 30px;
    border-radius: 11px;
    background: linear-gradient(135deg, #fff7d6, #f59e0b);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.18);
}

body.tp-reward-claim-page .tp-scratch-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.54), transparent);
    animation: tpShimmerSweep 1.15s linear infinite;
}

body.tp-reward-claim-page .tp-scratch-game-area {
    width: min(680px, 100%);
    margin: 0 auto;
}

body.tp-reward-claim-page .scratch-card-wrapper {
    max-width: 460px;
}

body.tp-reward-claim-page .scratch-card {
    aspect-ratio: 1.62 / 1;
    border: 1px solid rgba(184, 116, 10, 0.18);
    border-radius: 30px;
    background: linear-gradient(145deg, #ffffff, #fff7d6 44%, #f1efff);
    box-shadow:
        0 30px 62px rgba(31, 41, 77, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.tp-reward-claim-page .scratch-result {
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.2), transparent 26%),
        linear-gradient(145deg, #ffffff, #fff7d6 42%, #f7f4ff);
}

body.tp-reward-claim-page .scratch-result .result-text {
    color: #78350f;
    font-size: 0.76rem;
    letter-spacing: 0;
    font-weight: 900;
}

body.tp-reward-claim-page .scratch-result .result-amount {
    color: #121735;
    font-size: 1.7rem;
    font-weight: 900;
}

body.tp-reward-claim-page .scratch-result .result-sub {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-scratch-seal {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #78350f;
    background: #fff7d6;
    font-size: 0.64rem;
    font-weight: 900;
}

body.tp-reward-claim-page #scratch-canvas {
    border-radius: 30px;
    cursor: grab;
    filter: saturate(1.06);
}

body.tp-reward-claim-page .scratch-progress {
    margin-top: 14px;
}

body.tp-reward-claim-page .scratch-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #edf0f8;
}

body.tp-reward-claim-page .scratch-progress-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #5b2bd6, #f59e0b);
}

body.tp-reward-claim-page .scratch-hint {
    color: #667085;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-scratch-win-reveal {
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 163, 127, 0.2), transparent 36%),
        linear-gradient(145deg, #ffffff, #ecfdf5) !important;
    box-shadow: inset 0 0 0 1px rgba(16, 163, 127, 0.14);
}

body.tp-reward-claim-page .tp-scratch-win-reveal .result-text,
body.tp-reward-claim-page .tp-scratch-win-reveal .result-amount {
    color: #047857;
}

body.tp-reward-claim-page .tp-scratch-lose-reveal {
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

body.tp-reward-claim-page .tp-scratch-lose-reveal .result-text,
body.tp-reward-claim-page .tp-scratch-lose-reveal .result-amount {
    color: #475467;
}

body.tp-reward-claim-page .tp-scratch-error-card {
    margin-top: 12px;
}

body.tp-reward-claim-page .tp-normal-loading {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    border-radius: 18px;
    padding: 12px;
    color: #4c1d95;
    background: #f5f0ff;
}

body.tp-reward-claim-page .tp-normal-loading.is-visible {
    display: flex;
}

body.tp-reward-claim-page .tp-normal-loading strong,
body.tp-reward-claim-page .tp-normal-loading small {
    display: block;
}

body.tp-reward-claim-page .tp-normal-loading small {
    color: #6b5b95;
    font-size: 0.74rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-normal-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(91, 43, 214, 0.18);
    border-top-color: #5b2bd6;
    border-radius: 50%;
    animation: tpSpin 0.8s linear infinite;
}

body.tp-reward-claim-page .tp-normal-loader.small {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-top-color: #ffffff;
}

body.tp-reward-claim-page .tp-normal-inline-loader {
    display: none;
}

body.tp-reward-claim-page .tp-normal-error-card,
body.tp-reward-claim-page .tp-claim-state-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(239, 68, 68, 0.14);
    border-radius: 22px;
    padding: 14px;
    color: #991b1b;
    background: #fff5f5;
}

body.tp-reward-claim-page .tp-normal-error-card strong,
body.tp-reward-claim-page .tp-normal-error-card small,
body.tp-reward-claim-page .tp-claim-state-card h3,
body.tp-reward-claim-page .tp-claim-state-card p,
body.tp-reward-claim-page .tp-claim-state-card small {
    display: block;
    margin: 0;
}

body.tp-reward-claim-page .tp-normal-error-card small,
body.tp-reward-claim-page .tp-claim-state-card p,
body.tp-reward-claim-page .tp-claim-state-card small {
    margin-top: 4px;
    color: #7f1d1d;
    font-size: 0.78rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-claim-state-card {
    width: min(560px, 100%);
    margin: 0 auto 8px;
    text-align: left;
}

body.tp-reward-claim-page .tp-claim-state-claimed {
    border-color: rgba(16, 163, 127, 0.16);
    color: #047857;
    background: #effdf7;
}

body.tp-reward-claim-page .tp-claim-state-claimed .tp-claim-state-icon {
    color: #047857;
    background: #dcfce7;
}

body.tp-reward-claim-page .tp-normal-receipt-card {
    width: min(620px, 100%);
    justify-self: center;
    display: grid;
    gap: 16px;
    border: 1px solid rgba(16, 163, 127, 0.18);
    border-radius: 28px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(31, 41, 77, 0.1);
}

body.tp-reward-claim-page .tp-normal-receipt-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

body.tp-reward-claim-page .tp-normal-receipt-hero span {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #10a37f, #34d399);
    box-shadow: 0 18px 36px rgba(16, 163, 127, 0.22);
    font-size: 2rem;
}

body.tp-reward-claim-page .tp-normal-receipt-hero h2 {
    margin: 0;
    color: #121735;
    font-size: 1.4rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-normal-receipt-hero p {
    margin: 0;
    color: var(--tp-muted);
    font-weight: 800;
}

body.tp-reward-claim-page .tp-normal-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.tp-reward-claim-page .tp-normal-receipt-grid div {
    min-width: 0;
    border: 1px solid #edf0f8;
    border-radius: 18px;
    padding: 13px;
    background: #fbfcff;
}

body.tp-reward-claim-page .tp-normal-receipt-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

body.tp-reward-claim-page .tp-normal-response-html {
    display: none;
}

body.tp-reward-claim-page .tp-premium-modal-shell {
    width: 100%;
    display: grid;
    justify-items: center;
    padding: clamp(10px, 3vw, 22px);
}

body.tp-reward-claim-page .tp-premium-receipt-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(94, 39, 208, 0.14);
    background:
        radial-gradient(circle at 50% 0%, rgba(94, 39, 208, 0.1), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
    box-shadow: 0 28px 80px rgba(31, 41, 77, 0.14);
}

body.tp-reward-claim-page .tp-premium-receipt-card::before,
body.tp-reward-claim-page .tp-premium-game-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255, 185, 68, 0.5) 0 2px, transparent 3px),
        radial-gradient(circle, rgba(94, 39, 208, 0.26) 0 2px, transparent 3px);
    background-position: 12% 16%, 88% 24%;
    background-size: 70px 70px, 88px 88px;
    opacity: 0.36;
}

body.tp-reward-claim-page .tp-normal-receipt-hero .tp-indope-seal {
    width: 82px;
    height: 82px;
    padding: 10px;
    background: linear-gradient(145deg, #ffffff, #f3ecff);
    border: 1px solid rgba(94, 39, 208, 0.16);
    box-shadow: 0 18px 42px rgba(94, 39, 208, 0.18);
}

body.tp-reward-claim-page .tp-indope-seal img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

body.tp-reward-claim-page .tp-premium-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    min-height: 26px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #e9fdf5;
    color: #047857;
    border: 1px solid rgba(16, 163, 127, 0.18);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.tp-reward-claim-page .tp-premium-popup-card {
    border-color: rgba(244, 63, 94, 0.16);
    background: linear-gradient(180deg, #fff7f8, #ffffff);
    box-shadow: 0 18px 48px rgba(31, 41, 77, 0.1);
}

body.tp-reward-claim-page .tp-premium-game-popup {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 14px;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 20px;
    border: 1px solid rgba(94, 39, 208, 0.14);
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 0%, rgba(94, 39, 208, 0.1), transparent 36%),
        #ffffff;
    box-shadow: 0 24px 70px rgba(31, 41, 77, 0.14);
}

body.tp-reward-claim-page .tp-premium-game-popup.is-win {
    border-color: rgba(16, 163, 127, 0.2);
    background:
        radial-gradient(circle at 50% 0%, rgba(16, 163, 127, 0.12), transparent 36%),
        #ffffff;
}

body.tp-reward-claim-page .tp-premium-game-popup.is-loss {
    border-color: rgba(245, 158, 11, 0.22);
    background:
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.13), transparent 36%),
        #ffffff;
}

body.tp-reward-claim-page .tp-premium-game-hero {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

body.tp-reward-claim-page .tp-premium-game-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    color: #5e27d0;
    background: linear-gradient(145deg, #ffffff, #f3ecff);
    border: 1px solid rgba(94, 39, 208, 0.16);
    box-shadow: 0 18px 42px rgba(94, 39, 208, 0.16);
    font-size: 2rem;
}

body.tp-reward-claim-page .tp-premium-game-hero h2 {
    margin: 0;
    color: #121735;
    font-size: 1.25rem;
    font-weight: 900;
}

body.tp-reward-claim-page .tp-premium-game-hero p {
    margin: 0;
    color: var(--tp-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

body.tp-reward-claim-page .tp-premium-game-popup .tp-normal-receipt-grid {
    position: relative;
    z-index: 1;
}

body.tp-reward-claim-page .tp-premium-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 9999;
    width: min(420px, calc(100vw - 28px));
    transform: translateX(-50%);
    padding: 13px 16px;
    border-radius: 18px;
    border: 1px solid rgba(94, 39, 208, 0.14);
    background: #ffffff;
    color: #121735;
    box-shadow: 0 18px 52px rgba(31, 41, 77, 0.18);
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
}

body.tp-reward-claim-page .tp-premium-toast-error {
    border-color: rgba(244, 63, 94, 0.18);
    color: #b91c1c;
    background: #fff7f8;
}

body.tp-reward-claim-page .tp-premium-toast-success {
    border-color: rgba(16, 163, 127, 0.18);
    color: #047857;
    background: #effdf7;
}

@keyframes tpSpin {
    to { transform: rotate(360deg); }
}

@keyframes tpPulseSoft {
    50% { transform: scale(1.25); }
}

@keyframes tpDiceRoll {
    0% { transform: rotateX(58deg) rotateZ(-32deg) rotateY(0deg); }
    45% { transform: rotateX(238deg) rotateZ(112deg) rotateY(180deg); }
    100% { transform: rotateX(418deg) rotateZ(328deg) rotateY(360deg); }
}

@keyframes tpTossFlip {
    0% { transform: rotateX(56deg) rotateZ(-18deg) rotateY(0deg); }
    50% { transform: rotateX(76deg) rotateZ(18deg) rotateY(540deg); }
    100% { transform: rotateX(56deg) rotateZ(-18deg) rotateY(1080deg); }
}

@keyframes tpScratchPulse {
    0%, 100% { transform: translateY(0) rotateX(0deg); }
    50% { transform: translateY(-3px) rotateX(2deg); }
}

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

@media (max-width: 900px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: min(100% - 24px, 760px);
    }

    body.tp-reward-claim-page .tp-claim-hero {
        grid-template-columns: 1fr;
    }

    body.tp-reward-claim-page .tp-claim-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tp-reward-claim-page .tp-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tp-reward-claim-page .tp-claim-intelligence {
        grid-template-columns: 1fr;
    }

    body.tp-reward-claim-page .tp-dice-claim-card .dice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.tp-reward-claim-page .tp-toss-claim-card .toss-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: min(100% - 18px, 430px);
        gap: 12px;
        padding-top: 10px;
    }

    body.tp-reward-claim-page .tp-claim-appbar {
        top: 8px;
        min-height: 64px;
        border-radius: 22px;
        padding: 9px 10px;
    }

    body.tp-reward-claim-page .tp-claim-appbar .tp-brand img {
        width: 40px;
        height: 40px;
    }

    body.tp-reward-claim-page .tp-claim-appbar .tp-brand small {
        font-size: 0.7rem;
    }

    body.tp-reward-claim-page .tp-claim-hero,
    body.tp-reward-claim-page .tp-claim-body {
        padding: 14px;
    }

    body.tp-reward-claim-page .tp-claim-summary,
    body.tp-reward-claim-page .tp-stepper {
        grid-template-columns: 1fr;
    }

    body.tp-reward-claim-page .tp-summary-item {
        min-height: 88px;
    }

    body.tp-reward-claim-page .tp-stepper li {
        justify-content: flex-start;
        border-radius: 18px;
    }

    body.tp-reward-claim-page .tp-reward-details-card,
    body.tp-reward-claim-page .tp-task-checklist-card {
        padding: 14px;
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-intel-card-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-intel-card-head > .tp-status-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-reward-detail-grid {
        grid-template-columns: 1fr;
    }

    body.tp-reward-claim-page .tp-task-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-task-item > .tp-status-pill {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 48px;
    }

    body.tp-reward-claim-page .tp-normal-claim-card,
    body.tp-reward-claim-page .tp-normal-receipt-card {
        padding: 16px;
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-normal-claim-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-normal-claim-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-gate-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-gate-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-dice-claim-card {
        padding: 16px;
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-dice-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-dice-state-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-dice-stage {
        min-height: 150px;
        border-radius: 22px;
    }

    body.tp-reward-claim-page .tp-dice-preview {
        width: 106px;
        height: 106px;
        border-radius: 26px;
    }

    body.tp-reward-claim-page .tp-dice-claim-card .dice-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    body.tp-reward-claim-page .tp-dice-status-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-dice-status-strip small {
        grid-column: 1 / -1;
        padding-left: 19px;
    }

    body.tp-reward-claim-page .tp-toss-claim-card {
        padding: 16px;
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-toss-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-toss-state-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-toss-stage {
        min-height: 150px;
        border-radius: 22px;
    }

    body.tp-reward-claim-page .tp-toss-preview {
        width: 106px;
        height: 106px;
    }

    body.tp-reward-claim-page .tp-toss-claim-card .toss-grid {
        grid-template-columns: 1fr;
    }

    body.tp-reward-claim-page .tp-toss-status-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-toss-status-strip small {
        grid-column: 1 / -1;
        padding-left: 19px;
    }

    body.tp-reward-claim-page .tp-scratch-claim-card {
        padding: 16px;
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-scratch-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-scratch-state-pill {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-scratch-preview {
        min-height: 190px;
        border-radius: 22px;
    }

    body.tp-reward-claim-page .tp-scratch-voucher,
    body.tp-reward-claim-page .scratch-card,
    body.tp-reward-claim-page .scratch-result,
    body.tp-reward-claim-page #scratch-canvas {
        border-radius: 24px;
    }

    body.tp-reward-claim-page .tp-scratch-voucher img,
    body.tp-reward-claim-page .tp-scratch-logo-wrap img {
        width: 48px;
        height: 48px;
    }

    body.tp-reward-claim-page .tp-scratch-status-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-scratch-status-strip small {
        grid-column: 1 / -1;
        padding-left: 19px;
    }

    body.tp-reward-claim-page #channelsSection .channel-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page #channelsSection .channel-status-link,
    body.tp-reward-claim-page #channelsSection .channel-status {
        grid-column: 1 / -1;
        justify-self: stretch;
        width: 100%;
    }

    body.tp-reward-claim-page .tp-youtube-gate-card,
    body.tp-reward-claim-page .tp-access-code-card,
    body.tp-reward-claim-page .tp-channel-gate-card {
        padding: 14px;
        border-radius: 22px;
    }

    body.tp-reward-claim-page .tp-normal-claim-summary,
    body.tp-reward-claim-page .tp-normal-receipt-grid,
    body.tp-reward-claim-page .tp-normal-receipt-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-normal-status-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-normal-status-strip small {
        grid-column: 1 / -1;
        padding-left: 19px;
    }
}

/* Reward Claim final polish: presentation-only freeze pass. */
body.tp-reward-claim-page {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

html:has(body.tp-reward-claim-page) {
    max-width: 100vw;
    overflow-x: hidden;
}

body.tp-reward-claim-page *,
body.tp-reward-claim-page *::before,
body.tp-reward-claim-page *::after {
    box-sizing: border-box;
}

body.tp-reward-claim-page .tp-claim-screen {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
    max-width: 100vw;
    overflow-x: clip;
}

body.tp-reward-claim-page .tp-claim-card,
body.tp-reward-claim-page .tp-claim-hero,
body.tp-reward-claim-page .tp-claim-progress,
body.tp-reward-claim-page .tp-reward-details-card,
body.tp-reward-claim-page .tp-task-checklist-card,
body.tp-reward-claim-page .tp-gate-card,
body.tp-reward-claim-page .tp-normal-claim-card,
body.tp-reward-claim-page .tp-dice-claim-card,
body.tp-reward-claim-page .tp-toss-claim-card,
body.tp-reward-claim-page .tp-scratch-claim-card,
body.tp-reward-claim-page .tp-claim-state-card,
body.tp-reward-claim-page .tp-normal-receipt-card,
body.tp-reward-claim-page .tp-premium-game-popup,
body.tp-reward-claim-page .popup-content {
    min-width: 0;
    max-width: 100%;
}

body.tp-reward-claim-page .tp-btn,
body.tp-reward-claim-page .btn-referral,
body.tp-reward-claim-page .orange-btn,
body.tp-reward-claim-page .channel-status,
body.tp-reward-claim-page .channel-status-link,
body.tp-reward-claim-page .tp-status-pill,
body.tp-reward-claim-page .tp-gate-badge,
body.tp-reward-claim-page .tp-normal-claim-badge,
body.tp-reward-claim-page .tp-dice-state-pill,
body.tp-reward-claim-page .tp-toss-state-pill,
body.tp-reward-claim-page .tp-scratch-state-pill,
body.tp-reward-claim-page .tp-premium-status-badge {
    letter-spacing: 0;
    text-transform: none;
}

body.tp-reward-claim-page .tp-btn,
body.tp-reward-claim-page .btn-referral,
body.tp-reward-claim-page .orange-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 46px;
    border-radius: 16px;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-btn i,
body.tp-reward-claim-page .btn-referral i,
body.tp-reward-claim-page .orange-btn i,
body.tp-reward-claim-page .tp-gate-icon i,
body.tp-reward-claim-page .tp-task-icon i,
body.tp-reward-claim-page .tp-detail-icon i,
body.tp-reward-claim-page .tp-normal-claim-icon i,
body.tp-reward-claim-page .tp-normal-error-icon i,
body.tp-reward-claim-page .tp-claim-state-icon i {
    flex: 0 0 auto;
    font-size: 1em;
    line-height: 1;
}

body.tp-reward-claim-page button:disabled,
body.tp-reward-claim-page .tp-btn:disabled,
body.tp-reward-claim-page .btn-referral:disabled,
body.tp-reward-claim-page .orange-btn:disabled {
    cursor: not-allowed;
    opacity: 0.68;
    transform: none !important;
    box-shadow: none !important;
}

body.tp-reward-claim-page a:focus-visible,
body.tp-reward-claim-page button:focus-visible,
body.tp-reward-claim-page input:focus-visible,
body.tp-reward-claim-page .diceBox:focus-visible,
body.tp-reward-claim-page .coin-select:focus-visible {
    outline: 3px solid rgba(91, 43, 214, 0.24);
    outline-offset: 3px;
}

body.tp-reward-claim-page input,
body.tp-reward-claim-page .form-input,
body.tp-reward-claim-page .referral-link {
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.2;
    text-overflow: ellipsis;
}

body.tp-reward-claim-page input::placeholder,
body.tp-reward-claim-page .form-input::placeholder,
body.tp-reward-claim-page .referral-link::placeholder {
    color: #8a94a6;
    opacity: 1;
}

body.tp-reward-claim-page .tp-normal-input-wrap,
body.tp-reward-claim-page .tp-gate-input-wrap {
    min-width: 0;
}

body.tp-reward-claim-page .tp-normal-input-wrap i,
body.tp-reward-claim-page .tp-gate-input-wrap i {
    pointer-events: none;
}

body.tp-reward-claim-page .tp-gate-head,
body.tp-reward-claim-page .tp-normal-claim-head,
body.tp-reward-claim-page .tp-dice-head,
body.tp-reward-claim-page .tp-toss-head,
body.tp-reward-claim-page .tp-scratch-head {
    min-width: 0;
}

body.tp-reward-claim-page .tp-gate-head h3,
body.tp-reward-claim-page .tp-gate-head p,
body.tp-reward-claim-page .tp-normal-claim-head h2,
body.tp-reward-claim-page .tp-normal-claim-head p,
body.tp-reward-claim-page .tp-dice-head h2,
body.tp-reward-claim-page .tp-dice-head p,
body.tp-reward-claim-page .tp-toss-head h2,
body.tp-reward-claim-page .tp-toss-head p,
body.tp-reward-claim-page .tp-scratch-head h2,
body.tp-reward-claim-page .tp-scratch-head p {
    overflow-wrap: anywhere;
}

body.tp-reward-claim-page .tp-gate-icon,
body.tp-reward-claim-page .tp-task-icon,
body.tp-reward-claim-page .tp-detail-icon,
body.tp-reward-claim-page .channel-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 15px;
}

body.tp-reward-claim-page .channel-icon svg,
body.tp-reward-claim-page .channel-icon img {
    width: 28px;
    height: 28px;
}

body.tp-reward-claim-page .tp-channel-row,
body.tp-reward-claim-page .channel-item {
    min-width: 0;
    gap: 10px;
}

body.tp-reward-claim-page .channel-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.tp-reward-claim-page .channel-status,
body.tp-reward-claim-page .channel-status-link {
    flex: 0 0 auto;
    max-width: 100%;
}

body.tp-reward-claim-page .tp-normal-error-card,
body.tp-reward-claim-page .tp-claim-state-card {
    box-shadow: 0 16px 42px rgba(31, 41, 77, 0.08);
}

body.tp-reward-claim-page .tp-claim-state-over .tp-claim-state-icon {
    color: #92400e;
    background: #fff7d6;
}

body.tp-reward-claim-page .tp-claim-state-invalid .tp-claim-state-icon {
    color: #b91c1c;
    background: #fee2e2;
}

body.tp-reward-claim-page .tp-normal-loading,
body.tp-reward-claim-page .tp-scratch-loading,
body.tp-reward-claim-page .tp-dice-status-strip,
body.tp-reward-claim-page .tp-toss-status-strip,
body.tp-reward-claim-page .tp-scratch-status-strip,
body.tp-reward-claim-page .tp-normal-status-strip {
    min-width: 0;
    overflow: hidden;
}

body.tp-reward-claim-page #rollmessage {
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.tp-reward-claim-page .tp-premium-game-popup,
body.tp-reward-claim-page .tp-premium-receipt-card,
body.tp-reward-claim-page .tp-premium-toast {
    animation: tpRewardPopupIn 0.22s ease-out both;
}

body.tp-reward-claim-page .popup-overlay {
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

body.tp-reward-claim-page .popup-content {
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(31, 41, 77, 0.18);
}

body.tp-reward-claim-page .close-popup {
    min-width: 40px;
    min-height: 40px;
    border-radius: 14px;
}

body.tp-reward-claim-page .scratch-card-wrapper,
body.tp-reward-claim-page .scratch-card,
body.tp-reward-claim-page #scratch-canvas {
    max-width: 100%;
}

@keyframes tpRewardPopupIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.tp-reward-claim-page *,
    body.tp-reward-claim-page *::before,
    body.tp-reward-claim-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

@media (min-width: 1440px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: min(100% - 64px, 1560px);
    }
}

@media (min-width: 1800px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: min(100% - 96px, 1680px);
    }
}

@media (max-width: 430px) {
    body.tp-reward-claim-page .tp-claim-appbar .tp-brand strong {
        font-size: 1rem;
    }

    body.tp-reward-claim-page .tp-claim-actions .tp-icon-btn {
        width: 42px;
        height: 42px;
    }

    body.tp-reward-claim-page .tp-claim-hero h1 {
        font-size: clamp(1.58rem, 10vw, 2.2rem);
        line-height: 1.06;
    }

    body.tp-reward-claim-page .tp-normal-claim-head,
    body.tp-reward-claim-page .tp-dice-head,
    body.tp-reward-claim-page .tp-toss-head,
    body.tp-reward-claim-page .tp-scratch-head,
    body.tp-reward-claim-page .tp-gate-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-normal-claim-badge,
    body.tp-reward-claim-page .tp-dice-state-pill,
    body.tp-reward-claim-page .tp-toss-state-pill,
    body.tp-reward-claim-page .tp-scratch-state-pill,
    body.tp-reward-claim-page .tp-gate-badge {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 58px;
    }

    body.tp-reward-claim-page .tp-normal-status-strip,
    body.tp-reward-claim-page .tp-dice-status-strip,
    body.tp-reward-claim-page .tp-toss-status-strip,
    body.tp-reward-claim-page .tp-scratch-status-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.tp-reward-claim-page .tp-normal-status-strip small,
    body.tp-reward-claim-page .tp-dice-status-strip small,
    body.tp-reward-claim-page .tp-toss-status-strip small,
    body.tp-reward-claim-page .tp-scratch-status-strip small {
        grid-column: 1 / -1;
        padding-left: 19px;
    }

    body.tp-reward-claim-page .tp-channel-row,
    body.tp-reward-claim-page .channel-item {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    body.tp-reward-claim-page .channel-status,
    body.tp-reward-claim-page .channel-status-link {
        grid-column: 2;
        justify-self: start;
    }

    body.tp-reward-claim-page .tp-premium-modal-shell {
        padding-inline: 0;
    }
}

@media (max-width: 360px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: calc(100vw - 32px);
        max-width: 328px;
    }

    body.tp-reward-claim-page .tp-claim-appbar,
    body.tp-reward-claim-page .tp-claim-hero,
    body.tp-reward-claim-page .tp-claim-progress,
    body.tp-reward-claim-page .tp-claim-body,
    body.tp-reward-claim-page .tp-normal-claim-card,
    body.tp-reward-claim-page .tp-dice-claim-card,
    body.tp-reward-claim-page .tp-toss-claim-card,
    body.tp-reward-claim-page .tp-scratch-claim-card,
    body.tp-reward-claim-page .tp-gate-card,
    body.tp-reward-claim-page .tp-normal-receipt-card,
    body.tp-reward-claim-page .tp-premium-game-popup {
        border-radius: 20px;
        padding: 12px;
    }

    body.tp-reward-claim-page .tp-brand small {
        display: none;
    }

    body.tp-reward-claim-page .tp-claim-hero h1 {
        font-size: clamp(1.42rem, 9.4vw, 1.9rem);
        max-width: 100%;
    }

    body.tp-reward-claim-page .tp-dice-claim-card .dice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.tp-reward-claim-page .tp-reward-detail-row,
    body.tp-reward-claim-page .tp-task-item,
    body.tp-reward-claim-page .tp-normal-claim-summary div,
    body.tp-reward-claim-page .tp-normal-receipt-grid div {
        border-radius: 16px;
        padding: 10px;
    }

    body.tp-reward-claim-page .tp-btn,
    body.tp-reward-claim-page .btn-referral,
    body.tp-reward-claim-page .orange-btn {
        min-height: 44px;
        padding-inline: 12px;
        font-size: 0.82rem;
    }
}

.skeleton-wrapper {
    display: grid;
    gap: 10px;
}

.skeleton {
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(100,116,139,0.12), rgba(100,116,139,0.26), rgba(100,116,139,0.12));
    background-size: 200% 100%;
    animation: tpShimmer 1.2s linear infinite;
}

.skeleton.short {
    width: 62%;
}

@keyframes tpShimmer {
    to {
        background-position: -200% 0;
    }
}

.tp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.tp-detail-grid div {
    min-width: 0;
    border-radius: 16px;
    padding: 11px;
    background: var(--tp-surface-soft);
}

.tp-detail-grid strong {
    display: block;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.tp-code-block,
.tp-doc-card pre,
.tp-secret-box code,
.tp-api-url-box {
    display: block;
    overflow-x: auto;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 14px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.84rem;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.tp-doc-grid,
.tp-product-grid,
.tp-secret-grid {
    display: grid;
    gap: 14px;
}

.tp-doc-grid,
.tp-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.tp-doc-card,
.tp-secret-box {
    border: 1px solid var(--tp-border);
    border-radius: 22px;
    padding: 16px;
    background: var(--tp-surface);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.tp-doc-card h2,
.tp-secret-box strong {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 900;
}

.tp-doc-card p,
.tp-secret-box span {
    color: var(--tp-muted);
    font-weight: 700;
    line-height: 1.5;
}

.tp-switch-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    padding: 14px;
    background: var(--tp-surface-soft);
}

.tp-switch-card input[type="checkbox"] {
    width: 22px;
    height: 22px;
    accent-color: var(--tp-primary);
}

.payment-item,
.tp-batch-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 12px;
    background: var(--tp-surface-soft);
}

.payment-status {
    min-width: 34px;
    display: flex;
    justify-content: flex-end;
}

.tp-service-grid,
.tp-game-grid,
.tp-legal-grid,
.tp-manager-tabs,
.tp-number-grid {
    display: grid;
    gap: 14px;
}

.tp-service-grid,
.tp-game-grid,
.tp-legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tp-manager-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.tp-manager-tabs button,
.m-tab {
    min-height: 64px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    color: var(--tp-muted);
    background: var(--tp-surface);
    font-weight: 900;
    cursor: pointer;
}

.tp-manager-tabs button.active,
.m-tab.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 14px 28px rgba(16, 87, 255, 0.2);
}

.m-pane {
    display: none;
}

.m-pane.active {
    display: grid;
    gap: 14px;
}

.m-card,
.m-danger-card,
.tp-service-card,
.tp-game-card,
.tp-legal-card,
.tp-code-card {
    border: 1px solid var(--tp-border);
    border-radius: 24px;
    padding: 18px;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.m-card-title,
.tp-card-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--tp-text);
    font-size: 1rem;
    font-weight: 900;
}

.m-bot-banner {
    overflow: hidden;
    border-radius: 30px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent),
        linear-gradient(145deg, #06152f 0%, #1057ff 56%, #12d6c3 100%);
    box-shadow: var(--tp-shadow);
}

.m-bot-banner-row,
.m-bot-actions,
.m-fund-row,
.m-history-item,
.m-lb-item,
.m-toggle-row,
.m-ch-row,
.history-item,
.view-action-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.m-bot-avatar,
.tp-service-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    border-radius: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.m-bot-info {
    min-width: 0;
    flex: 1;
}

.m-bot-name,
.m-bot-stat-val,
.m-history-note,
.m-lb-name,
.item-title,
.code-display {
    font-weight: 900;
}

.m-bot-user,
.m-bot-created,
.m-history-date,
.m-lb-id,
.m-toggle-desc,
.meta-info {
    color: var(--tp-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.m-bot-type-badge,
.m-bot-status,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 10px;
    color: #047857;
    background: rgba(19, 185, 129, 0.16);
    font-size: 0.72rem;
    font-weight: 900;
}

.m-bot-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0 12px;
}

.m-bot-stat {
    border-radius: 18px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.m-bot-stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    font-weight: 800;
}

.m-bot-status-row,
.m-history-item,
.m-lb-item,
.history-item {
    justify-content: space-between;
}

.m-bot-action-btn,
.m-fund-btn,
.m-btn,
.btn-primary,
.btn-secondary,
.m-ch-add,
.view-btn,
.edit-btn,
.delete-btn,
.copy-btn,
.view-action-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--tp-border);
    border-radius: 15px;
    padding: 10px 13px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    font-weight: 900;
    cursor: pointer;
}

.m-btn-primary,
.m-fund-btn,
.btn-primary,
.tp-service-card.primary,
.tp-game-card.primary {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.m-btn-danger,
.m-danger-card .m-card-title,
.delete-btn {
    color: var(--tp-red);
}

.m-fund-input,
.m-field input,
.input-enhanced,
.form-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    padding: 0 15px;
    color: var(--tp-text);
    background: var(--tp-surface-soft);
    outline: none;
}

textarea.form-input {
    min-height: 150px;
    padding-top: 14px;
    resize: vertical;
}

.m-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.m-field label {
    font-weight: 900;
}

.m-wallet-pill,
.selection-hint,
.view-note {
    border-radius: 16px;
    padding: 11px 13px;
    color: #1d4ed8;
    background: rgba(16, 87, 255, 0.1);
    font-weight: 800;
}

.m-history-item,
.m-lb-item,
.history-item,
.result-card,
.view-note,
.view-stats-bar {
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    padding: 12px;
    background: var(--tp-surface-soft);
}

.m-history-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.m-history-icon,
.m-lb-rank {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    font-weight: 900;
}

.m-history-icon.debit,
.m-history-amount.debit {
    color: var(--tp-red);
}

.m-history-icon.credit,
.m-history-amount.credit {
    color: var(--tp-green);
}

.m-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    border-radius: 20px;
    padding: 24px;
    color: var(--tp-muted);
    background: var(--tp-surface-soft);
    font-weight: 800;
}

.toggle-container {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.toggle-option {
    display: block;
    cursor: pointer;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
}

.toggle-label {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    background: var(--tp-surface-soft);
    font-weight: 900;
}

.toggle-option input:checked + .toggle-label {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.status-message,
.result-box,
.history-content-wrapper,
.view-numbers-grid {
    display: grid;
    gap: 10px;
}

.history-content-wrapper {
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.history-title {
    margin: 0;
}

.num-tag,
.view-filter-tab {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(16, 87, 255, 0.1);
    color: var(--tp-primary);
    font-weight: 900;
}

.result-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
}

.view-modal-box {
    width: min(760px, 100%);
    max-height: min(820px, 92vh);
    overflow: auto;
    border: 1px solid var(--tp-border);
    border-radius: 26px;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.view-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.view-numbers-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.view-empty-state {
    display: none;
    color: var(--tp-muted);
    text-align: center;
    font-weight: 800;
}

.tp-widget-shell {
    overflow: hidden;
    border: 1px solid var(--tp-border);
    border-radius: 28px;
    padding: 14px;
    background: var(--tp-surface);
    box-shadow: var(--tp-shadow);
}

.terms-content {
    display: grid;
    gap: 14px;
}

.terms-content h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 900;
}

.terms-content p {
    margin: 0;
    color: var(--tp-muted);
    font-weight: 700;
    line-height: 1.65;
}

.loader,
.btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(16, 87, 255, 0.22);
    border-top-color: var(--tp-primary);
    border-radius: 999px;
    animation: tpSpin 0.9s linear infinite;
}

@keyframes tpSpin {
    to {
        transform: rotate(360deg);
    }
}

.tp-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    border-radius: 22px;
    padding: 28px;
    color: var(--tp-muted);
    background: var(--tp-surface-soft);
    text-align: center;
}

.tp-empty-state img {
    width: 96px;
    max-width: 44%;
}

.tp-empty-state strong {
    color: var(--tp-text);
    font-size: 1.1rem;
    font-weight: 900;
}

.tp-pay-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 17, 31, 0.68);
    backdrop-filter: blur(16px);
}

.tp-pay-confirm-modal.active {
    display: flex;
}

.tp-pay-confirm-box {
    width: min(460px, 100%);
    border-radius: 26px;
    padding: 20px;
}

.tp-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 40;
    display: none;
    width: min(430px, calc(100% - 22px));
    transform: translateX(-50%);
    border: 1px solid var(--tp-border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 8px;
}

[data-theme="dark"] .tp-bottom-nav {
    background: rgba(16, 28, 45, 0.92);
}

.tp-bottom-nav a {
    flex: 1;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 18px;
    color: var(--tp-muted);
    font-size: 0.68rem;
    font-weight: 900;
}

.tp-bottom-nav a.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

@media (max-width: 980px) {
    .tp-page-hero,
    .tp-hero-card,
    .tp-grid,
    .tp-grid.two,
    .tp-grid.reverse {
        grid-template-columns: 1fr;
    }

    .tp-action-grid,
    .tp-lifafa-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-doc-grid,
    .tp-product-grid,
    .tp-secret-grid,
    .tp-filter-bar {
        grid-template-columns: 1fr;
    }

    .tp-filter-pills {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .tp-money-screen {
        width: 100vw;
        max-width: 100vw;
        padding: 14px 12px 124px;
    }

    .tp-appbar,
    .tp-money-appbar {
        position: sticky;
        top: 0;
        z-index: 20;
        margin: 0 -12px 8px;
        padding: 10px 12px 12px;
        background: linear-gradient(180deg, var(--tp-bg) 78%, rgba(244, 247, 251, 0));
    }

    [data-theme="dark"] .tp-appbar {
        background: linear-gradient(180deg, var(--tp-bg) 78%, rgba(8, 17, 31, 0));
    }

    .tp-brand img {
        width: 40px;
        height: 40px;
    }

    .tp-brand small {
        display: none;
    }

    .tp-page-hero,
    .tp-hero-card {
        width: 100%;
        max-width: calc(100vw - 24px);
        grid-template-columns: 1fr;
        border-radius: 26px;
        padding: 18px;
    }

    .tp-hero-balance {
        min-width: 0;
    }

    .tp-money-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 7px;
    }

    .tp-money-nav a {
        min-height: 58px;
        border-radius: 17px;
        font-size: 0.62rem;
    }

    .tp-wallet-card {
        min-height: 300px;
        border-radius: 30px;
        padding: 22px;
    }

    .tp-wallet-content {
        min-height: 254px;
    }

    .tp-card-bottom,
    .tp-section-title,
    .tp-history-card-head {
        align-items: flex-start;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .tp-card-bottom {
        flex-direction: column;
    }

    .tp-card-number,
    .tp-history-amount {
        text-align: left;
    }

    .tp-action-grid,
    .tp-stat-grid,
    .tp-detail-grid,
    .tp-qr-panel,
    .tp-lifafa-type-grid,
    .tp-toggle-grid,
    .tp-reward-grid,
    .tp-search-row,
    .tp-doc-grid,
    .tp-product-grid,
    .tp-secret-grid,
    .tp-service-grid,
    .tp-game-grid,
    .tp-legal-grid,
    .tp-manager-tabs,
    .m-bot-stats,
    .toggle-container {
        grid-template-columns: 1fr;
    }

    .tp-lifafa-orb {
        width: 96px;
        height: 96px;
        border-radius: 28px;
    }

    .tp-lifafa-orb i {
        font-size: 2.6rem;
    }

    .tp-card-actions {
        flex-direction: column;
    }

    .tp-panel,
    .tp-form-shell {
        padding: 16px;
        border-radius: 24px;
    }

    .tp-bottom-nav {
        display: flex;
        left: 13px;
        right: 13px;
        width: auto;
        transform: none;
    }

    .tp-bottom-nav a {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.62rem;
    }

    .tp-bottom-nav a span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* IndoPe DS-1 Component Library
   Opt-in primitives for app-like user modules. These classes do not change
   backend behavior and are intended for fresh page rebuilds. */
:root {
    --tp-ds-bg: #f6f8fc;
    --tp-ds-surface: #ffffff;
    --tp-ds-surface-soft: #f1f5ff;
    --tp-ds-ink: #0f172a;
    --tp-ds-muted: #64748b;
    --tp-ds-border: rgba(15, 23, 42, .1);
    --tp-ds-primary: #5821ff;
    --tp-ds-primary-2: #1d7cff;
    --tp-ds-success: #10b981;
    --tp-ds-warning: #f59e0b;
    --tp-ds-danger: #ef4444;
    --tp-ds-sidebar: #06152e;
    --tp-ds-radius: 18px;
    --tp-ds-radius-sm: 12px;
    --tp-ds-shadow: 0 18px 45px rgba(15, 23, 42, .1);
    --tp-ds-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tp-ds-app {
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    color: var(--tp-ds-ink);
    background: var(--tp-ds-bg);
    font-family: var(--tp-ds-font);
}

.tp-ds-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.tp-ds-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 18px 14px;
    color: #fff;
    background: linear-gradient(180deg, #071936, var(--tp-ds-sidebar));
}

.tp-ds-sidebar a,
.tp-ds-bottom-nav a {
    color: inherit;
    text-decoration: none;
}

.tp-ds-side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
    font-weight: 700;
}

.tp-ds-side-link.is-active,
.tp-ds-side-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-ds-primary), var(--tp-ds-primary-2));
}

.tp-ds-main {
    min-width: 0;
    padding: 18px;
}

.tp-ds-appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 62px;
    padding: 12px 16px;
    background: rgba(246, 248, 252, .92);
    border-bottom: 1px solid var(--tp-ds-border);
    backdrop-filter: blur(16px);
}

.tp-ds-container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 18px 0 96px;
}

.tp-ds-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}

.tp-ds-grid--dashboard {
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .85fr);
    align-items: start;
}

.tp-ds-stack {
    display: grid;
    gap: 14px;
}

.tp-ds-card {
    min-width: 0;
    border: 1px solid var(--tp-ds-border);
    border-radius: var(--tp-ds-radius);
    background: var(--tp-ds-surface);
    box-shadow: var(--tp-ds-shadow);
}

.tp-ds-card-pad {
    padding: 18px;
}

.tp-ds-balance-card {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #111c72, var(--tp-ds-primary) 58%, #7c2cff);
}

.tp-ds-balance-card::after {
    content: "";
    position: absolute;
    right: -54px;
    top: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
}

.tp-ds-balance-label,
.tp-ds-kicker {
    margin: 0;
    color: inherit;
    font-size: .78rem;
    font-weight: 800;
    opacity: .78;
}

.tp-ds-balance-amount {
    margin: 6px 0 0;
    font-size: clamp(2rem, 3.1vw, 3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
}

.tp-ds-form-card,
.tp-ds-summary-card,
.tp-ds-history-card,
.tp-ds-receipt-card,
.tp-ds-empty-card {
    padding: 18px;
}

.tp-ds-summary-card {
    position: sticky;
    top: 84px;
}

.tp-ds-empty-card {
    display: grid;
    place-items: center;
    min-height: 180px;
    color: var(--tp-ds-muted);
    text-align: center;
    background: linear-gradient(180deg, #fff, #f8fbff);
}

.tp-ds-title {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.tp-ds-subtitle {
    margin: 5px 0 0;
    color: var(--tp-ds-muted);
    font-size: .88rem;
    line-height: 1.5;
}

.tp-ds-field {
    display: grid;
    gap: 7px;
    margin: 0 0 14px;
}

.tp-ds-label {
    color: var(--tp-ds-ink);
    font-size: .8rem;
    font-weight: 800;
}

.tp-ds-input,
.tp-ds-select,
.tp-ds-textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--tp-ds-border);
    border-radius: 13px;
    padding: 0 13px;
    color: var(--tp-ds-ink);
    background: #fff;
    outline: 0;
    font: inherit;
    font-size: .92rem;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tp-ds-textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

.tp-ds-input:focus,
.tp-ds-select:focus,
.tp-ds-textarea:focus {
    border-color: rgba(88, 33, 255, .58);
    box-shadow: 0 0 0 4px rgba(88, 33, 255, .11);
}

.tp-ds-input.is-invalid,
.tp-ds-select.is-invalid,
.tp-ds-textarea.is-invalid {
    border-color: rgba(239, 68, 68, .72);
    background: #fff7f7;
}

.tp-ds-inline-error {
    display: none;
    color: var(--tp-ds-danger);
    font-size: .78rem;
    font-weight: 700;
}

.tp-ds-inline-error.is-visible,
.is-invalid + .tp-ds-inline-error {
    display: block;
}

.tp-ds-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border: 0;
    border-radius: 13px;
    padding: 0 16px;
    color: var(--tp-ds-ink);
    background: #eef2ff;
    font: inherit;
    font-size: .88rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.tp-ds-btn:hover {
    transform: translateY(-1px);
}

.tp-ds-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-ds-primary), var(--tp-ds-primary-2));
    box-shadow: 0 12px 24px rgba(88, 33, 255, .22);
}

.tp-ds-btn--ghost {
    color: var(--tp-ds-primary);
    background: #f3f0ff;
}

.tp-ds-btn--danger {
    color: #fff;
    background: var(--tp-ds-danger);
}

.tp-ds-btn:disabled,
.tp-ds-btn.is-disabled,
.tp-ds-btn.is-loading {
    pointer-events: none;
    opacity: .68;
    transform: none;
}

.tp-ds-btn.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: tpDsSpin .75s linear infinite;
}

.tp-ds-amount-chips,
.tp-ds-chip-row,
.tp-ds-filterbar,
.tp-ds-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp-ds-chip,
.tp-ds-filter,
.tp-ds-tab {
    min-height: 36px;
    border: 1px solid var(--tp-ds-border);
    border-radius: 999px;
    padding: 0 13px;
    color: var(--tp-ds-ink);
    background: #fff;
    font: inherit;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

.tp-ds-chip.is-selected,
.tp-ds-filter.is-active,
.tp-ds-tab.is-active {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--tp-ds-primary), var(--tp-ds-primary-2));
}

.tp-ds-segment {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--tp-ds-border);
    border-radius: 15px;
    background: #eef2ff;
}

.tp-ds-segment button {
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    color: var(--tp-ds-muted);
    background: transparent;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
}

.tp-ds-segment button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-ds-primary), var(--tp-ds-primary-2));
    box-shadow: 0 10px 22px rgba(88, 33, 255, .2);
}

.tp-ds-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    color: var(--tp-ds-ink);
    font-size: .84rem;
    font-weight: 800;
    cursor: pointer;
}

.tp-ds-toggle input {
    width: 50px;
    height: 28px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: #dbe4f0;
    cursor: pointer;
    transition: background .2s ease;
}

.tp-ds-toggle input::before {
    content: "";
    display: block;
    width: 22px;
    height: 22px;
    margin: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}

.tp-ds-toggle input:checked {
    background: linear-gradient(135deg, var(--tp-ds-success), #22c55e);
}

.tp-ds-toggle input:checked::before {
    transform: translateX(22px);
}

.tp-ds-alert {
    display: flex;
    gap: 10px;
    border-radius: 14px;
    padding: 12px;
    font-size: .86rem;
    font-weight: 700;
}

.tp-ds-alert--success {
    color: #047857;
    background: #ecfdf5;
}

.tp-ds-alert--warning {
    color: #92400e;
    background: #fffbeb;
}

.tp-ds-alert--error {
    color: #b91c1c;
    background: #fef2f2;
}

.tp-ds-toast-host {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}

.tp-ds-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--tp-ds-border);
    border-radius: 16px;
    padding: 13px 14px;
    color: var(--tp-ds-ink);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
    animation: tpDsToastIn .2s ease both;
}

.tp-ds-toast::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tp-ds-primary);
}

.tp-ds-toast--success::before {
    background: var(--tp-ds-success);
}

.tp-ds-toast--error::before {
    background: var(--tp-ds-danger);
}

.tp-ds-toast--warning::before {
    background: var(--tp-ds-warning);
}

.tp-status-message-host {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

.tp-status-message {
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .18s ease, transform .18s ease;
    font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tp-status-message.is-open {
    opacity: 1;
    transform: translateY(0);
}

.tp-status-message--modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(15, 23, 42, .42);
}

.tp-status-message--toast {
    position: fixed;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    width: min(380px, calc(100vw - 32px));
}

.tp-status-message-card {
    position: relative;
    width: min(430px, 100%);
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(20, 32, 51, .11);
    border-radius: 18px;
    color: #142033;
    background: #fff;
    box-shadow: 0 24px 62px rgba(15, 23, 42, .22);
}

.tp-status-message--toast .tp-status-message-card {
    width: 100%;
    padding: 14px 42px 14px 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
}

.tp-status-message-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.tp-status-message-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #175cd3;
    background: #eef4ff;
}

.tp-status-message--success .tp-status-message-icon {
    color: #067647;
    background: #dcfae6;
}

.tp-status-message--error .tp-status-message-icon {
    color: #b42318;
    background: #fee4e2;
}

.tp-status-message--warning .tp-status-message-icon {
    color: #b54708;
    background: #fef0c7;
}

.tp-status-message--pending .tp-status-message-icon {
    color: #175cd3;
    background: #eef4ff;
}

.tp-status-message-head strong {
    display: block;
    color: #101828;
    font-size: .98rem;
    line-height: 1.25;
    font-weight: 900;
}

.tp-status-message-head small {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tp-status-message p {
    margin: 0;
    color: #344054;
    font-size: .86rem;
    line-height: 1.55;
    font-weight: 650;
}

.tp-status-message-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tp-status-message-meta div,
.tp-status-message-next {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #f8fafc;
}

.tp-status-message-meta span,
.tp-status-message-next span {
    display: block;
    color: #667085;
    font-size: .6rem;
    font-weight: 900;
    text-transform: uppercase;
}

.tp-status-message-meta strong,
.tp-status-message-next strong {
    display: block;
    margin-top: 4px;
    color: #101828;
    font-size: .77rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.tp-status-message footer {
    color: #667085;
    font-size: .72rem;
    line-height: 1.45;
    font-weight: 650;
}

.tp-status-message-primary {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #175cd3, #10a37f);
    font-weight: 900;
    cursor: pointer;
}

.tp-status-message-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #e4e7ec;
    border-radius: 10px;
    color: #475467;
    background: #fff;
    cursor: pointer;
}

.tp-receipt-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 0 0 12px;
    margin: 0 0 12px;
    border-bottom: 1px solid #e4e7ec;
}

.tp-receipt-brand > span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #eef4ff;
}

.tp-receipt-brand img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.tp-receipt-brand div {
    min-width: 0;
}

.tp-receipt-brand strong {
    display: block;
    color: #101828;
    font-size: .95rem;
    line-height: 1.15;
    font-weight: 950;
}

.tp-receipt-brand small {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: .66rem;
    line-height: 1.2;
    font-weight: 850;
    text-transform: uppercase;
}

.tp-receipt-support {
    display: grid;
    gap: 3px;
    margin-top: 11px;
    padding: 11px;
    border: 1px dashed #d8e1ef;
    border-radius: 12px;
    color: #667085;
    background: #fbfcff;
    font-size: .68rem;
    line-height: 1.42;
    font-weight: 700;
    text-align: center;
}

.tp-receipt-support strong {
    color: #101828;
    font-size: .72rem;
}

.tp-receipt-polish-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.tp-receipt-polish-actions button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #c7d7fe;
    border-radius: 12px;
    color: #155eef;
    background: #fff;
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
}

.tp-receipt-polish-actions button:last-child {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #155eef, #10a37f);
}

@media print {
    .tp-receipt-polish-actions,
    .txn-receipt-actions,
    [data-receipt-share],
    [data-receipt-download],
    [data-tp-receipt-share],
    [data-tp-receipt-download] {
        display: none !important;
    }
}

@media (max-width: 430px) {
    .tp-status-message--toast {
        left: 12px;
        right: 12px;
        width: auto;
    }

    .tp-status-message--modal {
        align-items: end;
        padding: 10px;
    }

    .tp-status-message-card {
        border-radius: 16px;
    }

    .tp-status-message-meta {
        grid-template-columns: 1fr;
    }
}

.tp-ds-skeleton {
    position: relative;
    overflow: hidden;
    color: transparent;
    background: #e9eef7;
}

.tp-ds-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
    animation: tpDsShimmer 1.25s infinite;
}

.tp-ds-success-pulse {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: var(--tp-ds-success);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, .12);
    animation: tpDsPulse 1.4s ease infinite;
}

.tp-ds-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(8px);
}

.tp-ds-overlay.is-open {
    display: block;
}

.tp-ds-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: min(430px, 100vw);
    height: 100dvh;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -22px 0 50px rgba(15, 23, 42, .18);
    transform: translateX(104%);
    transition: transform .24s ease;
}

.tp-ds-drawer.is-open {
    transform: translateX(0);
}

.tp-ds-bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    max-height: 92dvh;
    padding: 18px;
    overflow-y: auto;
    border-radius: 24px 24px 0 0;
    background: #fff;
    box-shadow: 0 -18px 45px rgba(15, 23, 42, .18);
    transform: translateY(104%);
    transition: transform .24s ease;
}

.tp-ds-bottom-sheet.is-open {
    transform: translateY(0);
}

.tp-ds-mobile-receipt {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
}

.tp-ds-mobile-receipt.is-open {
    display: block;
}

.tp-ds-ledger {
    display: grid;
    gap: 8px;
}

.tp-ds-ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 11px 0;
    border-bottom: 1px solid var(--tp-ds-border);
}

.tp-ds-ledger-row:last-child {
    border-bottom: 0;
}

.tp-ds-ledger-title {
    margin: 0;
    color: var(--tp-ds-ink);
    font-size: .88rem;
    font-weight: 800;
}

.tp-ds-ledger-meta {
    margin: 3px 0 0;
    color: var(--tp-ds-muted);
    font-size: .76rem;
    font-weight: 700;
}

.tp-ds-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tp-ds-receipt-item {
    border: 1px solid var(--tp-ds-border);
    border-radius: 13px;
    padding: 11px;
    background: #f8fbff;
}

.tp-ds-receipt-item span {
    display: block;
    color: var(--tp-ds-muted);
    font-size: .72rem;
    font-weight: 800;
}

.tp-ds-receipt-item strong {
    display: block;
    margin-top: 4px;
    color: var(--tp-ds-ink);
    font-size: .88rem;
    overflow-wrap: anywhere;
}

.tp-ds-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--tp-ds-border);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.tp-ds-bottom-link {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 46px;
    border-radius: 14px;
    color: var(--tp-ds-muted);
    font-size: .68rem;
    font-weight: 800;
}

.tp-ds-bottom-link.is-active {
    color: var(--tp-ds-primary);
    background: #f2efff;
}

@keyframes tpDsSpin {
    to { transform: rotate(360deg); }
}

@keyframes tpDsToastIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tpDsShimmer {
    100% { transform: translateX(100%); }
}

@keyframes tpDsPulse {
    50% { box-shadow: 0 0 0 16px rgba(16, 185, 129, .05); }
}

@media (max-width: 900px) {
    .tp-ds-shell {
        display: block;
    }

    .tp-ds-sidebar {
        display: none;
    }

    .tp-ds-main {
        padding: 0 14px;
    }

    .tp-ds-container {
        padding-top: 14px;
    }

    .tp-ds-grid--dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-ds-summary-card {
        position: static;
    }

    .tp-ds-bottom-nav {
        display: grid;
    }
}

@media (max-width: 520px) {
    .tp-ds-main {
        padding: 0 12px;
    }

    .tp-ds-card-pad,
    .tp-ds-form-card,
    .tp-ds-summary-card,
    .tp-ds-history-card,
    .tp-ds-receipt-card,
    .tp-ds-empty-card {
        padding: 15px;
    }

    .tp-ds-balance-amount {
        font-size: 2rem;
    }

    .tp-ds-receipt-grid,
    .tp-ds-ledger-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-ds-toast-host {
        right: 14px;
        bottom: calc(74px + env(safe-area-inset-bottom));
    }

    .tp-ds-btn {
        width: 100%;
    }
}

/* TruePe shared foundation: canonical tokens and reusable primitives. */
:root,
html.tp-truepe-ui {
    --truepe-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --truepe-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --truepe-canvas: #f8f9ff;
    --truepe-surface: #ffffff;
    --truepe-surface-soft: #eff4ff;
    --truepe-surface-raised: #e5eeff;
    --truepe-text: #0b1c30;
    --truepe-muted: #464555;
    --truepe-primary: #3525cd;
    --truepe-primary-container: #4f46e5;
    --truepe-primary-soft: #eef2ff;
    --truepe-on-primary: #ffffff;
    --truepe-success: #005338;
    --truepe-success-soft: #d1fae5;
    --truepe-warning: #92400e;
    --truepe-warning-soft: #fff7ed;
    --truepe-danger: #ba1a1a;
    --truepe-danger-soft: #ffdad6;
    --truepe-info: #1557d6;
    --truepe-info-soft: #eaf2ff;
    --truepe-border: #e2e8f0;
    --truepe-border-strong: #c7c4d8;
    --truepe-focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.2);
    --truepe-shadow-sm: 0 4px 14px rgba(11, 28, 48, 0.06);
    --truepe-shadow-md: 0 8px 24px rgba(11, 28, 48, 0.08);
    --truepe-radius-sm: 8px;
    --truepe-radius-control: 12px;
    --truepe-radius-card: 16px;
    --truepe-radius-pill: 999px;
    --truepe-control-height: 44px;
    --truepe-space-1: 4px;
    --truepe-space-2: 8px;
    --truepe-space-3: 16px;
    --truepe-space-4: 24px;
    --truepe-space-5: 32px;
    --truepe-space-6: 48px;
    --truepe-space-7: 64px;
    --truepe-content-max: 1440px;
    --truepe-sidebar-width: 280px;

    /* Compatibility aliases retain existing page behavior from one source. */
    --indope-ink: var(--truepe-text);
    --indope-muted: var(--truepe-muted);
    --indope-blue: var(--truepe-primary);
    --indope-cyan: var(--truepe-primary-container);
    --indope-jade: var(--truepe-success);
    --indope-gold: var(--truepe-warning);
    --indope-coral: var(--truepe-danger);
    --indope-gradient: linear-gradient(135deg, var(--truepe-primary), var(--truepe-primary-container));
    --ip-canvas: var(--truepe-canvas);
    --ip-surface: var(--truepe-surface);
    --ip-text: var(--truepe-text);
    --ip-ink: var(--truepe-text);
    --ip-muted: var(--truepe-muted);
    --ip-line: var(--truepe-border);
    --ip-blue-50: var(--truepe-primary-soft);
    --ip-blue-500: var(--truepe-primary-container);
    --ip-blue-600: var(--truepe-primary);
    --ip-green-50: var(--truepe-success-soft);
    --ip-green-600: var(--truepe-success);
    --tp-bg: var(--truepe-canvas);
    --tp-surface: var(--truepe-surface);
    --tp-surface-soft: var(--truepe-surface-soft);
    --tp-text: var(--truepe-text);
    --tp-muted: var(--truepe-muted);
    --tp-border: var(--truepe-border);
    --tp-primary: var(--truepe-primary);
    --tp-primary-2: var(--truepe-primary-container);
    --tp-green: var(--truepe-success);
    --tp-yellow: var(--truepe-warning);
    --tp-red: var(--truepe-danger);
    --tp-violet: var(--truepe-primary-container);
    --tp-focus-ring: var(--truepe-focus-ring);
    --tp-card-shadow: var(--truepe-shadow-md);
    --tp-card-shadow-hover: var(--truepe-shadow-md);
    --tp-control-height: var(--truepe-control-height);
    --tp-card-radius: var(--truepe-radius-card);
    --tp-premium-radius: var(--truepe-radius-card);
    --tp-premium-radius-sm: var(--truepe-radius-control);
}

html.tp-truepe-ui body:not(.tp-admin-control),
html.tp-truepe-ui body:not(.tp-admin-control) button,
html.tp-truepe-ui body:not(.tp-admin-control) input,
html.tp-truepe-ui body:not(.tp-admin-control) select,
html.tp-truepe-ui body:not(.tp-admin-control) textarea {
    font-family: var(--truepe-font-sans) !important;
    letter-spacing: 0;
}

html.tp-truepe-ui body:not(.tp-admin-control) {
    color: var(--truepe-text);
    background: var(--truepe-canvas);
}

html.tp-truepe-ui code,
html.tp-truepe-ui pre,
.truepe-mono {
    font-family: var(--truepe-font-mono) !important;
}

.truepe-card,
.truepe-feature-card,
.truepe-metric-card,
.truepe-action-card,
.truepe-empty-state {
    min-width: 0;
    border: 1px solid var(--truepe-border);
    border-radius: var(--truepe-radius-card);
    background: var(--truepe-surface);
    box-shadow: var(--truepe-shadow-sm);
}

.truepe-card,
.truepe-feature-card,
.truepe-empty-state {
    padding: var(--truepe-space-4);
}

.truepe-metric-card,
.truepe-action-card {
    padding: var(--truepe-space-3);
}

.truepe-feature-card {
    color: var(--truepe-on-primary);
    border-color: rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, var(--truepe-primary-container), var(--truepe-primary));
    box-shadow: var(--truepe-shadow-md), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.truepe-action-card {
    display: flex;
    align-items: center;
    gap: var(--truepe-space-3);
    min-height: 76px;
}

.truepe-button,
.truepe-icon-button,
.tp-btn,
.ip-btn {
    min-height: var(--truepe-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--truepe-space-2);
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--truepe-radius-control);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.truepe-button--primary,
.tp-btn.primary,
.ip-btn-primary {
    color: var(--truepe-on-primary);
    border-color: var(--truepe-primary);
    background: var(--truepe-primary);
}

.truepe-button--secondary,
.tp-secondary-btn {
    color: var(--truepe-text);
    border-color: var(--truepe-border);
    background: var(--truepe-surface);
}

.truepe-button--ghost {
    color: var(--truepe-primary);
    border-color: transparent;
    background: transparent;
}

.truepe-button--danger {
    color: var(--truepe-on-primary);
    border-color: var(--truepe-danger);
    background: var(--truepe-danger);
}

.truepe-button:focus-visible,
.truepe-icon-button:focus-visible,
.truepe-field:focus-visible,
.truepe-sidebar a:focus-visible,
.truepe-mobile-nav a:focus-visible,
.truepe-mobile-nav button:focus-visible {
    outline: 0;
    box-shadow: var(--truepe-focus-ring);
}

.truepe-button:disabled,
.truepe-button[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}

.truepe-icon-button {
    width: var(--truepe-control-height);
    padding: 0;
}

.truepe-form,
.tp-form {
    display: grid;
    gap: var(--truepe-space-3);
}

.truepe-field-group,
.truepe-form label,
.tp-form label {
    min-width: 0;
    display: grid;
    gap: var(--truepe-space-2);
    color: var(--truepe-text);
    font-size: 14px;
    font-weight: 600;
}

.truepe-field,
.truepe-form input:not([type="checkbox"]):not([type="radio"]),
.truepe-form select,
.truepe-form textarea,
.tp-form input:not([type="checkbox"]):not([type="radio"]),
.tp-form select,
.tp-form textarea {
    width: 100%;
    min-width: 0;
    min-height: var(--truepe-control-height);
    padding: 10px 12px;
    border: 1px solid var(--truepe-border);
    border-radius: var(--truepe-radius-control);
    color: var(--truepe-text);
    background: var(--truepe-surface);
}

.truepe-field:focus,
.truepe-form input:focus,
.truepe-form select:focus,
.truepe-form textarea:focus,
.tp-form input:focus,
.tp-form select:focus,
.tp-form textarea:focus {
    outline: 0;
    border-color: var(--truepe-primary-container);
    box-shadow: var(--truepe-focus-ring);
}

.truepe-field-help,
.truepe-field-error {
    margin: 0;
    color: var(--truepe-muted);
    font-size: 12px;
    line-height: 1.4;
}

.truepe-field-error {
    color: var(--truepe-danger);
}

.truepe-status,
.tp-status-chip,
.legacy-status,
.merchant-status {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    padding: 4px 10px;
    border: 1px solid transparent;
    border-radius: var(--truepe-radius-pill);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.truepe-status--success,
.legacy-status-completed,
.legacy-status-success,
.legacy-status-approved {
    color: var(--truepe-success);
    background: var(--truepe-success-soft);
}

.truepe-status--pending,
.legacy-status-pending,
.legacy-status-requested,
.tp-status-pending,
.tp-status-processing {
    color: var(--truepe-warning);
    background: var(--truepe-warning-soft);
}

.truepe-status--error,
.legacy-status-failed,
.legacy-status-rejected,
.tp-status-failed,
.tp-status-rejected {
    color: var(--truepe-danger);
    background: var(--truepe-danger-soft);
}

.truepe-status--neutral,
.truepe-status--refunded,
.legacy-status-refunded,
.tp-status-refunded {
    color: var(--truepe-muted);
    background: var(--truepe-surface-raised);
}

.truepe-ledger-shell,
.tp-table-scroll {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--truepe-border);
    border-radius: var(--truepe-radius-card);
    background: var(--truepe-surface);
}

.truepe-ledger,
.tp-professional-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--truepe-text);
}

.truepe-ledger th,
.truepe-ledger td,
.tp-professional-table th,
.tp-professional-table td {
    padding: 16px;
    border: 0;
    border-bottom: 1px solid var(--truepe-border);
    text-align: left;
    vertical-align: middle;
}

.truepe-ledger th,
.tp-professional-table th {
    color: var(--truepe-muted);
    background: var(--truepe-surface-soft);
    font-size: 12px;
    font-weight: 700;
}

.truepe-ledger-row {
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--truepe-space-3);
    align-items: center;
    padding: var(--truepe-space-3);
    border-bottom: 1px solid var(--truepe-border);
}

.truepe-sidebar {
    display: none;
}

.truepe-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    color: var(--truepe-text);
}

.truepe-sidebar-brand img {
    width: 44px;
    height: 44px;
    border-radius: var(--truepe-radius-control);
}

.truepe-sidebar-brand strong,
.truepe-sidebar-brand small {
    display: block;
}

.truepe-sidebar-brand strong {
    font-size: 18px;
}

.truepe-sidebar-brand small {
    margin-top: 2px;
    color: var(--truepe-muted);
    font-size: 12px;
}

.truepe-sidebar-nav {
    display: grid;
    gap: 4px;
    margin-top: var(--truepe-space-4);
}

.truepe-sidebar-nav a,
.truepe-nav-menu-sheet nav a {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 12px 10px 16px;
    border-radius: var(--truepe-radius-sm);
    color: var(--truepe-muted);
    font-size: 14px;
    font-weight: 600;
}

.truepe-sidebar-nav a img,
.truepe-nav-menu-sheet nav a img {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.truepe-sidebar-nav a.is-active {
    color: var(--truepe-primary);
    background: var(--truepe-primary-soft);
}

.truepe-sidebar-nav a.is-active::before {
    content: "";
    position: absolute;
    inset: 8px auto 8px 0;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--truepe-primary);
}

.truepe-mobile-nav,
.truepe-nav-menu {
    display: none;
}

@media (min-width: 1100px) {
    .truepe-sidebar {
        position: fixed;
        z-index: 80;
        top: 24px;
        bottom: 24px;
        left: max(24px, calc((100vw - var(--truepe-content-max)) / 2 + 24px));
        width: var(--truepe-sidebar-width);
        display: flex;
        flex-direction: column;
        padding: 16px;
        overflow-y: auto;
        border: 1px solid var(--truepe-border);
        border-radius: var(--truepe-radius-card);
        background: var(--truepe-surface);
        box-shadow: var(--truepe-shadow-sm);
    }

    body.has-truepe-sidebar .tp-money-screen {
        width: min(1088px, calc(100vw - 352px));
        margin-right: max(24px, calc((100vw - var(--truepe-content-max)) / 2 + 24px));
        margin-left: max(328px, calc((100vw - var(--truepe-content-max)) / 2 + 328px));
    }

    body.wallet-sidebar-collapsed .truepe-sidebar {
        transform: translateX(-110%);
    }

    body.has-truepe-sidebar.wallet-sidebar-collapsed .tp-money-screen {
        width: min(var(--truepe-content-max), calc(100vw - 48px));
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 1024px) {
    .wallet-sidebar-toggle {
        display: none !important;
    }
}

@media (max-width: 760px) {
    body.has-truepe-mobile-nav {
        padding-bottom: 88px;
    }

    .truepe-mobile-nav {
        position: fixed;
        z-index: 90;
        right: 12px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 12px;
        height: 68px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: stretch;
        padding: 6px;
        border: 1px solid var(--truepe-border);
        border-radius: var(--truepe-radius-card);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--truepe-shadow-md);
        backdrop-filter: blur(18px);
    }

    .truepe-mobile-nav a,
    .truepe-mobile-menu-button {
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 4px 2px;
        border: 0;
        border-radius: var(--truepe-radius-control);
        color: var(--truepe-muted);
        background: transparent;
        font-size: 10px;
        font-weight: 700;
    }

    .truepe-mobile-nav a img,
    .truepe-mobile-nav a i,
    .truepe-mobile-menu-button i {
        width: 22px;
        height: 22px;
        object-fit: contain;
        font-size: 18px;
    }

    .truepe-mobile-nav a.is-active {
        color: var(--truepe-on-primary);
        background: var(--truepe-primary);
    }

    .truepe-nav-menu[hidden] {
        display: none;
    }

    .truepe-nav-menu:not([hidden]) {
        position: fixed;
        z-index: 100;
        inset: 0;
        display: block;
    }

    .truepe-nav-menu-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        border: 0;
        background: rgba(11, 28, 48, 0.38);
    }

    .truepe-nav-menu-sheet {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: min(78vh, 640px);
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
        overflow-y: auto;
        border-radius: var(--truepe-radius-card) var(--truepe-radius-card) 0 0;
        background: var(--truepe-surface);
        box-shadow: 0 -12px 40px rgba(11, 28, 48, 0.16);
    }

    .truepe-nav-menu-sheet header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }

    .truepe-nav-menu-sheet h2 {
        margin: 0;
        font-size: 20px;
    }

    .truepe-nav-menu-sheet header button {
        width: 44px;
        height: 44px;
        border: 1px solid var(--truepe-border);
        border-radius: var(--truepe-radius-control);
        color: var(--truepe-text);
        background: var(--truepe-surface);
    }

    .truepe-nav-menu-sheet nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .truepe-nav-menu-sheet nav a {
        border: 1px solid var(--truepe-border);
        background: var(--truepe-surface-soft);
    }

    .truepe-nav-menu-sheet nav a.is-active {
        color: var(--truepe-primary);
        border-color: var(--truepe-primary-container);
        background: var(--truepe-primary-soft);
    }

    body.truepe-nav-open {
        overflow: hidden;
    }

    .truepe-ledger-row {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 14px 12px;
    }
}

.truepe-qr-alert-backdrop {
    position: fixed;
    z-index: 9996;
    inset: 0;
    display: none;
    background: rgba(11, 28, 48, 0.38);
    pointer-events: none;
}

.truepe-qr-alert {
    position: fixed;
    z-index: 9997;
    bottom: 20px;
    left: 50%;
    width: min(calc(100% - 28px), 430px);
    padding: 18px;
    transform: translate(-50%, 130%);
    transition: transform 0.24s ease;
    border: 1px solid var(--truepe-border);
    border-radius: var(--truepe-radius-card);
    color: var(--truepe-text);
    background: var(--truepe-surface);
    box-shadow: var(--truepe-shadow-md);
    pointer-events: none;
}

.truepe-qr-alert.is-open {
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.truepe-qr-alert-backdrop.is-open {
    display: block;
    pointer-events: auto;
}

.truepe-qr-alert-head,
.truepe-qr-alert-actions,
.truepe-qr-alert-rows div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.truepe-qr-alert-head {
    justify-content: flex-start;
    margin-bottom: 14px;
}

.truepe-qr-alert-icon {
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    border-radius: var(--truepe-radius-control);
    color: var(--truepe-success);
    background: var(--truepe-success-soft);
}

.truepe-qr-alert h2,
.truepe-qr-alert p {
    margin: 0;
}

.truepe-qr-alert p,
.truepe-qr-alert-rows span {
    color: var(--truepe-muted);
}

.truepe-qr-alert-amount {
    margin: 8px 0 14px;
    color: var(--truepe-success);
    font-size: 32px;
    font-weight: 800;
}

.truepe-qr-alert-rows {
    display: grid;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--truepe-border);
    border-radius: var(--truepe-radius-control);
    background: var(--truepe-surface-soft);
}

.truepe-qr-alert-actions {
    margin-top: 14px;
}

.truepe-qr-alert-done {
    min-height: 44px;
    padding: 8px 16px;
    border: 0;
    border-radius: var(--truepe-radius-control);
    color: var(--truepe-on-primary);
    background: var(--truepe-primary);
    font-weight: 700;
}

.truepe-qr-alert-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--truepe-muted);
    font-size: 12px;
    font-weight: 700;
}

@media (min-width: 760px) {
    .truepe-qr-alert {
        top: 50%;
        bottom: auto;
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.98);
    }

    .truepe-qr-alert.is-open {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Rollback compatibility for pre-shared-history module records. */
body.tp-money-native .legacy-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

body.tp-money-native .legacy-filter-input {
    min-width: min(100%, 320px);
    min-height: 46px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 0 14px;
    background: #f8fbff;
    color: var(--tp-text);
}

body.tp-money-native .legacy-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.tp-money-native .legacy-filter-pill {
    min-height: 40px;
    border: 1px solid var(--tp-line);
    border-radius: 12px;
    padding: 0 16px;
    background: #fff;
    color: var(--tp-muted);
    font-weight: 800;
}

body.tp-money-native .legacy-filter-pill.is-active {
    border-color: transparent;
    background: var(--tp-primary);
    color: #fff;
}

body.tp-money-native .legacy-record-list {
    display: grid;
    gap: 12px;
}

body.tp-money-native .legacy-record {
    border: 1px solid var(--tp-line);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: var(--tp-shadow-soft);
}

body.tp-money-native .legacy-record-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

body.tp-money-native .legacy-record-title {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

body.tp-money-native .legacy-record-title strong,
body.tp-money-native .legacy-record-title small {
    display: block;
    overflow-wrap: anywhere;
}

body.tp-money-native .legacy-record-title small,
body.tp-money-native .legacy-meta {
    color: var(--tp-muted);
    font-weight: 700;
}

body.tp-money-native .legacy-avatar,
body.tp-money-native .legacy-icon {
    flex: 0 0 auto;
}

body.tp-money-native .legacy-amount {
    color: var(--tp-text);
    font-weight: 900;
    white-space: nowrap;
    text-align: right;
}

body.tp-money-native .legacy-credit .legacy-amount {
    color: var(--tp-success);
}

body.tp-money-native .legacy-debit .legacy-amount {
    color: var(--tp-danger);
}

body.tp-money-native .legacy-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    border-radius: 999px;
    padding: 3px 10px;
    background: #eef4ff;
    color: #175cd3;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.tp-money-native .legacy-status-completed,
body.tp-money-native .legacy-status-success,
body.tp-money-native .legacy-status-approved {
    background: #dcfae6;
    color: #067647;
}

body.tp-money-native .legacy-status-pending,
body.tp-money-native .legacy-status-requested {
    background: #fff4d6;
    color: #92400e;
}

body.tp-money-native .legacy-status-rejected,
body.tp-money-native .legacy-status-failed,
body.tp-money-native .legacy-status-refunded {
    background: #fee4e2;
    color: #b42318;
}

body.tp-money-native .legacy-empty {
    display: grid;
    place-items: center;
    gap: 8px;
    border: 1px dashed var(--tp-line);
    border-radius: 14px;
    padding: 24px;
    background: #fff;
    text-align: center;
    color: var(--tp-muted);
}

body.tp-money-native .legacy-empty img {
    width: 96px;
    max-width: 40vw;
    height: auto;
}

body.tp-money-native .legacy-details {
    margin-top: 12px;
}

@media (max-width: 640px) {
    body.tp-money-native .legacy-filter-bar,
    body.tp-money-native .legacy-record-head {
        align-items: stretch;
        flex-direction: column;
    }

    body.tp-money-native .legacy-filter-input {
        width: 100%;
    }

    body.tp-money-native .legacy-record-head > div:last-child,
    body.tp-money-native .legacy-amount {
        text-align: left;
    }
}

/* IndoPe Premium UI phase: shared visual language for money surfaces. */
:root {
    --tp-premium-radius: 24px;
    --tp-premium-radius-sm: 16px;
    --tp-premium-shadow: 0 20px 55px rgba(20, 35, 55, 0.10);
    --tp-premium-shadow-hover: 0 26px 68px rgba(20, 35, 55, 0.15);
}

body.tp-money-native {
    background:
        radial-gradient(circle at 8% 2%, rgba(49, 87, 216, 0.09), transparent 30rem),
        radial-gradient(circle at 92% 8%, rgba(16, 163, 127, 0.09), transparent 28rem),
        var(--tp-bg);
}

.tp-appbar {
    border: 1px solid color-mix(in srgb, var(--tp-border) 72%, transparent);
    border-radius: 22px;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--tp-surface) 88%, transparent);
    box-shadow: 0 12px 34px rgba(20, 35, 55, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.tp-page-hero,
.tp-hero-card {
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 13rem),
        linear-gradient(135deg, #173b91 0%, #235fc7 44%, #0a9a7a 100%);
    box-shadow: 0 24px 60px rgba(30, 78, 160, .20);
}

.tp-panel,
.tp-form-shell,
.tp-history-card,
.tp-stat,
.tp-action-card,
.tp-empty-state {
    border-color: color-mix(in srgb, var(--tp-border) 78%, transparent);
}

.tp-panel,
.tp-form-shell,
.tp-history-card {
    border-radius: var(--tp-premium-radius);
    box-shadow: var(--tp-premium-shadow);
}

.tp-action-card {
    border-radius: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tp-action-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--tp-primary) 42%, var(--tp-border));
    box-shadow: 0 16px 34px rgba(20, 35, 55, .11);
}

.tp-action-card > i,
.tp-form-icon {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 8px 18px rgba(35, 95, 199, .15);
}

.tp-form input,
.tp-form select,
.tp-form textarea {
    border-radius: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tp-form input:focus,
.tp-form select:focus,
.tp-form textarea:focus {
    border-color: var(--tp-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp-primary) 13%, transparent);
}

.tp-form button,
.tp-primary-btn,
.tp-secondary-btn {
    min-height: 50px;
    border-radius: 16px;
    font-weight: 850;
    box-shadow: 0 12px 24px rgba(35, 95, 199, .14);
}

.tp-alert,
.tp-info-strip {
    border-radius: 16px;
}

.tp-premium-list {
    display: grid;
    gap: 10px;
}

.tp-premium-list-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--tp-border);
    border-radius: 17px;
    background: var(--tp-surface-soft);
}

.tp-premium-list-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--tp-primary);
    background: color-mix(in srgb, var(--tp-primary) 10%, var(--tp-surface));
}

.tp-premium-list-copy,
.tp-premium-list-copy strong,
.tp-premium-list-copy span {
    min-width: 0;
}

.tp-premium-list-copy strong,
.tp-premium-list-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-premium-list-copy span {
    margin-top: 3px;
    color: var(--tp-muted);
    font-size: .78rem;
}

.tp-premium-list-amount {
    text-align: right;
    font-weight: 850;
    white-space: nowrap;
}

.tp-premium-list-amount.credit { color: var(--tp-success, #087f5b); }
.tp-premium-list-amount.debit { color: var(--tp-text); }

@media (max-width: 640px) {
    .tp-appbar {
        margin: 0 0 10px;
        border-radius: 20px;
        background: color-mix(in srgb, var(--tp-surface) 92%, transparent);
    }

    .tp-page-hero,
    .tp-hero-card {
        border-radius: 26px;
    }

    .tp-premium-list-item {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px;
    }

    .tp-premium-list-icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }
}
/* IndoPe 2026 user money-surface foundation */
:root {
    --ip-blue-50: #f3f7ff;
    --ip-blue-100: #eaf2ff;
    --ip-blue-200: #cfe0ff;
    --ip-blue-500: #1c65e6;
    --ip-blue-600: #1557d6;
    --ip-blue-700: #1048b5;
    --ip-blue-800: #0b3c91;
    --ip-orange-50: #fff7ed;
    --ip-orange-500: #f58220;
    --ip-orange-600: #df6b0d;
    --ip-green-50: #e9f8f1;
    --ip-green-500: #22b573;
    --ip-green-600: #159c62;
    --ip-ink: #102a56;
    --ip-text: #1b2b44;
    --ip-muted: #66758a;
    --ip-line: #d9e4f2;
    --ip-canvas: #f6f9fd;
    --ip-surface: #ffffff;
    --ip-radius-sm: 10px;
    --ip-radius-md: 16px;
    --ip-radius-lg: 22px;
    --ip-radius-xl: 30px;
    --ip-shadow-sm: 0 4px 14px rgba(16, 42, 86, .07);
    --ip-shadow-md: 0 12px 32px rgba(16, 42, 86, .10);
    --ip-shadow-lg: 0 22px 55px rgba(16, 42, 86, .14);
    --ip-gradient: linear-gradient(135deg, var(--ip-blue-600), var(--ip-blue-800));
    --ip-gradient-accent: linear-gradient(135deg, var(--ip-blue-600), var(--ip-blue-500) 62%, #2877ef);
    --ip-space-1: 4px;
    --ip-space-2: 8px;
    --ip-space-3: 12px;
    --ip-space-4: 16px;
    --ip-space-5: 20px;
    --ip-space-6: 24px;
    --ip-space-8: 32px;
}

body.tp-money-native {
    --indope-ink: var(--ip-ink);
    --indope-muted: var(--ip-muted);
    --indope-blue: var(--ip-blue-600);
    --indope-cyan: var(--ip-blue-500);
    --indope-jade: var(--ip-green-500);
    --indope-gold: var(--ip-orange-500);
    --indope-coral: #dc3545;
    --indope-gradient: var(--ip-gradient-accent);
    --tp-bg: var(--ip-canvas);
    --tp-surface: var(--ip-surface);
    --tp-surface-soft: var(--ip-blue-50);
    --tp-text: var(--ip-text);
    --tp-muted: var(--ip-muted);
    --tp-border: rgba(16, 42, 86, .11);
    --tp-primary: var(--ip-blue-600);
    --tp-primary-2: var(--ip-blue-500);
    --tp-green: var(--ip-green-500);
    --tp-yellow: var(--ip-orange-500);
    --tp-shadow: var(--ip-shadow-lg);
    --tp-radius: var(--ip-radius-xl);
}

body.tp-money-native .ip-card {
    border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius-lg);
    background: var(--ip-surface);
    box-shadow: var(--ip-shadow-md);
}

body.tp-money-native .ip-btn,
body.tp-money-native .tp-btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-inline: 18px;
    border-radius: 14px;
    font-weight: 800;
}

body.tp-money-native .ip-btn-primary,
body.tp-money-native .tp-btn.primary,
body.tp-money-native .tp-form button[type="submit"] {
    border-color: transparent;
    color: #fff;
    background: var(--ip-gradient-accent);
    box-shadow: 0 12px 25px rgba(21, 87, 214, .22);
}

body.tp-money-native .ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--ip-blue-700);
    background: var(--ip-blue-100);
    font-size: .75rem;
    font-weight: 800;
}

body.tp-money-native .ip-badge-success { color: var(--ip-green-600); background: var(--ip-green-50); }
body.tp-money-native .ip-badge-accent { color: var(--ip-orange-600); background: var(--ip-orange-50); }

body.tp-money-native .tp-form input,
body.tp-money-native .tp-form select,
body.tp-money-native .tp-form textarea,
body.tp-money-native .ip-field {
    min-height: 46px;
    border: 1px solid var(--ip-line);
    border-radius: 14px;
    background: var(--ip-surface);
    color: var(--ip-text);
    box-shadow: inset 0 1px 2px rgba(16, 42, 86, .03);
}

body.tp-money-native .tp-form input:focus,
body.tp-money-native .tp-form select:focus,
body.tp-money-native .tp-form textarea:focus,
body.tp-money-native .ip-field:focus {
    border-color: var(--ip-blue-500);
    outline: 3px solid rgba(28, 101, 230, .13);
}

body.tp-money-native .ip-icon {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--ip-blue-600);
    background: var(--ip-blue-100);
}

body.tp-money-native .ip-icon img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 640px) {
    body.tp-money-native { --ip-radius-lg: 18px; --ip-radius-xl: 24px; }
    body.tp-money-native .ip-btn, body.tp-money-native .tp-btn { min-height: 44px; padding-inline: 15px; }
}

/* Step 2 user-side brand application */
body.tp-money-native {
    background:
        radial-gradient(circle at 10% -4%, rgba(21, 87, 214, .14), transparent 28rem),
        radial-gradient(circle at 92% 4%, rgba(34, 181, 115, .12), transparent 26rem),
        linear-gradient(180deg, #fbfdff 0%, var(--ip-canvas) 100%);
}

body.tp-money-native .tp-money-screen,
body.tp-money-native .tp-app-main {
    width: min(1180px, 100%);
    padding-inline: clamp(12px, 2.4vw, 24px);
}

body.tp-money-native .tp-appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 0 var(--ip-space-4);
    padding: 10px 0 14px;
    font-family: var(--truepe-font-sans);
    background: color-mix(in srgb, var(--ip-canvas) 88%, transparent);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.tp-money-native .tp-brand {
    height: 44px;
}

body.tp-money-native .tp-brand img {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ip-shadow-sm);
}

body.tp-money-native .tp-brand strong {
    color: var(--ip-ink);
    font-family: var(--truepe-font-sans);
    font-size: 1.12rem;
    letter-spacing: -.02em;
}

body.tp-money-native .tp-brand small {
    color: var(--ip-muted);
    font-family: var(--truepe-font-sans);
    font-weight: 750;
}

body.tp-money-native .tp-page-hero,
body.tp-money-native .tp-hero-card,
body.tp-money-native .tp-wallet-card {
    border: 1px solid rgba(255, 255, 255, .66);
    border-radius: var(--ip-radius-xl);
    background:
        radial-gradient(circle at 82% 15%, rgba(255,255,255,.22), transparent 11rem),
        linear-gradient(135deg, var(--ip-blue-800) 0%, var(--ip-blue-600) 56%, var(--ip-green-500) 100%);
    box-shadow: 0 24px 60px rgba(16, 42, 86, .18);
}

body.tp-money-native .tp-panel,
body.tp-money-native .tp-form-shell,
body.tp-money-native .tp-history-card,
body.tp-money-native .tp-stat,
body.tp-money-native .tp-action-card,
body.tp-money-native .tp-empty-state,
body.tp-money-native .mq-card,
body.tp-money-native .ms-card,
body.tp-money-native .mr-card,
body.tp-money-native .m-card {
    border: 1px solid var(--ip-line) !important;
    border-radius: var(--ip-radius-lg) !important;
    background: color-mix(in srgb, var(--ip-surface) 97%, var(--ip-blue-50)) !important;
    box-shadow: var(--ip-shadow-md) !important;
}

body.tp-money-native .tp-section-title h1,
body.tp-money-native .tp-section-title h2,
body.tp-money-native .tp-page-hero h1 {
    letter-spacing: -.035em;
}

body.tp-money-native .tp-kicker {
    color: var(--ip-blue-700);
    letter-spacing: .08em;
    font-weight: 900;
}

body.tp-money-native .tp-page-hero .tp-kicker,
body.tp-money-native .tp-page-hero h1,
body.tp-money-native .tp-page-hero p {
    color: #fff;
}

body.tp-money-native .tp-hero-balance,
body.tp-money-native .tp-card-insights div {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.14);
}

body.tp-money-native .tp-icon-btn,
body.tp-money-native .tp-theme-toggle,
body.tp-money-native .mq-btn {
    border: 1px solid var(--ip-line);
    border-radius: 15px;
    background: var(--ip-surface);
    color: var(--ip-blue-700);
    box-shadow: var(--ip-shadow-sm);
}

body.tp-money-native .tp-icon-btn:hover,
body.tp-money-native .tp-theme-toggle:hover,
body.tp-money-native .tp-btn:hover,
body.tp-money-native .mq-btn:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--ip-blue-500) 42%, var(--ip-line));
}

body.tp-money-native .tp-btn.primary,
body.tp-money-native .mq-btn.primary,
body.tp-money-native .m-btn-primary,
body.tp-money-native .m-fund-btn,
body.tp-money-native .m-ch-add {
    border-color: transparent !important;
    color: #fff !important;
    background: var(--ip-gradient-accent) !important;
    box-shadow: 0 14px 30px rgba(21, 87, 214, .22) !important;
}

body.tp-money-native .tp-money-nav {
    position: sticky;
    top: 74px;
    z-index: 25;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    margin: 0 0 var(--ip-space-4);
    border: 1px solid var(--ip-line);
    border-radius: 22px;
    background: color-mix(in srgb, var(--ip-surface) 94%, transparent);
    box-shadow: var(--ip-shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    scrollbar-width: thin;
}

body.tp-money-native .tp-money-nav a {
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 15px;
    color: var(--ip-muted);
    font-weight: 850;
}

body.tp-money-native .tp-money-nav a img {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    object-fit: contain;
}

body.tp-money-native .tp-money-nav a.is-active,
body.tp-money-native .tp-money-nav a.active {
    color: #fff;
    background: var(--ip-gradient-accent);
    box-shadow: 0 10px 22px rgba(21, 87, 214, .18);
}

body.tp-money-native .tp-bottom-nav {
    display: none;
    border: 1px solid var(--ip-line);
    background: color-mix(in srgb, var(--ip-surface) 94%, transparent);
    box-shadow: 0 18px 42px rgba(16, 42, 86, .18);
}

body.tp-money-native .tp-bottom-nav a.is-active,
body.tp-money-native .tp-bottom-nav a.active {
    color: #fff;
    background: var(--ip-gradient-accent);
}

body.tp-money-native .is-hidden-balance {
    filter: blur(9px);
    user-select: none;
}

body.tp-money-native .tp-form input,
body.tp-money-native .tp-form select,
body.tp-money-native .tp-form textarea,
body.tp-money-native .m-fund-input,
body.tp-money-native .mr-filter input,
body.tp-money-native .mr-filter select,
body.tp-money-native .ms-form input,
body.tp-money-native .mq-form input {
    min-height: 46px;
    border: 1px solid var(--ip-line) !important;
    border-radius: 15px !important;
    background: #fff !important;
    color: var(--ip-text) !important;
}

body.tp-money-native table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

body.tp-money-native th {
    color: var(--ip-muted);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.tp-money-native td {
    background: var(--ip-surface);
    border-top: 1px solid var(--ip-line);
    border-bottom: 1px solid var(--ip-line);
}

body.tp-money-native td:first-child { border-left: 1px solid var(--ip-line); border-radius: 14px 0 0 14px; }
body.tp-money-native td:last-child { border-right: 1px solid var(--ip-line); border-radius: 0 14px 14px 0; }

body.tp-money-native .tp-status-chip,
body.tp-money-native .tp-chip,
body.tp-money-native .m-wallet-pill {
    border-radius: 999px;
    font-weight: 900;
}

@media (max-width: 760px) {
    body.tp-money-native .tp-money-screen,
    body.tp-money-native .tp-app-main {
        padding-inline: 12px;
        padding-bottom: 104px;
    }

    body.tp-money-native .tp-page-hero,
    body.tp-money-native .tp-hero-card,
    body.tp-money-native .tp-wallet-card {
        border-radius: 24px;
        padding: 18px;
    }

    body.tp-money-native .tp-money-nav {
        top: 64px;
        margin-inline: -2px;
    }

    body.tp-money-native .tp-bottom-nav {
        display: flex;
    }
}

/* Step 5 interaction polish: accessible radios, reliable taps, consistent buttons. */
body.tp-money-native input[type="radio"],
body.tp-native-app input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--ip-green-600, #10a37f);
    cursor: pointer;
}

body.tp-money-native .toggle-container,
body.tp-native-app .toggle-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 10px;
    width: 100%;
}

body.tp-money-native .toggle-option,
body.tp-native-app .toggle-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.tp-money-native .toggle-option input[type="radio"],
body.tp-native-app .toggle-option input[type="radio"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

body.tp-money-native .toggle-label,
body.tp-native-app .toggle-label {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 14px;
    border: 1px solid var(--ip-line, #d0d5dd);
    border-radius: 16px;
    background: #fff;
    color: var(--ip-text, #111827);
    font-weight: 850;
    text-align: center;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

body.tp-money-native .toggle-option input[type="radio"]:checked + .toggle-label,
body.tp-native-app .toggle-option input[type="radio"]:checked + .toggle-label {
    border-color: transparent;
    color: #fff;
    background: var(--ip-gradient-accent, linear-gradient(135deg, #3157d8, #10a37f));
    box-shadow: 0 14px 30px rgba(21, 87, 214, .20);
}

body.tp-money-native .toggle-option input[type="radio"]:focus-visible + .toggle-label,
body.tp-native-app .toggle-option input[type="radio"]:focus-visible + .toggle-label,
body.tp-money-native a:focus-visible,
body.tp-money-native button:focus-visible,
body.tp-native-app a:focus-visible,
body.tp-native-app button:focus-visible {
    outline: 3px solid rgba(49, 87, 216, .22);
    outline-offset: 3px;
}

body.tp-money-native button,
body.tp-money-native .tp-btn,
body.tp-money-native .qr-btn,
body.tp-money-native .mq-btn,
body.tp-money-native .filter-btn,
body.tp-native-app button,
body.tp-native-app .tp-btn,
body.tp-native-app .filter-btn {
    min-height: 46px;
    touch-action: manipulation;
    cursor: pointer;
}

body.tp-money-native button:active,
body.tp-money-native .tp-btn:active,
body.tp-money-native .qr-btn:active,
body.tp-money-native .mq-btn:active,
body.tp-native-app button:active,
body.tp-native-app .tp-btn:active {
    transform: translateY(0) scale(.99);
}

body.tp-money-native button[disabled],
body.tp-money-native button[aria-busy="true"],
body.tp-money-native .tp-btn[aria-disabled="true"],
body.tp-native-app button[disabled],
body.tp-native-app button[aria-busy="true"] {
    cursor: not-allowed;
    opacity: .68;
    transform: none !important;
}

body.tp-money-native label,
body.tp-native-app label {
    min-width: 0;
}

/* Final interaction stabilization: visual layers never intercept controls. */
body.tp-money-native .tp-page-hero::before,
body.tp-money-native .tp-page-hero::after,
body.tp-money-native .tp-hero-card::before,
body.tp-money-native .tp-hero-card::after,
body.tp-money-native .tp-wallet-card::before,
body.tp-money-native .tp-wallet-card::after,
body.tp-money-native .tp-panel::before,
body.tp-money-native .tp-panel::after,
body.tp-money-native .tp-action-card::before,
body.tp-money-native .tp-action-card::after,
body.tp-money-native .tp-stat::before,
body.tp-money-native .tp-stat::after,
body.tp-native-app .tp-page-hero::before,
body.tp-native-app .tp-page-hero::after,
body.tp-native-app .tp-wallet-card::before,
body.tp-native-app .tp-wallet-card::after,
body.tp-native-app .tp-action-card::before,
body.tp-native-app .tp-action-card::after {
    pointer-events: none !important;
}

body.tp-money-native a,
body.tp-money-native button,
body.tp-money-native input,
body.tp-money-native select,
body.tp-money-native textarea,
body.tp-money-native [role="button"],
body.tp-native-app a,
body.tp-native-app button,
body.tp-native-app input,
body.tp-native-app select,
body.tp-native-app textarea,
body.tp-native-app [role="button"] {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.tp-money-native button,
body.tp-money-native .tp-btn,
body.tp-money-native .btn,
body.tp-money-native .qr-btn,
body.tp-money-native .mq-btn,
body.tp-money-native .filter-btn,
body.tp-native-app button,
body.tp-native-app .tp-btn,
body.tp-native-app .btn,
body.tp-native-app .filter-btn {
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    line-height: 1.2;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background-color .16s ease, opacity .16s ease;
}

body.tp-money-native .tp-icon-btn,
body.tp-money-native .tp-theme-toggle,
body.tp-money-native .tp-icon-button,
body.tp-native-app .tp-icon-btn,
body.tp-native-app .tp-theme-toggle,
body.tp-native-app .tp-icon-button {
    position: relative;
    z-index: 3;
    min-width: 44px;
    min-height: 44px;
    flex: 0 0 44px;
}

body.tp-money-native .tp-brand,
body.tp-native-app .tp-brand,
body.tp-native-app .tp-appbar-brand {
    min-height: 44px;
}

body.tp-money-native .tp-action-card,
body.tp-money-native .tp-link-card,
body.tp-money-native .tp-money-nav a,
body.tp-money-native .tp-bottom-nav a,
body.tp-native-app .tp-action-card,
body.tp-native-app .tp-link-card,
body.tp-native-app .tp-bottom-nav a {
    position: relative;
    z-index: 1;
    min-height: 48px;
    cursor: pointer;
    isolation: isolate;
}

body.tp-money-native .tp-action-card > *,
body.tp-money-native .tp-link-card > *,
body.tp-native-app .tp-action-card > *,
body.tp-native-app .tp-link-card > * {
    pointer-events: none;
}

body.tp-money-native .tp-btn > i,
body.tp-money-native .tp-btn > span,
body.tp-money-native .filter-btn > i,
body.tp-money-native .filter-btn > span,
body.tp-native-app .tp-btn > i,
body.tp-native-app .tp-btn > span,
body.tp-native-app .filter-btn > i,
body.tp-native-app .filter-btn > span {
    pointer-events: none;
}

body.tp-money-native .tp-bottom-nav a,
body.tp-native-app .tp-bottom-nav a {
    min-width: 48px;
}

@media (max-width: 760px) {
    body.tp-money-native .tp-money-screen,
    body.tp-native-app .tp-money-screen {
        padding-bottom: 132px;
    }

    body.tp-money-native .tp-empty-state .tp-card-actions {
        flex-direction: row;
        width: 100%;
    }

    body.tp-money-native .tp-empty-state .tp-card-actions .tp-btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
        min-height: 52px;
        padding-inline: 10px;
        font-size: .78rem;
    }

    body.tp-money-native .tp-panel:has([data-history-filter]) {
        display: flex;
        flex-direction: column;
    }

    body.tp-money-native .tp-panel:has([data-history-filter]) .tp-section-title {
        order: 1;
    }

    body.tp-money-native .tp-panel:has([data-history-filter]) [data-history-filter] {
        order: 2;
    }

    body.tp-money-native .tp-panel:has([data-history-filter]) .tp-stat-grid {
        order: 3;
    }
}

body.tp-money-native button:hover:not(:disabled):not([aria-busy="true"]),
body.tp-money-native .tp-btn:hover:not([aria-disabled="true"]),
body.tp-money-native .qr-btn:hover:not(:disabled),
body.tp-money-native .mq-btn:hover:not(:disabled),
body.tp-native-app button:hover:not(:disabled):not([aria-busy="true"]),
body.tp-native-app .tp-btn:hover:not([aria-disabled="true"]) {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(20, 32, 51, .12);
}

body.tp-money-native button[disabled],
body.tp-money-native button[aria-busy="true"],
body.tp-money-native .tp-btn[aria-disabled="true"],
body.tp-native-app button[disabled],
body.tp-native-app button[aria-busy="true"],
body.tp-native-app .tp-btn[aria-disabled="true"] {
    opacity: .58;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

body.tp-money-native button[aria-busy="true"] i,
body.tp-native-app button[aria-busy="true"] i {
    animation: tp-control-spin .8s linear infinite;
}

@keyframes tp-control-spin {
    to { transform: rotate(360deg); }
}

body.tp-money-native input:not([type="checkbox"]):not([type="radio"]),
body.tp-money-native select,
body.tp-money-native textarea,
body.tp-native-app input:not([type="checkbox"]):not([type="radio"]),
body.tp-native-app select,
body.tp-native-app textarea {
    position: relative;
    z-index: 2;
    min-height: 48px;
    touch-action: auto;
}

body.tp-money-native .hidden,
body.tp-money-native .qr-hidden,
body.tp-money-native [hidden],
body.tp-native-app .hidden,
body.tp-native-app [hidden],
.sheet-backdrop:not(.active),
.modal-backdrop:not(.active),
.retiredpanel-overlay:not(.active) {
    pointer-events: none !important;
}

@media (max-width: 640px) {
    body.tp-money-native button,
    body.tp-money-native .tp-btn,
    body.tp-money-native .btn,
    body.tp-money-native .qr-btn,
    body.tp-money-native .mq-btn,
    body.tp-native-app button,
    body.tp-native-app .tp-btn,
    body.tp-native-app .btn {
        min-height: 48px;
    }
}

body.tp-money-native input,
body.tp-money-native select,
body.tp-money-native textarea,
body.tp-native-app input,
body.tp-native-app select,
body.tp-native-app textarea {
    max-width: 100%;
    touch-action: manipulation;
}

/* User-side professional polish. Keep this layer presentation-only and scoped. */
body.tp-money-native {
    --tp-control-height: 50px;
    --tp-card-radius: 22px;
    --tp-card-shadow: 0 14px 36px rgba(20, 32, 51, 0.09);
    --tp-card-shadow-hover: 0 20px 44px rgba(20, 32, 51, 0.14);
    --tp-focus-ring: 0 0 0 4px rgba(49, 87, 216, 0.13);
}

body.tp-money-native .tp-money-screen,
body.tp-money-native .tp-home,
body.tp-money-native .public-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

body.tp-money-native .tp-panel,
body.tp-money-native .tp-form-shell,
body.tp-money-native .tp-history-card,
body.tp-money-native .tp-action-card,
body.tp-money-native .tp-stat,
body.tp-money-native .tp-doc-card,
body.tp-money-native .tp-game-card,
body.tp-money-native .tp-service-card,
body.tp-money-native .tp-meta-card,
body.tp-money-native .tp-switch-card,
body.tp-money-native .merchant-panel,
body.tp-money-native .merchant-stat,
body.tp-money-native .merchant-table,
body.tp-money-native .merchant-empty,
body.tp-money-native .mq-card,
body.tp-money-native .mr-card,
body.tp-money-native .ms-card,
body.tp-money-native .m-card,
body.tp-money-native .bot-card,
body.tp-money-native .detail-card,
body.tp-money-native .result-card,
body.tp-money-native .tool-card,
body.tp-money-native .lifafa-card,
body.tp-money-native .state-card,
body.tp-money-native .session-info-card,
body.tp-money-native .public-section,
body.tp-money-native .auth-card {
    border: 1px solid var(--tp-border) !important;
    border-radius: var(--tp-card-radius) !important;
    background: var(--tp-surface) !important;
    box-shadow: var(--tp-card-shadow) !important;
}

body.tp-money-native .tp-panel,
body.tp-money-native .tp-form-shell,
body.tp-money-native .merchant-panel,
body.tp-money-native .mq-card,
body.tp-money-native .mr-card,
body.tp-money-native .ms-card,
body.tp-money-native .m-card,
body.tp-money-native .bot-card,
body.tp-money-native .public-section {
    padding: clamp(16px, 2.2vw, 24px);
}

body.tp-money-native .tp-action-card,
body.tp-money-native .tp-history-card,
body.tp-money-native .tp-doc-card,
body.tp-money-native .tp-game-card,
body.tp-money-native .tp-service-card,
body.tp-money-native .merchant-action,
body.tp-money-native .m-history-item,
body.tp-money-native .m-lb-item,
body.tp-money-native .lifafa-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

@media (hover: hover) {
    body.tp-money-native .tp-action-card:hover,
    body.tp-money-native .tp-history-card:hover,
    body.tp-money-native .tp-doc-card:hover,
    body.tp-money-native .tp-game-card:hover,
    body.tp-money-native .tp-service-card:hover,
    body.tp-money-native .merchant-action:hover,
    body.tp-money-native .m-history-item:hover,
    body.tp-money-native .m-lb-item:hover,
    body.tp-money-native .lifafa-card:hover {
        transform: translateY(-2px);
        border-color: rgba(49, 87, 216, 0.22) !important;
        box-shadow: var(--tp-card-shadow-hover) !important;
    }
}

body.tp-money-native .tp-section-title,
body.tp-money-native .section-title,
body.tp-money-native .card-header,
body.tp-money-native .form-header,
body.tp-money-native .history-header,
body.tp-money-native .m-card-title,
body.tp-money-native .merchant-table > header {
    min-width: 0;
    margin-bottom: 16px;
}

body.tp-money-native .tp-section-title h2,
body.tp-money-native .section-title,
body.tp-money-native .card-header h2,
body.tp-money-native .form-header h2,
body.tp-money-native .history-title,
body.tp-money-native .m-card-title {
    margin-top: 0;
    color: var(--tp-text);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -0.02em;
}

body.tp-money-native .tp-section-title p,
body.tp-money-native .section-sub,
body.tp-money-native .helper-text,
body.tp-money-native .form-header p,
body.tp-money-native .merchant-empty p,
body.tp-money-native .m-empty p {
    color: var(--tp-muted);
    line-height: 1.55;
}

body.tp-money-native .tp-form,
body.tp-money-native .auth-form,
body.tp-money-native .merchant-form,
body.tp-money-native .mq-form,
body.tp-money-native .ms-form,
body.tp-money-native .edit-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

body.tp-money-native .form-group,
body.tp-money-native .input-group,
body.tp-money-native .m-field,
body.tp-money-native .filter-item,
body.tp-money-native .tp-form label,
body.tp-money-native .auth-form label,
body.tp-money-native .merchant-form label,
body.tp-money-native .mq-form label,
body.tp-money-native .ms-form label {
    display: grid;
    gap: 8px;
    min-width: 0;
    color: var(--tp-text);
    font-size: 0.86rem;
    font-weight: 800;
}

body.tp-money-native input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.tp-money-native select,
body.tp-money-native textarea,
body.tp-money-native .form-input,
body.tp-money-native .input-field,
body.tp-money-native .channel-input,
body.tp-money-native .edit-channel-input,
body.tp-money-native .edit-rlink-input,
body.tp-money-native .search-input {
    width: 100%;
    min-height: var(--tp-control-height);
    border: 1px solid var(--tp-border) !important;
    border-radius: 15px !important;
    padding: 12px 14px;
    background: var(--tp-surface-soft) !important;
    color: var(--tp-text) !important;
    font: inherit;
    line-height: 1.35;
    outline: none;
    box-shadow: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

body.tp-money-native textarea {
    min-height: 112px;
    resize: vertical;
}

body.tp-money-native input:not([type="checkbox"]):not([type="radio"]):focus,
body.tp-money-native select:focus,
body.tp-money-native textarea:focus,
body.tp-money-native .form-input:focus,
body.tp-money-native .input-field:focus,
body.tp-money-native .channel-input:focus,
body.tp-money-native .search-input:focus {
    border-color: rgba(49, 87, 216, 0.62) !important;
    background: var(--tp-surface) !important;
    box-shadow: var(--tp-focus-ring) !important;
}

body.tp-money-native input::placeholder,
body.tp-money-native textarea::placeholder {
    color: color-mix(in srgb, var(--tp-muted) 76%, transparent);
}

body.tp-money-native button,
body.tp-money-native .tp-btn,
body.tp-money-native .btn-primary,
body.tp-money-native .btn-secondary,
body.tp-money-native .m-btn,
body.tp-money-native .mq-btn,
body.tp-money-native .qr-btn,
body.tp-money-native .view-action-btn,
body.tp-money-native .edit-submit-btn,
body.tp-money-native .delete-btn,
body.tp-money-native .copy-btn,
body.tp-money-native .btn-copy,
body.tp-money-native .show-more-btn,
body.tp-money-native .reset-txt-btn,
body.tp-money-native .scratch-chance-btn {
    min-height: 48px;
    border-radius: 15px !important;
    font-weight: 850;
    line-height: 1.2;
}

body.tp-money-native .btn-primary,
body.tp-money-native .m-btn-primary,
body.tp-money-native .mq-btn.primary,
body.tp-money-native .tp-btn.primary,
body.tp-money-native button[type="submit"] {
    border-color: transparent !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2)) !important;
    box-shadow: 0 12px 28px rgba(49, 87, 216, 0.2);
}

body.tp-money-native .btn-wrapper,
body.tp-money-native .button-group,
body.tp-money-native .merchant-actions,
body.tp-money-native .mq-actions,
body.tp-money-native .result-actions,
body.tp-money-native .view-action-bar,
body.tp-money-native .tp-card-actions,
body.tp-money-native .modal-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

body.tp-money-native .badge,
body.tp-money-native .status,
body.tp-money-native .payment-status,
body.tp-money-native .merchant-status,
body.tp-money-native .m-bot-status,
body.tp-money-native .mq-badge,
body.tp-money-native .lifafa-badge,
body.tp-money-native .num-tag,
body.tp-money-native .valid-tag,
body.tp-money-native .type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    max-width: 100%;
    padding: 5px 10px;
    border: 1px solid var(--tp-border);
    border-radius: 999px;
    background: var(--tp-surface-soft);
    color: var(--tp-muted);
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

body.tp-money-native .tp-empty-state,
body.tp-money-native .merchant-empty,
body.tp-money-native .m-empty,
body.tp-money-native .view-empty-state,
body.tp-money-native .no-lifafa {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 28px 20px;
    border: 1px dashed rgba(49, 87, 216, 0.25);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(49, 87, 216, 0.05), rgba(16, 163, 127, 0.05));
    color: var(--tp-muted);
    text-align: center;
}

body.tp-money-native .tp-empty-state img,
body.tp-money-native .merchant-empty img,
body.tp-money-native .m-empty img,
body.tp-money-native .view-empty-state img,
body.tp-money-native .no-lifafa img {
    width: min(112px, 32vw);
    max-height: 112px;
    object-fit: contain;
}

body.tp-money-native .tp-empty-state strong,
body.tp-money-native .merchant-empty strong,
body.tp-money-native .m-empty strong,
body.tp-money-native .view-empty-state strong,
body.tp-money-native .no-lifafa strong {
    color: var(--tp-text);
    font-size: 1.02rem;
    font-weight: 900;
}

body.tp-money-native .table-responsive,
body.tp-money-native .merchant-table,
body.tp-money-native .history-content-wrapper,
body.tp-money-native .view-numbers-grid {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

body.tp-money-native table {
    width: 100%;
    min-width: 640px;
    border-collapse: separate;
    border-spacing: 0 8px;
}

body.tp-money-native th {
    padding: 8px 14px;
    color: var(--tp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

body.tp-money-native td {
    padding: 13px 14px;
    vertical-align: middle;
    line-height: 1.45;
}

body.tp-money-native .tp-grid,
body.tp-money-native .tp-action-grid,
body.tp-money-native .tp-stat-grid,
body.tp-money-native .tp-doc-grid,
body.tp-money-native .tp-game-grid,
body.tp-money-native .tp-service-grid,
body.tp-money-native .tp-product-grid,
body.tp-money-native .merchant-grid,
body.tp-money-native .merchant-stats,
body.tp-money-native .mq-layout,
body.tp-money-native .ms-grid,
body.tp-money-native .mr-stats,
body.tp-money-native .m-bot-stats,
body.tp-money-native .public-grid {
    min-width: 0;
}

body.tp-money-native .tp-page-hero,
body.tp-money-native .tp-hero-card {
    box-shadow: var(--tp-card-shadow);
}

body.tp-money-native .tp-page-hero h1,
body.tp-money-native .tp-hero-card h1,
body.tp-money-native .tp-hero-card h2,
body.tp-money-native .public-hero h1 {
    letter-spacing: -0.04em;
}

/* Dashboard joins the shared system while retaining its existing layout and content. */
body.tp-dashboard {
    padding: 0;
}

body.tp-dashboard .tp-home {
    padding-inline: clamp(14px, 2.5vw, 24px);
    padding-bottom: 112px;
}

body.tp-dashboard .tp-appbar {
    position: sticky;
    top: 0;
    z-index: 30;
    margin-inline: calc(clamp(14px, 2.5vw, 24px) * -1);
    padding-inline: clamp(14px, 2.5vw, 24px);
    background: color-mix(in srgb, var(--tp-bg) 88%, transparent);
    border-bottom: 1px solid var(--tp-border);
    backdrop-filter: blur(18px);
}

body.tp-dashboard .tp-hero,
body.tp-dashboard .tp-balance-card,
body.tp-dashboard .tp-status-card,
body.tp-dashboard .tp-activity-card,
body.tp-dashboard .tp-quick-card {
    border-radius: var(--tp-card-radius);
}

body.tp-dashboard .tp-action-card,
body.tp-dashboard a[class*="card"] {
    min-height: 112px;
}

body.tp-dashboard a[class*="card"] > * {
    pointer-events: none;
}

@media (max-width: 900px) {
    body.tp-money-native .tp-grid,
    body.tp-money-native .tp-grid.reverse,
    body.tp-money-native .mq-layout,
    body.tp-money-native .scan-layout,
    body.tp-money-native .merchant-grid,
    body.tp-money-native .ms-grid,
    body.tp-money-native .public-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.tp-money-native .tp-page-hero,
    body.tp-money-native .tp-hero-card,
    body.tp-money-native .scan-hero,
    body.tp-money-native .qr-hero {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.tp-money-native .tp-hero-balance,
    body.tp-money-native .balance-pill {
        width: 100%;
        min-width: 0;
        text-align: left;
    }
}

@media (max-width: 760px) {
    body.tp-money-native .tp-page-hero,
    body.tp-money-native .tp-hero-card {
        padding: 19px;
        border-radius: 22px;
    }

    body.tp-money-native .tp-page-hero h1,
    body.tp-money-native .tp-hero-card h1,
    body.tp-money-native .tp-hero-card h2 {
        font-size: clamp(1.7rem, 9vw, 2.45rem);
        line-height: 1.02;
    }

    body.tp-money-native .tp-action-grid,
    body.tp-money-native .tp-doc-grid,
    body.tp-money-native .tp-game-grid,
    body.tp-money-native .tp-service-grid,
    body.tp-money-native .tp-product-grid,
    body.tp-money-native .merchant-actions,
    body.tp-money-native .merchant-stats,
    body.tp-money-native .mr-stats,
    body.tp-money-native .m-bot-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.tp-money-native .tp-section-title,
    body.tp-money-native .tp-history-card-head,
    body.tp-money-native .history-header,
    body.tp-money-native .card-header {
        align-items: flex-start;
    }

    body.tp-money-native .tp-history-card-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    body.tp-money-native .btn-wrapper,
    body.tp-money-native .button-group,
    body.tp-money-native .mq-actions,
    body.tp-money-native .result-actions,
    body.tp-money-native .view-action-bar,
    body.tp-money-native .modal-actions {
        align-items: stretch;
    }

    body.tp-money-native .btn-wrapper > *,
    body.tp-money-native .button-group > *,
    body.tp-money-native .mq-actions > *,
    body.tp-money-native .result-actions > *,
    body.tp-money-native .view-action-bar > *,
    body.tp-money-native .modal-actions > * {
        flex: 1 1 150px;
    }

    body.tp-money-native table {
        min-width: 590px;
    }
}

@media (max-width: 430px) {
    body.tp-money-native .tp-money-screen,
    body.tp-money-native .public-shell,
    body.tp-dashboard .tp-home {
        padding-inline: 12px;
    }

    body.tp-dashboard .tp-appbar {
        margin-inline: -12px;
        padding-inline: 12px;
    }

    body.tp-money-native .tp-panel,
    body.tp-money-native .tp-form-shell,
    body.tp-money-native .merchant-panel,
    body.tp-money-native .mq-card,
    body.tp-money-native .mr-card,
    body.tp-money-native .ms-card,
    body.tp-money-native .m-card,
    body.tp-money-native .bot-card,
    body.tp-money-native .public-section {
        padding: 15px;
        border-radius: 19px !important;
    }

    body.tp-money-native .tp-action-grid,
    body.tp-money-native .tp-doc-grid,
    body.tp-money-native .tp-game-grid,
    body.tp-money-native .tp-service-grid,
    body.tp-money-native .tp-product-grid,
    body.tp-money-native .merchant-actions,
    body.tp-money-native .merchant-stats,
    body.tp-money-native .mr-stats,
    body.tp-money-native .m-bot-stats,
    body.tp-money-native .tp-stat-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.tp-money-native .tp-action-card,
    body.tp-money-native .merchant-action {
        min-height: 96px;
    }

    body.tp-money-native .tp-history-card-head {
        grid-template-columns: minmax(0, 1fr);
    }

    body.tp-money-native .tp-history-card-head > :last-child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }
}

/* Official public information pages. */
body.tp-public-page {
    background:
        radial-gradient(circle at 8% 2%, rgba(49, 87, 216, .13), transparent 27rem),
        radial-gradient(circle at 92% 8%, rgba(16, 163, 127, .11), transparent 24rem),
        var(--tp-bg);
}

.tp-public-page .public-shell {
    max-width: 1120px;
}

.tp-public-page .public-appbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-bottom: 16px;
    padding-inline: 12px;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--tp-surface) 88%, transparent);
    box-shadow: 0 12px 32px rgba(20, 32, 51, .08);
    backdrop-filter: blur(18px);
}

.tp-public-page .public-hero {
    margin-top: 0;
    background:
        linear-gradient(135deg, rgba(49, 87, 216, .07), rgba(16, 163, 127, .08)),
        var(--tp-surface);
}

.tp-public-page .public-hero-mark {
    width: min(240px, 100%);
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(49, 87, 216, .14);
    border-radius: 20px;
    background: rgba(255, 255, 255, .76);
    box-shadow: 0 12px 28px rgba(20, 32, 51, .08);
}

.tp-public-page .public-hero-mark img {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    border-radius: 16px;
}

.tp-public-page .public-hero-mark span,
.tp-public-page .public-hero-mark strong {
    display: block;
}

.tp-public-page .public-hero-mark span {
    color: var(--tp-muted);
    font-size: .72rem;
    font-weight: 800;
}

.tp-public-page .public-hero-mark strong {
    font-size: .9rem;
    font-weight: 900;
}

.tp-public-page .public-link-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    background: var(--tp-surface);
    box-shadow: var(--tp-card-shadow);
}

.tp-public-page .public-link-strip a {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px;
    border-radius: 14px;
    color: var(--tp-muted);
    font-size: .74rem;
    font-weight: 900;
    text-align: center;
}

.tp-public-page .public-link-strip a:hover,
.tp-public-page .public-link-strip a:focus-visible,
.tp-public-page .public-link-strip a[aria-current="page"] {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-green));
    box-shadow: 0 10px 24px rgba(49, 87, 216, .18);
}

.tp-public-page .public-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.tp-public-page .public-product-showcase {
    display: grid;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--tp-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 18%, rgba(49, 87, 216, .12), transparent 18rem),
        radial-gradient(circle at 88% 70%, rgba(16, 163, 127, .14), transparent 20rem),
        var(--tp-surface);
    box-shadow: var(--tp-card-shadow);
    overflow: hidden;
}

.tp-public-page .public-phone-card {
    position: relative;
    min-height: 430px;
    display: grid;
    align-content: start;
    gap: 16px;
    width: min(330px, 100%);
    margin-inline: auto;
    padding: 22px;
    border: 10px solid #10284f;
    border-radius: 42px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 250, 255, .94)),
        #fff;
    box-shadow: 0 28px 60px rgba(16, 40, 79, .18);
}

.tp-public-page .public-phone-card::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 86px;
    height: 8px;
    border-radius: 999px;
    background: #10284f;
    transform: translateX(-50%);
}

.tp-public-page .public-phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.tp-public-page .public-phone-top span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: url("images/indope/app-icon.svg") center/contain no-repeat;
}

.tp-public-page .public-phone-top strong,
.tp-public-page .public-phone-top small {
    display: block;
}

.tp-public-page .public-phone-top small {
    color: var(--tp-muted);
    font-weight: 800;
}

.tp-public-page .public-balance-tile {
    padding: 18px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #155eef, #12a585);
    box-shadow: 0 16px 35px rgba(21, 94, 239, .24);
}

.tp-public-page .public-balance-tile span,
.tp-public-page .public-balance-tile small {
    display: block;
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tp-public-page .public-balance-tile strong {
    display: block;
    margin: 8px 0;
    font-size: 2rem;
    font-weight: 950;
}

.tp-public-page .public-mini-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.tp-public-page .public-mini-row span,
.tp-public-page .public-payment-card {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    background: var(--tp-surface-soft);
    color: var(--tp-text);
    font-size: .8rem;
    font-weight: 900;
}

.tp-public-page .public-payment-card i,
.tp-public-page .public-mini-row i {
    color: var(--tp-green);
}

.tp-public-page .public-payment-card strong,
.tp-public-page .public-payment-card span {
    display: block;
}

.tp-public-page .public-payment-card span {
    color: var(--tp-muted);
    font-size: .72rem;
}

.tp-public-page .public-showcase-copy {
    display: grid;
    align-content: center;
    gap: 16px;
    min-width: 0;
}

.tp-public-page .public-showcase-copy h2 {
    max-width: 680px;
    margin: 0;
    color: var(--tp-text);
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: .96;
    letter-spacing: -.06em;
    font-weight: 950;
}

.tp-public-page .public-showcase-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--tp-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    font-weight: 650;
}

.tp-public-page .public-showcase-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.tp-public-page .public-showcase-stats div {
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--tp-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, .78);
}

.tp-public-page .public-showcase-stats strong,
.tp-public-page .public-showcase-stats span {
    display: block;
}

.tp-public-page .public-showcase-stats strong {
    color: var(--tp-text);
    font-weight: 950;
}

.tp-public-page .public-showcase-stats span {
    margin-top: 6px;
    color: var(--tp-muted);
    font-size: .78rem;
    font-weight: 800;
}

.tp-public-page .public-section {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-content: start;
    min-height: 190px;
}

.tp-public-page .public-section-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-green));
    box-shadow: 0 12px 24px rgba(49, 87, 216, .18);
}

.tp-public-page .public-section h2 {
    margin: 3px 0 8px;
    color: var(--tp-text);
    font-size: 1.05rem;
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: -.02em;
}

.tp-public-page .public-section p,
.tp-public-page .public-faq p,
.tp-public-page .public-support-cta p {
    margin: 0;
    color: var(--tp-muted);
    line-height: 1.72;
}

.tp-public-page .public-faq {
    margin-top: 18px;
}

.tp-public-page .public-faq-list {
    display: grid;
    gap: 9px;
}

.tp-public-page .public-faq details {
    border: 1px solid var(--tp-border);
    border-radius: 15px;
    background: var(--tp-surface-soft);
    overflow: hidden;
}

.tp-public-page .public-faq summary {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 15px;
    color: var(--tp-text);
    font-weight: 900;
    cursor: pointer;
}

.tp-public-page .public-faq details p {
    padding: 0 15px 15px;
}

.tp-public-page .public-support-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, #173b98, #157f89 62%, #0b8b69);
    box-shadow: var(--tp-shadow);
}

.tp-public-page .public-support-cta h2 {
    margin: 7px 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.tp-public-page .public-support-cta p,
.tp-public-page .public-support-cta .tp-kicker {
    color: rgba(255, 255, 255, .8);
}

.tp-public-page .public-support-cta .tp-btn {
    background: #fff !important;
    color: #155eef !important;
    box-shadow: none;
}

.tp-public-page .public-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px 28px;
    align-items: center;
    margin-top: 20px;
    padding: 24px;
    border: 1px solid var(--tp-border);
    border-radius: 24px;
    background: var(--tp-surface);
    box-shadow: var(--tp-card-shadow);
}

.tp-public-page .public-footer-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tp-public-page .public-footer-brand img {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.tp-public-page .public-footer-brand strong,
.tp-public-page .public-footer-brand span {
    display: block;
}

.tp-public-page .public-footer-brand span,
.tp-public-page .public-footer p {
    color: var(--tp-muted);
    font-size: .76rem;
}

.tp-public-page .public-footer nav {
    display: flex;
    justify-content: flex-end;
    gap: 4px 16px;
    flex-wrap: wrap;
}

.tp-public-page .public-footer nav a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-muted);
    font-size: .78rem;
    font-weight: 850;
}

.tp-public-page .public-footer nav a:hover,
.tp-public-page .public-footer nav a:focus-visible {
    color: var(--tp-primary);
}

.tp-public-page .public-footer p {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid var(--tp-border);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .tp-public-page .public-link-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tp-public-page .public-product-showcase {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-public-page .public-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-public-page .public-section {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .tp-public-page .public-appbar {
        position: static;
        padding-block: 10px;
    }

    .tp-public-page .public-appbar .tp-btn {
        width: 44px;
        padding: 0;
        font-size: 0;
    }

    .tp-public-page .public-appbar .tp-btn i {
        font-size: 1rem;
    }

    .tp-public-page .public-link-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-public-page .public-phone-card {
        min-height: 360px;
        border-radius: 34px;
    }

    .tp-public-page .public-showcase-stats {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-public-page .public-section {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 17px;
    }

    .tp-public-page .public-section-icon {
        width: 42px;
        height: 42px;
    }

    .tp-public-page .public-support-cta,
    .tp-public-page .public-footer {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-public-page .public-support-cta .tp-btn {
        width: 100%;
    }

    .tp-public-page .public-footer nav {
        justify-content: flex-start;
    }
}

/* Phase 2 final user-side tab/action overrides */
body:not(.tp-admin-control) .tp-theme-toggle,
body:not(.tp-admin-control) [data-theme-toggle] {
    display: none !important;
}

body.tp-money-native .tp-money-nav {
    display: flex !important;
    gap: 8px;
    padding: 6px;
    overflow-x: auto;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--tp-surface) 94%, transparent);
    box-shadow: var(--tp-card-shadow);
    scrollbar-width: none;
}

body.tp-money-native .tp-money-nav::-webkit-scrollbar,
body.tp-money-native .segmented::-webkit-scrollbar,
body.tp-money-native .tp-manager-tabs::-webkit-scrollbar,
body.tp-money-native .view-filter-tabs::-webkit-scrollbar {
    display: none;
}

body.tp-money-native .tp-money-nav a {
    flex: 1 0 auto;
    min-width: 128px;
    min-height: 52px;
    flex-direction: row;
    gap: 9px;
    padding: 10px 16px;
    border: 0;
    border-radius: 13px;
    box-shadow: none;
}

body.tp-money-native .segmented,
body.tp-money-native .tp-manager-tabs,
body.tp-money-native .view-filter-tabs,
body.tp-money-native .mq-tabs,
body.tp-money-native .merchant-actions,
body.tp-money-native .mr-filter {
    min-height: 52px;
}

body.tp-money-native .segmented button,
body.tp-money-native .tp-manager-tabs button,
body.tp-money-native .tp-manager-tabs a,
body.tp-money-native .view-filter-tabs button,
body.tp-money-native .mq-tabs button,
body.tp-money-native .mq-tabs a,
body.tp-money-native .merchant-action,
body.tp-money-native .mr-filter a,
body.tp-money-native .mr-filter button {
    min-height: 44px;
}

body.tp-money-native .tp-wallet-support-grid {
    align-items: stretch;
}

body.tp-money-native .tp-wallet-help {
    display: grid;
    align-content: center;
    gap: 18px;
}

body.tp-money-native .tp-wallet-help h2 {
    margin: 7px 0;
}

body.tp-money-native .tp-wallet-help p {
    margin: 0;
    color: var(--tp-muted);
    line-height: 1.65;
}

@media (max-width: 640px) {
    body.tp-money-native .tp-money-nav {
        display: none !important;
    }

    body.tp-money-native .tp-money-nav a {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 48px;
        justify-content: center;
        gap: 5px;
        padding: 8px 6px;
        scroll-snap-align: none;
        text-align: center;
    }

    body.tp-money-native .tp-money-nav a span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px;
    }

    body.tp-money-native .segmented,
    body.tp-money-native .tp-manager-tabs,
    body.tp-money-native .view-filter-tabs,
    body.tp-money-native .mq-tabs,
    body.tp-money-native .merchant-actions,
    body.tp-money-native .mr-filter {
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
    }

    body.tp-money-native .segmented button,
    body.tp-money-native .tp-manager-tabs button,
    body.tp-money-native .tp-manager-tabs a,
    body.tp-money-native .view-filter-tabs button,
    body.tp-money-native .mq-tabs button,
    body.tp-money-native .mq-tabs a,
    body.tp-money-native .merchant-action,
    body.tp-money-native .mr-filter a,
    body.tp-money-native .mr-filter button {
        flex: 0 0 auto;
        min-width: 112px;
        min-height: 44px;
    }
}

/* Final cascade authority for the TruePe foundation over legacy compatibility CSS. */
html.tp-truepe-ui,
html.tp-truepe-ui body:not(.tp-admin-control) {
    --indope-ink: var(--truepe-text);
    --indope-muted: var(--truepe-muted);
    --indope-blue: var(--truepe-primary);
    --indope-cyan: var(--truepe-primary-container);
    --indope-jade: var(--truepe-success);
    --indope-gold: var(--truepe-warning);
    --indope-coral: var(--truepe-danger);
    --indope-gradient: linear-gradient(135deg, var(--truepe-primary), var(--truepe-primary-container));
    --ip-canvas: var(--truepe-canvas);
    --ip-surface: var(--truepe-surface);
    --ip-text: var(--truepe-text);
    --ip-ink: var(--truepe-text);
    --ip-muted: var(--truepe-muted);
    --ip-line: var(--truepe-border);
    --ip-blue-50: var(--truepe-primary-soft);
    --ip-blue-500: var(--truepe-primary-container);
    --ip-blue-600: var(--truepe-primary);
    --ip-green-50: var(--truepe-success-soft);
    --ip-green-600: var(--truepe-success);
    --tp-bg: var(--truepe-canvas);
    --tp-surface: var(--truepe-surface);
    --tp-surface-soft: var(--truepe-surface-soft);
    --tp-text: var(--truepe-text);
    --tp-muted: var(--truepe-muted);
    --tp-border: var(--truepe-border);
    --tp-primary: var(--truepe-primary);
    --tp-primary-2: var(--truepe-primary-container);
    --tp-green: var(--truepe-success);
    --tp-yellow: var(--truepe-warning);
    --tp-red: var(--truepe-danger);
    --tp-violet: var(--truepe-primary-container);
    --tp-focus-ring: var(--truepe-focus-ring);
    --tp-card-shadow: var(--truepe-shadow-md);
    --tp-control-height: var(--truepe-control-height);
    --tp-card-radius: var(--truepe-radius-card);
}

html.tp-truepe-ui .truepe-button {
    min-height: var(--truepe-control-height);
    border-radius: var(--truepe-radius-control);
    font-family: var(--truepe-font-sans);
    font-weight: 700;
}

html.tp-truepe-ui .truepe-field {
    min-height: var(--truepe-control-height);
    border-color: var(--truepe-border);
    border-radius: var(--truepe-radius-control);
    color: var(--truepe-text);
    background: var(--truepe-surface);
}

html.tp-truepe-ui .truepe-status {
    border-radius: var(--truepe-radius-pill);
    font-family: var(--truepe-font-sans);
}

html.tp-truepe-ui .truepe-ledger-shell {
    max-width: 100%;
    overflow-x: auto;
    border-color: var(--truepe-border);
    border-radius: var(--truepe-radius-card);
}

@media (min-width: 1025px) {
    body.tp-money-native.has-truepe-sidebar .tp-money-screen {
        width: min(1088px, calc(100vw - 352px)) !important;
        margin-left: max(328px, calc((100vw - var(--truepe-content-max, 1180px)) / 2 + 328px)) !important;
        margin-right: max(24px, calc((100vw - var(--truepe-content-max, 1180px)) / 2 + 24px)) !important;
    }

    body.tp-money-native.has-truepe-sidebar.wallet-sidebar-collapsed .tp-money-screen {
        width: min(var(--truepe-content-max, 1180px), calc(100vw - 48px)) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.tp-wallet-context-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.tp-module-context-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.tp-wallet-context-nav::-webkit-scrollbar {
    display: none;
}

.tp-module-context-nav::-webkit-scrollbar {
    display: none;
}

.tp-wallet-context-nav a {
    flex: 0 0 auto;
    min-width: 118px;
    scroll-snap-align: start;
}

.tp-module-context-nav a {
    flex: 0 0 auto;
    min-width: 128px;
    scroll-snap-align: start;
}

.tp-wallet-contact-card,
.tp-wallet-upload-workspace {
    min-width: 0;
}

.tp-wallet-telegram-box,
.tp-wallet-upload-zone {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid var(--tp-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(48, 86, 255, .06), rgba(255, 255, 255, .92));
    text-align: center;
}

.tp-wallet-telegram-icon,
.tp-wallet-upload-zone i {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 18px 36px rgba(53, 67, 226, .22);
    font-size: 28px;
}

.tp-wallet-telegram-box strong,
.tp-wallet-upload-zone strong {
    color: var(--tp-text);
    font-size: 1.05rem;
}

.tp-wallet-telegram-box p,
.tp-wallet-upload-zone span {
    max-width: 420px;
    margin: 0;
    color: var(--tp-muted);
    line-height: 1.6;
}

.tp-wallet-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    background: var(--tp-surface-soft);
}

.tp-wallet-segmented button {
    min-width: 0;
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: var(--tp-muted);
    background: transparent;
    font-weight: 900;
    cursor: pointer;
}

.tp-wallet-segmented button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 12px 24px rgba(53, 67, 226, .18);
}

.tp-withdraw-mode-shell {
    margin-top: 14px;
}

.tp-withdraw-mode-shell [hidden] {
    display: none !important;
}

body.tp-money-native .tp-toggle-grid {
    align-items: stretch;
}

body.tp-money-native .tp-toggle-pill,
body.tp-money-native .tp-switch-card {
    position: relative;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--tp-border);
    border-radius: 18px;
    color: var(--tp-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 250, 252, .92));
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    font-weight: 850;
    cursor: pointer;
}

body.tp-money-native .tp-toggle-pill i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 12px;
    color: var(--tp-primary);
    background: var(--tp-surface-soft);
}

body.tp-money-native .tp-toggle-pill input[type="checkbox"],
body.tp-money-native .tp-switch-card input[type="checkbox"],
body.tp-money-native input[type="checkbox"][data-qr-sound] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #d9e2ef;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease;
}

body.tp-money-native .tp-toggle-pill input[type="checkbox"]::after,
body.tp-money-native .tp-switch-card input[type="checkbox"]::after,
body.tp-money-native input[type="checkbox"][data-qr-sound]::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .22);
    transition: transform .18s ease;
}

body.tp-money-native .tp-toggle-pill input[type="checkbox"]:checked,
body.tp-money-native .tp-switch-card input[type="checkbox"]:checked,
body.tp-money-native input[type="checkbox"][data-qr-sound]:checked {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 8px 18px rgba(53, 67, 226, .18);
}

body.tp-money-native .tp-toggle-pill input[type="checkbox"]:checked::after,
body.tp-money-native .tp-switch-card input[type="checkbox"]:checked::after,
body.tp-money-native input[type="checkbox"][data-qr-sound]:checked::after {
    transform: translateX(20px);
}

body.tp-money-native .tp-toggle-pill:has(input[type="checkbox"]:checked),
body.tp-money-native .tp-switch-card:has(input[type="checkbox"]:checked) {
    border-color: rgba(53, 67, 226, .32);
    background: linear-gradient(180deg, rgba(239, 244, 255, .98), rgba(255, 255, 255, .96));
}

body.tp-money-native .tp-claim-btn {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(53, 67, 226, .2);
}

body.tp-money-native .tp-claim-btn:disabled {
    opacity: .72;
    cursor: wait;
}

.tp-wallet-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
}

.tp-wallet-flow-step {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 11px;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    color: var(--tp-muted);
    background: var(--tp-surface);
    font-size: .76rem;
    font-weight: 900;
}

.tp-wallet-flow-step span {
    width: 26px;
    height: 26px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 26px;
    border-radius: 10px;
    color: var(--tp-primary);
    background: var(--tp-surface-soft);
}

.tp-wallet-flow-step.is-active,
.tp-wallet-flow-step.is-done {
    color: var(--tp-text);
    border-color: rgba(53, 67, 226, .28);
    background: linear-gradient(180deg, rgba(239, 244, 255, .96), rgba(255, 255, 255, .96));
}

.tp-wallet-flow-step.is-active span,
.tp-wallet-flow-step.is-done span {
    color: #fff;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.tp-wallet-bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 160;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 17, 31, .46);
    backdrop-filter: blur(10px);
}

.tp-wallet-bottom-sheet.active {
    display: flex;
}

.tp-wallet-receipt-card {
    width: min(480px, 100%);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    border: 1px solid var(--tp-border);
    border-radius: 26px;
    background: var(--tp-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28);
    padding: 20px;
}

.tp-wallet-receipt-hero {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    border-radius: 22px;
    color: #fff;
    text-align: center;
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.tp-wallet-success-mark {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--tp-green);
    background: #fff;
    font-size: 1.55rem;
    box-shadow: 0 16px 30px rgba(15, 23, 42, .18);
}

.tp-wallet-receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.tp-wallet-receipt-grid div,
.tp-wallet-preview-row {
    min-width: 0;
    border: 1px solid var(--tp-border);
    border-radius: 16px;
    padding: 11px 12px;
    background: var(--tp-surface-soft);
}

.tp-wallet-receipt-grid span,
.tp-wallet-preview-row span {
    display: block;
    color: var(--tp-muted);
    font-size: .66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.tp-wallet-receipt-grid strong,
.tp-wallet-preview-row strong {
    display: block;
    margin-top: 4px;
    color: var(--tp-text);
    overflow-wrap: anywhere;
}

.tp-wallet-preview-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    max-height: 320px;
    overflow: auto;
}

.tp-wallet-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.tp-wallet-sticky-cta {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.truepe-qr-alert-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--tp-muted);
    font-size: .78rem;
    font-weight: 850;
}

.truepe-qr-alert-toggle input[type="checkbox"] {
    width: 42px;
    height: 24px;
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    border-radius: 999px;
    background: #d7def0;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease;
}

.truepe-qr-alert-toggle input[type="checkbox"]::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    margin: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .18);
    transition: transform .2s ease;
}

.truepe-qr-alert-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
}

.truepe-qr-alert-toggle input[type="checkbox"]:checked::before {
    transform: translateX(18px);
}

@media (max-width: 640px) {
    .tp-wallet-context-nav a {
        min-width: 104px;
    }

    .tp-module-context-nav a {
        min-width: 112px;
    }

    .tp-wallet-segmented {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-wallet-flow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-wallet-flow-step {
        font-size: .68rem;
        padding: 8px;
    }

    .tp-wallet-bottom-sheet {
        align-items: end;
        padding: 0;
    }

    .tp-wallet-receipt-card {
        width: 100%;
        max-height: 94dvh;
        border-radius: 26px 26px 0 0;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .tp-wallet-receipt-grid,
    .tp-wallet-preview-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .tp-wallet-sticky-cta {
        position: sticky;
        bottom: 0;
        display: grid;
        grid-template-columns: 1fr;
        padding-top: 10px;
        background: linear-gradient(180deg, rgba(255,255,255,0), var(--tp-surface) 22%);
    }
}

/* Reward Claim terminal overrides: keep final polish ahead of broad wallet/public cascades. */
html:has(body.tp-reward-claim-page),
body.tp-reward-claim-page {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

body.tp-reward-claim-page .tp-claim-screen {
    max-width: 100vw !important;
    overflow-x: clip !important;
}

body.tp-reward-claim-page .tp-claim-hero h1 {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
}

@media (max-width: 360px) {
    body.tp-reward-claim-page .tp-claim-screen {
        width: calc(100vw - 32px) !important;
        max-width: 328px !important;
    }

    body.tp-reward-claim-page .tp-claim-hero h1 {
        max-width: 220px !important;
        font-size: clamp(1.32rem, 8.6vw, 1.72rem) !important;
        line-height: 1.08 !important;
    }
}

/* Reward Claim reference-theme match pass: light pastel IndoPe reward surface. */
body.tp-reward-claim-page {
    --tp-reference-ink: #11143a;
    --tp-reference-muted: #5f6684;
    --tp-reference-purple: #5c22d6;
    --tp-reference-purple-2: #7a2ff0;
    --tp-reference-lilac: #f1eaff;
    --tp-reference-line: #ded8fb;
    background:
        radial-gradient(circle at 8% 6%, rgba(111, 76, 255, 0.12), transparent 26rem),
        radial-gradient(circle at 90% 10%, rgba(65, 214, 193, 0.13), transparent 25rem),
        linear-gradient(180deg, #fbf8ff 0%, #f7f6ff 48%, #ffffff 100%) !important;
    color: var(--tp-reference-ink);
}

body.tp-reward-claim-page .tp-claim-screen {
    gap: 16px;
}

body.tp-reward-claim-page .tp-claim-appbar,
body.tp-reward-claim-page .tp-claim-card,
body.tp-reward-claim-page .tp-claim-hero,
body.tp-reward-claim-page .tp-claim-progress,
body.tp-reward-claim-page .tp-reward-details-card,
body.tp-reward-claim-page .tp-task-checklist-card,
body.tp-reward-claim-page .tp-gate-card,
body.tp-reward-claim-page .tp-normal-claim-card,
body.tp-reward-claim-page .tp-dice-claim-card,
body.tp-reward-claim-page .tp-toss-claim-card,
body.tp-reward-claim-page .tp-scratch-claim-card,
body.tp-reward-claim-page .tp-normal-receipt-card,
body.tp-reward-claim-page .tp-premium-game-popup,
body.tp-reward-claim-page .tp-claim-state-card {
    border-color: rgba(116, 84, 220, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 251, 255, 0.96)) !important;
    box-shadow: 0 18px 50px rgba(72, 58, 142, 0.09) !important;
}

body.tp-reward-claim-page .tp-claim-appbar {
    border-radius: 22px !important;
    min-height: 72px;
}

body.tp-reward-claim-page .tp-claim-hero {
    border-radius: 24px !important;
    padding: clamp(18px, 2.2vw, 26px);
}

body.tp-reward-claim-page .tp-claim-hero h1 {
    color: var(--tp-reference-ink) !important;
    font-weight: 900;
    letter-spacing: 0;
}

body.tp-reward-claim-page .tp-reward-badge,
body.tp-reward-claim-page .tp-common-badge,
body.tp-reward-claim-page .tp-status-pill,
body.tp-reward-claim-page .tp-gate-badge,
body.tp-reward-claim-page .tp-normal-claim-badge,
body.tp-reward-claim-page .tp-dice-state-pill,
body.tp-reward-claim-page .tp-toss-state-pill,
body.tp-reward-claim-page .tp-scratch-state-pill,
body.tp-reward-claim-page .tp-premium-status-badge {
    border-color: rgba(92, 34, 214, 0.16) !important;
    color: #37139d !important;
    background: linear-gradient(180deg, #f3ecff, #ffffff) !important;
    box-shadow: 0 8px 18px rgba(92, 34, 214, 0.06);
}

body.tp-reward-claim-page .tp-claim-amount,
body.tp-reward-claim-page .tp-summary-item,
body.tp-reward-claim-page .tp-reward-detail-row,
body.tp-reward-claim-page .tp-task-item,
body.tp-reward-claim-page .tp-normal-claim-summary div,
body.tp-reward-claim-page .tp-normal-receipt-grid div,
body.tp-reward-claim-page .tp-stepper li,
body.tp-reward-claim-page .tp-normal-status-strip,
body.tp-reward-claim-page .tp-dice-status-strip,
body.tp-reward-claim-page .tp-toss-status-strip,
body.tp-reward-claim-page .tp-scratch-status-strip,
body.tp-reward-claim-page #channelsSection .channel-item {
    border-color: rgba(116, 84, 220, 0.13) !important;
    background: linear-gradient(180deg, #ffffff, #fbf9ff) !important;
    box-shadow: 0 10px 28px rgba(72, 58, 142, 0.055);
}

body.tp-reward-claim-page .tp-summary-item {
    min-height: 102px;
    border-radius: 22px !important;
}

body.tp-reward-claim-page .tp-claim-meta span,
body.tp-reward-claim-page .tp-normal-input-wrap,
body.tp-reward-claim-page .tp-gate-input-wrap,
body.tp-reward-claim-page input,
body.tp-reward-claim-page .form-input,
body.tp-reward-claim-page .referral-link {
    border-color: rgba(116, 84, 220, 0.14) !important;
    background: #ffffff !important;
}

body.tp-reward-claim-page .tp-claim-meta span,
body.tp-reward-claim-page .tp-intel-card-head p,
body.tp-reward-claim-page .tp-gate-head p,
body.tp-reward-claim-page .tp-task-item small,
body.tp-reward-claim-page .tp-normal-status-strip small,
body.tp-reward-claim-page .tp-dice-status-strip small,
body.tp-reward-claim-page .tp-toss-status-strip small,
body.tp-reward-claim-page .tp-scratch-status-strip small {
    color: var(--tp-reference-muted) !important;
}

body.tp-reward-claim-page .tp-icon-btn,
body.tp-reward-claim-page .tp-normal-claim-icon,
body.tp-reward-claim-page .tp-normal-error-icon,
body.tp-reward-claim-page .tp-claim-state-icon,
body.tp-reward-claim-page .tp-gate-icon,
body.tp-reward-claim-page .tp-task-icon,
body.tp-reward-claim-page .tp-detail-icon,
body.tp-reward-claim-page .tp-dice-head-icon,
body.tp-reward-claim-page .tp-toss-head-icon,
body.tp-reward-claim-page .tp-scratch-head-icon,
body.tp-reward-claim-page .channel-icon,
body.tp-reward-claim-page .tp-premium-game-icon {
    color: var(--tp-reference-purple) !important;
    background: linear-gradient(145deg, #f5efff, #ffffff) !important;
    border: 1px solid rgba(116, 84, 220, 0.12);
    box-shadow: 0 12px 26px rgba(92, 34, 214, 0.08) !important;
}

body.tp-reward-claim-page .tp-btn.primary,
body.tp-reward-claim-page .tp-claim-btn,
body.tp-reward-claim-page .btn-referral,
body.tp-reward-claim-page .orange-btn,
body.tp-reward-claim-page .tp-youtube-gate-card .reward-button,
body.tp-reward-claim-page .tp-youtube-gate-card .claim-reward-btn {
    border: 0 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--tp-reference-purple), var(--tp-reference-purple-2)) !important;
    box-shadow: 0 14px 30px rgba(92, 34, 214, 0.22) !important;
}

body.tp-reward-claim-page .tp-btn:not(.primary) {
    color: #38159d !important;
    background: linear-gradient(180deg, #ffffff, #f6f1ff) !important;
    border-color: rgba(116, 84, 220, 0.14) !important;
}

body.tp-reward-claim-page .tp-stepper li.is-active,
body.tp-reward-claim-page .tp-stepper li.is-complete {
    background: linear-gradient(180deg, #f2ebff, #ffffff) !important;
    border-color: rgba(92, 34, 214, 0.22) !important;
    color: #231064 !important;
}

body.tp-reward-claim-page .tp-stepper li span,
body.tp-reward-claim-page .tp-normal-status-dot {
    background: linear-gradient(135deg, var(--tp-reference-purple), var(--tp-reference-purple-2)) !important;
    box-shadow: 0 8px 18px rgba(92, 34, 214, 0.24) !important;
}

body.tp-reward-claim-page #channelsSection .status-verified,
body.tp-reward-claim-page .tp-status-completed,
body.tp-reward-claim-page .tp-status-active {
    color: #047857 !important;
    background: #e8fbf2 !important;
    border-color: rgba(16, 163, 127, 0.16) !important;
}

body.tp-reward-claim-page #channelsSection .status-pending,
body.tp-reward-claim-page .tp-status-pending,
body.tp-reward-claim-page .tp-status-ready {
    color: #37139d !important;
    background: #f1eaff !important;
    border-color: rgba(92, 34, 214, 0.16) !important;
}

body.tp-reward-claim-page .tp-dice-preview,
body.tp-reward-claim-page #diceContainer .dice,
body.tp-reward-claim-page .dice-container .dice {
    background: linear-gradient(145deg, #ffffff 0%, #eee4ff 58%, #f7f3ff 100%) !important;
    box-shadow:
        0 26px 52px rgba(92, 34, 214, 0.18),
        inset 12px 12px 24px rgba(255, 255, 255, 0.95),
        inset -12px -12px 24px rgba(92, 34, 214, 0.09) !important;
}

body.tp-reward-claim-page .tp-toss-preview,
body.tp-reward-claim-page .coin-face {
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.92), transparent 18%),
        linear-gradient(145deg, #fff8d9 0%, #f7c948 45%, #e28a08 100%) !important;
}

body.tp-reward-claim-page .tp-scratch-voucher,
body.tp-reward-claim-page .scratch-card,
body.tp-reward-claim-page .scratch-result {
    background:
        linear-gradient(115deg, transparent 0 43%, rgba(255, 255, 255, 0.45) 50%, transparent 58% 100%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.18), transparent 24%),
        linear-gradient(145deg, #ffffff, #fff4d6 44%, #f0e7ff) !important;
}

body.tp-reward-claim-page .tp-premium-receipt-card,
body.tp-reward-claim-page .tp-premium-game-popup {
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 50% 0%, rgba(92, 34, 214, 0.10), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%) !important;
}

body.tp-reward-claim-page .tp-normal-receipt-hero .tp-indope-seal {
    background: linear-gradient(145deg, #ffffff, #f1eaff) !important;
    box-shadow: 0 18px 42px rgba(92, 34, 214, 0.16) !important;
}

@media (max-width: 560px) {
    body.tp-reward-claim-page .tp-claim-screen {
        gap: 12px;
    }

    body.tp-reward-claim-page .tp-claim-appbar,
    body.tp-reward-claim-page .tp-claim-hero,
    body.tp-reward-claim-page .tp-claim-progress,
    body.tp-reward-claim-page .tp-claim-body,
    body.tp-reward-claim-page .tp-reward-details-card,
    body.tp-reward-claim-page .tp-task-checklist-card {
        border-radius: 22px !important;
    }

    body.tp-reward-claim-page .tp-claim-hero h1 {
        font-size: clamp(1.8rem, 9vw, 2.45rem) !important;
    }
}

/* IndoPe shared switch final cascade override */
body.tp-money-native .tp-switch-card,
body.tp-money-native .tp-toggle-pill,
body.tp-money-native .m-toggle-row {
    min-width: 0;
}

body.tp-money-native .tp-switch-card > span,
body.tp-money-native .tp-toggle-pill > span,
body.tp-money-native .m-toggle-row > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

body.tp-money-native .tp-switch-card input[type="checkbox"],
body.tp-money-native .tp-toggle-pill input[type="checkbox"],
body.tp-money-native input[type="checkbox"][data-qr-sound],
body.tp-money-native .m-toggle input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    position: relative !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 28px !important;
    flex: 0 0 48px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #d8e1ee !important;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12) !important;
    cursor: pointer;
    transition: background 180ms ease, box-shadow 180ms ease;
}

body.tp-money-native .tp-switch-card input[type="checkbox"]::after,
body.tp-money-native .tp-toggle-pill input[type="checkbox"]::after,
body.tp-money-native input[type="checkbox"][data-qr-sound]::after,
body.tp-money-native .m-toggle input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.24);
    transform: translateX(0);
    transition: transform 180ms ease;
}

body.tp-money-native .tp-switch-card input[type="checkbox"]:checked,
body.tp-money-native .tp-toggle-pill input[type="checkbox"]:checked,
body.tp-money-native input[type="checkbox"][data-qr-sound]:checked,
body.tp-money-native .m-toggle input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2)) !important;
    box-shadow: 0 8px 18px rgba(49, 87, 216, 0.2) !important;
}

body.tp-money-native .tp-switch-card input[type="checkbox"]:checked::after,
body.tp-money-native .tp-toggle-pill input[type="checkbox"]:checked::after,
body.tp-money-native input[type="checkbox"][data-qr-sound]:checked::after,
body.tp-money-native .m-toggle input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

body.tp-money-native .m-toggle {
    display: inline-flex !important;
    align-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

body.tp-money-native .m-toggle-track {
    display: none !important;
}

body.tp-money-native .m-toggle-row {
    justify-content: space-between;
}

body.tp-money-native .api-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 28px;
}

body.tp-money-native .api-switch input[type="checkbox"] {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    width: 100% !important;
    min-width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer;
}

body.tp-money-native .api-switch .api-slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d8e1ee;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
    transition: background 180ms ease, box-shadow 180ms ease;
}

body.tp-money-native .api-switch .api-slider::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.24);
    transition: transform 180ms ease;
}

body.tp-money-native .api-switch input[type="checkbox"]:checked + .api-slider {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-primary-2));
    box-shadow: 0 8px 18px rgba(49, 87, 216, 0.2);
}

body.tp-money-native .api-switch input[type="checkbox"]:checked + .api-slider::before {
    transform: translateX(20px);
}

body.tp-money-native .api-switch input[type="checkbox"]:disabled + .api-slider {
    opacity: 0.58;
    cursor: not-allowed;
}

@media (max-width: 430px) {
    body.tp-money-native .tp-switch-card input[type="checkbox"],
    body.tp-money-native .tp-toggle-pill input[type="checkbox"],
    body.tp-money-native input[type="checkbox"][data-qr-sound],
    body.tp-money-native .m-toggle input[type="checkbox"] {
        width: 44px !important;
        min-width: 44px !important;
        height: 26px !important;
        flex-basis: 44px !important;
    }

    body.tp-money-native .api-switch {
        flex-basis: 44px;
        width: 44px;
        height: 26px;
    }

    body.tp-money-native .tp-switch-card input[type="checkbox"]::after,
    body.tp-money-native .tp-toggle-pill input[type="checkbox"]::after,
    body.tp-money-native input[type="checkbox"][data-qr-sound]::after,
    body.tp-money-native .m-toggle input[type="checkbox"]::after {
        width: 18px;
        height: 18px;
    }

    body.tp-money-native .api-switch .api-slider::before {
        width: 18px;
        height: 18px;
    }

    body.tp-money-native .tp-switch-card input[type="checkbox"]:checked::after,
    body.tp-money-native .tp-toggle-pill input[type="checkbox"]:checked::after,
    body.tp-money-native input[type="checkbox"][data-qr-sound]:checked::after,
    body.tp-money-native .m-toggle input[type="checkbox"]:checked::after {
        transform: translateX(18px);
    }

    body.tp-money-native .api-switch input[type="checkbox"]:checked + .api-slider::before {
        transform: translateX(18px);
    }
}

/* IndoPe live UI patch active 20260707 - final popup cascade */
html body div:where(.swal2-container) div:where(.swal2-popup),
html body.tp-money-native div:where(.swal2-container) div:where(.swal2-popup) {
    width: min(360px, calc(100vw - 28px)) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 14px 16px !important;
    border-radius: 18px !important;
    background: var(--tp-surface, #ffffff) !important;
    color: var(--tp-text, #142033) !important;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18) !important;
}

html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 28px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    min-height: 64px !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    font-size: 0.56rem !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--tp-text, #142033) !important;
    font-size: 0.92rem !important;
    line-height: 1.28 !important;
    font-weight: 850 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-html-container {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    color: var(--tp-muted, #64748b) !important;
    font-size: 0.78rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-close {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 28px !important;
    height: 28px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    color: var(--tp-muted, #64748b) !important;
    font-size: 1.4rem !important;
    line-height: 28px !important;
}

/* IndoPe live UI patch active 20260707 - custom modal button guard */
body.tp-money-native .modal-backdrop .modal-close-icon,
body.tp-money-native .modal-backdrop button.modal-close-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important;
}

body.tp-money-native #confirmation-modal #confirm-reset-btn {
    color: #ffffff !important;
    border-color: transparent !important;
    background: #d63031 !important;
    box-shadow: 0 5px 0 0 #ff7675 !important;
}

/* IndoPe live UI patch active 20260707 - final alert popup and API toggle guard */
html body div:where(.swal2-container) {
    z-index: 100000 !important;
    padding: 10px !important;
}

html body div:where(.swal2-container) div:where(.swal2-popup),
html body.tp-money-native div:where(.swal2-container) div:where(.swal2-popup),
html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    width: auto !important;
    min-width: 0 !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    grid-template-columns: 48px minmax(0, 1fr) 40px !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    align-items: center !important;
    padding: 12px 14px !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-icon {
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    margin: 0 !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-html-container {
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    width: auto !important;
    overflow-wrap: anywhere !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-close {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 40px !important;
    max-width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    max-height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 40px !important;
    transform: none !important;
}

body.tp-money-native.api-module-page .tp-form label.tp-switch-card {
    width: 100% !important;
    min-height: 58px !important;
    display: flex !important;
    grid-template-columns: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 14px !important;
}

body.tp-money-native.api-module-page .tp-form label.tp-switch-card input[type="checkbox"] {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    flex: 0 0 48px !important;
    margin: 0 !important;
}

@media (max-width: 430px) {
    body.tp-money-native.api-module-page .tp-form label.tp-switch-card input[type="checkbox"] {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        flex-basis: 44px !important;
    }
}

html body .tp-status-message-host,
html body .tp-ds-toast-host {
    z-index: 100000 !important;
}

html body .tp-status-message--modal {
    padding: 16px !important;
    box-sizing: border-box !important;
}

html body .tp-status-message--toast {
    left: 16px !important;
    right: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
}

html body .tp-status-message-card {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

html body .tp-status-message--toast .tp-status-message-card {
    padding: 14px 48px 14px 14px !important;
}

html body .tp-status-message-head {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    align-items: start !important;
}

html body .tp-status-message-icon {
    width: 48px !important;
    height: 48px !important;
}

html body .tp-status-message-card p {
    margin: 0 !important;
    overflow-wrap: anywhere !important;
}

html body .tp-status-message-close {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
}

html body .tp-ds-toast-host {
    left: 16px !important;
    right: 16px !important;
    bottom: 16px !important;
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
}

html body .tp-ds-toast {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
}

/* IndoPe user popup/toast final alignment guard */
html body div:where(.swal2-container) {
    z-index: 2147483000 !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}

html body div:where(.swal2-container) div:where(.swal2-popup),
html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    padding: 14px !important;
    overflow: visible !important;
    background: var(--tp-surface, #ffffff) !important;
    color: var(--tp-text, #142033) !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.2) !important;
}

html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 38px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 3px !important;
    min-height: 72px !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-icon {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: start !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: end !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--tp-text, #142033) !important;
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-html-container {
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    width: auto !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    color: var(--tp-muted, #64748b) !important;
    font-size: 0.82rem !important;
    line-height: 1.42 !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-close {
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: end !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    line-height: 38px !important;
    transform: none !important;
}

html body .tp-status-message-host,
html body .tp-ds-toast-host {
    z-index: 2147483000 !important;
}

html body .tp-status-message--modal {
    padding: 16px !important;
    box-sizing: border-box !important;
}

html body .tp-status-message--toast {
    top: max(16px, env(safe-area-inset-top)) !important;
    left: auto !important;
    right: 16px !important;
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
}

html body .tp-status-message-card {
    width: min(430px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    display: grid !important;
    gap: 9px !important;
    box-sizing: border-box !important;
    padding: 14px 52px 14px 14px !important;
    border-radius: 18px !important;
    overflow: visible !important;
}

html body .tp-status-message--modal .tp-status-message-card {
    padding: 16px 56px 16px 16px !important;
}

html body .tp-status-message-head {
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
}

html body .tp-status-message-icon {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
}

html body .tp-status-message-head strong,
html body .tp-status-message-head small,
html body .tp-status-message-card p,
html body .tp-status-message-meta strong,
html body .tp-status-message-next strong {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
}

html body .tp-status-message-card p {
    margin: 0 !important;
    color: #344054 !important;
    font-size: 0.84rem !important;
    line-height: 1.45 !important;
}

html body .tp-status-message-close {
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
}

html body .tp-ds-toast-host {
    left: auto !important;
    right: 16px !important;
    bottom: 16px !important;
    width: min(380px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
}

html body .tp-ds-toast {
    width: 100% !important;
    min-height: 58px !important;
    display: grid !important;
    grid-template-columns: 12px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    box-sizing: border-box !important;
    padding: 13px 14px !important;
    border-radius: 16px !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
}

html body .tp-ds-toast::before {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
}

@media (max-width: 430px) {
    html body div:where(.swal2-container) {
        padding: 8px !important;
    }

    html body div:where(.swal2-container) div:where(.swal2-popup),
    html body div:where(.swal2-container) .swal2-popup.swal2-toast,
    html body .tp-status-message-card,
    html body .tp-status-message--toast,
    html body .tp-ds-toast-host {
        max-width: calc(100vw - 24px) !important;
    }

    html body div:where(.swal2-container) .swal2-popup.swal2-toast {
        grid-template-columns: 44px minmax(0, 1fr) 36px !important;
        column-gap: 10px !important;
        padding: 12px !important;
    }

    html body div:where(.swal2-container) .swal2-popup .swal2-icon,
    html body .tp-status-message-icon {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
    }

    html body div:where(.swal2-container) .swal2-popup .swal2-close,
    html body .tp-status-message-close {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        line-height: 36px !important;
    }

    html body .tp-status-message--toast,
    html body .tp-ds-toast-host {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
    }

    html body .tp-status-message-card {
        padding: 12px 48px 12px 12px !important;
    }
}

/* IndoPe user alert reference-style lock */
html body .tp-status-message--toast {
    top: max(18px, env(safe-area-inset-top)) !important;
    right: 18px !important;
    left: auto !important;
    width: min(500px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
}

html body .tp-status-message-card {
    width: min(500px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    gap: 12px !important;
    padding: 20px 60px 22px 20px !important;
    border: 1px solid rgba(20, 32, 51, 0.08) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18) !important;
}

html body .tp-status-message-head {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: center !important;
}

html body .tp-status-message-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
}

html body .tp-status-message-head strong {
    font-size: 1.06rem !important;
    line-height: 1.16 !important;
}

html body .tp-status-message-head small {
    margin-top: 3px !important;
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

html body .tp-status-message-card p {
    margin: 0 !important;
    padding: 0 !important;
    color: #26364d !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

html body .tp-status-message-close {
    top: 18px !important;
    right: 18px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    border-radius: 12px !important;
    color: #334155 !important;
    background: rgba(255, 255, 255, 0.86) !important;
}

html body div:where(.swal2-container) .swal2-popup.swal2-toast {
    width: min(500px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    grid-template-columns: 56px minmax(0, 1fr) 36px !important;
    row-gap: 9px !important;
    column-gap: 14px !important;
    padding: 20px !important;
    border-radius: 20px !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-icon {
    width: 56px !important;
    min-width: 56px !important;
    height: 56px !important;
    border-radius: 16px !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-title {
    font-size: 1.06rem !important;
    line-height: 1.16 !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-html-container {
    grid-column: 1 / 4 !important;
    margin: 0 !important;
    color: #26364d !important;
    font-size: 0.92rem !important;
    line-height: 1.45 !important;
    font-weight: 650 !important;
}

html body div:where(.swal2-container) .swal2-popup .swal2-close {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    line-height: 36px !important;
    border-radius: 12px !important;
}

@media (max-width: 430px) {
    html body .tp-status-message--toast {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
    }

    html body .tp-status-message-card {
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        padding: 14px 52px 16px 14px !important;
        border-radius: 18px !important;
    }

    html body .tp-status-message-head {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    html body .tp-status-message-icon,
    html body div:where(.swal2-container) .swal2-popup .swal2-icon {
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        border-radius: 15px !important;
    }

    html body .tp-status-message-head strong,
    html body div:where(.swal2-container) .swal2-popup .swal2-title {
        font-size: 1rem !important;
    }

    html body .tp-status-message-card p,
    html body div:where(.swal2-container) .swal2-popup .swal2-html-container {
        font-size: 0.88rem !important;
    }

    html body .tp-status-message-close {
        top: 14px !important;
        right: 14px !important;
    }

    html body div:where(.swal2-container) .swal2-popup.swal2-toast {
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        grid-template-columns: 48px minmax(0, 1fr) 36px !important;
        padding: 14px !important;
        border-radius: 18px !important;
    }
}
