 :root {
            /* Profesjonalna paleta - navy & subdued tones */
            --snofru-navy: #0f172a;
            --snofru-navy-light: #1e293b;
            --snofru-navy-muted: #334155;
            --snofru-accent: #b45309;        /* Stonowany bursztyn */
            --snofru-accent-hover: #92400e;
            --snofru-accent-light: #f59e0b33; /* 20% opacity for backgrounds */
            
            --snofru-bg-light: #f8fafc;
            --snofru-bg-card: #ffffff;
            --snofru-text-primary: #0f172a;
            --snofru-text-secondary: #475569;
            --snofru-text-muted: #64748b;
            --snofru-border: #e2e8f0;
            
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
            --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }

        * { box-sizing: border-box; }
        
        html { scroll-behavior: smooth; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            color: var(--snofru-text-primary);
            background-color: #ffffff;
            line-height: 1.6;
            overflow-x: hidden;
        }

        /* ===== HERO SECTIONS ===== */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 100px 0;
            position: relative;
        }
		/* =========================================
   HEADER SNOFRU - WERSJA NAVY & ACCENT
========================================= */

.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--snofru-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* --- LOGO --- */
.main-header a {
    text-decoration: none;
}

.main-header .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--snofru-navy);
    letter-spacing: -0.04em;
    transition: var(--transition);
}

.main-header .logo span {
    color: var(--snofru-accent);
}

.main-header .logo:hover {
    opacity: 0.8;
}

/* --- NAWIGACJA (ŚRODEK) --- */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--snofru-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--snofru-navy);
}

/* Animowane podkreślenie linków */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--snofru-accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- PRZYCISKI (PRAWA STRONA) --- */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- STAN ZALOGOWANY (WIDGET UŻYTKOWNIKA) --- */
.user-info-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--snofru-bg-light);
    border: 1px solid var(--snofru-border);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    gap: 15px;
}

.user-balance {
    font-weight: 700;
    color: var(--snofru-navy);
    font-size: 0.95rem;
}

.user-balance i {
    color: var(--snofru-accent);
    margin-right: 5px;
}

.btn-login {
    background-color: white;
    color: var(--snofru-navy);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.btn-login:hover {
    box-shadow: var(--shadow-md);
    color: var(--snofru-accent);
    border-color: var(--snofru-border);
}

.btn-logout-icon {
    background-color: rgba(220, 53, 69, 0.1); /* Delikatny czerwony */
    color: #dc3545;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.btn-logout-icon:hover {
    background-color: #dc3545;
    color: white;
}

/* --- STAN WYLOGOWANY (REJESTRACJA / LOGOWANIE) --- */
.nav-buttons .btn-main {
    font-weight: 600;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    text-decoration: none;
    /* Nadpisanie Twoich stylów inline z pliku .tpl */
    padding: 12px 24px !important; 
    font-size: 0.9rem !important;
}

.nav-buttons a[href="/login"].btn-main {
    background: transparent;
    color: var(--snofru-navy);
    border: 1px solid var(--snofru-border);
}

.nav-buttons a[href="/login"].btn-main:hover {
    border-color: var(--snofru-accent);
    color: var(--snofru-accent);
    background: var(--snofru-accent-light);
}

.nav-buttons a[href="/register"].btn-main {
    background: linear-gradient(135deg, var(--snofru-accent), var(--snofru-accent-hover));
    color: white;
    box-shadow: var(--shadow-sm);
    border: none;
}

.nav-buttons a[href="/register"].btn-main:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 991px) {
    .nav-links {
        display: none; /* Ukrywa linki na mobile (zazwyczaj jest tu ikona burger-menu) */
    }
    
    .user-info-wrapper {
        padding: 4px;
        gap: 8px;
    }
    
    .user-balance {
        display: none; /* Ukrywa kwotę PLN na małych ekranach, żeby nie łamać paska */
    }
}
        /* Sekcja 1: Intro - profesjonalny gradient + overlay */
        .section-intro {
            background: 
                linear-gradient(135deg, rgba(15,23,42,0.92) 0%, rgba(30,41,59,0.88) 100%),
                url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=1920&q=80');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            color: white;
        }
        
        .section-intro::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(ellipse at top, rgba(180,83,9,0.15) 0%, transparent 60%);
            pointer-events: none;
        }

        /* Sekcja 2: Wartości - czyste tło */
        .section-values {
            background-color: var(--snofru-bg-light);
            border-top: 1px solid var(--snofru-border);
            border-bottom: 1px solid var(--snofru-border);
        }

        /* Sekcja 3: Ekosystem - ciemna, ale elegancka */
        .section-ecosystem {
            background: linear-gradient(180deg, var(--snofru-navy) 0%, var(--snofru-navy-light) 100%);
            color: rgba(255,255,255,0.95);
        }

        /* ===== TYPOGRAFIA ===== */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }
        
        .display-2 { font-weight: 800; letter-spacing: -0.03em; }
        .display-4 { font-weight: 700; }
        
        .text-gradient {
            background: linear-gradient(135deg, #fbbf24, var(--snofru-accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* ===== PRZYCISKI ===== */
        .btn-snofru {
            background: linear-gradient(135deg, var(--snofru-accent), var(--snofru-accent-hover));
            color: white;
            font-weight: 600;
            padding: 14px 36px;
            font-size: 1rem;
            border-radius: 12px;
            border: none;
            transition: var(--transition);
            box-shadow: var(--shadow-md);
            position: relative;
            overflow: hidden;
        }
        
        .btn-snofru::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, transparent, rgba(255,255,255,0.15), transparent);
            transform: translateX(-100%);
            transition: transform 0.4s ease;
        }
        
        .btn-snofru:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
            color: white;
        }
        
        .btn-snofru:hover::after {
            transform: translateX(100%);
        }
        
        .btn-snofru:active {
            transform: translateY(0);
        }
        
        .btn-snofru-outline {
            background: transparent;
            color: var(--snofru-accent);
            border: 2px solid var(--snofru-accent);
            font-weight: 600;
            padding: 14px 36px;
            font-size: 1rem;
            border-radius: 12px;
            transition: var(--transition);
        }
        
        .btn-snofru-outline:hover {
            background: var(--snofru-accent-light);
            color: var(--snofru-accent-hover);
            transform: translateY(-2px);
        }

        /* ===== KARTY I ELEMENTY UI ===== */
        .feature-card {
            background: var(--snofru-bg-card);
            border: 1px solid var(--snofru-border);
            border-radius: 20px;
            padding: 40px 32px;
            transition: var(--transition);
            height: 100%;
            position: relative;
        }
        
        .feature-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 20px;
            padding: 1px;
            background: linear-gradient(135deg, transparent, var(--snofru-accent-light), transparent);
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .feature-card:hover {
            border-color: var(--snofru-accent);
            box-shadow: var(--shadow-lg);
            transform: translateY(-4px);
        }
        
        .feature-card:hover::before {
            opacity: 1;
        }
        
        .feature-icon {
            width: 64px;
            height: 64px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--snofru-accent-light);
            border-radius: 16px;
            color: var(--snofru-accent);
            font-size: 1.75rem;
            margin-bottom: 24px;
            transition: var(--transition);
        }
        
        .feature-card:hover .feature-icon {
            background: var(--snofru-accent);
            color: white;
            transform: scale(1.05);
        }

        /* ===== FORMULARZ ===== */
        .auth-card {
            background: var(--snofru-bg-card);
            border-radius: 24px;
            padding: 40px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--snofru-border);
            max-width: 520px;
            margin: 0 auto;
        }
        
        .form-label {
            font-weight: 600;
            color: var(--snofru-text-primary);
            font-size: 0.9rem;
            margin-bottom: 8px;
        }
        
        .form-select, .form-control {
            border: 2px solid var(--snofru-border);
            border-radius: 12px;
            padding: 14px 16px;
            font-size: 1rem;
            transition: var(--transition);
            background: #fff;
        }
        
        .form-select:focus, .form-control:focus {
            border-color: var(--snofru-accent);
            box-shadow: 0 0 0 4px var(--snofru-accent-light);
            outline: none;
        }

        /* ===== EKOSYSTEM LIST ===== */
        .ecosystem-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }
        
        .ecosystem-list li {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            padding: 16px 0;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            font-size: 1.05rem;
        }
        
        .ecosystem-list li:last-child {
            border-bottom: none;
        }
        
        .ecosystem-icon {
            flex-shrink: 0;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--snofru-accent-light);
            border-radius: 8px;
            color: var(--snofru-accent);
            font-size: 1rem;
            margin-top: 4px;
        }

        /* ===== VISUAL ELEMENTS ===== */
        .ecosystem-visual {
            position: relative;
            display: inline-block;
        }
        
        .ecosystem-visual::before {
            content: '';
            position: absolute;
            inset: -20px;
            background: radial-gradient(circle, var(--snofru-accent-light) 0%, transparent 70%);
            border-radius: 50%;
            animation: pulse 4s ease-in-out infinite;
            z-index: -1;
        }
        
        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.1); opacity: 0.8; }
        }
        
        .ecosystem-img {
            filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
            transition: var(--transition);
        }
        
        .ecosystem-visual:hover .ecosystem-img {
            transform: scale(1.03);
        }

        /* ===== FOOTER ===== */
        footer {
            background: var(--snofru-navy);
            color: rgba(255,255,255,0.85);
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        footer a {
            color: rgba(255,255,255,0.85);
            transition: var(--transition);
            position: relative;
            padding: 4px 0;
        }
        
        footer a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--snofru-accent);
            transition: var(--transition);
        }
        
        footer a:hover {
            color: white;
        }
        
        footer a:hover::after {
            width: 100%;
        }
		/* =========================================
   FOOTER SNOFRU - WERSJA NAVY & ACCENT
========================================= */

.main-footer {
    background-color: var(--snofru-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 20px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    /* Automatyczna, responsywna siatka. 4 kolumny na PC, 1 na mobile */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* --- LOGO W STOPCE --- */
.footer-col .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-col .logo span {
    color: var(--snofru-accent);
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 8px;
}

/* --- NAGŁÓWKI KOLUMN --- */
.footer-col h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.15rem;
    position: relative;
    padding-bottom: 12px;
}

/* Subtelna bursztynowa linia pod nagłówkami */
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--snofru-accent);
    border-radius: 2px;
}

/* --- LISTY I LINKI --- */
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

/* Efekt "przesunięcia" przy najechaniu */
.footer-col ul li a:hover {
    color: #ffffff;
    transform: translateX(5px); 
}

/* --- SOCIAL MEDIA --- */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--snofru-accent);
    color: #ffffff;
    transform: translateY(-4px); /* Ikona lekko unosi się do góry */
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.4);
}

/* --- KONTAKT --- */
.contact-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

.email-link {
    color: var(--snofru-accent) !important;
    font-weight: 600;
}

.email-link:hover {
    color: #ffffff !important;
}

/* --- COPYRIGHT BAR --- */
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* --- RESPONSYWNOŚĆ TABLET/MOBILE --- */
@media (max-width: 768px) {
    .footer-grid {
        gap: 40px;
    }
    
    .main-footer {
        padding: 60px 0 20px;
    }
}
        /* ===== UTILITIES ===== */
        .text-navy { color: var(--snofru-navy); }
        .text-accent { color: var(--snofru-accent); }
        .bg-navy { background-color: var(--snofru-navy); }
        .bg-accent-light { background-color: var(--snofru-accent-light); }
        
        .opacity-80 { opacity: 0.8; }
        .opacity-90 { opacity: 0.9; }
        
        .divider {
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--snofru-border), transparent);
            margin: 2rem 0;
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 991px) {
            .hero-section {
                min-height: auto;
                padding: 80px 0;
            }
            .display-2 { font-size: 3rem; }
            .display-4 { font-size: 2.25rem; }
            .auth-card { padding: 32px 24px; }
        }
        
        @media (max-width: 575px) {
            .display-2 { font-size: 2.5rem; }
            .btn-snofru, .btn-snofru-outline {
                width: 100%;
                padding: 16px;
            }
        }