/* =========================
   RESET AJUSTADO (ANTI-CONFLITO)
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.home * {
    box-sizing: border-box;
}

/* =========================
   BODY MODERNO
========================= */
body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #eef2ff, #f8fafc);
    color: #1c1c1c;
    overflow-x: hidden;
}

/* =========================
   CONTAINER PRINCIPAL
========================= */
.home {
    margin: auto;
    padding: 130px 20px 80px;
    position: relative;

}

/* Glow decorativo */
.home::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 152, 0, 0.2), transparent);
    filter: blur(80px);
    z-index: -1;
}

/* =========================
   HERO (AGORA PREMIUM)
========================= */
.hero {
    text-align: center;
    margin-bottom: 60px;

}

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff7a00, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
}



/* =========================
   GRID DE AÇÕES
========================= */
.actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.actions-row {
    display: flex !important;
    flex-direction: row !important;
}

/* =========================
   CARD MODERNO (GLASS)
========================= */
.card-action {
    position: relative;
    border-radius: 20px;
    padding: 30px;

    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.3);

    text-decoration: none;
    color: inherit;

    display: flex;
    flex-direction: column;
    gap: 10px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

    transition: all 0.35s ease;
    overflow: hidden;

    cursor: pointer;
}

/* Glow interno */
.card-action::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 122, 0, 0.2), transparent);
    opacity: 0;
    transition: 0.3s;
}

/* Hover INSANO 🔥 */
.card-action:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.card-action:hover::before {
    opacity: 1;
}

/* =========================
   ÍCONE
========================= */
.icon {
    font-size: 2.5rem;
    transition: transform 0.3s;
}

.card-action:hover .icon {
    transform: scale(1.2) rotate(5deg);
}

/* =========================
   TEXTO
========================= */
.card-action h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

.card-action p {
    font-size: 0.9rem;
    color: #555;
}

/* =========================
   LOGIN BOX PREMIUM
========================= */
.login-box {
    margin-top: 70px;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

/* Mão animada */
.hand {
    width: 70px;
    height: 70px;
    object-fit: cover;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* BOTÃO MODERNO */
.btn-login {
    padding: 15px 32px;
    border-radius: 50px;

    background: linear-gradient(135deg, #ff7a00, #ffb347);
    color: white;
    font-weight: 600;
    text-decoration: none;

    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.4);

    transition: all 0.3s ease;
    position: relative;
}

/* Efeito glow */
.btn-login::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    background: linear-gradient(135deg, #ff7a00, #ffb347);
    filter: blur(15px);
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.btn-login:hover {
    transform: translateY(-5px) scale(1.05);
}

.btn-login:hover::after {
    opacity: 0.7;
}

/* =========================
   MODAL MELHORADO
========================= */
.modal-content {
    border-radius: 20px;
    padding: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-body {
    font-size: 0.95rem;
    color: #444;
    text-align: justify !important;
}

.modal-body>p {
    text-align: justify !important;
}

/* =========================
   FOOTER (FIX BUG)
========================= */
footer {
    position: relative !important;
}

/* =========================
   RESPONSIVO
========================= */

/* ========================================= */
/* RESET */
/* ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {

    --orange: #ff7a00;
    --orange-light: #ff9a3c;

    --dark-bg: #0f0f0f;
    --dark-card: rgba(20, 20, 20, 0.75);

    --light-bg: #f6f7fb;
    --light-card: rgba(255, 255, 255, 0.75);

    --text-dark: #ffffff;
    --text-light: #181818;

    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.05);

}

body {
    font-family: Inter, sans-serif;
}

/* ========================================= */
/* OVERLAY */
/* ========================================= */

.payment-overlay {

    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999999;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transition: 0.5s ease;

}

.payment-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================= */
/* BACKGROUND */
/* ========================================= */

.overlay-background {

    position: absolute;
    inset: 0;

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    background:
        radial-gradient(circle at top left,
            rgba(255, 122, 0, 0.18),
            transparent 30%),

        radial-gradient(circle at bottom right,
            rgba(255, 122, 0, 0.10),
            transparent 30%);

}

.overlay-noise {

    position: absolute;
    inset: 0;

    opacity: 0.03;

    background-image: url("https://grainy-gradients.vercel.app/noise.svg");

}

/* ========================================= */
/* CARD */
/* ========================================= */

.payment-card {

    position: relative;

    width: min(92%, 470px);

    height: 500px;
    max-height: 90%;

    padding: 45px 35px;

    border-radius: 32px;

    overflow-y: scroll;
    overflow-x: hidden;

    z-index: 10;

    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    animation: cardEntry 0.8s cubic-bezier(.19, 1, .22, 1);

}


/* ========================================= */
/* GLOW */
/* ========================================= */

.card-glow {

    position: absolute;

    width: 280px;
    height: 280px;

    background: rgba(255, 122, 0, 0.25);

    filter: blur(120px);

    top: -120px;
    right: -80px;

}

/* ========================================= */
/* SUCCESS ICON */
/* ========================================= */

.success-icon-container {

    position: relative;

    width: 120px;
    height: 120px;

    margin: auto auto 35px;

    display: flex;
    justify-content: center;
    align-items: center;

}

.success-ring {

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    border: 2px solid rgba(255, 122, 0, 0.4);

    animation: pulse 2.5s infinite;

}

.success-icon {

    width: 82px;
    height: 82px;

    border-radius: 50%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 38px;
    font-weight: 700;

    background: linear-gradient(135deg,
            var(--orange),
            var(--orange-light));

    color: #fff;

    box-shadow:
        0 0 35px rgba(255, 122, 0, 0.55);

}

/* ========================================= */
/* TEXT */
/* ========================================= */

.payment-content {
    text-align: center;
}

.payment-title {

    font-size: 2rem;
    font-weight: 800;

    line-height: 1.2;

    margin-bottom: 18px;

}

.payment-description {

    line-height: 1.7;
    font-size: 15px;

    opacity: 0.88;

}


/* ========================================= */
/* BUTTON */
/* ========================================= */

.confirm-button {

    width: 100%;

    height: 58px;

    border: none;

    border-radius: 18px;

    margin-top: 35px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    font-size: 15px;
    font-weight: 700;

    color: #fff;

    background: linear-gradient(135deg,
            var(--orange),
            var(--orange-light));

    transition: 0.4s ease;

    box-shadow:
        0 10px 35px rgba(255, 122, 0, 0.35);

}

.confirm-button:hover {

    transform: translateY(-3px);

    box-shadow:
        0 18px 40px rgba(255, 122, 0, 0.45);

}

.confirm-button.loading {
    pointer-events: none;
    opacity: 0.85;
}

.button-loader {

    width: 20px;
    height: 20px;

    border-radius: 50%;

    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;

    animation: spin 1s linear infinite;

    display: none;

    position: absolute;
    right: 20px;
    top: 50%;

    transform: translateY(-50%);

}

.confirm-button.loading .button-loader {
    display: block;
}

/* ========================================= */
/* ERROR */
/* ========================================= */

.payment-error {

    margin-top: 18px;

    text-align: center;

    color: #ff5e5e;

    font-size: 14px;

    min-height: 18px;

}



/* ========================================= */
/* DARK / LIGHT */
/* ========================================= */

.dark .payment-overlay,
.dark #balanceOverlay {
    background: #0f172a;
}

.dark #paymentCard,
.dark #balanceCard {
    background: #151f36 !important;
}


.dark .stage-label,
body.dark .stage-description {
    color: #fff;
}

.light .stage-label,
.light .stage-description {
    color: #181818;
}

/* ========================================= */
/* ANIMAÇÕES */
/* ========================================= */

@keyframes cardEntry {

    from {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}

@keyframes pulse {

    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.35);
        opacity: 0;
    }

}

@keyframes spin {

    to {
        transform: translateY(-50%) rotate(360deg);
    }

}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

}

/* ========================================= */
/* RESPONSIVO */
/* ========================================= */

@media(max-width:768px) {

    .payment-card {
        padding: 35px 25px;
    }

    .payment-title {
        font-size: 1.6rem;
    }

    .stage-number {
        font-size: 10rem;
    }

    .hand {
        width: 70px;
       
    }

}


/* ========================================= */
/* CARD EXTRA */
/* ========================================= */

.balance-card {

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.92),
            rgba(255, 255, 255, 0.82));

    border:
        1px solid rgba(255, 255, 255, 0.65);

    box-shadow:
        0 25px 60px rgba(4, 4, 4, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);

}

/* ========================================= */
/* GLOW */
/* ========================================= */

.card-glow {

    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    top: -120px;
    right: -100px;

    background:
        radial-gradient(circle,
            rgba(255, 152, 0, 0.35),
            transparent 70%);

    filter: blur(20px);

    z-index: -1;

}

/* ========================================= */
/* SUCCESS ICON */
/* ========================================= */

.success-icon-container {

    position: relative;

    width: 120px;
    height: 120px;

    margin: auto;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

}

.success-ring {

    position: absolute;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    border:
        2px solid rgba(255, 152, 0, 0.20);

    animation: ringPulse 2s infinite;

}

.success-icon {

    width: 82px;
    height: 82px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2.4rem;
    font-weight: bold;

    color: white;

    background:
        linear-gradient(135deg,
            #ff9800,
            #ffb74d);

    box-shadow:
        0 15px 35px rgba(255, 152, 0, 0.35);

}

.money-icon {

    font-size: 2rem;

}

/* ========================================= */
/* CONTENT */
/* ========================================= */

.payment-content {

    text-align: center;

}

.payment-title {

    font-size: 2rem;
    font-weight: 800;

    color: #1f2937;

    margin-bottom: 15px;

}

.payment-description {

    color: #4b5563;

    line-height: 1.7;

    font-size: .96rem;

    margin-bottom: 30px;

}

/* ========================================= */
/* BALANCE INFO */
/* ========================================= */

.balance-info {

    width: 100%;

    padding: 22px;

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.55);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(10px);

    margin-bottom: 22px;

}

.balance-item {

    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

}

.balance-label {

    color: #64748b;

    font-size: .92rem;

}

.balance-value {

    font-size: 1.1rem;
    font-weight: 800;

}

.balance-value.deposit {

    color: #16a34a;

}

.balance-value.total {

    color: #ff9800;

}

.balance-divider {

    width: 100%;
    height: 1px;

    margin: 18px 0;

    background:
        rgba(148, 163, 184, 0.18);

}

/* ========================================= */
/* STATUS */
/* ========================================= */

.payment-status {

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 28px;

}

.status-dot {

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 12px rgba(34, 197, 94, 0.6);

}

.status-text {

    font-size: .9rem;

    color: #475569;

}

/* ========================================= */
/* BUTTON */
/* ========================================= */

.confirm-button {

    width: 100%;
    height: 58px;

    border: none;
    outline: none;

    border-radius: 18px;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(135deg,
            #ff9800,
            #ffb74d);

    color: white;

    font-size: .95rem;
    font-weight: 800;
    letter-spacing: .5px;

    transition: .3s ease;

    box-shadow:
        0 15px 35px rgba(255, 152, 0, 0.28);

}

.confirm-button:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 20px 45px rgba(255, 152, 0, 0.38);

}

/* ========================================= */
/* ERROR */
/* ========================================= */

.payment-error {

    margin-top: 14px;

    text-align: center;

    color: #ef4444;

    font-size: .85rem;

}

/* ========================================= */
/* ANIMAÇÕES */
/* ========================================= */

@keyframes ringPulse {

    0% {
        transform: scale(.9);
        opacity: .7;
    }

    70% {
        transform: scale(1.08);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }

}

@keyframes cardEntry {

    from {

        opacity: 0;

        transform:
            translateY(40px) scale(.92);

    }

    to {

        opacity: 1;

        transform:
            translateY(0) scale(1);

    }

}