.menga-widget {
    bottom: 22px;
    color: #f8fafc;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    position: fixed;
    right: 22px;
    z-index: 60;
}

.menga-widget * {
    box-sizing: border-box;
}

.menga-widget__launcher {
    align-items: center;
    background:
        radial-gradient(circle at 34% 24%, rgba(255, 247, 204, 0.14), transparent 26%),
        linear-gradient(145deg, rgba(7, 16, 23, 0.96), rgba(17, 24, 39, 0.96));
    border: 1px solid rgba(245, 207, 131, 0.34);
    border-radius: 999px;
    box-shadow:
        0 22px 60px rgba(3, 7, 18, 0.36),
        0 0 34px rgba(245, 158, 11, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    animation: mengaWidgetLauncherWake 10s ease-in-out infinite;
    height: 106px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    position: relative;
    width: 106px;
}

.menga-widget__launcher::before {
    animation: mengaWidgetWake 10s ease-in-out infinite;
    border: 1px solid rgba(251, 191, 36, 0.34);
    border-radius: 999px;
    content: "";
    inset: -4px;
    opacity: 0.55;
    pointer-events: none;
    position: absolute;
}

.menga-widget__launcher::after {
    background:
        linear-gradient(135deg, rgba(11, 17, 28, 0.98), rgba(17, 24, 39, 0.96));
    border: 1px solid rgba(245, 207, 131, 0.36);
    border-radius: 999px;
    bottom: calc(100% + 12px);
    box-shadow: 0 16px 38px rgba(3, 7, 18, 0.24);
    color: #fff7cc;
    content: "Menga A.İ Gayrimenkul Danışmanı";
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    opacity: 0;
    padding: 10px 14px;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
    white-space: nowrap;
}

.menga-widget__launcher:hover,
.menga-widget__launcher:focus-visible {
    box-shadow:
        0 26px 70px rgba(3, 7, 18, 0.42),
        0 0 48px rgba(245, 158, 11, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    outline: none;
}

.menga-widget__launcher:hover::after,
.menga-widget__launcher:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.menga-widget__launcher-text {
    display: none;
}

.menga-widget__launcher-text strong {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.menga-widget__launcher-text small {
    color: rgba(255, 211, 122, 0.84);
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
}

.menga-widget-orb {
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 247, 204, 0.22), transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.20), rgba(11, 17, 28, 0.88) 68%);
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 999px;
    box-shadow:
        inset 0 2px 10px rgba(255, 247, 204, 0.14),
        inset 0 -10px 22px rgba(3, 7, 18, 0.52),
        0 0 24px rgba(245, 158, 11, 0.42),
        0 10px 26px rgba(3, 7, 18, 0.38);
    display: inline-grid;
    flex: 0 0 auto;
    height: 86px;
    isolation: isolate;
    place-items: center;
    position: relative;
    transform-style: preserve-3d;
    width: 86px;
}

.menga-widget-orb--panel {
    height: 64px;
    width: 64px;
}

.menga-widget-orb--panel .menga-widget-orb__core {
    height: 22px;
    width: 22px;
}

.menga-widget-orb__ring,
.menga-widget-orb__axis,
.menga-widget-orb__node,
.menga-widget-orb__glow,
.menga-widget-orb__core {
    position: absolute;
}

.menga-widget-orb__glow {
    animation: mengaWidgetGlow 3.2s ease-in-out infinite;
    background:
        radial-gradient(circle, rgba(251, 191, 36, 0.34), transparent 58%),
        radial-gradient(circle, rgba(245, 158, 11, 0.22), transparent 72%);
    border-radius: 999px;
    filter: blur(4px);
    inset: -10px;
    opacity: 0.9;
    z-index: -1;
}

.menga-widget-orb__ring {
    border-radius: 999px;
    inset: 10px;
    transform-origin: 50% 50%;
}

.menga-widget-orb__ring--one {
    animation: mengaWidgetSpin 7s linear infinite;
    border: 1px solid rgba(255, 247, 204, 0.72);
    border-left-color: transparent;
    border-bottom-color: rgba(249, 115, 22, 0.36);
    transform: rotateX(64deg) rotateZ(18deg);
}

.menga-widget-orb__ring--two {
    animation: mengaWidgetSpinReverse 8.5s linear infinite;
    border: 1px solid rgba(251, 191, 36, 0.58);
    border-right-color: transparent;
    border-top-color: rgba(249, 115, 22, 0.36);
    inset: 16px;
    transform: rotateY(62deg) rotateZ(-24deg);
}

.menga-widget-orb__ring--three {
    animation: mengaWidgetSpin 11s linear infinite;
    border: 1px solid rgba(245, 158, 11, 0.44);
    border-left-color: transparent;
    border-right-color: transparent;
    inset: 24px;
    transform: rotateX(34deg) rotateY(42deg) rotateZ(72deg);
}

.menga-widget-orb__axis {
    animation: mengaWidgetAxisOne 5.6s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 247, 204, 0.46), transparent);
    border-radius: 999px;
    height: 1px;
    left: 14px;
    right: 14px;
    top: 50%;
    transform: rotate(36deg);
}

.menga-widget-orb__axis--two {
    animation: mengaWidgetAxisTwo 6.4s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.42), transparent);
    transform: rotate(-58deg);
}

.menga-widget-orb__core {
    background:
        radial-gradient(circle at 32% 24%, #fff7cc 0 10%, #fef3c7 11% 20%, #fbbf24 21% 45%, #f59e0b 46% 68%, #9a3412 69% 100%);
    border: 1px solid rgba(255, 247, 204, 0.46);
    border-radius: 999px;
    box-shadow:
        inset 2px 2px 5px rgba(255, 247, 204, 0.44),
        inset -4px -5px 10px rgba(124, 45, 18, 0.56),
        0 0 18px rgba(245, 158, 11, 0.92),
        0 0 34px rgba(251, 191, 36, 0.36);
    height: 30px;
    transform: translateZ(14px);
    width: 30px;
}

.menga-widget-orb__node {
    animation: mengaWidgetNodePulse 2.4s ease-in-out infinite;
    background: #fff7cc;
    border-radius: 999px;
    box-shadow:
        0 0 8px rgba(255, 247, 204, 0.92),
        0 0 16px rgba(245, 158, 11, 0.64);
    height: 8px;
    width: 8px;
}

.menga-widget-orb__node--one {
    right: 15px;
    top: 24px;
}

.menga-widget-orb__node--two {
    animation-delay: 0.35s;
    bottom: 20px;
    left: 16px;
}

.menga-widget-orb__node--three {
    animation-delay: 0.7s;
    left: 25px;
    top: 14px;
}

.menga-widget-orb__node--four {
    animation-delay: 1.05s;
    bottom: 14px;
    right: 25px;
}

.menga-widget__launcher:hover .menga-widget-orb,
.menga-widget__head:hover .menga-widget-orb {
    box-shadow:
        inset 0 2px 10px rgba(255, 247, 204, 0.18),
        inset 0 -10px 22px rgba(3, 7, 18, 0.52),
        0 0 34px rgba(245, 158, 11, 0.58),
        0 14px 32px rgba(3, 7, 18, 0.42);
}

.menga-widget__panel {
    background:
        radial-gradient(circle at 22% 4%, rgba(245, 158, 11, 0.18), transparent 15rem),
        linear-gradient(160deg, rgba(7, 16, 23, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(245, 207, 131, 0.22);
    border-radius: 24px;
    bottom: 124px;
    box-shadow: 0 28px 90px rgba(3, 7, 18, 0.42);
    display: grid;
    gap: 14px;
    max-height: min(660px, calc(100vh - 120px));
    overflow: auto;
    padding: 16px;
    position: absolute;
    right: 0;
    width: min(400px, calc(100vw - 32px));
}

.menga-widget__panel[hidden] {
    display: none;
}

.menga-widget__head {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.menga-widget__head strong,
.menga-widget__head span {
    display: block;
}

.menga-widget__head strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.1;
}

.menga-widget__head span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.menga-widget__close {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.menga-widget__messages {
    display: grid;
    gap: 10px;
}

.menga-widget__message,
.menga-widget__reply {
    border-radius: 18px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.58;
    margin: 0;
    padding: 13px 14px;
}

.menga-widget__message {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.86);
}

.menga-widget__reply {
    background: rgba(245, 207, 131, 0.12);
    border: 1px solid rgba(245, 207, 131, 0.30);
    color: #fff7d6;
}

.menga-widget__quick-actions {
    display: grid;
    gap: 8px;
}

.menga-widget__quick-actions a {
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 14px;
    color: #ffffff;
    display: flex;
    font-size: 13px;
    font-weight: 850;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 12px;
    text-decoration: none;
}

.menga-widget__quick-actions a::after {
    color: #ffd37a;
    content: "›";
    font-size: 20px;
    line-height: 1;
}

.menga-widget__form {
    display: grid;
    gap: 8px;
}

.menga-widget__form label {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
}

.menga-widget__input-row {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 42px 42px auto;
}

.menga-widget__input-row input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #ffffff;
    min-height: 42px;
    min-width: 0;
    padding: 0 12px;
}

.menga-widget__input-row input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.menga-widget__input-row button[type="submit"] {
    background: linear-gradient(135deg, #ffd37a, #f59e0b);
    border: 0;
    border-radius: 14px;
    color: #111827;
    cursor: pointer;
    font-size: 13px;
    font-weight: 950;
    min-height: 42px;
    padding: 0 13px;
}

.menga-widget__input-row button[type="submit"]:disabled {
    cursor: wait;
    opacity: 0.68;
}

.menga-widget__voice-button {
    align-items: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 247, 204, 0.18), transparent 38%),
        rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(245, 207, 131, 0.28);
    color: #fff7cc;
    display: inline-flex;
    font-size: 16px;
    justify-content: center;
    padding: 0;
}

.menga-widget__voice-button:hover,
.menga-widget__voice-button:focus-visible,
.menga-widget__voice-button.is-active {
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 247, 204, 0.22), transparent 38%),
        rgba(245, 158, 11, 0.18);
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.22);
    outline: none;
}

.menga-widget__voice-button.is-listening {
    animation: mengaWidgetVoiceListen 1.2s ease-in-out infinite;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.42);
}

.menga-widget__voice-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.menga-widget__voice-status {
    color: rgba(255, 247, 204, 0.76);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    min-height: 15px;
}

@keyframes mengaWidgetSpin {
    to {
        rotate: 360deg;
    }
}

@keyframes mengaWidgetSpinReverse {
    to {
        rotate: -360deg;
    }
}

@keyframes mengaWidgetAxisOne {
    0%,
    100% {
        opacity: 0.42;
        transform: rotate(28deg) scaleX(0.9);
    }

    50% {
        opacity: 0.82;
        transform: rotate(48deg) scaleX(1.08);
    }
}

@keyframes mengaWidgetAxisTwo {
    0%,
    100% {
        opacity: 0.36;
        transform: rotate(-64deg) scaleX(0.88);
    }

    50% {
        opacity: 0.74;
        transform: rotate(-42deg) scaleX(1.06);
    }
}

@keyframes mengaWidgetGlow {
    0%,
    100% {
        opacity: 0.62;
        transform: scale(0.92);
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes mengaWidgetNodePulse {
    0%,
    100% {
        opacity: 0.58;
        transform: scale(0.82);
    }

    50% {
        opacity: 1;
        transform: scale(1.18);
    }
}

@keyframes mengaWidgetWake {
    0%,
    76%,
    100% {
        box-shadow: 0 0 0 rgba(245, 158, 11, 0);
        opacity: 0.38;
        transform: translateY(0) scale(1);
    }

    82% {
        box-shadow:
            0 0 24px rgba(245, 158, 11, 0.50),
            0 0 52px rgba(251, 191, 36, 0.28);
        opacity: 1;
        transform: translateY(-8px) scale(1.05);
    }

    90% {
        box-shadow: 0 0 34px rgba(245, 158, 11, 0.22);
        opacity: 0.58;
        transform: translateY(0) scale(1);
    }
}

@keyframes mengaWidgetLauncherWake {
    0%,
    76%,
    100% {
        transform: translateY(0) scale(1);
    }

    82% {
        transform: translateY(-7px) scale(1.035);
    }

    90% {
        transform: translateY(0) scale(1);
    }
}

@keyframes mengaWidgetVoiceListen {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-1px) scale(1.04);
    }
}

@media (max-width: 768px) {
    .menga-widget {
        bottom: 16px;
        left: auto;
        right: 12px;
        z-index: 240;
    }

    .menga-widget__launcher {
        height: 84px;
        justify-content: center;
        margin-left: 0;
        width: 84px;
    }

    .menga-widget__launcher::before {
        inset: -5px;
    }

    .menga-widget__launcher::after {
        display: none;
    }

    .menga-widget-orb {
        height: 76px;
        width: 76px;
    }

    .menga-widget-orb__core {
        height: 32px;
        width: 32px;
    }

    .menga-widget-orb__glow {
        filter: blur(5px);
        inset: -14px;
    }

    .menga-widget-orb__ring {
        inset: 10px;
    }

    .menga-widget-orb__ring--two {
        inset: 17px;
    }

    .menga-widget-orb__ring--three {
        inset: 24px;
    }

    .menga-widget-orb__axis {
        left: 14px;
        right: 14px;
    }

    .menga-widget-orb__node {
        height: 8px;
        width: 8px;
    }

    .menga-widget-orb__node--one {
        right: 14px;
        top: 21px;
    }

    .menga-widget-orb__node--two {
        bottom: 17px;
        left: 15px;
    }

    .menga-widget-orb__node--three {
        left: 22px;
        top: 13px;
    }

    .menga-widget-orb__node--four {
        bottom: 13px;
        right: 22px;
    }

    .menga-widget-orb--panel {
        height: 44px;
        width: 44px;
    }

    .menga-widget-orb--panel .menga-widget-orb__core {
        height: 16px;
        width: 16px;
    }

    .menga-widget__panel {
        border-radius: 24px 24px 18px 18px;
        bottom: 94px;
        gap: 10px;
        left: auto;
        max-height: min(76vh, calc(100vh - 110px));
        overflow-y: auto;
        padding: 12px;
        right: 0;
        width: min(94vw, calc(100vw - 24px));
    }

    .menga-widget__head {
        gap: 8px;
        grid-template-columns: auto minmax(0, 1fr) 30px;
    }

    .menga-widget__head strong {
        font-size: 14px;
    }

    .menga-widget__head span,
    .menga-widget__voice-status {
        font-size: 11px;
    }

    .menga-widget__messages {
        gap: 8px;
    }

    .menga-widget__message,
    .menga-widget__reply {
        font-size: 12px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        padding: 10px 11px;
    }

    .menga-widget__quick-actions {
        gap: 6px;
    }

    .menga-widget__quick-actions a {
        font-size: 12px;
        min-height: 36px;
        padding: 8px 10px;
    }

    .menga-widget__quick-actions a:not(:first-child) {
        display: none;
    }

    .menga-widget__input-row {
        gap: 6px;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .menga-widget__input-row input {
        min-height: 38px;
    }

    .menga-widget__voice-button,
    .menga-widget__voice-status {
        display: none;
    }

    .menga-widget__input-row button[type="submit"] {
        grid-column: auto;
        min-height: 38px;
        padding: 0 10px;
        width: auto;
    }
}
