/**
 * ⚡ FlashPush-AI Public Styles
 * Glassmorphic Ultra-Modern Category Modal & Anti-Block Guidance Overlay
 * Version: 1.0.0
 */

:root {
    --fp-primary: #00F2FE;
    --fp-secondary: #4FACFE;
    --fp-accent-purple: #8A2387;
    --fp-accent-orange: #F27121;
    --fp-bg-dark: #050811;
    --fp-card-bg: #070A12;
    --fp-border: rgba(0, 242, 254, 0.22);
    --fp-text: #F8FAFC;
    --fp-text-muted: #94A3B8;
    --fp-radius: 18px;
    --fp-glow: 0 0 35px rgba(0, 242, 254, 0.25);
}

/* Modal Overlay */
.flashpush-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 5, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: fpFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Box */
.flashpush-modal-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: var(--fp-card-bg);
    border: 1px solid var(--fp-border);
    border-radius: var(--fp-radius);
    padding: 30px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), var(--fp-glow);
    color: var(--fp-text);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    transform: scale(0.95);
    animation: fpSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    overflow: hidden;
}

/* Close Button */
.flashpush-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--fp-text-muted);
    font-size: 20px;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.flashpush-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    transform: rotate(90deg);
}

/* Header & Badges */
.flashpush-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.flashpush-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-secondary) 100%);
    color: #04070D;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    box-shadow: 0 2px 10px rgba(0, 242, 254, 0.3);
}

.flashpush-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.flashpush-modal-subtitle {
    font-size: 13.5px;
    color: var(--fp-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Quick Niches Grid */
.flashpush-niches-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
}

.flashpush-niche-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    box-sizing: border-box;
}

.flashpush-niche-btn:hover {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.25) 100%);
    border-color: var(--fp-primary);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.flashpush-niche-others {
    background: linear-gradient(135deg, rgba(138, 35, 135, 0.15), rgba(242, 113, 33, 0.15));
    border-color: rgba(242, 113, 33, 0.4);
    color: #FFA07A;
}

.flashpush-niche-others:hover {
    background: linear-gradient(135deg, var(--fp-accent-purple), var(--fp-accent-orange));
    color: #FFFFFF;
    border-color: transparent;
}

/* Expandable Others Search Box */
.flashpush-others-box {
    margin-top: 14px;
    animation: fpExpand 0.3s ease forwards;
}

.flashpush-search-group {
    display: flex;
    gap: 8px;
}

.flashpush-search-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 12px 16px;
    font-size: 13.5px;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease;
}

.flashpush-search-group input:focus {
    border-color: var(--fp-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.flashpush-btn-submit {
    background: linear-gradient(135deg, var(--fp-primary) 0%, var(--fp-secondary) 100%);
    color: #04070D;
    font-weight: 700;
    font-size: 13px;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.flashpush-btn-submit:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* Anti-Block Lock Guidance Overlay */
.flashpush-guidance-container {
    text-align: center;
    padding: 10px 0;
}

.flashpush-lock-animation {
    position: relative;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flashpush-lock-icon {
    font-size: 34px;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 75, 75, 0.6));
    animation: fpShake 1.8s infinite ease-in-out;
}

.flashpush-pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 75, 75, 0.4);
    animation: fpPulse 2s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

.flashpush-guidance-title {
    font-size: 19px;
    font-weight: 700;
    color: #FF5E62;
    margin: 0 0 10px 0;
}

.flashpush-guidance-body p {
    font-size: 13.5px;
    color: #CBD5E1;
    line-height: 1.55;
    margin: 0 0 18px 0;
}

.flashpush-guidance-steps {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: left;
    margin-bottom: 20px;
}

.flashpush-step-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #E2E8F0;
    margin-bottom: 8px;
}

.flashpush-step-item:last-child {
    margin-bottom: 0;
}

.step-num {
    background: linear-gradient(135deg, var(--fp-primary), var(--fp-secondary));
    color: #04070D;
    font-weight: 800;
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.flashpush-btn-reload {
    width: 100%;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14.5px;
    border: none;
    padding: 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.flashpush-btn-reload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

/* Animations */
@keyframes fpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fpSlideUp {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fpExpand {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fpPulse {
    0% { transform: scale(0.85); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@keyframes fpShake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-8deg); }
    40%, 80% { transform: rotate(8deg); }
}

@keyframes fpBellShake {
    0%, 100% { transform: rotate(0deg); }
    15%, 45% { transform: rotate(14deg); }
    30%, 60% { transform: rotate(-14deg); }
    75% { transform: rotate(0deg); }
}

/* ⚡ Floating Google One Tap Pill (Always available even when FedCM enters cooldown) */
.flashpush-g-pill {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999990;
    display: flex;
    align-items: center;
    background: #070A12;
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: 40px;
    padding: 6px 14px 6px 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 242, 254, 0.15);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fpSlideDown 0.4s ease-out;
}

.flashpush-g-pill:hover {
    transform: translateY(-2px);
    border-color: #00F2FE;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 242, 254, 0.35);
}

.flashpush-g-pill-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flashpush-g-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.flashpush-g-pill-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.flashpush-g-label {
    font-size: 10.5px;
    color: #94A3B8;
    line-height: 1.1;
}

.flashpush-g-cta {
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

.flashpush-g-close {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 10px;
    line-height: 1;
    transition: color 0.2s ease;
}

.flashpush-g-close:hover {
    color: #FF5252;
}

@keyframes fpSlideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ⚡ Logged-In User Profile Chip (Nav Bar Persistence) */
.flashpush-user-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(7, 10, 18, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 40px;
    padding: 5px 12px 5px 6px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 242, 254, 0.2);
    animation: fpFadeIn 0.3s ease;
}

.flashpush-user-badge .fp-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #00F2FE;
    object-fit: cover;
}

.flashpush-user-badge .fp-user-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.flashpush-user-badge .fp-user-name {
    font-size: 12px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
}

.flashpush-user-badge .fp-user-status {
    font-size: 10px;
    font-weight: 600;
    color: #00F2FE;
    line-height: 1.1;
}

.flashpush-user-badge .fp-user-logout {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 15px;
    cursor: pointer;
    margin-left: 6px;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.flashpush-user-badge .fp-user-logout:hover {
    color: #FF5252;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .flashpush-modal-box {
        padding: 22px 18px;
        max-width: 92%;
    }
    .flashpush-modal-title {
        font-size: 17.5px;
    }
    .flashpush-g-pill,
    .flashpush-user-badge {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
        width: 90%;
        max-width: 340px;
        justify-content: space-between;
    }
    .flashpush-g-pill:hover,
    .flashpush-user-badge:hover {
        transform: translateX(50%) translateY(-2px);
    }
}
