/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Design System Colors - FindMeNow (Light Palette) */
    --primary-color: #2563EB;     /* Vivid blue */
    --secondary-color: #60A5FA;   /* Sky blue */
    --cta-color: #10B981;         /* Emerald green */
    --background-color: #F0F7FF;  /* Very light blue bg */
    --text-color: #1E3A5F;        /* Deep navy text */

    /* Legacy colors for compatibility */
    --midnight-violet: #1E3A5F;
    --deep-twilight: #1E3A5F;
    --french-blue: #2563EB;
    --vibrant-blue: #2563EB;
    --light-blue: #93C5FD;
    --frozen-water: #EFF6FF;

    /* Mapping semantic variables */
    --text-main: var(--text-color);
    --bg-light: var(--background-color);
    --white: #ffffff;

    /* Additional colors */
    --light-gray: #f1f5f9;
    --success-color: var(--cta-color);
    --warning-color: #F59E0B;
    --error-color: #EF4444;

    /* Sistema shadow */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 6px 20px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.05);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-blue: 0 6px 20px rgba(37,99,235,0.30);

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transizioni */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Styles */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.04);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header.header-seller {
    background-color: rgba(219, 234, 254, 0.95) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid rgba(96,165,250,0.3) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 4px 15px rgba(37,99,235,0.1) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.logo span {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.06);
}

.auth-buttons .btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-login {
    color: var(--primary-color);
    margin-right: 1rem;
}

.btn-register {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-register:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    box-shadow: 0 8px 25px rgba(37,99,235,0.35);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 8rem 1rem 5rem;
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 40%, #1E40AF 100%);
    color: var(--white);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(166,207,213,0.12) 0%, transparent 65%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(219,234,254,0.95);
    line-height: 1.7;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

/* Features Section */
.features {
    padding: 4rem 1rem;
    background-color: white;
}

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

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

.feature-card {
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: var(--light-gray);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Global Footer Styles */
.footer {
    background-color: #1E3A5F;
    color: var(--white);
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: var(--frozen-water);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-section ul li a:hover {
    color: var(--white);
    opacity: 1;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--light-blue);
    color: var(--midnight-violet);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--frozen-water);
    opacity: 0.6;
}
.avatar-upload {
    display: inline-block;
    position: relative;
}

.avatar-edit-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    image-rendering: -webkit-optimize-contrast; /* Migliora la nitidezza su Chrome/Edge */
    image-rendering: crisp-edges;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 3rem;
    border: 3px solid #cbd5e1;
}

.avatar-edit-label {
    padding: 6px 18px;
    font-size: 0.85em;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 20px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.avatar-edit-label:hover {
    background-color: var(--midnight-violet);
    transform: translateY(-2px);
}


.avatar-header-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    color: #475569;
    font-size: 1.5rem;
}

/* Form Styles */
.form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
}

.error {
    color: #dc2626;
    margin-bottom: 1rem;
}

.success {
    color: #059669;
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-center {
    text-align: center;
}

/* Utility Classes */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.align-items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-100 { width: 100%; }
.gap-5 { gap: 5px; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }

.m-0 { margin: 0; }
.mt-5 { margin-top: 5px; }
.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-25 { margin-bottom: 25px; }
.mb-30 { margin-bottom: 30px; }
.max-w-500 { max-width: 500px !important; }
.max-w-600 { max-width: 600px !important; }
.max-w-800 { max-width: 800px !important; }
.max-w-900 { max-width: 900px !important; }
.min-w-250 { min-width: 250px !important; }
.w-full { width: 100% !important; }

.text-08 { font-size: 0.8em; }
.text-09 { font-size: 0.9em; }
.text-11 { font-size: 1.1em; }
.text-15 { font-size: 1.5rem; }
.text-22 { font-size: 2.2rem; }
.text-25 { font-size: 2.5rem; }
.text-30 { font-size: 3rem; }

.text-muted { color: #64748b !important; }
.text-success-dark { color: #166534 !important; }
.text-underline { text-decoration: underline !important; }
.no-underline { text-decoration: none !important; }

.pl-35 { padding-left: 35px !important; }
.m-auto { margin-left: auto; margin-right: auto; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-flex { display: inline-flex !important; }
.d-inline-block { display: inline-block !important; }
.bg-white { background-color: white !important; }
.br-4 { border-radius: 4px !important; }
.br-6 { border-radius: 6px !important; }
.br-8 { border-radius: 8px !important; }
.text-bold { font-weight: bold !important; }
.text-bold-500 { font-weight: 500 !important; }
.text-bold-600 { font-weight: 600 !important; }
.text-uppercase { text-transform: uppercase !important; }

.py-40 { padding-top: 40px; padding-bottom: 40px; }
.py-50 { padding-top: 50px; padding-bottom: 50px; }
.pb-40 { padding-bottom: 40px; }
.px-20 { padding-left: 20px; padding-right: 20px; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.border { border: 1px solid #e1e7ef; }
.bg-danger { background-color: #ef4444 !important; }
.bg-success { background-color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }

.offers-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dashboard-content {
    background-color: #f1f5f9;
    padding-top: 120px; /* Aumentato per evitare tagli con l'header fisso */
    padding-bottom: 60px;
    min-height: calc(100vh - 80px);
}

.dashboard-title-section {
    margin-bottom: 40px;
}

/* Enhanced Components */
.page-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 15px;
}

.page-title-group i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.page-title-group h1 {
    margin: 0;
    color: var(--midnight-violet);
    font-size: 2.2rem;
}

.status-pill {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending { background-color: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.status-accepted { background-color: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-rejected { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.status-completed { background-color: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }

.offer-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-frozen {
    background-color: var(--frozen-water) !important;
    border-color: var(--light-blue) !important;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37,99,235,0.15);
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.offer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--midnight-violet);
}

.offer-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.meta-item .label {
    font-weight: 600;
    color: var(--text-main);
}

.offer-message-box {
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    margin: 15px 0;
    font-style: italic;
    color: #334155;
}

.offer-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.alert-premium {
    border: 2px solid #059669;
    padding: 1.5rem;
    background-color: #f0fdf4;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-premium h4 {
    color: #166534;
    margin: 0 0 10px 0;
}

.filter-bar-premium {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid var(--vibrant-blue);
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    font-size: 0.95em;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    background-color: #fafbfc;
    color: var(--text-color);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-control:focus {
    outline: none;
    border-color: var(--vibrant-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.form-control::placeholder {
    color: #94a3b8;
}

.listing-card-compact {
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.agreement-box {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.8;
    color: var(--text-main);
}

.agreement-box h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--frozen-water);
    padding-bottom: 15px;
}

.agreement-box h3 {
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 12px;
}
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {
    .logo img {
        width: 32px;
        height: 32px;
    }
    
    .logo span {
        font-size: 1.3rem;
    }
}


/* AUTH STYLES */

/* Aggiungi/aggiorna questi stili nel tuo file css/style.css */

.auth-page {
    background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 40%, #eff6ff 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

.auth-page::before {
    content: '';
    position: fixed;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(166,207,213,0.12) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-top: 60px; /* Per compensare l'header fisso */
}

.auth-box {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 2.75rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 60px rgba(0,0,0,0.10), 0 8px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    z-index: 1;
    animation: authBoxSlide 0.4s cubic-bezier(0.4,0,0.2,1);
}

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

.auth-box h2 {
    color: var(--midnight-violet);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

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

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background: #f8fafc;
    color: var(--text-color);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--vibrant-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.auth-form input::placeholder {
    color: #94a3b8;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-blue);
    letter-spacing: 0.1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.38);
}

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.auth-links a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--deep-twilight);
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-container {
        padding: 1rem;
    }
    
    .auth-box {
        padding: 1.5rem;
    }
}

/* LOGIN */

/* Aggiungi questi stili al tuo file css/style.css */

/* Remember me e Password dimenticata */
.remember-me {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Effetto pulsante */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.btn-submit:active::after {
    transform: translate(-50%, -50%) scale(2);
}

/* Animazione icone */
.form-group label i {
    transition: transform 0.3s ease;
}

.form-group:focus-within label i {
    transform: scale(1.1);
    color: var(--primary-color);
}

/* Media Queries */
@media (max-width: 480px) {
    .remember-me {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
/* Dashboard Layout */
.dashboard-header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}


.dashboard-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    gap: 1rem;
}

/* Sidebar */
.dashboard-sidebar {
    width: 250px;
    background: white;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: calc(100vh - 80px);
    position: sticky;
    top: 70px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s;
    gap: 0.75rem;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Main Content Area */
.main-content {
    flex: 1;
    padding: 1rem;
    background: #f8fafc;
    margin-top: 4.5rem;
}

/* Header Navigation */
.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.4rem;
    margin: 0 1rem;
}

.search-form input {
    padding: 0.5rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-md);
    width: 300px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
    background: #f8fafc;
}

.search-form input:focus {
    outline: none;
    border-color: var(--vibrant-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.search-form button {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-blue);
}

.search-form button:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,99,235,0.35);
}

/* User Menu */
.user-menu {
    position: relative;
    cursor: pointer;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.06);
    min-width: 210px;
    padding: 0.4rem;
    display: none;
    z-index: 2000;
}

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

.user-menu.open .dropdown-menu {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f1f5f9;
    color: var(--vibrant-blue);
}

.dropdown-menu hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.5rem 0;
}

.dropdown-menu .logout {
    color: #dc2626;
}

/* Quick Actions */
.welcome-section {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.action-card {
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Dashboard Footer */
.dashboard-footer {
    background: white;
    padding: 1rem;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 1rem;
}

.footer-right a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
    }

    .search-form input {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .nav-center {
        display: none;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 400px;
    position: relative;
    animation: modalSlideDown 0.3s ease-out;
}

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

.close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Listings Styles */
.listings-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.25rem;
}

.listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.listings-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--midnight-violet);
    letter-spacing: -0.3px;
}

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

.listing-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.12);
}

.listing-image {
    height: 200px;
    overflow: hidden;
}

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

.listing-content {
    padding: 1.25rem;
}

.listing-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--midnight-violet);
    margin: 0.5rem 0;
    line-height: 1.4;
}

.listing-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.listing-description {
    color: #666;
    margin-bottom: 1rem;
}

.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.listing-location {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .listings-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 10% auto;
        width: 90%;
    }
}
.modal-alert {
    margin-bottom: 1rem;
}

.modal-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Listing Details Styles */
.listing-details-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.listing-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.listing-gallery {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.listing-header {
    margin-bottom: 2rem;
}

.listing-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.listing-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.listing-price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.listing-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.detail-item {
    background: var(--light-gray);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.detail-item span {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.detail-item strong {
    display: block;
    color: var(--text-color);
}

.listing-description {
    margin: 2rem 0;
}

.listing-description h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seller-info {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    margin-top: 2rem;
}

.seller-info h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.seller-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-meta h3 {
    margin-bottom: 0.25rem;
}

.seller-meta p {
    color: #666;
}

.similar-listings {
    margin-top: 3rem;
}

.similar-listings h2 {
    margin-bottom: 1.5rem;
}

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

    .main-image {
        height: 300px;
    }

    .listing-details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .listing-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .listing-header h1 {
        font-size: 1.5rem;
    }

    .listing-price {
        font-size: 1.5rem;
    }
}
/* Stili per la visualizzazione limitata */
.welcome-banner {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 45%, #1E40AF 100%);
    color: white;
    padding: 3.5rem 2.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30,58,95,0.25);
}

.welcome-banner::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(166,207,213,0.18) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 8s ease-in-out infinite;
}

.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(194,231,217,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 10s ease-in-out infinite reverse;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(20px, -20px) scale(1.05); }
    66%       { transform: translate(-15px, 15px) scale(0.95); }
}

.welcome-banner h1 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.welcome-banner p {
    font-size: 1.1rem;
    color: rgba(219,234,254,0.95);
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.banner-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.banner-actions .btn {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.banner-actions .btn-primary {
    background: white;
    color: var(--french-blue);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.banner-actions .btn-primary:hover {
    background: #EFF6FF;
    color: #1E3A5F;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.banner-actions .btn-secondary {
    background: rgba(255,255,255,0.12);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
}

.banner-actions .btn-secondary:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-3px);
    color: white;
}

.limited-view {
    position: relative;
    filter: blur(0.5px);
}

.limited-view:hover {
    cursor: pointer;
}

.limited-view .listing-description {
    position: relative;
    overflow: hidden;
    max-height: 3.6em; /* 2 lines */
}

.blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, white);
    padding: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 500;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.3rem 0.85rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(166,207,213,0.25));
    border: 1px solid rgba(37,99,235,0.14);
    color: var(--french-blue);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
}
/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.92rem;
    letter-spacing: 0.1px;
}

.btn i {
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    color: white;
    box-shadow: 0 3px 12px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(37,99,235,0.38);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    color: var(--midnight-violet);
    transform: translateY(-1px);
}

.btn-login {
    color: var(--primary-color);
    background-color: transparent;
    border: 1.5px solid rgba(37,99,235,0.3);
}

.btn-login:hover {
    background-color: rgba(37,99,235,0.06);
    border-color: var(--vibrant-blue);
}

.btn-register {
    background: linear-gradient(135deg, var(--vibrant-blue), var(--french-blue));
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-register:hover {
    background: linear-gradient(135deg, #1D4ED8, #1E40AF);
    box-shadow: 0 8px 25px rgba(37,99,235,0.35);
    transform: translateY(-2px);
    color: white;
}

/* Disabled state */
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}
.action-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}


/* Category Selection Grid (Profile & Modals) */
.category-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.category-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    user-select: none;
    color: var(--midnight-violet);
}

.category-checkbox-label:hover {
    border-color: var(--secondary-color);
    background: #f1f5f9;
    transform: translateY(-1px);
}

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

.category-checkbox-label:has(input:checked) {
    background: var(--frozen-water) !important;
    border-color: var(--light-blue) !important;
    font-weight: 600;
}

/* ===========================
   DESIGN ENHANCEMENTS v2
   =========================== */

/* Status Pills migliorate */
.status-pill {
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.73rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-pending  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-accepted { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.status-rejected { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.status-completed{ background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }

/* Dashboard Header area */
.page-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    border-bottom: 2px solid rgba(166,207,213,0.4);
    padding-bottom: 16px;
}

.page-title-group i {
    font-size: 2.2rem;
    color: var(--french-blue);
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(166,207,213,0.2));
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.page-title-group h1 {
    margin: 0;
    color: var(--midnight-violet);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.4px;
}

/* Dashboard content */
.dashboard-content {
    background-color: #f1f5f9;
    padding-top: 110px;
    padding-bottom: 60px;
    min-height: calc(100vh - 70px);
}

/* Offer message box */
.offer-message-box {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--light-blue);
    margin: 14px 0;
    font-style: italic;
    color: #475569;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* Alert premium */
.alert-premium {
    border: 1.5px solid #059669;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(5,150,105,0.1);
}

.alert-premium h4 {
    color: #166534;
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 700;
}

/* Offer price */
.offer-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--french-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.3px;
}

/* Listing price */
.listing-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--vibrant-blue);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Listing description */
.listing-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Listing footer */
.listing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-location {
    color: #64748b;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-location i {
    color: var(--vibrant-blue);
    opacity: 0.7;
}

/* Modal improvements */
.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem 2.25rem;
    border-radius: var(--radius-lg);
    max-width: 420px;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    animation: modalSlideDown 0.3s cubic-bezier(0.4,0,0.2,1);
}

.modal-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--midnight-violet);
    margin-bottom: 1.5rem;
    letter-spacing: -0.2px;
}

/* Sidebar navigation */
.dashboard-sidebar {
    width: 240px;
    background: white;
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    height: calc(100vh - 80px);
    position: sticky;
    top: 70px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    gap: 0.75rem;
    font-weight: 500;
    font-size: 0.93rem;
}

.sidebar-nav li.active a,
.sidebar-nav a:hover {
    background: linear-gradient(135deg, var(--vibrant-blue), var(--french-blue));
    color: white;
    box-shadow: var(--shadow-blue);
}

/* Avatar improvement */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(37,99,235,0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Search bar container */
.search-bar-container {
    margin-bottom: 20px;
}

/* Form select */
.form-select {
    width: 100%;
    padding: 0.8rem 1.1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background-color: #f8fafc;
    cursor: pointer;
    color: var(--text-color);
}

.form-select:focus {
    outline: none;
    border-color: var(--vibrant-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* Footer improvements */
.footer {
    background: linear-gradient(135deg, var(--deep-twilight) 0%, var(--midnight-violet) 100%);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-section h3::after {
    background: linear-gradient(90deg, var(--light-blue), var(--frozen-water));
    height: 3px;
    border-radius: 2px;
}

.social-links a {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    transition: var(--transition);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--vibrant-blue), var(--french-blue));
    border-color: transparent;
    transform: translateY(-4px);
    color: white;
    box-shadow: var(--shadow-blue);
}

/* Feature cards */
.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37,99,235,0.12);
}

.feature-icon {
    font-size: 2.2rem;
    color: var(--vibrant-blue);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(166,207,213,0.2));
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

/* Empty state */
.text-center.py-40 {
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px dashed #e2e8f0;
}

.text-center.py-40 i {
    color: #cbd5e1;
    margin-bottom: 16px;
}

.text-center.py-40 p {
    color: #94a3b8;
    font-size: 1.05rem;
}

/* Agreement box */
.agreement-box {
    background: white;
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 900px;
    margin: 40px auto;
    line-height: 1.8;
}

.agreement-box h1 {
    color: var(--vibrant-blue);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--frozen-water);
    padding-bottom: 15px;
    font-weight: 800;
}

/* Hover-reveal scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Smooth focus ring for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 3px solid rgba(37,99,235,0.45);
    outline-offset: 2px;
}

/* Card sold / accepted badge */
.badge-sold, .badge-active {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-sold   { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.badge-active { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }

/* listing-card-compact enhancement */
.listing-card-compact {
    background: white;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 16px;
    transition: var(--transition);
}

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

/* Checkbox agreement */
.checkbox-agreement-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--text-color);
    line-height: 1.5;
}

.checkbox-agreement-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--vibrant-blue);
    cursor: pointer;
}

/* Modal footer buttons */
.modal-footer-end {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* Page header for index */
.listings-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--midnight-violet);
    letter-spacing: -0.3px;
}

/* Search form in filter bar */
.filter-bar-premium .form-control {
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.filter-bar-premium .form-control:focus {
    background: white;
}

/* Responsive final touch */
@media (max-width: 768px) {
    .welcome-banner {
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }
    .welcome-banner h1 {
        font-size: 1.7rem;
    }
    .banner-actions {
        flex-direction: column;
        align-items: center;
    }
    .banner-actions .btn {
        width: 100%;
        justify-content: center;
    }
    .auth-box {
        padding: 2rem 1.5rem;
    }
    .offer-card {
        padding: 18px;
    }
    .page-title-group h1 {
        font-size: 1.6rem;
    }
}
/* ===========================
   HOW IT WORKS - Come Funziona
   =========================== */

.how-it-works {
    margin: 2.5rem 0 2rem;
    text-align: center;
}

.how-it-works__title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--midnight-violet);
    margin-bottom: 0.5rem;
}

.how-it-works__subtitle {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.how-it-works__grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

/* Divisore centrale */
.hiw-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    margin-top: 180px;
}

.hiw-divider span {
    background: #e2e8f0;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Card generica */
.hiw-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem 1.8rem 1.8rem;
    text-align: left;
    border: 1px solid #e9eef5;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: var(--transition);
}

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

/* Variante buyer */
.hiw-card--buyer {
    border-top: 4px solid var(--vibrant-blue);
}

/* Variante seller */
.hiw-card--seller {
    border-top: 4px solid #10b981;
}

/* Header della card */
.hiw-card__header {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hiw-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.hiw-card--buyer .hiw-card__icon {
    background: #eff6ff;
    color: var(--vibrant-blue);
}

.hiw-card--seller .hiw-card__icon {
    background: #ecfdf5;
    color: #10b981;
}

.hiw-card__header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--midnight-violet);
    margin: 0;
}

.hiw-card__header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Lista passi */
.hiw-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.hiw-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.hiw-card--buyer .hiw-step__num {
    background: #dbeafe;
    color: var(--vibrant-blue);
}

.hiw-card--seller .hiw-step__num {
    background: #d1fae5;
    color: #059669;
}

.hiw-step div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hiw-step strong {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--midnight-violet);
    line-height: 1.3;
}

.hiw-step span {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
}

/* CTA button */
.hiw-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.hiw-card__cta--seller {
    background: #10b981;
    color: white;
    border: none;
    cursor: pointer;
}

.hiw-card__cta--seller:hover {
    background: #059669;
    color: white;
}

/* Responsive */
@media (max-width: 820px) {
    .how-it-works__grid {
        grid-template-columns: 1fr;
    }

    .hiw-divider {
        margin-top: 0;
        padding: 1rem 0;
    }

    .hiw-card {
        padding: 1.5rem;
    }
}

/* ===================================================
   WELCOME BANNER — layout hero con immagine laterale
   =================================================== */
.welcome-banner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    text-align: left !important;
    gap: 2.5rem !important;
    padding: 2.5rem 2.5rem !important;
}

.welcome-banner__content {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    position: relative;
    z-index: 1;
}

.welcome-banner__content h1,
.welcome-banner__content p {
    text-align: left !important;
}

.welcome-banner__content p {
    margin: 0 !important;
    max-width: none !important;
}

.welcome-banner__content .banner-actions {
    justify-content: flex-start !important;
}

.welcome-banner__image {
    flex: 0 0 380px !important;
    width: 380px !important;
    height: 270px !important;
    position: relative;
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.welcome-banner__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* ===================================================
   HIW CARDS — foto in cima alle card
   =================================================== */
.hiw-card {
    overflow: hidden;
}

.hiw-card__photo {
    margin: -2rem -1.8rem 0;
    height: 175px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.hiw-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hiw-card:hover .hiw-card__photo img {
    transform: scale(1.04);
}

@media (max-width: 820px) {
    .welcome-banner {
        flex-direction: column;
        text-align: center !important;
        padding: 2rem 1.5rem !important;
    }

    .welcome-banner__content .banner-actions {
        justify-content: center;
    }

    .welcome-banner__image {
        flex: none;
        width: 100%;
        height: 200px;
    }

    .hiw-card__photo {
        margin: -1.5rem -1.5rem 0;
        height: 150px;
    }
}

/* ==============================================
   CLEAN LIGHT LANDING PAGE - FindMeNow
   ============================================== */

/* ── Hero Section ── */
.hero-section {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 50%, #1E40AF 100%);
    padding: 130px 0 90px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Subtle grid */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridPulse 8s ease-in-out infinite;
    z-index: 0;
}

/* Soft orb */
.hero-section::after {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    animation: orbFloat 12s ease-in-out infinite;
    z-index: 0;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, -40px) scale(1.1); }
    66% { transform: translate(-30px, 60px) scale(0.9); }
}

/* Second orb via JS-free trick */
.hero-orb-right {
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: orbFloat 15s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: heroSlideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
    font-family: 'Rubik', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.12;
    color: #ffffff;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-highlight {
    background: linear-gradient(90deg, #bfdbfe, #93c5fd, #a5f3fc);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-top: 0.4rem;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(219,234,254,0.9);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

/* Hero Search Bar */
.hero-search {
    margin-bottom: 2rem;
}

.search-input-group {
    position: relative;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-group:hover,
.search-input-group:focus-within {
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 0 30px rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.search-icon {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
    margin-left: 8px;
}

.search-hero-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    padding: 14px 8px;
    background: transparent;
    color: #ffffff;
    font-family: inherit;
}

.search-hero-input::placeholder {
    color: rgba(219,234,254,0.7);
}

.search-hero-btn {
    background: #ffffff;
    color: #1D4ED8;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    letter-spacing: 0.02em;
}

.search-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    background: #EFF6FF;
}

.popular-searches {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.popular-searches span {
    color: rgba(219,234,254,0.8);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.popular-searches a {
    background: rgba(255,255,255,0.12);
    color: #dbeafe;
    text-decoration: none;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.25s ease;
}

.popular-searches a:hover {
    background: rgba(255,255,255,0.25);
    color: white;
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Hero CTA Group */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-hero-primary {
    background: #ffffff;
    color: #1D4ED8;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-hero-primary:hover::before { opacity: 1; }

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.2);
    color: #1D4ED8;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    color: #dbeafe;
    text-decoration: none;
    padding: 16px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.22);
    color: white;
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Hero Visual - Floating Cards */
.hero-visual {
    position: relative;
    height: 420px;
    animation: heroSlideRight 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-cards-floating {
    position: relative;
    height: 100%;
}

.hero-card {
    position: absolute;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 22px;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 210px;
    animation: floatCard 3s ease-in-out infinite;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: all 0.3s ease;
}

.hero-card:hover {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 12px 48px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.3);
}

.hero-card-1 {
    top: 20px;
    left: 0;
    animation-delay: 0s;
}

.hero-card-2 {
    top: 140px;
    right: 0;
    animation-delay: 1s;
}

.hero-card-3 {
    top: 280px;
    left: 50px;
    animation-delay: 2s;
}

.card-icon {
    width: 46px;
    height: 46px;
    background: rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.card-price {
    font-weight: 800;
    color: #a7f3d0;
    font-size: 1.1rem;
}

.card-offers {
    font-size: 0.82rem;
    color: #dbeafe;
    background: rgba(255,255,255,0.15);
    padding: 4px 10px;
    border-radius: 12px;
    text-align: center;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Hero Stats Bar */
.hero-stats {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    margin-top: 70px;
    padding: 32px 40px;
    border-radius: 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Rubik', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    color: rgba(219,234,254,0.8);
    font-weight: 600;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Categories Section ── */
.categories-section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

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

.section-header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    color: #1E3A5F;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1.15rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(37,99,235,0.1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(37,99,235,0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.category-card:hover::after {
    opacity: 1;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563EB, #60A5FA, #10B981);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 16px 48px rgba(37,99,235,0.12);
}

.category-icon {
    width: 66px;
    height: 66px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(96,165,250,0.1));
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(37,99,235,0.1);
}

.category-card:hover .category-icon {
    transform: scale(1.12) rotate(6deg);
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 8px 20px rgba(37,99,235,0.35);
    border-color: transparent;
}

.category-card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 8px;
}

.category-count {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ── How It Works ── */
.how-it-works-new {
    background: #f0f7ff;
    padding: 100px 2rem;
    position: relative;
    overflow: hidden;
}

.how-it-works-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.how-it-works-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.hiw-step-card {
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 36px;
    text-align: center;
    border: 1px solid rgba(37,99,235,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(37,99,235,0.07);
}

.hiw-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #60A5FA);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hiw-step-card.hiw-businesses::before {
    background: linear-gradient(90deg, #10B981, #059669);
}

.hiw-step-card:hover::before {
    transform: scaleX(1);
}

.hiw-step-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 20px 60px rgba(37,99,235,0.12);
}

.hiw-step-card.hiw-businesses:hover {
    border-color: rgba(16,185,129,0.25);
    box-shadow: 0 20px 60px rgba(16,185,129,0.1);
}

.hiw-icon-wrapper {
    margin-bottom: 24px;
}

.hiw-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(96,165,250,0.1));
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 2rem;
    margin: 0 auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.hiw-businesses .hiw-icon {
    background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(5,150,105,0.08));
    border-color: rgba(16,185,129,0.25);
    color: #059669;
    box-shadow: 0 4px 16px rgba(16,185,129,0.12);
}

.hiw-step-card:hover .hiw-icon {
    transform: scale(1.1) rotate(-5deg);
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    border-color: transparent;
}

.hiw-step-card.hiw-businesses:hover .hiw-icon {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 8px 24px rgba(16,185,129,0.35);
}

.hiw-content h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 12px;
}

.hiw-content p {
    color: #64748b;
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.hiw-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(37,99,235,0.3);
}

.hiw-businesses .step-num {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 10px rgba(16,185,129,0.3);
}

.step-text {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
    text-align: center;
    max-width: 80px;
}

.flow-arrow {
    color: #94a3b8;
    font-size: 1.1rem;
    font-weight: bold;
}

.btn-hiw-primary,
.btn-hiw-secondary {
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hiw-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 6px 18px rgba(37,99,235,0.3);
}

.btn-hiw-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(37,99,235,0.4);
    color: white;
}

.btn-hiw-secondary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    box-shadow: 0 6px 18px rgba(16,185,129,0.3);
}

.btn-hiw-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16,185,129,0.4);
    color: white;
}

/* ── Trust Section ── */
.trust-section {
    padding: 100px 2rem;
    background: #EFF6FF;
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.trust-features {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.trust-feature {
    text-align: center;
    padding: 36px 28px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(37,99,235,0.1);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06);
}

.trust-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.05) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.trust-feature:hover::after { opacity: 1; }

.trust-feature:hover {
    transform: translateY(-8px);
    border-color: rgba(37,99,235,0.2);
    box-shadow: 0 16px 48px rgba(37,99,235,0.12);
}

.trust-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(96,165,250,0.1));
    border: 1px solid rgba(37,99,235,0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 1.75rem;
    margin: 0 auto 22px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.trust-feature:hover .trust-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35);
    border-color: transparent;
}

.trust-feature h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.trust-feature p {
    color: #64748b;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ── Animations ── */
@keyframes heroSlideUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroSlideRight {
    from { opacity: 0; transform: translateX(70px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33%       { transform: translateY(-12px) rotate(0.5deg); }
    66%       { transform: translateY(-6px) rotate(-0.5deg); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(124,58,237,0.3); }
    50%       { box-shadow: 0 0 40px rgba(124,58,237,0.6); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .hero-title { font-size: 2.4rem; }
    .hero-description { font-size: 1.05rem; margin: 0 auto 2rem; }
    .hero-visual { height: 300px; }
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 24px;
    }
    .stat-number { font-size: 1.9rem; }
    .how-it-works-grid { grid-template-columns: 1fr; }
    .hero-cta-group { flex-direction: column; align-items: stretch; }
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .search-hero-btn { border-radius: 8px; }
    .popular-searches { justify-content: center; }
    .trust-features { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-section { padding: 100px 0 60px; }
    .categories-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.9rem; }
    .hiw-step-card { padding: 32px 20px; }
    .hiw-flow { flex-direction: column; gap: 16px; }
    .flow-arrow { transform: rotate(90deg); }
}

/* ================================================
   LIGHT CLEAN THEME — GLOBAL OVERRIDE
   Applicato a tutte le pagine (senza toccare PHP)
   ================================================ */

/* ── Base ── */
body {
    background-color: #f0f7ff !important;
    color: #1E3A5F !important;
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Header ── */
.header {
    background-color: rgba(255,255,255,0.96) !important;
    border-bottom: 1px solid rgba(37,99,235,0.1) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 20px rgba(37,99,235,0.06) !important;
}

.header.header-seller {
    background-color: rgba(239,246,255,0.97) !important;
    border-bottom: 1px solid rgba(37,99,235,0.15) !important;
}

.logo span {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.btn-login {
    color: #2563EB !important;
    background: transparent !important;
}

.btn-register {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.28) !important;
}

.btn-register:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,0.38) !important;
}

/* ── Main content background ── */
.main-content {
    background: #f0f7ff !important;
    min-height: 100vh;
}

/* ── Auth pages ── */
.auth-page {
    background: linear-gradient(135deg, #f0f7ff 0%, #dbeafe 40%, #eff6ff 100%) !important;
}

.auth-page::before {
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 65%) !important;
}

.auth-page::after {
    background: radial-gradient(circle, rgba(96,165,250,0.1) 0%, transparent 65%) !important;
}

.auth-container {
    background: transparent !important;
}

.auth-box {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    box-shadow: 0 8px 30px rgba(37,99,235,0.08), 0 2px 8px rgba(0,0,0,0.04) !important;
}

.auth-box h1,
.auth-box h2 {
    color: #1E3A5F !important;
}

.auth-form label,
.form-group label {
    color: #374151 !important;
}

.auth-form input,
.form-group input {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1E3A5F !important;
}

.auth-form input:focus,
.form-group input:focus {
    background: #ffffff !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

.auth-form input::placeholder,
.form-group input::placeholder {
    color: #94a3b8 !important;
}

.auth-links { color: #64748b !important; }
.auth-links a { color: #2563EB !important; }
.auth-links a:hover { color: #1D4ED8 !important; }

.remember-me { color: #64748b !important; }
.forgot-password { color: #2563EB !important; }

/* ── Buttons ── */
.btn-submit {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    box-shadow: 0 4px 16px rgba(37,99,235,0.3) !important;
}

.btn-submit:hover {
    box-shadow: 0 8px 24px rgba(37,99,235,0.4) !important;
    transform: translateY(-2px) !important;
}

.btn.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #2563EB, #1D4ED8) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 3px 12px rgba(37,99,235,0.25) !important;
}

.btn.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37,99,235,0.38) !important;
    transform: translateY(-2px) !important;
}

.btn.btn-secondary,
a.btn-secondary,
button.btn-secondary {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.btn.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
    background: #e2e8f0 !important;
    border-color: #cbd5e1 !important;
    color: #1E3A5F !important;
}

.btn.btn-danger,
button.btn-danger {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.btn.btn-danger:hover { background: #fecaca !important; }

/* ── Alerts ── */
.alert-error {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}

.alert-success {
    background: #dcfce7 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
}

.alert-premium {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5) !important;
    border: 1.5px solid #059669 !important;
}

.alert-premium h4 { color: #166534 !important; }

/* ── Form controls ── */
.form-control {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1E3A5F !important;
}

.form-control:focus {
    background: #ffffff !important;
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
}

.form-control::placeholder { color: #94a3b8 !important; }

textarea.form-control { color: #1E3A5F !important; }

select.form-control,
select {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1E3A5F !important;
}

select option { background: #ffffff !important; color: #1E3A5F !important; }

/* ── Dashboard ── */
.dashboard-content {
    background: #f0f7ff !important;
}

.dashboard-title-section .page-title-group h1,
.page-title-group h1 {
    color: #1E3A5F !important;
}

.page-title-group { border-bottom-color: rgba(37,99,235,0.15) !important; }
.page-title-group i { color: #2563EB !important; }

/* ── Cards (offer, listing, compact) ── */
.offer-card,
.listing-card-compact,
.card {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.08) !important;
    box-shadow: 0 2px 12px rgba(37,99,235,0.06) !important;
}

.offer-card:hover,
.listing-card-compact:hover {
    border-color: rgba(37,99,235,0.2) !important;
    box-shadow: 0 8px 30px rgba(37,99,235,0.12) !important;
}

.offer-header { border-bottom-color: #f1f5f9 !important; }
.offer-header h3 { color: #1E3A5F !important; }
.offer-actions { border-top-color: #f1f5f9 !important; }

.offer-message-box {
    background: #f8fafc !important;
    border-left-color: #2563EB !important;
    color: #475569 !important;
}

.offer-price { color: #2563EB !important; }
.listing-price { color: #2563EB !important; }
.listing-description { color: #64748b !important; }
.listing-footer { border-top-color: #f1f5f9 !important; }
.listing-location { color: #64748b !important; }
.listing-location i { color: #60A5FA !important; }

.meta-item { color: #475569 !important; }
.meta-item i { color: #60A5FA !important; }
.meta-item .label { color: #1E3A5F !important; }

/* Status pills — light variants */
.status-pending   { background: #fef3c7 !important; color: #92400e !important; border-color: #fde68a !important; }
.status-accepted  { background: #d1fae5 !important; color: #065f46 !important; border-color: #6ee7b7 !important; }
.status-rejected  { background: #fee2e2 !important; color: #991b1b !important; border-color: #fca5a5 !important; }
.status-completed { background: #dbeafe !important; color: #1e40af !important; border-color: #93c5fd !important; }

/* ── Listing details page ── */
.listing-details-container { background: transparent !important; }

.listing-details {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.08) !important;
    box-shadow: 0 4px 20px rgba(37,99,235,0.07) !important;
    border-radius: 20px !important;
}

.listing-header h1 { color: #1E3A5F !important; }
.listing-meta { color: #64748b !important; }

.detail-item {
    background: #f0f7ff !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    color: #475569 !important;
}

/* ── Filter bar ── */
.filter-bar-premium {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    border-left: 3px solid #2563EB !important;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06) !important;
}

.filter-status { color: #475569 !important; }
.color-midnight { color: #2563EB !important; }

/* ── Listings grid ── */
.listings-container { background: transparent !important; }

.listings-header h1 { color: #1E3A5F !important; }

.listing-card {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.08) !important;
    box-shadow: 0 2px 10px rgba(37,99,235,0.06) !important;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1) !important;
}

.listing-card:hover {
    border-color: rgba(37,99,235,0.2) !important;
    box-shadow: 0 8px 30px rgba(37,99,235,0.12) !important;
    transform: translateY(-4px) !important;
}

.listing-card .category-tag {
    background: rgba(37,99,235,0.08) !important;
    color: #1D4ED8 !important;
    border: 1px solid rgba(37,99,235,0.15) !important;
}

.listing-card h3 { color: #1E3A5F !important; }

.card-frozen {
    background: #EFF6FF !important;
    border-color: rgba(37,99,235,0.15) !important;
}

.badge-active  { background: #dcfce7 !important; color: #16a34a !important; }
.badge-sold    { background: #fee2e2 !important; color: #dc2626 !important; }

/* ── Modals ── */
.modal { background: rgba(0,0,0,0.4) !important; }

.modal-content {
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    box-shadow: 0 16px 50px rgba(37,99,235,0.12) !important;
    color: #1E3A5F !important;
}

.modal-content h2 { color: #1E3A5F !important; }
.modal-content .close { color: #94a3b8 !important; }
.modal-content .close:hover { color: #2563EB !important; }
.modal-content p,
.modal-content label { color: #475569 !important; }

/* category selection inside modal */
.category-checkbox-label {
    color: #374151 !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}

.category-checkbox-label:hover {
    border-color: #93C5FD !important;
    color: #1E3A5F !important;
}

/* ── Profile page ── */
.avatar-placeholder {
    background: #dbeafe !important;
    border: 2px solid #93C5FD !important;
    color: #2563EB !important;
}

.avatar-edit-label {
    background: #dbeafe !important;
    color: #2563EB !important;
    border: 1px solid #93C5FD !important;
}

/* ── Search bar (dashboard) ── */
.search-bar-container .form-control,
.search-bar-container input {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #1E3A5F !important;
}

/* ── Agreement / Terms / Static pages ── */
.agreement-box {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    box-shadow: 0 4px 20px rgba(37,99,235,0.07) !important;
    color: #374151 !important;
    margin-top: 100px !important;
}

.agreement-box h1 { color: #1E3A5F !important; border-bottom-color: rgba(37,99,235,0.12) !important; }
.agreement-box h2 { color: #1E3A5F !important; }
.agreement-box h3 { color: #2563EB !important; }
.agreement-box p, .agreement-box li { color: #475569 !important; }
.agreement-box a { color: #2563EB !important; }

/* ── Footer ── */
.footer {
    background: #1E3A5F !important;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

.footer-section h3 { color: #93C5FD !important; }
.footer-section h3::after { background: #60A5FA !important; }
.footer-section ul li a { color: #bfdbfe !important; opacity: 1 !important; }
.footer-section ul li a:hover { color: #ffffff !important; padding-left: 5px; }
.footer-bottom { border-top-color: rgba(255,255,255,0.1) !important; color: #93C5FD !important; opacity: 1 !important; }
.footer-bottom a { color: #bfdbfe !important; }

/* ── Subscription expired page ── */
.subscription-expired-container,
.subscription-box {
    background: #ffffff !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    color: #475569 !important;
}

/* ── HR / dividers ── */
hr, .hr-spacing {
    border-color: #e2e8f0 !important;
}

/* ── Text utilities override ── */
h1, h2, h3, h4, h5, h6 { color: #1E3A5F; }
p { color: #374151; }
.text-muted { color: #64748b !important; }
a { color: #2563EB; }
a:hover { color: #1D4ED8; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; background: #f0f7ff; }
::-webkit-scrollbar-thumb { background: rgba(37,99,235,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(37,99,235,0.4); }

/* ── User menu dropdown ── */
.dropdown-menu {
    background: #ffffff !important;
    backdrop-filter: none !important;
    border: 1px solid rgba(37,99,235,0.1) !important;
    box-shadow: 0 8px 30px rgba(37,99,235,0.1) !important;
}

.dropdown-menu a { color: #374151 !important; }
.dropdown-menu a:hover { background: #f0f7ff !important; color: #2563EB !important; }
.dropdown-menu hr { border-color: #e2e8f0 !important; }
.dropdown-menu a.logout { color: #dc2626 !important; }
.dropdown-menu a.logout:hover { background: #fee2e2 !important; }

/* ── Search form ── */
.search-form input {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #1E3A5F !important;
}

.search-form input:focus {
    border-color: #2563EB !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1) !important;
    background: #ffffff !important;
}

/* ── Checkbox labels (register page) ── */
.checkbox-label { color: #374151 !important; }
input[type="checkbox"] { accent-color: #2563EB; }

/* ── Report / appeal forms ── */
.report-container,
.appeal-container {
    background: transparent !important;
    padding-top: 100px;
}

/* make page wrapper on static pages legible */
.main-content > .container,
.main-content > div:not(.hero-section):not(.listings-container) {
    color: #374151;
}


/* ── Pagamenti: riepilogo commissione e stato Stripe ── */
.fee-summary {
    margin-top: 12px;
    padding: 12px 14px;
    background: var(--frozen-water);
    border: 1px solid var(--light-blue);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-main);
}
.fee-summary .fee-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 3px 0;
}
.fee-summary .fee-row-total {
    border-top: 1px solid var(--light-blue);
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1.05rem;
}
.fee-summary .fee-row-total strong { color: var(--success-color); }
.fee-summary small { display: block; margin-top: 8px; line-height: 1.4; }

.payments-box {
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--light-blue);
    border-radius: var(--radius-sm);
    background: var(--white);
}
.payments-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.payments-box p { margin: 0 0 12px; line-height: 1.5; }
.payments-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.payments-status.is-none       { background: var(--light-gray); color: #475569; }
.payments-status.is-pending    { background: #fef3c7; color: #92400e; }
.payments-status.is-complete   { background: #dcfce7; color: #166534; }
.payments-status.is-restricted { background: #fee2e2; color: #b91c1c; }

.alert-info {
    background: #eff6ff !important;
    color: #1e40af !important;
    border: 1px solid #bfdbfe !important;
}

/* ── Ordine (dopo il pagamento) ── */
.order-panel {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--light-blue);
    border-radius: var(--radius-sm);
    background: var(--frozen-water);
    font-size: 0.92rem;
}
.order-panel h4 { margin: 0 0 10px; font-size: 1rem; }
.order-panel p { margin: 6px 0; line-height: 1.45; }
.order-steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    gap: 4px;
}
.order-steps li {
    flex: 1;
    text-align: center;
    padding: 5px 2px;
    font-size: 0.78rem;
    border-radius: 4px;
    background: var(--light-gray);
    color: #64748b;
}
.order-steps li.done { background: var(--primary-color); color: #fff; font-weight: 600; }
.order-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.order-form textarea, .order-form input[type="text"], .order-form select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--light-blue);
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-actions > * { flex: 1 1 140px; }
.order-more { margin-top: 8px; }
.order-more summary { cursor: pointer; color: var(--primary-color); font-weight: 600; }
.order-return { border-left: 3px solid var(--warning-color); padding-left: 10px; }
.order-quote { font-style: italic; color: #475569; }
.order-hint, .order-info { color: #475569; font-size: 0.86rem; }
.order-panel .btn-link { background: none; border: 0; color: #64748b; text-decoration: underline; cursor: pointer; padding: 0; align-self: flex-start; }
.status-refunded  { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #cbd5e1 !important; }
.status-withdrawn { background: #f1f5f9 !important; color: #64748b !important; border: 1px solid #e2e8f0 !important; }

/* ─── Avviso "sito in beta testing" (home) — togliere al lancio ─────────── */
.beta-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1100px;
    margin: 16px auto 24px;
    padding: 18px 22px;
    border-radius: 14px;
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    border: 2px solid #D97706;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.30);
    color: #451A03;
}
.beta-badge {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: #451A03;
    color: #FEF3C7;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
}
.beta-text { display: flex; flex-direction: column; gap: 4px; }
.beta-text strong {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: #451A03;
}
.beta-text span { font-size: 1rem; font-weight: 500; line-height: 1.45; }
@media (max-width: 600px) {
    .beta-banner { margin: 10px 12px 18px; padding: 14px 16px; gap: 12px; align-items: flex-start; }
    .beta-text strong { font-size: 1.08rem; }
    .beta-text span { font-size: 0.92rem; }
}
