/* ===================================
   DEMO PAGE STYLES
   =================================== */

/* ----- Body overrides ----- */
body {
    padding-top: 0;
    overflow: hidden;
}

/* ----- Demo banner ----- */
.demo-banner,
.demo-banner span,
.demo-banner a,
.demo-banner button {
    color: #ffffff !important;
}

.demo-banner {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: rgba(9, 31, 63, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4px 6px 4px 12px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.demo-banner .demo-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.25);
    margin: 0 8px;
    flex-shrink: 0;
}

.demo-banner a {
    text-decoration: none;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #FF8C00 0%, #C2477E 100%);
    font-size: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-banner a:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 140, 0, 0.4);
}

.demo-banner-info {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 4px;
    font-size: 11px;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.demo-banner-info i {
    color: rgba(255, 255, 255, 0.5) !important;
    transition: color 0.2s ease;
}

.demo-banner-info:hover i {
    color: rgba(255, 255, 255, 1) !important;
}

.demo-banner-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    font-size: 8px;
    opacity: 1;
    transition: opacity 0.2s ease;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.demo-banner-close i {
    color: rgba(255, 255, 255, 0.5) !important;
    line-height: 0;
}

.demo-banner-close:hover i {
    color: rgba(255, 255, 255, 0.8) !important;
}

.demo-banner-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ----- Demo sidebar ----- */
.demo-menu-wrapper {
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    padding: 20px 0px 20px 20px;
}

.demo-menu-wrapper .menu-item-highlighted i {
    color: white;
}

/* ----- Onboarding overlay ----- */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.welcome-overlay.visible {
    display: flex;
}

.welcome-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 31, 63, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.welcome-modal {
    position: relative;
    width: 100%;
    max-width: 600px;
    animation: welcomeFadeIn 0.5s ease-out;
}

.welcome-modal.closing {
    animation: welcomeFadeOut 0.35s ease-in forwards;
}

@keyframes welcomeFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes welcomeFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

/* Skip button */
.ob-skip-button {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.ob-skip-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Progress dots */
.ob-progress-dots {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 40px;
}

.ob-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1), width 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-dot.active {
    background: white;
    width: 32px;
    border-radius: 5px;
}

/* Card */
.ob-card {
    background: white;
    border-radius: 32px;
    padding: 60px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.ob-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #FF8C00 0%, #C2477E 50%, #8400FF 100%);
}

/* Slides */
.ob-slide {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-slide.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
    animation: obSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes obSlideIn {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Icon */
.ob-icon {
    font-size: 48px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8400FF 0%, #6e00ff 100%);
    box-shadow: 0 12px 28px rgba(132, 0, 255, 0.4);
    color: white;
    animation: obBounce 2s ease-in-out infinite;
}

@keyframes obBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Typography */
.ob-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.ob-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 32px;
}

.ob-highlight {
    background: linear-gradient(120deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 184, 0, 0.2) 100%);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Features grid */
.ob-features {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.ob-feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ob-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    border-radius: 8px 0 0 8px;
}

.ob-feature-item:nth-child(1)::before { background: linear-gradient(90deg, #FF8C00, #ff5500); }
.ob-feature-item:nth-child(2)::before { background: linear-gradient(90deg, #E55A3F, #e53f3f); }
.ob-feature-item:nth-child(3)::before { background: linear-gradient(90deg, #8400FF, #6e00ff); }

.ob-feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.ob-feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
}

.ob-feature-item:nth-child(1) .ob-feature-icon {
    background: linear-gradient(135deg, #FF8C00 0%, #ff5500 100%);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
}

.ob-feature-item:nth-child(2) .ob-feature-icon {
    background: linear-gradient(135deg, #E55A3F 0%, #e53f3f 100%);
    box-shadow: 0 8px 20px rgba(229, 90, 63, 0.35);
}

.ob-feature-item:nth-child(3) .ob-feature-icon {
    background: linear-gradient(135deg, #8400FF 0%, #6e00ff 100%);
    box-shadow: 0 8px 20px rgba(132, 0, 255, 0.35);
}

.ob-feature-text {
    flex: 1;
}

.ob-feature-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}

.ob-feature-desc {
    font-size: 15px;
    color: #4a5568;
    margin: 0;
}

/* Tips grid */
.ob-tips-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.ob-tip {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ob-tip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

.ob-tip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    border-radius: 8px 0 0 8px;
}

.ob-tip:nth-child(1)::before { background: linear-gradient(90deg, #FF8C00, #ff5500); }
.ob-tip:nth-child(2)::before { background: linear-gradient(90deg, #8400FF, #6e00ff); }

.ob-tip:nth-child(1) .ob-feature-icon {
    background: linear-gradient(135deg, #FF8C00 0%, #ff5500 100%);
    box-shadow: 0 8px 20px rgba(255, 140, 0, 0.35);
}

.ob-tip:nth-child(2) .ob-feature-icon {
    background: linear-gradient(135deg, #8400FF 0%, #6e00ff 100%);
    box-shadow: 0 8px 20px rgba(132, 0, 255, 0.35);
}

/* Buttons */
.ob-button-group {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.ob-btn {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 26px;
    border-radius: 100px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ob-btn:hover {
    background: rgb(255 255 255 / 15%);
    color: #fff;
    transform: translateY(-1px);
}

.ob-btn-primary,
.ob-btn-primary span {
    font-size: 15px;
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    color: #fff !important;
    border: none;
    padding: 14px 30px;
    box-shadow: 0 4px 15px rgba(132, 0, 255, 0.3);
}

.ob-btn-primary span {
    background: none;
    padding: 0;
    box-shadow: none;
}

.ob-btn-primary:hover {
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(132, 0, 255, 0.4);
}

/* Suggestion pills */
.ob-suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.ob-pill-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgb(255 255 255 / 60%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ob-pill-button:hover {
    background: rgb(255 255 255 / 90%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ob-pill-button i {
    font-size: 14px;
}

/* Beta badge */
.ob-beta-badge {
    display: inline-block;
    background: linear-gradient(135deg, #9B59B6, #E91E63);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 640px) {
    .welcome-overlay {
        padding: 10px;
    }

    .ob-skip-button {
        top: 12px;
        right: 12px;
        padding: 6px 14px;
        font-size: 12px;
    }

    .ob-progress-dots {
        top: 12px;
        gap: 8px;
        height: 32px;
    }

    .ob-dot {
        width: 8px;
        height: 8px;
    }

    .ob-dot.active {
        width: 24px;
    }

    .welcome-modal {
        margin-top: 40px;
    }

    .ob-card {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .ob-card h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .ob-card p {
        font-size: 14px;
        margin-bottom: 16px;
        line-height: 1.5;
    }

    .ob-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .ob-features,
    .ob-tips-grid {
        gap: 8px;
        margin: 12px 0;
    }

    .ob-feature-item,
    .ob-tip {
        padding: 12px 14px;
        gap: 10px;
    }

    .ob-feature-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
        border-radius: 8px;
    }

    .ob-feature-title {
        font-size: 14px;
    }

    .ob-feature-desc {
        font-size: 13px;
    }

    .ob-button-group {
        flex-direction: column;
        margin-top: 40px;
        gap: 8px;
    }

    .ob-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .ob-btn-primary,
    .ob-btn-primary span {
        padding: 12px 24px;
        font-size: 14px;
    }

    .ob-btn-primary span {
        padding: 0;
    }

    .ob-beta-badge {
        font-size: 12px;
        padding: 4px 12px;
        margin-bottom: 10px;
    }

    .ob-suggestion-pills {
        gap: 8px;
        margin-bottom: 16px;
    }

    .ob-pill-button {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ----- Demo limit overlay ----- */
.demo-limit-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-limit-overlay.hidden {
    display: none;
}

.demo-limit-card {
    background: white;
    border-radius: 20px;
    padding: 48px;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.demo-limit-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.demo-limit-card p {
    color: #6b7280;
    margin-bottom: 24px;
    font-size: 16px;
}

.demo-limit-card .cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.demo-limit-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    color: white;
}

.demo-limit-home {
    display: block;
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.demo-limit-home:hover {
    color: #091F3F;
}

/* ----- Demo mobile hamburger menu ----- */
.demo-mobile-hamburger {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #183151;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}
.demo-mobile-hamburger:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

.demo-mobile-menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 10px;
    right: 10px;
    z-index: 10001;
    background: rgba(9, 31, 63, 0.85);
    backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    flex-direction: column;
    gap: 4px;
}
.demo-mobile-menu.open { display: flex; animation: demo-mob-in .25s ease forwards; }
@keyframes demo-mob-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.demo-mobile-menu-item {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 10px 14px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    width: 100%;
}
.demo-mobile-menu-item:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.demo-mobile-menu-item i { width: 18px; text-align: center; color: rgba(255, 255, 255, 0.5); font-size: 14px; }
.demo-mobile-menu-item:hover i { color: #fff; }

.demo-mobile-menu-divider { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 4px 0; }

.demo-mobile-menu-cta {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, #C2477E 0%, #8400FF 100%);
    box-shadow: 0 4px 15px rgba(132, 0, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-mobile-menu-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(132, 0, 255, 0.4); color: #fff; }
.demo-mobile-menu-cta i { color: #fff; width: 18px; text-align: center; font-size: 14px; }

@media (max-width: 768px) {
    .demo-menu-wrapper { display: none; }
    .demo-mobile-hamburger { display: flex; }
    .chat-log { padding-left: 20px !important; }
    .chatbox-wrapper { padding-left: 20px !important; }
}
