/* ============================================================
   B2BSteel - فایل استایل کامل
   پلتفرم تخصصی قالب فلزی بتن و سوله
   ============================================================ */

/* ===== متغیرها ===== */
:root {
    --primary: #0A1628;
    --primary-light: #1A2A4A;
    --primary-dark: #060E1E;
    --secondary: #2563EB;
    --secondary-light: #3B82F6;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --info: #3B82F6;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.18);
    --shadow-2xl: 0 30px 80px rgba(0,0,0,0.25);
    
    --font-main: 'Vazirmatn', 'Segoe UI', 'Tahoma', 'Arial', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== ریست ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-family: var(--font-main);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden { display: none !important; }

/* ============================================================
   ===== انیمیشن‌ها =====
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}
@keyframes shimmerWave {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}
@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}
@keyframes floatParticle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 1; transform: translateY(-20px) scale(1); }
    80% { opacity: 1; transform: translateY(-60px) scale(1); }
    100% { opacity: 0; transform: translateY(-100px) scale(0); }
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes slideUp {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

.fade-in-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ============================================================
   ===== ناوبری =====
   ============================================================ */
.navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226,232,240,0.6);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* دکمه همبرگری */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    flex-shrink: 0;
    order: 2;
    z-index: 1001;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.hamburger:hover { background: rgba(0,0,0,0.04); }
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--secondary);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background: var(--secondary);
}

/* لوگو */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    order: 1;
}
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.logo:hover img { transform: scale(1.05); }
.logo-text h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-text .slogan {
    font-size: 0.65rem;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
    -webkit-text-fill-color: var(--secondary);
}

/* منوی ناوبری */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    order: 3;
    flex: 1;
    justify-content: flex-end;
}
.nav-link {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--primary);
    background: rgba(37,99,235,0.06);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: var(--transition);
    transform: translateX(50%);
    border-radius: 4px;
}
.nav-link:hover::after { width: 50%; }
.nav-link.active::after { width: 50%; }
.nav-link.active {
    color: var(--primary);
    background: rgba(37,99,235,0.06);
}

/* ============================================================
   ===== دکمه‌ها =====
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: var(--transition);
}
.btn:hover::before { transform: translateX(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,99,235,0.4);
}
.btn-secondary {
    background: var(--bg);
    color: var(--text-dark);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-color);
}
.btn-outline:hover {
    background: var(--bg);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}
.btn-sm {
    padding: 6px 16px;
    font-size: 0.75rem;
}
.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
    border-radius: 16px;
}
.btn-warning {
    background: var(--warning);
    color: #000;
    border-color: var(--warning);
    box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.4);
}
.btn-success {
    background: var(--success);
    color: white;
    border-color: var(--success);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16,185,129,0.3);
}
.btn-danger {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239,68,68,0.3);
}
.btn-info {
    background: var(--info);
    color: white;
    border-color: var(--info);
}
.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59,130,246,0.3);
}

/* ============================================================
   ===== اسلایدشو =====
   ============================================================ */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 40px 40px;
    margin-bottom: 0;
    background: var(--primary-dark);
    padding-bottom: 20px;
}

.hero-slideshow {
    width: 100%;
    height: 700px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.hero-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}
.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(37,99,235,0.4) 60%, rgba(245,158,11,0.15) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    color: white;
    text-align: center;
    top: 45%;
    transform: translateY(-50%);
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}
.hero-slide-content .badge-top {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}
.hero-slide-content h2 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
    line-height: 1.2;
}
.hero-slide-content h2 .highlight {
    color: var(--accent);
}
.hero-slide-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 2rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    font-weight: 400;
}
.hero-slide-content .hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* شمارنده‌های اسلایدشو */
.hero-stats {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 15;
    display: flex;
    gap: 40px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 18px 48px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 10px;
    width: fit-content;
    max-width: 95%;
}
.hero-stat {
    text-align: center;
    color: white;
}
.hero-stat .number {
    font-size: 2.2rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat .label {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
    -webkit-text-fill-color: rgba(255,255,255,0.8);
}

/* نشانگرهای اسلاید */
.slide-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    gap: 10px;
}
.slide-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}
.slide-dot:hover {
    background: rgba(255,255,255,0.6);
}
.slide-dot.active {
    background: var(--accent);
    border-color: white;
    transform: scale(1.2);
}

/* ============================================================
   ===== ویژگی‌ها =====
   ============================================================ */
.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2.5rem;
    letter-spacing: -0.5px;
    position: relative;
}
.section-title .highlight {
    color: var(--secondary);
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    margin: 16px auto 0;
    border-radius: 4px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: -1.5rem auto 3rem;
    padding: 0 16px;
}

.features {
    padding: 4rem 0 2rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.feature-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}
.feature-card:hover::before {
    opacity: 1;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(37,99,235,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
    border: 1px solid rgba(37,99,235,0.1);
}
.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    transform: scale(1.05) rotate(-4deg);
    box-shadow: 0 8px 30px rgba(37,99,235,0.3);
}
.feature-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============================================================
   ===== فرم‌ها و مودال‌ها =====
   ============================================================ */
.auth-container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1rem;
}
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}
.auth-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg);
    font-family: var(--font-main);
}
.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
    background: white;
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}
.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.user-type-selector {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.user-type-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: var(--bg);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-width: 100px;
}
.user-type-btn:hover {
    background: var(--border-color);
    color: var(--text-dark);
}
.user-type-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* مودال‌ها */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active {
    display: flex;
    animation: fadeInUp 0.3s ease;
}
.modal-content {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    animation: fadeInScale 0.3s ease;
}
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-radius: 24px 24px 0 0;
}
.modal-header h3 {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 700;
}
.close-modal {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 4px 12px;
    border-radius: 8px;
    line-height: 1;
}
.close-modal:hover {
    color: var(--danger);
    background: rgba(239,68,68,0.1);
    transform: rotate(90deg);
}
.modal-body {
    padding: 2rem;
}
.modal-footer {
    padding: 1.2rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 24px 24px;
    flex-wrap: wrap;
}

/* ============================================================
   ===== کارت‌های درخواست و پیشنهاد =====
   ============================================================ */
.request-item {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.request-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
    transform: translateY(-2px);
}
.request-header {
    background: var(--bg);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-radius: 20px 20px 0 0;
}
.request-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}
.request-badge {
    padding: 4px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.badge-open { background: #DBEAFE; color: #1E40AF; }
.badge-completed { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-pending { background: #FEF3C7; color: #92400E; }
.badge-verified { background: #D1FAE5; color: #065F46; }

.request-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.request-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.bid-item {
    background: var(--bg);
    border-radius: 14px;
    padding: 1rem;
    margin-top: 0.8rem;
    border-right: 4px solid var(--success);
    transition: var(--transition);
}
.bid-item:hover {
    background: #F1F5F9;
}
.bid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.bid-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--success);
}

/* ============================================================
   ===== فوتر =====
   ============================================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}
.footer h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}
.footer h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent);
    margin-top: 6px;
    border-radius: 4px;
}
.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.8;
}
.footer a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.footer a:hover {
    color: var(--accent);
    transform: translateX(-4px);
}
.footer .social-links {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.footer .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
}
.footer .social-links a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    border-color: var(--accent);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ============================================================
   ===== نوار لوگو =====
   ============================================================ */
.logo-bar {
    background: linear-gradient(135deg, #0A1628 0%, #1A2A4A 50%, #0A1628 100%);
    padding: 1.5rem 0;
    position: relative;
    overflow: hidden;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--secondary), var(--accent), var(--secondary));
    border-image-slice: 1;
}
.logo-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.03) 20%,
        rgba(255,255,255,0.06) 40%,
        rgba(255,255,255,0.03) 60%,
        transparent 100%
    );
    animation: shimmerWave 4s ease-in-out infinite;
    z-index: 1;
}
.logo-bar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 1;
}
.logo-bar .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    animation: floatParticle 6s ease-in-out infinite;
}
.logo-bar .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.logo-bar .particle:nth-child(2) { top: 70%; left: 25%; animation-delay: 1.5s; width: 3px; height: 3px; }
.logo-bar .particle:nth-child(3) { top: 30%; left: 80%; animation-delay: 3s; width: 5px; height: 5px; }
.logo-bar .particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 4.5s; width: 3px; height: 3px; }
.logo-bar .particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 2s; width: 6px; height: 6px; }

.logo-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
    z-index: 3;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.logo-bar-item {
    flex-shrink: 0;
    animation: logoFloat 3s ease-in-out infinite;
}
.logo-bar-image {
    height: 60px;
    width: auto;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 20px rgba(37,99,235,0.2));
}
.logo-bar-image:hover {
    transform: scale(1.1) rotate(-3deg);
    filter: drop-shadow(0 0 30px rgba(37,99,235,0.4));
}
.logo-bar-text {
    text-align: right;
}
.logo-bar-text h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}
.logo-bar-text h2::after {
    content: '●';
    position: absolute;
    top: -5px;
    right: -25px;
    font-size: 0.6rem;
    color: var(--accent);
    -webkit-text-fill-color: var(--accent);
    animation: blinkDot 2s ease-in-out infinite;
}
.logo-bar-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
    -webkit-text-fill-color: rgba(255,255,255,0.6);
}
.logo-bar-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent);
    flex-shrink: 0;
}

/* ============================================================
   ===== بلاگ =====
   ============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--secondary);
}
.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}
.blog-card:hover img {
    transform: scale(1.03);
}
.blog-card .blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-card .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 8px;
}
.blog-card .blog-category {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.blog-card .blog-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.blog-card h3 {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card .blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 8px;
}
.blog-card .blog-author {
    color: var(--text-dark);
    font-size: 0.85rem;
    font-weight: 500;
}
.blog-card .blog-author i {
    color: var(--secondary);
    margin-left: 5px;
}
.blog-card .btn-read {
    background: transparent;
    color: var(--secondary);
    border: 1.5px solid var(--secondary);
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.blog-card .btn-read:hover {
    background: var(--secondary);
    color: white;
    transform: translateX(-4px);
}

/* ============================================================
   ===== پنل ادمین =====
   ============================================================ */
.admin-panel {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.admin-header-left h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}
.admin-header-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.admin-header-left p span {
    color: var(--secondary);
    font-weight: 600;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.admin-stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.admin-stat-card .stat-icon.blue { background: #DBEAFE; color: #1D4ED8; }
.admin-stat-card .stat-icon.green { background: #D1FAE5; color: #065F46; }
.admin-stat-card .stat-icon.yellow { background: #FEF3C7; color: #92400E; }
.admin-stat-card .stat-icon.red { background: #FEE2E2; color: #991B1B; }
.admin-stat-card .stat-icon.purple { background: #EDE9FE; color: #5B21B6; }
.admin-stat-card .stat-icon.pink { background: #FCE7F3; color: #9D174D; }
.admin-stat-card .stat-info h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.admin-stat-card .stat-info .value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.admin-tabs-modern {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    background: white;
    padding: 0.6rem;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.admin-tab {
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
}
.admin-tab:hover {
    background: var(--bg);
    color: var(--primary);
}
.admin-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(10,22,40,0.2);
}
.admin-tab .tab-badge {
    background: var(--danger);
    color: white;
    border-radius: 30px;
    padding: 1px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-right: 2px;
}
#admin-content {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.user-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 10px;
}
.user-row:hover {
    background: var(--bg);
}
.user-row:last-child {
    border-bottom: none;
}
.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.user-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}
.user-name {
    font-weight: 600;
    color: var(--text-dark);
}
.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.user-status {
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-pending { background: #FEF3C7; color: #92400E; }
.status-verified { background: #D1FAE5; color: #065F46; }
.status-rejected { background: #FEE2E2; color: #991B1B; }
.status-blocked { background: #FEE2E2; color: #991B1B; }

.request-with-bids {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}
.request-with-bids:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}
.request-with-bids .request-header {
    background: var(--bg);
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-radius: 14px 14px 0 0;
}
.request-with-bids .request-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.05rem;
}
.request-with-bids .buyer-info {
    background: #F0FDF4;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-right: 3px solid var(--success);
}
.request-with-bids .buyer-info strong {
    color: var(--primary);
}
.request-with-bids .request-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 1rem;
}
.request-with-bids .request-details-grid div {
    font-size: 0.9rem;
}
.request-with-bids .request-details-grid strong {
    color: var(--primary);
}
.bids-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--border-color);
}
.bids-container h4 {
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.bid-item {
    background: var(--bg);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    border-right: 4px solid var(--info);
    transition: all 0.2s ease;
}
.bid-item:hover {
    background: #F1F5F9;
}
.bid-item .bid-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.bid-item .bid-seller {
    font-weight: 600;
    color: var(--primary);
}
.bid-item .bid-price {
    font-weight: 700;
    color: var(--success);
    font-size: 1.1rem;
}
.bid-item .bid-status {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.bid-item .bid-status.selected {
    background: #D1FAE5;
    color: #065F46;
}
.bid-item .bid-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

/* ============================================================
   ===== دکمه‌های زبان =====
   ============================================================ */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.08);
    padding: 4px;
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.language-switcher:hover {
    background: rgba(255,255,255,0.12);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-main);
    white-space: nowrap;
    position: relative;
}
.lang-btn .lang-flag {
    font-size: 1rem;
    line-height: 1;
}
.lang-btn .lang-name {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
}
.lang-btn:hover {
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}
.lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 4px 15px rgba(37,99,235,0.3);
}
.lang-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37,99,235,0.4);
}
.nav-links .language-switcher {
    background: rgba(0,0,0,0.04);
    border-color: var(--border-color);
    padding: 3px;
}
.nav-links .lang-btn {
    color: var(--text-muted);
    padding: 4px 12px;
}
.nav-links .lang-btn:hover {
    color: var(--text-dark);
    background: rgba(0,0,0,0.04);
}
.nav-links .lang-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}
.language-switcher-fixed {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(226,232,240,0.6);
}
.language-switcher-fixed .lang-btn {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.language-switcher-fixed .lang-btn:hover {
    background: rgba(0,0,0,0.04);
    color: var(--text-dark);
}
.language-switcher-fixed .lang-btn.active {
    background: var(--secondary);
    color: white;
    box-shadow: 0 2px 10px rgba(37,99,235,0.25);
}

/* ============================================================
   ===== صفحات قوانین و راهنما =====
   ============================================================ */
.rules-page, .guide-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px 80px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    box-sizing: border-box;
    overflow-x: hidden;
}
.rules-page h1, .guide-page h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    border-bottom: 3px solid var(--secondary);
    padding-bottom: 16px;
    margin-bottom: 32px;
}
.rules-page h2, .guide-page h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 32px;
    margin-bottom: 12px;
}
.rules-page p, .rules-page li,
.guide-page p, .guide-page li {
    font-size: 15px;
    line-height: 1.9;
    color: #334155;
    margin-bottom: 10px;
}
.rules-page ul, .guide-page ul {
    padding-right: 24px;
    margin-bottom: 16px;
}
.rules-page ul li, .guide-page ul li {
    list-style: disc;
    margin-bottom: 6px;
}

/* ============================================================
   ===== داشبورد =====
   ============================================================ */
.dashboard {
    padding: 2rem 0;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.dashboard-header .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dashboard-header .user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}
.dashboard-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
}
.dashboard-header p {
    color: var(--text-muted);
    margin: 0;
}
.dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 1rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    text-align: center;
}
.stat-card h3 {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

/* ============================================================
   ===== صفحه مشاوره =====
   ============================================================ */
.consult-item {
    accent-color: var(--secondary);
}
.consult-priority {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 5px;
    background: white;
}
.image-upload-container {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.image-upload-container:hover {
    border-color: var(--secondary);
    background: rgba(37,99,235,0.05);
}
.image-upload-container i {
    font-size: 3rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}
.image-upload-container p {
    color: #6b7280;
    margin: 0;
}
.image-upload-container .form-help {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================================
   ===== صفحه پروفایل =====
   ============================================================ */
.seller-contact-info {
    background: #f0fdf4;
    padding: 1rem;
    border-radius: 10px;
    border-right: 3px solid var(--success);
    margin: 1rem 0;
}
.seller-contact-info h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}
.seller-contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
}
.seller-contact-info .contact-icon {
    width: 30px;
    height: 30px;
    background: #e6f7e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    font-size: 0.8rem;
}

/* ============================================================
   ===== توست =====
   ============================================================ */
.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

/* ============================================================
   ===== 🟢 ریسپانسیو کامل - نسخه نهایی =====
   ============================================================ */

/* ===== تبلت (تا 992px) ===== */
@media (max-width: 992px) {
    .hero-slideshow { height: 600px; }
    .hero-slide-content h2 { font-size: 2.8rem; }
    .hero-slide-content p { font-size: 1rem; }
    .hero-stats {
        padding: 14px 28px;
        gap: 24px;
        border-radius: 40px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-stat .number { font-size: 1.6rem; }
    .hero-stat .label { font-size: 0.7rem; }
    .slide-dots { bottom: 90px; }
    .section-title { font-size: 2rem; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== 🟢 موبایل (تا 768px) ===== */
@media (max-width: 768px) {
    
    /* ----- ناوبری و منو ----- */
    .navbar { padding: 0.4rem 0; }
    .nav-container { padding: 0 12px; }
    
    .hamburger { display: flex; order: 2; }
    .logo { order: 1; flex: 1; }
    .logo img { height: 36px; }
    .logo-text h1 { font-size: 1.1rem; }
    .logo-text .slogan { font-size: 0.55rem; }
    
    .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        padding: 16px 0 8px;
        gap: 6px;
        border-top: 2px solid var(--border-color);
        margin-top: 12px;
        order: 3;
        flex: 1 1 100%;
        justify-content: flex-start;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.open { display: flex !important; }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 16px !important;
        font-size: 0.9rem;
        white-space: normal;
        border-radius: 8px;
    }
    .nav-link::after { display: none; }
    .nav-link:hover { background: var(--bg); }
    
    .nav-links .btn {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
    .nav-links .language-switcher {
        width: 100%;
        justify-content: center;
        background: var(--bg);
        padding: 8px;
        margin-top: 8px;
        border-radius: 10px;
    }
    .nav-links .lang-btn { padding: 6px 16px; color: var(--text-muted); }
    .nav-links .lang-btn.active { color: #fff; }
    
    /* دکمه‌های منو */
    .btn { padding: 6px 14px; font-size: 0.75rem; }
    .btn-lg { padding: 10px 24px; font-size: 0.9rem; }
    
    /* ----- اسلایدشو موبایل ----- */
    .hero-slideshow { 
        height: 520px; 
        border-radius: 0 0 20px 20px; 
    }
    .hero-slide-content { 
        padding: 0 16px;
        top: 42%;
    }
    .hero-slide-content h2 { 
        font-size: 2.2rem; 
        margin-bottom: 0.5rem;
    }
    .hero-slide-content p { 
        font-size: 0.9rem; 
        margin-bottom: 1.5rem;
    }
    .hero-slide-content .badge-top { 
        font-size: 0.65rem; 
        padding: 4px 14px; 
        margin-bottom: 0.8rem;
    }
    .hero-slide-content .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .hero-slide-content .hero-buttons .btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 20px;
    }
    
    .hero-stats {
        padding: 10px 14px;
        gap: 14px;
        border-radius: 30px;
        flex-wrap: wrap;
        justify-content: center;
        width: 90%;
        background: rgba(255,255,255,0.15);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        z-index: 20;
        margin: -15px auto 0;
    }
    .hero-stat .number { font-size: 1.4rem; }
    .hero-stat .label { font-size: 0.65rem; }
    .slide-dots { bottom: 85px; gap: 8px; }
    .slide-dot { width: 10px; height: 10px; }
    
    /* ----- عنوان‌ها ----- */
    .section-title { 
        font-size: 1.6rem; 
        padding: 0 16px;
    }
    .section-subtitle { 
        font-size: 0.95rem; 
        padding: 0 20px;
        margin-bottom: 2rem;
    }
    
    /* ----- ویژگی‌ها ----- */
    .features { padding: 2rem 0; }
    .features-grid { 
        grid-template-columns: 1fr; 
        padding: 0 12px;
    }
    .feature-card { padding: 1.2rem; }
    
    /* ----- فرم‌ها ----- */
    .auth-card { padding: 1.5rem; }
    .user-type-selector { 
        flex-direction: column; 
        gap: 0.5rem;
    }
    .user-type-btn {
        min-width: unset;
        padding: 10px;
    }
    
    /* ----- مودال‌ها ----- */
    .modal-content { 
        max-width: 100%; 
        margin: 10px; 
        border-radius: 16px; 
    }
    .modal-header { 
        padding: 1rem 1.2rem; 
        flex-wrap: wrap;
        gap: 8px;
    }
    .modal-header h3 { font-size: 1.1rem; }
    .modal-body { padding: 1.2rem; }
    .modal-footer { 
        padding: 1rem 1.2rem; 
        justify-content: center;
    }
    
    /* ----- فوتر ----- */
    .footer { padding: 2.5rem 0 1.5rem; }
    .footer-content { 
        grid-template-columns: 1fr 1fr; 
        text-align: center; 
        gap: 1.5rem;
        padding: 0 16px;
    }
    .footer h3::after { margin: 6px auto 0; }
    .footer .social-links { justify-content: center; }
    .footer-content > div { text-align: center; }
    .footer a { display: block; }
    
    /* ----- بلاگ ----- */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0 12px;
    }
    .blog-card { width: 100%; }
    .blog-card img { height: 200px; }
    .blog-card h3 { font-size: 1rem; }
    
    /* ----- پنل ادمین ----- */
    .admin-header {
        flex-direction: column;
        text-align: center;
        padding: 1.2rem;
    }
    .admin-header-left h1 { font-size: 1.4rem; }
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 0 8px;
    }
    .admin-stat-card {
        padding: 1rem;
        gap: 0.8rem;
    }
    .admin-stat-card .stat-info .value { font-size: 1.4rem; }
    .admin-tabs-modern {
        gap: 4px;
        padding: 0.4rem;
        justify-content: center;
    }
    .admin-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
    #admin-content { padding: 1rem; }
    
    .user-row {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
    }
    .user-info { justify-content: center; }
    .user-row .user-actions {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .request-with-bids .request-header {
        flex-direction: column;
        text-align: center;
    }
    .bid-item .bid-row {
        flex-direction: column;
        text-align: center;
    }
    
    /* ----- نوار لوگو ----- */
    .logo-bar { padding: 1rem 0; }
    .logo-bar-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 0 16px;
    }
    .logo-bar-image { height: 45px; }
    .logo-bar-text h2 {
        font-size: 1.3rem;
    }
    .logo-bar-text h2::after { display: none; }
    .logo-bar-text p { font-size: 0.75rem; }
    .logo-bar-divider { display: none; }
    .logo-bar::before { animation-duration: 6s; }
    
    /* ----- زبان ----- */
    .language-switcher {
        padding: 3px;
        gap: 4px;
        border-radius: 40px;
    }
    .lang-btn {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
    .lang-btn .lang-flag { font-size: 0.85rem; }
    .lang-btn .lang-name { font-size: 0.65rem; }
    .language-switcher-fixed {
        top: 70px;
        right: 10px;
        padding: 6px;
        border-radius: 12px;
    }
    .language-switcher-fixed .lang-btn {
        padding: 4px 8px;
        font-size: 0.6rem;
        gap: 4px;
    }
    
    /* ----- قوانین و راهنما ----- */
    .rules-page, .guide-page {
        padding: 30px 24px 60px !important;
        margin: 0 16px !important;
        border-radius: 16px !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .rules-page h1, .guide-page h1 {
        font-size: 24px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .rules-page h2, .guide-page h2 {
        font-size: 18px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .rules-page p, .rules-page li,
    .guide-page p, .guide-page li {
        font-size: 15px !important;
        padding: 0 8px !important;
        line-height: 1.9 !important;
    }
    .rules-page ul, .guide-page ul {
        padding-right: 28px !important;
        padding-left: 8px !important;
    }
    .rules-page .container,
    .guide-page .container {
        padding: 0 8px !important;
    }
    
    /* ----- سوله ----- */
    .container[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .page#shed-page .container > div[style*="grid"],
    .page#shed-page .container > [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .page#shed-page [style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* ===== 🟢 موبایل خیلی کوچک (تا 576px) ===== */
@media (max-width: 576px) {
    
    /* ----- ناوبری ----- */
    .navbar { padding: 0.3rem 0; }
    .nav-container { padding: 0 8px; }
    
    .hamburger span {
        width: 24px;
        height: 2.5px;
        gap: 4px;
    }
    .logo img { height: 30px; }
    .logo-text h1 { font-size: 0.95rem; }
    .logo-text .slogan { font-size: 0.5rem; }
    .nav-link {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
    
    /* ----- اسلایدشو ----- */
    .hero-slideshow { height: 460px; }
    .hero-slide-content { 
        padding: 0 12px;
        top: 40%;
    }
    .hero-slide-content h2 { 
        font-size: 1.8rem; 
    }
    .hero-slide-content p { 
        font-size: 0.8rem; 
        margin-bottom: 1.2rem;
    }
    .hero-slide-content .badge-top {
        font-size: 0.55rem;
        padding: 3px 10px;
    }
    .hero-slide-content .hero-buttons .btn {
        max-width: 220px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .hero-stats { 
        padding: 6px 10px; 
        gap: 8px;
        width: 94%;
        border-radius: 20px;
        z-index: 20;
    }
    .hero-stat .number { font-size: 1.1rem; }
    .hero-stat .label { font-size: 0.55rem; }
    .slide-dots { bottom: 76px; gap: 6px; }
    .slide-dot { width: 8px; height: 8px; }
    
    /* ----- عنوان‌ها ----- */
    .section-title { font-size: 1.3rem; }
    .section-subtitle { 
        font-size: 0.85rem; 
        padding: 0 12px;
    }
    
    /* ----- ویژگی‌ها ----- */
    .features-grid {
        gap: 1rem;
        padding: 0 8px;
    }
    .feature-card {
        padding: 1rem;
    }
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }
    .feature-card h3 { font-size: 1rem; }
    .feature-card p { font-size: 0.85rem; }
    
    /* ----- دکمه‌ها ----- */
    .btn { 
        padding: 4px 10px; 
        font-size: 0.7rem; 
    }
    .btn-lg { 
        padding: 8px 18px; 
        font-size: 0.8rem; 
    }
    .btn-sm {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
    
    /* ----- فرم‌ها ----- */
    .auth-card {
        padding: 1.2rem;
        border-radius: 16px;
    }
    .auth-title { font-size: 1.4rem; }
    
    /* ----- مودال‌ها ----- */
    .modal-content {
        border-radius: 12px;
        margin: 6px;
    }
    .modal-header {
        padding: 0.8rem 1rem;
    }
    .modal-header h3 { font-size: 1rem; }
    .close-modal {
        font-size: 1.4rem;
        padding: 2px 8px;
    }
    .modal-body { padding: 1rem; }
    .modal-footer { padding: 0.8rem 1rem; }
    
    /* ----- فوتر ----- */
    .footer { padding: 2rem 0 1rem; }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 12px;
    }
    .footer h3 { font-size: 1rem; }
    .footer p, .footer a { font-size: 0.8rem; }
    .footer .social-links a {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }
    .footer-bottom {
        font-size: 0.7rem;
        padding-top: 1rem;
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* ----- بلاگ ----- */
    .blog-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 8px;
    }
    .blog-card img { height: 160px; }
    .blog-card .blog-content { padding: 1rem; }
    .blog-card h3 { font-size: 0.95rem; }
    .blog-card p { font-size: 0.8rem; }
    .blog-card .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    /* ----- پنل ادمین ----- */
    .admin-header { padding: 0.8rem 1rem; }
    .admin-header-left h1 { font-size: 1.2rem; }
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 0 4px;
    }
    .admin-stat-card {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
    }
    .admin-stat-card .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    .admin-stat-card .stat-info .value { font-size: 1.2rem; }
    .admin-stat-card .stat-info h3 { font-size: 0.65rem; }
    .admin-tabs-modern {
        padding: 0.3rem;
        gap: 3px;
    }
    .admin-tab {
        padding: 4px 8px;
        font-size: 0.6rem;
        gap: 3px;
    }
    .admin-tab .tab-badge {
        font-size: 0.5rem;
        padding: 0px 5px;
    }
    #admin-content { padding: 0.8rem; }
    
    .request-with-bids { padding: 1rem; }
    .request-with-bids .request-header {
        padding: 0.6rem 1rem;
        margin: -1rem -1rem 0.8rem -1rem;
    }
    .request-with-bids .request-details-grid {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 8px;
    }
    .bid-item { padding: 0.6rem 0.8rem; }
    .bid-item .bid-price { font-size: 1rem; }
    
    .user-avatar-sm {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .user-name { font-size: 0.85rem; }
    .user-email { font-size: 0.7rem; }
    .user-status {
        font-size: 0.6rem;
        padding: 2px 10px;
    }
    
    /* ----- نوار لوگو ----- */
    .logo-bar-image { height: 32px; }
    .logo-bar-text h2 { font-size: 1rem; }
    .logo-bar-text p { font-size: 0.65rem; }
    
    /* ----- زبان ----- */
    .lang-btn {
        padding: 3px 8px;
        font-size: 0.6rem;
    }
    .lang-btn .lang-flag { font-size: 0.75rem; }
    .lang-btn .lang-name { font-size: 0.55rem; }
    
    /* ----- کانتینر ----- */
    .container { padding: 0 12px; }
    
    /* ----- قوانین و راهنما ----- */
    .rules-page, .guide-page {
        padding: 20px 18px 40px !important;
        margin: 0 8px !important;
        border-radius: 8px !important;
        width: auto !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .rules-page h1, .guide-page h1 {
        font-size: 19px !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .rules-page h2, .guide-page h2 {
        font-size: 16px !important;
        margin-top: 24px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .rules-page p, .rules-page li,
    .guide-page p, .guide-page li {
        font-size: 13px !important;
        line-height: 1.8 !important;
        padding: 0 8px !important;
    }
    .rules-page ul, .guide-page ul {
        padding-right: 22px !important;
        padding-left: 8px !important;
    }
}

/* ===== اصلاحات نمایش مقالات ===== */
.modal-content {
    scroll-behavior: smooth;
}
.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== بهبود خوانایی در موبایل ===== */
@media (max-width: 768px) {
    .modal-content {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 16px !important;
        max-height: 95vh !important;
    }
    .modal-content > div:first-child {
        padding: 14px 18px !important;
        border-radius: 16px 16px 0 0 !important;
        flex-wrap: wrap;
        gap: 8px;
    }
    .modal-content > div:last-child {
        padding: 20px 18px 30px !important;
    }
    .modal-content h1 {
        font-size: 1.5rem !important;
    }
    .modal-content p {
        font-size: 0.95rem !important;
        line-height: 1.8 !important;
    }
    .modal-content h2 {
        font-size: 1.2rem !important;
    }
    .modal-content h3 {
        font-size: 1.05rem !important;
    }
}

@media (max-width: 480px) {
    .modal-content > div:last-child {
        padding: 16px 14px 24px !important;
    }
    .modal-content h1 {
        font-size: 1.2rem !important;
    }
    .modal-content p {
        font-size: 0.9rem !important;
    }
    .modal-content .btn {
        padding: 10px 20px !important;
        font-size: 0.85rem !important;
    }
}

/* ===== بستن خودکار منوی همبرگر ===== */
@media (max-width: 768px) {
    .hamburger.active + .nav-links {
        display: flex !important;
    }
}