* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.warning h3 {
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.ranks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-header {
    text-align: center;
    margin: 4rem 0 2rem 0;
    padding: 2rem 0;
    border-top: 2px solid #333;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, #66bb6a);
}

.section-header h2 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-header p {
    color: #ccc;
    font-size: 1.1rem;
}

.money-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.money-card {
    background: linear-gradient(135deg, #1a5f1a, #2d8f2d);
    border: 2px solid #4caf50;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.money-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}

.money-card.mega-money {
    background: linear-gradient(135deg, #4a1a4a, #8a2be2);
    border-color: #8a2be2;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.money-card.mega-money:hover {
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

.money-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.money-form {
    margin-top: 1rem;
}

.money-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #4caf50;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.money-form input:focus {
    outline: none;
    border-color: #66bb6a;
    background: rgba(255, 255, 255, 0.15);
}

.money-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.money-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    background: linear-gradient(45deg, #4caf50, #66bb6a);
}

.money-card.mega-money .money-form button {
    background: linear-gradient(45deg, #8a2be2, #9d4edd);
}

.money-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.money-card.mega-money .money-form button:hover {
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.money-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.rank-form input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.rank-form input:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(255, 255, 255, 0.15);
}

.rank-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.rank-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rank-card.fire {
    border-color: #ff6b35;
}

.rank-card.supreme {
    border-color: #ffd700;
}

.rank-card.mega {
    border-color: #8a2be2;
}

.rank-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #ffd700;
}

.features {
    margin: 1rem 0;
    text-align: left;
}

.features h4 {
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features li {
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.features li:before {
    margin-right: 0.5rem;
}

.rank-form {
    margin-top: 1.5rem;
}

.rank-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.rank-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.fire button {
    background: linear-gradient(45deg, #ff6b35, #ff8e53);
}

.supreme button {
    background: linear-gradient(45deg, #ffd700, #ffed4a);
    color: #333;
}

.mega button {
    background: linear-gradient(45deg, #8a2be2, #9d4edd);
}

.rank-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.rank-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.message.success {
    background: rgba(40, 167, 69, 0.8);
    border: 2px solid #28a745;
}

.message.error {
    background: rgba(220, 53, 69, 0.8);
    border: 2px solid #dc3545;
}

.message.hidden {
    display: none;
}

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.payment-modal.hidden {
    display: none;
}

.payment-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-header {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#sumup-card {
    padding: 2rem;
    min-height: 400px;
}

.payment-form-container {
    padding: 2rem;
}

#payment-form {
    max-width: 400px;
    margin: 0 auto;
}

#card-element {
    background: white;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 1rem;
}

#card-errors {
    color: #dc3545;
    margin-bottom: 1rem;
    min-height: 20px;
    font-size: 0.9rem;
}

#submit-payment {
    width: 100%;
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#submit-payment:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#submit-payment:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.payment-status {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #eee;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.status-indicator.hidden {
    display: none;
}

.status-text {
    font-size: 0.9rem;
    color: #666;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.hidden {
    display: none;
}

footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

footer .legal-links {
    margin-top: 15px;
    font-size: 0.9rem;
}

footer .legal-links a {
    color: #81C784;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .legal-links a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .ranks-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .money-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .rank-card, .money-card {
        padding: 1.5rem;
    }
    
    .section-header {
        margin: 2rem 0 1rem 0;
        padding: 1rem 0;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .money-card h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .money-container {
        grid-template-columns: 1fr;
    }
    
    .ranks-container {
        grid-template-columns: 1fr;
    }
    
    .money-card, .rank-card {
        padding: 1rem;
    }
    
    .features ul {
        font-size: 0.8rem;
    }
}