* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-green: #2ECC71;
    --secondary-green: #27AE60;
    --dark-blue: #0B243B;
    --card-blue: #0F3457;
    --light-blue: #1A5276;
    --gold: #F39C12;
    --white: #FFFFFF;
    --light-gray: #E0E0E0;
}

/* BACKGROUND ANIMATION */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(46, 204, 113, 0.1) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(16, 52, 87, 0.3) 0%, transparent 40%);
    z-index: -1;
    animation: bgFloat 15s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: scale(1) translate(0px, 0px); }
    50% { transform: scale(1.05) translate(-10px, -5px); }
    100% { transform: scale(1) translate(10px, 5px); }
}

body {
    background: var(--dark-blue);
    color: var(--white);
    padding: 20px;
    max-width: 700px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* BRAND LOGO ANIMATION */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 60px 0 50px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 1s ease forwards;
    animation-delay: 0.2s;
}

.logo-icon {
    font-size: 3rem;
    color: var(--primary-green);
    animation: spinSlow 8s linear infinite;
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-green), var(--light-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* MENU BUTTONS WITH HOVER & CLICK EFFECTS */
.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 80px;
}

.menu-btn {
    background: var(--card-blue);
    color: var(--white);
    text-decoration: none;
    padding: 22px;
    border-radius: 20px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Staggered animation for buttons */
.menu-btn:nth-child(1) { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.5s; }
.menu-btn:nth-child(2) { animation: fadeInUp 0.8s ease forwards; animation-delay: 0.8s; }
.menu-btn:nth-child(3) { animation: fadeInUp 0.8s ease forwards; animation-delay: 1.1s; }

/* Button ripple effect */
.menu-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.menu-btn:hover::after {
    width: 300px;
    height: 300px;
}

.menu-btn:hover {
    background: var(--light-blue);
    border-color: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(46, 204, 113, 0.2);
}

.btn-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.menu-btn:hover .btn-icon {
    transform: scale(1.2);
    color: var(--primary-green);
}

.btn-text {
    font-weight: 600;
    position: relative;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.4s ease;
}

.menu-btn:hover .btn-text::after {
    width: 100%;
}

/* KEYFRAME ANIMATIONS FOR FADE EFFECTS */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RANK SHOP SECTION ANIMATION */
.shop-section {
    margin: 60px 0;
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.shop-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 40px;
    font-size: 2rem;
    position: relative;
}

.section-title::before,
.section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-green));
}

.section-title::before { left: 0; }
.section-title::after { right: 0; background: linear-gradient(to left, transparent, var(--primary-green)); }

/* RANK CARDS WITH HOVER EFFECTS */
.card-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.rank-card {
    background: var(--card-blue);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.rank-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 10px 25px rgba(46, 204, 113, 0.2);
}

.featured-card {
    background: var(--light-blue);
}

.feature-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark-blue);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 15px;
    animation: pulse 2s ease infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.card-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--white), var(--light-gray));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.buy-btn {
    background: var(--primary-green);
    border: none;
    color: var(--white);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.buy-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.05);
}

.featured-btn {
    background: var(--gold);
    color: var(--dark-blue);
}

.featured-btn:hover {
    background: #E67E22;
}

/* MODAL WITH TRANSITION EFFECT */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    padding: 20px;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.modal-box {
    background: var(--card-blue);
    max-width: 450px;
    margin: 100px auto;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 30px rgba(46, 204, 113, 0.3);
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.active .modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    float: right;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-green);
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.modal-amount {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    border: 2px solid var(--primary-green);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--white);
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-input:focus {
    border-color: var(--gold);
}

.gcash-box {
    font-size: 1.5rem;
    margin-bottom: 25px;
    padding: 15px;
    border: 2px dashed var(--primary-green);
    border-radius: 10px;
    font-weight: 600;
    animation: glow 3s ease infinite alternate;
}

@keyframes glow {
    from { border-color: var(--primary-green); box-shadow: 0 0 10px rgba(46, 204, 113, 0.2); }
    to { border-color: var(--gold); box-shadow: 0 0 20px rgba(243, 156, 18, 0.3); }
}

.action-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: none;
    border-radius: 10px;
    background: var(--primary-green);
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(46, 204, 113, 0.2);
}

.action-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.03);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 450px) {
    .logo-icon { font-size: 2.5rem; }
    .logo-text { font-size: 1.8rem; }
    
    .menu-btn {
        font-size: 1.1rem;
        padding: 18px;
    }
    
    .btn-icon { font-size: 1.5rem; }
    
    .section-title { font-size: 1.6rem; }
    
    .rank-card { padding: 20px; }
    .card-title { font-size: 1.3rem; }
    .card-price { font-size: 2rem; }
    
    .modal-box {
        padding: 25px;
        margin: 60px auto;
    }
    
    .modal-title { font-size: 1.5rem; }
    .gcash-box { font-size: 1.3rem; }
        }
        
