/* =============================================
   CAROLCHAT ONBOARDING MODAL (GLASSMORPHISM)
   ============================================= */

.carolchat-onboarding-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 12, 18, 0.6); /* Deep dark semi-transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.carolchat-onboarding-overlay.cc-active {
    opacity: 1;
    pointer-events: auto;
}

.carolchat-onboarding-overlay.cc-auto-open {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
}

.carolchat-onboarding-modal {
    position: relative;
    width: 90%;
    max-width: 420px;
    background: rgba(18, 20, 28, 0.98); /* Almost solid dark background */
    border: 1px solid rgba(0, 255, 159, 0.3); /* Neon green subtle border */
    border-radius: 20px;
    padding: 32px 24px 24px 24px;
    box-shadow: 0 0 35px rgba(0, 255, 159, 0.1), inset 0 0 20px rgba(0, 255, 159, 0.05);
    text-align: center;
    color: #ffffff;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

/* Internal subtle texture/particles via pseudo-element */
.carolchat-onboarding-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 50% 0%, rgba(0, 255, 159, 0.15) 0%, transparent 60%),
                      url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.03)"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.carolchat-onboarding-overlay.cc-active .carolchat-onboarding-modal {
    transform: translateY(0) scale(1);
}

.cc-onboarding-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #6a6c7e;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    z-index: 10;
    padding: 4px;
}

.cc-onboarding-close:hover {
    color: #00ff9f;
    transform: scale(1.1);
}

.cc-onboarding-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 240px; /* Prevents height jumping drastically */
}

.cc-onboarding-image-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #00ff9f;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.4);
    padding: 4px;
    margin-bottom: 24px;
    background: rgba(10, 12, 18, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cc-onboarding-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.cc-onboarding-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.cc-onboarding-description {
    font-size: 15px;
    line-height: 1.5;
    color: #a0a2b4;
    margin: 0;
}

/* Fade in/out for steps */
.cc-step-transition {
    animation: fadeStep 0.3s ease-in-out;
}

@keyframes fadeStep {
    0% { opacity: 0; transform: translateY(5px); }
    100% { opacity: 1; transform: translateY(0); }
}

.cc-onboarding-footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cc-onboarding-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cc-dot.active {
    background-color: #00ff9f;
    box-shadow: 0 0 8px #00ff9f;
    width: 20px;
    border-radius: 10px;
}

.cc-onboarding-btn {
    width: 100%;
    background-color: rgba(0, 255, 159, 0.1);
    color: #00ff9f;
    border: 1px solid #00ff9f;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(0, 255, 159, 0.15);
}

.cc-onboarding-btn:hover {
    background-color: #00ff9f;
    color: #0a0c12;
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.4);
    transform: translateY(-2px);
}
