/* ================================================
   GOJI CONVERSION ELEMENTS
   - Live Activity Toast
   - Exit Intent Popup
================================================ */

/* === LIVE ACTIVITY TOAST === */
#goji-activity-toast {
    position: fixed;
    z-index: 9990;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(14, 16, 20, 0.97);
    border: 1px solid rgba(0, 255, 135, 0.22);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: none;
    pointer-events: none;

    /* Mobile: full-width bar below header */
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 10px 16px;
    max-width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-80px);
}

@media (min-width: 768px) {
    #goji-activity-toast {
        top: auto;
        bottom: 100px;
        left: 20px;
        right: auto;
        border-radius: 14px;
        border: 1px solid rgba(0, 255, 135, 0.22);
        padding: 11px 14px 11px 12px;
        max-width: 276px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 255, 135, 0.06);
        transform: translateX(-320px);
    }
}

#goji-activity-toast.goji-toast-in {
    animation: gojiToastInMobile 0.4s ease forwards;
}

#goji-activity-toast.goji-toast-out {
    animation: gojiToastOutMobile 0.3s ease forwards;
}

@media (min-width: 768px) {
    #goji-activity-toast.goji-toast-in {
        animation: gojiToastIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    #goji-activity-toast.goji-toast-out {
        animation: gojiToastOut 0.35s ease forwards;
    }
}

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

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

@keyframes gojiToastIn {
    from { transform: translateX(-320px); opacity: 0; }
    to   { transform: translateX(0);      opacity: 1; }
}

@keyframes gojiToastOut {
    from { transform: translateX(0);      opacity: 1; }
    to   { transform: translateX(-320px); opacity: 0; }
}

.goji-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.goji-toast-body {
    min-width: 0;
}

.goji-toast-name {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.goji-toast-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.52);
    margin-top: 2px;
    line-height: 1.4;
}

.goji-toast-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.22);
    margin-top: 3px;
}

/* === EXIT INTENT === */
#goji-exit-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: gojiExitFadeIn 0.3s ease;
}

@keyframes gojiExitFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#goji-exit-box {
    background: #111316;
    border: 1px solid rgba(0, 255, 135, 0.28);
    border-radius: 24px;
    max-width: 440px;
    width: 100%;
    padding: 36px 32px 28px;
    position: relative;
    text-align: center;
    box-shadow: 0 0 80px rgba(0, 255, 135, 0.12), 0 24px 64px rgba(0, 0, 0, 0.55);
    animation: gojiExitSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gojiExitSlideIn {
    from { transform: scale(0.88) translateY(24px); opacity: 0; }
    to   { transform: scale(1)    translateY(0);    opacity: 1; }
}

#goji-exit-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#goji-exit-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.goji-exit-emoji {
    font-size: 52px;
    margin-bottom: 14px;
    line-height: 1;
}

.goji-exit-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(0, 255, 135, 0.1);
    border: 1px solid rgba(0, 255, 135, 0.2);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #00ff87;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 14px;
}

.goji-exit-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    margin-bottom: 10px;
}

.goji-exit-title span {
    color: #00ff87;
}

.goji-exit-desc {
    color: rgba(255, 255, 255, 0.48);
    font-size: 13px;
    margin-bottom: 22px;
    line-height: 1.65;
}

.goji-exit-cta {
    display: block;
    width: 100%;
    background: #00ff87;
    color: #000 !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    letter-spacing: 0.05em;
    box-shadow: 0 0 32px rgba(0, 255, 135, 0.38);
    transition: background 0.2s, transform 0.15s;
    margin-bottom: 12px;
}

.goji-exit-cta:hover {
    background: #fff;
    transform: scale(1.02);
}

.goji-exit-skip {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.28);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.goji-exit-skip:hover {
    color: rgba(255, 255, 255, 0.55);
}

/* === FAQ === */
.goji-faq-section {
    background: #050608;
    padding: 52px 0 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.goji-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .goji-faq-grid {
        grid-template-columns: 1fr;
    }
}

.goji-faq-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.goji-faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.goji-faq-item.open {
    border-color: rgba(0, 255, 135, 0.18);
}

.goji-faq-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    gap: 14px;
}

.goji-faq-btn:hover {
    color: #00ff87;
}

.goji-faq-icon {
    color: #00ff87;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s;
    font-weight: 300;
}

.goji-faq-item.open .goji-faq-icon {
    transform: rotate(45deg);
}

.goji-faq-ans {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.goji-faq-ans-inner {
    padding: 0 20px 16px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 13px;
    line-height: 1.75;
}
