* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, hsl(148, 41%, 87%));
    color: #333;
    overflow-x: hidden;
}

header {
    padding: 1rem 4rem;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom right, hsl(148, 41%, 87%));
    height: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.logo-img {
    height: 150px;
    object-fit: contain;
    max-width: 240px;
}

/* HERO SECTION */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 10%;
    background: linear-gradient(to bottom right, hsl(148, 41%, 87%));
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #2c2c2c;
}

.hero-text p {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #666;
}

.hero-text button {
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #6c47ff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(108, 71, 255, 0.3);
    transition: 0.3s;
}

.hero-text button:hover {
    background: #ff7096;
}

.hero-text button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.flicko-img {
    width: 400px;
    max-width: 90vw;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* CONTINUE SECTION STYLING */
#continue-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.terms-label {
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

#terms-link {
    color: #6c47ff;
    text-decoration: none;
    cursor: pointer;
}

#terms-link:hover {
    text-decoration: underline;
}

/* POPUP STYLES */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.popup-card {
    background: white;
    border-radius: 16px;
    max-width: 80%;
    max-height: 85%;
    width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.popup-overlay.show .popup-card {
    transform: scale(1);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #6c47ff, #ff7096);
    color: white;
}

.popup-header h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: 25px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #6c47ff;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #5a3ed4;
}

.terms-section, .privacy-section {
    margin-bottom: 30px;
}

.popup-content h3 {
    color: #6c47ff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 2px solid #6c47ff;
    padding-bottom: 5px;
}

.popup-content h4 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
}

.popup-content p {
    margin-bottom: 12px;
    color: #555;
    text-align: justify;
}

.popup-content ul {
    margin: 10px 0 15px 20px;
    color: #555;
}

.popup-content li {
    margin-bottom: 8px;
}

.popup-content strong {
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    header {
        justify-content: center;
        height: auto;
        padding: 1rem;
    }

    .logo-img {
        height: 100px;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .flicko-img {
        margin-top: 2rem;
    }

    .popup-card {
        max-width: 95%;
        max-height: 90%;
    }

    .popup-header h2 {
        font-size: 1.2rem;
    }

    .popup-content {
        padding: 20px;
        max-height: 65vh;
    }
}
