/**
 * Drunk In Love - Cloud Kingdom V5: GOLD MASTERPIECE
 * Professional 3D Aesthetic, Glassmorphism, and Golden Heart Tokens
 */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --accent-pink: #ff69b4;
    --accent-deep: #d11568;
    --accent-soft: #ffeef6;
    --gold-main: #ffd700;
    --gold-deep: #b8860b;
    --gold-shimmer: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    --sky-top: #ffd6e8;
    --sky-bottom: #fff0f5;
    /* Pure Soft Pink Sky */
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --text-main: #4a1d33;
    --text-muted: #a67c91;

    --font-heading: 'Fredoka One', cursive;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    outline: none !important;
}

input:focus,
button:focus,
a:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

body {
    font-family: var(--font-body);
    overflow-x: hidden;
    background: #fff;
    /* Light sky base */
    cursor: default;
    /* Hide default for sparkle cursor - RESTORED DEFAULT */
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
}

/* =========================================
   CINEMATIC BACKGROUND SYSTEM
   ========================================= */
.cloud-kingdom-v2 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 20px;
    z-index: 1;
}

.cinema-bg {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%);
    z-index: -2;
    overflow: hidden;
}

/* Aurora Effects */
.aurora {
    position: absolute;
    width: 60vw;
    height: 60vh;
    filter: blur(120px);
    opacity: 0.5;
    z-index: -1;
    animation: auroraDrift 20s infinite ease-in-out;
}

.pink-aurora {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.4) 0%, transparent 70%);
}

.blue-aurora {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.3) 0%, transparent 70%);
    animation-delay: -5s;
}

@keyframes auroraDrift {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.1) translate(5%, 5%);
    }

    66% {
        transform: scale(0.9) translate(-5%, 2%);
    }
}

/* Light Beams */
.light-beams {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.beam {
    position: absolute;
    top: -50%;
    width: 40vw;
    height: 200%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    animation: beamSweep 15s infinite ease-in-out;
}

.beam-2 {
    left: 40%;
    animation-delay: -7s;
}

@keyframes beamSweep {

    0%,
    100% {
        transform: rotate(25deg) translateX(-10%);
    }

    50% {
        transform: rotate(28deg) translateX(10%);
    }
}

/* =========================================
   VOLUMETRIC CLOUDS (DIVINE UPDATE)
   ========================================= */
.volumetric-clouds {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.v-cloud {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    transition: transform 0.5s ease-out;
}

.vc-1 {
    width: 600px;
    height: 300px;
    top: -10%;
    left: -10%;
    animation: cloudDrift 40s infinite linear;
}

.vc-2 {
    width: 800px;
    height: 400px;
    bottom: -15%;
    right: -10%;
    animation: cloudDrift 60s infinite linear reverse;
}

.vc-3 {
    width: 500px;
    height: 250px;
    top: 40%;
    right: -20%;
    animation: cloudDrift 50s infinite linear;
    opacity: 0.2;
}

@keyframes cloudDrift {
    from {
        transform: translateX(-100px) rotate(0deg);
    }

    to {
        transform: translateX(100vw) rotate(10deg);
    }
}

/* =========================================
   PETAL SYSTEM
   ========================================= */
.petal-system {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.petal {
    position: absolute;
    width: 15px;
    height: 15px;
    background: var(--accent-pink);
    border-radius: 15px 2px;
    opacity: 0.6;
    animation: petalFall linear forwards;
}

.petal-gold {
    background: var(--gold-main);
}

@keyframes petalFall {
    0% {
        transform: translate(0, -10vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translate(100px, 110vh) rotate(720deg);
        opacity: 0;
    }
}

/* =========================================
   INTRO REVEAL SEQUENCE
   ========================================= */
.divine-intro-flash {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    pointer-events: none;
    animation: introFadeOut 1.5s forwards ease-out;
}

@keyframes introFadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.portal-experience {
    animation: portalReveal 2s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes portalReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        filter: blur(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* =========================================
   AURA INPUT FOCUS
   ========================================= */
.glass-auth-portal {
    /* ... existing props ... */
    transition: transform 0.1s ease-out, background 0.5s ease, box-shadow 0.5s ease !important;
}

.glass-auth-portal.aura-pulse {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 100px rgba(255, 105, 180, 0.4), inset 0 0 40px rgba(255, 255, 255, 0.5);
}

.float-1 {
    width: 150px;
    height: 150px;
    top: 20%;
    left: 10%;
}

.float-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 15%;
    animation-delay: -3s;
}

.float-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 40%;
    animation-delay: -6s;
    opacity: 0.3;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -50px);
    }
}

/* =========================================
   GOLDEN HEART TOKENS & SPARKLES
   ========================================= */
.gold-heart-token {
    position: absolute;
    font-size: 32px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: goldFloat 12s infinite ease-in-out;
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gold-heart-token::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gold-shimmer);
    background-size: 200% 100%;
    mix-blend-mode: overlay;
    animation: metallicShimmer 3s infinite linear;
    border-radius: 50%;
}

@keyframes metallicShimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes goldFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate(60px, -80px) rotate(15deg) scale(1.15);
    }

    66% {
        transform: translate(-40px, -140px) rotate(-10deg) scale(0.9);
    }
}

.gh-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.gh-2 {
    top: 55%;
    right: 8%;
    animation-delay: -4s;
}

.gh-3 {
    bottom: 10%;
    left: 25%;
    animation-delay: -7s;
    font-size: 22px;
}

.gh-4 {
    top: 8%;
    right: 35%;
    animation-delay: -10s;
    font-size: 26px;
}

.sparkle {
    position: absolute;
    font-size: 22px;
    color: var(--gold-main);
    filter: drop-shadow(0 0 8px var(--gold-main));
    animation: sparklePulse 3s infinite alternate;
}

@keyframes sparklePulse {
    from {
        opacity: 0.3;
        transform: scale(0.7) rotate(0deg);
    }

    to {
        opacity: 1;
        transform: scale(1.3) rotate(45deg);
    }
}

.sp-1 {
    top: 25%;
    left: 38%;
}

.sp-2 {
    bottom: 25%;
    right: 32%;
    animation-delay: 1.5s;
}

/* =========================================
   MAIN EXPERIENCE & BRANDING
   ========================================= */
.portal-experience {
    width: 100%;
    max-width: 480px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branding-focal {
    margin-bottom: 20px;
    perspective: 1000px;
}

.logo-3d-premium {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(255, 105, 180, 0.3));
    animation: floatingLogo 5s infinite ease-in-out;
    user-select: none;
}

@keyframes floatingLogo {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* =========================================
   GLASSMORPHISM PORTAL
   ========================================= */
.glass-auth-portal {
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-radius: 40px;
    border: 1px solid var(--glass-border);
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 0 100px rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    transition: transform 0.1s ease-out, background 0.5s ease, box-shadow 0.5s ease !important;
}

/* Frosted Grain Texture */
.glass-auth-portal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.glass-auth-portal::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.4) 50%, transparent 55%);
    animation: glassShimmer 8s infinite linear;
    pointer-events: none;
    z-index: 20;
}

@keyframes glassShimmer {
    0% {
        transform: translate(-20%, -20%);
    }

    100% {
        transform: translate(20%, 20%);
    }
}

.glass-inner {
    padding: 40px;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 6px;
    margin-bottom: 35px;
    gap: 4px;
    /* Space between buttons */
}

.auth-tab-btn {
    flex: 1;
    border: none !important;
    padding: 12px;
    border-radius: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.6) !important;
    color: var(--text-muted) !important;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
}

.auth-tab-btn:hover {
    background: var(--accent-soft) !important;
    color: var(--accent-pink) !important;
    transform: translateY(-2px);
}

.auth-tab-btn.active {
    background: linear-gradient(135deg, white 0%, #fff0f5 100%) !important;
    color: var(--accent-pink) !important;
    box-shadow: 0 8px 16px rgba(255, 105, 180, 0.15), 0 0 0 2px var(--gold-main) !important;
    transform: scale(1.02);
    z-index: 2;
}

/* Fix for side-by-side buttons ensuring no overlap and equal width */
.auth-tabs .auth-tab-btn {
    flex: 1 1 50%;
    margin: 0;
    white-space: nowrap;
}

/* Premium Form Styling */
.premium-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-field label {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    padding-left: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-glass-wrap {
    position: relative;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.input-glass-wrap:focus-within {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.1);
}

.input-glass-wrap input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    outline: none;
}

.input-glass-wrap input::placeholder {
    color: rgba(0, 0, 0, 0.2);
}

/* Eye Toggle V2 */
.eye-toggle-v2 {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.2s;
    height: auto !important;
    width: auto !important;
    z-index: 10;
}

.eye-toggle-v2:hover {
    opacity: 1;
}

/* Grid Layout for Signup */
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.wide {
    grid-column: span 2;
}

/* =========================================
   CTA BUTTONS (MAGNETIC EFFECT FOCUS)
   ========================================= */
.cta-btn-premium {
    position: relative;
    border: none;
    padding: 18px 30px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    color: white;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-deep) 100%);
    box-shadow: 0 10px 30px -10px rgba(209, 21, 104, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-btn-premium:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 25px 50px -10px rgba(209, 21, 104, 0.6);
    background: linear-gradient(135deg, #ff85c2 0%, #e02d7e 100%);
}

.cta-btn-premium:active {
    transform: translateY(0) scale(0.96);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    transform: rotate(45deg) translate(-100%, -100%);
    transition: all 0.6s ease;
}

/* =========================================
   SPARKLE CURSOR
   ========================================= */
.sparkle-cursor-layer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.cursor-particle {
    position: absolute;
    pointer-events: none;
    font-size: 20px;
    z-index: 10000;
    animation: particleFade 0.8s forwards ease-out;
}

@keyframes particleFade {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
        filter: blur(0);
    }

    100% {
        transform: translate(-50%, -150%) scale(0.5);
        opacity: 0;
        filter: blur(2px);
    }
}

/* =========================================
   MASCOTS & FOOTER
   ========================================= */
.portal-footer {
    margin-top: 30px;
    text-align: center;
}

.text-link-premium {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s;
}

.text-link-premium:hover {
    color: var(--accent-pink);
    text-decoration: underline;
}

.auth-panel {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.auth-panel.active {
    display: block;
    animation: panelIn 0.5s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes panelIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mascot-parallax-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.mascot {
    position: absolute;
    font-size: 80px;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
    transition: transform 0.1s linear;
    animation: mascotBreath 4s infinite ease-in-out;
}

@keyframes mascotBreath {

    0%,
    100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.05) translateY(-10px);
    }
}

.cupid-float {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.devil-float {
    top: 15%;
    right: 8%;
    animation-delay: -2s;
}

/* =========================================
   PREMIUM MODAL FIX
   ========================================= */
.premium-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.premium-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.modal-glass-container {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(40px);
    padding: 50px 40px;
    border-radius: 40px;
    border: 1px solid white;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.premium-modal.active .modal-glass-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header h3 {
    font-family: var(--font-heading);
    color: var(--accent-pink);
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 500;
}

.modal-logo-small {
    max-width: 120px;
    height: auto;
    margin-bottom: 10px;
}

/* Wide Modal for Rules */
.wide-modal {
    max-width: 650px !important;
}

.modal-scroll-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 20px;
    text-align: left;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 20px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.6;
}

.modal-scroll-content::-webkit-scrollbar {
    width: 6px;
}

.modal-scroll-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
    background: var(--accent-pink);
    border-radius: 10px;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    padding: 40px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.submit-btn-premium {
    width: 100%;
    border: none;
    padding: 16px;
    border-radius: 18px;
    background: var(--accent-pink);
    color: white;
    font-family: var(--font-heading);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(255, 105, 180, 0.4);
}

/* =========================================
   MESSAGES
   ========================================= */
.mec-form-message {
    padding: 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 700;
    display: none;
    margin-top: 10px;
}

.mec-form-message.error {
    background: rgba(255, 50, 50, 0.1);
    color: #e53e3e;
    display: block;
}

.mec-form-message.success {
    background: rgba(72, 187, 120, 0.1);
    color: #2f855a;
    display: block;
}

/* =========================================
   LUXE PORTAL FOOTER
   ========================================= */
.portal-footer-luxe {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* How to Date Steps Grid */
.how-to-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 10px 0;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px;
    background: white;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.how-step:hover {
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.step-icon {
    font-size: 32px;
    min-width: 50px;
    height: 50px;
    background: var(--accent-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.how-step h4 {
    margin: 0 0 4px 0;
    color: var(--accent-deep);
    font-size: 16px;
    font-weight: 800;
}

.how-step p,
.how-step .step-desc {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link-premium {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.footer-link-premium:hover {
    color: var(--accent-pink);
    transform: translateY(-1px);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 12px;
    border-radius: 20px;
}

.mec-lang-btn {
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.3s;
}

.mec-lang-btn.active {
    color: var(--accent-pink);
}

.lang-divider {
    color: rgba(0, 0, 0, 0.1);
    font-size: 10px;
}

.forgot-wrap {
    margin-top: 20px;
    text-align: center;
}

/* =========================================
   MODERN DATE PICKER (FLATPICKR THEME)
   ========================================= */
.flatpickr-calendar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 20px 50px rgba(74, 29, 51, 0.15) !important;
    border-radius: 24px !important;
    font-family: var(--font-body) !important;
    padding: 15px !important;
    width: 320px !important;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
    display: none !important;
}

.flatpickr-months {
    background: transparent !important;
    margin-bottom: 10px !important;
}

.flatpickr-current-month {
    font-family: var(--font-heading) !important;
    color: var(--text-main) !important;
    font-size: 110% !important;
    padding-top: 0 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    appearance: none !important;
}

.flatpickr-current-month input.cur-year {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
}

.flatpickr-weekdays {
    background: transparent !important;
    margin-bottom: 5px !important;
}

span.flatpickr-weekday {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 13px !important;
}

.flatpickr-day {
    border-radius: 12px !important;
    color: var(--text-main) !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
    line-height: 38px !important;
    height: 38px !important;
    margin-top: 2px !important;
}

.flatpickr-day.today {
    border-color: var(--gold-main) !important;
    background: transparent !important;
    color: var(--gold-deep) !important;
}

.flatpickr-day:hover {
    background: var(--accent-soft) !important;
    color: var(--accent-pink) !important;
    transform: scale(1.1);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.startRange:focus,
.flatpickr-day.endRange:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.startRange.prevMonthDay,
.flatpickr-day.endRange.prevMonthDay,
.flatpickr-day.selected.nextMonthDay,
.flatpickr-day.startRange.nextMonthDay,
.flatpickr-day.endRange.nextMonthDay {
    background: var(--accent-pink) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4) !important;
    border-color: var(--accent-pink) !important;
    animation: pulseSelect 0.4s ease-out;
}

@keyframes pulseSelect {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(57, 57, 57, 0.1) !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: var(--accent-pink) !important;
    fill: var(--accent-pink) !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--accent-deep) !important;
}

/* =========================================
   RESPONSIVE DESIGN (FINAL MASTERPIECE)
   ========================================= */
@media (max-width: 768px) {
    .logo-3d-premium {
        max-width: 300px;
    }

    .mascot {
        display: none;
    }

    .gold-heart-token,
    .sparkle {
        opacity: 0.4;
    }

    .portal-experience {
        padding-top: 20px;
    }

    .glass-inner {
        padding: 30px 20px;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .wide {
        grid-column: auto;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════
   EVENT COUNTDOWN & USER GREETING - Original Design
   ═══════════════════════════════════════════════════════════ */

.mec-app-header {
    position: absolute;
    top: 25px;
    right: 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1000;
}

.mec-user-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-mini {
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.user-name-gold {
    color: #ce2d7b;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-body);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.mec-event-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 20, 147, 0.8), rgba(138, 43, 226, 0.8));
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(206, 45, 123, 0.3);
}

.timer-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.timer-display {
    display: flex;
    gap: 10px;
}

.t-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.t-val {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.t-lbl {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mec-app-header {
        position: relative;
        top: 0;
        right: 0;
        justify-content: center;
        margin-bottom: 20px;
    }

    .mec-event-countdown {
        padding: 10px 15px;
    }

    .t-val {
        font-size: 20px;
    }
}

/* =========================================
   UX-OPTIMIZED LUXURY FLATPICKR
   ========================================= */
.flatpickr-calendar.premium-flatpickr {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 105, 180, 0.15);
    font-family: var(--font-body);
    margin-top: 12px !important;
    padding: 10px;
}

/* Header Luxury Cockpit */
.premium-flatpickr .flatpickr-months {
    background: transparent;
    border-radius: 25px;
    padding: 8px;
    margin-bottom: 5px;
}

.premium-flatpickr .flatpickr-month {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-flatpickr .flatpickr-current-month {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    position: relative;
    width: 100%;
    justify-content: center;
}

/* Re-styling the month & year selectors as "Pills" */
.premium-flatpickr select.flatpickr-monthDropdown-months,
.premium-flatpickr select.year-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: rgba(255, 105, 180, 0.08) !important;
    border: 1.5px solid rgba(255, 105, 180, 0.1) !important;
    border-radius: 12px;
    color: #4a1d33 !important;
    padding: 8px 30px 8px 15px !important;
    font-weight: 800;
    font-size: 14px !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff69b4' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    font-family: var(--font-body);
}

.premium-flatpickr select.flatpickr-monthDropdown-months:hover,
.premium-flatpickr select.year-dropdown:hover {
    background-color: rgba(255, 105, 180, 0.15) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 105, 180, 0.1);
}

.premium-flatpickr .flatpickr-prev-month,
.premium-flatpickr .flatpickr-next-month {
    top: 50% !important;
    transform: translateY(-50%);
    padding: 12px !important;
    color: var(--accent-pink) !important;
    fill: var(--accent-pink) !important;
    background: rgba(255, 105, 180, 0.05);
    border-radius: 50%;
    transition: all 0.3s;
}

.premium-flatpickr .flatpickr-prev-month:hover,
.premium-flatpickr .flatpickr-next-month:hover {
    background: var(--accent-pink);
    color: white !important;
    fill: white !important;
}

/* Day Styling */
.premium-flatpickr .flatpickr-weekday {
    color: var(--text-muted);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-flatpickr .flatpickr-day {
    border-radius: 12px;
    margin: 2px;
    height: 35px;
    line-height: 35px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s;
}

.premium-flatpickr .flatpickr-day.today {
    border: 2px solid var(--accent-pink);
    background: transparent;
    color: var(--accent-pink);
}

.premium-flatpickr .flatpickr-day.selected {
    background: var(--accent-pink) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.3);
    transform: scale(1.1);
}

.premium-flatpickr .flatpickr-day:hover {
    background: var(--accent-soft) !important;
    color: var(--accent-pink) !important;
}

/* Hide original month navigation text if any */
.premium-flatpickr .flatpickr-month span.cur-month {
    display: none;
}

.premium-flatpickr .flatpickr-calendar.arrowTop:after,
.premium-flatpickr .flatpickr-calendar.arrowTop:before {
    display: none;
    /* Cleaner look without arrows */
}