/* ── pop.css – OMNIBIOFEX Modal Styles ── */
/* All popup/modal styles in one place for easy maintenance */

/* ==========================================
   GLASS-MORPHISM BASE
   ========================================== */

/* ── Shared overlay styles (base & specific) ── */
.modal-overlay,
.auth-modal-overlay,
.pricing-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.modal-overlay.active,
.auth-modal-overlay.active,
.pricing-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* ── Shared modal container (glass) ── */
.modal-glass,
.auth-modal,
.pricing-modal {
    background: #ffffff;
    border-radius: 2.5rem;
    border: 3px solid #000000;
    padding: 2.5rem 2rem 2rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Shared close button ── */
.modal-close,
.auth-modal-close,
.pricing-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 2px solid #000000;
    background: transparent;
    cursor: pointer;
    color: #000;
    opacity: 0.6;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover,
.auth-modal-close:hover,
.pricing-modal-close:hover {
    opacity: 1;
    background: #D0EDF6;
    transform: rotate(90deg);
}
.modal-close i,
.auth-modal-close i,
.pricing-modal-close i {
    width: 18px;
    height: 18px;
}

/* ── Modal scrollbar ── */
.modal-glass::-webkit-scrollbar,
.auth-modal::-webkit-scrollbar,
.pricing-modal::-webkit-scrollbar {
    width: 4px;
}
.modal-glass::-webkit-scrollbar-track,
.auth-modal::-webkit-scrollbar-track,
.pricing-modal::-webkit-scrollbar-track {
    background: transparent;
}
.modal-glass::-webkit-scrollbar-thumb,
.auth-modal::-webkit-scrollbar-thumb,
.pricing-modal::-webkit-scrollbar-thumb {
    background: #d5d8db;
    border-radius: 10px;
}
.modal-glass::-webkit-scrollbar-thumb:hover,
.auth-modal::-webkit-scrollbar-thumb:hover,
.pricing-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* ==========================================
   AUTH MODAL SPECIFICS
   ========================================== */

.auth-modal {
    max-width: 420px;
}

.auth-modal h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-modal p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
    text-align: center;
}

.auth-modal .modal-logo {
    text-align: center;
    margin-bottom: 1rem;
}
.auth-modal .modal-logo img {
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    border: 2px solid #000000;
    margin: 0 auto;
}

.auth-modal .auth-footer {
    text-align: center;
    margin-top: 1rem;
}
.auth-modal .auth-footer p {
    font-size: 0.65rem;
    color: rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

/* ── Google Sign-In Button ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    border-radius: 9999px;
    border: 2px solid #000;
    background: #fff;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s;
    cursor: pointer;
}
.btn-google:hover {
    background: #f5f5f5;
    transform: scale(1.02);
}
.btn-google img {
    width: 24px;
    height: 24px;
}

/* ==========================================
   PRICING MODAL SPECIFICS
   ========================================== */

.pricing-modal {
    max-width: 720px;
    padding-bottom: 2rem;
}

.pricing-modal .pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.pricing-modal .pricing-header .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}
.pricing-modal .pricing-header .badge-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.4);
    display: block;
    margin-bottom: 0.25rem;
}
.pricing-modal .pricing-header h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.pricing-modal .pricing-header p {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Pricing Plans Grid ── */
.pricing-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

/* ── Individual Plan Card ── */
.plan-card {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    padding: 1.5rem 1.25rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
}
.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}
.plan-card:active {
    transform: scale(0.98);
}

/* ── Featured Plan (Best Value) ── */
.plan-card.featured {
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.plan-card.featured:hover {
    box-shadow: 0 20px 50px rgba(208, 237, 246, 0.15);
}

.plan-card .badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #D0EDF6;
    color: #000000;
    font-size: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.2rem 1.2rem;
    border-radius: 0 0 9999px 9999px;
    border: 2px solid #000000;
    border-top: none;
}

/* ── Plan Card Inner Content ── */
.plan-card-inner {
    text-align: center;
}
.plan-card-inner .plan-name {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.plan-card-inner .plan-price-group {
    margin: 0.5rem 0 0.25rem;
}
.plan-card-inner .plan-price {
    font-size: 2.2rem;
    font-weight: 900;
}
.plan-card-inner .plan-period {
    font-size: 0.75rem;
    color: #666;
}
.plan-card-inner .plan-first-month {
    font-size: 0.65rem;
    color: #666;
    margin: 0.25rem 0 0.75rem;
    background: rgba(208, 237, 246, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
}
.plan-card-inner .plan-first-month strong {
    color: #000;
}
.plan-card-inner .plan-savings {
    font-size: 0.65rem;
    color: #22c55e;
    margin: 0.25rem 0 0.75rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    display: inline-block;
}

/* ── Plan Features List ── */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
    text-align: left;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #444;
    padding: 0.2rem 0;
}
.plan-features li i {
    flex-shrink: 0;
    color: #D0EDF6;
}

/* ── Plan Select Button ── */
.plan-select-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    letter-spacing: 0.02em;
}
.plan-select-btn:hover {
    background: #D0EDF6;
    color: #000000;
    transform: scale(1.02);
}
.plan-select-btn.primary {
    background: #D0EDF6;
    color: #000000;
}
.plan-select-btn.primary:hover {
    background: #b8dce8;
    transform: scale(1.02);
}
.plan-select-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.plan-select-btn.loading {
    background: #e5e7eb;
    color: #666;
}

/* ── Pricing Footer ── */
.pricing-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}
.pricing-footer .security-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}
.pricing-footer .security-badges span {
    font-size: 0.6rem;
    color: rgba(0, 0, 0, 0.3);
}
.pricing-footer .security-badges .divider {
    width: 1px;
    height: 12px;
    background: rgba(0, 0, 0, 0.15);
}

/* ==========================================
   NAVIGATION GOOGLE BUTTON
   ========================================== */

.nav-google-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border: 2px solid #000;
    border-radius: 9999px;
    padding: 0.4rem 1rem 0.4rem 0.6rem;
    font-weight: 700;
    font-size: 0.75rem;
    transition: all 0.25s;
    cursor: pointer;
}
.nav-google-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}
.nav-google-btn img {
    width: 20px;
    height: 20px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

/* ── Tablets ── */
@media (max-width: 768px) {
    .modal-glass,
    .auth-modal,
    .pricing-modal {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 2rem;
    }
    .pricing-modal .pricing-header h2 {
        font-size: 1.6rem;
    }
    .plan-card-inner .plan-price {
        font-size: 1.8rem;
    }
}

/* ── Mobile ── */
@media (max-width: 600px) {
    .modal-glass,
    .auth-modal,
    .pricing-modal {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 1.75rem;
        margin: 0.5rem;
    }

    /* Auth modal */
    .auth-modal h2 {
        font-size: 1.5rem;
    }
    .btn-google {
        font-size: 0.9rem;
        padding: 0.7rem;
    }

    /* Pricing modal */
    .pricing-plans {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .pricing-modal .pricing-header h2 {
        font-size: 1.5rem;
    }
    .plan-card {
        padding: 1.25rem 1rem;
    }
    .plan-card-inner .plan-price {
        font-size: 1.6rem;
    }
    .pricing-footer .security-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .pricing-footer .security-badges .divider {
        display: none;
    }
}

/* ── Small phones ── */
@media (max-width: 400px) {
    .modal-glass,
    .auth-modal,
    .pricing-modal {
        padding: 1.5rem 1rem 1.25rem;
        border-radius: 1.5rem;
    }
    .auth-modal h2 {
        font-size: 1.3rem;
    }
    .auth-modal p {
        font-size: 0.8rem;
    }
}

/* ── Currency Toggle ── */
.currency-toggle {
    display: inline-flex;
    background: #f0f0f0;
    border-radius: 9999px;
    padding: 0.2rem;
    border: 2px solid #000;
    margin-top: 0.5rem;
}
.currency-toggle .currency-btn {
    background: transparent;
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #666;
}
.currency-toggle .currency-btn.active {
    background: #000;
    color: #fff;
}
.currency-toggle .currency-btn:not(.active):hover {
    background: rgba(0,0,0,0.05);
}

/* ── Custom Cursor (shared) ── */
#cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #000000;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100000;
    will-change: transform;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
#cursor-outline {
    width: 38px;
    height: 38px;
    border: 1.5px solid rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: border-color 0.25s, background-color 0.25s, transform 0.15s;
    will-change: transform;
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(1px);
}

/* ── Cursor visibility on touch devices ── */
@media (pointer: fine) {
    body, a, button, .hover-target {
        cursor: none !important;
    }
}
@media (pointer: coarse) {
    #cursor-dot, #cursor-outline {
        display: none !important;
    }
}