.demo-container {
    position: static !important;
    max-width: 95vw;
    padding-left: 2.5vw;
    padding-right: 2.5vw;
    overflow: hidden;
    margin: auto;
    background-color: #fff;
    border-radius: 20px;
    transform: scale(1);
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-rendering: optimizeLegibility;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

    @keyframes logoAppear {
        0% {
            opacity: 0;
            transform: scale(0.8);
        }
        100% {
            opacity: 1;
            transform: scale(1);
        } 
    }
    
    @keyframes logoPulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
        }
    }
    
    .demo-content .hiai {
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: "Work Sans", sans-serif;
        font-size: 35px;
        gap: 8px;
        margin-bottom: 20px;
        animation: logoAppear 0.8s ease-out forwards;
    }
    
    .hiai .hi, .hiai .ai {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 400;
    }
    
    .hiai .hi {
        border: 2px solid #2563eb;
        border-radius: 50%;
        height: 60px;
        width: 60px;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3), 
                    0 0 0 2px rgba(37, 99, 235, 0.1);
        background-color: white;
        color: #2563eb;
        transition: transform 0.3s, box-shadow 0.3s;
        animation: logoPulse 2.5s infinite;
    }
    
    .hiai .hi:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4),
                    0 0 0 3px rgba(37, 99, 235, 0.15);
    }
    
    .hiai .ai {
        color: #2563eb;
        font-weight: 500;
        transition: transform 0.3s;
    }
    
    .hiai:hover .ai {
        transform: translateX(2px);
    }

#demo-container {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
#demoToTokenContainer{
    width: 100%;
}
/* Demo overlay styles */
#demo-overlay {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 12px;
    
}

#demo-overlay.initialized {
    visibility: visible;
    opacity: 1;
}

/* Simple ripple animation */
@keyframes ripple {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* Staggered animation for children with CSS variables */
.demo-content > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    transition-delay: calc(var(--animation-order, 0) * 0.1s);
}

#demo-overlay.initialized .demo-content > * {
    opacity: 1;
    transform: translateY(0);
}

/* Basic hover effects */
.start-demo-btn {
    position: relative;
    overflow: hidden;
}

.start-demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.feature-pills .pill:hover {
    transform: translateY(-2px);
}

/* Simple shine effect for button */
@keyframes shine {
    0% {
        background-position: -100px;
    }
    20%, 100% {
        background-position: 200px;
    }
}

.start-demo-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    background-position: -100px;
    animation: shine 4s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.start-demo-btn:hover::after {
    opacity: 1;
}

/* Basic responsive adjustments */
@media (max-width: 640px) {
    .demo-content {
        padding: 2rem;
    }
}
.demo-content {
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    animation: fadeIn 0.8s ease-out;
    position: relative;
}

.demo-content .badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #2563eb;
    color: white;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s;
}

.demo-content .badge:hover {
    transform: translateY(-2px);
}

.demo-content h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #2563eb;
    font-weight: 600;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

/* Fixed the specificity issue by using class instead of element selector */
.demo-content .description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #4b5563;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.4s forwards;
}

.feature-pills {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.6s forwards;
}

.pill {
    background-color: #eef2ff;
    color: #4f46e5;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.start-demo-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.8s forwards;
    position: relative;
    overflow: hidden;
}

.start-demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.start-demo-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.start-demo-btn:hover::before {
    left: 100%;
}

.start-demo-btn:active {
    transform: translateY(0);
}
.emenu.tutorial-highlight{
	position: absolute !important;
}
/* Made no-cc more specific and subtle as requested */
.demo-content .no-cc {
    margin-top: 1rem;
    font-size: 0.75rem; /* Smaller font size */
    color: #9ca3af; /* Lighter gray color */
    opacity: 0;
    animation: fadeIn 0.8s ease-out 1s forwards;
    font-weight: 400; /* Lighter font weight */
    letter-spacing: 0.02em; /* Slight letter spacing for elegance */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */



@keyframes buttonAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add responsive adjustments */
@media (max-width: 768px) {

    .demo-content {
        padding: 2rem;
    }

    .demo-content h3 {
        font-size: 2.2rem;
    }

    .demo-content p {
        font-size: 1.1rem;
    }

    .demo-features li {
        font-size: 1.1rem;
    }
}
/* Hide main content initially */
.account-list, .email-list {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

/* Classes for animated entry */
.account-list.visible {
    opacity: 1;
    transform: translateX(0);
	z-index: 2;
}

/* highlighted steps */
.account-list.visible.tutorial-highlight{
	position: relative; 
	background-color: #fff;
}


.settingbtn.tutorial-highlight {
    position: relative;
    background-color: white;
    pointer-events: auto; 
}




.account-list.tutorial-highlight::after{
	display: none;
}

.email-list.tutorial-highlight::after{
	display: none;
}
.email-content-demo.tutorial-highlight::after{
	display: none;
}
.container.tutorial {
	overflow: visible;
}

.container.tutorial .enav{
	background-color: transparent;
	position: static !important;
}



@media(max-width: 1000px){
    .container.tutorial .email-panel{
        opacity: 0;
        visibility: hidden;
    }
    .container.tutorial.email-open .list-panel{
        opacity: 0;
        visibility: hidden;
    }
    
    .container.tutorial.email-open .email-panel{
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .container.tutorial .email-list::after {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

}


.container.tutorial .email-content{
	background-color: transparent;
}


.email-list.visible {
    opacity: 1;
    transform: translateX(0);
}
.email-content{
    opacity: 0;
}
.email-content.visible {
    opacity: 1;
}

.container.tutorial {
    position: relative;
}

/* Semi-transparent overlay via pseudo-element */
.container.tutorial .account-list::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 1;
    z-index: 6;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.container.tutorial .email-list::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 1;
    z-index: 6;
}
.container.tutorial .email-panel::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 1;
    z-index: 6;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    max-height: 97vh;
}

/* Highlighted elements and their contents stay above overlay */
.container.tutorial .tutorial-highlight {
    position: relative;
    background: white;
    border-radius: 6px;
    background-color: white;
    z-index: 999;
    pointer-events: auto;
    opacity: 1; 
    transition: opacity 0.3s ease; /* 0.3s transition with 1s delay */
    animation: highlightPulse 3s infinite; /* Animation starts after 1s */
}

.tutorial-enabled {
    transition: opacity 0.3s ease; /* 0.3s transition with 1s delay */
    animation: highlightPulse 3s infinite; /* Animation starts after 1s */
}

.container.tutorial .modal{
    border-radius: 10px;
}

/* Keep tooltip fully visible */
.tutorial-tooltip {
    opacity: 1;
}
.tutorial-tooltip[data-no-transition] {
    transition: none;
}

.tutorial-tooltip {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    background: linear-gradient(to bottom right, #ffffff, #fafafa);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 
                0 2px 4px rgba(0, 0, 0, 0.05);
    max-width: 360px;
    z-index: 10000 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tutorial-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tutorial-content {
    color: #1a1a1a;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 450;
    letter-spacing: -0.01em;
}

.tutorial-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    color: #666666;
    font-size: 13px;
    font-weight: 500;
}
  
.tutorial-dots {
    display: flex;
    gap: 6px;
}

.tutorial-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.tutorial-dot.active {
    background: #2563eb;
    transform: scale(1.2);
}

.tutorial-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.tutorial-prev{
    color: #444444;
}

.tutorial-btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.tutorial-btn:hover {
    transform: translateY(-1px);
}

.tutorial-btn:active {
    transform: translateY(1px);
}

.tutorial-next {
    background: #2563eb;
    color: white;
    flex-grow: 1;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.tutorial-next:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
}

.tutorial-skip {
    background: #f5f5f5;
    color: #666666;
}

.tutorial-skip:hover {
    background: #eeeeee;
    color: #333333;
}

@keyframes highlightPulse {
    0% { 
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15),
                    0 0 0 2px rgba(37, 99, 235, 0.3);
    }
    50% { 
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1),
                    0 0 0 4px rgba(37, 99, 235, 0.2);
    }
    100% { 
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15),
                    0 0 0 2px rgba(37, 99, 235, 0.3);
    }
}

/* Tooltip positioning animations */
.tutorial-tooltip[data-popper-placement^='top'] {
    transform: translateY(12px) scale(0.98);
}

.tutorial-tooltip[data-popper-placement^='bottom'] {
    transform: translateY(-12px) scale(0.98);
}

.tutorial-tooltip[data-popper-placement^='left'] {
    transform: translateX(12px) scale(0.98);
}

.tutorial-tooltip[data-popper-placement^='right'] {
    transform: translateX(-12px) scale(0.98);
}

@media(max-width: 700px){
    ..demo-container{
    transform: scale(9);
    }
    .tutorial-tooltip{
        padding: 10px;
        max-width: 300px
    }
    .tutorial-content{
        font-size: 13px;
    }
    .tutorial-dots{
        gap: 4px;
    }
    .tutorial-dot{
        height: 6px;
        width: 6px;
    }
    .tutorial-btn{
        font-size: 10px;
    }
}
@media(max-width: 420px){
    .tutorial-tooltip{
        padding: 10px;
        max-width: 200px;
    }
    .step-counter{
        font-size: 8px;
    }
    .tutorial-buttons button{
        padding: 8px;
    }
}
@media (max-width: 640px) {
    .demo-content {
        padding: 2rem;
    }
    
    .demo-content h3 {
        font-size: 2.2rem;
    }
    
    .feature-pills {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hiai {
        font-size: 30px;
    }
    .badge, .feature-pills{
        display: none !important;
    }
    .hiai .hi {
        height: 50px;
        width: 50px;
    }
    .demo-content h3 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    .demo-content .description{
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}