/* ========================================
   HOME PAGE STYLES - BoostedChat
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    background: #05080f;
    color: #fff;
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ========================================
   BACKGROUND - Subtle radial glows
   ======================================== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(120, 60, 220, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 180, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 0, 120, 0.04) 0%, transparent 50%);
}

/* ========================================
   TOP NAVBAR
   ======================================== */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 36px;
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.top-nav > * {
    pointer-events: auto;
}

/* Brand - logo + text */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.nav-brand:hover {
    opacity: 0.85;
}

.nav-logo {
    width: 26px;
    height: 26px;
    filter: invert(1) brightness(1.1);
    opacity: 0.9;
}

.nav-brand-text {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

/* Action buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    border-radius: 999px;
    padding: 8px 18px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-btn-signin {
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
}

.nav-btn-signin:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.nav-btn-signup {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-btn-signup:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

/* ========================================
   HERO SECTION - Full viewport
   ======================================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    overflow: hidden;
}

/* Large soft glow behind hero content */
.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(
        ellipse at center,
        rgba(140, 80, 255, 0.07) 0%,
        rgba(80, 140, 255, 0.04) 30%,
        transparent 70%
    );
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
    max-width: 820px;
    width: 100%;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-headline {
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

/* ========================================
   HERO CHAT INPUT - Dark glass, subtle rainbow behind
   ======================================== */
.hero-chat-wrapper {
    width: 100%;
    max-width: 680px;
    position: relative;
}

/* Rainbow glow - soft, spread, behind the input */
.hero-chat-glow {
    position: absolute;
    inset: -4px;
    border-radius: 30px;
    background: conic-gradient(
        from 0deg,
        #ff0080,
        #ff8c00,
        #ffef00,
        #00ff88,
        #00cfff,
        #8000ff,
        #ff0080
    );
    filter: blur(28px);
    opacity: 0.22;
    z-index: -2;
    animation: heroGlowRotate 6s linear infinite;
}

/* Tighter rainbow edge - very subtle */
.hero-chat-border {
    position: absolute;
    inset: -1px;
    border-radius: 26px;
    background: conic-gradient(
        from 0deg,
        #ff0080,
        #ff8c00,
        #ffef00,
        #00ff88,
        #00cfff,
        #8000ff,
        #ff0080
    );
    filter: blur(6px);
    opacity: 0.25;
    z-index: -1;
    animation: heroGlowRotate 6s linear infinite;
}

@keyframes heroGlowRotate {
    0% { filter: blur(28px) hue-rotate(0deg); }
    100% { filter: blur(28px) hue-rotate(360deg); }
}

.hero-chat-inner {
    position: relative;
    z-index: 1;
}

.hero-chat-input {
    width: 100%;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 20px 56px;
    resize: none;
    outline: none;
    line-height: 1.5;
    height: 66px;
    overflow-y: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    cursor: text;
    caret-color: transparent;
}

.hero-chat-input.user-typing {
    caret-color: #ffffff;
}

.hero-chat-input:focus {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.hero-chat-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Plus button - left side */
.hero-chat-plus {
    position: absolute;
    left: 12px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.hero-chat-plus:hover {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Send button - right side */
.hero-chat-send {
    position: absolute;
    right: 12px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 2;
}

.hero-chat-send:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Blinking cursor overlay */
.hero-cursor {
    position: absolute;
    width: 2px;
    height: 22px;
    background: rgba(255, 255, 255, 0.85);
    animation: heroCursorBlink 1s step-end infinite;
    pointer-events: none;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes heroCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    position: relative;
    width: 100%;
    padding: 0 6vw 8vh;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 1200px;
}

.video-title {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(24px, 3vw, 40px);
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    margin-bottom: 40px;
}

.video-placeholder,
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.video-wrapper iframe {
    border-radius: 16px;
}

.video-placeholder:hover,
.video-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

/* ========================================
   SCRIPTS SHOWCASE SECTION
   ======================================== */
.scripts-section {
    position: relative;
    width: 100%;
    padding: 10vh 6vw 12vh;
    z-index: 100;
}

.scripts-header {
    margin-bottom: 56px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.scripts-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.scripts-header-text {
    text-align: left;
}

.scripts-title {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 14px;
}

.scripts-subtitle {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(15px, 1.2vw, 18px);
    color: rgba(255, 255, 255, 0.4);
    max-width: 520px;
    line-height: 1.6;
}

/* Showcase yours — prominent button top-right */
.scripts-showcase-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 10px 22px 10px 18px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 6px;
}

.scripts-showcase-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.scripts-showcase-btn svg {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.scripts-showcase-btn:hover svg {
    opacity: 1;
}

/* Grid layout — items stay in fixed positions, new rows simply append */
.scripts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

/* Each item = label + card */
.script-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

/* Row 3 & 4 — hidden via display:none so they don't occupy column space */
.script-item.script-row-3,
.script-item.script-row-4 {
    display: none;
}

/* Revealed — inserted into column flow with fade+slide animation */
.script-item.script-row-3.script-revealed,
.script-item.script-row-4.script-revealed {
    display: flex;
    animation: scriptCardAppear 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scriptCardAppear {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Label above card — icon + name + author inline */
.script-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.script-label-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.55);
}

.script-label > span {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.1px;
}

/* Author info — inline in label row */
.script-author {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    flex-shrink: 0;
}

.script-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.script-author-avatar.script-author-boosted {
    filter: invert(1);
    background: rgba(255, 255, 255, 0.9);
    padding: 2px;
}

.script-author span {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1px;
}

/* The card itself — WhatsApp-esque chat */
.script-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.script-item:hover .script-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Chat area — looks like a messenger window */
.script-chat {
    background: #0b141a;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 16px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 240px;
    flex: 1;
}

/* Chat messages */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 88%;
}

.chat-msg.chat-incoming {
    align-self: flex-start;
}

.chat-msg.chat-outgoing {
    align-self: flex-end;
}

.chat-bubble-in {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    background: #1a2730;
    padding: 8px 12px;
    border-radius: 10px 10px 10px 3px;
    position: relative;
}

.chat-bubble-out {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    background: #054640;
    padding: 8px 12px;
    border-radius: 10px 10px 3px 10px;
    position: relative;
}

.chat-time {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 2px;
    padding: 0 4px;
}

.chat-msg.chat-outgoing .chat-time {
    align-self: flex-end;
}

/* "Use template" pill — overlaid on card bottom */
.script-try-pill {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    padding: 7px 18px;
    text-decoration: none;
    transition: all 0.2s ease;
    opacity: 0;
    transform: translateY(4px);
    z-index: 3;
}

.script-item:hover .script-try-pill {
    opacity: 1;
    transform: translateY(0);
}

.script-try-pill:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Show more button — centered below grid */
.scripts-show-more {
    display: block;
    margin: 44px auto 0;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 10px 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.scripts-show-more:hover {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.scripts-show-more.hidden {
    display: none;
}

/* ========================================
   SCRIPT PREVIEW MODAL
   ======================================== */
.script-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.script-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.script-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 380px;
    max-height: 80vh;
    background: #0b141a;
    border-radius: 24px;
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.script-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Top bar — seamless, no separate background */
.script-modal-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 10px;
}

.script-modal-back {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.script-modal-back:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.script-modal-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.script-modal-avatar svg {
    width: 18px !important;
    height: 18px !important;
    stroke: rgba(255, 255, 255, 0.4) !important;
}

.script-modal-contact {
    flex: 1;
    min-width: 0;
}

.script-modal-title {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.2;
}

.script-modal-status {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.01em;
}

/* Chat area — seamless with modal bg */
.script-modal-chat {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: none;
}

.script-modal-chat::-webkit-scrollbar {
    display: none;
}

.modal-bubble {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.55;
    padding: 7px 10px 4px;
    max-width: 82%;
    animation: modalBubbleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    position: relative;
}

.modal-bubble-user {
    background: #054640;
    color: rgba(255, 255, 255, 0.88);
    align-self: flex-end;
    border-radius: 10px 10px 3px 10px;
}

.modal-bubble-bot {
    background: #1a2730;
    color: rgba(255, 255, 255, 0.85);
    align-self: flex-start;
    border-radius: 10px 10px 10px 3px;
}

.modal-bubble-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 1px;
    display: flex;
    align-items: center;
    gap: 3px;
    justify-content: flex-end;
}

.modal-bubble-time .modal-ticks {
    color: rgba(83, 189, 235, 0.6);
    font-size: 11px;
    letter-spacing: -2px;
}

@keyframes modalBubbleIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Bottom CTA — seamless */
.script-modal-bottom {
    padding: 10px 18px 18px;
}

.script-modal-cta {
    display: block;
    padding: 12px 24px;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.script-modal-cta:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.18);
}

/* Body scroll lock when modal is open */
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
}

/* ========================================
   SIGN-IN POPUP
   ======================================== */
.signin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.signin-overlay.active { opacity: 1; pointer-events: auto; }

.signin-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    width: 400px;
    max-width: 92vw;
    background: #111827;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    z-index: 10101;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 36px 32px 32px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.signin-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.signin-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.signin-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.signin-screen { display: none; }
.signin-screen.active { display: block; }

.signin-logo { text-align: center; margin-bottom: 18px; }

.signin-title {
    font-family: 'Lexend', sans-serif;
    font-weight: 500;
    font-size: 22px;
    color: rgba(255,255,255,0.9);
    text-align: center;
    margin-bottom: 6px;
}

.signin-subtitle {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin-bottom: 28px;
}

.signin-buttons { display: flex; flex-direction: column; gap: 12px; }

.signin-btn {
    font-family: 'Lexend', sans-serif;
    font-weight: 400;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.signin-btn-meta {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}
.signin-btn-meta:hover { background: #166fe5; }

.signin-btn-wa {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}
.signin-btn-wa:hover { background: #1ebe5d; }

.signin-btn-verify {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    margin-top: 16px;
}
.signin-btn-verify:hover { background: rgba(255,255,255,0.14); }

.signin-btn-wa-open {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    margin-bottom: 16px;
}
.signin-btn-wa-open:hover { background: #1ebe5d; }

/* Verification code display */
.signin-wa-code {
    font-family: 'Lexend', monospace;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 16px 28px;
    text-align: center;
    margin: 20px 0 16px;
    user-select: all;
    cursor: text;
}

/* Details row */
.signin-wa-details {
    margin-bottom: 16px;
}
.signin-wa-detail-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
}
.signin-wa-detail-label {
    color: rgba(255,255,255,0.35);
}
.signin-wa-detail-value {
    color: rgba(255,255,255,0.75);
    font-weight: 400;
}

/* QR code */
.signin-wa-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}
.signin-wa-qr img {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
}
.signin-wa-qr-hint {
    font-family: 'Lexend', sans-serif;
    font-size: 11.5px;
    color: rgba(255,255,255,0.25);
    margin-top: 8px;
}

.signin-back {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.signin-back:hover { background: rgba(255,255,255,0.1); color: #fff; }

.signin-phone-wrap {
    margin-bottom: 4px;
}

.signin-phone-input {
    width: 100%;
    font-family: 'Lexend', sans-serif;
    font-size: 16px;
    color: #fff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s;
}
.signin-phone-input:focus { border-color: rgba(255,255,255,0.3); }

/* intl-tel-input overrides for dark theme */
.signin-popup .iti { width: 100%; }
.signin-popup .iti__country-container { --iti-border-color: rgba(255,255,255,0.12); }
.signin-popup .iti__selected-country { background: transparent !important; }
.signin-popup .iti__dropdown-content { background: #1f2937; border-color: rgba(255,255,255,0.1); }
.signin-popup .iti__country.iti__highlight { background: rgba(255,255,255,0.08); }
.signin-popup .iti__country-name, .signin-popup .iti__dial-code { color: rgba(255,255,255,0.8); }
.signin-popup .iti__search-input { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.1); }
.signin-popup .iti__selected-dial-code { color: rgba(255,255,255,0.6); }

.signin-error {
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    color: #ef4444;
    text-align: center;
    margin-top: 12px;
    min-height: 18px;
}

.signin-polling {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.signin-polling p { margin: 0; }

/* 3-dot loading */
.signin-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}
.signin-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    animation: signinDotPulse 1.2s ease-in-out infinite;
}
.signin-dots span:nth-child(2) { animation-delay: 0.15s; }
.signin-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes signinDotPulse {
    0%, 80%, 100% { opacity: 0.35; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.3); }
}

/* ========================================
   ONBOARDING CHAT — INLINE IN HERO SECTION
   (matches /app message structure)
   ======================================== */

/* Messages container inside hero - replaces the headline */
.hero-chat-messages {
    width: 100%;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 4px 16px;
    margin-bottom: 24px;
    flex-grow: 1;
    justify-content: flex-end;
}

/* ── User message ── */
.hero-chat-messages .message-user {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 4px;
    opacity: 0;
    transform: translateY(10px);
    animation: smoothAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-chat-messages .message-user .message-content {
    padding: 12px 20px;
    background: rgba(255,255,255,0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255,255,255,0.9);
    border-radius: 24px;
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    max-width: 78%;
    word-wrap: break-word;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}

/* ── AI message ── */
.hero-chat-messages .message-ai {
    padding-left: 8px;
    opacity: 0;
    transform: translateY(10px);
    animation: smoothAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-chat-messages .message-ai .message-content {
    font-family: 'Lexend', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.82);
    max-width: 90%;
    word-wrap: break-word;
}

/* Markdown inside AI messages */
.hero-chat-messages .message-ai .message-content p { margin: 0 0 12px; }
.hero-chat-messages .message-ai .message-content p:last-child { margin-bottom: 0; }
.hero-chat-messages .message-ai .message-content strong { color: rgba(255,255,255,0.95); font-weight: 500; }
.hero-chat-messages .message-ai .message-content em { color: rgba(255,255,255,0.7); }
.hero-chat-messages .message-ai .message-content code {
    background: rgba(255,255,255,0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: rgba(200,220,255,0.85);
}
.hero-chat-messages .message-ai .message-content ul,
.hero-chat-messages .message-ai .message-content ol {
    padding-left: 20px;
    margin: 8px 0;
}
.hero-chat-messages .message-ai .message-content li { margin-bottom: 4px; }
.hero-chat-messages .message-ai .message-content a {
    color: rgba(100,180,255,0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Message controls (hover to show) ── */
.hero-chat-messages .message-controls-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero-chat-messages .message-controls {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-top: 4px;
}

.hero-chat-messages .message-user:hover .message-controls,
.hero-chat-messages .message-ai:hover .message-controls {
    opacity: 1;
}

.hero-chat-messages .message-control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.15s;
    padding: 0;
}

.hero-chat-messages .message-control-btn svg {
    width: 14px;
    height: 14px;
}

.hero-chat-messages .message-control-btn:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}

.hero-chat-messages .message-control-btn.success {
    color: rgba(100,220,150,0.9);
}

/* ── Typing indicator (inside messages container) ── */
.hero-chat-messages .typing-message {
    animation: smoothAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-chat-messages .typing-message.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-chat-messages .typing-indicator {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 6px 0;
}

.hero-chat-messages .typing-indicator .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: typingDotBounce 1.2s ease-in-out infinite;
}

.hero-chat-messages .typing-indicator .dot:nth-child(2) { animation-delay: 0.15s; }
.hero-chat-messages .typing-indicator .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDotBounce {
    0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
    40% { opacity: 1; transform: scale(1.3); }
}

.hero-chat-messages .thinking-status {
    font-family: 'Lexend', sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

/* ── Action buttons inside AI messages ── */
.hero-chat-messages .hc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-family: 'Lexend', sans-serif;
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.hero-chat-messages .hc-action-btn:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.22);
}
.hero-chat-messages .hc-action-btn svg { width: 16px; height: 16px; }

@keyframes smoothAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* In chat mode the hero becomes a full-page chat layout.
   Messages expand upward, input stays at the bottom of the viewport.
   The page itself scrolls — no inner message scroll. */
.hero-section.chat-active {
    height: auto;
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 60px;
    overflow: visible;
    display: flex;
    align-items: center;
}

.hero-section.chat-active .hero-content {
    flex-grow: 1;
    justify-content: flex-end;
    min-height: calc(100vh - 80px);
}

/* Sticky chat input at bottom of viewport */
.hero-section.chat-active .hero-chat-wrapper {
    position: sticky;
    bottom: 0;
    z-index: 200;
    padding: 16px 0 24px;
    margin-top: 16px;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.faq-section {
    position: relative;
    width: 100%;
    padding: 10vh 6vw 12vh;
    z-index: 100;
}

.faq-container {
    max-width: 760px;
    margin: 0 auto;
}

.faq-title {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: clamp(28px, 3.5vw, 48px);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 48px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-category {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 36px 0 8px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child,
.faq-category + .faq-item {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 4px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: rgba(255, 255, 255, 1);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.35);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.2s ease;
}

.faq-item.faq-open .faq-chevron {
    transform: rotate(180deg);
    stroke: rgba(255, 255, 255, 0.7);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 4px;
}

.faq-item.faq-open .faq-answer {
    max-height: 600px;
    padding: 0 4px 20px;
}

.faq-answer p {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 14.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}

/* ========================================
   FOOTER
   ========================================
*/
.site-footer {
    position: relative;
    width: 100%;
    padding: 1.5vw 6vw 2vw;
    z-index: 50;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-brand:hover {
    opacity: 0.85;
}

.footer-favicon {
    width: 1.2vw;
    height: 1.2vw;
    filter: invert(1) brightness(1.1);
    opacity: 0.9;
}

.footer-brand-text {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    font-size: 0.9vw;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.5px;
}

.footer-copyright {
    font-size: 0.8vw;
    color: rgba(255,255,255,0.25);
    font-weight: 300;
}

.footer-builders {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-size: 0.9vw;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
}

.footer-heart {
    width: 0.95vw;
    height: 0.95vw;
    color: rgba(255, 80, 100, 0.5);
    flex-shrink: 0;
}

.footer-builder-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-builder-avatar {
    width: 1.2vw;
    height: 1.2vw;
    border-radius: 50%;
    object-fit: cover;
}

.footer-builder-link:hover {
    color: #ffffff;
}

.footer-links {
    display: flex;
    gap: 2vw;
}

.footer-link {
    font-size: 0.8vw;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 4vw;
    right: 1.5vw;
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(10px);
    padding: 1vw 1.5vw;
    border-radius: 0.5vw;
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.3s ease;
    max-width: 22vw;
}

.cookie-banner.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-text {
    font-size: 0.75vw;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
}

.cookie-text a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.5vw;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 0.4vw 1vw;
    border-radius: 50px;
    font-size: 0.7vw;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn.settings {
    background: transparent;
    color: rgba(255,255,255,0.5);
}

.cookie-btn.settings:hover {
    color: rgba(255,255,255,0.8);
}

.cookie-btn.reject {
    background: transparent;
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}

.cookie-btn.reject:hover {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
}

.cookie-btn.accept {
    background: #ffffff;
    color: #000000;
}

.cookie-btn.accept:hover {
    background: rgba(255,255,255,0.9);
}

/* Cookie Settings Popup */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-settings-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.cookie-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(20, 20, 25, 0.98);
    backdrop-filter: blur(20px);
    padding: 2vw;
    border-radius: 24px;
    z-index: 10002;
    max-width: 30vw;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.cookie-settings.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.cookie-settings-title {
    font-size: 1.1vw;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1vw;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8vw 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.cookie-option:last-of-type {
    border-bottom: none;
}

.cookie-option-info h4 {
    font-size: 0.85vw;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 0.2vw 0;
}

.cookie-option-info p {
    font-size: 0.7vw;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.cookie-toggle {
    position: relative;
    width: 2.5vw;
    height: 1.3vw;
    background: rgba(255,255,255,0.2);
    border-radius: 1vw;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-toggle.active {
    background: #00cc66;
}

.cookie-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 0.15vw;
    left: 0.15vw;
    width: 1vw;
    height: 1vw;
    background: #ffffff;
    border-radius: 50%;
    transition: left 0.2s ease;
}

.cookie-toggle.active::after {
    left: calc(100% - 1.15vw);
}

.cookie-settings-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.5vw;
    margin-top: 1.5vw;
}

/* ========================================
   RESPONSIVE - TABLET (768px and below)
   ======================================== */
@media (max-width: 768px) {
    .top-nav {
        padding: 14px 20px;
    }

    .top-nav::before {
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }

    .nav-logo {
        width: 22px;
        height: 22px;
    }

    .nav-brand-text {
        font-size: 15px;
    }

    .nav-btn {
        font-size: 13px;
        padding: 7px 14px;
    }

    .hero-content {
        padding: 0 20px;
        margin-top: -80px;
    }

    .hero-text {
        margin-bottom: 50px;
    }

    .hero-headline {
        font-size: 42px;
    }

    .hero-chat-wrapper {
        max-width: 100%;
    }

    /* Hero — full viewport on mobile, centered */
    .hero-section {
        height: 100dvh;
        height: 100vh;
        min-height: 0;
        padding: 0;
    }

    .hero-bg-glow {
        width: 100%;
        height: 400px;
    }

    .hero-chat-input {
        font-size: 16px;
        padding: 14px 44px;
        height: 100px;
        line-height: 1.5;
        overflow-y: hidden;
        border-radius: 20px;
    }

    .hero-cursor {
        height: 20px;
    }

    .hero-chat-plus,
    .hero-chat-send {
        width: 32px;
        height: 32px;
        bottom: 34px;
    }

    .hero-chat-plus {
        left: 8px;
    }

    .hero-chat-send {
        right: 8px;
    }

    .hero-chat-glow {
        border-radius: 24px;
    }

    .hero-chat-border {
        border-radius: 22px;
    }

    /* Video section */
    .video-section {
        padding: 0 20px 6vh;
    }

    .video-placeholder {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .video-play-btn {
        width: 48px;
        height: 48px;
    }

    /* Scripts Section */
    .scripts-section {
        padding: 8vh 20px 10vh;
    }

    .scripts-header {
        margin-bottom: 40px;
    }

    .scripts-header-top {
        flex-direction: column;
        gap: 16px;
    }

    .scripts-header-text {
        text-align: center;
    }

    .scripts-showcase-btn {
        align-self: center;
    }

    .scripts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Limit card chat height on tablet so cards don't get too tall */
    .script-chat {
        min-height: 180px;
        max-height: 220px;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }

    .script-modal {
        width: 92%;
        max-height: 85vh;
        border-radius: 24px;
    }

    .script-modal-topbar {
        padding: 14px 14px 8px;
    }

    .script-modal-chat {
        padding: 10px 12px;
    }

    .script-modal-bottom {
        padding: 8px 14px 16px;
    }

    /* FAQ */
    .faq-section {
        padding: 8vh 24px 10vh;
    }

    .faq-title {
        margin-bottom: 36px;
    }

    .faq-question {
        font-size: 15px;
        padding: 18px 2px;
    }

    .faq-answer p {
        font-size: 14px;
    }
    
    /* Footer */
    .site-footer {
        padding: 24px 24px 32px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .footer-left {
        gap: 8px;
    }
    
    .footer-favicon {
        width: 18px;
        height: 18px;
    }

    .footer-brand-text {
        font-size: 13px;
    }
    
    .footer-copyright {
        font-size: 12px;
    }

    .footer-builders {
        font-size: 12px;
    }

    .footer-heart {
        width: 12px;
        height: 12px;
    }

    .footer-builder-avatar {
        width: 16px;
        height: 16px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }
    
    .footer-link {
        font-size: 12px;
    }
    
    /* Cookie Banner - full width bottom */
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 20px 20px 24px;
        gap: 16px;
    }
    
    .cookie-text {
        font-size: 13px;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
        gap: 8px;
    }
    
    .cookie-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    /* Cookie Settings - full screen */
    .cookie-settings {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: translateY(100%);
        max-width: 100%;
        width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 24px;
    }
    
    .cookie-settings.visible {
        transform: translateY(0);
    }
    
    .cookie-settings-title {
        font-size: 18px;
        margin-bottom: 16px;
    }
    
    .cookie-option {
        padding: 16px 0;
    }
    
    .cookie-option-info h4 {
        font-size: 15px;
        margin-bottom: 4px;
    }
    
    .cookie-option-info p {
        font-size: 12px;
    }
    
    .cookie-toggle {
        width: 44px;
        height: 24px;
    }
    
    .cookie-toggle::after {
        top: 3px;
        left: 3px;
        width: 18px;
        height: 18px;
    }
    
    .cookie-toggle.active::after {
        left: calc(100% - 21px);
    }
    
    .cookie-settings-buttons {
        margin-top: 20px;
        gap: 8px;
    }

    /* Sign-in popup responsive */
    .signin-popup { width: 92vw; padding: 28px 24px 24px; }
    .signin-title { font-size: 20px; }

    /* Onboarding chat responsive */
    .hero-chat-messages { max-height: 45vh; }
    .hero-chat-messages .message-user .message-content { max-width: 88%; font-size: 14px; }
    .hero-chat-messages .message-ai .message-content { font-size: 14px; }
}

/* ========================================
   RESPONSIVE - SMALL MOBILE (480px and below)
   ======================================== */
@media (max-width: 480px) {
    .hero-headline {
        font-size: 30px;
    }

    .hero-chat-input {
        font-size: 15px;
        padding: 12px 42px;
        height: 74px;
    }

    .hero-cursor {
        height: 18px;
    }

    .scripts-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .scripts-grid::-webkit-scrollbar {
        display: none;
    }

    .scripts-grid .script-item {
        flex: 0 0 80%;
        scroll-snap-align: center;
    }

    /* Show all rows in gallery mode */
    .script-item.script-row-3,
    .script-item.script-row-4 {
        display: flex;
    }

    /* Full height cards in gallery */
    .script-chat {
        min-height: 240px;
        max-height: none;
        overflow: visible;
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Hide show more button */
    .scripts-show-more {
        display: none !important;
    }

    .script-try-pill {
        opacity: 1;
        transform: translateY(0);
    }

    .scripts-showcase-btn {
        font-size: 12.5px;
        padding: 8px 18px 8px 14px;
    }

    .faq-question {
        font-size: 14.5px;
        padding: 16px 0;
    }

    .faq-answer p {
        font-size: 13.5px;
    }
}

/* ========================================
   RESPONSIVE - VERY SMALL MOBILE (360px and below)
   ======================================== */
@media (max-width: 360px) {
    .hero-headline {
        font-size: 26px;
    }

    .hero-chat-input {
        height: 68px;
        font-size: 14px;
        padding: 10px 40px;
    }

    .hero-cursor {
        height: 16px;
    }

    .hero-chat-plus,
    .hero-chat-send {
        width: 28px;
        height: 28px;
        bottom: 20px;
    }
    
    .cookie-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}

/* ========================================
   LANDSCAPE MOBILE - Adjust heights
   ======================================== */
@media (max-width: 768px) and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 0;
        padding: 100px 0 40px;
    }

    .hero-headline {
        font-size: 24px;
    }
}

/* ========================================
   TRAVEL THEME OVERRIDES (ITB Berlin 2026)
   ──────────────────────────────────────
   Activate: <body data-theme="travel">
   Revert:   remove the data-theme attribute
   ======================================== */

/* ── Hero text toggle ── */
.hero-text-travel { display: none; }
[data-theme="travel"] .hero-text-default { display: none; }
[data-theme="travel"] .hero-text-travel { display: block; }

/* ── Hero badge (ITB Berlin pill link) ── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: rgba(0, 210, 160, 0.8);
    background: rgba(0, 210, 160, 0.08);
    border: 1px solid rgba(0, 210, 160, 0.15);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    overflow: hidden;
}

.hero-badge:hover {
    background: rgba(0, 210, 160, 0.14);
    border-color: rgba(0, 210, 160, 0.25);
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover svg {
    animation: planePortal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes planePortal {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
    40%  { transform: translateY(-18px) translateX(10px) rotate(-15deg); opacity: 0; }
    41%  { transform: translateY(18px) translateX(-10px) rotate(15deg); opacity: 0; }
    100% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
}

/* ── Body background ── */
body[data-theme="travel"] {
    background: #050f0d;
}

/* ── Background ambient glows ── */
body[data-theme="travel"]::before {
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0, 120, 180, 0.045) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 20% 80%, rgba(0, 140, 200, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 180, 160, 0.025) 0%, transparent 50%);
}

/* ── Hero BG glow ── */
[data-theme="travel"] .hero-bg-glow {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 140, 180, 0.04) 0%,
        rgba(0, 120, 200, 0.025) 30%,
        transparent 70%
    );
}

/* ── Chat input glow — green conic gradient ── */
[data-theme="travel"] .hero-chat-glow {
    background: conic-gradient(
        from 0deg,
        #00c896, #00a6d6, #0080b0, #00b89c, #00dca0, #40e0b0, #00c896
    );
    animation: heroGlowRotateTravel 8s ease-in-out infinite;
}

[data-theme="travel"] .hero-chat-border {
    background: conic-gradient(
        from 0deg,
        #00c896, #00a6d6, #0080b0, #00b89c, #00dca0, #40e0b0, #00c896
    );
    animation: heroGlowRotateTravel 8s ease-in-out infinite;
}

/* Oscillating hue-rotate instead of full 360° spin */
@keyframes heroGlowRotateTravel {
    0%   { filter: blur(28px) hue-rotate(-20deg); }
    50%  { filter: blur(28px) hue-rotate(35deg); }
    100% { filter: blur(28px) hue-rotate(-20deg); }
}

/* ── Focus state — green ── */
[data-theme="travel"] .hero-chat-input:focus {
    border-color: rgba(0, 200, 150, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 200, 150, 0.06);
}

/* ── Plus button hover — green ── */
[data-theme="travel"] .hero-chat-plus:hover {
    background: rgba(0, 200, 150, 0.15);
    color: rgba(0, 220, 170, 0.9);
    border-color: rgba(0, 200, 150, 0.3);
}

/* ── Send button — green ── */
[data-theme="travel"] .hero-chat-send {
    background: rgba(0, 200, 150, 0.12);
    color: rgba(0, 220, 170, 0.7);
}

[data-theme="travel"] .hero-chat-send:hover {
    background: rgba(0, 200, 150, 0.25);
    color: #00dca0;
    transform: scale(1.05);
}

/* ── Blinking cursor — green ── */
[data-theme="travel"] .hero-cursor {
    background: rgba(0, 220, 170, 0.85);
}

/* ── User message bubbles — green tint ── */
[data-theme="travel"] .hero-chat-messages .message-user .message-content {
    background: rgba(0, 180, 130, 0.15);
    border-color: rgba(0, 180, 130, 0.2);
}

/* ── Nav sign-up button — green accent ── */
[data-theme="travel"] .nav-btn-signup {
    background: rgba(0, 200, 150, 0.12);
    border: 1px solid rgba(0, 200, 150, 0.2);
}

[data-theme="travel"] .nav-btn-signup:hover {
    background: rgba(0, 200, 150, 0.2);
    border-color: rgba(0, 200, 150, 0.35);
    color: #ffffff;
}

/* ── Nav sign-in hover — green tint ── */
[data-theme="travel"] .nav-btn-signin:hover {
    background: rgba(0, 200, 150, 0.08);
}

/* ── Footer — green accents ── */
[data-theme="travel"] .footer-heart {
    color: rgba(0, 200, 150, 0.5);
}

[data-theme="travel"] .footer-link:hover {
    color: rgba(0, 220, 170, 0.8);
}

[data-theme="travel"] .footer-builder-link:hover {
    color: rgba(0, 220, 170, 0.9);
}

/* ── Scripts showcase btn — green ── */
[data-theme="travel"] .scripts-showcase-btn {
    background: rgba(0, 200, 150, 0.07);
    border-color: rgba(0, 200, 150, 0.14);
}

[data-theme="travel"] .scripts-showcase-btn:hover {
    background: rgba(0, 200, 150, 0.14);
    border-color: rgba(0, 200, 150, 0.26);
}

/* ── FAQ chevron & category — green ── */
[data-theme="travel"] .faq-item.active .faq-chevron {
    color: rgba(0, 200, 150, 0.7);
}

/* ── Script try pill hover — green ── */
[data-theme="travel"] .script-try-pill:hover {
    background: rgba(0, 200, 150, 0.12);
    border-color: rgba(0, 200, 150, 0.25);
    color: rgba(0, 220, 170, 0.9);
}

/* ── Cookie banner accept btn — green ── */
[data-theme="travel"] .cookie-btn.accept {
    background: rgba(0, 200, 150, 0.15);
    border-color: rgba(0, 200, 150, 0.3);
}

[data-theme="travel"] .cookie-btn.accept:hover {
    background: rgba(0, 200, 150, 0.25);
}

/* ── Sign-in popup — green accents ── */
[data-theme="travel"] .signin-btn-meta {
    background: rgba(0, 200, 150, 0.1);
    border-color: rgba(0, 200, 150, 0.2);
}

[data-theme="travel"] .signin-btn-meta:hover {
    background: rgba(0, 200, 150, 0.18);
}

/* ── Responsive hero-badge ── */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 11.5px;
        padding: 5px 13px;
        margin-bottom: 22px;
    }

    .hero-badge svg {
        width: 12px;
        height: 12px;
    }
}

/* ========================================
   TRAVEL DEMO — Modal + Ad Preview + Messenger
   These styles are globally scoped (not theme-gated)
   because the overlays only appear via travel-demo.js
   ======================================== */

/* ── Demo Selection Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-panel {
    background: #0d1a17;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Demo Cards — 3-col grid ── */
.demo-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
@media (max-width: 480px) {
    .demo-cards { grid-template-columns: repeat(2, 1fr); }
}
.demo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.demo-card:hover {
    background: rgba(0, 180, 140, 0.08);
    border-color: rgba(0, 180, 140, 0.25);
    transform: translateY(-2px);
}
.demo-card.selected {
    background: rgba(0, 180, 140, 0.12);
    border-color: rgba(0, 200, 150, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 200, 150, 0.2);
}
.demo-card-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.demo-card-logo img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 0;
}
.demo-card-name {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
}

/* ── Registration Form (inline below cards) ── */
.reg-form-inline {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.reg-form-inline .reg-submit {
    grid-column: 1 / -1;
}
@media (max-width: 420px) {
    .reg-form-inline { grid-template-columns: 1fr; }
}
.reg-input {
    width: 100%;
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    box-sizing: border-box;
}
.reg-input:focus {
    border-color: rgba(0, 200, 150, 0.3);
    background: rgba(255,255,255,0.08);
}
.reg-input::placeholder { color: rgba(255,255,255,0.25); }
.reg-submit {
    width: 100%;
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #00b88c, #009db8);
    border: none;
    border-radius: 14px;
    padding: 15px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.reg-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.reg-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ── Meta Ad Preview ── */
.ad-preview-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ad-preview-overlay.active {
    display: flex;
    opacity: 1;
}
.ad-preview-card {
    background: #ffffff;
    border-radius: 8px;
    max-width: 420px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    animation: modalSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ad-preview-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 8px;
}
.ad-preview-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ad-preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ad-preview-page-name {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
    line-height: 1.2;
}
.ad-preview-sponsored {
    font-size: 13px;
    color: #65676b;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 3px;
}
.ad-preview-text {
    padding: 4px 16px 12px;
    font-size: 15px;
    font-weight: 400;
    color: #050505;
    line-height: 1.33;
}
.ad-preview-image {
    width: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.ad-preview-image img { width: 100%; height: auto; display: block; }
.ad-preview-cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f0f2f5;
    gap: 12px;
}
.ad-preview-cta-info { flex: 1; min-width: 0; }
.ad-preview-cta-domain {
    font-size: 13px;
    color: #65676b;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.ad-preview-cta-headline {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
    line-height: 1.2;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ad-preview-cta-btn {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #0866ff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}
.ad-preview-cta-btn:hover { background: #0756d6; }
.ad-preview-cta-btn svg { width: 16px; height: 16px; }
.ad-preview-reactions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-top: 1px solid #e4e6eb;
}
.ad-preview-reactions-left {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #65676b;
}
.ad-preview-reactions-left .reaction-icons {
    display: flex;
    margin-right: 4px;
}
.ad-preview-reactions-left .reaction-icons span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    margin-right: -4px;
    border: 2px solid #fff;
    position: relative;
}
.ad-preview-reactions-right {
    font-size: 13px;
    color: #65676b;
}
.ad-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 16px 8px;
    border-top: 1px solid #e4e6eb;
}
.ad-preview-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #65676b;
    cursor: default;
    transition: background 0.15s;
}
.ad-preview-action-btn svg { width: 18px; height: 18px; }
.ad-preview-action-btn:hover { background: #f0f2f5; }
.ad-preview-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin-top: 16px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── Facebook Messenger Chat ── */
.messenger-overlay {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
}
.messenger-overlay.active {
    display: flex;
    animation: msgerFadeIn 0.25s ease;
}
@keyframes msgerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.msger-container {
    width: 100%;
    max-width: 420px;
    height: min(680px, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.06);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.msger-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #e4e6eb;
    flex-shrink: 0;
}
.msger-back {
    background: none;
    border: none;
    color: #0866ff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.msger-back:hover { opacity: 0.7; }
.msger-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}
.msger-avatar img { width: 26px; height: 26px; object-fit: contain; }
.msger-avatar::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border-radius: 50%;
    border: 2px solid #fff;
}
.msger-info { flex: 1; min-width: 0; }
.msger-name {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msger-status {
    font-size: 12px;
    font-weight: 400;
    color: #65676b;
}
.msger-messages {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #ffffff;
    scrollbar-width: thin;
    scrollbar-color: #bcc0c4 transparent;
}
.msger-messages::-webkit-scrollbar { width: 6px; }
.msger-messages::-webkit-scrollbar-thumb { background: #bcc0c4; border-radius: 3px; }
.msger-messages::-webkit-scrollbar-track { background: transparent; }
.msger-msg {
    display: flex;
    max-width: 75%;
    animation: msgAppear 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}
@keyframes msgAppear {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.msger-msg-user { align-self: flex-end; }
.msger-msg-ai   { align-self: flex-start; }
.msger-bubble {
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    padding: 8px 12px;
    word-break: break-word;
}
.msger-msg-user .msger-bubble {
    background: #0866ff;
    color: #ffffff;
    border-radius: 18px 18px 4px 18px;
}
.msger-msg-ai .msger-bubble {
    background: #e4e6eb;
    color: #050505;
    border-radius: 18px 18px 18px 4px;
}
.msger-bubble img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 4px;
    display: block;
}
.msger-bubble a { color: #0866ff; text-decoration: none; }
.msger-bubble a:hover { text-decoration: underline; }
/* Typing dots */
.msger-typing {
    display: flex;
    gap: 4px;
    padding: 8px 4px;
    align-items: center;
}
.msger-typing span {
    width: 7px;
    height: 7px;
    background: #a0a3a7;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}
.msger-typing span:nth-child(2) { animation-delay: 0.15s; }
.msger-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot {
    0%, 44%  { transform: translateY(0); opacity: 0.5; }
    28%      { transform: translateY(-4px); opacity: 1; }
}

.msger-input-bar {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #e4e6eb;
    background: #ffffff;
    flex-shrink: 0;
}
.msger-attach {
    background: none;
    border: none;
    color: #0866ff;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.msger-attach:hover { opacity: 0.7; }
.msger-input {
    flex: 1;
    font-family: 'Lexend', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #050505;
    background: #f0f2f5;
    border: none;
    border-radius: 20px;
    padding: 9px 14px;
    resize: none;
    outline: none;
    line-height: 1.4;
    max-height: 100px;
    overflow-y: auto;
}
.msger-input::placeholder { color: #65676b; }
.msger-input:focus { background: #e4e6eb; }
.msger-send-btn {
    background: none;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0866ff;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
    padding: 0;
}
.msger-send-btn:hover { opacity: 0.7; transform: scale(1.08); }

/* Mobile: Full-screen messenger */
@media (max-width: 480px) {
    .messenger-overlay {
        padding: 0;
        background: #ffffff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .msger-container {
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        box-shadow: none;
    }
}