/* =============================================
   CSS Modal PIX Premium - Arquivo Externo
   ============================================= */

/* Botao Assinar no Header */
.tp-subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(229, 57, 53, 0.3);
    text-decoration: none;
    margin-right: 10px
}

.tp-subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.45);
    color: #fff
}

.tp-subscribe-btn i {
    font-size: 14px;
    color: #fff;
    animation: crownPulsePC 2s ease-in-out infinite
}

@keyframes crownPulsePC {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.2)
    }
}

@media (max-width: 768px) {
    .tp-subscribe-btn {
        display: none !important
    }
}

/* Modal PIX - Redesign Responsivo */
.tp-pix-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    padding: 10px;
    animation: tpFadeIn 0.3s ease
}

.tp-pix-overlay.active {
    display: flex
}

@keyframes tpFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes tpSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes tpPulse {

    0%,
    100% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.05)
    }
}

@keyframes tpBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0)
    }

    40% {
        transform: translateY(-8px)
    }

    60% {
        transform: translateY(-4px)
    }
}

@keyframes tpSpin {
    to {
        transform: rotate(360deg)
    }
}

@keyframes tpGlow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.5)
    }

    50% {
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.8)
    }
}

.tp-pix-card {
    background: linear-gradient(180deg, #1f1f1f 0%, #141414 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: tpSlideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08)
}

.tp-pix-header {
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    padding: 24px 20px;
    text-align: center;
    position: relative
}

.tp-pix-header::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: #b71c1c
}

.tp-pix-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    backdrop-filter: blur(4px)
}

.tp-pix-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg)
}

.tp-pix-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    animation: tpBounce 2s infinite
}

.tp-pix-icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3))
}

.tp-pix-title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2)
}

.tp-pix-sub {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    margin-top: 6px;
    font-weight: 400
}

.tp-pix-body {
    padding: 28px 20px 20px;
    overflow-y: auto;
    max-height: calc(90vh - 140px)
}

.tp-pix-step {
    display: none
}

.tp-pix-step.active {
    display: block;
    animation: tpFadeIn 0.3s ease
}

/* Planos */
.tp-pix-plan {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 2px solid #333;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden
}

.tp-pix-plan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(229, 57, 53, 0.1), transparent);
    transition: left 0.5s
}

.tp-pix-plan:hover::before {
    left: 100%
}

.tp-pix-plan:hover {
    border-color: #e53935;
    transform: translateX(5px)
}

.tp-pix-plan.sel {
    border-color: #e53935;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.15) 0%, rgba(183, 28, 28, 0.1) 100%)
}

.tp-pix-plan.sel .tp-pix-plan-icon {
    position: relative
}

.tp-pix-plan.sel .tp-pix-plan-icon::after {
    content: '\2713';
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #fff;
    border: 2px solid #1e1e1e
}

.tp-pix-plan-left {
    display: flex;
    align-items: center;
    gap: 14px
}

.tp-pix-plan-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3)
}

.tp-pix-plan-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff
}

.tp-pix-plan-info {
    text-align: left
}

.tp-pix-plan-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700
}

.tp-pix-plan-days {
    color: #888;
    font-size: 12px;
    margin-top: 2px
}

.tp-pix-plan-price {
    text-align: right
}

.tp-pix-plan-price-value {
    color: #4caf50;
    font-size: 24px;
    font-weight: 800
}

.tp-pix-plan-price-label {
    color: #666;
    font-size: 10px;
    text-transform: uppercase
}

.tp-pix-btn {
    width: 100%;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4)
}

.tp-pix-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(229, 57, 53, 0.5)
}

.tp-pix-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed
}

.tp-pix-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff
}

/* QR Code */
.tp-pix-qr-wrap {
    text-align: center
}

.tp-pix-amount-box {
    background: linear-gradient(135deg, #1a3a1a 0%, #0d1f0d 100%);
    border: 1px solid #2e7d32;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px
}

.tp-pix-amount-label {
    color: #81c784;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px
}

.tp-pix-amount-value {
    color: #4caf50;
    font-size: 32px;
    font-weight: 800;
    margin-top: 4px
}

.tp-pix-qr-box {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3)
}

.tp-pix-qr-box img {
    width: 180px;
    height: 180px;
    display: block
}

.tp-pix-code-box {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px
}

.tp-pix-code-label {
    color: #888;
    font-size: 11px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px
}

.tp-pix-code-text {
    background: #0d0d0d;
    border-radius: 8px;
    padding: 12px;
    color: #aaa;
    font-size: 11px;
    word-break: break-all;
    max-height: 70px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    line-height: 1.4;
    text-align: left
}

.tp-pix-code-text::-webkit-scrollbar {
    width: 4px
}

.tp-pix-code-text::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px
}

.tp-pix-copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #e53935 0%, #b71c1c 100%);
    border: none;
    border-radius: 10px;
    padding: 14px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s
}

.tp-pix-copy-btn:hover {
    transform: scale(1.02)
}

.tp-pix-copy-btn.copied {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    animation: tpPulse 0.5s
}

.tp-pix-copy-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff
}

.tp-pix-status-box {
    background: linear-gradient(135deg, #252525 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px
}

.tp-pix-timer {
    color: #e53935;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px
}

.tp-pix-timer svg {
    width: 18px;
    height: 18px;
    fill: #e53935
}

.tp-pix-waiting {
    color: #888;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px
}

.tp-pix-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #333;
    border-top-color: #e53935;
    border-radius: 50%;
    animation: tpSpin 1s linear infinite
}

/* Sucesso */
.tp-pix-success {
    text-align: center;
    padding: 20px 0
}

.tp-pix-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: tpGlow 2s infinite;
    box-shadow: 0 8px 30px rgba(76, 175, 80, 0.4)
}

.tp-pix-success-icon svg {
    width: 40px;
    height: 40px;
    fill: #fff
}

.tp-pix-success-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px
}

.tp-pix-success-text {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5
}

.tp-pix-success-btn {
    width: 100%;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.4)
}

.tp-pix-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.5)
}

.tp-pix-success-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff
}

/* Loading */
.tp-pix-loading {
    text-align: center;
    padding: 40px 20px
}

.tp-pix-loading .tp-pix-spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
    margin: 0 auto 16px
}

.tp-pix-loading-text {
    color: #888;
    font-size: 14px
}

/* Responsivo */
@media(max-height:700px) {
    .tp-pix-body {
        padding: 20px 16px 16px
    }

    .tp-pix-header {
        padding: 18px 16px
    }

    .tp-pix-qr-box img {
        width: 140px;
        height: 140px
    }

    .tp-pix-amount-value {
        font-size: 26px
    }
}

@media(max-height:600px) {
    .tp-pix-card {
        max-height: 95vh
    }

    .tp-pix-body {
        max-height: calc(95vh - 120px)
    }

    .tp-pix-qr-box {
        padding: 10px;
        margin-bottom: 14px
    }

    .tp-pix-qr-box img {
        width: 120px;
        height: 120px
    }

    .tp-pix-code-text {
        max-height: 50px
    }
}

/* =============================================
   FORCAR MODO ESCURO
   ============================================= */
html,
body {
    background: #0d0d0d !important;
    background-color: #0d0d0d !important;
}

html.light-theme,
body.light-theme,
html.light,
body.light {
    background: #0d0d0d !important;
    background-color: #0d0d0d !important;
}
m