.page-header {
    background-image: url("../../assets/images/background.png");
}

.btn-secondary,
.btn.bg-gradient-secondary {
    box-shadow: 0 3px 3px 0 rgb(73 83 97 / 15%), 0 3px 1px -2px rgb(73 83 97 / 20%), 0 1px 5px 0 rgb(73 83 97 / 15%);
}

.btn-secondary:hover,
.btn.bg-gradient-secondary:hover {
    box-shadow: 0 14px 26px -12px rgb(73 83 97 / 40%), 0 4px 23px 0 rgb(73 83 97 / 15%), 0 8px 10px -5px rgb(73 83 97 / 20%);
}

#dpay .input-group.input-group-dynamic .form-control {
    background-image: linear-gradient(0deg, #1a73e8 2px, rgba(156, 39, 176, 0) 0), linear-gradient(0deg, #d2d2d2 1px, hsla(0, 0%, 82%, 0) 0)
}

#dpay .input-group.input-group-dynamic.is-focused label {
    color: #1a73e8;
}

#dcb .input-group.input-group-dynamic .form-control {
    background-image: linear-gradient(0deg, #344767 2px, rgba(156, 39, 176, 0) 0), linear-gradient(0deg, #d2d2d2 1px, hsla(0, 0%, 82%, 0) 0)
}

#dcb .input-group.input-group-dynamic.is-focused label {
    color: #344767;
}

.work-sans-800 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

.work-sans-400 {
    font-family: "Work Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* --- Carousel Styles --- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    width: fit-content;
    will-change: transform;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

.purchase-entry,
.supporter-entry {
    flex-shrink: 0;
    width: 150px;
    /* Fixed width for each item */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.purchase-entry:hover,
.supporter-entry:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* Special styling for the first supporter (top spender) */
.supporter-entry:first-child {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.1));
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.supporter-entry:first-child:hover {
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
    transform: translateY(-8px) scale(1.08);
}

.supporter-entry img,
.purchase-entry img {
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.supporter-entry:hover img,
.purchase-entry:hover img {
    transform: scale(1.1);
}

/* Scroll from Right to Left */
@keyframes scroll-rtl {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Scroll from Left to Right */
@keyframes scroll-ltr {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* --- Best Offer Styles (Modern Gradient & Glow Effect) --- */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2),
            0 8px 20px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.3),
            0 12px 28px rgba(0, 0, 0, 0.3);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.best-offer-container {
    position: relative;
}

.best-offer-container .info {
    position: relative;
    border-radius: .75rem;
    transform: scale(1.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg,
            #667eea 0%,
            #764ba2 25%,
            #f093fb 50%,
            #4facfe 75%,
            #667eea 100%);
    background-size: 300% 300%;
    animation: gradient-shift 8s ease infinite, pulse-glow 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Premium Badge */
.best-offer-container .info::before {
    content: '⭐ NAJLEPSZA OFERTA';
    position: absolute;
    top: 15px;
    right: -35px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 5px 40px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 10;
    animation: badge-pulse 2s ease-in-out infinite;
}

/* Inner glow overlay */
.best-offer-container .info::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.best-offer-container .info>* {
    position: relative;
    z-index: 2;
}

.best-offer-container .info:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8),
        0 0 80px rgba(255, 215, 0, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- Promotion Styles (Enhanced Visuals) --- */
.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.old-price {
    text-decoration: line-through;
    color: #9a9a9a;
    /* Lighter grey for less emphasis */
    font-size: 1rem;
    font-weight: 400;
}

.new-price {
    color: #4CAF50;
    /* A vibrant green for the sale price */
    font-weight: 700;
    font-size: 1.5rem;
}

.countdown-timer {
    background-color: #e8f5e9;
    /* Light green background to match the new price */
    color: #2e7d32;
    /* Darker green text */
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.85rem;
    margin-top: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.countdown-timer::before {
    content: '🕒';
    /* Clock icon */
    font-size: 1rem;
}

/* ============================================
   COMPREHENSIVE MODERN DESIGN ENHANCEMENTS
   ============================================ */

/* --- Smooth Fade-In Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Apply fade-in to main sections */
.card.card-body {
    animation: fadeIn 0.6s ease-out;
}

#sklep>div {
    animation: fadeInUp 0.5s ease-out backwards;
}

#sklep>div:nth-child(1) {
    animation-delay: 0.1s;
}

#sklep>div:nth-child(2) {
    animation-delay: 0.2s;
}

#sklep>div:nth-child(3) {
    animation-delay: 0.3s;
}

#sklep>div:nth-child(4) {
    animation-delay: 0.4s;
}

#sklep>div:nth-child(5) {
    animation-delay: 0.5s;
}

#sklep>div:nth-child(6) {
    animation-delay: 0.6s;
}

/* --- Enhanced Product Cards --- */
.info {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.info img {
    border-radius: 12px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info:hover img {
    transform: scale(1.03);
}

.info h5 {
    font-weight: 700;
    color: #344767;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.info .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 0.75rem 0;
}

/* --- Modern Button Styles --- */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn.bg-gradient-secondary {
    background: linear-gradient(135deg, #495361 0%, #5a6c7d 100%);
}

.btn.bg-gradient-secondary:hover {
    background: linear-gradient(135deg, #5a6c7d 0%, #495361 100%);
    transform: translateY(-2px);
}

.btn.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.btn.bg-gradient-info:hover {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    transform: translateY(-2px);
}

.btn-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    color: white;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.4);
}

/* --- Section Headers --- */
h3 {
    font-weight: 800;
    color: #344767;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* --- Enhanced Modals --- */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
    background: #fff;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 2rem;
}

/* --- Enhanced Form Inputs --- */
.form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #344767;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* --- Card Container Enhancement --- */
.card.card-body {
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
}

/* --- Navbar Enhancement --- */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
}

/* --- Header Enhancement --- */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
}

/* --- Footer Enhancement --- */
.footer {
    padding: 2rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(52, 71, 103, 0.03) 100%);
}

.footer p {
    margin: 0;
    color: #67748e;
}

/* --- Responsive Enhancements --- */
@media (max-width: 768px) {
    .info {
        padding: 15px;
    }

    h3::after {
        width: 40px;
    }

    .btn {
        font-size: 0.9rem;
    }
}

/* --- Smooth Scrolling --- */
html {
    scroll-behavior: smooth;
}

/* --- Selection Color --- */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #344767;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.3);
    color: #344767;
}

/* --- Loading State for Images --- */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* --- Accessibility: Focus Styles --- */
*:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* --- Countdown Timer Enhancement --- */
.countdown-timer {
    animation: fadeInUp 0.5s ease-out;
    font-weight: 600;
}

/* --- Price Container Enhancement --- */
.price-container {
    animation: fadeInUp 0.5s ease-out 0.2s backwards;
}

/* --- Top Supporters Section Enhancement --- */
.top-supporters {
    padding: 1rem 0;
}

/* --- Recent Purchases Section Enhancement --- */
.carousel-container {
    padding: 1rem 0;
    margin: 1rem 0;
}

/* ============================================
   LOGO FLOATING ANIMATION
   ============================================ */

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Apply floating animation to logo */
.page-header img[alt="server-logo"] {
    animation: float 3s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.page-header img[alt="server-logo"]:hover {
    animation-play-state: paused;
    transform: translateY(0) !important;
}

/* ============================================
   MODAL FIXES - Ensure Close Button Works
   ============================================ */

/* Ensure modal has proper z-index above navbar */
.modal {
    z-index: 1050 !important;
}

.modal-backdrop {
    z-index: 1040 !important;
}

/* Ensure close button is visible and styled */
.modal-header .btn-close {
    opacity: 0.8;
    font-size: 1.2rem;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

/* Ensure modal content is above backdrop */
.modal-dialog {
    z-index: 1051 !important;
}

/* Remove any conflicting styles */
.modal-content {
    position: relative;
    z-index: 1052;
}

/* ============================================
   STICKY NAVBAR ENHANCEMENTS
   ============================================ */

/* Make navbar sticky - ALWAYS WHITE */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* White background always */
    background: rgba(255, 255, 255, 0.98) !important;
    padding: 0.75rem 0 !important;
    margin: 0 !important;
    /* Always show shadow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

/* Navbar when scrolled - just adjust padding */
.navbar.scrolled {
    padding: 0.5rem 0 !important;
}

/* Navbar brand styling - ALWAYS DARK */
.navbar-brand {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: #344767 !important;
}

.navbar.scrolled .navbar-brand {
    color: #344767 !important;
}

/* Add gradient underline to brand on hover */
.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.navbar-brand:hover::after {
    width: 100%;
}

/* Nav links - ALWAYS DARK */
.navbar .nav-link,
.navbar .nav-link-icon {
    color: #344767 !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

/* Nav links when navbar is scrolled */
.navbar.scrolled .nav-link,
.navbar.scrolled .nav-link-icon {
    color: #344767 !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link-icon:hover {
    color: #667eea !important;
}

/* Nav link icons - ALWAYS DARK */
.navbar .nav-link i,
.navbar .nav-link-icon i {
    color: #344767 !important;
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link i,
.navbar.scrolled .nav-link-icon i {
    color: #344767 !important;
    opacity: 1 !important;
}

.navbar .nav-link:hover i,
.navbar .nav-link-icon:hover i {
    color: #667eea !important;
    transform: scale(1.15);
}

.navbar.scrolled .nav-link:hover i,
.navbar.scrolled .nav-link-icon:hover i {
    color: #667eea !important;
    transform: scale(1.15);
}

/* Navbar toggler for mobile */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-bar {
    background: #344767 !important;
    height: 2px;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Adjust navbar toggler icon color when scrolled */
.navbar.scrolled .navbar-toggler-bar {
    background: #344767 !important;
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 80px;
}

/* Enhanced navbar collapse for mobile */
.navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    margin-top: 1rem;
    padding: 1rem;
}

@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        margin-top: 0;
    }
}

/* Navbar animation on scroll */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    animation: slideDown 0.5s ease-out;
}