/* Pix / planos — loja OTA pública (arquivos-gratis.php) — tema sombrio */

.ag-pix-section {
    margin-top: 0;
    padding: 20px 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(46, 232, 106, 0.18);
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(100, 40, 180, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(6, 8, 10, 0.98), rgba(2, 3, 4, 0.99));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.ag-pix-section--sticky {
    position: sticky;
    top: 58px;
    z-index: 5;
}

.ag-pix-plans-label {
    margin: 0 0 10px;
    font: 700 10px/1 var(--ag-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #3d5248;
}

.ag-pix-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px dashed rgba(46, 232, 106, 0.15);
    background: rgba(0, 0, 0, 0.35);
    font-size: 11px;
    line-height: 1.55;
    color: #4a6356;
}

.ag-pix-note strong { color: #8fb89a; }

.demo-ferramenta-planos--loja {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.demo-ferramenta-planos--loja .demo-ferramenta-plano {
    padding: 12px 10px;
}

.demo-ferramenta-planos--loja .demo-ferramenta-plano__preco {
    font-size: 20px;
}

.pix-copy-block__label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3d5248;
}

.ag-pix-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ag-pix-head h2 {
    margin: 0;
    font-size: clamp(18px, 3vw, 22px);
    color: #eafff3;
}

.ag-pix-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.35);
    background: rgba(252, 211, 77, 0.08);
    font: 700 11px/1 var(--ag-font);
    color: #fcd34d;
    letter-spacing: 0.04em;
}

.ag-pix-live__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: agPixPulse 1.4s ease-in-out infinite;
}

@keyframes agPixPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(252, 211, 77, 0.45); }
    50% { transform: scale(1.15); box-shadow: 0 0 0 7px rgba(252, 211, 77, 0); }
}

.ag-pix-intro {
    margin: 0 0 16px;
    color: #8fb89a;
    font-size: 14px;
    line-height: 1.55;
}

.ag-pix-intro strong { color: #d9ffe7; }

.ag-pix-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.ag-pix-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ag-pix-form label span {
    font: 700 10px/1 var(--ag-mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a8f6e;
}

.ag-pix-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(57, 255, 136, 0.22);
    background: rgba(0, 0, 0, 0.55);
    color: #eafff3;
    font-size: 14px;
}

.ag-pix-form input:focus {
    outline: none;
    border-color: rgba(57, 255, 136, 0.55);
    box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12);
}

.ag-pix-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 16px;
}

.ag-pix-trust span {
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(57, 255, 136, 0.14);
    background: rgba(0, 0, 0, 0.35);
    font-size: 11px;
    font-weight: 700;
    color: #7d9f8a;
}

.demo-ferramenta-planos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.demo-ferramenta-plano {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 12px;
    border-radius: 16px;
    border: 1px solid rgba(57, 255, 136, 0.16);
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
    animation: agPlanIn 0.45s ease backwards;
}

@keyframes agPlanIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-ferramenta-plano__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(57, 255, 136, 0.08) 50%, transparent 60%);
    transform: translateX(-120%);
    animation: agShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes agShine {
    0%, 100% { transform: translateX(-120%); }
    45%, 55% { transform: translateX(120%); }
}

.demo-ferramenta-plano.is-featured {
    border-color: rgba(57, 255, 136, 0.45);
    background: linear-gradient(180deg, rgba(57, 255, 136, 0.12), rgba(0, 0, 0, 0.5));
    box-shadow: 0 12px 32px rgba(57, 255, 136, 0.12);
}

.demo-ferramenta-plano.is-selected {
    border-color: rgba(57, 255, 136, 0.65);
    box-shadow: 0 0 0 2px rgba(57, 255, 136, 0.2);
}

.demo-ferramenta-plano__tag {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: #021408;
    background: linear-gradient(135deg, #39ff88, #14b86a);
}

.demo-ferramenta-plano__tempo {
    font-size: 13px;
    font-weight: 800;
    color: #eafff3;
}

.demo-ferramenta-plano__preco {
    font-size: 22px;
    font-weight: 800;
    color: #39ff88;
    line-height: 1.1;
}

.demo-ferramenta-plano__preco small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #5a8f6e;
}

.demo-ferramenta-plano__btn {
    margin-top: auto;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 11px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    color: #021408;
    background: linear-gradient(135deg, #39ff88, #14b86a);
    box-shadow: 0 8px 20px rgba(57, 255, 136, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-ferramenta-plano__btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(57, 255, 136, 0.32);
}

.demo-ferramenta-plano__btn.is-loading {
    opacity: 0.75;
    cursor: wait;
    pointer-events: none;
}

.demo-ferramenta-pix-box {
    display: none;
    max-width: 460px;
    margin: 14px auto 0;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(57, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.55);
}

.demo-ferramenta-pix-box.is-open {
    display: block;
    animation: agPixReveal 0.3s ease;
}

@keyframes agPixReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pix-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pix-box-head .label {
    font: 800 12px/1 var(--ag-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9dffc0;
}

.pix-fechar-btn {
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.pix-status {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 10px;
}

.pix-status--wait { color: #fcd34d; }

.pix-qr-stage--oem {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.pix-qr-stage__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pix-qr-stage__brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.pix-qr-stage__live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #fcd34d;
}

.pix-qr-stage__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: agPixPulse 1.4s ease-in-out infinite;
}

.pix-qr-frame {
    position: relative;
    align-self: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.pix-qr-frame__glow {
    position: absolute;
    inset: -1px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(57, 255, 136, 0.35), rgba(91, 143, 212, 0.2));
    opacity: 0.45;
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.pix-qr-frame__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.pix-qr-stage__valor {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #eafff3;
}

.pix-qr-stage__valor small {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    color: #5a8f6e;
}

.pix-code-area {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(57, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: #d9ffe7;
    font: 600 11px/1.45 var(--ag-mono);
    resize: none;
}

.btn-voltar {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    color: #021408;
    background: linear-gradient(135deg, #39ff88, #14b86a);
}

.pix-aprovado-oem {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.pix-aprovado-oem.is-visible {
    display: flex;
    animation: agPixOk 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes agPixOk {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.pix-aprovado-oem__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #021408;
    background: linear-gradient(135deg, #39ff88, #14b86a);
}

.pix-aprovado-oem__titulo {
    font-size: 18px;
    font-weight: 800;
    color: #eafff3;
}

.pix-aprovado-oem__sub {
    margin: 0;
    font-size: 13px;
    color: #8fb89a;
}

.pix-erro {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 80, 100, 0.35);
    background: rgba(40, 8, 12, 0.85);
    color: #ffb4c0;
    font-size: 13px;
}

.demo-cred-panel {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(57, 255, 136, 0.32);
    background: rgba(0, 0, 0, 0.55);
    text-align: left;
}

.demo-cred-panel__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #021408;
    background: linear-gradient(135deg, #39ff88, #14b86a);
}

.demo-cred-panel__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #021408;
    animation: agPixPulse 1.4s ease-in-out infinite;
}

.demo-cred-row {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(57, 255, 136, 0.1);
}

.demo-cred-row__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a8f6e;
}

.demo-cred-row__valor {
    font-size: 13px;
    font-weight: 700;
    color: #eafff3;
    word-break: break-all;
    font-family: var(--ag-mono);
}

.demo-cred-row__valor--destaque { color: #39ff88; }

.demo-cred-copy {
    border: 1px solid rgba(57, 255, 136, 0.28);
    background: rgba(57, 255, 136, 0.08);
    color: #9dffc0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.demo-cred-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    justify-content: center;
}

.demo-cred-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.demo-cred-wa svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ag-dl-progress {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(57, 255, 136, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.ag-dl-progress.is-active { display: block; }

.ag-dl-progress__bar {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: #031109;
    margin-top: 8px;
}

.ag-dl-progress__bar span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #39ff88, #14b86a);
    transition: width 0.15s ease;
}

.ag-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    z-index: 9998;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #eafff3;
    background: rgba(4, 12, 8, 0.96);
    border: 1px solid rgba(57, 255, 136, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.ag-toast.is-visible { transform: translateX(-50%) translateY(0); }

.ag-toast--ok { border-color: rgba(57, 255, 136, 0.5); }
.ag-toast--err { border-color: rgba(255, 80, 100, 0.45); color: #ffb4c0; }

@media (max-width: 900px) {
    .demo-ferramenta-planos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .ag-pix-form { grid-template-columns: 1fr; }
    .demo-ferramenta-planos { grid-template-columns: 1fr; }
}
