/* --- ZMIENNE I BAZA --- */
:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --text-main: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* --- LOGO --- */
.brand-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

/* --- ANIMACJE --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes floatMockup {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.floating-element {
    animation: floatMockup 5s ease-in-out infinite;
}

.online-dot {
    width: 10px;
    height: 10px;
    background-color: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: pulseGlow 2s infinite;
}

/* --- KOMPONENTY STRONY GŁÓWNEJ --- */
.navbar {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.hero-section {
    padding: 130px 0 80px 0;
}

.btn-primary-custom {
    background-color: var(--accent);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.feature-card, .pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px -10px rgba(99, 102, 241, 0.2);
}

.pricing-card {
    position: relative;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.pricing-card.featured .badge {
    top: -12px !important;
    padding: 6px 16px !important;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pricing-card .text-muted, 
.pricing-card .bi-x {
    color: #f87171 !important;
    opacity: 1 !important;
    font-weight: 600;
}

/* --- MOCKUP CZATU --- */
.chat-mockup {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.chat-header {
    background-color: rgba(15, 23, 42, 0.7);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-body {
    padding: 20px;
    height: 270px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 12px 16px;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.95rem;
    animation: fadeInUp 0.4s ease-out;
}

.message.bot {
    background-color: #334155;
    color: var(--text-main);
}

.message.user {
    background-color: var(--accent);
    color: #fff;
    margin-left: auto;
}

/* --- NOWOCZESNA STOPKA --- */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px 0;
    margin-top: 100px;
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 30px;
    align-items: start;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.footer-copyright {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.8;
}

.footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 6px;
}

.footer-links-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: var(--accent);
}

/* --- STYLE DLA STRONY LOGOWANIA / REJESTRACJI --- */
.auth-page {
    background: radial-gradient(circle at top, #1e293b 0%, #0f172a 70%);
}

.auth-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.auth-toggle-container {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
}

.auth-toggle-container .btn {
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 8px 0;
}

.auth-toggle-container .btn.active {
    background-color: var(--accent);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.auth-form-content input:focus {
    background-color: #334155 !important;
    border-color: var(--accent) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.auth-form-content {
    animation: authFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-forgot-link {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* --- RESPONSYWNOŚĆ GLOBALNA (MEDIA QUERIES) --- */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 50px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.1rem !important;
        line-height: 1.3;
    }

    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    .hero-section .d-flex.gap-3 {
        justify-content: center;
        flex-wrap: wrap;
    }

    .navbar-collapse {
        background-color: #1e293b;
        padding: 20px;
        border-radius: 16px;
        border: 1px solid var(--border-color);
        margin-top: 15px;
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    }

    .navbar-nav {
        width: 100%;
        align-items: center !important;
        text-align: center;
    }

    .navbar-nav .nav-link {
        font-size: 1.05rem;
        padding: 8px 0;
        color: #f8fafc !important;
    }

    .navbar-nav .btn {
        width: 100% !important;
        margin-top: 5px;
        padding: 10px 0;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 35px;
    }

    .footer-logo-wrapper {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
    }

    .auth-card {
        padding: 1.5rem !important;
    }
}