/* CSS Reset and Font Config */
:root {
    --bg-dark: #090e1a;
    --bg-darker: #050810;
    --card-bg: rgba(17, 25, 46, 0.6);
    --card-bg-solid: #11192e;
    --card-border: rgba(139, 92, 246, 0.18);
    --border-glow: 0 0 15px rgba(139, 92, 246, 0.15);
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    
    --primary-purple: #8b5cf6;
    --primary-purple-hover: #7c3aed;
    --primary-purple-glow: rgba(139, 92, 246, 0.4);
    
    --accent-orange: #f97316;
    --accent-orange-hover: #ea580c;
    --accent-orange-glow: rgba(249, 115, 22, 0.4);
    
    --success-green: #10b981;
    --error-red: #ef4444;
    
    --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #f97316 100%);
    --gradient-dark: linear-gradient(180deg, #090e1a 0%, #050810 100%);
    
    --font-main: 'Outfit', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Gradients (Aesthetic mesh) */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}
body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.06) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-purple);
}

/* Typography & General Classes */
a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.text-orange {
    color: var(--accent-orange);
}

.hidden {
    display: none !important;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    box-shadow: var(--border-glow);
    border-radius: var(--radius-md);
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 8, 16, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    transition: var(--transition-normal);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area */
.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.header-mascot-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px var(--primary-purple));
    animation: mascotGlow 3s infinite alternate;
}

.logo-text {
    background: linear-gradient(to right, #ffffff, #f3f4f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Desktop Navigation Links */
.desktop-nav > ul {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.1);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary-purple);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* Dropdown Menu styling */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
}

.caret-icon {
    font-size: 11px;
    transition: transform var(--transition-fast);
}

.dropdown:hover .caret-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 220px;
    background: var(--card-bg-solid);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.dropdown-link:hover {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.dropdown-link i {
    width: 18px;
    color: var(--primary-purple);
}

/* Header Action buttons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-fast-quote {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    background: var(--gradient-brand);
    color: var(--text-light);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    transition: var(--transition-fast);
}

.btn-fast-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 22px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(16px);
    z-index: 999;
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-content {
    width: 80%;
    max-width: 350px;
    height: 100%;
    background: var(--bg-darker);
    border-right: 1px solid rgba(139, 92, 246, 0.15);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mobile-link:hover, .mobile-link.active {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.1);
}

.mobile-dropdown-parent {
    display: flex;
    flex-direction: column;
}

.mobile-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-dropdown-header:hover {
    color: var(--text-light);
    background: rgba(139, 92, 246, 0.1);
}

.mobile-submenu {
    display: none;
    padding-left: 24px;
    margin-top: 5px;
    flex-direction: column;
    gap: 8px;
}

.mobile-submenu.active {
    display: flex;
}

.mobile-sublink {
    display: block;
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.mobile-sublink:hover {
    color: var(--text-light);
    background: rgba(249, 115, 22, 0.1);
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-top: 75px; /* Offset for sticky header */
}

.app-section {
    display: none;
    opacity: 0;
    padding: 40px 24px;
    min-height: calc(100vh - 75px - 150px); /* Fill space between header and footer */
}

.app-section.active {
    display: block;
    opacity: 1;
    animation: pageFadeIn 0.5s ease-in-out forwards;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-block {
    text-align: center;
    margin-bottom: 40px;
}

.sub-heading {
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-orange);
}

.main-heading {
    font-size: 36px;
    font-weight: 800;
    margin-top: 5px;
    background: linear-gradient(to right, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-underline {
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    margin: 15px auto 0;
    border-radius: var(--radius-full);
}

/* CHAT SECTION STYLING (Home) */
.chat-section-container {
    max-width: 1250px;
    margin: 0 auto;
    height: calc(100vh - 75px - 80px); /* 80% screen layout roughly */
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.chat-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    width: 100%;
    height: calc(100% - 40px);
}

.chat-slogan {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    letter-spacing: 0.8px;
    animation: textReflect 3s infinite alternate;
}

.slogan-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

@keyframes textReflect {
    0% {
        opacity: 0.85;
        text-shadow: 0 0 6px rgba(139, 92, 246, 0.4), 0 0 15px rgba(139, 92, 246, 0.2);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 18px rgba(249, 115, 22, 0.65), 0 0 35px rgba(249, 115, 22, 0.35);
    }
}

/* Left Sidebar Card */
.chat-sidebar-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--border-glow);
    overflow-y: auto;
}

.mascot-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 10px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-glow-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-purple-glow);
    filter: blur(15px);
    animation: circlePulse 3s infinite alternate;
}

.mascot-chat-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mascot-chat-img:hover {
    transform: scale(1.08) rotate(3deg);
}

.mascot-info {
    text-align: center;
    margin-bottom: 24px;
}

.mascot-title {
    font-size: 22px;
    font-weight: 800;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-green);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin: 8px 0 15px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--success-green);
    animation: statusPulse 1.8s infinite;
}

.mascot-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.quick-products-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.selector-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.selector-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.quick-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.quick-btn i {
    font-size: 14px;
}

/* Right Chat Window Card (80% viewport height card) */
.chat-window-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--border-glow);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chat-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(5, 8, 16, 0.4);
}

.chat-partner-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.partner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.partner-name {
    font-size: 16px;
    font-weight: 700;
}

.partner-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.chat-header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-header-btn:hover {
    color: var(--text-light);
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

/* Messages area */
.chat-messages-container {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.15);
}

/* Message Bubbles */
.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: bubbleSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.message.bot {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.message.bot .msg-avatar {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
}

.message.user .msg-avatar {
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.msg-bubble {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.message.bot .msg-bubble {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-top-left-radius: 0;
}

.message.user .msg-bubble {
    background: var(--gradient-brand);
    color: var(--text-light);
    border-top-right-radius: 0;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
}

/* Chat suggestions / flow interactive elements */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.chat-suggest-btn {
    padding: 8px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--primary-purple);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.chat-suggest-btn:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-1px);
}

/* Thinking Indicator bubble */
.thinking-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 0;
}

.thinking-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
    display: inline-block;
    animation: thinkingBounce 1.4s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
.thinking-dots span:nth-child(2) { animation-delay: -0.16s; }

/* Quote Loading progress animation */
.quote-loading-card {
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 100%;
    min-width: 260px;
}

.quote-loading-text {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    animation: fillProgress 3s linear forwards;
}

.quote-loading-company {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* Quote Results presentation */
.quotes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
    min-width: 280px;
}

.quote-result-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}

.quote-result-card:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.05);
}

.quote-result-card.best-offer {
    border-color: rgba(249, 115, 22, 0.4);
    background: rgba(249, 115, 22, 0.04);
}

.quote-company-info {
    display: flex;
    flex-direction: column;
}

.quote-company-name {
    font-size: 15px;
    font-weight: 700;
}

.quote-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(249, 115, 22, 0.2);
    color: var(--accent-orange);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    width: fit-content;
    margin-top: 4px;
}

.quote-badge.purple-badge {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary-purple);
}

.quote-pricing {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.quote-price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.quote-period {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-buy-quote {
    margin-top: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    background: var(--gradient-brand);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-buy-quote:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.3);
}

/* Chat Input Bar */
.chat-input-area {
    padding: 18px 24px;
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    background: rgba(5, 8, 16, 0.4);
}

.chat-form {
    display: flex;
    gap: 12px;
}

#chatInput {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    padding: 14px 20px;
    color: var(--text-light);
    font-size: 15px;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

#chatInput:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

.chat-send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-brand);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

/* KURUMSAL PAGE STYLING */
.kurumsal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.kurumsal-text-card {
    padding: 30px;
}

.card-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kurumsal-text-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 16px;
}

/* 28 Companies Partners Section */
.partners-section {
    text-align: center;
    margin-top: 60px;
}

.partners-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.partners-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.partner-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 20px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    cursor: default;
}

.partner-card:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.25);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

/* PRODUCT DETAIL SUBPAGES STYLING */
.product-detail-card {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
}

.product-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 24px;
}

.product-icon-box {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.purple-gradient {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.orange-gradient {
    background: linear-gradient(135deg, #f97316 0%, #d97706 100%);
}

.product-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-orange);
    letter-spacing: 1px;
}

.product-name {
    font-size: 28px;
    font-weight: 800;
}

.product-detail-body p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.product-detail-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.product-detail-body ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.product-detail-body li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-muted);
}

.product-detail-body li i {
    margin-top: 4px;
}

.product-action-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.action-text h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.action-text p {
    font-size: 14px;
    margin-bottom: 0;
}

.btn-product-get-quote {
    padding: 14px 28px;
    background: var(--gradient-brand);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.25);
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-product-get-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

/* ILETISIM PAGE STYLING */
.iletisim-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 30px;
}

.contact-info-column, .contact-form-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card, .map-card, .contact-form-card, .branches-card {
    padding: 24px;
}

.contact-card h3, .map-card h3, .contact-form-card h3, .branches-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
}

.info-item i {
    font-size: 18px;
    color: var(--accent-orange);
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.contact-map {
    height: 250px;
    width: 100%;
    border-radius: var(--radius-sm);
    z-index: 5;
    background: #0f172a;
}

/* Dark mode overrides for Leaflet */
.leaflet-container {
    background-color: var(--bg-darker) !important;
}
.leaflet-tile {
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.contact-form-elements {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    background: rgba(255, 255, 255, 0.06);
}

.btn-send-message {
    padding: 14px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
    transition: var(--transition-fast);
    margin-top: 10px;
}

.btn-send-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.35);
}

.form-success-alert {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-green);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-top: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.branch-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
}

.branch-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.branch-item p {
    font-size: 12px;
    color: var(--text-muted);
}

/* FOOTER STYLING */
.main-footer {
    background: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 24px 20px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
    max-width: 320px;
}

.footer-links h4, .footer-products h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul, .products-links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.products-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-links a, .products-links-grid a {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-links a:hover, .products-links-grid a:hover {
    color: var(--accent-orange);
    padding-left: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ANIMATIONS */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bubbleSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes circlePulse {
    from {
        transform: scale(0.95);
        opacity: 0.4;
    }
    to {
        transform: scale(1.05);
        opacity: 0.65;
    }
}

@keyframes mascotGlow {
    from {
        filter: drop-shadow(0 0 4px var(--primary-purple));
    }
    to {
        filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
    }
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes thinkingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

@keyframes fillProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* RESPONSIVE DESIGN (MEDIA QUERIES) */
@media (max-width: 992px) {
    .chat-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        gap: 16px;
    }
    
    .chat-section-container {
        height: auto;
        min-height: unset;
        padding-top: 10px;
    }
    
    .chat-sidebar-card {
        padding: 16px;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .mascot-avatar-container {
        width: 80px;
        height: 80px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .mascot-chat-img {
        width: 70px;
        height: 70px;
    }
    
    .mascot-info {
        text-align: left;
        margin-bottom: 0;
        flex: 1;
    }
    
    .status-badge {
        margin: 4px 0;
    }
    
    .mascot-desc {
        display: none; /* Hide desc on tablet/mobile sidebar to save space */
    }
    
    .quick-products-selector {
        display: block;
        width: 100%;
        margin-top: 0;
    }
    .selector-title {
        display: none;
    }
    .selector-buttons {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .quick-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    .selector-buttons::-webkit-scrollbar {
        height: 4px;
    }
    .selector-buttons::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
    }
    
    .chat-window-card {
        height: 520px;
    }
    
    .kurumsal-grid, .iletisim-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 15px auto 0;
    }
    
    .products-links-grid {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav, .btn-fast-quote {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-heading {
        font-size: 28px;
    }
    
    .product-detail-card {
        padding: 24px;
    }
    
    .product-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .product-action-card {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-product-get-quote {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Modal & Quote List UI --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1050; display: none; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal-content { background: var(--bg-card); width: 90%; max-width: 500px; border-radius: 1rem; overflow: hidden; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.modal-header h4 { margin: 0; font-weight: 700; color: var(--text-primary); font-size: 1.25rem; }
.modal-close { background: transparent; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 1.5rem; color: var(--text-primary); }

/* Modern Quote List - SCALED DOWN 50% */
.quote-list-item { display: flex; align-items: center; padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; border-radius: 0.5rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); transition: transform 0.2s, background 0.2s; }
.quote-list-item:hover { transform: translateY(-2px); background: rgba(255,255,255,0.06); }
.quote-number { font-size: 1.1rem; font-weight: 800; color: rgba(255,255,255,0.2); width: 30px; text-align: center; font-style: italic; }
.quote-details { flex: 1; }
.quote-company { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.15rem; display: flex; align-items: center; gap: 0.4rem; }
.quote-price { font-weight: 800; font-size: 1rem; color: #2ecc71; }
.quote-actions { display: flex; flex-direction: column; gap: 0.3rem; }
.btn-quote-action { padding: 0.25rem 0.75rem; border-radius: 0.4rem; font-weight: 600; font-size: 0.75rem; transition: all 0.2s; border: none; cursor: pointer; text-align: center; }
.btn-detail { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-detail:hover { background: rgba(255,255,255,0.2); }
.btn-buy { background: linear-gradient(135deg, #4a25e1, #8f2cf7); color: white; }
.btn-buy:hover { box-shadow: 0 4px 15px rgba(143,44,247,0.4); }

.payment-card-preview { background: linear-gradient(135deg, #2b2b2b, #1a1a1a); padding: 1.5rem; border-radius: 1rem; color: #e0e0e0; position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); }
.card-chip { width: 40px; height: 30px; background: linear-gradient(135deg, #ffd700, #b8860b); border-radius: 5px; margin-bottom: 1rem; }
.card-number-preview { font-size: 1.4rem; letter-spacing: 2px; font-family: monospace; }
.glass-input { background: rgba(255,255,255,0.05) !important; border: 1px solid rgba(255,255,255,0.1) !important; color: white !important; }
.glass-input:focus { background: rgba(255,255,255,0.1) !important; border-color: #8f2cf7 !important; box-shadow: 0 0 0 0.25rem rgba(143,44,247,0.25) !important; }


/* EXTENDED RESPONSIVE FIXES FOR MOBILE AND TABLET */
* {
    max-width: 100%;
}

.chat-messages * {
    max-width: unset;
}
.chat-input-area * {
    max-width: unset;
}

@media (max-width: 1400px) {
    .container, .hero-container, .features-container, .chat-section-container, .kurumsal-container { 
        max-width: 100%; 
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 992px) {
    .app-container { flex-direction: column; }
    .chat-grid { display: flex !important; flex-direction: column !important; }
    .chat-sidebar-card { width: 100% !important; height: auto !important; }
    .chat-window-card { width: 100% !important; height: 60vh !important; min-height: 400px !important; }
    .form-row { display: flex; flex-direction: column; }
    .form-group { width: 100%; }
    .products-links-grid, .kurumsal-grid, .iletisim-grid, .branches-grid { grid-template-columns: 1fr !important; }
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .header-container { padding: 10px 15px; }
    .desktop-nav { display: none !important; }
    .mobile-menu-toggle { display: block !important; background: none; border: none; font-size: 1.5rem; color: #fff; cursor: pointer; }
    .btn-fast-quote { display: none !important; }
    .hero-content h1 { font-size: 2rem !important; }
    .hero-buttons { display: flex; flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; text-align: center; margin-bottom: 10px; }
    .feature-card { padding: 15px; }
    .chat-window-card { height: 75vh !important; }
    .chat-messages { padding: 10px; }
    .message { max-width: 90% !important; }
    body { font-size: 14px; }
    .chat-input-area { flex-direction: column; }
    .chat-input-area .btn { width: 100%; margin-top: 10px; }
}

/* Fix missing overlay styles for mobile menu */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.95);
    z-index: 99999;
    transition: left 0.3s ease;
    overflow-y: auto;
}
.mobile-nav-overlay.active {
    left: 0;
}
.mobile-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}
.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mobile-nav-links li {
    margin-bottom: 20px;
}
.mobile-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
