:root {
    --pi-purple: #693988;
    --pi-purple-light: #693988;
    --pi-purple-dark: #693988;
    --pi-gold: #f8c056;
    --pi-gold-light: #ffd78c;
    --pi-gold-dark: #e6a938;
    --bg-primary: #f5efff;
    --bg-secondary: #eee6ff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --card-bg: rgba(255, 255, 255, 0.85);
    --input-bg: rgba(255, 255, 255, 0.8);
}
.animation-icon::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    animation: shineIcon 3s infinite;
}
.wallet-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8c056, #e6a938);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pi-purple);
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.pi-coin-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f8c056, #e6a938);
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pi-purple);
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}
.wallet-text {
    color: white;
    font-size: 18px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes shineIcon {
    0% {
        transform: rotate(30deg) translateX(-100%);
    }
    100% {
        transform: rotate(30deg) translateX(100%);
    }
}
.pi-header {
    background-color: var(--pi-purple);
    padding: 14px 20px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 64px;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(122, 53, 164, 0.3);
}

.card {
    background-color: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--pi-purple-light), var(--pi-purple));
    box-shadow: 0 8px 20px rgba(122, 53, 164, 0.2);
    display: flex
;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    overflow: hidden;
}
.feature-icon i {
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}
.reward-card {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-top: 3px solid transparent;
    background: linear-gradient(var(--card-bg), var(--card-bg)) padding-box, linear-gradient(90deg, var(--pi-purple), var(--pi-gold)) border-box;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}
.reward-amount {
    color: var(--pi-purple);
    font-weight: bold;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}
.progress-bar {
    height: 8px;
    border-radius: 10px;
    background: rgba(122, 53, 164, 0.1);
    overflow: hidden;
    position: relative;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--pi-purple), var(--pi-purple-light));
    position: relative;
    overflow: hidden;
}
.about-illustration {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    position: relative;
}
.about-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(154, 83, 198, 0.1), rgba(154, 83, 198, 0.2));
    display: flex
;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.about-circle::before {
    content: "";
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 2px dashed rgba(154, 83, 198, 0.3);
}
.about-icon {
    font-size: 4rem;
    color: var(--pi-purple);
    position: relative;
    z-index: 1;
}
.certificate {
    position: relative;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(248, 192, 86, 0.1), rgba(154, 83, 198, 0.1));
    border: 1px dashed rgba(248, 192, 86, 0.3);
    margin-top: 2rem;
}
.certificate-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--pi-gold), var(--pi-gold-dark));
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.certificate-icon i {
    color: white;
    font-size: 1.2rem;
}
.certificate-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.certificate-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.to-purple-800 {
    --tw-gradient-to: #5b21b6;
}

.from-purple-600 {
    --tw-gradient-from: #7c3aed;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(124, 58, 237, 0));
}
.text-footer {
    color: #a78bfa;
}
.premium-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}
.animated-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(154, 83, 198, 0.08) 0%, transparent 60%), radial-gradient(circle at 80% 20%, rgba(154, 83, 198, 0.08) 0%, transparent 50%);
    opacity: 0.7;
}
.wave-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0.2;
}
.wave1 {
    border: 1px solid rgba(154, 83, 198, 0.3);
    animation-duration: 60s;
}
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    border-radius: 40%;
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: waveRotate 60s linear infinite;
    will-change: transform;
}
@keyframes waveRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
.wave2 {
    border: 1px solid rgba(248, 192, 86, 0.3);
    animation-duration: 50s;
    animation-direction: reverse;
}
.wave3 {
    border: 1px solid rgba(154, 83, 198, 0.2);
    animation-duration: 70s;
}
.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.4;
    animation: twinkle 4s infinite ease-in-out;
}
@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}
.star-single {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.8;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.8);
    animation: twinkleStar 3s infinite ease-in-out;
}
@keyframes twinkleStar {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}
.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: rgba(154, 83, 198, 0.2);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatParticle 15s infinite linear;
    will-change: transform;
}
@keyframes floatParticle {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}
.premium-coin {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--pi-purple);
    z-index: -1;
    transform-style: preserve-3d;
    will-change: transform;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.coin-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    animation: coinRotate 20s infinite linear;
}
@keyframes coinRotate {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(360deg);
    }
}
.coin-front {
    background: radial-gradient(circle at 30% 30%, var(--pi-gold), var(--pi-gold-dark));
    box-shadow: 0 0 20px rgba(248, 192, 86, 0.3);
}
.coin-front, .coin-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
}
.light-streak {
    position: absolute;
    height: 1px;
    width: 200px;
    background: linear-gradient(90deg, transparent, rgba(154, 83, 198, 0.5), transparent);
    border-radius: 100%;
    opacity: 0;
    animation: lightStreak 12s linear infinite;
    will-change: transform, opacity;
}
@keyframes lightStreak {
    0%, 100% {
        opacity: 0;
        transform: rotate(45deg) translateX(-100px);
    }
    10%, 90% {
        opacity: 0.2;
    }
    50% {
        transform: rotate(45deg) translateX(calc(100vw + 100px));
    }
}

@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: scale(0.95) translate(-50%, -50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translate(-50%, -50%) translateY(0);
    }
}

.fade-in {
    animation: fadeInFromTop 0.5s ease-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
/* Optional: Bạn có thể thêm style cho dấu X nếu cần */
#closeBtn {
    background: none;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
}
#closeBtn:hover {
    color: red;
}
#overlay {
    display: none;
}


.bouncing-button {
    background-color: #ff5733;
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    animation: bounce 1.5s infinite;
}

.drip {
    position: relative;
    display: inline-block;
    padding: 20px 40px;
    background-color: #693988;
    color: white;
    font-weight: bold;
    border-radius: 15px;
    text-align: center;
    overflow: hidden;
    animation: bounce 1s infinite;
}

.drip::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, #7b61ff, #f1bb50, #7b61ff);
    background-size: 200% 100%;
    border-radius: 0 0 8px 8px;
    clip-path: ellipse(50% 25% at 50% 50%);
    animation: drip 2s infinite, gradient 3s linear infinite;
}

.drip::before {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: linear-gradient(90deg, #7b61ff, #f1bb50, #7b61ff);
    background-size: 200% 100%;
    border-radius: 50%;
    animation: drop 4s infinite, gradient 8s linear infinite;
}

@keyframes drip {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes drop {
    0% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
    100% { transform: translateX(-50%) translateY(0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes gradient {
    0% { background-position: 0% 70%; }
    100% { background-position: 100% 70%; }
}


.modal-container {
    position: relative;
    z-index: 2502;
}



