:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --secondary: #3498db;
    --secondary-dark: #2980b9;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --light: #ecf0f1;
    --gray: #bdc3c7;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #7f8c8d;
    --white: #fff;
    --shadow: 0 5px 30px rgba(0,0,0,0.1);
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8f9fa;
    color: var(--text);
    line-height: 1.6;
    direction: rtl;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo img { height: 45px; }
.logo span { font-size: 22px; font-weight: 800; color: var(--primary); }

.main-nav .nav-list {
    display: flex;
    gap: 32px;
    list-style: none;
}
.main-nav .nav-list a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.main-nav .nav-list a:hover,
.main-nav .nav-list a.active { color: var(--secondary); }
.nav-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ===== منوی کاربری ===== */
.user-menu {
    position: relative;
}
.user-btn {
    background: var(--light);
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.user-btn:hover { background: #dde1e6; }

.user-btn.logged-in {
    background: #27ae60;
    color: white;
}
.user-btn.logged-in .user-avatar {
    background: #1e8449;
}
.user-btn.logged-in .user-avatar svg {
    stroke: white;
}
.user-btn.logged-in .dropdown-arrow {
    stroke: white;
}
.user-btn.logged-in:hover {
    background: #219a52;
    transform: scale(1.02);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.user-avatar svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2;
}
.user-btn .dropdown-arrow {
    width: 14px;
    height: 14px;
    stroke: #7f8c8d;
}
.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    padding: 8px 0;
}
.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}
.dropdown-user-info {
    padding: 12px 20px 8px;
    border-bottom: 1px solid #eee;
}
.dropdown-username {
    display: block;
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.dropdown-email {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}
.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 12px;
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    font-size: 14px;
}
.user-dropdown a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    flex-shrink: 0;
}
.user-dropdown a:hover {
    background: var(--light);
    color: var(--secondary);
}
.user-dropdown a .dropdown-badge {
    margin-right: auto;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}
.cart-menu-link,
.chat-menu-link { position: relative; }

.login-btn {
    background: var(--secondary);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}
.login-btn svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 1.8;
    fill: none;
}
.login-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
    background: var(--light);
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}
.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
}
.breadcrumb-item a {
    color: var(--secondary);
    text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item span { color: var(--text-light); }

/* ========== MAIN ========== */
.main {
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--primary);
    color: var(--light);
    padding: 50px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}
.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: var(--light);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-col ul li a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}
.footer-col ul li a:hover {
    opacity: 1;
    padding-right: 5px;
    color: var(--secondary);
}
.contact-info li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    opacity: 0.8;
}
.contact-info li svg {
    width: 16px;
    height: 16px;
    stroke: var(--secondary);
    stroke-width: 1.5;
    fill: none;
}
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.social-links a {
    display: inline-block;
    transition: var(--transition);
}
.social-links a svg {
    width: 20px;
    height: 20px;
    stroke: var(--light);
    stroke-width: 1.5;
    fill: none;
}
.social-links a:hover svg {
    stroke: var(--secondary);
    transform: translateY(-3px);
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    opacity: 0.7;
}

/* ========== PRODUCTS & SERVICES GRID ========== */
.products-grid,
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card,
.service-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover,
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.product-img,
.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}
.product-content,
.service-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-title,
.service-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.product-title a,
.service-title a {
    text-decoration: none;
    color: var(--primary);
}
.product-desc,
.service-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}
.product-actions,
.service-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    flex-wrap: wrap;
}
.product-actions .btn,
.service-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 5px 10px;
    white-space: nowrap;
    flex: 1;
    justify-content: center;
    min-height: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 14px;
}
.btn-primary {
    background: var(--secondary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
}
.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
}
.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
    flex: 1;
    text-align: center;
    white-space: nowrap;
    min-height: 32px;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.product-gallery img {
    width: 100%;
    border-radius: var(--radius);
}
.product-info h1 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}
.product-info .price {
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
    margin: 20px 0;
}
.request-form {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}
.product-actions-detail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}
.quantity-selector label {
    font-weight: 500;
    color: var(--primary);
}
.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}
.quantity-btn:hover {
    background: var(--secondary);
    color: white;
}
#quantity {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.add-to-cart-detail {
    padding: 10px 25px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--secondary);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-outline:hover {
    background: var(--secondary);
    color: white;
}
.request-form .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ========== CART & CHECKOUT ========== */
.cart-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.cart-table th,
.cart-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #eee;
}
.cart-table th {
    background: var(--light);
    font-weight: 600;
}
.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.cart-summary {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 30px;
    box-shadow: var(--shadow-sm);
}
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

/* ========== TRACKING ========== */
.tracking-box {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 50px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.tracking-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--success));
}
.tracking-box .tracking-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}
.tracking-box .tracking-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}
.tracking-box h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}
.tracking-box .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 25px;
}
.tracking-form {
    display: flex;
    gap: 12px;
    margin: 25px 0;
    background: var(--light);
    padding: 6px;
    border-radius: 12px;
}
.tracking-form input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    text-align: center;
    direction: ltr;
    transition: all 0.3s;
}
.tracking-form input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}
.tracking-form .btn {
    padding: 12px 30px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.tracking-result {
    margin-top: 30px;
    padding: 25px;
    border-radius: 12px;
    display: none;
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.tracking-result.show { display: block; }
.tracking-result.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}
.tracking-result.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.result-details {
    text-align: right;
}
.result-details .detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.result-details .detail-row:last-child {
    border-bottom: none;
}
.result-details .detail-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.result-details .detail-value {
    color: var(--text);
    font-size: 14px;
    text-align: left;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}
.status-pending {
    background: #fef3c7;
    color: #92400e;
}
.status-approved {
    background: #d1fae5;
    color: #065f46;
}
.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}
.status-completed {
    background: #dbeafe;
    color: #1e40af;
}
.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-pending::before { background: #f59e0b; }
.status-approved::before { background: #10b981; }
.status-rejected::before { background: #ef4444; }
.status-completed::before { background: #3b82f6; }
.tracking-code-highlight {
    direction: ltr;
    display: inline-block;
    background: var(--light);
    padding: 6px 16px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--secondary);
    font-size: 15px;
    letter-spacing: 0.5px;
}
.items-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
    background: var(--light);
    border-radius: 8px;
    overflow: hidden;
}
.items-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}
.items-list li:last-child {
    border-bottom: none;
}
.items-list li .item-name {
    font-weight: 500;
    color: var(--primary);
}
.items-list li .item-qty {
    color: var(--text-light);
}
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    color: var(--text-light);
    font-size: 14px;
}
.loading-spinner svg {
    width: 28px;
    height: 28px;
    animation: spin 1s linear infinite;
    stroke: var(--secondary);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.tracking-result .empty-state-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}
.copy-btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.copy-btn:hover {
    background: var(--secondary-dark);
    transform: scale(1.02);
}
.copy-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* ========== PROFILE ========== */
.profile-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}
.profile-avatar-wrapper {
    text-align: center;
    margin-bottom: 20px;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    cursor: pointer;
    position: relative;
    border: 3px solid var(--secondary);
    transition: var(--transition);
}
.profile-avatar:hover {
    border-color: var(--secondary-dark);
    transform: scale(1.02);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    border-radius: 50%;
}
.profile-avatar:hover .avatar-overlay {
    opacity: 1;
}
.avatar-overlay svg {
    width: 30px;
    height: 30px;
    stroke: white;
}
.avatar-overlay span {
    font-size: 12px;
    margin-top: 5px;
}
.avatar-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}
.btn-remove-avatar {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition);
}
.btn-remove-avatar:hover {
    background: #fde8e8;
}
.profile-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}
.profile-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.profile-info .info-row:last-child {
    border-bottom: none;
}
.profile-info .info-label {
    font-weight: 600;
    color: var(--primary);
    min-width: 120px;
}
.profile-info .info-value {
    color: var(--text);
    text-align: left;
    flex: 1;
    word-break: break-all;
}
.profile-form .form-group {
    margin-bottom: 18px;
}
.profile-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--primary);
}
.profile-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}
.profile-form .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ========== AUTH ========== */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
}
.auth-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary);
}
.auth-card .form-group {
    margin-bottom: 20px;
}
.auth-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}
.auth-card .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}
.auth-card .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}
.auth-card .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.auth-card .btn-primary {
    background: var(--secondary);
    color: white;
}
.auth-card .btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}
.auth-card .btn-register {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
}
.auth-card .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}
.auth-switch {
    text-align: center;
    margin-top: 20px;
}
.auth-switch .switch-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: var(--transition);
}
.auth-switch .switch-btn:hover {
    text-decoration: underline;
    color: var(--secondary-dark);
}
.message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    display: none;
    font-size: 14px;
}
.message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}
.message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.25s ease;
    overflow: hidden;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.modal-header {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    padding: 15px;
    text-align: center;
}
.modal-header .success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}
.modal-header h3 {
    font-size: 18px;
    margin: 0;
    color: white;
    font-weight: 600;
}
.modal-body { padding: 18px 20px; }
.tracking-code-box {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 15px;
}
.tracking-code-box > div:first-child {
    font-size: 12px;
    color: #666;
    margin-bottom: 6px;
}
.code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.tracking-code {
    font-size: 16px;
    font-weight: 700;
    color: #27ae60;
    direction: ltr;
    background: white;
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #27ae60;
    letter-spacing: 0.5px;
}
.copy-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}
.copy-btn svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}
.copy-btn:hover { background: #1e8449; }
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 100px;
    font-size: 13px;
}
.info-value {
    color: #555;
    text-align: left;
    word-break: break-all;
    font-size: 13px;
}
.modal-footer {
    padding: 12px 15px;
    background: #fafafa;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    border-top: 1px solid #eee;
}
.modal-footer .btn {
    min-width: 100px;
    padding: 7px 14px;
    font-size: 13px;
    margin: 0;
    border-radius: 8px;
    text-align: center;
}
.btn-outline {
    background: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover { background: #f0f0f0; }

/* ========== SLIDER ========== */
.slider-section {
    margin-bottom: 50px;
}
.slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}
.slider-item {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}
.slider-item.active {
    opacity: 1;
    visibility: visible;
}
.slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slider-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 40px;
    border-radius: 12px;
    max-width: 450px;
    color: white;
    z-index: 2;
}
.slider-title {
    font-size: 32px;
    margin-bottom: 15px;
    color: white;
}
.slider-description {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
    color: #ecf0f1;
}
.slider-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.slider-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10;
}
.slider-prev,
.slider-next {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slider-prev:hover,
.slider-next:hover {
    background: #3498db;
}
.slider-indicators {
    display: flex;
    gap: 8px;
}
.slider-indicator {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.slider-indicator.active {
    background: #3498db;
    transform: scale(1.2);
}

/* ========== ABOUT ========== */
.about-section {
    background: white;
    border-radius: var(--radius);
    padding: 50px;
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
}
.about-section .section-title {
    color: var(--primary);
    text-align: center;
    display: block;
}
.about-section .section-title::after {
    background: var(--secondary);
    right: 50%;
    transform: translateX(50%);
}
.about-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 30px;
}
.about-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    padding: 8px 20px;
    border-radius: 50px;
    color: var(--primary);
    font-weight: 500;
}

/* ========== STATS ========== */
.stats-section {
    margin-top: 40px;
    margin-bottom: 20px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 10px;
}
.stat-label {
    font-size: 14px;
    color: var(--text-light);
}

/* ========== MORE BTN ========== */
.more-btn-container {
    text-align: center;
    margin-top: 40px;
}
.btn-secondary {
    background: var(--primary);
    color: white;
}
.btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========== CLIENTS ========== */
.clients-section {
    margin-bottom: 60px;
}
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.client-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid #eee;
    text-decoration: none;
    display: block;
}
.client-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--secondary);
}
.client-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    overflow: hidden;
}
.client-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}
.client-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}
.client-website {
    font-size: 12px;
    color: var(--text-light);
    word-break: break-all;
}

/* ========== PORTFOLIO ========== */
.portfolio-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
}
.portfolio-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-image svg {
    width: 60px;
    height: 60px;
    stroke: white;
}
.portfolio-content {
    padding: 20px;
}
.portfolio-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.portfolio-client {
    font-size: 13px;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.portfolio-client svg {
    width: 14px;
    height: 14px;
    stroke: var(--secondary);
}
.portfolio-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}
.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.tech-tag {
    background: var(--light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--text-light);
}
.portfolio-actions {
    display: flex;
    gap: 10px;
}
.portfolio-actions .btn {
    flex: 1;
    justify-content: center;
}
.client-portfolio-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}
.client-portfolio-header .client-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}
.client-portfolio-header .client-website {
    font-size: 14px;
    color: var(--text-light);
}
.client-portfolio-header .client-website a {
    color: var(--secondary);
    text-decoration: none;
}
.client-portfolio-header .client-website a:hover {
    text-decoration: underline;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius);
}
.empty-state svg {
    width: 60px;
    height: 60px;
    stroke: var(--gray);
    margin-bottom: 20px;
}
.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.contact-card svg {
    margin-bottom: 15px;
}
.contact-card h3 {
    font-size: 18px;
    color: var(--primary);
    margin-bottom: 10px;
}
.contact-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin: 5px 0;
}

/* ========== NEW DASHBOARD STYLES ========== */
.section-block {
    margin-bottom: 50px;
}
.section-block .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.section-block .section-head .head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-block .section-head .head-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.section-block .section-head .head-icon svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}
.section-block .section-head .head-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.section-block .section-head .head-icon.green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.section-block .section-head .head-icon.purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.section-block .section-head .head-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.section-block .section-head .head-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.section-block .section-head .head-icon.rose { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.section-block .section-head .head-title {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.3px;
}
.section-block .section-head .head-link {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: #f1f5f9;
    transition: all 0.3s ease;
}
.section-block .section-head .head-link:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: translateX(-3px);
}
.section-block .section-head .head-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}
.section-block .grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.section-block .grid-5 .item-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.section-block .grid-5 .item-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}
.section-block .grid-5 .item-card .item-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f1f5f9;
}
.section-block .grid-5 .item-card .item-body {
    padding: 18px 18px 20px;
}
.section-block .grid-5 .item-card .item-body .item-title {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
}
.section-block .grid-5 .item-card .item-body .item-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
.section-block .grid-5 .item-card .item-body .item-title a:hover {
    color: #2563eb;
}
.section-block .grid-5 .item-card .item-body .item-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.section-block .grid-5 .item-card .item-body .item-actions {
    display: flex;
    gap: 8px;
}
.section-block .grid-5 .item-card .item-body .item-actions .btn {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}
.section-block .grid-5 .item-card .item-body .item-actions .btn-outline {
    background: transparent;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.section-block .grid-5 .item-card .item-body .item-actions .btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.section-block .grid-5 .item-card .item-body .item-actions .btn-primary {
    background: #2563eb;
    color: white;
    border: none;
}
.section-block .grid-5 .item-card .item-body .item-actions .btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.section-block .clients-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
.section-block .clients-grid-5 .client-card {
    background: white;
    border-radius: 16px;
    padding: 28px 20px 24px;
    text-align: center;
    border: 1px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}
.section-block .clients-grid-5 .client-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}
.section-block .clients-grid-5 .client-card .client-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    overflow: hidden;
}
.section-block .clients-grid-5 .client-card .client-logo img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
}
.section-block .clients-grid-5 .client-card .client-name {
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.section-block .clients-grid-5 .client-card .client-website {
    font-size: 12px;
    color: #94a3b8;
    word-break: break-all;
}
.section-block .portfolio-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.section-block .portfolio-grid-4 .portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-block .portfolio-grid-4 .portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    border-color: #e2e8f0;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body {
    padding: 16px 18px 18px;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-client {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-client svg {
    width: 14px;
    height: 14px;
    stroke: #64748b;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-tech .tech-tag {
    font-size: 10px;
    padding: 2px 10px;
    background: #f1f5f9;
    border-radius: 12px;
    color: #475569;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .btn {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    border-radius: 8px;
    background: #2563eb;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.section-block .portfolio-grid-4 .portfolio-card .portfolio-body .btn:hover {
    background: #1d4ed8;
}
.section-block .about-content {
    background: white;
    border-radius: 16px;
    padding: 40px 50px;
    border: 1px solid #f1f5f9;
    text-align: center;
}
.section-block .about-content .about-image {
    max-width: 280px;
    max-height: 180px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.section-block .about-content .about-text {
    font-size: 16px;
    line-height: 1.9;
    color: #334155;
    max-width: 700px;
    margin: 0 auto 20px;
}
.section-block .about-content .about-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.section-block .about-content .about-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #f1f5f9;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #0f172a;
}
.section-block .about-content .about-features .feature svg {
    width: 18px;
    height: 18px;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
}

/* ============================================================
   ========== RESPONSIVE - MEDIA QUERIES ==========
   ============================================================ */

/* ===== 1200px - لپ‌تاپ بزرگ ===== */
@media (max-width: 1200px) {
    .section-block .grid-5,
    .section-block .clients-grid-5 {
        grid-template-columns: repeat(3, 1fr);
    }
    .section-block .portfolio-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 992px - لپ‌تاپ ===== */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .auth-container,
    .checkout-grid { 
        grid-template-columns: 1fr; 
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* ===== 768px - تبلت و موبایل بزرگ ===== */
@media (max-width: 768px) {
    .container { padding: 0 16px; }
    
    .hamburger { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        transition: var(--transition);
        z-index: 1001;
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .main-nav .nav-list {
        flex-direction: column;
        gap: 0;
    }
    .main-nav .nav-list li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
        font-size: 15px;
    }
    
    .products-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .slider { height: 350px; }
    .slider-content { 
        right: 5%; 
        padding: 20px; 
        max-width: 85%; 
    }
    .slider-title { font-size: 20px; }
    .slider-description { font-size: 13px; }
    .slider-btn { padding: 8px 20px; font-size: 13px; }
    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-col h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-col ul li a { justify-content: center; }
    .contact-info li { justify-content: center; }
    .social-links { justify-content: center; }
    
    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }
    .cart-table thead { display: none; }
    .cart-table tr {
        margin-bottom: 15px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 10px;
        background: white;
    }
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        border: none;
        font-size: 13px;
    }
    .cart-table td:before {
        content: attr(data-label);
        font-weight: bold;
        margin-left: 10px;
        color: var(--primary);
    }
    .cart-table td:first-child {
        justify-content: center;
    }
    
    .about-section { padding: 30px 20px; }
    .about-features { gap: 15px; }
    .feature { padding: 5px 12px; font-size: 12px; }
    .tracking-form { flex-direction: column; }
    
    .section-block .grid-5,
    .section-block .clients-grid-5,
    .section-block .portfolio-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .section-block .section-head {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .section-block .section-head .head-title {
        font-size: 18px;
    }
    .section-block .about-content {
        padding: 24px 20px;
    }
    .section-block .about-content .about-text {
        font-size: 14px;
    }
    .section-block .grid-5 .item-card .item-img {
        height: 160px;
    }
    
    .profile-card { padding: 25px; }
    .profile-info .info-row {
        flex-direction: column;
        gap: 5px;
    }
    .profile-info .info-value { text-align: right; }
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    .info-row {
        flex-direction: column;
        gap: 3px;
    }
    .info-label { min-width: auto; }
    .info-value { text-align: right; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn {
        width: 100%;
        text-align: center;
    }
    .code-wrapper { flex-direction: column; }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .stat-card { padding: 20px 15px; }
    .stat-number { font-size: 28px; }
}

/* ===== 576px - موبایل کوچک ===== */
@media (max-width: 576px) {
    .container { padding: 0 12px; }
    
    /* هدر */
    .logo span { display: none; }
    .logo img { height: 35px; }
    .header-inner { padding: 10px 0; }
    .user-btn { padding: 4px 8px; font-size: 12px; }
    .user-avatar { width: 28px; height: 28px; }
    .user-avatar svg { width: 16px; height: 16px; }
    .user-btn .dropdown-arrow { width: 12px; height: 12px; }
    .login-btn { padding: 6px 14px; font-size: 13px; }
    .header-actions { gap: 10px; }
    
    /* ===== محصولات و خدمات - ۲ ستونه ===== */
    .products-grid,
    .services-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
    }
    .product-img,
    .service-img { 
        height: 140px; 
    }
    .product-content,
    .service-content { 
        padding: 10px 12px 14px; 
    }
    .product-title,
    .service-title { 
        font-size: 13px; 
        margin-bottom: 4px;
    }
    .product-desc,
    .service-desc { 
        font-size: 11px; 
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        height: 32px;
        overflow: hidden;
    }
    .product-actions,
    .service-actions {
        gap: 4px;
        padding-top: 8px;
    }
    .product-actions .btn,
    .service-actions .btn {
        font-size: 10px;
        padding: 4px 6px;
        min-height: 26px;
        gap: 2px;
    }
    .product-actions .btn svg,
    .service-actions .btn svg {
        width: 12px;
        height: 12px;
    }
    .product-price {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    /* ===== اسلایدر ===== */
    .slider { height: 220px; }
    .slider-content { 
        padding: 10px 14px; 
        max-width: 92%;
        right: 4%;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 8px;
    }
    .slider-title { 
        font-size: 15px; 
        margin-bottom: 4px; 
    }
    .slider-description { 
        font-size: 11px; 
        margin-bottom: 8px;
        line-height: 1.4;
    }
    .slider-btn { 
        padding: 5px 14px; 
        font-size: 11px; 
        border-radius: 18px;
    }
    .slider-prev,
    .slider-next {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }
    .slider-controls { gap: 8px; bottom: 10px; }
    .slider-indicator { width: 7px; height: 7px; }
    .slider-section { margin-bottom: 25px; }
    
    /* ===== بخش‌های داشبورد - ۲ ستونه ===== */
    .section-block {
        margin-bottom: 25px;
    }
    .section-block .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .section-block .clients-grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .section-block .portfolio-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    /* هدر بخش‌ها */
    .section-block .section-head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        margin-bottom: 12px;
        flex-wrap: nowrap;
    }
    .section-block .section-head .head-left {
        gap: 8px;
        flex-shrink: 0;
    }
    .section-block .section-head .head-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .section-block .section-head .head-icon svg {
        width: 14px;
        height: 14px;
    }
    .section-block .section-head .head-title {
        font-size: 14px;
        white-space: nowrap;
    }
    .section-block .section-head .head-link {
        padding: 3px 10px;
        font-size: 10px;
        gap: 3px;
        flex-shrink: 0;
    }
    .section-block .section-head .head-link svg {
        width: 12px;
        height: 12px;
    }
    
    /* آیتم‌های گرید */
    .section-block .grid-5 .item-card {
        border-radius: 10px;
    }
    .section-block .grid-5 .item-card .item-img {
        height: 120px;
    }
    .section-block .grid-5 .item-card .item-body {
        padding: 8px 10px 12px;
    }
    .section-block .grid-5 .item-card .item-body .item-title {
        font-size: 12px;
        margin-bottom: 3px;
    }
    .section-block .grid-5 .item-card .item-body .item-desc {
        font-size: 10px;
        line-height: 1.4;
        margin-bottom: 8px;
        -webkit-line-clamp: 2;
        height: 28px;
        overflow: hidden;
    }
    .section-block .grid-5 .item-card .item-body .item-actions {
        gap: 4px;
    }
    .section-block .grid-5 .item-card .item-body .item-actions .btn {
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 4px;
        min-height: 22px;
    }
    
    /* مشتریان */
    .section-block .clients-grid-5 .client-card {
        padding: 14px 10px 12px;
        border-radius: 10px;
    }
    .section-block .clients-grid-5 .client-card .client-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    .section-block .clients-grid-5 .client-card .client-logo img {
        max-width: 60%;
        max-height: 60%;
    }
    .section-block .clients-grid-5 .client-card .client-name {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .section-block .clients-grid-5 .client-card .client-website {
        font-size: 9px;
    }
    
    /* نمونه کارها */
    .section-block .portfolio-grid-4 .portfolio-card {
        border-radius: 10px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-img {
        height: 110px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body {
        padding: 8px 10px 12px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-title {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-client {
        font-size: 9px;
        margin-bottom: 4px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-client svg {
        width: 10px;
        height: 10px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-desc {
        font-size: 10px;
        margin-bottom: 6px;
        -webkit-line-clamp: 2;
        height: 26px;
        overflow: hidden;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-tech {
        gap: 3px;
        margin-bottom: 6px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .portfolio-tech .tech-tag {
        font-size: 8px;
        padding: 1px 6px;
        border-radius: 8px;
    }
    .section-block .portfolio-grid-4 .portfolio-card .portfolio-body .btn {
        font-size: 9px;
        padding: 3px 10px;
        border-radius: 4px;
    }
    
    /* درباره ما - در موبایل تک ستون */
    .section-block .about-content {
        padding: 16px 14px;
        border-radius: 10px;
    }
    .section-block .about-content .about-image {
        max-width: 160px;
        max-height: 100px;
        margin-bottom: 12px;
    }
    .section-block .about-content .about-text {
        font-size: 12px;
        line-height: 1.7;
        margin-bottom: 12px;
        padding: 0 4px;
    }
    .section-block .about-content .about-features {
        gap: 8px;
    }
    .section-block .about-content .about-features .feature {
        font-size: 10px;
        padding: 3px 10px;
        gap: 4px;
        border-radius: 30px;
    }
    .section-block .about-content .about-features .feature svg {
        width: 12px;
        height: 12px;
    }
    
    /* ===== تماس با ما - ۲ ستونه ===== */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .contact-card {
        padding: 14px 10px;
        border-radius: 10px;
    }
    .contact-card svg {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }
    .contact-card h3 {
        font-size: 13px;
        margin-bottom: 4px;
    }
    .contact-card p {
        font-size: 11px;
        line-height: 1.5;
        margin: 2px 0;
    }
    
    /* ===== جزئیات محصول ===== */
    .product-detail {
        padding: 12px;
        border-radius: 10px;
    }
    .product-detail-grid {
        gap: 14px;
        margin-bottom: 16px;
    }
    .product-info h1 { 
        font-size: 17px; 
        margin-bottom: 8px;
    }
    .product-info .price { 
        font-size: 18px; 
        margin: 10px 0;
    }
    .product-info p {
        font-size: 13px;
        line-height: 1.6;
    }
    .product-actions-detail {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 0;
        margin: 12px 0;
    }
    .quantity-selector {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }
    .quantity-selector label {
        font-size: 13px;
    }
    #quantity {
        width: 50px;
        height: 28px;
        font-size: 14px;
    }
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    .add-to-cart-detail {
        width: 100%;
        justify-content: center;
        padding: 8px 16px;
        font-size: 13px;
    }
    .full-description h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }
    .full-description div {
        font-size: 13px;
        line-height: 1.7;
    }
    
    /* ===== سبد خرید ===== */
    .cart-summary {
        padding: 12px;
        border-radius: 10px;
    }
    .cart-summary > div {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .cart-summary > div > div:first-child {
        text-align: center;
        font-size: 16px;
    }
    .cart-table td {
        font-size: 11px;
        padding: 5px 6px;
    }
    .quantity-input { 
        width: 44px; 
        padding: 3px;
        font-size: 12px;
    }
    .cart-item-img { width: 32px; height: 32px; }
    .cart-table tr { padding: 6px; }
    
    /* ===== تسویه حساب ===== */
    .checkout-grid {
        gap: 14px;
    }
    .auth-card {
        padding: 16px;
        border-radius: 10px;
    }
    .auth-card h2 { 
        font-size: 17px; 
        margin-bottom: 14px; 
    }
    .auth-card .form-group { 
        margin-bottom: 12px; 
    }
    .auth-card .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .auth-card .form-control { 
        padding: 8px 12px; 
        font-size: 12px; 
        border-radius: 6px;
    }
    .auth-card .btn { 
        font-size: 13px; 
        padding: 8px; 
        border-radius: 6px;
    }
    .auth-card h3 {
        font-size: 15px;
        margin-bottom: 12px;
    }
    .auth-card .message {
        font-size: 12px;
        padding: 8px;
    }
    
    /* ===== پیگیری ===== */
    .tracking-box {
        padding: 20px 16px;
        border-radius: 10px;
    }
    .tracking-box .tracking-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    .tracking-box .tracking-icon svg {
        width: 22px;
        height: 22px;
    }
    .tracking-box h3 { 
        font-size: 15px; 
        margin-bottom: 4px;
    }
    .tracking-box .subtitle {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .tracking-form {
        flex-direction: column;
        padding: 4px;
        gap: 6px;
        border-radius: 8px;
        margin: 14px 0;
    }
    .tracking-form input {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 6px;
        text-align: center;
    }
    .tracking-form .btn {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
        border-radius: 6px;
    }
    .tracking-result { 
        padding: 12px; 
        margin-top: 16px;
        border-radius: 8px;
    }
    .result-details .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        padding: 6px 0;
    }
    .result-details .detail-label {
        font-size: 11px;
    }
    .result-details .detail-value {
        font-size: 12px;
        text-align: right;
        width: 100%;
    }
    .status-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    /* ===== مشتریان (صفحه جدا) ===== */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .client-card { 
        padding: 12px 10px; 
        border-radius: 10px;
    }
    .client-logo { 
        width: 50px; 
        height: 50px; 
        margin-bottom: 8px;
    }
    .client-name { 
        font-size: 12px; 
        margin-bottom: 2px;
    }
    .client-website {
        font-size: 9px;
    }
    
    /* ===== نمونه کارها (صفحه جدا) ===== */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .portfolio-image { height: 140px; }
    .portfolio-content { padding: 12px; }
    .portfolio-title { font-size: 14px; }
    .portfolio-description { font-size: 12px; }
    .portfolio-actions { flex-direction: column; }
    .portfolio-actions .btn { font-size: 12px; padding: 6px; }
    
    /* ===== فوتر ===== */
    .footer { padding: 25px 0 12px; }
    .footer-grid { gap: 16px; }
    .footer-col h3 { 
        font-size: 14px; 
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    .footer-col h3::after {
        width: 30px;
        height: 2px;
    }
    .footer-col p { font-size: 12px; line-height: 1.6; }
    .footer-col ul li { margin-bottom: 6px; }
    .footer-col ul li a { 
        font-size: 12px; 
        justify-content: center;
        gap: 4px;
    }
    .footer-col ul li a svg {
        width: 14px;
        height: 14px;
    }
    .contact-info li { 
        font-size: 12px; 
        gap: 6px;
        justify-content: center;
    }
    .contact-info li svg {
        width: 14px;
        height: 14px;
    }
    .social-links { gap: 10px; }
    .social-links a svg { width: 16px; height: 16px; }
    .footer-bottom { 
        font-size: 11px; 
        padding-top: 12px;
    }
    
    /* ===== استاتس - ۲ ستونه ===== */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
    }
    .stat-card { 
        padding: 12px 10px; 
        border-radius: 10px;
    }
    .stat-number { 
        font-size: 20px; 
        margin-bottom: 4px;
    }
    .stat-label { 
        font-size: 11px; 
    }
    
    /* ===== مودال ===== */
    .modal-content {
        max-width: 98%;
        margin: 6px;
        border-radius: 10px;
    }
    .modal-header { 
        padding: 10px; 
    }
    .modal-header h3 { 
        font-size: 14px; 
    }
    .modal-header .success-icon svg { 
        width: 28px; 
        height: 28px; 
    }
    .modal-body { 
        padding: 12px 14px; 
    }
    .tracking-code-box { 
        padding: 8px; 
        border-radius: 8px;
    }
    .tracking-code-box > div:first-child {
        font-size: 10px;
    }
    .tracking-code { 
        font-size: 13px; 
        padding: 3px 8px; 
        border-radius: 14px;
    }
    .copy-btn { 
        font-size: 10px; 
        padding: 3px 8px; 
        border-radius: 14px;
    }
    .copy-btn svg {
        width: 12px;
        height: 12px;
    }
    .info-row { 
        font-size: 11px; 
        padding: 4px 0; 
    }
    .info-label { 
        font-size: 11px; 
        min-width: auto;
    }
    .info-value { 
        font-size: 11px; 
    }
    .modal-footer { 
        padding: 8px 12px; 
        gap: 6px;
    }
    .modal-footer .btn { 
        font-size: 11px; 
        padding: 5px 10px;
        min-width: auto;
        border-radius: 6px;
    }
    
    /* ===== ورود / ثبت‌نام ===== */
    .auth-container { padding: 0 4px; }
    .auth-card { 
        padding: 16px 14px; 
        border-radius: 10px;
    }
    .auth-card h2 { 
        font-size: 16px; 
        margin-bottom: 14px; 
    }
    .auth-card .form-group { 
        margin-bottom: 10px; 
    }
    .auth-card .form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    .auth-card .form-control { 
        font-size: 12px; 
        padding: 8px 10px; 
        border-radius: 6px;
    }
    .auth-card .btn { 
        font-size: 13px; 
        padding: 8px; 
        border-radius: 6px;
    }
    .auth-switch .switch-btn {
        font-size: 12px;
        padding: 4px 10px;
    }
    .message {
        font-size: 12px;
        padding: 8px;
        margin-top: 10px;
    }
    
    /* ===== Breadcrumb ===== */
    .breadcrumb { padding: 6px 0; }
    .breadcrumb-item { font-size: 11px; gap: 4px; }
    .breadcrumb-item:not(:last-child)::after {
        font-size: 10px;
    }
    
    /* ===== دکمه بیشتر ===== */
    .more-btn-container {
        margin-top: 20px;
    }
    .more-btn-container .btn {
        font-size: 12px;
        padding: 6px 16px;
        border-radius: 6px;
    }
    
    /* ===== متن‌های عمومی ===== */
    .section-header h2 {
        font-size: 17px;
        margin-bottom: 4px;
    }
    .section-header p {
        font-size: 12px;
    }
    
    /* ===== جدول سبد خرید ===== */
    .cart-table td:before {
        font-size: 10px;
    }
    .cart-table td {
        font-size: 11px;
        padding: 4px 6px;
    }
}