/* ==========================================================================
   BizSolveTech - Enterprise IT Services & Business Solutions Design System
   Modern High-Tech / Cyber-Dark Aesthetic
   ========================================================================== */

:root {
    --accent: #00d2ff;
    --accent-light: #80e5ff;
    --accent-glow: rgba(0, 210, 255, 0.25);
    --accent-rgb: 0, 210, 255;

    /* Backward compatibility aliases */
    --gold: var(--accent);
    --gold-light: var(--accent-light);
    --cream: #e2e8f0;

    --bg-dark: #080d1a;
    --bg-dark-2: #0e1628;
    --bg-dark-3: #152238;
    --bg-card: rgba(14, 22, 40, 0.78);
    --bg-card-hover: rgba(21, 34, 56, 0.9);

    --dark: var(--bg-dark);
    --dark-2: var(--bg-dark-2);
    --dark-3: var(--bg-dark-3);

    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(var(--accent-rgb), 0.35);

    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;
    --muted: var(--text-muted);

    --nav-bg: rgba(8, 13, 26, 0.88);
    --footer-bg: #050811;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== BASE RESET & TYPOGRAPHY ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--cream);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

/* Subtle tech grid background effect */
.tech-grid-bg {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ===== UTILITIES & ACCENTS ===== */
.text-gold, .text-accent {
    color: var(--accent) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-dark-2 {
    background: var(--bg-dark-2) !important;
}

.bg-dark-3 {
    background: var(--bg-dark-3) !important;
}

.border-secondary {
    border-color: var(--border) !important;
}

/* High-tech badges and chips */
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.tech-badge i {
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* Section Common */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 680px;
}

/* ===== BUTTONS ===== */
.btn-gold, .btn-tech-primary {
    background: var(--accent);
    color: #080d1a !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: var(--transition);
}

.btn-gold:hover, .btn-tech-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #080d1a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(var(--accent-rgb), 0.45);
}

.btn-outline-gold, .btn-tech-outline {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid rgba(var(--accent-rgb), 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-outline-gold:hover, .btn-tech-outline:hover {
    background: rgba(var(--accent-rgb), 0.12);
    border-color: var(--accent);
    color: var(--accent-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px var(--accent-glow);
}

/* ===== NAVBAR ===== */
.main-nav {
    background: transparent;
    padding: 22px 0;
    transition: var(--transition);
    z-index: 1040;
}

.main-nav.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.main-nav .brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--white);
}

.main-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    position: relative;
    transition: var(--transition);
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.08);
}

/* ===== HERO SECTION & SLIDER ===== */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 85vh;
}

.hero-slider .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.9s;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-slider .hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.03);
    transition: transform 6s ease;
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-slide .hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(90deg, rgba(8, 13, 26, 0.95) 0%, rgba(8, 13, 26, 0.82) 55%, rgba(8, 13, 26, 0.65) 100%),
        radial-gradient(circle at 80% 20%, var(--accent-glow) 0%, transparent 60%);
}

.hero-slide .hero-content {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 120px 0 80px;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
}

.hero-slider-dots {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-slider-dots .dot {
    width: 28px;
    height: 4px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot.active {
    width: 45px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* ===== TECH PILLS & TABS ===== */
.tech-nav-tabs {
    border: 1px solid var(--border);
    background: rgba(14, 22, 40, 0.65);
    padding: 6px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    display: inline-flex;
    gap: 6px;
}

.tech-nav-tabs .nav-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.tech-nav-tabs .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
}

.tech-nav-tabs .nav-link.active {
    color: #080d1a !important;
    background: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
    font-weight: 700;
}

/* ===== TECH CARDS (Services, Architecture, Solutions) ===== */
.tech-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

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

.tech-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px var(--accent-glow);
}

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

.tech-card .service-icon-box {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}

.tech-card:hover .service-icon-box {
    background: var(--accent);
    color: #080d1a;
    box-shadow: 0 0 18px var(--accent-glow);
}

/* ===== CAREER & HIRING CARDS ===== */
.career-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
}

.career-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.career-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.career-badge.badge-accent {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.25);
}

/* ===== CLIENTS & PARTNERS LOGO STRIP ===== */
.client-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    transition: var(--transition);
}

.client-logo-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
}

.client-logo-card img {
    max-height: 48px;
    max-width: 140px;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.7;
    transition: var(--transition);
}

.client-logo-card:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* ===== LEADERSHIP & TEAM CARDS ===== */
.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.team-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.team-card .team-photo-wrap {
    height: 320px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark-3);
}

.team-card .team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-photo-wrap img {
    transform: scale(1.05);
}

/* ===== BLOGS & INSIGHTS CARDS ===== */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.blog-card .blog-thumb-wrap {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark-3);
}

.blog-card .blog-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb-wrap img {
    transform: scale(1.06);
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.testimonial-rating {
    color: var(--accent);
    font-size: 0.9rem;
}

/* ===== ENTERPRISE CONTACT FORM ===== */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 42px;
    backdrop-filter: blur(14px);
}

.form-control-tech, .form-control-2 {
    background: rgba(8, 13, 26, 0.75);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-tech:focus, .form-control-2:focus {
    background: rgba(8, 13, 26, 0.95);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 16px var(--accent-glow);
    outline: none;
}

.form-control-tech::placeholder, .form-control-2::placeholder {
    color: var(--text-muted);
}

.form-label-tech, .form-label-2 {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== MODAL & FORM CONTROLS ===== */
.modal-content {
    background: var(--bg-dark-2) !important;
    border: 1px solid var(--border-accent) !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.modal-content .form-control, .modal-content .form-select {
    background: rgba(8, 13, 26, 0.85);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.modal-content .form-control:focus, .modal-content .form-select:focus {
    background: rgba(8, 13, 26, 0.95);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 0 14px var(--accent-glow);
}

.modal-content .form-control::placeholder {
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding-top: 80px;
    position: relative;
}

.site-footer .footer-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.site-footer .footer-heading {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 22px;
}

.site-footer .footer-links li {
    margin-bottom: 12px;
}

.site-footer .footer-links a {
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: var(--transition);
}

.site-footer .footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-links a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: #080d1a;
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent-glow);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent);
    color: #080d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1030;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse {
        background: var(--bg-dark-2);
        padding: 20px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border);
        margin-top: 14px;
    }
    .main-nav .nav-link {
        margin: 6px 0;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767.98px) {
    .section-padding {
        padding: 70px 0;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .tech-nav-tabs {
        flex-wrap: wrap;
        width: 100%;
    }
    .tech-nav-tabs .nav-link {
        flex: 1 1 auto;
        text-align: center;
    }
    .contact-form-wrap {
        padding: 24px;
    }
}

/* ==========================================================================
   SMART IT ASSISTANT CHATBOT WIDGET
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1060;
}

/* Floating Trigger Button */
.chatbot-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #080d1a;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    position: relative;
    box-shadow: 0 6px 25px var(--accent-glow);
    transition: var(--transition);
}

.chatbot-trigger-btn:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.5);
}

.chatbot-trigger-btn .pulse-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: pulseRing 2.4s infinite cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chatbot-prompt-badge {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark-2);
    color: var(--white);
    border: 1px solid var(--border-accent);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.chatbot-prompt-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    box-shadow: 0 0 6px #10b981;
}

/* Chatbot Window */
.chatbot-window {
    position: fixed;
    bottom: 95px;
    right: 24px;
    width: 390px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 120px);
    background: rgba(14, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px var(--accent-glow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1060;
    animation: chatSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Chatbot Header */
.chatbot-header {
    padding: 16px 18px;
    background: rgba(8, 13, 26, 0.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.bot-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid var(--bg-dark);
    box-shadow: 0 0 6px #10b981;
}

.bot-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--white);
}

.bot-subtitle {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
}

.btn-chat-tool {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-chat-tool:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

/* Chatbot Body & Messages */
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.chatbot-body::-webkit-scrollbar {
    width: 5px;
}

.chatbot-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.chat-message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    animation: fadeInMsg 0.25s ease;
}

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

.chat-message.bot-message {
    justify-content: flex-start;
}

.chat-message.user-message {
    flex-direction: row-reverse;
}

.chat-message .msg-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.chat-message.user-message .msg-avatar {
    background: var(--bg-dark-3);
    color: var(--text-secondary);
}

.chat-message .msg-bubble {
    max-width: 82%;
    padding: 11px 15px;
    border-radius: var(--radius-md);
    position: relative;
}

.bot-message .msg-bubble {
    background: rgba(21, 34, 56, 0.9);
    border: 1px solid var(--border);
    border-top-left-radius: 2px;
    color: #e2e8f0;
    font-size: 0.88rem;
    line-height: 1.55;
}

.user-message .msg-bubble {
    background: var(--accent);
    color: #080d1a;
    font-weight: 600;
    border-top-right-radius: 2px;
    font-size: 0.88rem;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.msg-time {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.user-message .msg-time {
    color: rgba(8, 13, 26, 0.65);
}

/* Quick Action Pills */
.quick-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: 40px;
    margin-top: 4px;
}

.quick-pill {
    background: rgba(var(--accent-rgb), 0.08);
    color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb), 0.25);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.quick-pill:hover {
    background: var(--accent);
    color: #080d1a !important;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Typing Indicator */
.chatbot-typing {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 0 16px 10px;
}

.chatbot-typing .typing-bubble {
    background: rgba(21, 34, 56, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chatbot-typing .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input Footer */
.chatbot-footer {
    padding: 10px 14px;
    background: rgba(8, 13, 26, 0.96);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    background: rgba(21, 34, 56, 0.85);
    border: 1px solid var(--border);
    color: var(--white);
    border-radius: var(--radius-full);
    padding: 10px 18px;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.chatbot-input:focus {
    border-color: var(--accent);
    background: rgba(21, 34, 56, 1);
    box-shadow: 0 0 12px var(--accent-glow);
}

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

.chatbot-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #080d1a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

@media (max-width: 575.98px) {
    .chatbot-wrapper {
        bottom: 18px;
        right: 18px;
    }
    .chatbot-window {
        bottom: 84px;
        right: 12px;
        width: calc(100vw - 24px);
        height: 480px;
    }
}