/* Prefix all classes with oa- to avoid conflicts */
.oa-hidden {
    display: none !important;
}

/* Welcome Popup Overlay */
#oa-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7); 
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    transition: opacity 0.5s ease;
}

/* Premium Popup Design (Full Background) */
.oa-welcome-popup {
    background-color: #1a1a1a;
    background-image: url('https://images.unsplash.com/photo-1494972308805-463bc619d34e?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    max-width: 1000px;
    width: clamp(300px, 75vw, 1000px);
    min-height: clamp(300px, 60vh, 800px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    font-family: inherit;
    overflow: hidden; 
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.oa-welcome-popup.oa-animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* Dark maroon gradient overlay to match website theme */
.oa-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(80, 20, 20, 0.4) 0%, rgba(30, 10, 10, 0.85) 100%);
    z-index: 1;
}

/* Make sure text elements are on top of the overlay */
.oa-popup-content {
    position: relative;
    z-index: 2;
    padding: clamp(30px, 8vw, 80px) clamp(20px, 8vw, 80px) clamp(20px, 6vw, 60px);
    color: #ffffff;
}

.oa-popup-content h2 {
    margin: 0 0 clamp(15px, 3vw, 25px);
    color: #ffffff;
    font-size: clamp(24px, 5vw, 42px);
    line-height: 1.3;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.oa-popup-desc {
    color: #e6e6e6;
    font-size: clamp(15px, 2.5vw, 20px);
    line-height: 1.6;
    margin: 0 0 clamp(20px, 4vw, 35px) 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Emphasized Highlight Box with Glassmorphism */
.oa-highlight-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: clamp(15px, 3vw, 25px) clamp(15px, 4vw, 30px);
    border-radius: 8px;
    border-left: 5px solid #d4af37; /* Brighter gold for dark background */
    margin: 0 0 clamp(25px, 5vw, 40px) 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.oa-highlight-box p {
    color: #ffffff;
    font-size: clamp(15px, 2.5vw, 20px) !important;
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.oa-popup-actions {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.5vw, 20px);
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.oa-btn-primary {
    background: #d4af37; /* Elegant gold */
    color: #1a1a1a;
    border: none;
    padding: clamp(14px, 3vw, 22px);
    border-radius: 8px;
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.oa-btn-primary:hover {
    background: #e6c863;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.oa-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: clamp(14px, 3vw, 20px);
    border-radius: 8px;
    font-size: clamp(15px, 2.5vw, 18px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.oa-btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.oa-popup-footer {
    margin-top: clamp(25px, 5vw, 40px);
    padding-top: clamp(20px, 4vw, 30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.oa-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(13px, 2vw, 16px);
    color: #cccccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.oa-checkbox-label:hover {
    color: #ffffff;
}

/* Close Button adjusted for dark background */
#oa-close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
#oa-close-popup:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: #ffffff;
}

/* Floating Help Container & Menu */
#oa-floating-help-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999990;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#oa-floating-menu {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 15px;
    overflow: hidden;
    transform-origin: bottom left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: max-content;
    border: 1px solid #eaeaea;
}

#oa-floating-menu.oa-hidden {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    pointer-events: none;
    display: block !important; 
}

#oa-floating-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Match Image 1 */
#oa-floating-menu li {
    padding: 16px 20px 16px 45px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    color: #444444;
    font-size: 14.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
    background: #ffffff;
}

#oa-floating-menu li::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #d4af37; /* Gold dot */
}

#oa-floating-menu li:last-child {
    border-bottom: none;
}

#oa-floating-menu li:hover {
    background: #fdfdfd;
    color: #000000;
}

#oa-floating-help {
    background: #d4af37;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

#oa-floating-help:hover {
    background: #e6c863;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.3);
}

#oa-floating-help .oa-help-icon {
    background: #1a1a1a;
    color: #d4af37;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Clone Modal */
#oa-clone-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.oa-clone-modal {
    background: #f7f9fa;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oa-clone-header {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #d4af37;
    z-index: 10;
}

.oa-clone-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    letter-spacing: 1px;
}

#oa-clone-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

#oa-clone-close:hover {
    color: #d4af37;
}

.oa-clone-container {
    flex: 1;
    position: relative;
    background: #f5f5f5;
    overflow-y: auto;
    overflow-x: hidden;
}

#oa-clone-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #666;
    font-style: italic;
    pointer-events: none;
}

#oa-guide-clone-wrapper {
    width: 100%;
    min-height: 100%;
    padding: 40px 15px;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Tooltip and highlight classes to be injected globally since DOM is not isolated in iframe */
.oa-tour-active {
    position: relative !important;
    z-index: 999999 !important;
    box-shadow: 0 0 0 4px #d4af37, 0 0 0 9999px rgba(0,0,0,0.65) !important;
    border-radius: 4px;
    transition: box-shadow 0.3s;
}
.oa-tour-tooltip {
    position: absolute;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    z-index: 9999999;
    max-width: calc(100vw - 30px);
    width: max-content;
    box-sizing: border-box;
    border-top: 4px solid #d4af37;
    font-family: inherit;
    transition: top 0.3s, left 0.3s;
}
.oa-tour-content { font-size: 15px; color: #333; line-height: 1.6; margin-bottom: 20px; font-weight: 500; }
.oa-tour-actions { display: flex; justify-content: space-between; gap: 10px; }
.oa-tour-btn { padding: 8px 15px; font-size: 13px; border-radius: 6px; border: none; cursor: pointer; font-weight: 600; }
.oa-tour-btn.next { background: #d4af37; color: #1a1a1a; }
.oa-tour-btn.prev { background: #eee; color: #333; }

@media (max-width: 768px) {
    /* Welcome Popup Mobile Overrides */
    .oa-welcome-popup {
        width: 92%;
        min-height: auto;
    }
    .oa-popup-content {
        padding: 40px 20px 25px;
    }
    .oa-popup-content h2 {
        font-size: 20px !important;
        line-height: 1.4;
        margin-bottom: 15px !important;
    }
    .oa-popup-desc {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    .oa-highlight-box {
        padding: 15px !important;
        margin-bottom: 25px !important;
    }
    .oa-highlight-box p {
        font-size: 14px !important;
    }
    .oa-btn-primary, .oa-btn-outline {
        padding: 14px 10px !important;
        font-size: 14px !important;
        white-space: nowrap;
    }
    .oa-popup-footer {
        margin-top: 25px !important;
        padding-top: 20px !important;
    }
    #oa-close-popup {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    /* Floating Help Mobile Overrides */
    #oa-floating-help .oa-help-text {
        display: none;
    }
    #oa-floating-help {
        padding: 10px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
    }
    #oa-floating-menu {
        max-width: calc(100vw - 40px);
    }
    #oa-floating-menu li {
        white-space: normal;
        line-height: 1.4;
        padding-right: 15px;
    }
}
