/* --------------------------------------------- */
/* CSS VARIABLES (رنگ‌ها و فواصل پایه)           */
/* --------------------------------------------- */
:root {
    --color-bg-main: #09090b;
    --color-bg-surface: #18181b;
    --color-bg-card: rgba(0, 0, 0, 0.4);
    --color-border: #27272a;
    --color-border-hover: rgba(234, 179, 8, 0.4);
    
    --color-primary: #eab308;
    --color-primary-hover: #facc15;
    
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --text-dark: #000000;
    
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
}

/* --------------------------------------------- */
/* RESET & BASE                                  */
/* --------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg-main);
    color: var(--text-light);
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    line-height: 1.6;
}

.hidden { display: none !important; }

.home-seo-content {
    padding: 3rem 0;
    color: var(--text-muted);
}

.home-seo-content h2 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.35rem;
}

.home-seo-content p {
    max-width: 900px;
    margin-top: 0.75rem;
}

.home-banners {
    padding: 1.5rem 0 0;
}

.home-banners .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.home-banner {
    position: relative;
    display: block;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-surface);
    text-decoration: none;
}

.home-banner img {
    width: 100%;
    height: 190px;
    display: block;
    object-fit: cover;
}

.home-banner span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: var(--text-light);
    font-weight: 800;
    text-shadow: 0 2px 8px #000;
}

.checkout-modal-content {
    max-width: 520px;
}

.checkout-modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    text-align: center;
}

.payment-method-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 1rem 0 1.25rem;
}

.payment-method-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border, #27272a);
    border-radius: var(--radius-md, 0.75rem);
    cursor: pointer;
    transition: 0.2s;
}

.payment-method-option:has(input:checked) {
    border-color: var(--color-primary, #eab308);
    background: rgba(234, 179, 8, 0.08);
}

.payment-method-option input {
    accent-color: var(--color-primary, #eab308);
}

.checkout-success-view {
    text-align: center;
    padding: 1rem 0;
}

.checkout-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.checkout-success-view h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.checkout-success-view p {
    color: var(--text-muted, #a1a1aa);
    margin-bottom: 1rem;
}

.checkout-online-notice {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-sm, 0.5rem);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* --------------------------------------------- */
/* UTILITIES                                     */
/* --------------------------------------------- */
.text-primary { color: var(--color-primary); }
.icon { width: 1.25rem; height: 1.25rem; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1rem; }

/* --------------------------------------------- */
/* BUTTONS                                       */
/* --------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.1);
}

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

.btn-outline {
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--text-light);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.5rem;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-lg {
    padding: 0.875rem 2rem;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    background-color: var(--color-bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-icon:hover {
    color: var(--text-light);
    background-color: var(--color-border);
}

/* ===========================
   Header
=========================== */

.header{
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
    backdrop-filter: blur(16px);
    background: rgba(12,12,12,.72);
    border-bottom:1px solid rgba(255,255,255,.06);
    transition:.35s ease;
}

.header.scrolled{
    background:rgba(8,8,8,.9);
    box-shadow:0 12px 35px rgba(0,0,0,.35);
}

.header-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    min-height:88px;
    transition:.35s;
}

.header.scrolled .header-container{
    min-height:72px;
}
.logo{

    display:flex;

    align-items:center;

    gap:14px;

    text-decoration:none;

}

.logo-box{

    width:52px;

    height:52px;

    border-radius:16px;

    background:#181818;

    display:flex;

    align-items:center;

    justify-content:center;

    border:1px solid rgba(255,193,7,.18);

    position:relative;

    overflow:hidden;

}

.logo-box::before{

    content:"";

    position:absolute;

    top:0;

    left:-120%;

    width:70%;

    height:100%;

    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,193,7,.5),
        transparent
    );

    transition:.7s;

}

.logo:hover .logo-box::before{

    left:160%;

}

.logo-box img{

    width:34px;

    height:34px;

}

.logo-text{

    color:#fff;

    font-size:24px;

    font-weight:900;

    transition:.3s;

}

.logo:hover .logo-text{

    color:#ffc107;

}
.navbar{

    display:flex;

    align-items:center;

    gap:34px;

}

.nav-link{

    position:relative;

    text-decoration:none;

    color:#bdbdbd;

    font-weight:700;

    transition:.3s;

}

.nav-link:hover{

    color:white;

}

.nav-link::after{

    content:"";

    position:absolute;

    bottom:-10px;

    right:50%;

    transform:translateX(50%);

    width:0;

    height:3px;

    background:#ffc107;

    border-radius:20px;

    transition:.35s;

}

.nav-link:hover::after{

    width:100%;

}

.nav-link.active{

    color:white;

}

.nav-link.active::after{

    width:100%;

}

.smart-link span{

    animation:pulse 1.7s infinite;

}
.header-actions{

    display:flex;

    align-items:center;

    gap:14px;

}
.cart-btn{

    width:48px;

    height:48px;

    border-radius:14px;

    background:#181818;

    border:1px solid rgba(255,255,255,.08);

    display:flex;

    align-items:center;

    justify-content:center;

    position:relative;

    transition:.3s;

}

.cart-btn:hover{

    border-color:#ffc107;

    transform:translateY(-2px);

}

.cart-btn svg{

    width:22px;

    height:22px;

    stroke:white;

    fill:none;

    stroke-width:2;

}

.cart-count{

    position:absolute;

    top:-6px;

    left:-6px;

    width:22px;

    height:22px;

    border-radius:50%;

    background:#ffc107;

    color:black;

    font-size:11px;

    font-weight:900;

    display:flex;

    align-items:center;

    justify-content:center;

}
.login-btn{

    padding:13px 22px;

    border-radius:14px;

    background:#181818;

    border:1px solid rgba(255,255,255,.08);

    color:white;

    text-decoration:none;

    font-weight:700;

    transition:.3s;

}

.login-btn:hover{

    background:#ffc107;

    color:black;

    border-color:#ffc107;

}

.user-menu-box {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.user-menu-name-link {
    padding: 13px 18px;
    border-radius: 14px;
    background: #181818;
    border: 1px solid rgba(255,255,255,.08);
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.user-menu-name-link:hover {
    background: #ffc107;
    color: black;
    border-color: #ffc107;
}

.user-logout-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #181818;
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #f87171;
    border-radius: 14px;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
    transition: .3s;
}

.user-logout-btn svg {
    width: 20px;
    height: 20px;
}

.user-logout-btn:hover {
    background: rgba(248, 113, 113, 0.12);
    border-color: #f87171;
}

.mobile-user-name {
    font-weight: 700;
    color: var(--color-primary, #eab308);
}

@media (max-width: 1200px) {
    .user-menu-name-link {
        max-width: 90px;
        padding: 13px 12px;
        font-size: 0.85rem;
    }
}

.menu-btn{

    display:none;

    width:48px;

    height:48px;

    background:#181818;

    border:none;

    border-radius:14px;

    cursor:pointer;

    position:relative;

}

.menu-btn span{

    position:absolute;

    right:12px;

    width:24px;

    height:2px;

    background:white;

    transition:.3s;

}

.menu-btn span:nth-child(1){

    top:16px;

}

.menu-btn span:nth-child(2){

    top:23px;

}

.menu-btn span:nth-child(3){

    top:30px;

}
.mobile-menu{

    position:absolute;

    top:100%;

    right:0;

    width:100%;

    background:rgba(10,10,10,.96);

    backdrop-filter:blur(18px);

    border-top:1px solid rgba(255,255,255,.06);

    padding:28px;

    opacity:0;

    visibility:hidden;

    transform:translateY(-15px);

    transition:.35s;

}

.mobile-menu.show{

    opacity:1;

    visibility:visible;

    transform:translateY(0);

}

.mobile-link{

    display:block;

    padding:15px 0;

    text-decoration:none;

    color:#ddd;

    border-bottom:1px solid rgba(255,255,255,.06);

    transition:.3s;

}

.mobile-link:hover{

    color:#ffc107;

    padding-right:10px;

}

.mobile-login{

    margin-top:22px;

    display:block;

    text-align:center;

    background:#ffc107;

    color:black;

    padding:15px;

    border-radius:14px;

    font-weight:900;

    text-decoration:none;

}
@media(max-width:992px){

    .navbar{

        display:none;

    }

    .menu-btn{

        display:block;

    }

}

@media(max-width:768px){

    .login-btn{

        display:none;

    }

    .logo-text{

        font-size:20px;

    }

}
@keyframes pulse{

    0%{

        transform:scale(1);

    }

    50%{

        transform:scale(1.2);

    }

    100%{

        transform:scale(1);

    }

}
.menu-btn.active span:nth-child(1){

    transform:rotate(45deg);
    top:23px;

}

.menu-btn.active span:nth-child(2){

    opacity:0;

}

.menu-btn.active span:nth-child(3){

    transform:rotate(-45deg);
    top:23px;

}
/* --------------------------------------------- */
/* HERO SECTION                                  */
/* --------------------------------------------- */
.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to left, var(--color-bg-main), rgba(9, 9, 11, 0.8), transparent), url('../images/hero-banner-mountain-bike.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6;
    z-index: 0;
}

.hero-container { position: relative; z-index: 10; }

.hero-content { max-width: 600px; }

.hero-subtitle {
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-desc {
    color: #d4d4d8;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --------------------------------------------- */
/* FEATURES SECTION                              */
/* --------------------------------------------- */
.features { padding: 2rem 0; }

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.feature-item:last-child { border-bottom: none; }

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-primary);
    flex-shrink: 0;
}

.feature-text h2 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* --------------------------------------------- */
/* BIKE SELECTOR SECTION                         */
/* --------------------------------------------- */
/* بخش اصلی */
.bike-selector {
    padding: 5rem 0;
}

/* باکس اصلی */
.selector-box {
    background: #0d0d0d;
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.standalone-selector-box {
    max-width: 42rem;
    margin: 0 auto;
}

.full-width-selector {
    position: relative;
    z-index: 10;
}

/* افکت نور */
.glow-effect {
    position: absolute;
    width: 18rem;
    height: 18rem;
    background: rgba(234, 179, 8, 0.1);
    filter: blur(120px);
    border-radius: 50%;
}
.glow-effect.top-left { top: -5rem; left: -5rem; }
.glow-effect.bottom-right { bottom: -5rem; right: -5rem; }

/* گرید اصلی */
.selector-content-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

/* تصویر */
.selector-image img {
    width: 100%;
    max-width: 28rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
}

/* عنوان */
.section-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 1rem;
}

/* توضیحات */
.section-desc {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

/* فرم */
.form-control {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
}
.form-control:hover {
    border-color: var(--color-border-hover);
}

.form-control label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* گزینه‌ها */
.option-group {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.option-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
    font-weight: 700;
}
.option-btn.active,
.option-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
}

/* وزن */
.weight-picker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.weight-picker button {
    background: var(--color-primary);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: #000;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#weightValue {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

/* دکمه اصلی */
#findBikesBtn {
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    padding: 1rem 1.25rem;
}

/* نتایج */
.results-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 480px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-card {
    display: block;
    background-color: var(--color-bg-surface, #18181b);
    border: 1px solid var(--color-border, #27272a);
    border-radius: var(--radius-lg, 1rem);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.25s ease;
}

.result-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.result-img-wrapper {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: #000;
    overflow: hidden;
}

.result-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-card:hover .result-img {
    transform: scale(1.06);
}

.result-cat {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(9, 9, 11, 0.85);
    color: var(--color-primary, #eab308);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.result-info {
    padding: 0.85rem 1rem;
}

.result-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-light, #fff);
    margin-bottom: 0.35rem;
}

.result-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-primary, #eab308);
}

.selector-results-note {
    grid-column: 1 / -1;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.78rem;
    line-height: 1.8;
}

.result-old-price {
    display: block;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.72rem;
}

.result-fit-note {
    display: block;
    margin-top: 0.35rem;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.68rem;
}

.result-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.85rem;
    border: 1px dashed var(--color-border, #27272a);
    border-radius: var(--radius-md, 0.75rem);
}

/* ریسپانسیو */
@media (min-width: 768px) {
    .selector-content-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .selector-image img {
        max-width: 100%;
    }
}

/* --------------------------------------------- */
/* PRODUCTS & BLOG SECTIONS                      */
/* --------------------------------------------- */
.products, .blog { padding: 4rem 0; }

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

.title-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.title-icon { width: 1.5rem; height: 1.5rem; }

.link-view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}
.link-view-all .icon {
    transform: rotate(180deg); /* فلش رو درست کن */
    transition: transform 0.3s ease;
}
.link-view-all:hover {
    color: var(--color-primary-hover);
    transform: translateX(3px);
}
.product-grid, .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Product Card */
.product-card {
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-img-box {
    background: #e4e4e7;
    aspect-ratio: 4 / 3;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.home-old-price {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.1rem;
}

.product-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    transition: transform 0.3s ease;
    border-radius: var(--radius-md);
}

.product-card:hover .product-img-box img { transform: scale(1.05); }

.product-info { padding: 1.25rem; }

.product-title {
    font-size: 1.125rem;
    font-weight: 700;
}
.product-title a{
    text-decoration: none;
    color: var(--text-light);
}
.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1rem;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.price-value {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
}
.price-value small { font-size: 0.75rem; font-weight: 400; }

/* Blog Card */
.blog-card a {
    display: block;
    background: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.blog-img-box {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

.blog-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-img-box img { transform: scale(1.05); }

.blog-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: var(--text-dark);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
    line-height: 1.2;
}

.date-day { display: block; font-size: 1.25rem; font-weight: 700; }
.date-month { font-size: 0.75rem; }

.blog-info { padding: 1.25rem; }

.blog-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title { color: var(--color-primary); }

.blog-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    /* Ellipsis برای متن چند خطی */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.blog-link {
    display: block;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

/*======================================
                FOOTER
======================================*/

.footer{
    margin-top:80px;
    padding:64px 0 32px;
    background:#09090b;
    border-top:1px solid #27272a;
}

.footer-content{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:40px;
    margin-bottom:48px;
}

/*==============================
            BRAND
==============================*/

.footer-logo{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:18px;
    text-decoration:none;
}

.footer-logo img{
    width:52px;
    height:52px;
    object-fit:contain;
}

.footer-brand p{
    color:#71717a;
    font-size:.85rem;
    line-height:2;
    max-width:320px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 1rem;
}

.footer-contact-list a {
    color: #e4e4e7;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.8;
}

.footer-contact-list a:hover {
    color: #facc15;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.8rem;
    color: #a1a1aa;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.footer-social-link:hover {
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.4);
    transform: translateY(-2px);
}

.footer-social-link svg,
.footer-social-link img {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

/*==============================
            COLUMNS
==============================*/

.footer-column h3{
    color:#fff;
    font-size:.95rem;
    font-weight:700;
    margin-bottom:18px;
}

.footer-column ul{
    list-style:none;
}

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

.footer-column a{
    color:#71717a;
    text-decoration:none;
    transition:.25s;
    font-size:.9rem;
}

.footer-column a:hover{
    color:#facc15;
}

/*==============================
            TRUST
==============================*/

.trust-boxes{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.trust-box{
    width:82px;
    height:82px;

    border:1px solid #27272a;

    border-radius:12px;

    background:#18181b;

    display:flex;
    justify-content:center;
    align-items:center;

    transition:.3s;
}

.trust-box:hover{

    border-color:#facc15;

    transform:translateY(-3px);

}

.trust-box img{

    width:56px;
    max-width:80%;

}

/*==============================
        COPYRIGHT
==============================*/

.footer-bottom{

    border-top:1px solid #27272a;

    padding-top:24px;

    text-align:center;

}

.footer-bottom p{

    color:#52525b;

    font-size:.8rem;

}

/*==============================
        RESPONSIVE
==============================*/

@media(max-width:992px){

    .footer-content{

        grid-template-columns:repeat(2,1fr);

        gap:35px;

    }

}

@media(max-width:768px){

    .footer{

        padding:50px 0 25px;

    }

    .footer-content{

        grid-template-columns:1fr;

        text-align:center;

    }

    .footer-logo{

        justify-content:center;

    }

    .footer-brand p{

        margin:auto;

    }

    .trust-boxes{

        justify-content:center;

    }

}
/* --------------------------------------------- */
/* RESPONSIVE DESIGN                             */
/* --------------------------------------------- */
@media (min-width: 640px) {
    .hero-title { font-size: 4rem; }
    .results-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

@media (min-width: 768px) {
    .hero-title { font-size: 4.5rem; }
    .features-grid { grid-template-columns: repeat(4, 1fr); }
    .feature-item { border-bottom: none; border-left: 1px solid var(--color-border); }
    .feature-item:last-child { border-left: none; }
    
    .selector-content-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .mobile-menu, .btn-icon.mobile-only { display: none; }
    
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}
/* ========================================================================== */
/* PRODUCT PAGE STYLES                                                        */
/* ========================================================================== */

.product-main {
    padding: 3rem 1rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.az-hero-content .breadcrumb {
    justify-content: center;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--text-light);
}

.breadcrumb .separator {
    color: white;
}

.breadcrumb .current {
    color: var(--text-light);
    font-weight: 500;
}

/* Product Showcase Layout */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Gallery Section */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.discount-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #dc2626; /* red-600 */
    color: #fff;
    font-size: 0.875rem;
    font-weight: 900;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    z-index: 10;
    animation: pulse 2s infinite;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image-wrapper:hover .main-img {
    transform: scale(1.05);
}

/* Thumbnails */
.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}

.thumb-btn, .thumb-more-btn {
    aspect-ratio: 1 / 1;
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumb-btn:hover img {
    opacity: 1;
}

.thumb-btn.active {
    border-color: var(--color-primary);
}

.thumb-btn.active img {
    opacity: 1;
}

.thumb-more-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    font-size: 0.625rem;
    font-weight: 900;
}

.thumb-more-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

.thumb-more-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.thumb-more-btn:hover svg {
    transform: scale(1.1);
}

/* Product Info Section */
.product-info-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
}

.product-page-title {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.rating-stars-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating-stars-display .star { color: var(--color-border); }
.rating-stars-display .star.active { color: var(--color-primary); }
.rating-number { font-weight: 700; color: var(--text-light); margin-right: 0.25rem; }

.review-link {
    background: none;
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.review-link:hover { color: var(--color-primary); }

.product-short-desc {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.product-brand-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.product-brand-meta strong {
    color: var(--text-light);
}

/* Color Selection */
.color-selection {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selection-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.color-value-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
}

.colors-list {
    display: flex;
    gap: 0.75rem;
}

.color-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--color-bg-surface);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-btn.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.3);
}

.color-swatch {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    display: block;
}

.color-options-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.color-options-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-option-btn {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-bg-surface);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-option-btn:hover {
    border-color: var(--color-primary);
}

.color-option-btn.active {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: #000;
}

.cart-item-color {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0.15rem 0;
}

/* Purchase Card */
.purchase-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.purchase-glow {
    position: absolute;
    right: -2.5rem;
    bottom: -2.5rem;
    width: 10rem;
    height: 10rem;
    background-color: rgba(234, 179, 8, 0.05);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.old-price-group, .new-price-group {
    display: flex;
    flex-direction: column;
}

.old-price-group { text-align: right; }
.new-price-group { text-align: left; }

.old-price {
    color: #71717a;
    text-decoration: line-through;
    font-size: 0.875rem;
    font-weight: 700;
}

.discount-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.discount-tag {
    background-color: #dc2626;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 900;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
}

.new-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qty-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qty-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.qty-selector {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.qty-btn {
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--color-bg-surface);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-btn:hover:not(:disabled) { background-color: var(--color-border); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

#qty-input {
    width: 3rem;
    text-align: center;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 900;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Firefox */
input[type=number] { -moz-appearance: textfield; }

.qty-alert {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 500;
}
.qty-alert.hidden { display: none; }

.btn-add-cart {
    position: relative;
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    color: #052e21;
    border-radius: var(--radius-lg, 1rem);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255,255,255,0.35);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(.16,1,.3,1);
}

.btn-add-cart.btn-disabled,
.btn-add-cart:disabled {
    background: #27272a;
    color: #71717a;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-add-cart.btn-disabled::before,
.btn-add-cart:disabled::before {
    display: none;
}

.btn-add-cart::before {
    content: "";
    position: absolute;
    top: 0;
    right: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    transition: right 0.7s ease;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255,255,255,0.4);
}

.btn-add-cart:hover::before {
    right: 130%;
}

.btn-add-cart:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-add-cart svg {
    width: 1.1rem;
    height: 1.1rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.btn-add-cart:hover svg {
    transform: translateY(-1px) scale(1.05);
}

/* ========================================================================== */
/* TABS SECTION                                                               */
/* ========================================================================== */
.product-tabs-section {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
}

.tabs-nav {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 2rem;
    overflow-x: auto;
    white-space: nowrap;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0 0.5rem 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover { color: var(--text-light); }
.tab-btn.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease-in-out; }

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

/* Specs Tab */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(24, 24, 27, 0.4);
    border: 1px solid rgba(39, 39, 42, 0.6);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
}

.spec-item:hover { border-color: rgba(39, 39, 42, 1); }

.spec-title { font-size: 0.75rem; color: var(--text-muted); }
.spec-value { font-size: 0.875rem; font-weight: 700; text-align: left; }
.highlight-spec .spec-value { color: var(--color-primary); }

/* Description Tab */
.desc-box {
    max-width: 900px;
    background-color: rgba(24, 24, 27, 0.2);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    line-height: 1.8;
}

.desc-box h3 { font-size: 1.125rem; font-weight: 900; margin-bottom: 1rem; }
.desc-box p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }

/* Reviews Tab */
.reviews-wrapper {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* تغییر مهم: فرم ارسال دیدگاه با ساختار جدید برای ستاره‌ها */
.review-form-box {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.form-title {
    font-size: 0.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.75rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus { border-color: var(--color-primary); }

/* چیدمان جدید ستاره‌ها (دقیقا بالای باکس متن) */
.rating-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
}

.rating-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stars-interactive {
    display: flex;
    gap: 0.25rem;
    font-size: 1.25rem;
}

.stars-interactive .star-icon {
    color: var(--color-border);
    cursor: pointer;
    transition: color 0.2s ease;
}

.stars-interactive .star-icon.active, 
.stars-interactive .star-icon:hover {
    color: var(--color-primary);
}

.submit-review-btn {
    align-self: flex-start;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-card {
    background-color: rgba(24, 24, 27, 0.5);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
}

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

.comment-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--color-bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.75rem;
}

.user-info h4 { font-size: 0.75rem; font-weight: 700; }
.user-info time { font-size: 0.625rem; color: var(--text-muted); }

.comment-rating { font-size: 0.75rem; color: var(--color-primary); }

.comment-text { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.animate-fade-in { animation: fadeIn 0.4s ease-in-out; }

/* --------------------------------------------- */
/* RECOMMENDED PRODUCTS                          */
/* --------------------------------------------- */
.recommended-products {
    margin-top: 6rem;
    border-top: 1px solid var(--color-border);
    padding-top: 4rem;
}

.subtitle-badge {
    display: block;
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

/* --------------------------------------------- */
/* GALLERY MODAL                                 */
/* --------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.hidden { display: none; }

.modal-content {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--color-bg-surface);
    color: var(--text-muted);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    color: var(--text-light);
    background-color: var(--color-border);
}

.modal-title {
    font-size: 0.875rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-gallery-grid::-webkit-scrollbar { width: 4px; }
.modal-gallery-grid::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }

.modal-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (PRODUCT PAGE)              */
/* --------------------------------------------- */
@media (min-width: 640px) {
    .purchase-actions { flex-direction: row; align-items: center; }
    .btn-add-cart { flex: 1; }
    .modal-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
    .product-page-title { font-size: 1.875rem; }
    .specs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .product-showcase { grid-template-columns: 5fr 7fr; gap: 3rem; }
}
/* ========================================================================== */
/* SHARED: CUSTOM SELECT WRAPPER (used by blog.html sort dropdown)            */
/* ========================================================================== */

.custom-select-wrapper {
    position: relative;
    width: 180px;
}

/* فلش کاستوم برای سلکت */
.custom-select-wrapper::after {
    content: "▼";
    font-size: 0.5rem;
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}
/* --------------------------------------------- */
/* BLOG READ MORE BUTTON                         */
/* --------------------------------------------- */
.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.blog-read-more svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

.blog-read-more:hover {
    color: var(--color-primary-hover);
}

/* حرکت فلش به سمت چپ در قالب راست‌چین (RTL) */
.blog-read-more:hover svg {
    transform: translateX(-5px);
}

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

.featured-title {
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-title a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.featured-title a:hover {
    color: var(--color-primary);
}

.featured-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.category-btn {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.813rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: var(--text-muted);
    color: var(--text-light);
}

.category-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #000;
    font-weight: 700;
}

/* --------------------------------------------- */
/* BLOG ARTICLE GRID                             */
/* --------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (BLOG)                      */
/* --------------------------------------------- */
@media (min-width: 768px) {
    .featured-title {
        font-size: 1.625rem;
    }
}


/* ========================================================================== */
/* BLOG PAGE STYLES                                                           */
/* ========================================================================== */

/* --------------------------------------------- */
/* BLOG HERO SECTION                             */
/* --------------------------------------------- */
.blog-hero {
    position: relative;
    padding: 5rem 0 6rem 0;
    border-bottom: 1px solid var(--color-border);
    background-color: #050505; /* تیره‌تر از پس‌زمینه عادی */
    overflow: hidden;
    text-align: center;
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1485965120184-e220f721d03e?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    mix-blend-mode: overlay;
    z-index: 0;
}

.galactic-glow {
    position: absolute;
    background-color: rgba(234, 179, 8, 0.05);
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    top: -10rem;
    left: 50%;
    transform: translateX(-50%);
    width: 32rem;
    height: 32rem;
}

.blog-hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.page-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 42rem;
    line-height: 1.8;
}

/* --------------------------------------------- */
/* TOOLBAR & FILTERS                             */
/* --------------------------------------------- */
.blog-toolbar-section {
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--color-bg-surface);
    padding: 2rem 0;
}

.blog-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background-color: rgba(9, 9, 11, 0.4);
    border: 1px solid var(--color-border);
    padding: 1rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
}

.category-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-btn {
    background-color: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.category-btn:hover {
    border-color: rgba(63, 63, 70, 1);
    color: var(--text-light);
}

.category-btn.active {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--text-dark);
    font-weight: 700;
}

.search-sort-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.custom-select-input {
    width: 100%;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-family: inherit;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.custom-select-input:focus { border-color: var(--color-primary); }

.select-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    color: var(--text-light);
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus { border-color: var(--color-primary); }
.search-input::placeholder { color: #52525b; }

.search-icon {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.search-input:focus ~ .search-icon { color: var(--color-primary); }

/* --------------------------------------------- */
/* FEATURED POST (مقاله ویژه)                     */
/* --------------------------------------------- */
.featured-section { padding-top: 3rem; }

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transition: border-color 0.3s ease;
}

.featured-card:hover { border-color: rgba(39, 39, 42, 1); }

.featured-img-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-bg-surface);
}

.badge-solid {
    position: absolute;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.featured-badge { top: 1rem; right: 1rem; }

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-img { transform: scale(1.02); }

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    gap: 1.5rem;
}

.category-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.title-link { text-decoration: none; display: block; }

.featured-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.featured-card:hover .featured-title { color: var(--color-primary); }

.featured-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.author-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    font-size: 0.688rem;
    color: #71717a;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border);
}

.author-name { font-weight: 500; color: var(--text-muted); }

.post-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
}

/* --------------------------------------------- */
/* ARTICLES GRID                                 */
/* --------------------------------------------- */
.blog-grid-section { padding: 3rem 0 4rem 0; }

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

.blog-item {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-4px);
    border-color: rgba(39, 39, 42, 1);
}

.blog-item-img-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-bg-surface);
}

.top-right { top: 1rem; right: 1rem; }

.blog-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-item-img { transform: scale(1.05); }

.blog-item-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 1.5rem;
}

.blog-item-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: var(--text-light);
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.blog-item:hover .blog-item-title { color: var(--color-primary); }

.blog-item-excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

/* --------------------------------------------- */
/* PAGINATION (مجله)                              */
/* --------------------------------------------- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid var(--color-border);
}

.pagination-nav {
    display: inline-flex;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.page-arrow, .page-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-arrow {
    background-color: var(--color-bg-main);
    border: 1px solid rgba(39, 39, 42, 0.8);
    color: var(--text-muted);
}

.page-arrow:hover {
    border-color: var(--color-primary);
    color: var(--text-light);
}

.page-number {
    background-color: var(--color-bg-main);
    border: 1px solid rgba(39, 39, 42, 0.8);
    color: var(--text-muted);
}

.page-number:hover {
    border-color: var(--color-primary);
    color: var(--text-light);
}

.page-number.active {
    background-color: var(--color-primary);
    border-color: rgba(202, 138, 4, 1);
    color: #000;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.1);
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (BLOG)                      */
/* --------------------------------------------- */
@media (min-width: 640px) {
    .search-sort-group {
        flex-direction: row;
        width: auto;
    }
    
    .custom-select-wrapper { width: 10rem; }
    .search-input-wrapper { width: 18rem; }
}

@media (min-width: 768px) {
    .page-main-title { font-size: 3.75rem; }
    .blog-toolbar { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
    .featured-card {
        grid-template-columns: 7fr 5fr;
    }
    
    .featured-img-link { min-height: 360px; aspect-ratio: auto; }
    
    .featured-content { padding: 2rem; }
    
    .featured-title { font-size: 1.5rem; }
}
/* ========================================================================== */
/* SINGLE ARTICLE PAGE STYLES                                                 */
/* ========================================================================== */

.article-page-wrapper {
    position: relative;
    padding-bottom: 4rem;
}

.article-main-glow {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38rem;
    height: 38rem;
    background-color: rgba(234, 179, 8, 0.03); /* نور ملایم‌تر برای پس‌زمینه خواندن */
}

.article-container {
    position: relative;
    z-index: 10;
    max-width: 900px; /* کنترل عرض برای خوانایی بهتر خطوط (Line Length) */
}

.article-box {
    background-color: rgba(9, 9, 11, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    margin-bottom: 4rem;
}

/* Header */
.article-header {
    margin-bottom: 2.5rem;
}

.article-tags-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.read-time-meta {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.article-author-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    font-size: 0.75rem;
}

.author-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar-text {
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-weight: 700;
}

.author-name { font-weight: 700; color: var(--text-light); }
.publish-date { color: var(--text-muted); }

/* Cover Image */
.article-cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    margin-bottom: 2.5rem;
    aspect-ratio: 16 / 9;
}

.article-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* حفظ تناسب تصویر بدون دفرمه شدن */
}

/* افکت overlay برای خوانایی کپشن روی عکس */
.article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
    pointer-events: none;
}

.article-cover-caption {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    font-size: 0.75rem;
    color: var(--text-muted);
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

/* Body Content */
.article-body {
    font-size: 1rem;
    line-height: 1.8; /* فاصله خطوط استاندارد برای متون فارسی */
    color: #d4d4d8;
}

.article-lead {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.9;
    border-right: 4px solid var(--color-primary); /* خط رنگی سمت راست */
    padding: 0.75rem 1rem 0.75rem 0;
    background-color: rgba(24, 24, 27, 0.4);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 2.5rem;
}

.article-section { margin-bottom: 2.5rem; }

.article-subheading {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-subheading::before {
    content: "";
    display: inline-block;
    width: 0.375rem;
    height: 1.5rem;
    background-color: var(--color-primary);
    border-radius: var(--radius-full);
}

/* Bike Types Grid */
.bike-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.type-card {
    background-color: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
}

.type-card h3 {
    font-size: 0.875rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.type-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Custom Bullet List */
.custom-bullet-list {
    list-style: none;
    padding: 1.25rem;
    margin: 0;
    background-color: rgba(24, 24, 27, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
}

.list-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.custom-bullet-list strong { color: var(--text-light); }

/* Article CTA Box */
.article-cta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(to bottom right, var(--color-bg-main), #18181b);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 3rem;
}

.recommended-bike-box {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: linear-gradient(135deg, rgba(234,179,8,0.08), transparent);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 2.5rem 0;
}

.recommended-bike-box .rb-img-wrap {
    width: 6rem;
    height: 6rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #18181b;
}
.recommended-bike-box .rb-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.recommended-bike-box .rb-info { flex: 1; min-width: 0; }
.recommended-bike-box .rb-label {
    display: inline-block;
    font-size: 0.688rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.recommended-bike-box .rb-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.recommended-bike-box .rb-price-row { font-size: 0.8rem; margin-bottom: 0.6rem; }
.recommended-bike-box .rb-old-price { color: var(--text-muted); text-decoration: line-through; margin-left: 0.4rem; }
.recommended-bike-box .rb-price { color: var(--color-primary); font-weight: 700; }
.recommended-bike-box .rb-btn { padding: 0.4rem 1rem; font-size: 0.8rem; display: inline-block; }

@media (max-width: 640px) {
    .recommended-bike-box { flex-direction: column; text-align: center; }
}

.cta-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cta-text p { font-size: 0.75rem; color: var(--text-muted); }

.cta-btn-link { white-space: nowrap; }

/* --------------------------------------------- */
/* RELATED ARTICLES                              */
/* --------------------------------------------- */
.related-articles-section {
    border-top: 1px solid var(--color-border);
    padding-top: 2.5rem;
}

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

.related-card {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.related-card:hover {
    border-color: rgba(39, 39, 42, 1);
    transform: translateY(-2px);
}

.related-img-box {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.related-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-img { transform: scale(1.05); }

.related-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.related-title {
    font-size: 1rem;
    font-weight: 900;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* هندل کردن متون طولانی */
}

.related-excerpt {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-link {
    font-size: 0.688rem;
    font-weight: 900;
    color: var(--color-primary);
    text-decoration: none;
    margin-top: auto;
}

/* --------------------------------------------- */
/* ACTIONS & COMMENTS                            */
/* --------------------------------------------- */
.article-actions-bar {
    display: flex;
    padding: 2rem 0;
    margin-top: 2.5rem;
    border-top: 1px solid var(--color-border);
}

.btn-like {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-like .like-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.btn-like .like-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.btn-like:hover { border-color: #ef4444; }
.btn-like:hover .like-icon, .btn-like:hover .like-text { color: #ef4444; }
.btn-like:active { transform: scale(0.95); }

.btn-like.liked { border-color: #ef4444; background-color: rgba(239, 68, 68, 0.1); }
.btn-like.liked .like-icon, .btn-like.liked .like-text { color: #ef4444; }

.like-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--color-bg-surface, #18181b);
    border-radius: var(--radius-full);
    padding: 0.1rem 0.5rem;
    transition: color 0.2s ease;
}

.btn-like.liked .like-count { color: #ef4444; }

/* Comments Section */
.article-comments-section {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    margin-top: 1rem;
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.comment-form-box {
    background-color: rgba(24, 24, 27, 0.4);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.comment-name-input {
    width: 100%;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-name-input:focus { border-color: var(--color-primary); }

.comment-textarea {
    width: 100%;
    height: 6rem;
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.75rem;
    resize: vertical;
    outline: none;
    transition: border-color 0.3s ease;
}

.comment-textarea:focus { border-color: var(--color-primary); }

.btn-submit-comment { align-self: flex-start; }
.btn-submit-comment:disabled { opacity: 0.6; cursor: not-allowed; }

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-bg-surface);
    padding: 1rem;
    border-radius: var(--radius-md);
}

.comment-item-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.comment-author-name {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--color-primary);
}

.comment-date {
    font-size: 0.65rem;
    color: var(--text-muted, #71717a);
    white-space: nowrap;
}

.comment-body-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (ARTICLE)                   */
/* --------------------------------------------- */
@media (min-width: 640px) {
    .article-cta-box {
        flex-direction: row;
        text-align: right;
    }
}

@media (min-width: 768px) {
    .article-box { padding: 3rem; }
    .article-main-title { font-size: 3rem; }
}
/* ========================================================================== */
/* MAINTENANCE PAGE STYLES                                                    */
/* ========================================================================== */

.maintenance-body {
    background-color: var(--color-bg-main, #050505);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

/* افکت نورانی پس‌زمینه */
.maintenance-glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

/* کارت اصلی */
.maintenance-card {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 32rem; /* معادل max-w-lg */
    background-color: rgba(9, 9, 11, 0.8);
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    gap: 2rem;
}

.maintenance-logo-box {
    width: 4rem;
    height: 4rem;
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid #3f3f46;
    background-color: #18181b;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.maintenance-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.3));
}

/* انیمیشن‌ها و آیکون‌ها */
.maintenance-icons {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 6rem;
    width: 6rem;
}

.icon-gear {
    position: absolute;
    width: 6rem;
    height: 6rem;
    color: #3f3f46;
}

.animate-spin-slow {
    animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-wrench {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--color-primary);
    position: absolute;
    z-index: 10;
}

/* تایپوگرافی متن پیام */
.maintenance-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.maintenance-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
}

.maintenance-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* بخش ارتباطی پایین کارت */
.maintenance-contact {
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-hint {
    font-size: 0.75rem;
    color: #71717a;
}

.btn-contact-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #18181b;
    border: 1px solid var(--color-border);
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-contact-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-contact-outline svg {
    width: 1rem;
    height: 1rem;
}

/* کپی‌رایت */
.maintenance-copyright {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.6875rem; /* 11px */
    color: #52525b;
}

/* ریسپانسیو */
@media (min-width: 768px) {
    .maintenance-card {
        padding: 3rem;
    }
    .maintenance-title {
        font-size: 1.875rem;
    }
}
/* ========================================================================== */
/* 404 ERROR PAGE STYLES                                                      */
/* ========================================================================== */

.error-page-body {
    background-color: var(--color-bg-main, #050505);
    color: #f4f4f5; /* zinc-100 */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* ---------------- هدر ---------------- */
.error-header {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid #18181b; /* zinc-900 */
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
}

.error-header-container {
    max-width: 80rem; /* max-w-7xl */
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.error-logo-box {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.375rem;
    border-radius: 0.75rem;
    border: 1px solid #27272a; /* zinc-800 */
    background-color: rgba(24, 24, 27, 0.5); /* zinc-900/50 */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.error-logo-link:hover .error-logo-box {
    border-color: rgba(234, 179, 8, 0.5); /* primary-yellow/50 */
}

.error-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(234, 179, 8, 0.3));
}

.error-logo-text {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    transition: color 0.3s ease;
}

.error-logo-link:hover .error-logo-text {
    color: var(--color-primary, #eab308);
}

.error-contact-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa; /* zinc-400 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.error-contact-link:hover {
    color: #ffffff;
}

/* ---------------- محتوای اصلی ---------------- */
.error-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    z-index: 10;
}

.error-glow-bg {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.error-content-wrapper {
    text-align: center;
    max-width: 42rem; /* max-w-2xl */
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* تایپوگرافی عدد 404 */
.error-number-box {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.error-number {
    font-size: 6rem; /* text-8xl */
    font-weight: 900;
    line-height: 1;
    user-select: none;
    background: linear-gradient(to bottom, #f4f4f5, #27272a);
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-zero {
    color: var(--color-primary, #eab308);
    display: inline-block;
    margin: 0 0.5rem;
    animation: spin-reverse-slow 8s linear infinite;
}

@keyframes spin-reverse-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.error-number-bg-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.2;
}

.error-number-bg-icon svg {
    width: 8rem;
    height: 8rem;
    color: var(--color-primary, #eab308);
}

/* متون خطا */
.error-text-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.error-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.025em;
}

.error-desc {
    color: #a1a1aa; /* zinc-400 */
    font-size: 0.875rem;
    line-height: 1.8;
    max-width: 28rem;
    margin: 0 auto;
}

/* دکمه‌ها */
.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1.5rem;
}

.btn-error-primary, .btn-error-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-error-primary {
    background-color: var(--color-primary, #eab308);
    color: #000000;
    font-weight: 900;
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.2);
}

.btn-error-primary:hover {
    background-color: #facc15; /* hover-yellow */
}

.btn-error-secondary {
    background-color: rgba(24, 24, 27, 0.5); /* zinc-900/50 */
    border: 1px solid #3f3f46; /* zinc-700 */
    color: #ffffff;
    font-weight: 700;
}

.btn-error-secondary:hover {
    background-color: #27272a; /* zinc-800 */
    border-color: #71717a; /* zinc-500 */
}

.error-actions svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ---------------- موج تزئینی ---------------- */
.error-wave-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
    opacity: 0.1;
    pointer-events: none;
}

.error-wave-bottom svg {
    display: block;
    width: 100%;
    height: 100px;
}

.error-wave-bottom .fill-white {
    fill: #ffffff;
}

/* ---------------- ریسپانسیو ---------------- */
@media (min-width: 640px) { /* sm */
    .error-actions {
        flex-direction: row;
    }
    .btn-error-primary, .btn-error-secondary {
        width: auto;
    }
}

@media (min-width: 768px) { /* md */
    .error-number {
        font-size: 9.375rem; /* 150px */
    }
    .error-number-bg-icon svg {
        width: 12rem;
        height: 12rem;
    }
    .error-title {
        font-size: 2.25rem; /* 4xl */
    }
    .error-desc {
        font-size: 1rem;
    }
}
/* ========================================================================== */
/* AUTHENTICATION PAGE STYLES (LOGIN/REGISTER)                                */
/* ========================================================================== */

.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--color-bg-main, #050505);
}

.auth-card {
    width: 100%;
    max-width: 28rem; /* 448px */
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--color-border, #27272a);
    border-radius: var(--radius-xl, 1.5rem);
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Header */
.auth-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-brand {
    font-size: 1.25rem;
    font-weight: 900;
    margin-top: 0.75rem;
    color: var(--text-light, #ffffff);
}

.auth-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted, #a1a1aa);
    margin-top: 0.25rem;
    text-align: center;
    line-height: 1.8;
}

.auth-logo-img {
    width: 3rem;
    height: 3rem;
}

.auth-back-link {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted, #a1a1aa);
    text-decoration: none;
    transition: color 0.15s;
    z-index: 10;
}

.auth-back-link:hover {
    color: var(--text-light, #ffffff);
}

.auth-back-link svg {
    width: 1.1rem;
    height: 1.1rem;
    transform: scaleX(-1); /* برای راست‌چین بودن جهت فلش */
}

.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.5rem;
}

.auth-forgot-link {
    font-size: 0.7rem;
    color: var(--color-primary, #eab308);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-terms-note {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted, #a1a1aa);
    margin-top: 1.5rem;
    line-height: 1.8;
}

.auth-form-message {
    font-size: 0.8rem;
    line-height: 1.8;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm, 0.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.auth-form-message.hidden {
    display: none;
}

.auth-form-message.is-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}

.auth-form-message.is-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}

/* Tabs */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: rgba(24, 24, 27, 0.6);
    border: 1px solid var(--color-border, #27272a);
    border-radius: var(--radius-md, 0.75rem);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.auth-tab-btn {
    padding: 0.625rem;
    font-size: 0.875rem;
    background: transparent;
    color: var(--text-muted, #a1a1aa);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.auth-tab-btn:hover {
    color: var(--text-light, #ffffff);
}

.auth-tab-btn.active {
    background-color: var(--color-primary, #eab308);
    color: var(--text-dark, #000000);
    font-weight: 700;
}

/* Forms */
.auth-form-tab {
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.auth-form-tab.active {
    display: flex;
    animation: fadeInTab 0.3s ease;
}

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

.form-group {
    width: 100%;
    position: relative;
}

.auth-input {
    width: 100%;
    background-color: #000000 !important;
    border: 1px solid var(--color-border, #27272a) !important;
    color: var(--text-light, #ffffff) !important;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 0.75rem);
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.auth-input::placeholder {
    color: #52525b;
}

.auth-input:focus {
    border-color: var(--color-primary, #eab308) !important;
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.3);
}

/* Password Visibility Toggle */
.pass-group .auth-input {
    padding-left: 2.5rem; /* جا باز کردن برای آیکون */
}

.toggle-pass-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted, #a1a1aa);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.toggle-pass-btn:hover {
    color: var(--text-light, #ffffff);
}

.toggle-pass-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}
/* ========================================================================== */
/* CONTACT PAGE STYLES                                                        */
/* ========================================================================== */

.contact-page-wrapper {
    padding: 5rem 0;
}

.contact-container {
    max-width: 64rem; /* max-w-5xl */
}

.contact-hero {
    margin-bottom: 4rem;
}

.contact-hero .page-main-title {
    font-size: 3rem; /* text-5xl */
    margin-bottom: 1.5rem;
}

.contact-hero .page-subtitle {
    font-size: 1.125rem; /* text-lg */
}

/* --------------------------------------------- */
/* INFO GRID CARDS                               */
/* --------------------------------------------- */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    background-color: var(--color-bg-surface, #09090b);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card:hover {
    border-color: rgba(234, 179, 8, 0.5); /* hover:border-yellow-500/50 */
}

.contact-icon-box {
    width: 4rem;
    height: 4rem;
    background-color: rgba(24, 24, 27, 0.8); /* bg-zinc-900 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary, #eab308);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-box {
    transform: scale(1.1);
}

.contact-icon {
    width: 2rem;
    height: 2rem;
}

.contact-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light, #ffffff);
}

.contact-card-desc a {
    color: var(--text-muted, #a1a1aa);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* --------------------------------------------- */
/* SOCIAL & MAP SECTION                          */
/* --------------------------------------------- */
.contact-social-map-section {
    background-color: var(--color-bg-surface, #09090b);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.social-promo {
    text-align: center;
    flex: 1;
}

.social-title {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--text-light, #ffffff);
}

.social-desc {
    color: var(--text-muted, #a1a1aa);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.btn-social {
    background-color: rgba(39, 39, 42, 0.8); /* bg-zinc-800 */
    border: none;
    color: var(--text-light, #ffffff);
}

.social-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
	align-items:center;
	justify-content:center;
}

.btn-social:hover {
    background-color: var(--color-primary, #eab308);
    color: #000000;
}

.map-wrapper {
    width: 100%;
    height: 16rem; /* h-64 */
    background-color: rgba(24, 24, 27, 0.8); /* bg-zinc-900 */
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border, #27272a);
    flex: 1;
}

.google-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    /* فیلتر جادویی برای تاریک کردن و هماهنگ‌سازی نقشه با تم دارک */
    filter: invert(90%) hue-rotate(180deg) brightness(80%) contrast(85%);
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN                             */
/* --------------------------------------------- */
@media (min-width: 768px) {
    .contact-social-map-section {
        flex-direction: row;
        padding: 1.5rem 1.5rem 1.5rem 2rem;
    }
    
    .social-promo {
        text-align: center;
    }
}
/* ========================================================================== */
/* ABOUT PAGE STYLES                                                          */
/* ========================================================================== */

.about-page-wrapper {
    padding: 5rem 0;
}

/* --------------------------------------------- */
/* HERO SECTION (ABOUT)                          */
/* --------------------------------------------- */
.about-hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 4rem;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    width: 100%;
}

.about-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-light);
}

.about-hero-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-hero-image-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* افکت نورانی پس‌زمینه عکس */
.about-glow {
    position: absolute;
    width: 24rem;
    height: 24rem;
    background-color: rgba(234, 179, 8, 0.15);
    filter: blur(100px);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.about-owner-img {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

/* --------------------------------------------- */
/* FEATURES SECTION (ABOUT)                      */
/* --------------------------------------------- */
.about-features-section {
    margin-top: 8rem;
}

.about-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-feature-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

.about-feature-card:hover {
    border-color: rgba(234, 179, 8, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.about-feature-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-light);
}

.about-feature-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (ABOUT)                     */
/* --------------------------------------------- */
@media (min-width: 768px) {
    .about-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .about-hero {
        flex-direction: row;
    }
    
    .about-hero-content, 
    .about-hero-image-wrapper {
        width: 50%;
    }
    
    .about-main-title {
        font-size: 3.5rem;
    }
}
/* ========================================================================== */
/* SMART BIKE SELECTOR PAGE (WIZARD)                                          */
/* ========================================================================== */

.smart-selector-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.smart-selector-main {
    flex: 1;
    width: 100%;
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.smart-header-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.smart-header-text h1 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.smart-header-text p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* ==========================================================================
   طراحی اختصاصی مراحل دستیار هوشمند (bike-selector.html)
========================================================================== */
.bsp-step {
    position: relative;
    padding-right: 3.25rem;
    margin-bottom: 2rem;
}

.bsp-step:not(:last-of-type)::before {
    content: "";
    position: absolute;
    top: 2.75rem;
    right: 1.15rem;
    width: 2px;
    height: calc(100% + 0.5rem);
    background: linear-gradient(to bottom, rgba(234, 179, 8, 0.4), rgba(234, 179, 8, 0.05));
}

.bsp-step-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.bsp-step-num {
    position: absolute;
    right: 0;
    top: 0;
    width: 2.35rem;
    height: 2.35rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fde047, #eab308);
    color: #1a1400;
    font-weight: 900;
    font-size: 0.95rem;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.35);
    z-index: 1;
}

.bsp-step-icon {
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 0.65rem;
    color: var(--color-primary, #eab308);
}

.bsp-step-icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.bsp-step-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-light, #fff);
}

.bsp-unit-hint {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted, #a1a1aa);
    margin-top: 0.6rem;
}

.bsp-submit-btn {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1.1rem 1.5rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
    color: #1a1400;
    border: none;
    border-radius: var(--radius-lg, 1rem);
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(234, 179, 8, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    transition: all 0.3s cubic-bezier(.16,1,.3,1);
}

.bsp-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    right: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: skewX(-20deg);
    transition: right 0.7s ease;
}

.bsp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(234, 179, 8, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}

.bsp-submit-btn:hover::before {
    right: 130%;
}

.bsp-submit-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.bsp-submit-btn:hover svg {
    transform: translateX(-3px);
}

.bsp-results:not(:empty) {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--color-border, #27272a);
}

.smart-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-box {
    background-color: rgba(9, 9, 11, 0.6);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.step-badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-bg-main);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
}

.step-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-light);
}

.optional-text {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
}

.range-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-range-input {
    width: 100%;
    height: 0.5rem;
    background-color: var(--color-bg-surface);
    border-radius: var(--radius-sm);
    appearance: none;
    outline: none;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    background-color: rgba(24, 24, 27, 0.5);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-bg-surface);
}

.range-current {
    color: var(--color-primary);
    font-weight: 700;
    background-color: rgba(234, 179, 8, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.terrain-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.backend-option-input {
    display: none;
}

.option-card {
    border: 1px solid var(--color-border);
    background-color: rgba(24, 24, 27, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.option-card:hover {
    background-color: rgba(24, 24, 27, 0.4);
}

.radio-circle {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 1px solid #3f3f46;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.inner-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: var(--color-bg-main);
    transition: all 0.2s ease;
}

/* افکت‌های هنگام انتخاب شدن رادیوباتن */
.backend-option-input:checked + .option-card {
    border-color: var(--color-primary);
    background-color: rgba(234, 179, 8, 0.05);
}

.backend-option-input:checked + .option-card .radio-circle {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.backend-option-input:checked + .option-card .inner-dot {
    background-color: var(--color-bg-main);
}

.option-card-content h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.option-card-content p {
    font-size: 0.688rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.smart-submit-wrapper {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-submit-smart {
    width: 100%;
    background-color: var(--color-primary);
    color: #000;
    font-weight: 900;
    font-size: 0.875rem;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.1);
}

.btn-submit-smart:hover {
    background-color: var(--color-primary-hover);
}

/* --------------------------------------------- */
/* RESPONSIVE DESIGN                             */
/* --------------------------------------------- */
@media (min-width: 768px) {
    .smart-header-text h1 { font-size: 1.875rem; }
    .smart-header-text p { font-size: 0.875rem; }
    .step-box { padding: 2rem; }
    .step-title { font-size: 1rem; }
    .terrain-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

/* ========================================================================== */
/* USER DASHBOARD STYLES                                                      */
/* ========================================================================== */

.dashboard-body {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(to bottom right, #000, #0a0a0a, #000);
}

/* Wrapper اصلی */
.dashboard-wrapper {
    flex: 1;
    max-width: 72rem; /* max-w-6xl */
    margin: 1.5rem auto;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
}

/* Sidebar (منوی کناری) */
.dashboard-sidebar {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sidebar-logo {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 0.25rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 900;
}

.sidebar-subtitle {
    font-size: 0.688rem;
    color: var(--text-muted);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-btn {
    width: 100%;
    text-align: right;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.nav-btn:hover {
    background-color: rgba(24, 24, 27, 0.8);
    color: var(--text-light);
}

.nav-btn.active {
    background-color: var(--color-primary);
    color: #000;
    font-weight: 900;
}

.btn-logout {
    margin-top: 1rem;
    width: 100%;
    font-size: 0.688rem;
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
}

.btn-logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.btn-back-home {
    margin-top: 0.6rem;
    width: 100%;
    font-size: 0.688rem;
    color: var(--text-light, #e4e4e7);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 0.75rem;
    padding: 0.5rem;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: inherit;
    display: block;
    text-align: center;
    text-decoration: none;
}

.btn-back-home:hover {
    background-color: var(--color-bg-surface, #18181b);
    border-color: var(--color-primary, #eab308);
    color: var(--color-primary, #eab308);
}

/* Main Content (محتوای اصلی) */
.dashboard-main {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.tab { display: none; }
.tab.active { display: block; animation: fadeTab 0.25s ease; }
@keyframes fadeTab { 
    from { opacity: 0; transform: translateY(8px); } 
    to { opacity: 1; transform: translateY(0); } 
}

.tab-header { margin-bottom: 1.25rem; }
.tab-title { font-size: 1.25rem; font-weight: 900; color: var(--text-light); }
.tab-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Cards */
.dashboard-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dashboard-card {
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.card-label { font-size: 0.875rem; color: var(--text-muted); }
.card-value { font-size: 1.5rem; font-weight: 900; margin-top: 0.25rem; }
.card-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.25rem; }
.card-hint.text-warning { color: #facc15; }

/* Table */
.dashboard-table-wrapper {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    text-align: right;
    min-width: 600px;
    border-collapse: collapse;
}

.dashboard-table th {
    background-color: #000;
    color: var(--text-muted);
    padding: 0.5rem;
    font-weight: 700;
}

.dashboard-table td {
    padding: 0.5rem;
    border-top: 1px solid var(--color-border);
}

.dashboard-table td a { color: inherit; text-decoration: none; }
.text-warning { color: #facc15; }
.text-success { color: #34d399; }
.text-danger { color: #f87171; }

/* Profile Form */
.profile-form-box {
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.form-input-dash {
    background-color: #0a0a0a;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    font-size: 0.9rem;
    padding: 12px 14px;
    color: var(--text-light);
    font-family: inherit;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
}

.form-input-dash:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

.btn-save-profile {
    background-color: var(--color-primary);
    color: #000;
    font-size: 0.813rem;
    font-weight: 900;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}

.btn-save-profile:hover { background-color: var(--color-primary-hover); }

/* --------------------------------------------- */
/* RESPONSIVE DESIGN (DASHBOARD)                 */
/* --------------------------------------------- */
@media (max-width: 768px) {
    .dashboard-wrapper {
        border-radius: 0;
        margin: 0;
        border-left: none;
        border-right: none;
    }
    .dashboard-sidebar {
        border-bottom: 1px solid var(--color-border);
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem;
    }
    .sidebar-header { margin-bottom: 0; }
    .sidebar-content {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: flex-end;
    }
    .nav-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
        border-radius: 10px;
        width: auto;
    }
    .btn-logout { display: none; /* معمولا تو هدر موبایل جابجا میشه یا تو همون تب پروفایل میره */ }
    
    .dashboard-main { padding: 1rem; }
    .dashboard-card { padding: 0.875rem; }
    .dashboard-table { font-size: 0.85rem; }
    .profile-grid { gap: 0.625rem; }
}

@media (min-width: 768px) {
    .dashboard-wrapper { flex-direction: row; margin: 2.5rem auto; }
    .dashboard-sidebar { width: 16rem; }
    .dashboard-main { padding: 1.75rem; }
    .tab-title { font-size: 1.5rem; }
    .dashboard-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-grid { grid-template-columns: repeat(2, 1fr); }
    .btn-save-profile { width: auto; }
}
/* ========================================================================== */
/* ADMIN DASHBOARD LAYOUT & COMPONENTS                                        */
/* ========================================================================== */

/* ساختار کلی صفحه مدیریت */
.admin-body {
    display: flex;
    height: 100vh;
    overflow: hidden;
    background-color: #050505;
    color: #f4f4f5;
    font-family: 'Vazirmatn', sans-serif;
}

/* سایدبار مدیریت */
.admin-sidebar {
    width: 18rem; /* w-72 */
    background-color: rgba(0, 0, 0, 0.9);
    border-left: 1px solid var(--color-border, #27272a);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(24px);
    z-index: 50;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-b: 1px solid var(--color-border, #27272a);
}

.sidebar-logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-icon {
    color: var(--color-primary, #eab308);
    font-size: 1.25rem;
    font-weight: 900;
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 900;
    color: #ffffff;
}

.sidebar-subtitle {
    font-size: 11px;
    color: var(--text-muted, #a1a1aa);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    text-align: right;
    font-size: 0.875rem;
    background: transparent;
    border: none;
    color: var(--text-muted, #a1a1aa);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sidebar-btn:hover {
    background-color: #18181b;
    color: #ffffff;
}

.sidebar-btn.active {
    background-color: var(--color-primary, #eab308);
    color: #000000;
    font-weight: 900;
}

/* محتوای اصلی داشبورد */
.admin-main {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .admin-main {
        padding: 2rem;
    }
}

.admin-sidebar-toggle,
.admin-sidebar-overlay {
    display: none;
}

@media (max-width: 767px) {
    .admin-sidebar-toggle {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 70;
        width: 2.75rem;
        height: 2.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        padding: 0;
        border: 1px solid #3f3f46;
        border-radius: 0.65rem;
        background: #18181b;
        color: #f4f4f5;
        cursor: pointer;
    }

    .admin-sidebar-toggle-bar {
        width: 1.15rem;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .admin-sidebar-toggle[aria-expanded="true"] .admin-sidebar-toggle-bar:first-child {
        transform: translateY(0.4rem) rotate(45deg);
    }

    .admin-sidebar-toggle[aria-expanded="true"] .admin-sidebar-toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .admin-sidebar-toggle[aria-expanded="true"] .admin-sidebar-toggle-bar:last-child {
        transform: translateY(-0.4rem) rotate(-45deg);
    }

    .admin-sidebar {
        position: fixed;
        inset-block: 0;
        right: 0;
        z-index: 60;
        width: min(18rem, calc(100vw - 3rem));
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform 0.25s ease;
    }

    .admin-body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar .sidebar-header {
        padding-inline-start: 4rem;
    }

    .admin-sidebar-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        border: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.65);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .admin-body.admin-sidebar-open .admin-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    .admin-main {
        width: 100%;
        min-width: 0;
        padding: 4.5rem 1rem 1rem;
    }
}

/* مدیریت وضعیت تب‌ها */
.admin-tab {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-tab.active {
    display: flex;
    animation: fade .25s ease;
}

.admin-tab.space-y-8 {
    gap: 2rem;
}

.admin-tab-header-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .admin-tab-header-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.admin-page-title {
    font-size: 1.5rem;
    font-weight: 900;
}

@media (min-width: 768px) {
    .admin-page-title {
        font-size: 1.875rem;
    }
}

.admin-page-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted, #a1a1aa);
    margin-top: 0.25rem;
}

/* کارت‌های داشبورد (KPI) */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.admin-card {
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.admin-card.space-y-3 {
    gap: 0.75rem;
}

.admin-card.space-y-5 {
    gap: 1.25rem;
}

.card-label {
    font-size: 0.75rem;
    color: var(--text-muted, #a1a1aa);
}

.card-value {
    font-size: 1.875rem;
    font-weight: 900;
    margin-top: 0.5rem;
}

.card-hint {
    font-size: 11px;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* چیدمان بخش فروش ماهانه */
.grid-sales-manager {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .grid-sales-manager {
        grid-template-columns: 1fr 2fr;
    }
}

.admin-card-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.admin-card-subtitle {
    font-size: 11px;
    color: var(--text-muted, #a1a1aa);
}

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

.months-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.month-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.85rem;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 0.6rem;
    color: #f4f4f5;
}

/* فیلترها و اینپوت‌های پیشرفته */
.admin-card.padding-sm {
    padding: 1rem;
}

.grid-filter-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-filter-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.admin-input, .admin-input-bg {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    background-color: #020617;
    border: 1px solid var(--color-border, #27272a);
    border-radius: 0.75rem;
    color: #f4f4f5;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-input-bg {
    background-color: rgba(39, 39, 42, 0.6);
}

.admin-input:focus, .admin-input-bg:focus {
    border-color: var(--color-primary, #eab308);
    box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.25);
}

.form-group-xs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.grid-form-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    font-size: 0.75rem;
}

@media (min-width: 768px) {
    .grid-form-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* دکمه‌های پنل مدیریت */
.admin-btn-primary {
    width: 100%;
    background-color: var(--color-primary, #eab308);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.admin-btn-primary:hover {
    background-color: var(--color-primary-hover, #facc15);
}

.admin-btn-primary.px-large {
    width: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.admin-btn-primary.text-sm {
    font-size: 0.875rem;
}

.admin-btn-primary.fit-content {
    width: max-content;
}

.admin-btn-outline-sm {
    width: max-content;
    background: transparent;
    color: var(--color-primary, #eab308);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    border-radius: 0.6rem;
    border: 1px solid var(--color-primary, #eab308);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.admin-btn-outline-sm:hover {
    background: rgba(234, 179, 8, 0.12);
}

.shadow-glow {
    box-shadow: 0 10px 15px -3px rgba(234, 179, 8, 0.2);
}

/* ساختار جداول پیشرفته مدیریت */
.admin-table-container {
    background-color: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--color-border, #27272a);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    overflow-x: auto;
    overflow-y: hidden;
}

.admin-table-container.scroll-x {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    text-align: right;
    font-size: 0.75rem;
    border-collapse: collapse;
}

@media (min-width: 768px) {
    .admin-table {
        font-size: 0.875rem;
    }
}

.admin-table.min-w-large {
    min-width: 1000px;
}

.admin-table thead {
    background-color: #000000;
    color: var(--text-muted, #a1a1aa);
}

.admin-table th {
    padding: 0.75rem;
    font-weight: 600;
}

.admin-table td {
    padding: 0.75rem;
}

.admin-table.min-w-large th, .admin-table.min-w-large td {
    padding: 1rem;
}

.admin-table tbody tr {
    border-top: 1px solid #27272a;
    color: #e4e4e7;
    transition: background-color 0.2s ease;
}

.admin-table tbody tr:hover {
    background-color: rgba(39, 39, 42, 0.4);
}

.admin-row-inactive {
    opacity: 0.45;
}

.admin-comment-actions {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.admin-action-approve,
.admin-action-reject {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid;
    background: transparent;
    transition: 0.2s;
}

.admin-action-approve {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.admin-action-approve:hover {
    background: rgba(52, 211, 153, 0.12);
}

.admin-action-reject {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

.admin-action-reject:hover {
    background: rgba(248, 113, 113, 0.12);
}

.admin-action-delete-comment {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 1px solid rgba(248, 113, 113, 0.35);
    background: transparent;
    color: #f87171;
    transition: 0.2s;
}

.admin-action-delete-comment:hover {
    background: rgba(248, 113, 113, 0.12);
}

.admin-comment-actions a {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #60a5fa;
    text-decoration: none;
    transition: 0.2s;
    display: inline-block;
    white-space: nowrap;
}

.admin-comment-actions a:hover {
    background: rgba(96, 165, 250, 0.12);
}

.text-danger { color: #f87171; }
.text-danger button { background: transparent; border: none; color: inherit; cursor: pointer; font-family: inherit; }

/* نشان‌ها و دکمه‌های سطر جدول */
.badge-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.badge-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.badge-warning {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.badge-info {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.btn-action-edit, .btn-action-delete {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-size: 0.75rem;
}

.btn-action-edit {
    background-color: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
}

.btn-action-edit:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.btn-action-delete {
    background-color: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

.btn-action-delete:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* مدیریت سئو و مقالات */
.article-list-item {
    display: flex;
    align-items: start;
    justify-content: space-between;
    border-bottom: 1px solid #27272a;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.article-list-item:hover {
    background-color: rgba(39, 39, 42, 0.4);
}

.article-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-item-title {
    font-weight: 700;
    color: #f4f4f5;
}

.article-item-meta {
    font-size: 11px;
    color: var(--text-muted, #a1a1aa);
}

.article-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    font-size: 11px;
}

.article-item-actions span {
    color: var(--text-muted, #a1a1aa);
}

.text-link-edit, .text-link-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
}

.text-link-edit { color: #60a5fa; }
.text-link-edit:hover { color: #93c5fd; }
.text-link-delete { color: #f87171; }
.text-link-delete:hover { color: #fca5a5; }

/* استایل عمومی مودال مدیریت */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: #18181b;
    border: 1px solid #27272a;
    border-radius: 1.5rem;
    padding: 1.5rem;
    width: 100%;
    max-width: 42rem;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-content .card-header-flex {
    position: sticky;
    top: -1.5rem;
    margin: -1.5rem -1.5rem 0;
    padding: 1.5rem 1.5rem 1rem;
    background-color: #18181b;
    z-index: 2;
}
/* --------------*/
.option-group{
display:flex;
gap:10px;
margin-top:10px;
}
.option-btn{
flex:1;
height:48px;
border-radius:12px;
border:1px solid #3f3f46;
background:#18181b;
color:#a1a1aa;
cursor:pointer;
transition:.25s;
font-family:inherit;
font-size:.9rem;
}
.option-btn:hover{
border-color:#facc15;
color:#fff;
}
.option-btn.active{
background:#facc15;
color:#000;
font-weight:700;
border-color:#facc15;
}
.weight-picker{
display:flex;
justify-content:center;
align-items:center;
gap:18px;
margin-top:12px;
}

.weight-picker button{
width:44px;
height:44px;
border-radius:12px;
background:#18181b;
border:1px solid #3f3f46;
color:#fff;
font-size:26px;
cursor:pointer;
transition:.25s;
}
.weight-picker button:hover{
background:#facc15;
color:#000;
border-color:#facc15;
}
#weightValue{
font-size:1.4rem;
font-weight:800;
color:#fff;
min-width:40px;
text-align:center;
}
/* ========================================================================== */
/* AZARAKHSH 100% TAILWIND REPLICA (SHOP PAGE ONLY)                           */
/* ========================================================================== */

/* Typography & Base */
.az-shop-body {
    background-color: #0a0a0a !important; /* bg-dark-bg */
    color: #ffffff !important;
    font-family: 'Vazirmatn', sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0; padding: 0; line-height: 1.5;
}

.az-container {
    width: 100%;
    margin-right: auto; margin-left: auto;
    padding-right: 1rem; padding-left: 1rem;
}
@media (min-width: 640px) { .az-container { max-width: 640px; } }
@media (min-width: 768px) { .az-container { max-width: 768px; } }
@media (min-width: 1024px) { .az-container { max-width: 1024px; } }
@media (min-width: 1280px) { .az-container { max-width: 1280px; } }
@media (min-width: 1536px) { .az-container { max-width: 1536px; } }

/* SVGs */
.az-svg-4 { width: 1rem; height: 1rem; }
.az-text-amber { color: #f59e0b; }

@keyframes az-pulse { 50% { opacity: .5; } }


/* Main Wrapper & Hero */
.az-main-wrapper { position: relative; min-height: 100vh; }
.az-hero-section { position: relative; background-color: #09090b; border-bottom: 1px solid #18181b; padding-top: 2.5rem; padding-bottom: 2.5rem; overflow: hidden; }
@media (min-width: 768px) { .az-hero-section { padding-top: 4rem; padding-bottom: 4rem; } }
.az-hero-bg { position: absolute; inset: 0; opacity: 0.05; background-size: cover; background-position: center; background-image: url('https://images.unsplash.com/photo-1507035895480-2b3156c31fc8?auto=format&fit=crop&w=1200&q=80'); }
.az-hero-content { text-align: center; position: relative; z-index: 10; display: flex; flex-direction: column; gap: 0.5rem; }
.az-hero-title { font-size: 1.5rem; font-weight: 900; color: #ffffff; }
@media (min-width: 768px) { .az-hero-title { font-size: 2.25rem; } }
.az-hero-desc { color: #a1a1aa; font-size: 0.75rem; max-width: 36rem; margin-left: auto; margin-right: auto; line-height: 1.625; }

/* Mobile Filter Bar */
.az-mobile-filter-bar { position: sticky; top: 72px; z-index: 30; background-color: rgba(0, 0, 0, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid #18181b; padding: 0.875rem; display: flex; justify-content: space-between; align-items: center; padding-left: 1rem; padding-right: 1rem; }
@media (min-width: 1024px) { .az-mobile-filter-bar { display: none; } }
.az-mobile-filter-text { font-size: 0.75rem; color: #a1a1aa; font-weight: 500; }
.az-mobile-filter-btn { display: flex; align-items: center; gap: 0.5rem; background-color: #18181b; border: 1px solid #27272a; color: #ffffff; font-size: 0.75rem; font-weight: 700; padding: 0.5rem 1rem; border-radius: 0.75rem; transition: all 0.15s; cursor: pointer; }

/* Filter Overlay */
.az-filter-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.7); z-index: 40; visibility: hidden; opacity: 0; transition: all 0.3s; }
@media (min-width: 1024px) { .az-filter-overlay { display: none !important; } }
.az-filter-overlay.active { visibility: visible; opacity: 1; }

/* Shop Grid Section */
.az-shop-content { padding-top: 2rem; padding-bottom: 2rem; background-color: rgba(0, 0, 0, 0.4); }
.az-shop-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 2rem; align-items: flex-start; }
@media (min-width: 1024px) { .az-shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Sidebar */
.az-sidebar { position: fixed; top: 0; bottom: 0; right: 0; z-index: 50; width: 310px; background-color: #09090b; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-y: auto; transform: translateX(100%); transition: transform 0.3s; border-left: 1px solid #18181b; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.az-sidebar.active { transform: translateX(0); }

@media (min-width: 1024px) {
    .az-sidebar { position: sticky; top: 6rem; transform: translateX(0); width: auto; height: auto; z-index: 10; max-height: calc(100vh - 120px); background-color: rgba(24, 24, 27, 0.1); backdrop-filter: blur(12px); border: 1px solid rgba(39, 39, 42, 0.8); border-radius: 1rem; padding: 1.25rem; border-left-width: 1px; box-shadow: none; }
    .az-sidebar::-webkit-scrollbar { width: 0.25rem; }
    .az-sidebar::-webkit-scrollbar-thumb { background-color: #27272a; }
}

.az-sidebar-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #27272a; padding-bottom: 0.75rem; }
.az-sidebar-title { font-weight: 900; font-size: 0.75rem; display: flex; align-items: center; gap: 0.5rem; color: #ffffff; }
.az-clear-btn { font-size: 11px; color: #a1a1aa; transition: color 0.15s; font-weight: 500; background: none; border: none; cursor: pointer; }
.az-clear-btn:hover { color: #f59e0b; }
.az-close-sidebar-btn { color: #a1a1aa; padding: 0.375rem; background-color: #18181b; border: 1px solid #27272a; border-radius: 0.5rem; cursor: pointer; display: flex; }
.az-close-sidebar-btn:hover { color: #ffffff; }
@media (min-width: 1024px) { .az-close-sidebar-btn { display: none; } }

.az-filter-group { display: flex; flex-direction: column; gap: 0.5rem; }
.az-border-top { border-top: 1px solid #27272a; padding-top: 1rem; gap: 0.625rem; }
.az-filter-label { font-size: 0.75rem; font-weight: 700; color: #a1a1aa; }
.az-select { width: 100%; background-color: #18181b; border: 1px solid #27272a; color: #d4d4d8; padding: 0.625rem; border-radius: 0.75rem; font-size: 0.75rem; cursor: pointer; outline: none; transition: color 0.15s; }
.az-select:focus { border-color: #f59e0b; }

.az-checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.375rem; text-align: center; font-size: 0.75rem; }
.az-check-label { display: block; border: 1px solid #27272a; background-color: rgba(24, 24, 27, 0.4); padding-top: 0.5rem; padding-bottom: 0.5rem; border-radius: 0.75rem; cursor: pointer; transition: all 0.15s; }
.az-check-label:hover { border-color: #3f3f46; }
.az-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.az-check-label:has(input:checked) { border-color: #f59e0b; background-color: rgba(245, 158, 11, 0.1); }
.az-check-label span { color: #d4d4d8; font-weight: 700; font-size: 11px; }
.az-col-span-3 { grid-column: span 3 / span 3; }

.az-frame-btn { padding-top: 0.5rem; padding-bottom: 0.5rem; border: 1px solid #27272a; border-radius: 0.75rem; color: #a1a1aa; transition: color 0.15s; background: none; cursor: pointer; }
.az-frame-btn:hover { border-color: #f59e0b; color: #f59e0b; }
.az-frame-active { border-color: #f59e0b; background-color: rgba(245, 158, 11, 0.1); color: #f59e0b; font-weight: 700; }

.az-color-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.az-color-btn { width: 1.5rem; height: 1.5rem; border-radius: 9999px; transition: all 0.15s; cursor: pointer; }
.az-color-btn.az-color-active { box-shadow: 0 0 0 2px #09090b, 0 0 0 4px #f59e0b; }
.az-bg-black { background-color: #000000; border: 1px solid #3f3f46; box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 0 transparent; }
.az-bg-black:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 2px #f59e0b; }
.az-bg-white { background-color: #ffffff; border: 1px solid #d4d4d8; box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 0 transparent; }
.az-bg-white:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 2px #f59e0b; }
.az-bg-red { background-color: #dc2626; border-width: 0px; box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 0 transparent; }
.az-bg-red:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 2px #f59e0b; }
.az-bg-blue { background-color: #2563eb; border-width: 0px; box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 0 transparent; }
.az-bg-blue:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 2px #f59e0b; }
.az-bg-amber { background-color: #f59e0b; border-width: 0px; box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 0 transparent; }
.az-bg-amber:focus { box-shadow: 0 0 0 2px transparent, 0 0 0 2px #09090b, 0 0 0 2px #f59e0b; }

.az-apply-wrapper { padding-top: 0.5rem; }
.az-apply-btn { width: 100%; background-color: #f59e0b; color: #000000; font-weight: 900; padding-top: 0.75rem; padding-bottom: 0.75rem; border-radius: 0.75rem; font-size: 0.75rem; transition: all 0.15s; border: none; cursor: pointer; }
.az-apply-btn:hover { background-color: #d97706; }

/* Main Content Column */
.az-main-content { display: flex; flex-direction: column; gap: 1.25rem; }
@media (min-width: 1024px) { .az-main-content { grid-column: span 3 / span 3; } }

.az-search-wrapper { position: relative; }
.az-search-wrapper:focus-within .az-search-icon { color: #f59e0b; }
.az-search-input { width: 100%; background-color: rgba(24, 24, 27, 0.3); border: 1px solid rgba(39, 39, 42, 0.8); color: #ffffff; padding-top: 0.875rem; padding-bottom: 0.875rem; padding-right: 3rem; padding-left: 1rem; border-radius: 1rem; font-size: 0.75rem; outline: none; transition: all 0.15s; }
@media (min-width: 768px) { .az-search-input { font-size: 0.875rem; } }
.az-search-input::placeholder { color: #52525b; }
.az-search-input:focus { border-color: #f59e0b; }
.az-search-icon { position: absolute; right: 1rem; top: 0.875rem; width: 1.25rem; height: 1.25rem; color: #a1a1aa; transition: color 0.15s; pointer-events: none; }

.az-sort-bar { display: none; align-items: center; justify-content: space-between; background-color: rgba(24, 24, 27, 0.2); border: 1px solid rgba(39, 39, 42, 0.6); border-radius: 1rem; padding: 0.875rem 1.25rem; }
@media (min-width: 640px) { .az-sort-bar { display: flex; } }
.az-sort-options { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; }
.az-sort-label { color: #a1a1aa; font-weight: 700; display: flex; align-items: center; gap: 0.375rem; }
.az-sort-btn { color: #a1a1aa; transition: color 0.15s; background: none; border: none; font-size: 0.75rem; cursor: pointer; }
.az-sort-btn:hover { color: #ffffff; }
.az-sort-active { color: #f59e0b; font-weight: 900; }
.az-sort-info { font-size: 11px; color: #a1a1aa; font-weight: 500; }

/* Product Grid */
.az-products-grid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 640px) { .az-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .az-products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.az-loading-placeholder,
.az-empty-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.95rem;
}

/* Single Product Card */
.az-product-card { border-radius: 1rem; border: 1px solid rgba(39, 39, 42, 0.8); background-color: rgba(24, 24, 27, 0.1); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4); position: relative; }
.az-product-card:hover { border-color: rgba(245, 158, 11, 0.3); transform: translateY(-0.25rem); }

.az-product-img-wrapper { background-color: rgba(9, 9, 11, 0.6); aspect-ratio: 4 / 3; padding: 1rem; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-bottom: 1px solid rgba(24, 24, 27, 0.6); }

.az-discount-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.az-price-with-discount {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.az-old-price {
    font-size: 0.75rem;
    color: var(--text-muted, #a1a1aa);
    text-decoration: line-through;
}
.az-product-img { object-fit: contain; width: 100%; height: 100%; border-radius: 0.75rem; transition: transform 0.5s; }
.az-product-card:hover .az-product-img { transform: scale(1.05); }

.az-product-info { padding: 1.25rem; flex: 1 1 0%; display: flex; flex-direction: column; justify-content: space-between; }
.az-product-link { display: block; text-decoration: none; }
.az-product-title { font-size: 0.875rem; font-weight: 900; color: #f4f4f5; margin-bottom: 0.25rem; transition: color 0.15s; }
.az-product-card:hover .az-product-title { color: #f59e0b; }
.az-product-desc { font-size: 11px; color: #a1a1aa; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.625; margin-top: 0.25rem; }

.az-product-footer { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 1.25rem; padding-top: 0.875rem; border-top: 1px solid #18181b; }
.az-price-label { font-size: 9px; color: #a1a1aa; margin-bottom: 0.125rem; }
.az-price-val { color: #f59e0b; font-weight: 900; font-size: 1rem; letter-spacing: -0.025em; }
.az-price-currency { font-size: 10px; font-weight: 500; color: #a1a1aa; }

.az-add-cart-btn { width: 2.5rem; height: 2.5rem; background-color: #18181b; border: 1px solid #27272a; color: #a1a1aa; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; transition: all 0.15s; cursor: pointer; }
.az-add-cart-btn:hover { background-color: #10b981; color: #052e21; border-color: #10b981; }
.az-add-cart-btn:active { transform: scale(.9); }
.az-added { background-color: #22c55e !important; color: #09090b !important; border-color: #22c55e !important; }

/* Out of Stock Card */
.az-out-of-stock { opacity: 0.6; }
.az-out-of-stock .az-product-img { filter: grayscale(100%); }
.az-product-card.az-out-of-stock:hover .az-product-img { transform: none; }
.az-out-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; }
.az-out-badge { background-color: rgba(24, 24, 27, 0.9); border: 1px solid #27272a; color: #a1a1aa; font-size: 0.75rem; font-weight: 900; padding: 0.5rem 1rem; border-radius: 0.75rem; backdrop-filter: blur(4px); }
.az-product-title-disabled { font-size: 0.875rem; font-weight: 900; color: #a1a1aa; margin-bottom: 0.25rem; }
.az-product-desc-disabled { font-size: 11px; color: #52525b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.625; margin-top: 0.25rem; }
.az-footer-disabled { border-top-color: rgba(24, 24, 27, 0.5); }
.az-price-label-disabled { font-size: 9px; color: #52525b; margin-bottom: 0.125rem; }
.az-price-val-disabled { color: #71717a; font-weight: 700; font-size: 0.875rem; text-decoration: line-through; letter-spacing: -0.025em; }
.az-price-currency-disabled { font-size: 10px; font-weight: 500; color: #52525b; }
.az-disabled-btn { padding: 0.625rem 1rem; background-color: rgba(24, 24, 27, 0.5); border: 1px solid #27272a; color: #71717a; font-size: 0.75rem; font-weight: 900; border-radius: 0.75rem; cursor: not-allowed; }

/* Pagination */
.az-pagination-wrapper { display: flex; justify-content: center; padding-top: 2rem; margin-top: 1.5rem; border-top: 1px solid rgba(24, 24, 27, 0.6); }
.az-pagination-nav { display: inline-flex; gap: 0.375rem; font-size: 0.75rem; font-weight: 700; }
.az-page-arrow, .az-page-number { width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; border-radius: 0.75rem; text-decoration: none; transition: all 0.15s; }
.az-page-arrow { background-color: #18181b; border: 1px solid #27272a; color: #a1a1aa; }
.az-page-arrow:hover { border-color: #f59e0b; color: #ffffff; }
.az-page-number { background-color: #18181b; border: 1px solid #27272a; color: #a1a1aa; }
.az-page-number:hover { border-color: #f59e0b; color: #ffffff; }
.az-page-active { background-color: #f59e0b; color: #000000; font-weight: 900; }
/* ==========================================================================
   صفحه سبد خرید (cart.html)
========================================================================== */
.cart-page-wrapper {
    padding: 7rem 0 5rem;
    min-height: 60vh;
}

.cart-page-title {
    margin-bottom: 2rem;
}

.cart-empty-state.hidden,
.cart-layout.hidden {
    display: none;
}

.cart-empty-state {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-bg-surface);
}

.cart-empty-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    color: var(--text-muted);
}

.cart-empty-icon svg {
    width: 100%;
    height: 100%;
}

.cart-empty-state h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.cart-empty-state p {
    color: var(--text-muted);
    max-width: 30rem;
    margin: 0 auto 1.75rem;
    line-height: 1.9;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 992px) {
    .cart-layout {
        grid-template-columns: 2fr 1fr;
    }
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item-row {
    display: grid;
    grid-template-columns: 5rem 1fr auto auto auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

@media (max-width: 640px) {
    .cart-item-row {
        grid-template-columns: 4rem 1fr;
        grid-template-areas:
            "img info"
            "img qty"
            "img total-remove";
        row-gap: 0.6rem;
    }
}

.cart-item-img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background-color: #000;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-qty {
    justify-self: center;
}

.cart-item-line-total {
    font-weight: 800;
    color: var(--color-primary);
    white-space: nowrap;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.15s;
}

.cart-item-remove:hover {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

.cart-item-remove svg {
    width: 1.1rem;
    height: 1.1rem;
}

.cart-summary-box {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.cart-coupon-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cart-coupon-box .auth-input {
    flex: 1;
    padding: 0.6rem 0.85rem;
}

.cart-coupon-box .btn {
    white-space: nowrap;
    padding: 0 1rem;
}

.cart-summary-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-summary-total {
    border-bottom: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-light);
    padding-top: 1rem;
}

.cart-summary-total span:last-child {
    color: var(--color-primary);
}

.cart-summary-box .btn-block {
    width: 100%;
    margin-top: 1.5rem;
}

.cart-continue-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.cart-continue-link:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   مودال کشویی سبد خرید (روی همه صفحات - از main.js تزریق می‌شود)
========================================================================== */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 26rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(234, 179, 8, 0.08), transparent 45%),
        var(--color-bg-main);
    border-left: 1px solid var(--color-border);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.16,1,.3,1);
}

.cart-drawer.active {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.5rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.cart-drawer-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    right: 1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary, #eab308), transparent);
}

.cart-drawer-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-drawer-header h2::before {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    background: linear-gradient(135deg, #fde047, #eab308);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    border-radius: 0.35rem;
}

.cart-drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.2s;
}

.cart-drawer-close:hover {
    color: var(--color-primary, #eab308);
    background-color: var(--color-bg-surface);
    transform: rotate(90deg);
}

.cart-drawer-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cart-drawer-body .cart-item-row {
    grid-template-columns: 4rem 1fr auto auto;
    grid-template-areas:
        "img info info remove"
        "img qty total total";
    row-gap: 0.5rem;
    padding: 0.9rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
    border: 1px solid var(--color-border);
    transition: border-color 0.2s, transform 0.2s;
}

.cart-drawer-body .cart-item-row:hover {
    border-color: rgba(234, 179, 8, 0.35);
    transform: translateX(-2px);
}

.cart-drawer-body .cart-item-img {
    grid-area: img;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.cart-drawer-body .cart-item-info { grid-area: info; }
.cart-drawer-body .cart-item-qty { grid-area: qty; justify-self: start; }
.cart-drawer-body .cart-item-line-total {
    grid-area: total;
    justify-self: end;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fde047, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cart-drawer-body .cart-item-remove { grid-area: remove; justify-self: end; align-self: start; position: static; margin-right: 0; }

.cart-drawer-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--text-muted);
}

.cart-drawer-empty::before {
    content: "";
    display: block;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    opacity: 0.25;
    background: var(--text-light);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 6h15l-1.5 9h-12z'/%3E%3Ccircle cx='9' cy='20' r='1'/%3E%3Ccircle cx='18' cy='20' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cart-drawer-empty p {
    margin-bottom: 1.25rem;
}

.cart-drawer-footer {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.cart-drawer-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 1.5rem;
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary, #eab308), transparent);
}

.cart-drawer-footer .cart-summary-total span:last-child {
    background: linear-gradient(135deg, #fde047, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.15rem;
}

.cart-drawer-footer .btn-block {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fde047 0%, #eab308 45%, #ca8a04 100%);
    color: #1a1400;
    box-shadow: 0 8px 22px rgba(234, 179, 8, 0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-drawer-footer .btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(234, 179, 8, 0.4), inset 0 1px 0 rgba(255,255,255,0.5);
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
    }
}

/* ==========================================================================
   مودال بزرگ افزودن/ویرایش دوچرخه (dashboard.html)
========================================================================== */
.product-modal-content {
    max-height: 88vh;
    overflow-y: auto;
}

.pm-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-primary, #eab308);
    border-bottom: 1px solid var(--color-border, #27272a);
    padding-bottom: 0.5rem;
    margin-top: 0.25rem;
}

.pm-field-hint {
    font-size: 0.7rem;
    color: var(--text-muted, #a1a1aa);
    margin-top: -0.5rem;
    line-height: 1.7;
}

.pm-textarea-sm {
    min-height: 4.5rem;
    resize: vertical;
    font-family: inherit;
}

.pm-textarea-lg {
    min-height: 9rem;
    resize: vertical;
    font-family: inherit;
}

.pm-images-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pm-image-row {
    display: grid;
    grid-template-columns: 1.5rem 2.5rem 1fr 1fr auto;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.pm-color-input-row {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.pm-color-input-row .admin-input {
    flex: 1;
}

.pm-colors-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pm-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--text-light, #e4e4e7);
    border-radius: 999px;
    padding: 0.3rem 0.4rem 0.3rem 0.9rem;
    font-size: 0.8rem;
}

.pm-color-chip button {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: none;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    font-size: 0.85rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pm-image-index {
    font-size: 0.7rem;
    color: var(--text-muted, #a1a1aa);
    text-align: center;
}

.pm-image-upload {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pm-file-input {
    font-size: 0.7rem;
    padding: 0.5rem;
}

.pm-file-input::file-selector-button {
    background-color: var(--color-primary, #eab308);
    color: #000;
    border: none;
    border-radius: 0.4rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 0.5rem;
}

.pm-image-preview {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: cover;
    border-radius: 0.4rem;
    border: 1px solid var(--color-border, #27272a);
    flex-shrink: 0;
}

.pm-image-preview.hidden {
    display: none;
}

@media (max-width: 640px) {
    .pm-image-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .pm-image-index {
        text-align: right;
    }
    .pm-image-preview {
        width: 4rem;
        height: 4rem;
    }
}

/* ==========================================================================
   کارت‌های KPI داشبورد (۴ ستونه) + نشانگر آنلاین زنده
========================================================================== */
.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.live-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background-color: #22c55e;
    margin-left: 0.4rem;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: live-dot-pulse 1.8s infinite;
}

@keyframes live-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ردیف‌های لیست فروش ماهانه با دکمه ویرایش/حذف */
.month-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.month-list-item .month-list-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.month-list-item .month-list-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
}

/* ==========================================================================
   حالت تعمیرات - کلید سوییچ روشن/خاموش
========================================================================== */
.maintenance-toggle-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.maintenance-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.maintenance-toggle-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.az-toggle-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.65rem;
    flex-shrink: 0;
}

.az-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.az-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #3f3f46;
    border-radius: 999px;
    transition: background-color 0.2s;
}

.az-toggle-slider::before {
    content: "";
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    right: 0.2rem;
    bottom: 0.2rem;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.az-toggle-switch input:checked + .az-toggle-slider {
    background-color: #ef4444;
}

.az-toggle-switch input:checked + .az-toggle-slider::before {
    transform: translateX(-1.35rem);
}

/* ==========================================================================
   جزئیات سفارش (مودال)
========================================================================== */
.order-details-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.order-details-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--color-border, #27272a);
    color: var(--text-muted, #a1a1aa);
}

.order-details-row span:first-child {
    color: #ffffff;
    font-weight: 700;
}

.order-status-select {
    min-width: 8.5rem;
}

.order-shipping-box {
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.order-shipping-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #a1a1aa);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.order-shipping-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.order-shipping-row input[type="number"] {
    flex: 1;
    min-width: 8rem;
    background: #09090b;
    border: 1px solid var(--color-border, #27272a);
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-family: inherit;
}

.order-shipping-paid-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light, #e4e4e7);
    white-space: nowrap;
}

/* ==========================================================================
   نمودار ساده روند فروش ماهانه
========================================================================== */
.sales-chart {
    padding: 1rem 0.5rem 0;
}

.sales-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 10rem;
}

.sales-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 0.5rem;
}

.sales-chart-bar {
    width: 100%;
    max-width: 3rem;
    background: linear-gradient(to top, var(--color-primary, #eab308), #facc15);
    border-radius: 0.4rem 0.4rem 0 0;
    transition: height 0.3s ease;
}

.sales-chart-label {
    font-size: 0.7rem;
    color: var(--text-muted, #a1a1aa);
}

/* ==========================================================================
   صفحه سوالات متداول، گارانتی و بازگشت کالا (faq.html)
========================================================================== */
.faq-page-wrapper {
    padding: 7rem 0 5rem;
}

.faq-section {
    margin-top: 3rem;
}

.faq-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-light, #fff);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border, #27272a);
}

.faq-item {
    background: var(--color-bg-surface, #18181b);
    border: 1px solid var(--color-border, #27272a);
    border-radius: var(--radius-md, 0.75rem);
    padding: 1rem 1.25rem;
    margin-bottom: 0.85rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-light, #fff);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.25rem;
    color: var(--color-primary, #eab308);
    flex-shrink: 0;
    margin-right: 1rem;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--color-border, #27272a);
    font-size: 0.85rem;
    line-height: 2;
    color: var(--text-muted, #a1a1aa);
}

.faq-inline-link {
    color: var(--color-primary, #eab308);
    text-decoration: underline;
}

.faq-inline-link:hover {
    color: var(--color-primary-hover, #facc15);
}