/* RESET SAFETY */
.flutter-overlay *,
.flutter-popup * {
    box-sizing: border-box;
}

/* OVERLAY */
.flutter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 999999;
    backdrop-filter: blur(5px);
}

.flutter-overlay.flutter-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* POPUP */
.flutter-popup {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px 45px;
    max-width: 540px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 70px rgba(0,0,0,0.4);
    max-height: 90vh;
    overflow-y: auto;
    animation: flutter-slide-up 0.4s cubic-bezier(0.68,-0.55,0.265,1.55);
}

/* ANIMATION */
@keyframes flutter-slide-up {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* CLOSE BUTTON */
.flutter-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.flutter-close-btn:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
    color: #333;
}

/* ICON */
.flutter-popup-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #02569B, #13B9FD);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 8px 20px rgba(2,86,155,0.3);
}

/* TITLE */
.flutter-title {
    text-align: center;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
}

.flutter-emoji {
    display: inline-block;
    animation: flutter-bounce 2s infinite;
}

@keyframes flutter-bounce {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* TEXT */
.flutter-popup-subtext {
    text-align: center;
    color: #4b5563;
    font-size: 16px;
    margin-bottom: 35px;
}

.flutter-popup-subtext strong {
    color: #02569B;
}

/* FEATURES */
.flutter-features-list {
    background: #f0f9ff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0f2fe;
}

.flutter-features-list ul {
    list-style: none;
    padding: 0;
}

.flutter-features-list li {
    padding: 8px 0;
    color: #1e40af;
    font-size: 14px;
    display: flex;
    gap: 10px;
}

.flutter-features-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
}

/* INPUTS */
.flutter-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.flutter-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af;
}

.flutter-popup input {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    font-size: 16px;
    background: #f9fafb;
}

.flutter-popup input:focus {
    outline: none;
    border-color: #02569B;
    box-shadow: 0 0 0 4px rgba(2,86,155,0.1);
}

/* CTA */
.flutter-cta-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #02569B, #13B9FD);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* TRUST */
.flutter-trust-line {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    color: #6b7280;
}

/* SUCCESS */
.flutter-success-message {
    display: none;
    text-align: center;
    padding: 30px;
}

.flutter-success-message.active {
    display: block;
}

.flutter-success-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.flutter-download-note {
    margin-top: 20px;
    color: #02569B;
    font-weight: 600;
}

/* LOCK SCROLL */
body.flutter-popup-open {
    overflow: hidden;
}
