:root {
    --google-green: #34A853;
    --google-green-dark: #2E8B47;
    --google-green-light: #66BB6A;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --header-height: 72px;
}

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

html {
    width: 100%;
    overflow-x: hidden;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--gray-900);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    padding-top: var(--header-height);
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo h1 {
    color: var(--google-green);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--gray-900);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

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

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    white-space: nowrap;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--google-green);
    transition: width 0.3s ease;
}

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

body.menu-open {
    overflow: hidden;
}

/* Hero Section */
.hero {
    padding: 5rem 0;
    background: url('/static/images/background.jpg') no-repeat center center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Poprawa jakości obrazu */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.hero .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding-left: -2rem;
    padding-right: 1rem;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    text-align: left;
    margin-left: -1.5rem;
}

@media (max-width: 1024px) {
    .hero-content {
        margin-left: 0;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--google-green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* Hero Illustration */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease;
}

.illustration {
    position: relative;
    width: 400px;
    height: 400px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-light) 100%);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    top: 100px;
    right: 0;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

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

.feature-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--gray-200);
}

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

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

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

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Marketplace Section */
.marketplace {
    padding: 5rem 0;
    background-color: var(--white);
}

.market-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.market-header-section > div {
    flex: 1;
    min-width: 300px;
}

.market-header-section .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.market-header-section .section-subtitle {
    text-align: left;
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
    max-width: 600px;
    margin-bottom: 0;
}

.btn-filter {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-filter:hover {
    border-color: #34A853;
    color: #34A853;
    background: #f1f8f4;
}

.btn-filter-active {
    background: linear-gradient(135deg, #34A853, #66BB6A) !important;
    border-color: #34A853 !important;
    color: #fff !important;
}

.btn-pagination {
    background: #fff;
    border: 2px solid #e0e0e0;
    color: #333;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-pagination:hover {
    border-color: #34A853;
    color: #34A853;
    background: #f1f8f4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 168, 83, 0.2);
}

.btn-pagination-active {
    background: linear-gradient(135deg, #34A853, #66BB6A);
    color: #fff;
    border: 2px solid #34A853;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.btn-pagination.btn-pagination-nav {
    padding: 10px 20px;
    border: 2px solid #34A853;
    color: #34A853;
}

#sortSelect,
.sort-select {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: #fff;
    cursor: pointer;
    min-width: 180px;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

#sortSelect:hover,
.sort-select:hover {
    border-color: #34A853;
    background-color: #f1f8f4;
}

#sortSelect:focus,
.sort-select:focus {
    outline: none;
    border-color: #34A853;
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.btn-add-listing {
    padding: 0.625rem 1.25rem;
    white-space: nowrap;
    font-size: 0.9375rem;
}

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

.market-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--google-green);
}

.market-card-used {
    opacity: 0.5;
    background-color: var(--gray-100);
    cursor: not-allowed;
    position: relative;
}

.market-card-used::after {
    content: 'Wykorzystane';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--gray-700);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

.market-card-used:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.market-card-used .btn-market {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Availability Badge */
.availability-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 60px;
    height: 60px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.availability-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.availability-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 4;
}

.availability-progress {
    fill: none;
    stroke: var(--google-green);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.availability-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.availability-number {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--google-green);
}

.availability-number.low-availability {
    color: #dc3545; /* Czerwony kolor gdy mało dostępnych */
}

.availability-total {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-600);
    margin-top: 2px;
}

.market-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
}

.market-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.market-info {
    flex: 1;
}

.market-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.market-location {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.market-location::before {
    content: "📍";
    font-size: 0.75rem;
}

.market-card-body {
    padding: 1.5rem;
    flex: 1;
}

.market-request {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.market-requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.requirement-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--gray-200);
}

.market-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-50);
    gap: 1rem;
}

.market-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--google-green);
    line-height: 1.2;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-market {
    padding: 0.75rem 1.5rem;
    background-color: var(--google-green);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-market:hover {
    background-color: var(--google-green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-market:active {
    transform: translateY(0);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

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

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--google-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.step p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.cta-section .btn-primary:hover {
    background-color: var(--gray-50);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
    width: 100%;
    margin: 0;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
    left: 0;
    right: 0;
    clear: both;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    width: 100%;
    box-sizing: border-box;
}

.footer-section {
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section h3 {
    color: var(--google-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
}

.footer-section a {
    display: block;
    color: var(--gray-300);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: visible;
}

.footer-section a:hover {
    color: var(--google-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-600);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        right: 20px;
        z-index: 1002;
    }

    /* Header musi być nad menu */
    .header {
        z-index: 1003;
        position: fixed;
        top: 0;
    }

    /* Wyśrodkuj logo na mobile */
    .header .container {
        justify-content: center;
        position: relative;
    }

    .logo {
        flex: 1;
        text-align: center;
        z-index: 1004;
        position: relative;
    }

    .logo h1 {
        text-align: center;
    }

    .mobile-menu-toggle {
        z-index: 1005;
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        padding-top: 70px;
        box-shadow: none;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        max-height: 100vh;
        overflow-y: auto;
        z-index: 1001;
        width: 100%;
        height: 100vh;
    }

    .nav.nav-open {
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
        border-bottom: 1px solid var(--gray-200);
        display: flex;
        align-items: center;
        transition: background-color 0.2s ease;
    }

    .nav-link:hover {
        background-color: var(--gray-50);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link-login {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        margin-top: 0.5rem;
        background-color: var(--google-green);
        color: var(--white) !important;
        border-radius: 0;
        border-bottom: none;
    }

    .nav-link-login:hover {
        background-color: var(--google-green-dark);
    }

    .user-profile-dropdown {
        width: 100%;
        margin-top: 0;
        border-bottom: 1px solid var(--gray-200);
    }

    .user-profile-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 1.25rem 2rem;
    }

    .profile-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--gray-200);
        border-radius: 0;
        background-color: var(--gray-50);
    }

    /* Usuń overlay - nie jest potrzebny, menu jest pełnoekranowe */
    body.menu-open::after {
        display: none;
    }

    /* Hero Section */
    .hero {
        min-height: 70vh;
        background-size: cover;
        background-position: center center;
        padding: 3rem 0;
    }

    .hero .container {
        padding: 0 20px;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    /* Features */
    .features {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* Marketplace */
    .marketplace {
        padding: 2rem 0;
    }

    .market-header-section {
        margin-bottom: 2rem;
    }

    /* Główny kontener - flex row z wrap */
    .market-header-section > div:first-child {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    /* Kontener z tytułem - tylko tytuł widoczny */
    .market-header-section > div:first-child > div:first-child {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
        flex: 1;
        min-width: 0;
    }

    .market-header-section .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Ukryj przycisk "Dodaj ogłoszenie" w kontenerze z tytułem */
    .market-header-section > div:first-child > div:first-child .btn-add-listing {
        position: absolute;
        bottom: -3.5rem;
        left: 0;
        width: auto !important;
        margin: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        white-space: nowrap;
        display: flex !important;
        z-index: 10;
    }

    /* Ustaw pozycję pierwszego div jako relative */
    .market-header-section > div:first-child {
        position: relative;
        margin-bottom: 3.5rem;
    }

    /* Statystyki obok tytułu (w tej samej linii) */
    .market-header-section > div:last-child {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-shrink: 0;
        margin-top: 0;
        align-self: flex-start;
    }

    .market-header-section > div:last-child > div:first-child {
        font-size: 1.75rem !important;
        line-height: 1;
    }

    .market-header-section > div:last-child > div:last-child {
        font-size: 0.7rem !important;
        white-space: nowrap;
    }

    /* Drugi div - kontener z opisem i sortowaniem */
    .market-header-section > div:nth-child(2) {
        width: 100%;
        margin-bottom: 1rem;
        position: relative;
    }

    /* Kontener z opisem i sortowaniem - flex row na mobile */
    .market-header-section > div:nth-child(2) > div {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    /* Ukryj opis na mobile */
    .market-header-section > div:nth-child(2) > div > .section-subtitle {
        display: none !important;
    }

    /* Pokaż przycisk "Dodaj ogłoszenie" w drugim div - po lewej stronie */
    .market-header-section > div:first-child > div:first-child .btn-add-listing {
        position: absolute;
        bottom: -3.5rem;
        left: 0;
        width: auto !important;
        margin: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.9375rem;
        white-space: nowrap;
        display: flex !important;
        z-index: 10;
    }

    /* Ustaw pozycję pierwszego div jako relative */
    .market-header-section > div:first-child {
        position: relative;
        margin-bottom: 3.5rem;
    }

    /* Kontener z sortowaniem - po prawej stronie */
    .market-header-section > div:nth-child(2) > div > div:last-child {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        order: 2;
        flex-shrink: 0;
        margin-left: auto;
    }

    .sort-select {
        width: auto;
        min-width: 150px;
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
        padding-right: 2.5rem;
    }

    .sort-select {
        width: auto;
        min-width: 150px;
        font-size: 0.875rem;
        padding: 0.75rem 0.875rem;
        padding-right: 2.5rem;
    }

    .section-subtitle {
        font-size: 0.9375rem !important;
        padding: 0;
        line-height: 1.6 !important;
        margin-bottom: 1rem !important;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .market-card {
        margin: 0;
        border-radius: 12px;
    }

    .availability-badge {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
    }

    .availability-badge .availability-circle {
        width: 50px;
        height: 50px;
    }

    .availability-badge .availability-number {
        font-size: 0.875rem;
    }

    .availability-badge .availability-total {
        font-size: 0.625rem;
    }

    .market-card-header {
        padding: 1.25rem;
        flex-wrap: wrap;
    }

    .market-card-body {
        padding: 1.25rem;
    }

    .market-request {
        font-size: 0.9375rem;
        line-height: 1.6;
    }

    .market-card-footer {
        flex-direction: column;
        align-items: stretch;
        padding: 1.25rem;
        gap: 1rem;
    }

    .market-price {
        width: 100%;
        align-items: flex-start;
    }

    .btn-market {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-pagination {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .btn-pagination.btn-pagination-nav {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .verification-warning {
        margin-top: -2rem !important;
        margin-bottom: 1.5rem !important;
        padding: 0.875rem;
    }

    .verification-warning-content {
        flex-direction: column;
        gap: 0.75rem;
    }

    .verification-warning-icon {
        font-size: 1.25rem;
    }

    .verification-warning-text strong {
        font-size: 0.9375rem;
    }

    .verification-warning-text p {
        font-size: 0.8125rem;
    }

    /* How It Works */
    .how-it-works {
        padding: 3rem 0;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.125rem;
    }

    .cta-section .btn {
        width: 100%;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 56px;
    }

    /* Header */
    .logo h1 {
        font-size: 1.25rem;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header .container {
        padding: 0 15px;
    }

    .mobile-menu-toggle {
        right: 15px;
    }

    .nav {
        padding-top: 60px;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .nav-link-login {
        padding: 0.875rem 1.5rem;
    }

    .user-profile-btn {
        padding: 1rem 1.5rem;
    }

    /* Hero */
    .hero {
        min-height: 60vh;
        background-size: cover;
        background-position: center center;
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1.25rem;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9375rem;
    }

    /* Features */
    .features {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem 1rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    /* Marketplace - Extra Small Devices */
    .marketplace {
        padding: 1.5rem 0;
    }

    .market-header-section {
        margin-bottom: 1.5rem;
    }

    .market-header-section .section-title {
        font-size: 1.5rem !important;
    }

    .market-header-section > div:last-child > div:first-child {
        font-size: 1.75rem !important;
    }

    .market-header-section > div:last-child > div:last-child {
        font-size: 0.65rem !important;
    }

    .sort-select {
        font-size: 0.8125rem;
        padding: 0.6875rem 0.75rem;
        padding-right: 2.25rem;
    }

    .section-subtitle {
        font-size: 0.875rem !important;
        padding: 0;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .market-card {
        border-radius: 10px;
    }

    .availability-badge {
        top: 8px;
        right: 8px;
        width: 45px;
        height: 45px;
    }

    .availability-badge .availability-circle {
        width: 45px;
        height: 45px;
    }

    .availability-badge .availability-number {
        font-size: 0.8125rem;
    }

    .availability-badge .availability-total {
        font-size: 0.5625rem;
    }

    .market-card-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    .market-info h3 {
        font-size: 1.0625rem;
        line-height: 1.3;
    }

    .market-location {
        font-size: 0.75rem;
    }

    .market-icon {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }

    .market-card-body {
        padding: 1rem;
    }

    .market-request {
        font-size: 0.8125rem;
        line-height: 1.6;
        margin-bottom: 0.875rem;
    }

    .requirement-badge {
        font-size: 0.625rem;
        padding: 0.25rem 0.5rem;
    }

    .market-card-footer {
        padding: 1rem;
        gap: 0.875rem;
    }

    .price-amount {
        font-size: 1.375rem;
    }

    .price-label {
        font-size: 0.625rem;
    }

    .btn-market {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-pagination {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .btn-pagination.btn-pagination-nav {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .btn-pagination-active {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }

    .market-card-used::after {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }

    .verification-warning {
        margin-top: -1.5rem !important;
        margin-bottom: 1.25rem !important;
        padding: 0.75rem;
        border-radius: 6px;
    }

    .verification-warning-icon {
        font-size: 1.125rem;
    }

    .verification-warning-text strong {
        font-size: 0.875rem;
    }

    .verification-warning-text p {
        font-size: 0.75rem;
    }

    /* How It Works */
    .how-it-works {
        padding: 2rem 0;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* CTA */
    .cta-section {
        padding: 2rem 0;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Auth Pages (Login/Register) */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

.auth-container {
    width: 100%;
    max-width: 450px;
    padding: 0 20px;
}

.auth-card {
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

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

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-header p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.flash-messages {
    margin-bottom: 1.5rem;
}

.flash-message {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.flash-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.flash-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

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

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--gray-900);
}

.form-group input:focus {
    outline: none;
    border-color: var(--google-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-help {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--google-green);
}

.checkbox-label a {
    color: var(--google-green);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--google-green);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 0.9375rem;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.auth-divider span {
    padding: 0 1rem;
}

.btn-google {
    width: 100%;
    padding: 0.9375rem;
    background-color: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-google:hover {
    background-color: var(--gray-50);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-400);
}

.btn-google svg {
    flex-shrink: 0;
}

.auth-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.auth-footer a {
    color: var(--google-green);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.nav-link-login {
    background-color: var(--google-green);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: inherit;
    line-height: 1.5;
    display: inline-flex;
    align-items: center;
    height: auto;
    vertical-align: middle;
}

.nav-link-login:hover {
    background-color: var(--google-green-dark);
    transform: translateY(-1px);
    color: var(--white) !important;
}

.nav-link-login::after {
    display: none;
}

/* User Profile Dropdown */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.user-profile-btn:hover {
    transform: scale(1.05);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-dark) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.user-profile-btn:hover .user-avatar {
    box-shadow: var(--shadow-lg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.profile-dropdown-email {
    font-size: 0.9375rem;
    color: var(--gray-700);
    font-weight: 500;
    word-break: break-all;
}

.profile-dropdown-divider {
    height: 1px;
    background-color: var(--gray-200);
    margin: 0.5rem 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.profile-dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--google-green);
}

.profile-dropdown-item span {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Responsive Auth */
@media (max-width: 480px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h2 {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 0.5rem;
    }
}

/* Market Page */
.market-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-dark) 100%);
    color: var(--white);
    text-align: center;
}

.market-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.market-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.market-listings {
    padding: 3rem 0;
    background-color: var(--gray-50);
    min-height: 60vh;
}

.market-filters {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-group label {
    font-weight: 500;
    color: var(--gray-700);
    font-size: 0.9375rem;
}

.filter-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    background-color: var(--white);
    color: var(--gray-900);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.filter-select:focus {
    outline: none;
    border-color: var(--google-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

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

.listing-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--google-green);
}

.listing-header {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.listing-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.listing-header-content {
    flex: 1;
}

.listing-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--google-green);
    color: var(--white);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.listing-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.listing-location {
    font-size: 0.875rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-body {
    padding: 1.5rem;
    flex: 1;
}

.listing-description {
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}

.listing-requirements {
    margin-bottom: 1.5rem;
}

.listing-requirements h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    color: var(--gray-700);
    font-size: 0.875rem;
    position: relative;
    line-height: 1.6;
}

.requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--google-green);
    font-weight: 600;
}

.listing-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.detail-label {
    color: var(--gray-600);
    font-weight: 500;
}

.detail-value {
    color: var(--gray-900);
    font-weight: 600;
}

.status-active {
    color: var(--google-green) !important;
    text-transform: capitalize;
}

.listing-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--gray-50);
    gap: 1rem;
    flex-wrap: wrap;
}

.listing-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--google-green);
    line-height: 1.2;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.listing-actions {
    display: flex;
    gap: 0.75rem;
}

.no-listings {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-600);
    font-size: 1.125rem;
}

.nav-link.active {
    color: var(--google-green);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--google-green);
}

/* Responsive Market */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .market-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .listing-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .listing-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-primary {
        width: 100%;
    }

    .market-hero-title {
        font-size: 2rem;
    }

    .market-hero-subtitle {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .listing-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .price-value {
        font-size: 1.75rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    animation: slideUp 0.3s ease;
    border: 1px solid var(--gray-200);
}

/* Ukryj badge dostępności w modalu - zawsze */
.modal-availability-badge {
    display: none !important;
}

.modal-availability-badge .availability-circle {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.modal-availability-badge .availability-bg {
    fill: none;
    stroke: var(--gray-200);
    stroke-width: 4;
}

.modal-availability-badge .availability-progress {
    fill: none;
    stroke: var(--google-green);
    stroke-width: 4;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}

.modal-availability-badge .availability-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--gray-900);
}

.modal-availability-badge .availability-number {
    font-size: 1.25rem;
    line-height: 1;
}

.modal-availability-badge .availability-number.low-availability {
    color: #dc3545; /* Czerwony kolor gdy mało dostępnych */
}

.modal-availability-badge .availability-total {
    font-size: 0.75rem;
    color: var(--gray-600);
    line-height: 1;
    margin-top: 2px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--gray-100);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.modal-close:hover {
    background-color: var(--gray-200);
    color: var(--gray-900);
    transform: rotate(90deg);
}

.modal-listing {
    padding: 0;
}

.modal-header {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    padding-top: 3rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gray-200);
}

.modal-icon {
    font-size: 4rem;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.modal-header-content {
    flex: 1;
}

.modal-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: var(--google-green);
    color: var(--white);
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.modal-location {
    font-size: 1rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-section {
    margin-bottom: 2rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.modal-section p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 1rem;
}

/* Sample Review Section */
.sample-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-200);
}

.sample-review-header h3 {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: var(--white);
    color: var(--google-green);
    border: 2px solid var(--google-green);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background-color: var(--google-green);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.copy-icon {
    font-size: 1rem;
}

.sample-review-box {
    background-color: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    padding: 1.25rem;
    margin-top: 1rem;
    position: relative;
}

.sample-review-box p {
    color: var(--gray-700);
    line-height: 1.8;
    font-size: 0.9375rem;
    margin: 0;
    white-space: pre-wrap;
}

.modal-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-requirements-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    color: var(--gray-700);
    font-size: 0.9375rem;
    position: relative;
    line-height: 1.7;
    border-bottom: 1px solid var(--gray-100);
}

.modal-requirements-list li:last-child {
    border-bottom: none;
}

.modal-requirements-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--google-green);
    font-weight: 700;
    font-size: 1.125rem;
}

.modal-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-detail-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-detail-value {
    font-size: 1.125rem;
    color: var(--gray-900);
    font-weight: 600;
}

.modal-detail-value.low-availability {
    color: #dc3545; /* Czerwony kolor gdy mało dostępnych */
}

.price-highlight {
    color: var(--google-green) !important;
    font-size: 1.5rem !important;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: center;
    gap: 1rem;
    background-color: var(--gray-50);
}

/* Spinner dla przycisku ładowania */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-loading {
    cursor: wait;
    opacity: 0.8;
}

.btn-loading:hover {
    transform: none;
}

.btn-link {
    background-color: #1976D2;
    cursor: pointer;
}

.btn-link:hover {
    background-color: #1565C0;
    transform: translateY(-2px);
}

.btn-link .btn-text {
    text-decoration: underline;
}

.btn-secondary {
    padding: 0.75rem 2rem;
    background-color: var(--gray-200);
    color: var(--gray-900);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--gray-300);
    transform: translateY(-1px);
}

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

/* Responsive Modal */
@media (max-width: 768px) {
    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
        max-width: 100%;
    }

    .modal-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
        padding-top: 3rem;
        gap: 1rem;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
    }

    .modal-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .modal-location {
        font-size: 0.875rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-section {
        margin-bottom: 1.5rem;
    }

    .modal-section h3 {
        font-size: 1.125rem;
        margin-bottom: 0.875rem;
    }

    .modal-section p {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .modal-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .modal-detail-item {
        gap: 0.375rem;
    }

    .modal-detail-label {
        font-size: 0.75rem;
    }

    .modal-detail-value {
        font-size: 1rem;
    }

    .price-highlight {
        font-size: 1.25rem !important;
    }

    .sample-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
        margin-bottom: 0.875rem;
    }

    .sample-review-header h3 {
        font-size: 1.125rem;
        margin-bottom: 0;
    }

    .btn-copy {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .sample-review-box {
        padding: 1rem;
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .modal-footer {
        padding: 1.25rem;
        justify-content: center;
    }

    .modal-footer .btn {
        width: 100%;
        max-width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 0;
    }

    .modal-content {
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }

    .modal-header {
        padding: 1rem;
        padding-top: 2.5rem;
        gap: 0.875rem;
    }

    .modal-icon {
        width: 55px;
        height: 55px;
        font-size: 2.25rem;
    }

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

    .modal-location {
        font-size: 0.8125rem;
    }

    .modal-body {
        padding: 1rem;
        max-height: calc(100vh - 250px);
        overflow-y: auto;
    }

    .modal-section {
        margin-bottom: 1.25rem;
    }

    .modal-section h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .modal-section p {
        font-size: 0.875rem;
    }

    .modal-details-grid {
        padding: 0.875rem;
        gap: 0.875rem;
    }

    .modal-detail-label {
        font-size: 0.6875rem;
    }

    .modal-detail-value {
        font-size: 0.9375rem;
    }

    .price-highlight {
        font-size: 1.125rem !important;
    }

    .sample-review-box {
        padding: 0.875rem;
        font-size: 0.8125rem;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.125rem;
        top: 0.625rem;
        right: 0.625rem;
    }

    .modal-footer {
        padding: 1rem;
        position: sticky;
        bottom: 0;
        background-color: var(--white);
        border-top: 2px solid var(--gray-200);
    }

    .modal-footer .btn {
        padding: 0.875rem 1rem;
        font-size: 0.875rem;
    }

    /* Configuration Modal - Extra Small */
    .configuration-modal-content {
        padding: 1.25rem;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .configuration-modal-header {
        margin-bottom: 1.25rem;
    }

    .configuration-modal-header h2 {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .configuration-modal-header p {
        font-size: 0.875rem;
    }

    .configuration-modal-buttons {
        gap: 0.75rem;
    }

    .config-btn {
        padding: 1rem;
        gap: 0.875rem;
    }

    .config-btn-icon {
        font-size: 1.75rem;
    }

    .config-btn-text h3 {
        font-size: 1rem;
    }

    .config-btn-text p {
        font-size: 0.8125rem;
    }

    .link-modal-content {
        padding: 1.25rem;
        width: 100%;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .link-form {
        margin-top: 1rem;
    }

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

    .link-form label {
        font-size: 0.875rem;
    }

    .link-form input[type="url"] {
        padding: 0.6875rem;
        font-size: 0.875rem;
    }

    .form-help-simple {
        font-size: 0.75rem;
        line-height: 1.5;
    }

    .link-form-actions {
        gap: 0.625rem;
    }

    .link-form-actions .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

/* Create Listing Page */
.create-listing-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-dark) 100%);
    color: var(--white);
    text-align: center;
}

.create-listing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.create-listing-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.create-listing-form-section {
    padding: 3rem 0;
    background-color: var(--gray-50);
    min-height: 60vh;
}

.create-listing-form {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

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

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

.create-listing-form label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.create-listing-form input[type="text"],
.create-listing-form input[type="number"],
.create-listing-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--gray-900);
}

.create-listing-form input:focus,
.create-listing-form textarea:focus {
    outline: none;
    border-color: var(--google-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.create-listing-form input.readonly-input {
    background-color: var(--gray-50);
    color: var(--gray-700);
    cursor: not-allowed;
    font-weight: 600;
}

.create-listing-form input.readonly-input:focus {
    border-color: var(--gray-300);
    box-shadow: none;
}

.create-listing-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.generate-sample-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.generate-sample-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.generate-sample-divider::before,
.generate-sample-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.generate-sample-divider span {
    padding: 0 1rem;
}

.btn-generate {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-generate:hover {
    background-color: var(--gray-200);
    border-color: var(--gray-400);
}

.btn-generate span {
    font-size: 1.25rem;
}

/* Responsive Create Listing */
@media (max-width: 768px) {
    .create-listing-title {
        font-size: 2rem;
    }

    .create-listing-subtitle {
        font-size: 1.125rem;
    }

    .create-listing-form {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-large,
    .btn-secondary,
    .btn-generate {
        width: 100%;
    }
}

/* My Reviews Page */
.my-reviews-hero {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--google-green) 0%, var(--google-green-dark) 100%);
    color: var(--white);
    text-align: center;
}

.my-reviews-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.my-reviews-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
}

.my-reviews-section {
    padding: 3rem 0;
    background-color: var(--gray-50);
    min-height: 60vh;
}

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

.btn-withdraw {
    background-color: #DC3545;
    color: var(--white);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-withdraw:hover {
    background-color: #C82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-withdraw:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.balance-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.balance-account {
    border-color: var(--google-green);
    background: linear-gradient(135deg, var(--white) 0%, #E8F5E9 100%);
}

.balance-pending {
    border-color: #FF9800;
    background: linear-gradient(135deg, var(--white) 0%, #FFF3E0 100%);
}

.balance-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.balance-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.balance-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.balance-action {
    margin-top: 1rem;
}

.balance-action .btn-withdraw {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.balance-account .balance-value {
    color: var(--google-green);
}

.balance-pending .balance-value {
    color: #E65100;
}

.balance-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-style: italic;
}

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

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--google-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat-accepted .stat-value {
    color: var(--google-green);
}

.stat-pending .stat-value {
    color: #FF9800;
}

.stat-rejected .stat-value {
    color: #F44336;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    flex-wrap: wrap;
    gap: 1rem;
}

.review-title-section {
    flex: 1;
}

.review-title-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.review-date {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.review-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-accepted {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.status-pending {
    background-color: #FFF3E0;
    color: #E65100;
    border: 1px solid #FFCC80;
}

.status-rejected {
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.review-body {
    padding: 1.5rem;
}

.review-text {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 0.9375rem;
    margin: 0;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background-color: var(--gray-50);
    flex-wrap: wrap;
    gap: 1rem;
}

.review-amount {
    display: flex;
    flex-direction: column;
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--google-green);
    line-height: 1.2;
}

.amount-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.review-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-outline-small,
.btn-secondary-small {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-outline-small {
    background-color: var(--white);
    color: var(--google-green);
    border: 2px solid var(--google-green);
}

.btn-outline-small:hover {
    background-color: var(--gray-50);
}

.btn-secondary-small {
    background-color: var(--gray-200);
    color: var(--gray-900);
}

.btn-secondary-small:hover {
    background-color: var(--gray-300);
}

.no-reviews {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.no-reviews p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Responsive My Reviews */
@media (max-width: 768px) {
    .my-reviews-title {
        font-size: 2rem;
    }

    .my-reviews-subtitle {
        font-size: 1.125rem;
    }

    .balance-section {
        grid-template-columns: 1fr;
    }

    .balance-card {
        flex-direction: column;
        text-align: center;
    }


    .balance-icon {
        width: 70px;
        height: 70px;
        font-size: 2.5rem;
    }

    .balance-value {
        font-size: 2rem;
    }

    .reviews-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .review-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-outline-small,
    .btn-secondary-small {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .balance-value {
        font-size: 1.75rem;
    }

    .reviews-stats {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 2rem;
    }

    .btn-withdraw {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* Configuration Modal */
.configuration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.configuration-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.configuration-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.configuration-modal-header p {
    font-size: 1rem;
    color: var(--gray-600);
}

.configuration-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.config-btn:hover {
    border-color: var(--google-green);
    background-color: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.config-btn:active {
    transform: translateY(0);
}

.config-btn-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.config-btn-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.config-btn-text p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    margin: 0;
}

.config-btn-buyer:hover {
    border-color: var(--google-green);
}

.config-btn-buyer:hover .config-btn-icon {
    transform: scale(1.1);
}

.config-btn-seller:hover {
    border-color: var(--google-green);
}

.config-btn-seller:hover .config-btn-icon {
    transform: scale(1.1);
}

/* Link Modal Form */
.link-modal-content {
    max-width: 500px;
}

.link-form {
    margin-top: 1.5rem;
}

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

.link-form label {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.link-form input[type="url"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.link-form input[type="url"]:focus {
    outline: none;
    border-color: var(--google-green);
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.1);
}

.form-help-simple {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Błędy formularza */
.form-error {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.875rem;
    color: #DC2626;
    line-height: 1.6;
    display: none;
}

.input-error {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.input-error:focus {
    border-color: #DC2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.help-link {
    color: var(--google-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

/* Modal wypłaty */
.withdraw-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.withdraw-modal-content {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: modalFadeIn 0.3s ease-out;
    position: relative;
}

.withdraw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.withdraw-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.withdraw-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.withdraw-modal-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-900);
}

.withdraw-modal-body {
    margin-top: 1.5rem;
}

.withdraw-info {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--google-green);
}

.withdraw-info strong {
    color: var(--google-green);
    font-size: 1.25rem;
}

.withdraw-form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.withdraw-form-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .withdraw-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .withdraw-modal-header h2 {
        font-size: 1.5rem;
    }

    .withdraw-form-actions {
        flex-direction: column;
    }

    .withdraw-form-actions .btn {
        width: 100%;
    }
}

/* Banner weryfikacji */
.verification-warning {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 8px;
    border-left: 4px solid #F59E0B;
}

.verification-warning-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.verification-warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.verification-warning-text {
    flex: 1;
}

.verification-warning-text strong {
    display: block;
    font-size: 1rem;
    color: #92400E;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.verification-warning-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #78350F;
    line-height: 1.5;
}

.verification-warning-text a {
    color: var(--google-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.verification-warning-text a:hover {
    color: var(--google-green-dark);
    text-decoration: underline;
}

.form-help-text a {
    color: var(--google-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-help-text a:hover {
    color: var(--google-green-dark);
    text-decoration: underline;
}

.form-help-text strong {
    color: var(--gray-900);
    font-weight: 600;
}

.link-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.link-form-actions .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.link-form-actions .btn-secondary {
    background-color: var(--gray-200);
    color: var(--gray-900);
}

.link-form-actions .btn-secondary:hover {
    background-color: var(--gray-300);
}

.link-form-actions .btn-primary {
    background-color: var(--google-green);
    color: var(--white);
}

.link-form-actions .btn-primary:hover {
    background-color: var(--google-green-dark);
}

.link-form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .configuration-modal-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 100%;
        border-radius: 12px;
    }

    .configuration-modal-header {
        margin-bottom: 1.5rem;
    }

    .configuration-modal-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .configuration-modal-header p {
        font-size: 0.9375rem;
    }

    .configuration-modal-buttons {
        gap: 0.875rem;
    }

    .config-btn {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
        gap: 1rem;
    }

    .config-btn-icon {
        font-size: 2rem;
    }

    .config-btn-text h3 {
        font-size: 1.125rem;
        margin-bottom: 0.375rem;
    }

    .config-btn-text p {
        font-size: 0.875rem;
        line-height: 1.5;
    }

    .link-modal-content {
        padding: 1.5rem;
        width: 95%;
        max-width: 100%;
    }

    .link-form {
        margin-top: 1.25rem;
    }

    .link-form .form-group {
        margin-bottom: 1.25rem;
    }

    .link-form label {
        font-size: 0.9375rem;
    }

    .link-form input[type="url"] {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }

    .form-help-simple {
        font-size: 0.8125rem;
    }

    .link-form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .link-form-actions .btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9375rem;
    }
}
