/* ... (Keep Root and Base Styles) ... */
:root {
    --primary: #ff4d6d;
    --secondary: #ff8fa3;
    --bg: #fff0f3;
    --text: #590d22;
    --white: #ffffff;
    --gray: #f0f2f5;
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* --- LANDING VIEW --- */
.landing-container {
    background: var(--white);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(255, 77, 109, 0.15);
    text-align: center;
    max-width: 480px;
    width: 95%;
    position: relative;
    z-index: 10;
}

.logo {
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

header h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 77, 109, 0.2);
    z-index: -1;
    border-radius: 4px;
}

/* Form Section */
.form-section {
    text-align: left;
    margin-top: 30px;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-left: 5px;
}

input, select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--gray);
    background: var(--gray);
    border-radius: 16px;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

input:focus, select:focus {
    background: white;
    border-color: var(--primary);
}

.btn-secondary-action {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-secondary-action:hover {
    background: #fff0f3;
    transform: translateY(-2px);
}

.pricing-mini {
    text-align: center;
    margin-top: 20px;
}

.price-tag {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.price-tag .period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

/* --- FULL SCREEN PREVIEW LAYER --- */
.fullscreen-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.close-floating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #333;
    transition: 0.2s;
}

.close-floating:hover {
    transform: scale(1.1);
    background: white;
}

/* Preview Card Styles (Reusing Card Page Styles) */
#preview-card-container {
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2005;
    width: 100%;
    max-width: 600px;
}

.mascot-large {
    width: 140px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 10px rgba(255,77,109,0.2));
}

.buttons-area {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    margin-top: 30px;
    min-height: 60px;
}

.btn-action {
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    z-index: 20;
    white-space: nowrap;
}

.btn-action.yes {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
}

.btn-action.no {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
    white-space: nowrap;
    min-width: 100px; /* Assicura una larghezza minima */
    z-index: 50; /* Aumentato z-index per stare sopra */
}

/* Stili per la trasformazione del bottone No */
.button--surrender {
    background-color: #e0e0e0 !important;
    color: #666 !important;
    border-color: #ccc !important;
    cursor: pointer !important;
    transform: scale(0.9) !important;
    white-space: nowrap !important;
    width: auto !important;
    min-width: 140px !important; /* Più largo quando c'è testo lungo */
    max-width: 90vw; /* Non uscire dallo schermo su mobile */
    z-index: 50 !important; /* Importante per non finire sotto */
}

/* Giant Yes State in Preview */
.final-yes-state {
    transform: scale(1.5) !important;
    z-index: 100 !important;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.6) !important;
}

@keyframes pulse {
    0% { transform: scale(1.5); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.7); }
    70% { transform: scale(1.6); box-shadow: 0 0 0 20px rgba(255, 77, 109, 0); }
    100% { transform: scale(1.5); box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); }
}

/* --- PAYWALL MODAL --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

.pricing-card {
    border: 2px solid var(--primary);
    background: #fff5f7;
    border-radius: 20px;
    padding: 20px;
    text-align: center;
}

.price-header {
    margin-bottom: 15px;
}

.amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.features li {
    margin-bottom: 8px;
    color: #555;
}

.features i {
    color: var(--primary);
    margin-right: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 77, 109, 0.3);
}

.btn-text {
    background: none;
    border: none;
    color: #999;
    font-size: 0.9rem;
    margin-top: 15px;
    cursor: pointer;
    text-decoration: underline;
}

/* Animations */
.btn-shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-5deg); }
    75% { transform: translateX(5px) rotate(5deg); }
    100% { transform: translateX(0); }
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

/* Floating Hearts */
.hearts-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.heart {
    position: absolute;
    bottom: -50px;
    font-size: 24px;
    color: var(--secondary);
    opacity: 0.4;
    animation: floatUp 15s linear infinite;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.6; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Utilities */
.hidden { display: none !important; }
.mt-20 { margin-top: 20px; }
.success-icon { font-size: 3rem; color: #4cc9f0; margin-bottom: 15px; }
.link-box { display: flex; gap: 10px; margin: 20px 0; }
.link-box input { margin-bottom: 0; font-size: 0.9rem; color: var(--primary); }
#copy-btn { background: var(--text); color: white; border: none; border-radius: 12px; width: 50px; cursor: pointer; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #999; }
