.tpc-support-module {
    --tpc-accent: #e11d48;
    --tpc-accent-light: #fb7185;
    --tpc-accent-dark: #9f1239;
    --tpc-accent-soft: #fff1f2;
    --tpc-track: #eef0f5;
    --tpc-surface: #ffffff;
    --tpc-border: #e6e8ed;
    --tpc-text: #0f172a;
    --tpc-text-soft: #64748b;
    --tpc-text-dim: #94a3b8;
    --tpc-success: #16a34a;
    --tpc-success-light: #4ade80;
    --tpc-success-dark: #15803d;

    width: 100%;
    max-width: 720px;
    padding: clamp(20px, 2.6vw, 28px);
    border: 1px solid var(--tpc-border);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 60% 60% at 80% -10%, rgba(225, 29, 72, 0.06), transparent 70%),
        linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 24px 56px -32px rgba(15, 23, 42, 0.22);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    transition: box-shadow 200ms ease;
}

.tpc-support-module:hover {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 30px 60px -28px rgba(15, 23, 42, 0.26);
}

.tpc-support-wrap.tpc-support-module {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.tpc-support-module,
.tpc-support-module * {
    box-sizing: border-box;
}

.tpc-support-module .tpc-counter-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tpc-support-module .tpc-counter-value {
    font-size: clamp(26px, 6.4vw, 40px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--tpc-accent);
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, var(--tpc-accent) 0%, var(--tpc-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tpc-support-module .tpc-counter-label {
    font-size: clamp(11px, 1.3vw, 13px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tpc-text-soft);
    white-space: nowrap;
}

.tpc-support-module .tpc-progress {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 10px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--tpc-track);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.07);
}

.tpc-support-module .tpc-progress-fill {
    position: relative;
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tpc-accent-dark) 0%, var(--tpc-accent) 55%, var(--tpc-accent-light) 100%);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
    transition: width 380ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tpc-support-module .tpc-progress-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: tpcShimmer 2.6s ease-in-out infinite;
}

.tpc-support-module button.tpc-support-btn,
.tpc-support-module .tpc-support-btn {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 58px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--tpc-accent) 0%, var(--tpc-accent-dark) 100%);
    color: #fff;
    font-family: inherit;
    font-size: clamp(15px, 1.6vw, 17px);
    font-weight: 600;
    letter-spacing: 0.005em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 8px 18px -10px rgba(225, 29, 72, 0.65),
        0 2px 4px rgba(225, 29, 72, 0.18);
    transition: transform 140ms ease, filter 180ms ease, box-shadow 200ms ease;
    overflow: hidden;
}

.tpc-support-module .tpc-support-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
    transform: translateX(-110%);
    transition: transform 600ms ease;
    pointer-events: none;
}

.tpc-support-module .tpc-support-btn:hover:not(.tpc-btn-disabled)::before {
    transform: translateX(110%);
}

.tpc-support-module .tpc-support-btn:hover:not(.tpc-btn-disabled) {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 14px 26px -12px rgba(225, 29, 72, 0.72),
        0 4px 8px rgba(225, 29, 72, 0.22);
}

.tpc-support-module .tpc-support-btn:active:not(.tpc-btn-disabled) {
    transform: translateY(0);
}

.tpc-support-module .tpc-support-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(225, 29, 72, 0.32),
        0 8px 18px -10px rgba(225, 29, 72, 0.65);
}

.tpc-support-module .tpc-support-btn.tpc-btn-loading {
    cursor: wait;
}

.tpc-support-module .tpc-support-btn.tpc-btn-loading .tpc-btn-label {
    opacity: 0;
}

.tpc-support-module .tpc-support-btn.tpc-btn-loading::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    animation: tpcSpin 700ms linear infinite;
}

.tpc-support-module .tpc-support-btn.tpc-btn-done {
    background: linear-gradient(135deg, var(--tpc-success) 0%, var(--tpc-success-dark) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 8px 18px -10px rgba(22, 163, 74, 0.6),
        0 2px 4px rgba(22, 163, 74, 0.16);
    animation: tpcPop 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.tpc-support-module .tpc-support-btn.tpc-btn-done .tpc-btn-label::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 9px;
    vertical-align: -3px;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") center/contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") center/contain no-repeat;
}

.tpc-support-module .tpc-support-btn.tpc-btn-disabled {
    cursor: default;
}

.tpc-support-module .tpc-support-msg {
    margin: 13px 0 0;
    font-family: inherit;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    color: var(--tpc-text-soft);
    letter-spacing: 0.005em;
}

.tpc-support-module .tpc-support-btn.tpc-btn-done~.tpc-support-msg {
    color: var(--tpc-success-dark);
}

.tpc-support-module .tpc-extra-link {
    display: block;
    margin: 8px 0 0;
    font-family: inherit;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
    letter-spacing: 0.005em;
}

.tpc-support-module a.tpc-extra-link:hover,
.tpc-support-module a.tpc-extra-link:focus {
    color: var(--tpc-text);
}

.tpc-support-module .tpc-hidden {
    display: none;
}

@keyframes tpcShimmer {
    0% {
        transform: translateX(-100%);
    }

    60% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(100%);
    }
}

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

@keyframes tpcPop {
    0% {
        transform: scale(0.97);
    }

    60% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .tpc-support-module {
        border-radius: 14px;
    }

    .tpc-support-module .tpc-counter-header {
        align-items: baseline;
    }

    .tpc-support-module .tpc-counter-label {
        font-size: 11px;
    }

    .tpc-support-module .tpc-support-msg {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tpc-support-module .tpc-progress-fill::after,
    .tpc-support-module .tpc-support-btn::before,
    .tpc-support-module .tpc-support-btn.tpc-btn-done {
        animation: none;
        transition: none;
    }
}