/* ============================================
   BUSINESS FINDER — PREMIUM WOW DESIGN v3
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.35);
    --accent: #06b6d4;
    --accent-glow: rgba(6, 182, 212, 0.25);
    --bg: #08080f;
    --bg-secondary: #0e0e1a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.07);
    --card-hover-border: rgba(99, 102, 241, 0.25);
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --bot-bg: rgba(99, 102, 241, 0.06);
    --bot-border: rgba(99, 102, 241, 0.12);
    --user-bg: linear-gradient(135deg, #6366f1, #4f46e5);
    --user-text: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.5);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== BACKGROUND EFFECTS ===== */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -150px;
    opacity: 0.25;
    animation: orbFloat1 22s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    bottom: -150px;
    left: -150px;
    opacity: 0.18;
    animation: orbFloat2 28s ease-in-out infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #ec4899;
    top: 40%;
    left: 55%;
    opacity: 0.08;
    animation: orbFloat3 35s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(25px, -20px) scale(0.94); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(35px, -25px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(0.96); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
}

/* ===== APP CONTAINER ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 940px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-left: 1px solid var(--card-border);
    border-right: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

/* ===== HEADER ===== */
.chat-header {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, transparent 100%);
    border-bottom: 1px solid var(--card-border);
    padding: 14px 22px;
    flex-shrink: 0;
    position: relative;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.header-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
    opacity: 0.6;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* .logo-icon-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
} */

.logo-icon img {
    /* font-size: 36px; */
    width: 46px !important;
    position: relative;
    z-index: 2;
}



.logo-text h1 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.subtitle {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-top: 1px;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-location,
.btn-clear {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-light);
    background: var(--card-bg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-location::before,
.btn-clear::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-location:hover,
.btn-clear:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.btn-location:hover::before,
.btn-clear:hover::before {
    opacity: 1;
}

.btn-location.active {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-location.active::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    opacity: 1;
}

/* ===== LOCATION BAR ===== */
.location-bar {
    display: none;
    margin-top: 12px;
    padding: 10px 16px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: var(--radius-sm);
    font-size: 13px;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.location-bar.visible {
    display: flex;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--success);
}

.location-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.btn-mock {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-xs);
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-mock:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

/* ===== CHAT MESSAGES ===== */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    scroll-behavior: smooth;
}

/* ===== WELCOME SCREEN ===== */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 48px 20px;
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.welcome-avatar {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.welcome-avatar img{
    width: 70px !important;
    height: 50px;
    border-radius: 50%;
}

.welcome-avatar > span {
    font-size: 44px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

.welcome-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.12;
    animation: welcomePulse 2.5s ease-in-out infinite;
}

.welcome-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    background: conic-gradient(from 0deg, var(--primary), var(--accent), var(--primary)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.35;
    animation: ringRotate 6s linear infinite;
}

@keyframes welcomePulse {
    0%, 100% { transform: scale(1); opacity: 0.12; }
    50% { transform: scale(1.35); opacity: 0.04; }
}

.welcome-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.welcome-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 420px;
    line-height: 1.7;
}

/* ===== CATEGORY CHIPS ===== */
.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
    max-width: 520px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 500;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-light);
    transition: all var(--transition);
    cursor: default;
}

.chip:hover {
    border-color: var(--primary);
    color: var(--text);
    background: rgba(99, 102, 241, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.chip-icon {
    font-size: 15px;
}

/* ===== WELCOME EXAMPLES ===== */
.welcome-examples {
    width: 100%;
    max-width: 500px;
}

.examples-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    font-weight: 600;
}

.example-queries {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-query {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-light);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    text-align: left;
    transition: all var(--transition);
}

.example-query:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.06);
    color: var(--text);
    transform: translateX(6px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.eq-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.eq-arrow {
    margin-left: auto;
    color: var(--primary-light);
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition);
    font-weight: 600;
}

.example-query:hover .eq-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ===== MESSAGES ===== */
.message {
    display: flex;
    gap: 12px;
    max-width: 85%;
    animation: messageIn 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.message-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.bot-message {
    align-self: flex-start;
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 16px var(--primary-glow);
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #475569, #334155);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.message-content {
    background: var(--bot-bg);
    border: 1px solid var(--bot-border);
    padding: 14px 18px;
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    font-size: 14px;
    line-height: 1.65;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-message .message-content {
    background: var(--user-bg);
    border: none;
    color: var(--user-text);
    border-radius: var(--radius);
    border-top-right-radius: 4px;
    box-shadow: 0 6px 24px var(--primary-glow);
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 0 22px 14px;
    max-width: 85%;
    align-self: flex-start;
}

.typing-indicator.visible {
    display: flex;
    animation: messageIn 0.3s ease;
}

.typing-avatar {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.typing-bubble {
    background: var(--bot-bg);
    border: 1px solid var(--bot-border);
    padding: 16px 20px;
    border-radius: var(--radius);
    border-top-left-radius: 4px;
    backdrop-filter: blur(12px);
}

.typing-dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
    animation: typingBounce 1.4s ease-in-out infinite;
}

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

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-8px); opacity: 1; }
}

/* ===== BUSINESS CARDS ===== */
.business-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 14px;
}

.business-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 18px;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}

.business-card:nth-child(1) { animation-delay: 0.05s; }
.business-card:nth-child(2) { animation-delay: 0.12s; }
.business-card:nth-child(3) { animation-delay: 0.19s; }
.business-card:nth-child(4) { animation-delay: 0.26s; }
.business-card:nth-child(5) { animation-delay: 0.33s; }
.business-card:nth-child(6) { animation-delay: 0.40s; }
.business-card:nth-child(7) { animation-delay: 0.47s; }
.business-card:nth-child(8) { animation-delay: 0.54s; }
.business-card:nth-child(9) { animation-delay: 0.61s; }
.business-card:nth-child(10) { animation-delay: 0.68s; }

@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    opacity: 0;
    transition: opacity var(--transition);
}

.business-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.06), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

.business-card:hover {
    border-color: var(--card-hover-border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1);
}

.business-card:hover::before {
    opacity: 1;
}

.business-card:hover::after {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 14px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    font-family: var(--font-display);
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 700;
    color: var(--warning);
    flex-shrink: 0;
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.2px;
}

.card-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.card-info svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
}

.card-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.card-distance {
    font-size: 12px;
    color: var(--success);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.12);
}

.card-distance::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: dotPulse 2s ease-in-out infinite;
}

/* ===== INPUT AREA ===== */
.chat-input-area {
    border-top: 1px solid var(--card-border);
    padding: 16px 22px 18px;
    background: rgba(8, 8, 15, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-shrink: 0;
    position: relative;
}

.input-glow {
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

.input-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 15px 22px;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: all var(--transition);
    background: var(--card-bg);
    color: var(--text);
}

#messageInput::placeholder {
    color: var(--text-muted);
}

#messageInput:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 20px rgba(99, 102, 241, 0.05);
    background: rgba(99, 102, 241, 0.02);
}

.btn-voice,
.btn-send {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-voice {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-light);
}

.btn-voice:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-voice.recording {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
    animation: recordPulse 1.2s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Voice wave animation while recording */
.voice-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 20px;
}

.voice-wave span {
    display: block;
    width: 3px;
    height: 8px;
    border-radius: 2px;
    background: white;
    animation: voiceWave 0.8s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { animation-delay: 0s; }
.voice-wave span:nth-child(2) { animation-delay: 0.15s; }
.voice-wave span:nth-child(3) { animation-delay: 0.3s; }
.voice-wave span:nth-child(4) { animation-delay: 0.45s; }

@keyframes voiceWave {
    0%, 100% { height: 6px; opacity: 0.5; }
    50% { height: 18px; opacity: 1; }
}

.btn-send {
    background: var(--user-bg);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-send:active {
    transform: translateY(0) scale(0.96);
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card-bg);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-light);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    flex-shrink: 0;
}

.quick-action:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.qa-icon {
    font-size: 15px;
}

/* ===== SCROLLBAR ===== */
.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

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

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== AUTH BUTTON ===== */
.btn-auth {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font);
    color: var(--text-light);
    background: var(--card-bg);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-auth:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.btn-auth:hover::before {
    opacity: 1;
}

.btn-auth.logged-in {
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.btn-auth.logged-in::before {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), transparent);
    opacity: 1;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.auth-overlay.visible {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 36px 32px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.auth-close:hover {
    color: var(--text);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-field input {
    padding: 13px 16px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: var(--font);
    outline: none;
    transition: all var(--transition);
    background: var(--card-bg);
    color: var(--text);
}

.auth-field input::placeholder {
    color: var(--text-muted);
}

.auth-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.auth-error {
    font-size: 12px;
    color: #ef4444;
    min-height: 16px;
    text-align: center;
}

.auth-submit {
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--user-bg);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
    margin-top: 4px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.auth-submit:active {
    transform: translateY(0) scale(0.98);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.auth-switch a:hover {
    color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .header-actions span {
        display: none;
    }

    .quick-actions {
        display: none;
    }

    .message {
        max-width: 95%;
    }

    .welcome-screen {
        padding: 24px 10px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .welcome-desc {
        font-size: 13px;
    }

    .category-chips {
        gap: 6px;
    }

    .chip {
        padding: 5px 12px;
        font-size: 11px;
    }

    .example-queries {
        gap: 8px;
    }

    .example-query {
        padding: 12px 14px;
        font-size: 12px;
    }

    .chat-messages {
        padding: 16px 14px;
    }

    .chat-input-area {
        padding: 12px 14px 14px;
    }

    .business-card {
        padding: 14px;
    }

    .auth-modal {
        padding: 28px 22px;
    }
}
