/* ==========================================================================
   DESIGN SYSTEM FOR COOLFON.PL (Dark Tech / AI-Driven / Responsive)
   ========================================================================== */

/* --- Google Fonts Import --- */
/* Google Fonts imported via preconnect in HTML head for PageSpeed FCP/LCP optimization */

/* --- Root Variable tokens --- */
:root {
    /* Colors */
    --color-bg-main: #02050f;          /* Ultra deep cosmic blue-black */
    --color-bg-card: rgba(255, 255, 255, 0.02);
    --color-bg-card-hover: rgba(255, 255, 255, 0.045);
    --color-border: rgba(255, 255, 255, 0.05);
    --color-border-hover: rgba(0, 155, 172, 0.5);
    
    --color-primary: #009bac;          /* Coolfon Brand Cyan/Teal from Logo */
    --color-primary-rgb: 0, 155, 172;
    --color-secondary: #001e4e;        /* Deep Premium Navy from Logo */
    --color-secondary-rgb: 0, 30, 78;
    --color-accent-neon: #00f0ff;       /* Vibrant Electric Neon Blue */
    --color-text-main: #F0F4FF;        /* Light Off-White */
    --color-text-muted: #8E9BAE;       /* Muted Grey */
    --color-success: #10B981;          /* Green for positive state */
    --color-warning: #F59E0B;          /* Amber */
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #009bac 0%, #005f73 50%, #001e4e 100%);
    --gradient-accent: linear-gradient(135deg, #009bac 0%, #00f0ff 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0) 100%);
    --gradient-glow: radial-gradient(circle, rgba(0, 155, 172, 0.15) 0%, rgba(0,0,0,0) 70%);

    /* Typography scale */
    --font-sans: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Grid & spacing */
    --max-width: 1200px;
    --border-radius-s: 8px;
    --border-radius-m: 16px;
    --border-radius-l: 24px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset & Setup --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background glows */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 155, 172, 0.08) 0%, rgba(0,0,0,0) 70%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 30, 78, 0.2) 0%, rgba(0,0,0,0) 70%);
    z-index: -2;
    pointer-events: none;
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: #FFFFFF;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

select option {
    background-color: #121622 !important;
    color: #FFFFFF !important;
}


/* --- Layout Utility Classes --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* --- Asymmetric Bento Grid (Anti-AI-Slop & Vibe Coding Standard) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.bento-card-hero {
    grid-column: span 12;
    background: linear-gradient(135deg, rgba(0, 155, 172, 0.08) 0%, rgba(2, 5, 15, 0.6) 100%);
    border: 1px solid rgba(0, 155, 172, 0.3);
    border-radius: var(--border-radius-m);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.bento-card-sub {
    grid-column: span 6;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-m);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 860px) {
    .bento-card-hero,
    .bento-card-sub {
        grid-column: span 12;
    }
}

/* --- Premium Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--border-radius-s);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg-main);
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.2);
}

.btn-primary:hover {
    background: #FFFFFF;
    color: var(--color-bg-main);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

/* --- Navigation Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 10, 19, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.header-scrolled {
    padding: 10px 0;
    background: rgba(7, 10, 19, 0.9);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-link {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-active {
    color: #FFFFFF;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-active::after {
    width: 100%;
}

.nav-btn {
    padding: 10px 20px;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 2rem;
    cursor: pointer;
}

/* --- Cards / Glassmorphism containers --- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-m);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-card);
    z-index: -1;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-accent-neon);
    box-shadow: 0 20px 40px rgba(0, 212, 212, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: rgba(11, 15, 28, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-m);
    padding: 24px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform var(--transition-smooth);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.cookie-text strong {
    color: #FFFFFF;
}

.cookie-btns {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #25D366;
    color: #FFFFFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-fast);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
    color: #FFFFFF;
}

/* --- Footer --- */
.footer {
    background: #04060C;
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .menu-btn {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-smooth);
    }
    
    .nav.active {
        left: 0;
    }
    
    .cookie-banner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* ==========================================================================
   INTERACTIVE 3D & "WOW" THEMATIC EFFECTS
   ========================================================================== */

/* 3D Tilt Effect on cards and calculators with Interactive Specular Reflection (Sheen) */
.tilt-3d {
    position: relative;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.2s ease;
    transform-style: preserve-3d;
    overflow: hidden; /* To keep the sheen within borders */
}

.tilt-3d:hover {
    box-shadow: 0 25px 50px rgba(0, 155, 172, 0.25);
}

/* 3D Specular Sheen (Satynowy lśniący odblask) */
.tilt-3d::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 220px at var(--sheen-x, 50%) var(--sheen-y, 50%),
        rgba(255, 255, 255, 0.08),
        transparent 80%
    );
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tilt-3d:hover::after {
    opacity: 1;
}

/* 3D Depth translation for child elements (Pop-Out lewitujące warstwy) */
.tilt-3d-child {
    transform: translateZ(45px); /* Stronger pop-out effect */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dynamic Radial Mouse-Follow Glow Grid */
.glow-container {
    position: relative;
    overflow: hidden;
}

.glow-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        350px circle at var(--mouse-x, -999px) var(--mouse-y, -999px),
        rgba(0, 155, 172, 0.12),
        transparent 80%
    );
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* 3D Perspective Scroll Reveal Animations */
.reveal-3d {
    opacity: 0;
    transform: perspective(1000px) translateY(35px) rotateX(8deg);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-3d.revealed {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0deg);
}

/* --- CSS 3D Smartfon Showcase --- */
.phone-3d-wrapper {
    width: 280px;
    height: 560px;
    margin: 40px auto 0;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-3d 6s ease-in-out infinite;
}

.phone-3d {
    width: 250px;
    height: 500px;
    background: #0d1326;
    border: 8px solid #1a2238;
    border-radius: 36px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 155, 172, 0.25),
                inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.phone-inner {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    background: #02050f;
    border: 2px solid rgba(255, 255, 255, 0.05);
}

/* Dynamic glow under the screen */
.phone-screen::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    background: radial-gradient(circle, rgba(0, 155, 172, 0.25) 0%, transparent 60%);
    pointer-events: none;
    animation: rotate-glow 10s linear infinite;
}

.phone-content {
    position: relative;
    z-index: 2;
    padding: 32px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.phone-logo img {
    height: 24px;
    width: auto;
    margin-top: 15px;
}

.phone-status {
    font-size: 0.75rem;
    color: var(--color-accent-neon);
    background: rgba(0, 240, 255, 0.08);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.phone-status .status-dot {
    width: 6px;
    height: 6px;
    background: var(--color-accent-neon);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-neon);
    animation: blink 2s infinite;
}

.phone-ui {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.ui-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.ui-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 4px;
}

.ui-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.ui-button {
    background: var(--gradient-accent);
    color: #030611;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.phone-glare {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 36px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%, rgba(0,155,172,0.05) 100%);
    pointer-events: none;
    z-index: 10;
}

/* Animations for 3D and floating */
@keyframes float-3d {
    0% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
    50% { transform: translateY(-15px) rotateY(5deg) rotateX(-5deg); }
    100% { transform: translateY(0px) rotateY(-5deg) rotateX(5deg); }
}

@keyframes rotate-glow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- phone-calculator-specific styles (Szeroki smartfon dla kalkulatora) --- */
.phone-calculator-wrapper {
    width: 100%;
    max-width: 420px;
    height: 640px;
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float-3d 6.5s ease-in-out infinite;
    margin: 0 auto;
}

.phone-calculator-device {
    width: 100%;
    height: 100%;
    background: #090f1e;
    border: 10px solid #1a233b;
    border-radius: 44px;
    position: relative;
    box-shadow: 0 35px 70px rgba(0, 155, 172, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.04);
    transform-style: preserve-3d;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.phone-calculator-device .phone-inner {
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow-y: auto; /* Allow scrolling inside the phone */
    scrollbar-width: none; /* Hide scrollbars for clean look */
    position: relative;
    background: #02050f;
    border: 2px solid rgba(255, 255, 255, 0.03);
}

.phone-calculator-device .phone-inner::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

/* Specific glare styling for the calculator model */
.phone-calculator-device .phone-glare {
    border-radius: 44px;
}

/* ==========================================================================
   RESPONSIVE GRID UTILITIES & MOBILE OPTIMIZATIONS
   ========================================================================== */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
}

/* Adjust .whatsapp-float to bottom left so it does not collide with chatbot */
.whatsapp-float {
    left: 24px;
    right: auto;
}

/* Global Responsive Adjustments */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .section {
        padding: 50px 0;
    }
    .hero-title {
        font-size: 2.3rem;
    }
    h2 {
        font-size: 1.8rem !important;
    }
    .phone-calculator-wrapper {
        margin-top: 30px;
        height: auto;
        max-width: 100%;
    }
    .phone-calculator-device {
        border-radius: var(--border-radius-m);
        height: auto;
        border-width: 4px;
    }
    .phone-calculator-device .phone-inner {
        border-radius: inherit;
        padding: 24px 16px !important;
    }
    .phone-3d-wrapper {
        display: none; /* Hide 3D phone on mobile to save space & prevent overflow */
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr; /* Force 1 column for cards on tablets/phones to avoid squishing */
        gap: 20px;
    }
    .header .container {
        padding: 0 16px;
    }
    .logo img {
        height: 32px !important;
    }
}

/* ==========================================================================
   PREMIUM GLASSMORPHISM CHATBOT WIDGET
   ========================================================================== */

.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-bg-main);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 240, 255, 0.4);
    z-index: 9998;
    transition: var(--transition-fast);
    border: none;
    outline: none;
    animation: pulseChatbot 2.5s infinite ease-in-out;
}

@keyframes pulseChatbot {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.6), 0 8px 24px rgba(0, 240, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(0, 240, 255, 0), 0 8px 24px rgba(0, 240, 255, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 240, 255, 0), 0 8px 24px rgba(0, 240, 255, 0.4);
    }
}

.avatar-pulse {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #00FF88;
    border-radius: 50%;
    border: 1px solid #0B0F19;
    animation: blinkOnline 1.5s infinite alternate;
}

@keyframes blinkOnline {
    from { opacity: 0.4; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.2); }
}

.chatbot-toggle:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 30px rgba(0, 240, 255, 0.6);
}

.chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.chatbot-widget {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: rgba(13, 19, 38, 0.95);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--border-radius-m);
    box-shadow: 0 15px 40px rgba(0, 155, 172, 0.35);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px);
}

.chatbot-widget.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: all;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(0, 155, 172, 0.4) 100%);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-avatar-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-avatar-img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-accent-neon);
}

.chatbot-avatar {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.header-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--color-accent-neon);
}

.chatbot-title {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #FFF;
    font-size: 0.95rem;
}

.chatbot-status {
    font-size: 0.75rem;
    color: var(--color-accent-neon);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-accent-neon);
    border-radius: 50%;
    animation: blink 2s infinite;
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.chatbot-close:hover {
    color: #FFF;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.05) transparent;
}

.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble-bot {
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-main);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-top-left-radius: 4px;
}

.chat-bubble-user {
    background: var(--color-primary);
    color: var(--color-bg-main);
    font-weight: 500;
    align-self: flex-end;
    border-top-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 155, 172, 0.2);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 14px;
}

.chat-suggest-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 155, 172, 0.3);
    color: var(--color-text-muted);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-sans);
}

.chat-suggest-btn:hover {
    background: rgba(0, 155, 172, 0.1);
    color: var(--color-accent-neon);
    border-color: var(--color-accent-neon);
    transform: translateY(-1px);
}

.chatbot-input-area {
    padding: 14px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    background: rgba(2, 5, 15, 0.5);
}

.chatbot-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-s);
    padding: 12px;
    color: #FFF;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: var(--color-primary);
}

.chatbot-send {
    background: var(--color-primary);
    color: var(--color-bg-main);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-s);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chatbot-send:hover {
    background: #FFF;
    transform: translateY(-1px);
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Plakietka NOWOŚĆ */
.badge {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 240, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
}

@media (max-width: 480px) {
    .chatbot-widget {
        width: calc(100% - 32px);
        height: 450px;
        bottom: 84px;
        right: 16px;
    }
    .chatbot-toggle {
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float {
        bottom: 16px;
        left: 16px;
    }
}

/* ==========================================================================
   PREMIUM MOTION & AESTHETIC EFFECTS
   ========================================================================== */

/* Animated Gradient Background for Hero */
.hero-section {
    background: linear-gradient(135deg, #02050f 0%, #061021 50%, #0d061c 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Diagnostic Scanline effect */
.hero-section::after {
    content: '';
    position: absolute;
    top: -5%;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, transparent, rgba(0, 212, 212, 0.4), var(--color-primary), rgba(0, 212, 212, 0.4), transparent);
    box-shadow: 0 0 15px rgba(0, 212, 212, 0.6);
    pointer-events: none;
    z-index: 1;
    animation: scanLine 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    opacity: 0.8;
}

@keyframes scanLine {
    0% { top: -5%; }
    100% { top: 105%; }
}

/* Pulse animation for Popular badges in Cennik */
@keyframes pulseBadge {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 155, 172, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(0, 155, 172, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 155, 172, 0);
    }
}
