.evai-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;
    font-family: var(--sans, "Manrope", "DM Sans", system-ui, sans-serif);
}

.evai-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 108px;
    height: 54px;
    padding: 0 16px 0 11px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(226, 52, 138, .96), rgba(139, 92, 246, .96));
    color: #fff;
    box-shadow:
        0 24px 54px -22px rgba(226, 52, 138, .86),
        0 12px 28px -22px rgba(30, 24, 18, .42),
        inset 0 1px 0 rgba(255, 255, 255, .36);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.evai-launcher:hover,
.evai-launcher:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.06) brightness(1.03);
    box-shadow:
        0 30px 62px -22px rgba(226, 52, 138, .92),
        0 14px 30px -22px rgba(30, 24, 18, .46),
        inset 0 1px 0 rgba(255, 255, 255, .42);
}

.evai-launcher-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.evai-launcher-icon i {
    font-size: 16px;
    line-height: 1;
}

.evai-launcher-text {
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.01em;
}

.evai-panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: min(400px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 112px));
    display: none;
    grid-template-rows: auto 1fr auto;
    border: 1px solid rgba(229, 218, 198, .92);
    border-radius: 28px;
    overflow: hidden;
    background: #fffefa;
    box-shadow:
        0 34px 100px -34px rgba(30, 24, 18, .48),
        0 0 0 1px rgba(255, 255, 255, .52);
}

.evai-widget.is-open .evai-panel {
    display: grid;
}

.evai-head {
    padding: 15px 15px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background:
        radial-gradient(circle at 0% 0%, rgba(226, 52, 138, .16), transparent 36%),
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, .14), transparent 36%),
        linear-gradient(135deg, #fff7fb, #fbf7f0);
    border-bottom: 1px solid rgba(229, 218, 198, .86);
}

.evai-head-mark {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.evai-head-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2348a, #8b5cf6);
    box-shadow:
        0 14px 30px -18px rgba(226, 52, 138, .9),
        inset 0 1px 0 rgba(255, 255, 255, .32);
}

.evai-head-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.evai-head strong {
    display: block;
    color: #1e1812;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.evai-head span {
    display: block;
    margin-top: 4px;
    color: #6b625c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.evai-head button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 1px solid rgba(229, 218, 198, .9);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #6b625c;
    cursor: pointer;
}

.evai-messages {
    padding: 16px;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: 10px;
    background:
        radial-gradient(circle at 92% 8%, rgba(226, 52, 138, .05), transparent 28%),
        #fffefa;
}

.evai-msg {
    max-width: 88%;
    padding: 11px 13px;
    border-radius: 17px;
    font-size: 13px;
    line-height: 1.45;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.evai-msg.user {
    justify-self: end;
    background: #1e1812;
    color: #fff;
    border-bottom-right-radius: 6px;
}

.evai-msg.assistant {
    justify-self: start;
    background: #f3e8dc;
    color: #1e1812;
    border: 1px solid rgba(229, 218, 198, .68);
    border-bottom-left-radius: 6px;
}

.evai-actions {
    justify-self: start;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 94%;
    margin-top: -4px;
}

.evai-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 11px;
    border: 1px solid rgba(226, 52, 138, .20);
    border-radius: 999px;
    background: #fff;
    color: #b91e6b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 24px -22px rgba(30, 24, 18, .32);
}

.evai-action:hover,
.evai-action:focus-visible {
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, .26);
}

.evai-action.is-primary {
    background: linear-gradient(135deg, #e2348a, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.evai-form {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-top: 1px solid rgba(229, 218, 198, .9);
    background: #fffefa;
}

.evai-form input {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 1px solid rgba(216, 201, 174, .95);
    border-radius: 999px;
    padding: 0 15px;
    outline: none;
    color: #1e1812;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

.evai-form input:focus {
    border-color: rgba(226, 52, 138, .46);
    box-shadow: 0 0 0 4px rgba(226, 52, 138, .08);
}

.evai-form button {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #e2348a, #8b5cf6);
    color: #fff;
    cursor: pointer;
}

.evai-form button:disabled {
    opacity: .65;
    cursor: wait;
}

/* Temporary header highlight when bot explains Create Event */
body.evai-highlight-header header,
body.evai-highlight-header .site-header,
body.evai-highlight-header .ev-header,
body.evai-highlight-header .navbar,
body.evai-highlight-header .hg-header {
    position: relative;
    z-index: 10000;
    animation: evaiHeaderPulse 1.7s ease-in-out 2;
    box-shadow: 0 0 0 4px rgba(226, 52, 138, .16), 0 18px 46px -30px rgba(226, 52, 138, .62) !important;
}

@keyframes evaiHeaderPulse {
    0%, 100% { filter: none; }
    45% { filter: saturate(1.12) brightness(1.03); }
}

@media (max-width: 520px) {
    .evai-widget {
        right: 14px;
        bottom: 14px;
    }

    .evai-launcher {
        min-width: 96px;
        height: 50px;
        padding-right: 13px;
    }

    .evai-launcher-icon {
        width: 31px;
        height: 31px;
    }

    .evai-launcher-text {
        font-size: 12px;
    }

    .evai-panel {
        right: -4px;
        bottom: 66px;
        width: calc(100vw - 20px);
        height: min(640px, calc(100vh - 200px));
        border-radius: 24px;
    }

    .evai-msg {
        max-width: 92%;
    }
}


/* Better formatted Eventify AI answers */
.evai-card {
    display: grid;
    gap: 7px;
    padding: 12px 13px;
}

.evai-card-title {
    color: #1e1812;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.evai-card-text {
    color: rgba(30, 24, 18, .76);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
}

.evai-points {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.evai-points li {
    position: relative;
    padding-left: 15px;
    color: rgba(30, 24, 18, .82);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.42;
}

.evai-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #e2348a, #8b5cf6);
}

.evai-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 2px;
}

.evai-link-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(226, 52, 138, .08);
    color: #b91e6b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
}

.evai-link-row a:hover,
.evai-link-row a:focus-visible {
    background: rgba(139, 92, 246, .10);
    color: #7c3aed;
}

.evai-actions {
    margin-bottom: 4px;
}

.evai-action {
    white-space: nowrap;
}

.evai-action[data-evai-value="main"] {
    border-color: rgba(30, 24, 18, .12);
    color: rgba(30, 24, 18, .68);
    background: rgba(255, 255, 255, .82);
}

@media (max-width: 520px) {
    .evai-card-title {
        font-size: 12.5px;
    }

    .evai-points li {
        font-size: 12px;
    }

    .evai-action {
        font-size: 10.5px;
        padding-inline: 10px;
    }
}


































/* Fix Eventify AI header logo overflow */
.evai-head .evai-head-logo {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    flex: 0 0 42px !important;
    display: block !important;
    overflow: hidden !important;
    border-radius: 50% !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow:
        0 14px 30px -18px rgba(226, 52, 138, .9),
        inset 0 1px 0 rgba(255, 255, 255, .32) !important;
}

.evai-head .evai-head-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
}


/* Final mobile compact fix for Eventify AI panel */
@media (max-width: 767.98px) {
    .evai-widget {
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
    }

    .evai-widget.is-open .evai-launcher {
        display: none !important;
    }

    .evai-panel {
        right: 0 !important;
        bottom: 0 !important;
        width: min(360px, calc(100vw - 28px)) !important;
        max-width: calc(100vw - 28px) !important;
        height: min(540px, calc(100vh - 124px)) !important;
        height: min(540px, calc(100dvh - 124px)) !important;
        max-height: calc(100dvh - 124px) !important;
        border-radius: 22px !important;
    }

    .evai-head {
        min-height: 62px !important;
        padding: 10px 11px !important;
        gap: 8px !important;
    }

    .evai-head-mark {
        gap: 8px !important;
        min-width: 0 !important;
    }

    .evai-head .evai-head-logo,
    .evai-head-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        flex: 0 0 34px !important;
    }

    .evai-head strong {
        font-size: 14px !important;
        line-height: 1.05 !important;
    }

    .evai-head span {
        margin-top: 3px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    .evai-head button {
        width: 34px !important;
        height: 34px !important;
        flex: 0 0 34px !important;
    }

    .evai-messages {
        padding: 12px !important;
        gap: 8px !important;
    }

    .evai-msg {
        max-width: 92% !important;
        padding: 10px 12px !important;
        font-size: 12.5px !important;
        line-height: 1.42 !important;
    }

    .evai-actions {
        max-width: 100% !important;
        gap: 7px !important;
    }

    .evai-action {
        min-height: 32px !important;
        padding: 7px 10px !important;
        font-size: 10.5px !important;
    }

    .evai-form {
        padding: 10px !important;
        gap: 7px !important;
    }

    .evai-form input {
        height: 42px !important;
        padding: 0 13px !important;
        font-size: 12.5px !important;
    }

    .evai-form button {
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
    }
}

@media (max-width: 380px) {
    .evai-panel {
        width: calc(100vw - 22px) !important;
        max-width: calc(100vw - 22px) !important;
    }

    .evai-head span {
        font-size: 10.5px !important;
    }
}

@media (max-width: 767.98px) and (max-height: 700px) {
    .evai-panel {
        height: min(480px, calc(100dvh - 104px)) !important;
        max-height: calc(100dvh - 104px) !important;
    }

    .evai-head {
        min-height: 58px !important;
        padding-top: 9px !important;
        padding-bottom: 9px !important;
    }

    .evai-msg {
        padding: 9px 11px !important;
        font-size: 12px !important;
    }
}