:root {
    --ai-black: #111111;
    --ai-white: #fff;
    --ai-gold: #d4af37;
    --ai-gold-light: #e5c158;
    --ai-gray: #222;
    --ai-gray-light: #444;
    --ai-border-radius: 18px;
    --ai-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --ai-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --ai-primary: #d4af37;
    --ai-primary-dark: #b38f2e;
    --ai-text: #000;
    --ai-bg: #fff;
    --ai-glow: #00ffc8;
    --ai-glow-opacity: 0.6;
}

body {
    font-family: var(--ai-font);
}

#ai-assistant-btn {
    position: fixed;
    left: 24px;
    bottom: 20px;
    z-index: 99999;
    background: #d4af37;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 30px;
    box-shadow: var(--ai-shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out, pulse 30s ease-in-out infinite;
}

.ai-robot-icon {
    display: inline-block;
    font-size: 40px;
    line-height: 1;
}

#ai-assistant-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

#ai-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99998;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

#ai-popup {
    position: fixed;
    left: 100px;
    bottom: 160px;
    width: 300px;
    max-width: 95vw;
    background: var(--ai-black);
    color: var(--ai-white);
    border-radius: var(--ai-border-radius);
    box-shadow: var(--ai-shadow);
    z-index: 100000;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#ai-popup.ai-hide,
#ai-popup-overlay.ai-hide {
    display: none !important;
}

.ai-close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--ai-gold);
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ai-close-button:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--ai-white);
    transform: rotate(90deg);
}

#ai-wizard-form {
    padding: 32px 32px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ai-step {
    display: none;
    flex-direction: column;
    gap: 18px;
    animation: ai-fadein 0.4s;
}

.ai-step.active {
    display: flex;
}

.ai-step h2 {
    font-size: 1.25rem;
    color: var(--ai-gold);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.ai-step input[type="text"],
.ai-step input[type="number"],
.ai-step input[type="email"],
.ai-step textarea,
.ai-step select {
    background: var(--ai-gray);
    color: var(--ai-white);
    border: 1.5px solid var(--ai-gray-light);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: var(--ai-font);
    margin-bottom: 6px;
    outline: none;
    transition: border 0.2s;
}

.ai-step input:focus,
.ai-step textarea:focus,
.ai-step select:focus {
    border: 1.5px solid var(--ai-gold);
}

.ai-step textarea {
    min-height: 60px;
    resize: vertical;
}

.ai-step select {
    background: var(--ai-gray);
}

.ai-honeypot {
    display: none !important;
}

.ai-wizard-nav {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

#ai-prev-btn,
#ai-next-btn,
#ai-submit-btn {
    background: var(--ai-gold);
    color: var(--ai-black);
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.08);
}

#ai-prev-btn {
    background: var(--ai-gray-light);
    color: var(--ai-white);
}

#ai-prev-btn:hover {
    background: var(--ai-gold);
    color: var(--ai-black);
}

#ai-next-btn:disabled,
#ai-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#ai-next-btn:hover:not(:disabled),
#ai-submit-btn:hover:not(:disabled) {
    background: var(--ai-white);
    color: var(--ai-gold);
}

.ai-recommendation-box {
    background: var(--ai-gray);
    color: var(--ai-white);
    border-radius: 12px;
    padding: 18px 14px;
    min-height: 80px;
    font-size: 1.08rem;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.05);
    border: 1px solid var(--ai-gold);
    word-break: break-word;
}

@media (max-width: 768px) {
    #ai-popup {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }

    #ai-wizard-form {
        height: 100%;
        overflow-y: auto;
        padding: 60px 20px 20px;
    }

    .ai-close-button {
        top: 20px;
        right: 20px;
        font-size: 32px;
    }

    #ai-assistant-btn {
        left: 16px;
        bottom: 16px;
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .ai-robot-icon {
        font-size: 32px;
    }
}

@keyframes ai-fadein {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.ai-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background-color: var(--ai-primary);
    border-radius: 50%;
    border: none;
    font-size: 32px;
    color: var(--ai-text);
    box-shadow: var(--ai-shadow);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-150%);
    animation: slideInLeft 0.8s ease-out 1.2s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
}

.ai-floating-button:hover {
    background-color: var(--ai-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.8);
}

.ai-floating-button:active {
    transform: translateY(0);
}

.ai-robot-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

.ai-floating-button:hover .ai-robot-icon {
    transform: scale(1.1);
}

/* AI Robot Styles */
:root {
    --ai-black: #111111;
    --ai-white: #fff;
    --ai-gold: #d4af37;
    --ai-gold-light: #e5c158;
    --ai-gray: #222;
    --ai-gray-light: #444;
    --ai-border-radius: 18px;
    --ai-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    --ai-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* Animacije */
@keyframes robot-walk-in {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes wink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

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

@keyframes walk {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Robot Button */
.ai-robot-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 80px;
    height: 80px;
    background: var(--ai-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ai-shadow);
    opacity: 0;
    transform: translateX(-150%);
    animation: robot-walk-in 0.8s ease-out 1.2s forwards;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-robot-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
}

/* Robot Head */
.robot-head {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.robot-emoji {
    font-size: 40px;
    line-height: 1;
}

.robot-eyes {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.eye {
    width: 8px;
    height: 8px;
    background: var(--ai-white);
    border-radius: 50%;
    animation: blink 6s infinite;
}

.eye.left {
    margin-right: 4px;
}

.eye.right {
    margin-left: 4px;
}

.ai-robot-button:hover .eye.right {
    animation: wink 0.5s;
}

/* Robot Body */
.robot-body {
    width: 30px;
    height: 20px;
    background: var(--ai-gold);
    border-radius: 15px;
    margin-top: -5px;
    position: relative;
    overflow: hidden;
}

.robot-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--ai-gold-light);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Robot Legs */
.robot-legs {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.leg {
    width: 6px;
    height: 12px;
    background: var(--ai-gold);
    border-radius: 3px;
}

.leg.left {
    animation: walk 0.8s infinite;
}

.leg.right {
    animation: walk 0.8s infinite 0.4s;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ai-robot-button {
        width: 60px;
        height: 60px;
        bottom: 16px;
        left: 16px;
    }

    .robot-emoji {
        font-size: 32px;
    }

    .robot-body {
        width: 24px;
        height: 16px;
    }

    .robot-core {
        width: 10px;
        height: 10px;
    }

    .leg {
        width: 5px;
        height: 10px;
    }
}

/* AI Entity Button */
.ai-entity {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 70px;
    height: 70px;
    background: var(--ai-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ai-shadow);
    opacity: 0;
    transform: translateX(-150%);
    animation: walkInFromLeft 0.8s ease-out 1.2s forwards;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
}

.ai-entity:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.3);
}

/* Glow Effect */
.ai-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--ai-glow) 0%, transparent 70%);
    opacity: var(--ai-glow-opacity);
    filter: blur(10px);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

/* Particles */
.ai-particles {
    position: absolute;
    inset: -20px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--ai-glow);
    border-radius: 50%;
    opacity: 0.6;
    animation: particleFloat 3s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 30%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 70%;
    left: 60%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    top: 40%;
    left: 40%;
    animation-delay: 2s;
}

/* AI Head */
.ai-head {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-face {
    width: 32px;
    height: 32px;
}

.ai-face-circle {
    fill: var(--ai-gray);
    stroke: var(--ai-glow);
    stroke-width: 1;
}

.ai-eye {
    fill: var(--ai-glow);
    animation: blink 6s infinite;
}

.ai-eye.right {
    animation-delay: 0.1s;
}

.ai-mouth {
    stroke: var(--ai-glow);
    stroke-width: 1.5;
    stroke-linecap: round;
    fill: none;
}

/* AI Core */
.ai-core {
    width: 20px;
    height: 20px;
    background: var(--ai-black);
    border: 1px solid var(--ai-glow);
    border-radius: 50%;
    margin-top: -5px;
    position: relative;
    overflow: hidden;
}

.core-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--ai-glow) 0%, transparent 70%);
    opacity: 0.4;
    animation: corePulse 3s ease-in-out infinite;
}

.core-pulse {
    position: absolute;
    inset: 0;
    background: var(--ai-glow);
    border-radius: 50%;
    opacity: 0;
    animation: corePulse 3s ease-in-out infinite;
}

/* AI Legs */
.ai-legs {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.leg {
    width: 4px;
    height: 10px;
    background: var(--ai-glow);
    border-radius: 2px;
}

.leg.left {
    animation: walk 0.8s infinite;
}

.leg.right {
    animation: walk 0.8s infinite 0.4s;
}

/* Animations */
@keyframes walkInFromLeft {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes wink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.1);
    }
}

@keyframes corePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: var(--ai-glow-opacity);
        transform: scale(1);
    }

    50% {
        opacity: calc(var(--ai-glow-opacity) * 1.5);
        transform: scale(1.1);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.6;
    }

    50% {
        transform: translate(10px, -10px);
        opacity: 0.3;
    }
}

@keyframes walk {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .ai-entity {
        width: 60px;
        height: 60px;
        bottom: 16px;
        left: 16px;
    }

    .ai-face {
        width: 28px;
        height: 28px;
    }

    .ai-core {
        width: 16px;
        height: 16px;
    }

    .leg {
        width: 3px;
        height: 8px;
    }

    .ai-glow {
        inset: -8px;
    }

    .ai-particles {
        inset: -15px;
    }

    .particle {
        width: 3px;
        height: 3px;
    }
}

/* Humanoid AI Entity */
.ai-humanoid {
    position: fixed;
    bottom: 90px;
    left: 22px !important;
    width: 60px;
    height: 60px;
    background: var(--ai-black);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ai-shadow);
    opacity: 0;
    transform: translateX(-150%);
    animation: slideInLeft 0.8s ease-out 1.2s forwards;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.ai-humanoid:hover {
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.3);
}

/* AI Head */
.ai-head {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--ai-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* AI Indicator */
.ai-indicator {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--ai-glow);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ai-glow);
    animation: pulse 2s infinite;
}

/* AI Face */
.ai-face {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* AI Eyes */
.ai-eyes {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.eye {
    width: 20px;
    height: 4px;
    background: var(--ai-glow);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--ai-glow);
    animation: blink 6s infinite;
}

.eye.right {
    animation-delay: 0.1s;
}

/* AI Mouth */
.ai-mouth {
    width: 24px;
    height: 4px;
    background: var(--ai-glow);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--ai-glow);
    animation: pulseLight 3s infinite;
}

/* Popup Bubble */
.ai-popup-bubble {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--ai-black);
    color: var(--ai-white);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    box-shadow: var(--ai-shadow);
}

.bubble-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--ai-black);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.ai-humanoid:hover .ai-popup-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Animations */
@keyframes slideInLeft {
    0% {
        transform: translateX(-150%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.1);
        opacity: 0.5;
    }
}

@keyframes wink {

    0%,
    45%,
    55%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.1);
        opacity: 0.5;
    }
}

@keyframes pulseLight {

    0%,
    100% {
        opacity: 0.6;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

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

/* Mobile Styles */
@media (max-width: 768px) {
    .ai-humanoid {
        width: 60px;
        height: 60px;
        bottom: 90px;
        left: 24px;
    }

    .ai-head {
        width: 50px;
        height: 50px;
    }

    .eye {
        width: 16px;
        height: 3px;
    }

    .ai-mouth {
        width: 20px;
        height: 3px;
    }

    .ai-indicator {
        width: 6px;
        height: 6px;
        top: 6px;
    }

    .ai-popup-bubble {
        display: none;
    }
}

/* AI Chat Window Styles */
.ai-chat-window {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    max-height: 600px;
    background: var(--ai-black);
    border-radius: var(--ai-border-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-chat-header {
    padding: 16px 20px;
    background: var(--ai-gray);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--ai-gray-light);
}

.ai-chat-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ai-gold);
    font-weight: 600;
}

.ai-avatar {
    width: 32px;
    height: 32px;
    background: var(--ai-gold);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.ai-avatar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: var(--ai-black);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--ai-black);
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    background: var(--ai-gray);
    color: var(--ai-white);
    border-radius: 18px 18px 18px 4px;
    animation: messageSlideIn 0.3s ease-out;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background: var(--ai-gold);
    color: var(--ai-black);
    border-radius: 18px 18px 4px 18px;
}

.ai-typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ai-gold);
    font-size: 0.9rem;
    padding: 8px 16px;
    animation: fadeIn 0.3s ease-out;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--ai-gold);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.user-reply-container {
    padding: 16px;
    background: var(--ai-gray);
    border-top: 1px solid var(--ai-gray-light);
    border-radius: 0 0 18px 18px;
    /* kopira donji radijus, ako treba */
}


.user-reply-container input[type="text"],
.user-reply-container input[type="number"],
.user-reply-container input[type="email"] {
    box-sizing: border-box;
    /* ← OBAVEZNO */
    width: 100%;
    max-width: 100%;
    /* sigurnost */
    border-radius: 24px;
    padding: 12px 16px;
    border: 1px solid var(--ai-gold);
    background: var(--ai-black);
    color: var(--ai-white);
    font-size: 1rem;
}


.user-reply-container input:focus {
    border-color: var(--ai-gold);
    outline: none;
}

.user-reply-container .radio-group,
.user-reply-container .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0;
}

.user-reply-container .radio-option,
.user-reply-container .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ai-white);
    cursor: pointer;
}

.user-reply-container .radio-option input,
.user-reply-container .checkbox-option input {
    width: 18px;
    height: 18px;
    accent-color: var(--ai-gold);
}

.user-reply-container .submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--ai-gold);
    color: var(--ai-black);
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.user-reply-container .submit-btn:hover {
    background: var(--ai-white);
    transform: translateY(-1px);
}

.user-reply-container .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes typingDot {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-4px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .ai-chat-window {
        width: 100%;
        max-width: 100% !important;
        border-radius: 0 0 18px 18px;
        max-height: 100% !important;
        /* samo donji uglovi zaobljeni */
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .ai-message {
        max-width: 90%;
    }
}

/* Strip Popup Styles */
.ai-strip-popup {
    position: fixed;
    bottom: 160px !important;
    left: 20px;
    width: 250px;
    background: var(--ai-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    opacity: 0;
    transform: translateY(20px);
    animation: stripSlideIn 0.5s ease-out forwards;
}

.ai-strip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--ai-gray);
    font-size: 20px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ai-strip-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ai-black);
}

.ai-strip-content {
    padding: 16px;
    position: relative;
}

.ai-strip-message {
    animation: messageFadeIn 0.5s ease-out;
}

.ai-strip-message p {
    margin: 0 0 12px 0;
    color: var(--ai-black);
    font-size: 15px;
    line-height: 1.5;
}

.ai-strip-start {
    background: var(--ai-gold);
    color: var(--ai-black);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ai-strip-start:hover {
    background: var(--ai-gold-light);
    transform: translateY(-1px);
}

.ai-strip-arrow {
    position: absolute;
    bottom: -8px;
    left: 40px;
    width: 16px;
    height: 16px;
    background: var(--ai-white);
    transform: rotate(45deg);
    box-shadow: 4px 4px 7px rgba(0, 0, 0, 0.07);
}

@keyframes stripSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes messageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 768px) {
    .ai-strip-popup {
        left: 16px;
        right: 16px;
        width: auto;
        bottom: 160px !important;
    }

    .ai-strip-arrow {
        left: 30px;
    }
}

.ai-strip-popup {
    position: fixed;
    bottom: 120px;
    left: 20px;
    z-index: 9999;
    /* osiguraj da je popup iznad svega */
}

.ai-strip-close {
    z-index: 10000 !important;
    pointer-events: all !important;
    position: absolute;
    /* važno! */
    top: 8px;
    right: 8px;
}

#ai-strip-popup.ai-hide {
    display: none !important;
}