@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;800&display=swap');

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    margin: 0;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* --- BACKGROUND & LAYOUT --- */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: 
        radial-gradient(at 0% 0%, #e0e7ff 0px, transparent 50%),
        radial-gradient(at 50% 0%, #f5f3ff 0px, transparent 50%),
        radial-gradient(at 100% 0%, #fae8ff 0px, transparent 50%),
        radial-gradient(at 0% 100%, #e0f2fe 0px, transparent 50%),
        radial-gradient(at 100% 100%, #fef3c7 0px, transparent 50%);
    filter: blur(100px); 
    opacity: 0.8;
}

.glass-panel { 
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px); 
    box-shadow: 0 20px 50px -10px rgba(31, 38, 135, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.02); 
}

.brand-gradient {
    background: linear-gradient(135deg, #4f46e5, #db2777);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- STEP MANAGEMENT --- */
.step-container { display: none; }
.step-container.active { display: block; animation: fadeInUp 0.5s forwards; }

/* --- FORM ELEMENTS --- */
.label-premium { 
    display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; 
    letter-spacing: 0.2em; color: #4f46e5; margin-bottom: 0.6rem; padding-left: 0.25rem; 
}

.input-premium { 
    width: 100%; padding: 1.25rem 1.25rem 1.25rem 3.5rem; background: #ffffff; 
    border-radius: 1.25rem; font-weight: 800; border: 2px solid #f1f5f9; 
    color: #1e293b; transition: 0.3s; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.input-premium:focus { border-color: #6366f1; box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1); outline: none; }

/* --- BUTTONS & SELECTIONS --- */
.btn-premium, .platform-btn, .amount-card { transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; }

.btn-premium { background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); color: white; border-radius: 1.25rem; box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4); }
.btn-premium:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-premium:active { transform: scale(0.95) translateY(2px) !important; filter: brightness(0.9); }

.platform-btn { aspect-ratio: 1; border-radius: 1.25rem; background: white; color: #6366f1; border: 2px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.platform-btn.active { background: #6366f1; color: white; border-color: #4338ca; transform: scale(1.08); box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2); }

.amount-card { width: 100%; padding: 1.25rem 1.75rem; background: #ffffff; border-radius: 1.75rem; border: 2px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); cursor: pointer; }
.amount-card.active { border-color: #6366f1; background: #f8faff; transform: scale(1.03); box-shadow: 0 15px 30px -10px rgba(99, 102, 241, 0.15); }

.amount-text { display: block; font-size: 1.75rem; font-weight: 900; color: #1e293b; line-height: 1; }
.unit-subtext { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #94a3b8; }

.amount-icon-wrapper { width: 3.5rem; height: 3.5rem; background: #f1f5f9; border-radius: 1.25rem; display: flex; align-items: center; justify-content: center; color: #6366f1; font-size: 1.5rem; transition: 0.3s; }
.amount-card.active .amount-icon-wrapper { background: #6366f1; color: #ffffff; box-shadow: 0 8px 15px rgba(99, 102, 241, 0.3); }

.selection-indicator { font-size: 1.25rem; color: #6366f1; opacity: 0; transform: translateX(10px); transition: 0.3s; }
.amount-card.active .selection-indicator { opacity: 1; transform: translateX(0); }

/* --- CHAT & UI ELEMENTS --- */
.chat-input { flex: 1; background: white; border-radius: 1rem; padding: 0.75rem 1.25rem; outline: none; border: 1px solid #e2e8f0; }
.btn-send { width: 3rem; height: 3rem; background: #6366f1; color: white; border-radius: 1rem; }

/* --- ANIMATIONS --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce-large { from { transform: translateY(0); opacity: 0.4; } to { transform: translateY(-6px); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes toastIn { from { transform: translate(-50%, 20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

.animate-float { animation: float 3s ease-in-out infinite; }
.radar-loader-premium { width: 100%; height: 100%; border: 4px solid transparent; border-top: 4px solid #6366f1; border-right: 4px solid #ec4899; border-radius: 50%; animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite; }
.scanner-ring { position: absolute; inset: 0; border: 4px solid #6366f1; border-radius: 50%; animation: scan 2s infinite; }
#errorToast { animation: toastIn 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards; }

.dot-pulse-large { width: 8px; height: 8px; background: #4f46e5; border-radius: 50%; animation: bounce-large 0.6s infinite alternate; }
.delay-75 { animation-delay: 0.15s; }
.delay-150 { animation-delay: 0.3s; }

/* Verify Pulse Animation */
.btn-verify-pulse { animation: buttonBreath 3s ease-in-out infinite; }
.btn-verify-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 1.25rem; background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%); z-index: -1; opacity: 0; animation: buttonPulseGlow 3s ease-out infinite; }
@keyframes buttonBreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes buttonPulseGlow { 0% { transform: scale(1); opacity: 0.5; } 50% { opacity: 0.2; } 100% { transform: scale(1.2, 1.4); opacity: 0; } }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 640px) {
    .step-container h2 { font-size: 1.85rem !important; line-height: 1.1; }
}

/* Special Styling for Verification Success Messages */
.bubble-verification {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-left: 5px solid #22c55e;
    color: #14532d;
    width: 95%;
    margin: 10px auto;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.1);
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-highlight {
    font-weight: 900;
    color: #166534;
    text-decoration: underline;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Other Users (Left) */
.msg-left {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1.25rem 1.25rem 1.25rem 0.25rem;
    border: 1px solid white;
}

/* Real User (Right - You) */
.msg-right {
    align-self: flex-end;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: white !important;
    border-radius: 1.25rem 1.25rem 0.25rem 1.25rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Ensure chatBox is a flex container */
#chatBox {
    display: flex;
    flex-direction: column;
}

.typing-dot {
    width: 4px;
    height: 4px;
    background: #6366f1;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
}