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

:root {
    --emerald-dark: #064E3B;
    --emerald-mid: #059669;
    --emerald-vibrant: #10B981;
    --emerald-light: #34D399;
    --gold-bold: #B8860B;
    --gold-vibrant: #D4AF37;
    --white-text: #FFFFFF;
    --tint-glow: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Outfit', sans-serif;
    background: #022C22;
    background-image:
        radial-gradient(circle at top left, #064E3B, transparent),
        radial-gradient(circle at bottom right, #111827, transparent);
    background-attachment: fixed;
    color: var(--white-text);
    min-height: 100vh;
}

/* HIGH-CONTRAST TECHNICOLOR CARDS */
.premium-card {
    background: var(--emerald-dark);
    /* Solid Color, No White */
    border-radius: 2.5rem;
    padding: 3rem 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Section Colors */
.card-family {
    background: var(--gold-bold);
    color: #000;
}

.card-payment {
    background: var(--emerald-mid);
}

/* VIBRANT BUBBLES - The Mobile Focal Point */
.icon-circle {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-vibrant);
    color: #000;
    font-size: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    margin-bottom: 2.5rem;
    border: 4px solid var(--white-text);
}

.card-family .icon-circle {
    background: var(--emerald-dark);
    color: #FFF;
    border-color: #000;
}

/* ZERO-WHITE INPUTS - HIGH VISIBILITY */
.form-input {
    width: 100%;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #FFF;
    transition: all 0.3s ease;
}

.card-family .form-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.card-family .form-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white-text);
    outline: none;

    /* THE BUBBLES - High Saturated Design Centerpiece */
    .icon-circle {
        width: 6rem;
        /* Large for phone usage */
        height: 6rem;
        border-radius: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--neon-emerald) 0%, var(--deep-emerald) 100%);
        color: #FFF;
        font-size: 2.5rem;
        box-shadow:
            0 20px 40px -10px rgba(16, 185, 129, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
        margin-bottom: 2.5rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
        position: relative;
        z-index: 10;
    }

    .icon-circle::after {
        content: '';
        position: absolute;
        inset: -15px;
        background: var(--neon-emerald);
        filter: blur(30px);
        opacity: 0.2;
        z-index: -1;
    }

    .icon-circle.style-gold {
        background: linear-gradient(135deg, var(--neon-gold) 0%, var(--dark-gold) 100%);
        box-shadow:
            0 20px 40px -10px rgba(245, 158, 11, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }

    .icon-circle.style-gold::after {
        background: var(--neon-gold);
    }

    /* Decorative Background Elements */
    .card-blob {
        position: absolute;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
        top: -125px;
        right: -125px;
        border-radius: 50%;
        z-index: 0;
        pointer-events: none;
    }

    .card-blob-gold {
        background: radial-gradient(circle, var(--gold-light) 0%, transparent 70%);
        opacity: 0.4;
    }

    .label-bold {
        font-size: 0.85rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--gold-vibrant);
        margin-bottom: 1rem;
        display: block;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

/* Closing bracket for previous section if missing */

/* LOGO BUBBLE */
.logo-bubble {
    background: #FFFFFF;
    border-radius: 50%;
    padding: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    border: 6px solid var(--gold-vibrant);
    position: relative;
    z-index: 10;
}

.logo-bubble::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gold-vibrant);
    filter: blur(40px);
    opacity: 0.2;
    z-index: -1;
}

/* SUBMIT BUTTON BUBBLE */
.submit-bubble-wrapper {
    position: relative;
    padding: 3rem 0;
}

.submit-bubble-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18rem;
    height: 18rem;
    background: radial-gradient(circle, var(--emerald-mid) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

/* FIX VISIBILITY FOR LOGIN/ADMIN */
#view-login .form-input,
#view-admin .form-input,
#view-login input,
#view-admin input {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

#view-login input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

h2,
h3,
h4 {
    color: #FFFFFF !important;
}

p {
    color: rgba(255, 255, 255, 0.7);
}

/* Dynamic List Items */
.member-badge {
    padding: 1rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold-light);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.btn-gold {
    background: var(--gold-main);
    color: white;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

/* LOGO BUBBLE BASE */
.logo-bubble {
    background: #FFFFFF;
    border-radius: 50% !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
    border: 5px solid var(--gold-vibrant);
    position: relative;
    z-index: 10;
    overflow: hidden !important;
    aspect-ratio: 1/1;
}

.logo-bubble img {
    border-radius: 50% !important;
    object-fit: cover !important;
    /* Force zoom to cut off white square corners */
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* LOGO VARIATIONS - EXTREME SCALING */
.logo-miniature {
    width: 38px !important;
    height: 38px !important;
    padding: 0.15rem !important;
    border-width: 2px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.logo-hero {
    width: 180px !important;
    height: 180px !important;
    padding: 1.25rem;
    border-width: 8px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

@media (min-width: 768px) {
    .logo-hero {
        width: 280px !important;
        height: 280px !important;
        padding: 2rem;
    }
}

/* PREMIUM SUBMIT BUTTON */
.submit-btn {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white !important;
    padding: 1.5rem 4rem;
    border-radius: 100px;
    font-weight: 900;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow:
        0 10px 30px -5px rgba(16, 185, 129, 0.5),
        0 0 60px rgba(16, 185, 129, 0.2);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: 3px solid #34D399;
    outline: none;
}

.submit-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.6);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-btn i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.submit-bubble-wrapper {
    position: relative;
    padding: 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 3rem;
    margin-top: 4rem;
}

.submit-bubble-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30rem;
    height: 30rem;
    background: radial-gradient(circle, var(--emerald-mid) 0%, transparent 70%);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

/* Animations - Smoother for glass */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

.toast-active {
    transform: translate(-50%, -20px);
    opacity: 1 !important;
}

@media (max-width: 640px) {
    .premium-card {
        padding: 2.5rem 1.75rem;
        border-radius: 2rem;
    }

    .btn-primary {
        padding: 1.5rem;
        font-size: 1rem;
    }
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #FFF;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}