* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #0c0c1d, #1a1a2e, #16213e);
    color: #e6d3a7;
    min-height: 100vh;
    background-attachment: fixed;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

header h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Sezioni di confronto */
.free-section, .premium-section {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid #4a5568;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.free-section {
    border-color: #4a5568;
}

.premium-section {
    border: 2px solid #ffd700;
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2);
    position: relative;
}

.premium-section::before {
    content: "POPOLARE";
    position: absolute;
    top: -12px;
    right: 20px;
    background: #ffd700;
    color: #1a1a2e;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: bold;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #e6d3a7;
}

.price {
    background: #8b0000;
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    border: 2px solid #ffd700;
}

.free-section .price {
    background: #2d3748;
    color: #68d391;
    border-color: #68d391;
}

.premium-features {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    line-height: 1.8;
}

.premium-features li {
    margin: 10px 0;
}

/* Pulsanti */
.free-btn {
    background: linear-gradient(45deg, #2d3748, #1a202c);
    color: #68d391;
    border: 2px solid #68d391;
    padding: 12px 30px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.free-btn:hover {
    background: linear-gradient(45deg, #1a202c, #2d3748);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 211, 145, 0.3);
}

/* PayPal button styling */
input[type="image"] {
    margin-top: 15px;
    transition: transform 0.2s;
}

input[type="image"]:hover {
    transform: scale(1.05);
}

/* Area risultati */
.results {
    background: rgba(26, 26, 46, 0.8);
    border: 2px solid #ffd700;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    animation: fadeIn 0.8s ease;
}

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

.ball-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ball-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(26, 26, 46, 0.7);
    border-radius: 50%;
    border: 2px solid #ffd700;
    color: #ffd700;
    font-size: 1.1rem;
    text-align: center;
    padding: 20px;
}

.number-ball {
    position: absolute;
    width: 240px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    display: none;
    background: transparent;
}

.interpretation-content h2 {
    font-size: 3.5rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 10px;
    font-family: 'Cinzel', serif;
}

.interpretation-content h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
    color: #e6d3a7;
}

.symbol-element {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #a89a75;
}

.interpretation-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.upgrade-cta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.upgrade-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #8a7a52;
    font-style: italic;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ball-container {
        width: 240px;
        height: 240px;
    }
    
    .number-ball {
        width: 200px;
    }
    
    .interpretation-content h2 {
        font-size: 2.8rem;
    }
}