/* Chatbot */
.chatbot {
    position: fixed;
    bottom: 20px;
    right: 1rem;
    z-index: 1000;
}

/* Chat Add Menu */
.chat-add-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(425px) translateX(-65px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 10;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: auto;
    min-width: 60px;
}

.chat-add-menu.show {
    display: flex;
    background: rgba(255, 255, 255, 0.1)
}

.chat-menu-option {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-menu-option:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.chat-menu-option img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.chat-selection {
    text-align: center;
    padding: 1rem;
    margin-top: 10rem;
    display: block;
}

.chat-image {
    display: none;
    padding: 1rem;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.chat-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.chat-image img:hover {
    transform: scale(1.05);
}

/* Expanded AI Chat */
.chat-expanded {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-expanded img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.chat-selection p {
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.chat-option {
    background: rgba(0, 212, 255, 0.8);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 0 0.2rem;
}

.chat-option:hover {
    background: rgba(0, 212, 255, 1);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.6), 0 0 20px rgba(0, 212, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-option:hover::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #00ff88, #8000ff, #ff0080);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(4px);
    animation: pulseGlow 2s ease-in-out infinite;
}

.chat-option.signal-hover {
    background: rgba(255, 136, 0, 0.8); /* Orange color for Signal hover */
}

.chat-loading {
    text-align: center;
    padding: 1rem;
    color: #e0e7ff;
}

.chat-back {
    background: none;
    border: none;
    color: #e0e7ff;
    font-size: 1.25rem;
    cursor: pointer;
    margin-right: 0.5rem;
}

.chat-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
}

.chat-input {
    flex: none;
}

.chat-messages {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 212, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff88, #8000ff);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00d4ff;
    animation: typing 1.4s infinite ease-in-out;
}

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

.chat-toggle {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-6px, 0);
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #00d4ff, #00ff88, #8000ff);
    border-radius: 52px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.chat-toggle img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.chat-toggle:hover img {
    filter: brightness(1.2);
}

.chat-toggle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.chat-toggle:hover {
    background: rgba(0, 212, 255, 1);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.8),
        inset 0 3px 6px rgba(255, 255, 255, 0.2);;
}

.chat-toggle:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

.chat-window {
    display: none;
    position: absolute;
    bottom: 5rem;
    right: 0;
    width: 20rem;
    height: 25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2);
    flex-direction: column;
    z-index: 3000;
    transition: width 0.3s ease, height 0.3s ease;
    overflow: hidden;
}

.chat-window.expanded {
    width: 30rem;
    height: 30rem;
}
.chat-window.faq-active {
    height: 38rem;
}

.chat-window.open {
    display: flex;
    height: 35rem;
    transform: translateY(50px);
}

.chat-header {
    background: rgba(0, 212, 255, 0.8);
    color: white;
    padding: 0.75rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

#chatTitle {
    position: relative;
}

.chat-header span {
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    padding: 0.5rem;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 0.75rem;
}

.message.user {
    text-align: right;
}

.message.bot {
    text-align: left;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.message-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message.signal-bot {
    position: relative;
    padding-bottom: 20px; /* Space for avatar */
}

.message.signal-bot .message-avatar-circle,
.message.live-bot .message-avatar-circle {
    position: absolute;
    bottom: -16px;
    left: -40px;
    margin-right: 0;
}

.message-bubble {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
    backdrop-filter: blur(5px);
    position: relative;
}

.message-status {
    font-size: 0.8rem;
    margin-left: 0.5rem;
    opacity: 0.7;
}

.message-status[data-status="sent"] {
    color: #94a3b8;
}

.message-status[data-status="delivered"] {
    color: #94a3b8;
}

.message-status[data-status="read"] {
    color: #00d4ff;
}

.message.user .message-bubble {
    background: rgba(0, 212, 255, 0.8);
    color: white;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.signal-message .message-bubble {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.message.bot .message-bubble {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e7ff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input {
    padding: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    height: 4rem;
    overflow: hidden;
}

#chatInputField {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px 10px 10px 10px;
    padding: 0.5rem 0.75rem;
    outline: none;
    color: #e0e7ff;
    backdrop-filter: blur(5px);
    order: 2;
    width: 22rem;
}

#fileInput {
    order: 4;
}

.chat-input input::placeholder {
    color: #94a3b8;
}

#chatSend {
    background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB);
    color: white;
    border: none;
    width: 40px;
    height: 30px;
    border-radius: 15%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: inline;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 500;
    box-shadow: rgba(151, 65, 252, 0.2) 0 8px 16px -3px;
    transition: all 0.3s ease;
    order: 3;
}

.chat-input button:hover {
    transform: scale(1.05);
    box-shadow: rgba(151, 65, 252, 0.3) 0 12px 24px -3px;
}

.chat-input #chatAttach {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-input #chatAttach:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-input button:hover {
    background: rgba(0, 212, 255, 1);
}

.chat-add-button {
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin: 0 0.5rem;
    transform: translateY(10px);
}

#chatLoading {
    display: none;
}

#chatBotImage {
    width: 200px;
    height: 200px;
    margin-top: 10px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    display: none;
}

#chatInput {
    display: none;
}

/* Question Limit Badge */
#questionLimitBadge {
    display: none;
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 180, 220, 0.25) 100%);
    border: 1px solid rgba(0, 212, 255, 0.6);
    border-radius: 20px;
    padding: 6px 16px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #00d4ff;
    white-space: nowrap;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

#questionLimitBadge.visible {
    display: block;
    animation: badgeSlideIn 0.4s ease-out;
}

#questionLimitBadge.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.25) 100%);
    border-color: rgba(255, 193, 7, 0.6);
    color: #ffc107;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

#questionLimitBadge.limit-reached {
    background: linear-gradient(135deg, rgba(255, 82, 82, 0.15) 0%, rgba(220, 20, 60, 0.25) 100%);
    border-color: rgba(255, 82, 82, 0.6);
    color: #ff5252;
    box-shadow: 0 4px 15px rgba(255, 82, 82, 0.2);
}

#questionLimitBadge .badge-count {
    font-weight: bold;
    margin-left: 4px;
}

#questionLimitBadge .badge-label {
    opacity: 0.85;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

#customBudget {
    display: none;
}

#chatBack {
    display: none;
}

#scheduleModal .modal-content {
    height: 500px;
    max-width: 650px;
}

#scheduleFrame {
    transform: scale(0.78);
    transform-origin: top center;
    margin: 0 auto;
    display: block;
}

/* File Input Styling */
#fileInput {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #e0e7ff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    cursor: pointer;
}

#fileInput:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
}

#fileInput:focus {
    outline: none;
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

/* Hide system cursor on all clickable elements except slide buttons when custom cursor is enabled */
body.custom-cursor-enabled a, body.custom-cursor-enabled button, body.custom-cursor-enabled [role="button"], body.custom-cursor-enabled input[type="submit"], body.custom-cursor-enabled input[type="button"],
body.custom-cursor-enabled [onclick], body.custom-cursor-enabled .clickable-card, body.custom-cursor-enabled .tab-btn, body.custom-cursor-enabled .btn,
body.custom-cursor-enabled .accordion-header, body.custom-cursor-enabled .dot, body.custom-cursor-enabled .payment-card-option, body.custom-cursor-enabled .position-option,
body.custom-cursor-enabled .custom-select, body.custom-cursor-enabled .select-selected, body.custom-cursor-enabled .option {
    cursor: none !important;
}

/* Allow system cursor for slide buttons */
.slide-btn {
    cursor: grab !important;
}

.slide-btn:active,
.slide-btn.slid {
    cursor: default !important;
}

/* Error Logger Styles */
.error-logger-feedback {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10000;
    animation: slideInRight 0.3s ease;
    font-family: Lato, 'Lato Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.error-logger-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
}

.error-logger-icon {
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-logger-message {
    flex: 1;
    color: #e0e7ff;
    line-height: 1.4;
    font-size: 0.9rem;
}

.error-logger-details-btn {
    background: none;
    border: none;
    color: #00d4ff;
    text-decoration: underline;
    cursor: none;
    font-size: 0.8rem;
    padding: 0;
    margin-top: 5px;
    display: block;
}

.error-logger-details {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    line-height: 1.4;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.error-logger-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #e0e7ff;
    font-size: 1.2rem;
    cursor: none;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.error-logger-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Error Logger Types */
.error-logger-success .error-logger-icon {
    color: #10b981;
}

.error-logger-info .error-logger-icon {
    color: #00d4ff;
}

.error-logger-warning .error-logger-icon {
    color: #f59e0b;
}

.error-logger-error .error-logger-icon {
    color: #ef4444;
}

/* Multiple notifications stack */
.error-logger-feedback:nth-child(2) {
    top: 140px;
}

.error-logger-feedback:nth-child(3) {
    top: 260px;
}

.error-logger-feedback:nth-child(4) {
    top: 380px;
}

.error-logger-feedback:nth-child(5) {
    top: 500px;
}

/* Service Worker Update Notification */
.sw-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 320px;
    max-width: 400px;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 10001;
    animation: slideInRight 0.3s ease;
    font-family: Lato, 'Lato Fallback', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sw-update-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.sw-update-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.sw-update-message {
    flex: 1;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.sw-update-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: none;
    transition: all 0.2s ease;
}

.sw-update-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.sw-update-dismiss {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.8rem;
    cursor: none;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sw-update-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #475569;
}

/* UnoCSS Class Definitions */
.h-full { height: 100% !important; }
.w-full { width: 100% !important; }
.relative { position: relative !important; }
.flex { display: flex !important; }
.justify-end { justify-content: flex-end !important; }
.border-rounded-full, .rounded-full { border-radius: 9999px !important; }
.group:hover .group-hover\:scale-115 { transform: scale(1.15) !important; }
.flex-center { display: flex !important; align-items: center !important; justify-content: center !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.pl-4 { padding-left: 1rem !important; }
.pr-1 { padding-right: 0.25rem !important; }
.p-1 { padding: 0.25rem !important; }
.w-12 { width: 3rem !important; }
.h-12 { height: 3rem !important; }
.bg-white { background-color: #ffffff !important; }
.bg-opacity-10 { --un-bg-opacity: 0.1 !important; background-color: rgba(255, 255, 255, var(--un-bg-opacity)) !important; }
.transform { transform: translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z)) !important; }
.transition-transform { transition-property: transform !important; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; transition-duration: 0.15s !important; }
.duration-300 { transition-duration: 0.3s !important; }
.cursor-pointer { cursor: pointer !important; }
.overflow-hidden { overflow: hidden !important; }
.content-focus:focus-visible { outline-width: 2px !important; outline-color: var(--color-primary-focus) !important; outline-offset: -5px !important; outline-style: solid !important; }
.content-focus-secondary:focus-visible { outline-width: 2px !important; outline-color: var(--color-secondary-focus) !important; outline-offset: -5px !important; outline-style: solid !important; }

/* Primary color variables */
:root {
  --color-primary: #CBA135;
  --color-primary-content: #ffffff;
  --color-primary-gradient-from: #cb6f35;
  --color-primary-gradient-to: #CBA135;
  --color-primary-gradient-button-from: #cb6f35;
  --color-primary-gradient-button-to: #CBA135;
  --color-primary-gradient-hover-from: #b7642f;
  --color-primary-gradient-hover-to: #b7912f;
  --color-primary-button: #CBA135;
  --color-primary-button-hover: #a3812a;
  --color-primary-button-content: #ffffff;
  --opacity-primary-content: 0.2;
  --color-primary-focus: #b7642f;
  --color-secondary-focus: #524115;
}

/* Background gradients */
.bg-primary-gradient { background: linear-gradient(80deg, var(--color-primary-gradient-from), var(--color-primary-gradient-to) 130%) !important; }
.bg-primary-gradient-hover:hover { background: linear-gradient(80deg, var(--color-primary-gradient-hover-from), var(--color-primary-gradient-hover-to) 130%) !important; }

/* Text colors */
.text-primary-content { color: var(--color-primary-content) !important; }

.faq-accordion .accordion-content {
    overflow-y: auto;
}

.faq-accordion .accordion-content::-webkit-scrollbar {
    width: 6px;
}

.faq-accordion .accordion-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

.faq-accordion .accordion-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    border-radius: 5px;
}

.faq-accordion .accordion-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00ff88, #8000ff);
}

.chat-subtitle {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-accordion .accordion-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.faq-accordion .accordion-content ul {
    padding-left: 1rem;
    margin: 0.5rem 0;
    list-style-type: disc;
}

.faq-accordion .accordion-content li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
    font-size: 0.8rem;
}

.faq-accordion p{
    font-size: 0.8rem;
}

.faq-accordion .accordion-content a {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.8rem;
}

.faq-accordion .accordion-content a:hover {
    text-decoration: underline;
}

.faq-accordion .accordion-content .pill a {
    color: #10b981;
}

.faq-accordion .accordion-item {
    margin-bottom: 0.5rem;
}

.faq-accordion .accordion-header {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e0e7ff;
    text-align: left;
}

.faq-accordion .accordion-header:hover {
    background: rgba(255, 255, 255, 0.2);
}

.faq-accordion .accordion-content {
    display: none;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    color: #cbd5e1;
}

.faq-accordion .accordion-content.active {
    display: block;
    max-height: 20rem;
}

/* Chat Suggestions */
.chat-suggestions {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    margin-bottom: 5px;
    backdrop-filter: blur(10px);
}

.chat-suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    color: #e0e7ff;
    font-size: 14px;
    transition: all 0.2s ease;
}

.chat-suggestion-item:hover,
.chat-suggestion-item.selected {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

.chat-suggestion-item:last-child {
    border-bottom: none;
}

/* Signal QR Code Styles */
.signal-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    text-align: center;
    color: #e0e7ff;
}

.signal-qr-header h3 {
    margin: 0 0 0.5rem 0;
    color: #00d4ff;
    font-size: 1.2rem;
    font-weight: 600;
}

.signal-qr-header p {
    margin: 0 0 1rem 0;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.signal-qr-code {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
    backdrop-filter: blur(10px);
}

.signal-qr-code canvas {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.signal-qr-footer {
    margin-top: 1rem;
}

.signal-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signal-link:hover {
    color: #00ff88;
    text-decoration: underline;
}

.signal-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    font-style: italic;
}

/* Responsive adjustments for chat selection menu */
@media (min-width: 1024px) {
    .chat-selection {
        margin-top: 10rem;
        gap: 0.1rem;
    }
    .chat-option {
        padding: 0.1rem 0.5rem;
        min-width: 80px;
        height: 2rem;
    }
}

@media (max-width: 320px) {
    .chat-selection-visible {
        display: grid;
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 0.5rem;
        margin-top: 6rem;
    }

    .chat-window.open {
        height: 25rem;
    }

    .chat-window.expanded {
        max-width: 80vw;
    }

    .signal-qr-container {
        transform: scale(0.8);
        transform-origin: center;
    }

    .signal-qr-header h3 {
        font-size: 1rem;
    }

    .signal-qr-header p {
        font-size: 0.8rem;
    }

    .signal-qr-footer p {
        font-size: 0.8rem;
    }

    .signal-note {
        font-size: 0.7rem;
    }

    /* Chat input responsive scaling */
    .chat-input {
        padding: 0.5rem;
        height: 3rem;
        align-items: center;
    }

    #chatInputField {
        width: calc(100% - 40px);
        padding: 0.4rem 0.5rem 0.4rem 1.8rem; /* left padding for add button */
        font-size: 0.9rem;
        position: relative;
        order: 1;
        height: 2rem;
    }

    .chat-add-button {
        width: 20px;
        height: 20px;
        position: absolute;
        left: 0.6rem;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 1;
        order: 2;
    }

    #chatSend {
        width: 35px;
        height: 2rem;
        font-size: 0;
        position: relative;
        order: 3;
        flex-shrink: 0;
        transform: translateY(-4px);
        border-radius: 50%;
    }

    #chatSend::before {
        content: '⏎';
        font-size: 14px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    /* Chat add menu responsive horizontal layout */
    .chat-add-menu {
        flex-direction: row;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) translateY(-100%) scale(0.8);
        transform-origin: center bottom;
        width: 100%;
        justify-content: center;
        gap: 0.3rem;
        padding: 0.3rem;
        margin-bottom: 0.5rem;
    }

    .chat-menu-option {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .chat-menu-option img {
        width: 20px;
        height: 20px;
    }

    /* Modal centering and sizing */
    .modal .modal-content {
        width: 90vw;
        height: 90vh;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-52%, -50%);
        max-width: none;
        max-height: none;
    }

    /* Video modal specific adjustments - use centered transform and appropriate height for better video fit */
    #explainer-videoModal .modal-content,
    #quantum-demoModal .modal-content {
        transform: translate(-50%, -50%);
        min-height: 200px;
        max-height: 50vh;
    }
    #quantum-demoModal .modal-content {
        transform: translate(-52%, -50%);
        min-height: 200px;
        max-height: 50vh;
    }


    /* Emoji modal specific adjustments */
    #emojiModal .modal-content {
        transform: translate(-50%, -50%);
        transform-origin: center;
    }

    .emoji-categories {
        width: 90px;
    }

    .emoji-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        overflow-x: hidden;
    }

    .emoji-item {
        width: 32px;
        height: 32px;
        padding: 4px;
        font-size: 16px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
    }

    .emoji-category {
        width: 60px;
        height: 35px;
        font-size: 14px;
        padding: 2px;
    }
}
