/**
 * Loterion Portal - Main CSS
 * IT Expert - Bartosz Kozik
 */

:root {
    --primary-color: #E30613;
    --primary-dark: #c00512;
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* navbar (~152px) + tagline bar (~32px) + 12px luzu */
    scroll-padding-top: 196px;
}

@media (max-width: 768px) {
    html {
        /* navbar mobile (~128px) + tagline bar (~32px) + 12px luzu */
        scroll-padding-top: 172px;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.logout-toast {
    position: fixed;
    top: 110px;
    left: 50%;
    transform: translate(-50%, -20px);
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.95rem 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 1200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    max-width: min(520px, calc(100% - 2.5rem));
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.logout-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 768px) {
    .logout-toast {
        top: 90px;
        max-width: calc(100% - 2rem);
        font-size: 0.95rem;
    }
}

.promotion-banner {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: var(--white);
    padding: 1.25rem 0;
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.25);
    position: relative;
    z-index: 500;
}

.promotion-banner__content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.promotion-banner__icon {
    font-size: 2.5rem;
}

.promotion-banner__title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promotion-banner__text {
    font-size: 1.1rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .promotion-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-brand-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    padding: 0;
    overflow: visible;
}

.logo-icon__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.site-tagline-bar {
    background: #f1f5f9;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.35rem 0;
    text-align: center;
}

.site-tagline-bar__inner {
    padding: 0 20px;
}

.site-tagline-bar__text {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

body.game-module .site-tagline-bar {
    background: var(--card-bg);
    color: var(--text-secondary);
    border-bottom-color: var(--card-border);
}

@media (max-width: 768px) {
    .logo-icon {
        width: 96px;
        height: 96px;
    }

    .site-tagline-bar__text {
        font-size: 0.68rem;
        letter-spacing: 0.05em;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 6, 19, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 100px 0;
    overflow: hidden;
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-animation .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(227, 6, 19, 0.15);
    animation: float 20s infinite ease-in-out;
}

.hero-animation .circle:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.hero-animation .circle:nth-child(2) {
    width: 120px;
    height: 120px;
    right: 15%;
    top: 40%;
    animation-delay: 2s;
}

.hero-animation .circle:nth-child(3) {
    width: 60px;
    height: 60px;
    left: 20%;
    bottom: 30%;
    animation-delay: 4s;
}

.hero-animation .circle:nth-child(4) {
    width: 100px;
    height: 100px;
    right: 25%;
    bottom: 20%;
    animation-delay: 1s;
}

.hero-animation .circle:nth-child(5) {
    width: 90px;
    height: 90px;
    left: 50%;
    top: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-30px) translateX(20px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-60px) translateX(-20px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-30px) translateX(30px);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(227, 6, 19, 0.6);
}

.hero-description {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    width: 100%;
}

.stat-number.price-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
}

.price-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-direction: column;
    width: 100%;
}

.price-stack .price {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    width: 100%;
}

.price-stack .price-original {
    text-align: center !important;
    width: 100%;
    display: block;
    margin: 0 auto;
}

.price-stack .price span {
    text-align: center !important;
    display: block;
    width: 100%;
}

.price-stack .price-original.strike,
.price-stack .price.price--promo .price-original {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.price-stack .price-discount {
    color: #10b981;
    font-size: 2.3rem;
    line-height: 1.1;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Quick Tiles Section */
.quick-tiles-section {
    padding: 3rem 0;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.quick-tiles {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
}

.quick-tile {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.quick-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(227, 6, 19, 0.14);
    border-color: #e30613;
}

.quick-tile__icon {
    font-size: 2.4rem;
    line-height: 1;
}

.quick-tile__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.quick-tile__desc {
    font-size: 0.88rem;
    color: #6b7280;
    line-height: 1.55;
    flex: 1;
    margin: 0;
}

.quick-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.83rem;
    font-weight: 700;
    color: #e30613;
    margin-top: 0.25rem;
    letter-spacing: 0.01em;
}

@media (max-width: 1100px) {
    .quick-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .quick-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 440px) {
    .quick-tiles {
        grid-template-columns: 1fr;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Games Grid */
.games {
    background: var(--bg-light);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--white);
    border-radius: 20px;
    padding: 0;
    border: 3px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #E30613 0%, #C0392B 100%);
    border-radius: 17px 17px 0 0;
}

.game-card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-card-header h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.game-card-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-card-body p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-info {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.game-price {
    margin-top: auto;
    padding-top: 1rem;
}

.game-price .price {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0 0;
    border-top: 2px solid var(--border-color);
    width: 100%;
}

.game-price .price .price-original {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: line-through;
}

.game-price .price .price-discount {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.game-price .price .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.game-price .price-period {
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    display: block;
    width: 100%;
    margin-top: 0.5rem;
}

.game-price .price-note {
    width: 100%;
    color: #fff;
    font-weight: 700;
    text-align: center;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.price.price--promo {
    flex-direction: column;
}

.price.price--promo .price-original {
    order: 0;
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
}

.price.price--promo .price-discount {
    order: 1;
    font-size: 2.2rem;
    line-height: 1.1;
    color: #10b981;
    font-weight: 800;
}

.price.price--promo .price-period {
    order: 2;
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-light);
    white-space: nowrap;
}

.price-note {
    color: #10b981;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 540px) {
    .price {
        gap: 0.3rem;
    }
}

.price--combo .price-discount,
.game-price .price-discount,
.pricing-card .price-discount {
    color: #10b981;
}

.combo-note {
    color: #10b981;
}




/* Pricing */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 3px;
}

.pricing-card .price,
.pricing-card .price.price--promo,
.game-card .price,
.game-card .price.price--promo {
    align-items: center;
    text-align: center;
}

.pricing-card .price.price--promo .price-original,
.game-card .price.price--promo .price-original {
    font-size: 0.95rem;
}

.pricing-card .price.price--promo .price-discount,
.game-card .price.price--promo .price-discount {
    font-size: 1.75rem;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.price.price--promo {
    align-items: flex-start;
}

.price.price--promo .price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

.price.price--promo .price-discount {
    font-size: 1.85rem;
    line-height: 1.1;
}

.price-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    text-align: center;
}

/* CTA */
.cta {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

/* Newsletter Section */
.newsletter-section {
    background: #f5f5f5;
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.newsletter-section p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 300px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.newsletter-form button {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.newsletter-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.newsletter-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.newsletter-checkbox label {
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
}

.newsletter-checkbox a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.newsletter-checkbox a:hover {
    color: var(--primary-dark);
}

.newsletter-message {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem auto;
    max-width: 600px;
    font-weight: 500;
}

.newsletter-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.newsletter-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.newsletter-privacy {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

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

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
    margin-top: 2.5rem;
    padding: 1.25rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: flex !important;
    }
    
    .nav-mobile-toggle {
        display: block !important;
    }
    
    .navbar .container {
        position: relative;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .features-grid,
    .games-grid,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Mobile menu - ALWAYS CLOSED unless .active */
    .nav-menu {
        max-height: 0 !important;
        opacity: 0 !important;
    }
    
    .nav-menu.active {
        max-height: 500px !important;
        opacity: 1 !important;
    }
}
.game-price .price,
.pricing-card .price,
.package-card .price {
    justify-content: center;
}

.game-price .price-period,
.pricing-card .price-period,
.package-card .price-period {
    font-size: 0.9rem;
    color: var(--text-light);
}
/* Aktualności/Nowości Section */
.news-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-card-image {
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 1.5rem;
}

.news-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.news-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-section {
    padding: 5rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 15px;
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info-item h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.contact-info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    color: #059669;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid #ef4444;
    color: #dc2626;
}

/* Social Media Icons in Footer */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link--facebook {
    background: #1877f2;
    color: #fff;
}

.social-link--facebook:hover {
    background: #0d65d9;
    color: #fff;
}

.social-icon-svg {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

.footer-social-label {
    margin: 1rem 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

/* Pływający Facebook — poza menu, nie psuje układu nawigacji */
.facebook-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(24, 119, 242, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.cookies-banner-open .facebook-float,
body.cookies-banner-open .pwa-install-btn {
    display: none !important;
}

.facebook-float:hover {
    background: #0d65d9;
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 28px rgba(24, 119, 242, 0.5);
}

.facebook-float .social-icon-svg {
    width: 1.55rem;
    height: 1.55rem;
}

.facebook-float-tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.facebook-float:hover .facebook-float-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
    .facebook-float {
        width: 50px;
        height: 50px;
        right: 1rem;
        bottom: 1rem;
    }

    .facebook-float .social-icon-svg {
        width: 1.35rem;
        height: 1.35rem;
    }

    .facebook-float-tooltip {
        display: none;
    }
}

.newsletter-facebook-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.85rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.18);
    border: 1px solid rgba(24, 119, 242, 0.35);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.newsletter-facebook-cta:hover {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
    transform: translateY(-1px);
}

.newsletter-facebook-cta .social-icon-svg {
    width: 1rem;
    height: 1rem;
}

.info-icon--facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
    font-size: 0;
}

.info-icon--facebook .social-icon-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.info-item--facebook .info-content a {
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* NOWOCZESNY NEWSLETTER */
/* STARE STYLE NEWSLETTER-MODERN USUNIĘTE - ZASTĄPIONE NEWSLETTER-BANNER */

/* FIX MENU - mniejsze odstępy, nie zawija się */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.75rem !important;
}

.nav-menu .nav-link {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.95rem !important;
    white-space: nowrap;
}

.nav-menu .btn {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.9rem !important;
    white-space: nowrap;
}

@media (max-width: 1200px) {
    .nav-menu {
        gap: 0.5rem !important;
    }
    
    .nav-menu .nav-link {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.9rem !important;
    }
    
    .nav-menu .btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* CZYSTY, PROSTY NEWSLETTER */
/* Newsletter Banner - PIĘKNY, NOWOCZESNY PASEK */
.newsletter-banner {
    position: relative;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 3rem 0;
    overflow: hidden;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, #E30613, #ff6b6b, #E30613) 1;
    box-shadow: 0 -5px 30px rgba(227, 6, 19, 0.15);
}

.newsletter-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(227, 6, 19, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
}

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

.newsletter-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.newsletter-banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.newsletter-banner-text {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    min-width: 300px;
}

.newsletter-banner-icon {
    font-size: 4rem;
    filter: drop-shadow(0 0 20px rgba(227, 6, 19, 0.6));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.newsletter-banner-text h3 {
    margin: 0 0 0.5rem 0;
    color: white;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 20px rgba(227, 6, 19, 0.3);
    background: linear-gradient(135deg, #fff 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
}

.newsletter-banner-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex: 0 0 auto;
    min-width: 400px;
    position: relative;
    align-items: flex-start;
}

.newsletter-banner-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.2);
}

.newsletter-banner-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-banner-form input[type="email"]:focus {
    outline: none;
    border-color: #E30613;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 0 0 4px rgba(227, 6, 19, 0.2),
        0 0 30px rgba(227, 6, 19, 0.3);
    transform: translateY(-2px);
}

.newsletter-banner-form button {
    white-space: nowrap;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: linear-gradient(135deg, #E30613 0%, #ff6b6b 100%);
    border: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
    box-shadow: 
        0 10px 30px rgba(227, 6, 19, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.newsletter-banner-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.newsletter-banner-form button:hover::before {
    left: 100%;
}

.newsletter-banner-form button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(227, 6, 19, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.newsletter-banner-form button:active {
    transform: translateY(-1px) scale(1.02);
}

.newsletter-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    flex-basis: 100%;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-consent input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #E30613;
    flex-shrink: 0;
}

.newsletter-consent label {
    color: #1a1a1a;
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.newsletter-consent label a {
    color: #E30613;
    text-decoration: underline;
    font-weight: 700;
    transition: color 0.3s;
}

.newsletter-consent label a:hover {
    color: #ff6b6b;
}

.newsletter-message {
    position: relative;
    z-index: 2;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.4);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.2);
}

.newsletter-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.4);
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.2);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    font-size: 1.3rem;
    color: var(--text-light);
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
}

.newsletter-input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 1.1rem 1rem;
    font-size: 1rem;
    background: white;
    color: var(--secondary-color);
}

.newsletter-input-group input::placeholder {
    color: #9ca3af;
}

.btn-newsletter {
    background: linear-gradient(135deg, #E30613 0%, #C0392B 100%);
    color: white;
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-newsletter:hover {
    background: linear-gradient(135deg, #C0392B 0%, #E30613 100%);
    transform: scale(1.02);
}

.btn-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-newsletter:hover .btn-arrow {
    transform: translateX(3px);
}

.newsletter-message-modern {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-message-modern.success {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.newsletter-message-modern.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.newsletter-privacy {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Responsive */
/* Responsive Newsletter Banner */
@media (max-width: 768px) {
    .newsletter-banner {
        padding: 2.5rem 0;
    }
    
    .newsletter-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .newsletter-banner-text {
        flex-direction: column;
        text-align: center;
        min-width: auto;
        width: 100%;
        gap: 1rem;
    }
    
    .newsletter-banner-icon {
        font-size: 3.5rem;
    }
    
    .newsletter-banner-text h3 {
        font-size: 1.5rem;
    }
    
    .newsletter-banner-text p {
        font-size: 0.95rem;
    }
    
    .newsletter-banner-form {
        flex-direction: column;
        width: 100%;
        min-width: auto;
        gap: 1rem;
    }
    
    .newsletter-banner-form input[type="email"] {
        text-align: center;
        width: 100%;
    }
    
    .newsletter-banner-form button {
        width: 100%;
        padding: 1.1rem 2rem;
    }
    
    .newsletter-consent {
        text-align: left;
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

/* PEŁNE ARTYKUŁY - zamiast kafelków */
.news-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-articles {
    max-width: 900px;
    margin: 3rem auto 0;
}

.news-article {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.news-article:hover {
    box-shadow: 0 8px 30px rgba(227, 6, 19, 0.12);
    transform: translateY(-2px);
}

.news-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.news-article-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 1rem;
    line-height: 1.3;
}

.news-article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.news-article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.news-article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.news-article-content p {
    margin-bottom: 1rem;
}

.news-article-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-article-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
}

.news-article-author-details {
    display: flex;
    flex-direction: column;
}

.news-article-author-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

.news-article-published {
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Loading state */
.news-articles .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Archive button */
.news-archive {
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-article {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .news-article-title {
        font-size: 1.5rem;
    }
    
    .news-article-content {
        font-size: 1rem;
    }
    
    .news-article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* PEŁNE ARTYKUŁY - CZYSTO BEZ HEADERA */
.news-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.news-articles {
    max-width: 900px;
    margin: 3rem auto 0;
}

.news-article {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.news-article:hover {
    box-shadow: 0 8px 30px rgba(227, 6, 19, 0.12);
}

.news-article-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0 0 2rem;
    line-height: 1.3;
}

.news-article-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.news-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

/* Formatowanie HTML z TinyMCE */
.news-article-content p {
    margin-bottom: 1.2rem;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.news-article-content h1 { font-size: 2rem; }
.news-article-content h2 { font-size: 1.6rem; }
.news-article-content h3 { font-size: 1.3rem; }

.news-article-content ul,
.news-article-content ol {
    margin: 1rem 0 1.5rem 2rem;
    line-height: 1.8;
}

.news-article-content li {
    margin-bottom: 0.5rem;
}

.news-article-content strong {
    font-weight: 700;
    color: var(--secondary-color);
}

.news-article-content em {
    font-style: italic;
}

.news-article-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-article-content a:hover {
    color: #C0392B;
}

.news-article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-light);
}

.news-article-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
}

.news-article-content pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.news-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.news-article-footer {
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-article-author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.news-article-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.news-article-author-details {
    display: flex;
    flex-direction: column;
}

.news-article-author-name {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1rem;
}

.news-article-published {
    font-size: 0.9rem;
    color: var(--text-light);
}

.news-article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Loading state */
.news-articles .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Archive button */
.news-archive {
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .news-article {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .news-article-title {
        font-size: 1.6rem;
    }
    
    .news-article-content {
        font-size: 1rem;
    }
    
    .news-article-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

"/* Menu mobilne */
.nav-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
    color: #333;
}

.nav-mobile-toggle.active {
    color: #E30613;
}


@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: block !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 132px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .nav-menu .nav-link,
    .nav-menu .btn {
        display: block;
        padding: 0.75rem 1rem;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .nav-menu .btn {
        margin: 0.5rem auto;
        border: none;
        width: calc(100% - 2rem);
        max-width: 200px;
    }
    
    .nav-menu .nav-link:last-child,
    .nav-menu .btn:last-child {
        border-bottom: none;
    }
}

/* Latest Results Section */
/* Sekcja "Nasz system przewidział liczby" */
.system-predictions {
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.04) 0%, rgba(26, 26, 26, 0.03) 100%);
    border-top: 1px solid rgba(227, 6, 19, 0.1);
}

.predictions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.prediction-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.prediction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.prediction-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.prediction-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.prediction-game {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.prediction-date {
    font-size: 0.85rem;
    color: var(--text-light);
}

.prediction-strategy {
    font-size: 0.95rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.prediction-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.prediction-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

.prediction-ball.prediction-pred {
    background: var(--gradient-primary);
    color: var(--white);
}

.prediction-ball.prediction-euro {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--white);
}

.prediction-hits {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 600;
}

.prediction-win {
    margin-top: 0.45rem;
    font-size: 0.92rem;
    color: var(--text-color);
}

.predictions-empty {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.predictions-empty p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .predictions-grid {
        grid-template-columns: 1fr;
    }
}

.latest-results {
    padding: 5rem 0;
    background: var(--bg-light);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.result-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.result-card:hover:not(.expanded) {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.result-card.expanded {
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.result-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
    position: relative;
}

.result-card:not(.expanded) .result-card-header {
    border-bottom: 2px solid var(--border-color);
}

.result-card.expanded .result-card-header {
    border-bottom: none;
}

.result-card-clickable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.result-card-clickable:hover {
    background-color: rgba(227, 6, 19, 0.05);
    border-radius: 8px;
    padding: 0.5rem;
    margin: -0.5rem;
}

.result-card-expand-icon {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.result-card.expanded .result-card-expand-icon {
    transform: rotate(180deg);
}

.result-card-latest-result {
    position: absolute;
    top: calc(100% - 2rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 101;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 2rem !important;
    border-top: 2px solid var(--border-color);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: max-height, opacity;
    pointer-events: none;
}

.result-card.expanded .result-card-latest-result {
    max-height: 500px !important;
    opacity: 1 !important;
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
    pointer-events: auto;
}

.result-card-expanded-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: none !important;
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
}

.result-card.expanded .result-card-expanded-content {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem !important;
    padding-bottom: auto !important;
    border-top: 1px solid var(--border-color) !important;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    opacity: 1 !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 1000px;
        transform: translateY(0);
    }
}

.result-expanded-item {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-expanded-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.result-expanded-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.result-card-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.result-card-icon {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.result-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.result-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    flex: 1;
    line-height: 1.3;
}

.result-card-date {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.result-card-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}

.number-ball {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), inset 0 -3px 6px rgba(0,0,0,0.15);
    border: 3px solid rgba(255,255,255,0.3);
    animation: popIn 0.4s ease-out;
    flex-shrink: 0;
}

.number-ball.yellow {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFE55C;
}

.number-ball.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #60a5fa;
    color: #fff;
}

.number-ball.euro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFE55C;
}

.number-ball.keno {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-color: #FFE55C;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.result-card-numbers-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-top: 0.5rem;
    width: 100%;
}

.result-card-euro-numbers {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.result-card-euro-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
    margin-right: 0.5rem;
}

.latest-results .loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

.set-checker {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #fff8f8 100%);
}

.set-checker-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.set-checker-card,
.set-checker-info {
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.set-checker-card h3,
.set-checker-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.set-checker-lead {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.set-checker-form .form-group {
    margin-bottom: 1rem;
}

.set-checker-captcha-row {
    display: flex;
    align-items: end;
    gap: 1rem;
}

.set-checker-refresh {
    height: fit-content;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.set-checker-actions {
    margin-top: 1rem;
}

.set-checker-message {
    margin-top: 1rem;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-color);
    font-weight: 600;
}

.set-checker-message.success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
    border-color: rgba(34, 197, 94, 0.45);
}

.set-checker-message.error {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.45);
}

.set-checker-message.info {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.45);
}

.set-checker-info ul {
    list-style: none;
    margin: 1rem 0;
}

.set-checker-info li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.7rem;
    color: var(--text-color);
}

.set-checker-info li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: 700;
}

.set-checker-seo-copy {
    color: var(--text-light);
    font-size: 0.95rem;
}

.set-checker-results {
    margin-top: 2rem;
}

.set-checker-results-cta {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.08), rgba(227, 6, 19, 0.16));
    border: 1px solid rgba(227, 6, 19, 0.25);
    border-radius: 14px;
    padding: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.set-checker-results-cta h4 {
    margin: 0;
    font-size: 1.05rem;
    color: #7f0410;
}

.set-checker-results-cta p {
    margin: 0;
    color: #4b5563;
    flex: 1;
    min-width: 220px;
}

.set-checker-summary {
    background: #fff;
    border-left: 5px solid var(--primary-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.set-checker-summary h3 {
    margin-bottom: 0.25rem;
}

.set-checker-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}

.set-checker-game-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.set-checker-game-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.set-checker-game-head h4 {
    margin: 0;
}

.set-checker-game-head span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.set-checker-required,
.set-checker-note {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.set-checker-note.estimate {
    margin-top: 0.2rem;
    margin-bottom: 0.35rem;
    color: #6b7280;
}

.set-checker-scenario {
    font-size: 0.86rem;
    color: #6b7280;
    margin-bottom: 0.45rem;
    font-style: italic;
}

.set-checker-game-results {
    display: grid;
    gap: 0.75rem;
}

.set-checker-featured-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
}

.set-checker-extra-results {
    display: none;
    gap: 0.75rem;
}

.set-checker-extra-results.expanded {
    display: grid;
}

.set-checker-toggle-btn {
    border: 1px solid rgba(227, 6, 19, 0.35);
    background: rgba(227, 6, 19, 0.08);
    color: #8b0010;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.set-checker-toggle-btn:hover {
    background: rgba(227, 6, 19, 0.15);
}

.set-checker-result-item {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 0.75rem;
}

.set-checker-result-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.set-checker-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
}

.set-checker-ball {
    min-width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #e5e7eb;
    color: #111827;
    font-size: 0.88rem;
}

.set-checker-ball.hit {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: #fff;
}

.set-checker-meta,
.set-checker-extra {
    font-size: 0.86rem;
    color: #374151;
    margin: 0.2rem 0;
}

.set-checker-empty {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .result-card {
        padding: 1.5rem;
    }
    
    .number-ball {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .result-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .set-checker-layout {
        grid-template-columns: 1fr;
    }

    .set-checker-captcha-row {
        flex-direction: column;
        align-items: stretch;
    }

    .set-checker-refresh {
        width: 100%;
    }
}

/* Check Win Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.8rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.modal-actions .btn {
    min-width: 120px;
}

#checkWinResult {
    border: 2px solid var(--border-color);
}

#checkWinResult.success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #15803d;
}

#checkWinResult.error {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #dc2626;
}

#checkWinResult.info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1e40af;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

/* PWA Install Button */
.pwa-install-btn {
    position: fixed;
    left: 16px;
    bottom: 1.25rem;
    z-index: 12000;
    border: 0;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    box-shadow: 0 8px 24px rgba(227, 6, 19, 0.35);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .pwa-install-btn {
        left: 12px;
        bottom: 1rem;
        font-size: 0.9rem;
        padding: 0.68rem 0.9rem;
    }
}