@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    --primary-50: #1a0505;
    --primary-100: #2a0a0a;
    --primary-200: #3d1010;
    --primary-300: #7f1d1d;
    --primary-400: #991b1b;
    --primary-500: #dc2626;
    --primary-600: #ef4444;
    --primary-700: #f87171;
    --primary-800: #fca5a5;
    --primary-900: #fecaca;
    --text: #f5f5f5;
    --text2: #a1a1aa;
    --text3: #71717a;
    --stroke: #27272a;
    --bg: #09090b;
    --bg2: #18181b;
    --glow: rgba(239, 68, 68, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

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

/* ============================================
   بنر اطلاع‌رسانی
   ============================================ */
.announcement-bar {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
    color: #fff;
    padding: 0.6rem 0;
    font-size: 0.82rem;
    font-weight: 500;
    position: relative;
    z-index: 101;
    letter-spacing: 0.01em;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.announcement-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    padding: 0.15rem;
    border-radius: 50%;
    transition: all 0.25s;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover { color: #fff; background: rgba(255,255,255,0.15); }

/* ============================================
   هدر - یکپارچه با کپسول گرد شناور
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.85rem 0;
    background: linear-gradient(180deg, rgba(8,8,10,0.9), rgba(8,8,10,0));
    pointer-events: none;
}

.header * { pointer-events: auto; }

.header-bar {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.5rem 0.6rem 0.5rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 16, 19, 0.85);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(239, 68, 68, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}

.header-bar:hover {
    border-color: rgba(239, 68, 68, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    font-weight: 900;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 0.35rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-300));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(-8deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.logo-text {
    background: linear-gradient(135deg, #ef4444, #dc2626, #b91c1c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 0.7rem 1.15rem;
    padding-left: 3.5rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.04);
    color: #fff;
    transition: all 0.3s;
    outline: none;
}

.search-bar input::placeholder { color: var(--text3); }

.search-bar input:focus {
    border-color: var(--primary-600);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px var(--glow);
}

.search-bar button {
    position: absolute;
    left: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.25s;
}

.search-bar button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px var(--glow);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.header-btn.header-search-btn {
    display: none;
}

@media (min-width: 769px) {
    .header-btn.header-search-btn {
        display: flex;
        background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
        border-color: rgba(255,255,255,0.12);
        color: var(--text);
    }
    .header-btn.header-search-btn:hover {
        border-color: var(--primary-600);
        color: #fff;
        background: rgba(239, 68, 68, 0.14);
    }
}

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.05);
    color: var(--text2);
    font-size: 1.05rem;
    transition: all 0.3s;
    position: relative;
}

.header-btn:hover {
    border-color: var(--primary-600);
    color: #fff;
    background: rgba(239, 68, 68, 0.12);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-1px);
}

.header-btn.active {
    border-color: var(--primary-600);
    color: #fff;
    background: rgba(239, 68, 68, 0.15);
}

/* دکمه پنل اونر (مدیریت) */
.header-admin-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 16px var(--glow);
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow);
    color: #fff;
}

/* دکمه حساب کاربری */
.header-user {
    position: relative;
}

.header-user:hover {
    border-color: var(--primary-600);
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-1px);
}

/* نقطه سبز نشان‌دهنده لاگین بودن */
.header-user-dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.cart-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.6rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ============================================
   ناوبری (داخل کپسول هدر)
   ============================================ */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text3);
    transition: all 0.25s;
    flex-shrink: 0;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-link i {
    font-size: 0.8rem;
    color: var(--text3);
    transition: color 0.25s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-link:hover i { color: var(--primary-600); }

.nav-link.active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    box-shadow: 0 4px 18px var(--glow);
}

.nav-link.active i { color: #fff; }

/* ============================================
   شیت‌ها
   ============================================ */
.sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: overlayFadeIn 0.3s ease;
}

.sheet-overlay.show { display: block; }

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

.sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    margin: 0.6rem auto 0;
}

.sheet-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--stroke);
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--text2);
    transition: all 0.25s;
    flex-shrink: 0;
}

.sheet-close:hover {
    border-color: var(--primary-500);
    color: var(--primary-600);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 15px var(--glow);
}

.sheet-close-inline {
    background: none;
    border: none;
    color: var(--primary-600);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ============================================
   پاپ‌آپ دسته‌بندی‌ها
   ============================================ */
.cat-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1f 0%, #111115 100%);
    border-radius: 24px 24px 0 0;
    z-index: 600;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.cat-sheet.show {
    display: flex;
    flex-direction: column;
    animation: sheetSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cat-sheet.closing {
    animation: sheetSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes sheetSlideDown {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}

.cat-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cat-sheet-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.cat-sheet-head h3 i {
    color: var(--primary-600);
}

.cat-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    scrollbar-width: thin;
}

.cat-sheet-group {
    margin-bottom: 0.35rem;
}

.cat-sheet-parent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    transition: all 0.25s;
    cursor: pointer;
}

.cat-sheet-parent:hover {
    background: rgba(239, 68, 68, 0.08);
}

.cat-sheet-parent-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 1rem;
    flex-shrink: 0;
}

.cat-sheet-parent-name {
    flex: 1;
    font-weight: 700;
    font-size: 0.9rem;
}

.cat-sheet-arrow {
    font-size: 0.7rem;
    color: var(--text3);
    transition: transform 0.3s;
}

.cat-sheet-group.open .cat-sheet-arrow {
    transform: rotate(-180deg);
}

.cat-sheet-subs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5rem 0 1rem;
}

.cat-sheet-group.open .cat-sheet-subs {
    max-height: 500px;
    padding: 0.35rem 0.5rem 0.35rem 1rem;
}

.cat-sheet-sub {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text2);
    transition: all 0.25s;
}

.cat-sheet-sub i {
    font-size: 0.8rem;
    color: var(--text3);
    width: 18px;
    text-align: center;
}

.cat-sheet-sub:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--primary-700);
}

.cat-sheet-sub:hover i {
    color: var(--primary-600);
}

.cat-sheet-count {
    margin-right: auto;
    background: rgba(239, 68, 68, 0.12);
    color: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

/* ============================================
   پاپ‌آپ سرچ
   ============================================ */
.search-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1f 0%, #111115 100%);
    border-radius: 24px 24px 0 0;
    z-index: 600;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.search-sheet.show {
    display: flex;
    flex-direction: column;
    animation: sheetSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-sheet.closing {
    animation: sheetSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.search-sheet-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.search-sheet-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0 0.85rem;
    transition: border-color 0.25s;
}

.search-sheet-input-wrap:focus-within {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px var(--glow);
}

.search-sheet-input-wrap i {
    color: var(--text3);
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

.search-sheet-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 0;
    font-size: 0.9rem;
    color: var(--text);
    outline: none;
}

.search-sheet-clear {
    background: none;
    border: none;
    color: var(--text3);
    font-size: 0.85rem;
    padding: 0.25rem;
    transition: color 0.2s;
}

.search-sheet-clear:hover { color: var(--primary-600); }
.search-sheet-clear.show { display: block; }

.search-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
}

.search-sheet-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text3);
}

.search-sheet-empty i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
    opacity: 0.3;
}

.search-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    border-radius: 12px;
    transition: all 0.25s;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-sheet-item:hover {
    background: rgba(239, 68, 68, 0.06);
}

.search-sheet-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    padding: 0.35rem;
}

.search-sheet-item-info {
    flex: 1;
    min-width: 0;
}

.search-sheet-item-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-sheet-item-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-700);
}

/* ============================================
   پاپ‌آپ ورود
   ============================================ */
.login-sheet {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, #1e1e23 0%, #131316 100%);
    border-radius: 24px;
    z-index: 600;
    width: 90%;
    max-width: 400px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

.login-sheet.show {
    display: flex;
    flex-direction: column;
    animation: loginPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-sheet.closing {
    animation: loginPopOut 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loginPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes loginPopOut {
    from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
}

.login-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.login-sheet-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.login-sheet-head h3 i {
    color: var(--primary-600);
}

.login-sheet-body {
    padding: 1.5rem 1.25rem 2rem;
}

.login-desc {
    font-size: 0.88rem;
    color: var(--text2);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.login-phone-wrap {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 0 1rem;
    margin-bottom: 1rem;
    transition: all 0.25s;
}

.login-phone-wrap:focus-within {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px var(--glow);
}

.login-prefix {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text2);
    direction: ltr;
    unicode-bidi: embed;
    padding-right: 0.75rem;
    border-right: 1.5px solid rgba(255,255,255,0.08);
    margin-right: 0.75rem;
    user-select: none;
}

.login-phone-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 0;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

.login-submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--glow);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

.login-submit-btn:disabled {
    opacity: 0.6;
    transform: none;
}

.login-otp-input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 0.5rem;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    margin-bottom: 1rem;
    outline: none;
    transition: all 0.25s;
}

.login-otp-input:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px var(--glow);
}

#loginMsg {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#loginMsg.success { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.2); }
#loginMsg.error { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }

/* ============================================
   پاپ‌آپ امکانات
   ============================================ */
.options-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a1a1f 0%, #111115 100%);
    border-radius: 24px 24px 0 0;
    z-index: 600;
    max-height: 70vh;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.options-sheet.show {
    display: flex;
    flex-direction: column;
    animation: sheetSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.options-sheet.closing {
    animation: sheetSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.options-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.options-sheet-head h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.options-sheet-head h3 i {
    color: var(--primary-600);
}

.options-sheet-body {
    padding: 0.5rem;
    overflow-y: auto;
}

.options-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.25s;
    background: none;
    border: none;
    width: 100%;
    text-align: right;
    cursor: pointer;
    font-family: inherit;
}

.options-item:hover {
    background: rgba(239, 68, 68, 0.08);
}

.options-item i:first-child {
    width: 20px;
    text-align: center;
    color: var(--text2);
}

.options-item span {
    flex: 1;
}

.options-item i:last-child {
    font-size: 0.65rem;
    color: var(--text3);
}

.options-group {
    padding: 0.55rem 0.35rem 0.35rem;
}

.options-group + .options-group {
    border-top: 1px dashed rgba(255,255,255,0.08);
    margin-top: 0.35rem;
}

.options-group h4 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text3);
    letter-spacing: 0.03em;
    padding: 0 0.65rem 0.4rem;
}

.options-group h4 i {
    color: var(--primary-500);
    font-size: 0.7rem;
}

.options-item-danger { color: #f87171; }
.options-item-danger i:first-child { color: #f87171; }
.options-item-highlight {
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(239,68,68,0.05));
    border: 1px solid rgba(239,68,68,0.22);
}
.options-item-highlight i:first-child { color: var(--primary-600); }

.options-badge {
    font-size: 0.62rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-500), #b91c1c);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}

.options-badge {
    background: rgba(239, 68, 68, 0.15);
    color: var(--primary-700);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
}

/* ============================================
   بنر اصلی
   ============================================ */
.hero-banner {
    padding: 1.25rem 0;
}

.banner-main {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #4a0e0e 0%, #991b1b 30%, #dc2626 60%, #ef4444 100%);
    aspect-ratio: 2.63/1;
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 40px rgba(153, 27, 27, 0.3);
}

.banner-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.banner-main::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 550px;
}

.banner-content h1 {
    font-size: 1.85rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.banner-content p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.banner-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---------- اسلایدر صفحه اصلی ---------- */
.hero-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 2.63/1;
    background: #111;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.hs-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 2.5rem 3rem;
    color: #fff;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

.hs-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.hs-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform-origin: center;
    filter: none;
    z-index: 0;
}

.hs-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-color: #000;
    z-index: 1;
}

.hs-slide .banner-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.hs-slide .banner-content h1,
.hs-slide .banner-content p {
    color: inherit;
}

.hs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s;
}

.hero-slider:hover .hs-arrow { opacity: 1; }
.hs-arrow:hover { background: var(--primary-600); border-color: var(--primary-600); }
.hs-arrow.prev { right: 1rem; }
.hs-arrow.next { left: 1rem; }

.hs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.85rem;
}

.hs-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.22);
    cursor: pointer;
    transition: all 0.25s;
    padding: 0;
}

.hs-dot.active {
    width: 24px;
    background: var(--primary-600);
}

.banner-sub {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.banner-sub-card {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 192/73;
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    color: #fff;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
}

.banner-sub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.banner-sub-card span {
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   دسته‌بندی‌ها
   ============================================ */
.categories-bar {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.categories-scroll {
    display: flex;
    gap: 2rem;
    justify-content: center;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    min-width: 80px;
    cursor: pointer;
    transition: transform 0.3s;
}

.cat-item:hover { transform: translateY(-4px); }

.cat-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-600);
    border: 2px solid rgba(239, 68, 68, 0.12);
    transition: all 0.3s;
}

.cat-item:hover .cat-icon {
    border-color: var(--primary-600);
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 0 25px var(--glow);
    transform: scale(1.08);
}

.cat-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

/* ============================================
   بخش محصولات
   ============================================ */
.section {
    padding: 2.25rem 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.section-title i {
    color: var(--primary-600);
    font-size: 1rem;
}

.section-more {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-600);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 10px;
    border: 1.5px solid rgba(239, 68, 68, 0.2);
    transition: all 0.25s;
}

.section-more:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--primary-600);
    box-shadow: 0 0 15px var(--glow);
    transform: translateX(-2px);
}

.products-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.75rem;
    scrollbar-width: none;
}

.products-row::-webkit-scrollbar { display: none; }

/* ============================================
   کارت محصول - الماس 🔥
   ============================================ */
.p-card {
    position: relative;
    min-width: 180px;
    max-width: 180px;
    background: linear-gradient(165deg, #1d1d22 0%, #151518 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.p-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.p-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 16px 45px rgba(0,0,0,0.4), 0 0 0 1px rgba(239, 68, 68, 0.12), 0 0 30px var(--glow);
    transform: translateY(-7px);
}

.p-card:hover::before { opacity: 1; }

.p-card-img {
    position: relative;
    padding: 1.25rem 1.25rem 1rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    text-align: center;
    overflow: hidden;
}

.p-card-img img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
    position: relative;
    z-index: 1;
}

.p-card:hover .p-card-img img {
    transform: scale(1.08) translateY(-3px);
}

/* جلای نور روی تصویر هنگام hover */
.p-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.07), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    z-index: 2;
    pointer-events: none;
}

.p-card:hover .p-card-img::after {
    left: 150%;
}

.p-card-tag {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    z-index: 3;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.p-card-tag-sale {
    background: linear-gradient(135deg, #ff4d4d, #dc2626);
    box-shadow: 0 3px 12px rgba(239, 68, 68, 0.5);
}

.p-card-tag-hot {
    background: linear-gradient(135deg, #ffa31a, #ea580c);
    box-shadow: 0 3px 12px rgba(249, 115, 22, 0.5);
}

.p-card-heart {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 32px;
    height: 32px;
    background: rgba(15, 15, 18, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text3);
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(0.6) translateY(-6px);
    z-index: 3;
}

.p-card:hover .p-card-heart {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.p-card-heart:hover {
    color: #ff5c5c;
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.p-card-body {
    padding: 0.5rem 1rem 1.1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.p-card-brand {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    font-size: 0.65rem;
    color: var(--primary-600);
    font-weight: 700;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
    transition: all 0.25s;
}

.p-card:hover .p-card-brand {
    background: rgba(239, 68, 68, 0.18);
}

.p-card-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.65rem;
    flex: 1;
    transition: color 0.25s;
}

.p-card:hover .p-card-name { color: #fff; }

.p-card-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
    border-top: 1px dashed rgba(255,255,255,0.08);
    padding-top: 0.6rem;
}

.p-price-now {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--primary-700);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    transition: all 0.25s;
}

.p-card:hover .p-price-now {
    color: var(--primary-600);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.p-price-old {
    font-size: 0.72rem;
    color: var(--text3);
    text-decoration: line-through;
}

.p-card-btn {
    display: block;
    width: 100%;
    padding: 0.58rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border: none;
    border-radius: 11px;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.p-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.p-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.5s ease;
}

.p-card-btn:hover::before { left: 120%; }

/* ============================================
   بخش آمار
   ============================================ */
.stats-bar {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
}

.stats-row {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 120px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-600);
    font-size: 1.15rem;
    transition: all 0.3s;
}

.stat-item:hover .stat-icon {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text3);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-section {
    padding: 3rem 0;
}

.faq-item {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover { border-color: rgba(239, 68, 68, 0.2); }

.faq-item.open { border-color: rgba(239, 68, 68, 0.15); }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg2);
    transition: background 0.25s;
}

.faq-q:hover { background: rgba(239, 68, 68, 0.06); }

.faq-q i {
    color: var(--primary-600);
    transition: transform 0.3s;
}

.faq-item.open .faq-q i { transform: rotate(180deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.25rem;
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 2;
}

.faq-item.open .faq-a {
    max-height: 500px;
    padding: 0.25rem 1.25rem 1.25rem;
}

/* ============================================
   فوتر
   ============================================ */
.footer {
    background: linear-gradient(180deg, #111115 0%, #0a0a0e 100%);
    border-top: 1px solid rgba(255,255,255,0.06);
    color: var(--text);
}

.footer-guarantees {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.guarantees-row {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: all 0.25s;
}

.guarantee-item:hover { background: rgba(255,255,255,0.04); }

.guarantee-item i {
    color: var(--primary-600);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.guarantee-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
}

.footer-links {
    padding: 2.5rem 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.footer-brand h3 {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text2);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    transition: all 0.25s;
    background: rgba(255,255,255,0.03);
}

.footer-socials a:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    background: rgba(239, 68, 68, 0.1);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col a {
    font-size: 0.85rem;
    color: var(--text2);
    transition: all 0.25s;
}

.footer-col a:hover { color: var(--primary-600); transform: translateX(-3px); }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text2);
}

.footer-contact-item i {
    color: var(--primary-600);
    width: 18px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text3);
}

.footer-certs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-certs img {
    height: 40px;
    opacity: 0.6;
}

/* ============================================
   موبایل ناوبار
   ============================================ */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;
    z-index: 100;
    padding: 0.45rem 0.3rem;
    box-shadow: 0 -2px 30px rgba(0,0,0,0.4), 0 0 0 0.5px rgba(255,255,255,0.05) inset;
}

.mobile-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav a, .mobile-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.45rem 0.5rem;
    border-radius: 14px;
    background: none;
    border: none;
    color: var(--text3);
    font-size: 0.58rem;
    font-weight: 500;
    transition: all 0.25s;
    position: relative;
    font-family: inherit;
}

.mobile-nav a i, .mobile-nav button i {
    font-size: 1.2rem;
    transition: all 0.25s;
}

.mobile-nav a.active {
    color: var(--primary-600);
}

.mobile-nav a.active i {
    color: var(--primary-600);
    filter: drop-shadow(0 0 8px var(--glow));
}

.mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.55rem;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

/* ============================================
   صفحه محصول
   ============================================ */
.product-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem;
}

.p-gallery {
    text-align: center;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    padding: 2rem;
}

.p-gallery img {
    max-height: 380px;
    object-fit: contain;
}

.p-info h1 {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.p-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text3);
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.p-price-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.12);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.p-price-box .big {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-700);
}

.p-price-box .old {
    font-size: 0.9rem;
    color: var(--text3);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.p-price-box .badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    padding: 0.2rem 0.65rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.p-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.p-stock.in { color: #22c55e; }
.p-stock.out { color: #ef4444; }

.p-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--glow);
}

.p-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.35);
}

/* ============================================
   سبد خرید
   ============================================ */
.cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-title i { color: var(--primary-500); }

.cart-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text3);
    background: var(--bg);
    border: 1px solid var(--stroke);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

.cart-items { min-width: 0; }

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

.cart-row {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    transition: border-color 0.25s, transform 0.25s;
}

.cart-row:hover { border-color: rgba(255,255,255,0.14); }

.cart-row-main {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.35rem;
    flex-shrink: 0;
}

.cart-info { flex: 1; min-width: 0; }

.cart-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    display: block;
    margin-bottom: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

a.cart-name:hover { color: var(--primary-600); }

.cart-unit-price {
    font-size: 0.78rem;
    color: var(--text3);
}

.cart-remove {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.28);
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.cart-remove:hover { background: #ef4444; color: #fff; border-color: #ef4444; }

.cart-row-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(255,255,255,0.09);
}

.cart-col {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cart-label { font-size: 0.7rem; color: var(--text3); }

.cart-value {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text2);
}

.cart-value-total {
    color: var(--primary-700);
    font-size: 1.05rem;
}

.cart-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1.5px solid var(--stroke);
    background: var(--bg);
    color: var(--text2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.cart-step-btn:hover { border-color: var(--primary-500); color: var(--primary-500); }

.cart-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text);
}

.cart-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--bg2);
    color: var(--text2);
    border: 1.5px solid var(--stroke);
    transition: all 0.2s;
}

.cart-continue:hover { border-color: var(--primary-500); color: var(--primary-600); }

.cart-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.15rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: transparent;
    color: var(--text3);
    border: 1.5px solid var(--stroke);
    cursor: pointer;
    transition: all 0.2s;
}

.cart-clear:hover { color: #ef4444; border-color: rgba(239, 68, 68, 0.4); }

.cart-empty {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background: var(--bg2);
    border: 1.5px dashed var(--stroke);
    border-radius: 20px;
}

.cart-empty-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.08);
    color: var(--primary-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.cart-empty h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.cart-empty p {
    color: var(--text3);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.cart-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.35);
    transition: all 0.3s;
}

.cart-empty-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(239, 68, 68, 0.45); }

.cart-summary {
    position: sticky;
    top: 96px;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.5rem;
}

.cart-summary h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-summary h2 i { color: var(--primary-500); }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: var(--text2);
}

.summary-divider {
    border-bottom: none;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--stroke);
    color: var(--text);
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-700);
    white-space: nowrap;
}

.summary-note {
    font-size: 0.72rem;
    color: var(--text3);
    margin-top: 0.6rem;
    line-height: 1.8;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
}

.checkout-btn-alt { background: linear-gradient(135deg, #3b82f6, #2563eb); box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3); }
.checkout-btn-alt:hover { box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }

@media (max-width: 992px) {
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 480px) {
    .cart-row { padding: 0.85rem; }
    .cart-img { width: 60px; height: 60px; }
    .cart-name { font-size: 0.85rem; }
    .cart-row-details { gap: 0.5rem; }
    .cart-row-main { gap: 0.7rem; }
    .cart-step-btn { width: 28px; height: 28px; }
    .cart-qty { min-width: 26px; }
}

/* ============================================
   فرم‌ها
   ============================================ */
.form-box {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 450px;
    margin: 3rem auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.form-box h1 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.form-box .sub {
    text-align: center;
    color: var(--text3);
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    outline: none;
    transition: all 0.25s;
}

.form-control:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px var(--glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    box-shadow: 0 4px 15px var(--glow);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.35);
}
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }

/* ============================================
   پنل مدیریت
   ============================================ */
.admin-body {
    background: #0a0a0d;
    color: var(--text);
}

.admin-layout {
    display: grid;
    grid-template-columns: 268px 1fr;
    min-height: 100vh;
}

/* ---------- سایدبار ---------- */
.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: linear-gradient(180deg, #101014 0%, #0c0c10 100%);
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 50;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
    flex-shrink: 0;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.4; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--text3); }

/* کارت کاربر */
.admin-user-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
}

.admin-user-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #e5e7eb;
    flex-shrink: 0;
}

.admin-user-chip .au-info { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1; }
.admin-user-chip strong { font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-user-chip span { font-size: 0.68rem; color: var(--text3); }

.admin-logout {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    transition: all 0.2s;
    flex-shrink: 0;
}

.admin-logout:hover { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

/* منو */
.admin-menu { display: flex; flex-direction: column; gap: 1.1rem; flex: 1; }

.admin-menu-group h4 {
    font-size: 0.68rem;
    color: var(--text3);
    font-weight: 700;
    margin: 0 0 0.4rem 0.25rem;
    letter-spacing: 0.05em;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 0.15rem;
    font-size: 0.88rem;
    color: var(--text2);
    transition: all 0.22s;
    position: relative;
}

.admin-menu a:hover { background: rgba(255,255,255,0.05); color: var(--text); }

.admin-menu a.active {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.08));
    color: #fca5a5;
    font-weight: 700;
}

.admin-menu a.active::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 3px;
    background: var(--primary-500);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

.menu-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    color: var(--text3);
    font-size: 0.9rem;
    transition: all 0.22s;
    flex-shrink: 0;
}

.admin-menu a.active .menu-ico {
    background: var(--primary-500);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.menu-lbl { flex: 1; }

.menu-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary-600);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(10,10,13,0.8);
}

.admin-sidebar-foot {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-sidebar-foot a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text2);
    transition: all 0.2s;
}

.admin-sidebar-foot a:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.admin-sidebar-foot a.danger { color: #f87171; }
.admin-sidebar-foot a.danger:hover { background: rgba(239,68,68,0.12); }

/* ---------- محتوای اصلی ---------- */
.admin-main { min-width: 0; }

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.75rem;
    background: rgba(10, 10, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-top-title { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-top-title h1 { font-size: 1.3rem; font-weight: 800; }

.admin-top-title span {
    font-size: 0.75rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-view-site {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text2);
    transition: all 0.22s;
    white-space: nowrap;
}

.admin-view-site:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.admin-mobile-nav { display: none; }

.admin-content {
    padding: 1.75rem;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(239, 68, 68, 0.06), transparent 60%),
        radial-gradient(900px 400px at 10% 110%, rgba(99, 102, 241, 0.05), transparent 60%),
        #0a0a0d;
    min-height: calc(100vh - 100px);
}

/* ---------- سلامت داشبورد ---------- */
.admin-greet { margin-bottom: 1.5rem; }
.admin-greet h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.3rem; }
.admin-greet p { font-size: 0.85rem; color: var(--text3); margin: 0; }

.dash-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

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

.mini-prod {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
    transition: background 0.2s;
    color: inherit;
}

.mini-prod:hover { background: rgba(255,255,255,0.05); color: inherit; }

.mini-prod img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.mp-name { flex: 1; font-size: 0.82rem; font-weight: 600; line-height: 1.4; min-width: 0; }
.mp-num { font-size: 0.74rem; color: var(--text3); white-space: nowrap; }
.mp-num i { color: var(--primary-500); }

/* ---------- سەرخوان / جستجو ---------- */
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.toolbar-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
    min-width: 280px;
}

.toolbar-search .form-control { max-width: 320px; }

.toolbar-hint {
    font-size: 0.75rem;
    color: var(--text3);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.perm-box {
    padding: 0.9rem 1.25rem;
    background: rgba(99,102,241,0.06);
    border-top: 1px dashed rgba(255,255,255,0.09);
    border-bottom: 1px dashed rgba(255,255,255,0.09);
}

.perm-box form { gap: 0.6rem; align-items: center; }

.perm-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    font-size: 0.72rem;
    color: var(--text2);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.perm-chip:hover { border-color: var(--primary-500); color: var(--text); }
.perm-chip input { accent-color: var(--primary-600); }

/* ---------- فیلتر سفارشات ---------- */
.order-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.of-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--text2);
    transition: all 0.2s;
    white-space: nowrap;
}

.of-item b { font-size: 0.72rem; opacity: 0.8; }
.of-item:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.of-item.active { background: var(--primary-600); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(239,68,68,0.35); }

.status-select {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ---------- جزییات سفارش ---------- */
.order-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255,255,255,0.025);
    border-radius: 14px;
    padding: 1.25rem;
}

@media (max-width: 768px) { .order-detail { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- آواتار کاربر ---------- */
.u-ava {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #374151, #1f2937);
    color: #e5e7eb;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ---------- گالری محصول ---------- */
.gal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.4rem;
}

.gal-item {
    position: relative;
    display: block;
    cursor: pointer;
}

.gal-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.2s;
}

.gal-item input {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    accent-color: var(--primary-600);
    cursor: pointer;
}

.gal-item:hover img { border-color: var(--primary-500); opacity: 0.8; }

/* ---------- گروه تنظیمات ---------- */
.setting-group {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.setting-group h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.setting-group h3 i { color: var(--primary-500); }
.setting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.setting-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--text2); margin-bottom: 0.4rem; }
.setting-field.full { grid-column: 1 / -1; }
.msgway-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-size: 0.78rem;
    margin-top: 0.6rem;
}
.msgway-status.connected { background: rgba(34,197,94,0.1); color: #86efac; border: 1px solid rgba(34,197,94,0.2); }
.msgway-status.disconnected { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }
.app-help {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    font-size: 0.82rem;
    color: var(--text2);
    line-height: 2;
}
.app-help code { background: rgba(255,255,255,0.08); padding: 0.1rem 0.4rem; border-radius: 6px; font-size: 0.78rem; direction: ltr; display: inline-block; }
.app-help a { color: var(--primary-500); font-weight: 700; }
.app-help ol { margin: 0.4rem 1.1rem 0 0; padding: 0; }
@media (max-width: 768px) { .setting-grid { grid-template-columns: 1fr; } }

/* ---------- کارت‌های آمار ---------- */
.admin-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.5rem;
}

.admin-card {
    position: relative;
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.25rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.25s;
    overflow: hidden;
}

.admin-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--card-accent, var(--primary-500));
    opacity: 0.7;
}

.admin-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 14px 34px rgba(0,0,0,0.4);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    --card-accent: auto;
}

.ci-red { background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 8px 20px rgba(239,68,68,0.3); }
.ci-green { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }
.ci-blue { background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 8px 20px rgba(99,102,241,0.3); }
.ci-amber { background: linear-gradient(135deg, #f59e0b, #b45309); box-shadow: 0 8px 20px rgba(245,158,11,0.3); }
.ci-violet { background: linear-gradient(135deg, #a855f7, #7e22ce); box-shadow: 0 8px 20px rgba(168,85,247,0.3); }
.ci-cyan { background: linear-gradient(135deg, #06b6d4, #0e7490); box-shadow: 0 8px 20px rgba(6,182,212,0.3); }

.admin-card-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.admin-card-info .lbl { font-size: 0.78rem; color: var(--text3); }
.admin-card-info .num { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.admin-card-info .sub { font-size: 0.72rem; color: var(--text3); }

/* ---------- پنل / کارت سفارشی ---------- */
.admin-panel {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.panel-head h2 {
    font-size: 1.02rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.panel-head h2 i { color: var(--primary-500); }
.panel-head .muted { font-size: 0.78rem; color: var(--text3); }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    background: rgba(255,255,255,0.03);
    padding: 0.8rem 1rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--text3);
    white-space: nowrap;
}

.admin-table td {
    padding: 0.85rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    vertical-align: middle;
}

.admin-table tbody tr { transition: background 0.15s; }
.admin-table tbody tr:hover { background: rgba(255,255,255,0.025); }

.tb-prod { display: flex; align-items: center; gap: 0.75rem; }
.tb-prod img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
.tb-prod .t { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.tb-prod .t strong { font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; }
.tb-prod .t span { font-size: 0.72rem; color: var(--text3); }

/* ---------- نشان‌ها ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}
.badge-green { background: rgba(34,197,94,0.12); color: #86efac; border: 1px solid rgba(34,197,94,0.25); }
.badge-red { background: rgba(239,68,68,0.12); color: #fca5a5; border: 1px solid rgba(239,68,68,0.25); }
.badge-amber { background: rgba(245,158,11,0.12); color: #fcd34d; border: 1px solid rgba(245,158,11,0.25); }
.badge-blue { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.badge-cyan { background: rgba(6,182,212,0.12); color: #67e8f9; border: 1px solid rgba(6,182,212,0.25); }
.badge-violet { background: rgba(168,85,247,0.12); color: #d8b4fe; border: 1px solid rgba(168,85,247,0.25); }
.badge-gray { background: rgba(255,255,255,0.06); color: var(--text3); border: 1px solid rgba(255,255,255,0.08); }

/* ---------- دکمه‌های اکشن جدول ---------- */
.row-actions { display: flex; gap: 0.4rem; }
.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: all 0.2s;
    border: 0;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    color: var(--text2);
}
.icon-btn:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.icon-btn.edit:hover { background: rgba(245,158,11,0.15); color: #fcd34d; }
.icon-btn.del:hover { background: rgba(239,68,68,0.15); color: #fca5a5; }
.icon-btn.view:hover { background: rgba(99,102,241,0.15); color: #a5b4fc; }

a.icon-btn { text-decoration: none; }

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text3);
}
.empty-state i { font-size: 2.5rem; opacity: 0.3; display: block; margin-bottom: 0.6rem; }
.admin-cancel-reason { margin: 0.3rem 0 0; font-size: 0.8rem; color: #ef4444; display: flex; align-items: center; gap: 0.35rem; }

/* ---------- فرم‌ها ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text2);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    font-size: 0.88rem;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    transition: all 0.2s;
    outline: none;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-500);
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}

select.form-control { background: rgba(255,255,255,0.04); }

select.form-control option { background: #17171a; color: var(--text); padding: 0.5rem; }
select.form-control optgroup { background: #17171a; color: #a1a1aa; font-style: normal; font-weight: 700; }

/* ---------- dropdown سفارشی ---------- */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.85rem center;
    background-size: 16px;
    padding-left: 2.4rem;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
select.form-control:hover {
    border-color: rgba(255,255,255,0.18);
    background-color: rgba(255,255,255,0.06);
}
select.form-control:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
    background-color: rgba(255,255,255,0.06);
}

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

/* ---------- آپلود شیک ---------- */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.4rem 1rem;
    border: 2px dashed rgba(255,255,255,0.16);
    border-radius: 18px;
    background:
        radial-gradient(200px 120px at 50% 0%, rgba(239,68,68,0.06), transparent 70%),
        rgba(255,255,255,0.03);
    cursor: pointer;
    transition: all 0.25s;
    text-align: center;
    overflow: hidden;
}

.file-upload:hover {
    border-color: var(--primary-500);
    background:
        radial-gradient(200px 120px at 50% 0%, rgba(239,68,68,0.12), transparent 70%),
        rgba(239,68,68,0.04);
    box-shadow: 0 8px 30px rgba(239,68,68,0.12), inset 0 0 0 1px rgba(239,68,68,0.1);
}

.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.fu-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(239,68,68,0.35);
    transition: transform 0.25s;
}

.file-upload:hover .fu-icon { transform: translateY(-3px) scale(1.04); }

.fu-title { font-size: 0.86rem; font-weight: 800; }
.fu-hint { font-size: 0.7rem; color: var(--text3); }
.fu-file {
    font-size: 0.72rem;
    color: var(--primary-500);
    font-weight: 700;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fu-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .file-upload { padding: 1.1rem 0.75rem; }
    .fu-icon { width: 42px; height: 42px; font-size: 1.05rem; }
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.88rem;
    cursor: pointer;
    user-select: none;
}

.form-check input { width: 17px; height: 17px; accent-color: var(--primary-600); cursor: pointer; }

.form-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn { display: inline-flex; align-items: center; gap: 0.5rem; border: 0; cursor: pointer; border-radius: 12px; font-weight: 700; font-family: inherit; transition: all 0.22s; text-decoration: none; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.8rem; border-radius: 10px; }
.btn-md { padding: 0.65rem 1.3rem; font-size: 0.88rem; }
.btn-lg { padding: 0.8rem 2rem; font-size: 0.95rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary-600), var(--primary-500)); color: #fff; box-shadow: 0 6px 18px rgba(239,68,68,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(239,68,68,0.4); }
.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 6px 18px rgba(34,197,94,0.25); }
.btn-success:hover { transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 6px 18px rgba(239,68,68,0.25); }
.btn-danger:hover { transform: translateY(-1px); }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 6px 18px rgba(245,158,11,0.25); }
.btn-warning:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text2); border: 1px solid rgba(255,255,255,0.09); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* ---------- الگوی فرم افزودن/ویرایش محصول ---------- */
.admin-form-card {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.75rem;
}

/* ---------- تازه‌سازی: ریسپانسیو پنل ---------- */
@media (max-width: 1100px) {
    .admin-layout { grid-template-columns: 76px 1fr; }
    .admin-sidebar { padding: 1rem 0.6rem; }
    .admin-brand { justify-content: center; padding: 0.25rem 0 0.9rem; }
    .admin-brand .brand-text { display: none; }
    .admin-user-chip { justify-content: center; padding: 0.55rem 0.3rem; }
    .admin-user-chip > div, .admin-user-chip .admin-logout { display: none; }
    .admin-menu-group { display: flex; flex-direction: column; align-items: center; }
    .admin-menu-group h4 { display: none; }
    .admin-menu { align-items: center; }
    .admin-menu a { justify-content: center; width: 44px; padding: 0.5rem 0; margin: 0 auto; }
    .admin-menu a .menu-lbl, .admin-menu a .menu-badge, .admin-menu a.active::before { display: none; }
    .admin-sidebar-foot { align-items: center; }
    .admin-sidebar-foot a { justify-content: center; width: 44px; padding: 0.55rem 0; }
    .admin-sidebar-foot a span { display: none; }
    .admin-cards { grid-template-columns: repeat(2, 1fr); }
    .admin-content { padding: 1.25rem; }
}

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-topbar { padding: 0.9rem 1rem; }
    .admin-view-site { display: none; }
    .admin-content { padding: 1rem; }
    .admin-top-title h1 { font-size: 1.1rem; }
    .admin-top-title span { display: none; }
    .panel-head { flex-wrap: wrap; gap: 0.5rem; }
    .panel-head h2 { font-size: 1rem; }
    .admin-mobile-nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: rgba(255,255,255,0.03);
        border-bottom: 1px solid rgba(255,255,255,0.05);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        position: sticky;
        top: 0;
        z-index: 40;
    }
    .admin-mobile-nav::-webkit-scrollbar { display: none; height: 0; }
    @media (hover: hover) and (pointer: fine) {
        .admin-mobile-nav { scrollbar-width: thin; scrollbar-color: rgba(239,68,68,0.5) transparent; }
        .admin-mobile-nav::-webkit-scrollbar { display: block; height: 5px; }
        .admin-mobile-nav::-webkit-scrollbar-thumb { background: rgba(239,68,68,0.45); border-radius: 999px; }
        .admin-mobile-nav::-webkit-scrollbar-track { background: transparent; }
    }
    .admin-mobile-nav a {
        display: flex;
        flex: 0 0 auto;
        flex-shrink: 0;
        align-items: center;
        min-height: 34px;
        gap: 0.4rem;
        padding: 0.45rem 0.85rem;
        border-radius: 999px;
        font-size: 0.78rem;
        white-space: nowrap;
        background: rgba(255,255,255,0.05);
        color: var(--text2);
        position: relative;
    }
    .admin-mobile-nav a.active { background: var(--primary-600); color: #fff; }
    .admin-mobile-nav a b {
        position: absolute;
        top: -5px;
        left: 4px;
        min-width: 16px;
        height: 16px;
        padding: 0 4px;
        border-radius: 999px;
        background: #f87171;
        color: #fff;
        font-size: 0.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .form-grid { grid-template-columns: 1fr; }
    .admin-cards { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .admin-card { padding: 1rem; flex-direction: column; align-items: flex-start; gap: 0.6rem; }
    .card-icon { width: 44px; height: 44px; font-size: 1.1rem; border-radius: 12px; }
    .admin-card-info .num { font-size: 1.2rem; }
    .tb-prod .t strong { max-width: 160px; }
    .table-wrap .admin-table th, .table-wrap .admin-table td { white-space: nowrap; }
    .toolbar-search { min-width: 0; }
    .toolbar-search .form-control { max-width: none; flex: 1; min-width: 120px; }
    .toolbar-hint { display: none; }
    .perm-box { padding: 0.8rem 0.9rem; }
    .perm-chip { white-space: normal; }
    .admin-sidebar-foot { border-top: none; padding-top: 0; }
}

@media (max-width: 500px) {
    .admin-cards { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .admin-card { padding: 0.85rem; }
    .admin-card-info .num { font-size: 1.05rem; }
    .card-icon { width: 38px; height: 38px; font-size: 0.95rem; }
    .admin-card-info .lbl { font-size: 0.7rem; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .row-actions { flex-wrap: wrap; }
}

.mobile-search-bar { display: none; }

.mobile-search-trigger {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e1e22, #131316);
    border: 1.5px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.05);
    color: var(--text3);
    font-size: 0.85rem;
    text-align: right;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
}

.mobile-search-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(239,68,68,0.16), rgba(99,102,241,0.1) 60%, transparent);
    opacity: 0.8;
    pointer-events: none;
}

.mobile-search-trigger i:first-child {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    color: #fff;
    font-size: 0.8rem;
    box-shadow: 0 4px 12px rgba(239,68,68,0.35);
}

.mobile-search-trigger span {
    position: relative;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-search-go {
    position: relative;
    font-size: 0.7rem;
    color: var(--primary-600);
    opacity: 0.9;
}

.mobile-search-trigger:hover {
    border-color: rgba(239,68,68,0.35);
    box-shadow: 0 6px 22px rgba(0,0,0,0.4), 0 0 0 3px var(--glow);
}

/* ============================================
   Alert
   ============================================ */
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    animation: fadeUp 0.3s ease;
}

.alert-success { background: rgba(34, 197, 94, 0.1); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.2); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }

/* ============================================
   Profile Card
   ============================================ */
.profile-card {
    background: var(--bg2);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.25s;
}

.profile-card:hover {
    border-color: rgba(239, 68, 68, 0.12);
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .header { padding: 0.6rem 0; }
    .header-bar { gap: 0.5rem; padding: 0.4rem; justify-content: space-between; }
    .header-actions { margin-right: auto; }
    .search-bar { display: none; }
    .mobile-search-bar {
        display: block;
        padding: 0.6rem 1rem 0.3rem;
        background: linear-gradient(180deg, rgba(239,68,68,0.05), transparent);
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .nav-inner { display: none; }
    .mega-menu { display: none !important; }
    .header-btn { width: 38px; height: 38px; font-size: 1rem; }
    .header-admin-btn { width: 38px; height: 38px; padding: 0; justify-content: center; }
    .header-admin-btn span { display: none; }
    .banner-main { padding: 1.5rem; aspect-ratio: 16/9; border-radius: 16px; }
    .banner-main h1 { font-size: 1.2rem; }
    .hero-slider { aspect-ratio: 16/9; border-radius: 16px; }
    .hs-slide { padding: 1.4rem; }
    .hs-slide .banner-content h1 { font-size: 1.15rem; }
    .hs-slide .banner-content p { font-size: 0.78rem; margin-bottom: 1rem; }
    .hs-slide .banner-btn { padding: 0.55rem 1.15rem; font-size: 0.8rem; }
    .hs-arrow { display: none; }
    .banner-sub { flex-direction: column; }
    .p-card { min-width: 158px; max-width: 158px; }
    .p-card-heart { opacity: 1; transform: scale(1); }
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
    .mobile-nav { display: block; }
    body { padding-bottom: 80px; }
    .support-fab { bottom: 6.7rem; left: 0.75rem; }
    .product-page-grid { grid-template-columns: 1fr; }
    .cart-grid { grid-template-columns: 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-cards { grid-template-columns: repeat(2, 1fr); }
    .stats-row { flex-wrap: wrap; justify-content: center; }
    .stat-item { min-width: calc(50% - 0.75rem); }
}

@media (max-width: 480px) {
    .stat-item { min-width: 80px; }
    .stats-row { gap: 1rem; }
}

/* ============================================
   انیمیشن‌ها
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.4s ease forwards; }

/* اعداد و شماره موبایل همیشه چپ‌به‌راست */
.ltr-num {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* ============================================
   دکمه پشتیبانی آنلاین
   ============================================ */
.support-fab {
    position: fixed;
    bottom: 5.5rem;
    left: 1rem;
    z-index: 400;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 8px 28px rgba(239, 68, 68, 0.45);
    transition: all 0.3s;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.support-fab:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 34px rgba(239, 68, 68, 0.6);
    color: #fff;
}

.support-fab-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

.support-fab-label {
    position: absolute;
    left: calc(100% + 0.75rem);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: rgba(16, 16, 19, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.support-fab:hover .support-fab-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.support-fab-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.5);
    z-index: -1;
    animation: supportPulse 2.2s ease-out infinite;
}

@keyframes supportPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================
   پنل پشتیبانی آنلاین
   ============================================ */
.support-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 600;
    backdrop-filter: blur(4px);
}

.support-overlay.show { display: block; }

.support-panel {
    display: none;
    position: fixed;
    bottom: 0.75rem;
    left: 0.5rem;
    z-index: 601;
    width: 370px;
    max-width: calc(100vw - 1rem);
    height: 560px;
    max-height: calc(100vh - 2rem);
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    flex-direction: column;
    overflow: hidden;
    animation: supportIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.support-panel.show { display: flex; }

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

.support-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, #1a1a1d, #222226);
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
}

.support-head-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.support-head-info { flex: 1; }

.support-head-info strong { font-size: 0.9rem; display: block; }

.support-head-info span {
    font-size: 0.7rem;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.support-close {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text2);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
}

.support-close:hover { background: rgba(239, 68, 68, 0.2); color: #fff; }

.support-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.support-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem;
    flex: 1;
}

.support-mode p {
    text-align: center;
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.support-mode-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid var(--stroke);
    background: var(--bg2);
    color: var(--text);
    cursor: pointer;
    text-align: right;
    transition: all 0.25s;
    font-family: inherit;
}

.support-mode-btn i {
    font-size: 1.4rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-mode-btn.ai i { background: rgba(239, 68, 68, 0.12); color: var(--primary-600); }
.support-mode-btn.human i { background: rgba(34, 197, 94, 0.12); color: #22c55e; }

.support-mode-btn span { display: flex; flex-direction: column; gap: 0.15rem; }

.support-mode-btn strong { font-size: 0.9rem; }

.support-mode-btn small { font-size: 0.75rem; color: var(--text3); }

.support-mode-btn:hover {
    border-color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.support-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.support-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    scrollbar-width: thin;
}

.support-bubble { display: flex; }

.support-bubble.ai { justify-content: flex-start; }
.support-bubble.user { justify-content: flex-end; }
.support-bubble.admin { justify-content: flex-start; }

.support-bubble .sb {
    max-width: 82%;
    padding: 0.6rem 0.85rem;
    border-radius: 14px;
    font-size: 0.83rem;
    line-height: 1.8;
    word-break: break-word;
}

.support-bubble.ai .sb {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-top-right-radius: 4px;
    color: var(--text);
}

.support-bubble.admin .sb {
    background: var(--bg2);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-top-right-radius: 4px;
    color: var(--text);
}

.support-bubble.user .sb {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border-top-left-radius: 4px;
}

.support-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 1rem 0.5rem;
    flex-shrink: 0;
}

.support-chip {
    border: 1px solid var(--stroke);
    background: var(--bg2);
    color: var(--text2);
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.support-chip:hover { border-color: var(--primary-600); color: var(--primary-600); }

.support-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--stroke);
    flex-shrink: 0;
}

.support-input input {
    flex: 1;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s;
}

.support-input input:focus { border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--glow); }

.support-input button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.2s;
}

.support-input button:hover { transform: scale(1.05); box-shadow: 0 4px 14px var(--glow); }

.support-identity {
    padding: 1rem;
    border-bottom: 1px solid var(--stroke);
    flex-shrink: 0;
}

.support-identity p { font-size: 0.78rem; color: var(--text3); margin-bottom: 0.6rem; }

.support-identity input {
    width: 100%;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
    margin-bottom: 0.5rem;
}

.support-identity input:focus { border-color: var(--primary-600); }

.support-start-btn {
    width: 100%;
    padding: 0.75rem;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.support-start-btn:hover { box-shadow: 0 6px 20px var(--glow); }

.support-foot {
    padding: 0.6rem;
    border-top: 1px solid var(--stroke);
    text-align: center;
    flex-shrink: 0;
}

.support-back-mode {
    border: 0;
    background: transparent;
    color: var(--text3);
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}

.support-back-mode:hover { color: var(--primary-600); }

@media (max-width: 480px) {
    .support-panel {
        bottom: 4.25rem;
        left: 0.35rem;
        width: calc(100vw - 0.7rem);
        height: 65vh;
    }
}

/* ============================================
   پنل مدیریت - پشتیبانی
   ============================================ */
.admin-chat-wrap {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    min-height: calc(100vh - 150px);
}

.admin-chat-list {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.admin-chat-item {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--stroke);
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.admin-chat-item:hover { background: rgba(255, 255, 255, 0.03); }

.admin-chat-item.active {
    background: rgba(239, 68, 68, 0.08);
    border-right: 3px solid var(--primary-600);
}

.admin-chat-item-name { font-weight: 700; font-size: 0.85rem; margin-bottom: 0.25rem; }

.admin-chat-item-last {
    font-size: 0.75rem;
    color: var(--text3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chat-item-time { font-size: 0.65rem; color: var(--text3); margin-top: 0.25rem; }

.admin-chat-unread {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--primary-600);
    color: #fff;
    font-size: 0.65rem;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.admin-chat-panel {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
    overflow: hidden;
}

.admin-chat-head {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--stroke);
}

.admin-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.admin-chat-msg { display: flex; flex-direction: column; }

.admin-chat-msg.user { align-items: flex-end; }
.admin-chat-msg.admin { align-items: flex-start; }

.admin-chat-msg .bubble {
    max-width: 78%;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.8;
    word-break: break-word;
}

.admin-chat-msg.user .bubble {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border-top-left-radius: 4px;
}

.admin-chat-msg.admin .bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--stroke);
    border-top-right-radius: 4px;
}

.admin-chat-msg .meta {
    font-size: 0.62rem;
    color: var(--text3);
    margin-top: 0.3rem;
}

.admin-chat-input {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--stroke);
}

.admin-chat-input input {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    color: var(--text);
    font-size: 0.85rem;
    outline: none;
}

.admin-chat-input input:focus { border-color: var(--primary-600); }

.admin-chat-input button {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 0;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .admin-chat-wrap { grid-template-columns: 1fr; }
    .admin-chat-list { max-height: 240px; }
    .admin-chat-panel { max-height: 55vh; }
}

/* Scrollbar تاریک */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Selection */
::selection { background: rgba(239, 68, 68, 0.3); color: #fff; }

/* ============================================
   صفحات محتوا (page / post)
   ============================================ */
.content-card {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 2.25rem;
}

.content-body { line-height: 2.3; color: var(--text2); font-size: 0.95rem; }
.content-body p { margin-bottom: 1rem; }
.content-body h2 { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 1.5rem 0 0.75rem; }
.content-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 0.5rem; }
.content-body ul, .content-body ol { margin: 0 1.2rem 1.25rem 0; padding-right: 1rem; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body a { color: var(--primary-600); text-decoration: underline; }
.content-body img { border-radius: 12px; margin: 0.5rem 0; }

.content-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: all 0.25s;
}
.content-block:hover { border-color: var(--primary-500); color: var(--text); }

/* ============================================
   درباره ما
   ============================================ */
.about-hero {
    text-align: center;
    padding: 3rem 1.25rem 2rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(239, 68, 68, 0.15), transparent 60%),
        var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.about-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-600);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.about-hero h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.about-hero p {
    font-size: 0.95rem;
    color: var(--text3);
    max-width: 520px;
    margin: 0 auto;
    line-height: 2;
}

.about-card {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.about-text {
    line-height: 2.3;
    color: var(--text2);
    font-size: 0.95rem;
}

.about-text p { margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }

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

.about-feature {
    text-align: center;
    padding: 1.6rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    transition: all 0.25s;
}

.about-feature:hover { border-color: rgba(239, 68, 68, 0.35); transform: translateY(-3px); }

.about-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.09);
    color: var(--primary-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.about-feature h3 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.about-feature p {
    font-size: 0.78rem;
    color: var(--text3);
}

@media (max-width: 768px) {
    .about-hero { padding: 2.25rem 1rem 1.6rem; }
    .about-hero h1 { font-size: 1.35rem; }
    .about-card { padding: 1.4rem; }
    .about-features { gap: 0.75rem; }
    .about-feature { padding: 1.2rem 0.75rem; }
}

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

/* ============================================
   کارت مقاله / بلاگ
   ============================================ */
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s;
}
.blog-card:hover { border-color: rgba(239,68,68,0.35); transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,0.35); }

.blog-card-img { aspect-ratio: 16/9; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(99,102,241,0.1));
    color: var(--primary-600);
    font-size: 2rem;
}

.blog-card-body { padding: 1.15rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.blog-card-date { font-size: 0.7rem; color: var(--text3); }
.blog-card-title { font-size: 0.98rem; font-weight: 800; line-height: 1.7; color: var(--text); }
.blog-card-excerpt {
    font-size: 0.8rem;
    color: var(--text3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-more { font-size: 0.78rem; font-weight: 700; color: var(--primary-600); margin-top: 0.4rem; }

/* ============================================
   مقایسه محصولات
   ============================================ */
.compare-panel {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.compare-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; align-items: end; }

.compare-slot { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.compare-slot .form-control { flex: 1; }
.compare-slot .cselect { flex: 1; min-width: 0; }
.compare-slot-label {
    position: absolute;
    font-size: 0.68rem;
    color: var(--text3);
    background: var(--bg2);
    padding: 0 0.4rem;
    margin-top: -2.9rem;
    margin-right: 0.8rem;
    z-index: 1;
}

.compare-form-actions { display: flex; gap: 0.5rem; align-items: end; flex-wrap: wrap; }

.compare-table-wrap { border: 1px solid var(--stroke); border-radius: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; min-width: 0; }

.compare-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.compare-table th, .compare-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--stroke); text-align: center; vertical-align: middle; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-field { width: 130px; background: rgba(255,255,255,0.03); color: var(--text3); font-weight: 600; }

.compare-cell { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.compare-cell img { width: 120px; height: 80px; object-fit: contain; border-radius: 10px; background: rgba(255,255,255,0.04); }
.compare-noimg { width: 120px; height: 80px; display: flex; align-items: center; justify-content: center; color: var(--text3); background: rgba(255,255,255,0.04); border-radius: 10px; font-size: 1.5rem; }
.compare-name { font-size: 0.82rem; font-weight: 700; color: var(--text); line-height: 1.7; }
.compare-name:hover { color: var(--primary-600); }
.compare-price { display: block; font-weight: 800; color: var(--primary-600); font-size: 0.95rem; }
.compare-price-old { display: block; color: var(--text3); font-size: 0.72rem; text-decoration: line-through; }
.compare-desc { color: var(--text2); line-height: 2; max-width: 280px; }

/* ============================================
   اسمبل هوشمند
   ============================================ */
.b-step { background: var(--bg2); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.5rem; margin-bottom: 1.25rem; }

.b-step-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.b-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.b-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; }
.b-type { cursor: pointer; }
.b-type input { display: none; }
.b-type-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.25rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1.5px solid var(--stroke);
    transition: all 0.25s;
    text-align: center;
}
.b-type-inner i { font-size: 1.6rem; color: var(--text3); }
.b-type-inner strong { font-size: 0.9rem; font-weight: 800; }
.b-type-inner small { font-size: 0.72rem; color: var(--text3); line-height: 1.8; }
.b-type input:checked + .b-type-inner {
    border-color: var(--primary-500);
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.04));
    box-shadow: 0 0 0 3px var(--glow);
}
.b-type input:checked + .b-type-inner i { color: var(--primary-600); }

.b-slots { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }

.b-slot { background: rgba(255,255,255,0.02); border: 1px solid var(--stroke); border-radius: 14px; overflow: hidden; transition: border-color 0.25s; }
.b-slot.selected { border-color: rgba(34,197,94,0.35); }
.b-slot.open { border-color: var(--primary-500); }

.b-slot-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
    text-align: right;
}
.b-slot-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(239,68,68,0.1); color: var(--primary-600); font-size: 1rem; flex-shrink: 0; }
.b-slot-label { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.b-slot-label strong { font-size: 0.9rem; font-weight: 700; }
.b-slot-label small { font-size: 0.68rem; color: var(--primary-700); }
.b-slot-optional .b-slot-label small { color: var(--text3); }
.b-slot-state { font-size: 0.72rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.b-slot.selected .b-slot-state { color: #86efac; }
.b-slot-chev { color: var(--text3); font-size: 0.7rem; transition: transform 0.25s; }
.b-slot.open .b-slot-chev { transform: rotate(180deg); }

.b-slot-options { display: none; border-top: 1px dashed var(--stroke); background: rgba(0,0,0,0.15); padding: 1rem; }
.b-slot.open .b-slot-options { display: block; }

.b-options-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.7rem; max-height: 340px; overflow-y: auto; padding-left: 0.25rem; }

.b-option { cursor: pointer; }
.b-option input { display: none; }
.b-option-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    color: var(--text3);
    font-size: 1.4rem;
}
.b-option-img img { max-width: 100%; max-height: 90px; object-fit: contain; }
.b-option-info { display: flex; flex-direction: column; gap: 0.2rem; }
.b-option-info strong { font-size: 0.78rem; font-weight: 700; line-height: 1.6; }
.b-option-info small { font-size: 0.68rem; color: var(--text3); }
.b-option-price { font-size: 0.78rem; font-weight: 800; color: var(--primary-600); }

.b-option { border: 1.5px solid var(--stroke); border-radius: 14px; padding: 0.7rem; transition: all 0.2s; }
.b-option:hover { border-color: rgba(255,255,255,0.18); }
.b-option input:checked + .b-option-img { box-shadow: 0 0 0 3px var(--glow); }
.b-option input:checked { }
.b-option input:checked + .b-option-img { border: 1px solid var(--primary-500); }
.b-option:has(input:checked) { border-color: var(--primary-500); background: rgba(239,68,68,0.06); }

.b-slot-empty { color: var(--text3); font-size: 0.85rem; padding: 0.5rem; }

.b-summary {
    position: sticky;
    bottom: 5.5rem;
    background: var(--bg2);
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
    margin-top: 0.5rem;
}
.b-summary h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.b-summary h3 i { color: var(--primary-600); }
.b-summary-list { display: flex; flex-direction: column; gap: 0.4rem; max-height: 160px; overflow-y: auto; margin-bottom: 0.75rem; }
.b-summary-empty { color: var(--text3); font-size: 0.82rem; }
.b-summary-item { display: flex; justify-content: space-between; gap: 0.75rem; font-size: 0.8rem; padding: 0.4rem 0; border-bottom: 1px dashed rgba(255,255,255,0.06); }
.b-summary-item span { color: var(--text2); line-height: 1.6; }
.b-summary-item b { white-space: nowrap; color: var(--text); }
.b-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0 0.9rem;
    border-top: 1px solid var(--stroke);
    font-size: 0.95rem;
    font-weight: 700;
}
.b-summary-total strong { font-size: 1.2rem; color: var(--primary-600); }
.b-summary-hint { font-size: 0.72rem; color: var(--text3); text-align: center; margin-top: 0.6rem; }

/* ============================================
   محاسبه‌گر گلوگاه
   ============================================ */
.calc-card {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.calc-grid label { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.4rem; }
.calc-grid label i { color: var(--primary-600); font-size: 0.85rem; }

.calc-result { background: var(--bg2); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.5rem; }
.calc-result-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.calc-note { color: var(--text3); font-size: 0.82rem; flex: 1; min-width: 200px; }

.calc-verdict { padding: 0.45rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 800; }
.verdict-good { background: rgba(34,197,94,0.14); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.verdict-ok { background: rgba(99,102,241,0.14); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.3); }
.verdict-warn { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.verdict-bad { background: rgba(239,68,68,0.14); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

.calc-gauge { margin-bottom: 1.25rem; }
.calc-gauge-bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}
.calc-gauge-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.8s ease;
}
.fill-good { background: linear-gradient(90deg, #22c55e, #4ade80); }
.fill-ok { background: linear-gradient(90deg, #6366f1, #818cf8); }
.fill-warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.fill-bad { background: linear-gradient(90deg, #dc2626, #f87171); }

.calc-gauge-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; font-size: 0.82rem; color: var(--text2); }
.calc-gauge-meta strong { font-size: 1.1rem; color: var(--primary-600); }

.calc-advice { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.calc-advice li { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--text2); line-height: 1.9; }
.calc-advice li i { color: #22c55e; margin-top: 0.35rem; }

.calc-disclaimer { font-size: 0.72rem; color: var(--text3); border-top: 1px dashed var(--stroke); padding-top: 0.9rem; }

/* ============================================
   ریسپانسیو ابزارها
   ============================================ */
@media (max-width: 768px) {
    .content-card { padding: 1.5rem; }
    .compare-table { font-size: 0.78rem; min-width: 560px; }
    .compare-table th, .compare-table td { padding: 0.7rem 0.6rem; }
    .compare-cell img, .compare-noimg { width: 72px; height: 50px; }
    .compare-slot-label { position: static; margin: 0; font-size: 0.7rem; }
    .compare-form { grid-template-columns: 1fr 1fr; }
    .compare-form-actions { grid-column: 1 / -1; justify-content: center; }
    .b-summary { bottom: 5rem; padding: 1rem; }
    .b-options-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .b-slot-state { max-width: 120px; }
    .app-hero { flex-direction: column; text-align: center; padding: 1.75rem 1.25rem; }
    .app-hero-phone { width: 150px; height: 280px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
    .compare-panel { padding: 1rem; }
    .compare-form { grid-template-columns: 1fr; }
    .compare-form-actions { grid-column: auto; }
}

/* ============================================
   دکمه / المان‌های پنل مدیریت — فیلد اپلیکیشن و ادیتور
   ============================================ */
.field-hint { display: block; font-size: 0.72rem; color: var(--text3); margin-top: 0.35rem; line-height: 1.8; }
.page-editor { font-family: 'Vazirmatn', Tahoma, monospace; font-size: 0.85rem; direction: rtl; }
.page-editor:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }

/* ============================================
   صفحه دانلود اپلیکیشن
   ============================================ */
.app-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background:
        radial-gradient(700px 340px at 85% -20%, rgba(239,68,68,0.18), transparent 60%),
        radial-gradient(600px 320px at 15% 120%, rgba(99,102,241,0.12), transparent 60%),
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.app-hero-phone {
    position: relative;
    width: 190px;
    height: 330px;
    background: #111113;
    border-radius: 30px;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 30px rgba(0,0,0,0.6);
    flex-shrink: 0;
    overflow: hidden;
}
.app-hero-phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 20px; background: #000; border-radius: 999px; z-index: 2; }
.app-hero-phone-screen {
    position: absolute;
    inset: 16px 8px 8px;
    border-radius: 20px;
    background:
        radial-gradient(220px 160px at 50% 0%, rgba(239,68,68,0.35), transparent 60%),
        linear-gradient(180deg, #17171a, #101013);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
}
.app-hero-logo {
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff;
    border-radius: 16px;
    font-size: 1.4rem;
    box-shadow: 0 10px 26px var(--glow);
}
.app-hero-phone-screen strong { font-size: 0.95rem; font-weight: 800; }
.app-hero-phone-screen small { font-size: 0.7rem; color: var(--text3); line-height: 1.6; }
.app-hero-chip { margin-top: 0.4rem; background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); font-size: 0.68rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: 999px; }
.app-hero-info h1 { font-size: 1.55rem; font-weight: 800; margin-bottom: 0.75rem; }
.app-hero-info p { color: var(--text2); font-size: 0.9rem; line-height: 2; max-width: 440px; }
.app-features { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; justify-content: center; }
.app-features span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid var(--stroke); border-radius: 999px; padding: 0.45rem 0.9rem; }
.app-features span i { color: var(--primary-600); }

.app-stores-head { text-align: center; margin-bottom: 1.25rem; }
.app-stores-head h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 0.35rem; }
.app-stores-head h2 i { color: var(--primary-600); }

.app-stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.85rem; }
.app-store {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1.1rem;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.25s;
}
.app-store:hover {
    border-color: color-mix(in srgb, var(--brand-from) 55%, transparent);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.app-store-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--brand-from), var(--brand-to));
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-from) 40%, transparent);
    flex-shrink: 0;
}
.app-store-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.app-store-info strong { font-size: 0.95rem; font-weight: 800; color: var(--text); }
.app-store-info small { font-size: 0.72rem; color: var(--text3); }
.app-store-get { color: var(--text3); font-size: 0.85rem; }
.app-store:hover .app-store-get { color: var(--brand-from); transform: translateX(-3px); }

/* ============================================
   صفحه تماس با ما
   ============================================ */
.contact-info {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    transition: all 0.2s;
}

.contact-info-item:hover { border-color: rgba(239, 68, 68, 0.3); }

.contact-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-600);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.contact-info-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.contact-info-label { font-size: 0.72rem; color: var(--text3); }

.contact-info-value {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.7;
    color: var(--text);
    word-break: break-word;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 0.7rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--stroke);
}

.contact-social-item {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.contact-social-item:hover { transform: translateY(-3px); filter: brightness(1.15); }

.contact-form-card {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 1.75rem;
}

.contact-form-head { margin-bottom: 1.25rem; }

.contact-form-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: 800; margin-bottom: 0.4rem; }
.contact-form-title i { color: var(--primary-600); }

.contact-form-hint { font-size: 0.82rem; color: var(--text3); }

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 1rem;
    margin-bottom: 0.5rem;
}

.contact-form { display: flex; flex-direction: column; gap: 0.25rem; }

.contact-submit {
    align-self: flex-start;
    padding: 0.8rem 1.75rem;
    font-size: 0.9rem;
    justify-content: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form-grid { grid-template-columns: 1fr; }
    .contact-form-card { padding: 1.35rem; }
    .contact-info { padding: 1.1rem; }
}

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

/* ============================================
   دراپ‌داون اختصاصی
   ============================================ */
select.cselect-native { display: none !important; }
.cselect { position: relative; }
.cselect-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: var(--bg);
    border: 1.5px solid var(--stroke);
    border-radius: 12px;
    color: var(--text2);
    font-size: 0.88rem;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s;
}
.cselect-btn:hover { border-color: rgba(239, 68, 68, 0.35); }
.cselect.open .cselect-btn { border-color: var(--primary-600); box-shadow: 0 0 0 3px var(--glow); }
.cselect-value { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-value.placeholder { color: var(--text3); font-weight: 400; }
.cselect-chevron { font-size: 0.7rem; color: var(--text3); transition: transform 0.25s; }
.cselect.open .cselect-chevron { transform: rotate(180deg); color: var(--primary-500); }
.cselect-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: 0;
    z-index: 70;
    background: linear-gradient(180deg, #1e1e24, #141418);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    max-height: 280px;
    overflow-y: auto;
    padding: 0.35rem;
    display: none;
}
.cselect.up .cselect-menu { top: auto; bottom: calc(100% + 0.4rem); }
.cselect.open .cselect-menu { display: block; animation: cselectIn 0.18s ease; }
@keyframes cselectIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}
.cselect.up .cselect-menu { animation-name: cselectInUp; }
@keyframes cselectInUp {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.cselect-group {
    padding: 0.4rem 0.7rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-500);
    letter-spacing: 0.01em;
}
.cselect-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.7rem;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.84rem;
    color: var(--text2);
    transition: background 0.15s;
}
.cselect-opt:hover { background: rgba(239, 68, 68, 0.08); color: var(--text); }
.cselect-opt .cselect-opt-check { opacity: 0; color: var(--primary-500); font-size: 0.8rem; transition: opacity 0.15s; }
.cselect-opt.selected { color: var(--primary-600); font-weight: 700; background: rgba(239, 68, 68, 0.09); }
.cselect-opt.selected .cselect-opt-check { opacity: 1; }
/* ============================================
   پاپ‌آپ ورود (بازطراحی)
   ============================================ */
.login-sheet { max-width: 420px; overflow-y: auto; }
.login-hero {
    position: relative;
    text-align: center;
    padding: 2.1rem 1.5rem 1.4rem;
    background: linear-gradient(160deg, #b91c1c 0%, #7f1d1d 55%, #18181c 100%);
    overflow: hidden;
}
.login-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 180%;
    height: 120%;
    background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.14), transparent 60%);
    pointer-events: none;
}
.login-hero-logo {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-bottom: 0.9rem;
    box-shadow: 0 12px 34px rgba(0,0,0,0.35);
}
.login-hero h3 {
    position: relative;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.login-hero p {
    position: relative;
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
}
.login-hero-round {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.login-hero-round-1 { width: 170px; height: 170px; top: -70px; left: -50px; }
.login-hero-round-2 { width: 130px; height: 130px; bottom: -55px; right: -40px; background: rgba(255,255,255,0.05); }
.login-close {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(0,0,0,0.28);
    border: 1px solid rgba(255,255,255,0.16);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 5;
    transition: all 0.2s;
}
.login-close:hover { background: #fff; color: var(--primary-700); }
.login-body { padding: 1.5rem 1.5rem 1.1rem; }
.login-desc { color: var(--text3); font-size: 0.84rem; margin-bottom: 1.1rem; line-height: 1.9; }
.login-phone-wrap {
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    background: var(--bg);
}
.login-phone-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.1);
    color: var(--primary-500);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.login-prefix {
    border: none;
    margin: 0;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text3);
    background: rgba(255,255,255,0.06);
    user-select: none;
}
.login-phone-wrap input { padding: 0.8rem 0; font-size: 0.95rem; }
.login-submit-btn {
    border-radius: 12px;
    font-size: 0.92rem;
    margin-top: 0.15rem;
}
.login-foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem 1.25rem 1.1rem;
    border-top: 1px dashed rgba(255,255,255,0.07);
    color: var(--text3);
    font-size: 0.7rem;
}
.login-foot i { color: #34d399; font-size: 0.75rem; }
@media (max-width: 480px) {
    .login-sheet { width: 94vw; max-width: 94vw; max-height: 88vh; }
    .login-hero { padding: 1.8rem 1.25rem 1.2rem; }
    .login-hero-logo { width: 56px; height: 56px; font-size: 1.4rem; }
    .login-body { padding: 1.25rem 1.1rem 1rem; }
    .login-foot { padding: 0.75rem 1rem 1rem; }
}
/* ============================================
   پنل پروفایل کاربر
   ============================================ */
.pf-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.25rem;
}
.pf-ava {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    box-shadow: 0 10px 26px rgba(239,68,68,0.3);
    flex-shrink: 0;
}
.pf-id { flex: 1; min-width: 0; }
.pf-id h2 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.2rem; }
.pf-id p { color: var(--text3); font-size: 0.8rem; margin: 0; }
.pf-stats { display: flex; gap: 0.75rem; }
.pf-stat {
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 0.7rem 1.1rem;
    text-align: center;
    min-width: 72px;
}
.pf-stat strong { display: block; font-size: 1.15rem; color: var(--primary-600); }
.pf-stat span { font-size: 0.72rem; color: var(--text3); }
.pf-tabs {
    display: flex;
    gap: 0.4rem;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 999px;
    padding: 0.3rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.pf-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--text2);
    white-space: nowrap;
}
.pf-tab b {
    background: rgba(239,68,68,0.15);
    color: var(--primary-500);
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pf-tab:hover { color: var(--text); }
.pf-tab.active { background: var(--primary-600); color: #fff; }
.pf-tab.active b { background: rgba(255,255,255,0.25); color: #fff; }
.pf-tab-logout { color: #f87171; }
.pf-tab-logout:hover { color: #f87171; background: rgba(239,68,68,0.1); }
.pf-panel { }
.pf-card {
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.5rem;
}
.pf-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 1.25rem; }
.pf-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pf-card-head h3 { margin-bottom: 0; }
.pf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pf-full { grid-column: 1 / -1; }
.pf-empty { text-align: center; padding: 2.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.pf-empty-ico { width: 62px; height: 62px; border-radius: 18px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--text3); }
.pf-empty p { color: var(--text3); font-size: 0.88rem; margin-bottom: 0.75rem; }
.pf-orders { display: flex; flex-direction: column; gap: 0.9rem; }
.pf-order {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: var(--bg);
    padding: 1rem 1.1rem;
}
.pf-order-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.pf-order-no strong { font-size: 0.92rem; }
.pf-order-no span { display: block; font-size: 0.72rem; color: var(--text3); margin-top: 0.15rem; }
.pf-order-items { display: flex; flex-direction: column; gap: 0.4rem; }
.pf-order-item { display: flex; align-items: center; gap: 0.6rem; }
.pf-order-item img { width: 40px; height: 34px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.05); }
.pf-oi-info { flex: 1; min-width: 0; }
.pf-oi-info a { font-size: 0.82rem; font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-oi-info a:hover { color: var(--primary-600); }
.pf-oi-info span { font-size: 0.75rem; color: var(--text3); }
.pf-order-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 0.7rem; flex-wrap: wrap; }
.pf-tracking { font-size: 0.78rem; color: var(--text3); }
.pf-tracking b { color: var(--text2); font-weight: 600; }
.pf-order-total { font-size: 0.82rem; }
.pf-order-total strong { color: var(--primary-600); }
.pf-order-action { margin-top: 0.7rem; border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 0.65rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.pf-action-note { font-size: 0.76rem; color: var(--text3); line-height: 1.9; margin: 0; min-width: 0; flex: 1; }
.pf-action-info .pf-action-note { color: var(--text2); }
.pf-order-cancel { margin-top: 0.7rem; border-top: 1px dashed rgba(255,255,255,0.08); padding-top: 0.65rem; font-size: 0.8rem; color: var(--danger, #ef4444); display: flex; align-items: center; gap: 0.4rem; }
.pf-tickets { display: flex; flex-direction: column; gap: 0.7rem; }
.pf-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.2s;
}
.pf-ticket:hover { border-color: var(--primary-500); background: rgba(239,68,68,0.04); }
.pf-ticket-info { min-width: 0; flex: 1; }
.pf-ticket-info strong { display: block; font-size: 0.88rem; margin-bottom: 0.15rem; }
.pf-ticket-info span { font-size: 0.75rem; color: var(--text3); }

/* ============================================
   چک‌اوت
   ============================================ */
.co-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 0.75rem; flex-wrap: wrap; }
.co-title { font-size: 1.25rem; font-weight: 800; }
.co-back { font-size: 0.82rem; color: var(--text3); }
.co-back:hover { color: var(--primary-600); }
.co-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items: start; }
.co-form-card { background: var(--bg2); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.5rem; }
.co-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.co-full { grid-column: 1 / -1; }
.co-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.co-pay-item { cursor: pointer; }
.co-pay-item input { display: none; }
.co-pay-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--stroke);
    background: var(--bg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: all 0.2s;
}
.co-pay-item input:checked + span { border-color: var(--primary-500); color: var(--text); background: rgba(239,68,68,0.08); }
.co-submit {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.95rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(239,68,68,0.3);
}
.co-submit:hover { transform: translateY(-1px); }
.co-summary { background: var(--bg2); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.5rem; position: sticky; top: 1rem; }
.co-summary h2 { font-size: 1rem; font-weight: 800; margin-bottom: 1rem; }
.co-summary-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.co-summary-item { display: flex; align-items: center; gap: 0.6rem; }
.co-summary-item img { width: 42px; height: 36px; object-fit: contain; border-radius: 8px; background: rgba(255,255,255,0.05); }
.co-si-info { flex: 1; min-width: 0; }
.co-si-info strong { display: block; font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-si-info span { font-size: 0.73rem; color: var(--text3); }
.co-si-price { font-size: 0.8rem; font-weight: 700; }
.co-summary-row { display: flex; justify-content: space-between; font-size: 0.84rem; color: var(--text2); padding: 0.4rem 0; }
.co-summary-total { border-top: 1px dashed var(--stroke); margin-top: 0.5rem; padding-top: 0.85rem; font-weight: 800; color: var(--text); }
.co-summary-total span { color: var(--primary-600); font-size: 1rem; }

/* ============================================
   تیکت‌ها
   ============================================ */
.tk-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.25rem; align-items: start; }
.tk-list-panel, .tk-new-panel, .tk-detail-panel { background: var(--bg2); border: 1px solid var(--stroke); border-radius: 18px; padding: 1.5rem; }
.tk-list-head, .tk-new-head { display: flex; align-items: center; margin-bottom: 1.1rem; }
.tk-list-head h2, .tk-new-head h2 { font-size: 1rem; font-weight: 800; }
.tk-empty { text-align: center; padding: 2rem 1rem; }
.tk-empty-ico { width: 58px; height: 58px; border-radius: 16px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--text3); margin: 0 auto 0.75rem; }
.tk-empty p { color: var(--text3); font-size: 0.85rem; }
.tk-list { display: flex; flex-direction: column; gap: 0.7rem; max-height: 480px; overflow-y: auto; padding-left: 0.15rem; }
.tk-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: all 0.2s;
}
.tk-item:hover { border-color: var(--primary-500); background: rgba(239,68,68,0.04); }
.tk-item-main { min-width: 0; flex: 1; }
.tk-item-main strong { display: block; font-size: 0.88rem; margin-bottom: 0.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-item-main span { display: block; font-size: 0.75rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; flex-shrink: 0; }
.tk-item-side small { font-size: 0.68rem; color: var(--text3); }
.tk-gate { text-align: center; padding: 1.75rem 1rem; border: 1.5px dashed var(--stroke); border-radius: 14px; }
.tk-gate-ico { width: 58px; height: 58px; border-radius: 16px; background: rgba(239,68,68,0.1); color: var(--primary-500); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 0.75rem; }
.tk-gate p { color: var(--text3); font-size: 0.82rem; line-height: 1.9; }
.tk-gate p + p { font-size: 0.78rem; }
.tk-gate .btn { margin-top: 0.75rem; }
.tk-new-form { display: flex; flex-direction: column; gap: 0.85rem; }
.tk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; gap: 0.75rem; flex-wrap: wrap; }
.tk-back { font-size: 0.82rem; color: var(--text3); }
.tk-back:hover { color: var(--primary-600); }
.tk-detail-title { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.1rem; }
.tk-ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(239,68,68,0.12); color: var(--primary-500); display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0; }
.tk-detail-title h2 { font-size: 1rem; font-weight: 800; }
.tk-detail-title p { font-size: 0.75rem; color: var(--text3); margin: 0.2rem 0 0; }
.tk-thread { display: flex; flex-direction: column; gap: 0.75rem; max-height: 460px; overflow-y: auto; padding: 0.1rem 0.1rem 0.25rem; }
.tk-msg {
    align-self: flex-start;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    max-width: 82%;
}
.tk-msg-admin { align-self: flex-end; background: rgba(239,68,68,0.09); }
.tk-msg-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.7rem; color: var(--text3); margin-bottom: 0.35rem; }
.tk-msg p { margin: 0; font-size: 0.85rem; line-height: 1.9; white-space: pre-wrap; }
.tk-reply { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.tk-reply textarea { width: 100%; }
.tk-closed-note { color: var(--text3); font-size: 0.85rem; margin-top: 1.25rem; }

@media (max-width: 900px) {
    .pf-head { flex-wrap: wrap; }
    .pf-stats { order: 3; width: 100%; justify-content: center; }
    .co-grid, .tk-grid { grid-template-columns: 1fr; }
    .co-summary { position: static; }
}
@media (max-width: 640px) {
    .pf-form, .co-form-grid { grid-template-columns: 1fr; }
    .pf-full { grid-column: auto; }
    .pf-tabs { flex-wrap: wrap; border-radius: 16px; }
    .pf-tab { flex: 1 1 45%; }
    .pf-ava { width: 50px; height: 50px; }
    .pf-stat { min-width: 58px; padding: 0.55rem 0.8rem; }
    .co-pay { grid-template-columns: 1fr; }
    .tk-msg { max-width: 92%; }
}
/* ============================================
   سلکت رنگ اختصاصی
   ============================================ */
.cp-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 46px;
    padding: 0 0.85rem 0 0.5rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--bg);
    color: var(--text2);
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-align: right;
}
.cp-trigger:hover { border-color: var(--primary-500); background: rgba(239,68,68,0.05); color: var(--text); }
.cp-swatch {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    background: #fff;
    flex-shrink: 0;
}
.cp-code { font-weight: 700; font-family: Consolas, monospace; font-size: 0.78rem; }
.cp-trigger i { margin-right: auto; font-size: 0.7rem; color: var(--text3); }
.cp-popup {
    position: fixed;
    z-index: 3000;
    width: 264px;
    background: #16161c;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
    padding: 0.9rem;
    display: none;
    animation: cpIn 0.15s ease;
}
.cp-popup.open { display: block; }
@keyframes cpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cp-pop-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.7rem; }
.cp-pop-head strong { font-size: 0.85rem; color: var(--text); display: flex; align-items: center; gap: 0.4rem; }
.cp-pop-close {
    width: 26px; height: 26px; border-radius: 8px;
    background: rgba(255,255,255,0.06); color: var(--text3);
    border: none; cursor: pointer; font-size: 0.75rem;
}
.cp-pop-close:hover { background: rgba(239,68,68,0.18); color: #fca5a5; }
.cp-pop-palette { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; margin-bottom: 0.8rem; }
.cp-swatch-item {
    width: 100%; aspect-ratio: 1; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    cursor: pointer; padding: 0; transition: transform 0.12s;
}
.cp-swatch-item:hover { transform: scale(1.18); border-color: #fff; box-shadow: 0 0 0 2px rgba(239,68,68,0.6); }
.cp-pop-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.cp-pop-row input[type="text"] {
    flex: 1; height: 38px; border-radius: 10px;
    border: 1px solid var(--stroke); background: var(--bg);
    color: var(--text); font-family: Consolas, monospace; font-size: 0.82rem;
    padding: 0 0.7rem; direction: ltr; text-align: left;
}
.cp-native-wrap { position: relative; width: 38px; height: 38px; flex-shrink: 0; cursor: pointer; }
.cp-native-wrap input[type="color"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cp-native-wrap i {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px dashed var(--stroke); color: var(--text3); font-size: 0.85rem;
}
.cp-native-wrap:hover i { color: var(--primary-500); border-color: var(--primary-500); }
.cp-pop-tip { display: flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: var(--text3); margin-bottom: 0.75rem; }
.cp-pop-tip b { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text2); font-family: Consolas, monospace; }
#cpLiveDot { width: 16px; height: 16px; border-radius: 6px; display: inline-block; border: 1px solid rgba(255,255,255,0.25); }
.cp-pop-foot { text-align: left; }
.cp-pop-ok {
    height: 38px; padding: 0 1.4rem; border-radius: 10px;
    border: none; cursor: pointer; font-weight: 700; font-size: 0.85rem;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c); color: #fff;
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}
.cp-pop-ok:hover { transform: translateY(-1px); }
@media (max-width: 420px) { .cp-popup { width: 230px; } }

/* ============================================
   اسلایدرهای پنل (بلور / شفافیت)
   ============================================ */
input[type="range"].slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(239,68,68,0.55), rgba(239,68,68,0.25));
    border: 1px solid rgba(255,255,255,0.08);
    outline: none;
    cursor: pointer;
    direction: ltr;
}
input[type="range"].slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fecaca, #ef4444 60%, #b91c1c);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
}
input[type="range"].slider::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fecaca, #ef4444 60%, #b91c1c);
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(239,68,68,0.5);
}
.slider-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: rgba(239,68,68,0.12); color: var(--primary-500);
    border-radius: 999px; padding: 0.2rem 0.75rem; font-size: 0.78rem; font-weight: 700;
    min-width: 58px; justify-content: center;
}

/* ============================================
   پیش‌نمایش زنده اسلایدر (پنل)
   ============================================ */
.slide-preview {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: center;
    padding: 2rem 2.5rem;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg,#4a0e0e 0%,#991b1b 30%,#dc2626 60%,#ef4444 100%);
    background-size: cover;
    background-position: center;
}
.slide-preview img.sp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide-preview .sp-overlay { position: absolute; inset: 0; background: #000; opacity: 0.3; }
.slide-preview .sp-content { position: relative; z-index: 2; }
.slide-preview .sp-content h3 { font-size: 1.3rem; margin: 0 0 0.4rem; }
.slide-preview .sp-content p { font-size: 0.8rem; margin: 0 0 1rem; opacity: 0.85; }
.slide-preview .sp-btn {
    display: inline-block; padding: 0.55rem 1.4rem; border-radius: 999px;
    background: var(--primary-600); color: #fff; font-size: 0.82rem; font-weight: 700;
}
.cp-row, .slider-row { display: flex; align-items: center; gap: 0.6rem; }
.cp-row .form-control { flex: 1; min-width: 0; }
.slider-row input[type="range"].slider { flex: 1; min-width: 0; }
.slider-row .slider-badge { flex-shrink: 0; }
/* ============================================
   گفتگوی تیم (پنل مدیریت)
   ============================================ */
.tc-panel { max-width: 780px; margin: 0 auto; padding: 0; overflow: hidden; }
.tc-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(255,255,255,0.02));
}
.tc-head-info { display: flex; align-items: center; gap: 0.75rem; }
.tc-logo {
    width: 44px; height: 44px; border-radius: 13px;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}
.tc-head-info strong { display: block; font-size: 0.95rem; }
.tc-head-info span { font-size: 0.72rem; color: var(--text3); display: flex; align-items: center; gap: 0.35rem; }
.tc-body {
    height: 56vh; min-height: 320px; overflow-y: auto;
    padding: 1.25rem 1.4rem;
    display: flex; flex-direction: column; gap: 0.8rem;
    background: var(--bg);
}
.tc-msg {
    align-self: flex-start; max-width: 72%;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px 16px 16px 4px;
    padding: 0.75rem 1rem;
}
.tc-msg.me {
    align-self: flex-end;
    background: rgba(239,68,68,0.1);
    border-radius: 16px 16px 4px 16px;
}
.tc-msg-meta { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.35rem; font-size: 0.7rem; color: var(--text3); }
.tc-msg-meta strong { color: var(--text2); font-size: 0.75rem; }
.tc-crown { color: #f59e0b !important; font-size: 0.7rem; }
.tc-msg p { margin: 0; font-size: 0.85rem; line-height: 1.9; color: var(--text); white-space: pre-wrap; }
.tc-input { display: flex; gap: 0.6rem; padding: 1rem 1.4rem; border-top: 1px solid var(--stroke); align-items: center; }
.tc-input input {
    flex: 1; height: 46px; border-radius: 12px;
    border: 1px solid var(--stroke); background: var(--bg);
    color: var(--text); padding: 0 1rem; font-size: 0.9rem;
}
.tc-input input:focus { border-color: var(--primary-500); outline: none; }
.tc-input button {
    width: 46px; height: 46px; border-radius: 12px; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c); color: #fff; font-size: 1rem;
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}
.tc-input button:hover { transform: translateY(-1px); }
@media (max-width: 640px) { .tc-msg { max-width: 88%; } }
/* ============================================
   رتبه دسترسی مدیران (چک‌پوینت) + وضعیت پرداخت
   ============================================ */
.rank-bar { width: 150px; max-width: 150px; height: 5px; background: rgba(255,255,255,0.08); border-radius: 99px; margin-top: 0.45rem; overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #10b981); border-radius: 99px; }
.admin-tier {
    display: flex; align-items: center; gap: 0.5rem;
    margin: 0.15rem 0.9rem 0.9rem;
    padding: 0.5rem 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 12px;
}
.admin-tier-bar { flex: 1; height: 6px; background: rgba(255,255,255,0.1); border-radius: 99px; overflow: hidden; }
.admin-tier-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-500), #f59e0b); border-radius: 99px; }
.admin-tier-txt { font-size: 0.66rem; color: var(--text3); white-space: nowrap; }
.pay-toggles { width: 100%; }
.pay-grid { width: 100%; }
.pay-gate { width: 100%; }
.pay-gate label.form-check { display: flex; align-items: center; gap: 0.5rem; min-height: 46px; background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 12px; padding: 0 0.9rem; }
.pay-gate-meta { width: 100%; }
.pay-card {
    max-width: 560px; margin: 1.5rem auto 0;
    background: linear-gradient(160deg, rgba(239,68,68,0.1), rgba(239,68,68,0.02));
    border: 1px solid var(--stroke); border-radius: 22px; padding: 1.6rem;
}
.pay-status { display: flex; align-items: center; gap: 0.9rem; }
.pay-digit {
    width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-600), #b91c1c);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(239,68,68,0.3);
}
.pay-status strong { display: block; font-size: 1rem; }
.pay-status small { color: var(--text3); font-size: 0.75rem; }
.pay-amount {
    display: flex; align-items: center; justify-content: space-between;
    margin: 1.4rem 0; padding: 1rem 1.2rem;
    background: rgba(0,0,0,0.25); border: 1px solid var(--stroke); border-radius: 14px;
}
.pay-amount span { color: var(--text3); font-size: 0.85rem; }
.pay-amount strong { font-size: 1.25rem; color: #22c55e; }
.pay-cardbox { background: rgba(0,0,0,0.25); border: 1px solid var(--stroke); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.pay-cardbox-row { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px dashed rgba(255,255,255,0.08); font-size: 0.9rem; }
.pay-cardbox-row:last-of-type { border-bottom: none; }
.pay-cardbox-row span { color: var(--text3); }
.pay-note { margin: 0; font-size: 0.78rem; color: var(--text3); line-height: 2; }
.pay-actions { margin-top: 0.4rem; }
/* ============================================
   چت تیم: پیام خودی راست / دیگران چپ + پیوست
   ============================================ */
.tc-msg {
    align-self: flex-end;
    border-radius: 16px 16px 16px 4px;
}
.tc-msg.me {
    align-self: flex-start;
    border-radius: 16px 16px 4px 16px;
    background: linear-gradient(135deg, rgba(239,68,68,0.22), rgba(239,68,68,0.1));
}
.tc-input .tc-chat-btn {
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--stroke); background: var(--bg);
    color: var(--text3); font-size: 0.95rem; box-shadow: none; cursor: pointer;
    flex-shrink: 0;
}
.tc-input .tc-chat-btn:hover { color: var(--primary-500); border-color: var(--primary-500); }
.tc-input .tc-chat-btn.rec-on { color: #fff; background: #dc2626; border-color: #dc2626; animation: tcPulse 1.2s infinite; }
@keyframes tcPulse { 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0.25); } }
.tc-msg .chat-att-chat, .tc-msg .chat-att-file { margin-bottom: 0.5rem; }

/* ============================================
   پیوست‌های چت (تصویر / فایل / ویس)
   ============================================ */
.chat-att-chat { display: block; border-radius: 12px; overflow: hidden; max-width: 260px; }
.chat-att-img img { display: block; width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); }
.chat-att-audio { width: 100%; max-width: 260px; height: 44px; margin-bottom: 0.25rem; border-radius: 10px; }
.chat-att-file { display: inline-block; }
.chat-att-file a {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(59,130,246,0.14); border: 1px dashed rgba(59,130,246,0.4);
    color: var(--text); border-radius: 12px; padding: 0.55rem 0.9rem;
    font-size: 0.78rem; max-width: 240px; text-decoration: none;
}
.chat-att-file a:hover { border-color: var(--primary-500); color: var(--primary-500); }
.chat-att-file a i { font-size: 1rem; color: #3b82f6; }
.chat-att-file a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ============================================
   چک‌باکس یکپارچه سفارشی (همه‌جا)
   ============================================ */
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--stroke);
    border-radius: 5px;
    background: var(--bg);
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    margin: 0;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
input[type="checkbox"]:hover { border-color: var(--primary-500); }
input[type="checkbox"]:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.25);
}
input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    border-color: transparent;
}
input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}
input[type="checkbox"]:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================
   ابزار تیکت / چت پشتیبانی
   ============================================ */
.tk-reply-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.tk-reply-btn {
    width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
    border: 1px solid var(--stroke); background: var(--bg);
    color: var(--text3); font-size: 0.95rem; transition: 0.2s;
}
.tk-reply-btn:hover { color: var(--primary-500); border-color: var(--primary-500); }
.tk-reply-btn.rec-on { color: #fff; background: #dc2626; border-color: #dc2626; }
.tk-file-name { font-size: 0.75rem; color: var(--text3); }
.tk-file-input { display: none; }
.tk-file-row { display: flex; align-items: center; gap: 0.5rem; }
.tk-file-row .tk-file-input { display: none; }
.tk-reply-foot { display: flex; justify-content: flex-end; margin-top: 0.5rem; }

.support-input .support-icon-btn {
    width: 38px; height: 38px; flex-shrink: 0; cursor: pointer;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,0.07); color: var(--text2);
    font-size: 0.9rem; transition: 0.2s;
}
.support-input .support-icon-btn:hover { color: var(--primary-500); background: rgba(239,68,68,0.12); }
.support-input .support-icon-btn.rec-on { color: #fff; background: #dc2626; animation: tcPulse 1.2s infinite; }

.admin-chat-input button.rec-on { background: #dc2626; color: #fff; }
/* ============================================
   پخش‌کننده پیام صوتی چت تیم
   ============================================ */
.tc-voice {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, rgba(239,68,68,0.16), rgba(244,63,94,0.08));
    border: 1px solid rgba(239,68,68,0.28);
    border-radius: 14px;
    padding: 0.5rem 0.75rem;
    min-width: 190px;
    max-width: 100%;
    box-shadow: 0 4px 16px rgba(239,68,68,0.12);
    margin-bottom: 0.25rem;
}
.tc-v-play {
    width: 38px; height: 38px; flex-shrink: 0; cursor: pointer;
    border: none; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: #fff; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(220,38,38,0.4), inset 0 0 0 1px rgba(255,255,255,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.tc-v-play:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(220,38,38,0.55), inset 0 0 0 1px rgba(255,255,255,0.2); }
.tc-voice.playing .tc-v-play { animation: tcSpin 2.4s linear infinite; }
@keyframes tcSpin { to { transform: rotate(360deg); } }

.tc-eq {
    display: flex; align-items: flex-end; gap: 3px;
    height: 22px; padding: 0 2px;
}
.tc-eq span {
    width: 3px; border-radius: 2px;
    background: linear-gradient(to top, var(--primary-600), var(--primary-400));
    height: 4px;
}
.tc-voice.playing .tc-eq span { animation: tcEq 1s ease-in-out infinite; }
.tc-voice.playing .tc-eq span:nth-child(1) { animation-delay: 0s; }
.tc-voice.playing .tc-eq span:nth-child(2) { animation-delay: 0.18s; }
.tc-voice.playing .tc-eq span:nth-child(3) { animation-delay: 0.36s; }
.tc-voice.playing .tc-eq span:nth-child(4) { animation-delay: 0.1s; }
.tc-voice.playing .tc-eq span:nth-child(5) { animation-delay: 0.28s; }
@keyframes tcEq {
    0%, 100% { height: 4px; }
    25% { height: 18px; }
    50% { height: 10px; }
    75% { height: 22px; }
}
.tc-v-time {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; direction: ltr;
    color: var(--text2);
    font-variant-numeric: tabular-nums;
}
.tc-v-time i { color: var(--primary-500); font-size: 0.8rem; direction: rtl; }
.tc-msg.me .tc-voice { background: linear-gradient(135deg, rgba(59,130,246,0.16), rgba(59,130,246,0.06)); border-color: rgba(59,130,246,0.3); box-shadow: 0 4px 16px rgba(59,130,246,0.14); }
/* ============================================
   منوی سه‌نقطه پیام‌های چت تیم
   ============================================ */
.tc-msg { position: relative; }
.tc-msg-meta { gap: 0.4rem; align-items: center; }
.tc-more {
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.1rem 0.35rem;
    border-radius: 8px;
    line-height: 1;
    margin-inline-start: auto;
    transition: 0.2s;
    opacity: 0.4;
}
.tc-msg:hover .tc-more,
.tc-more:focus-visible { opacity: 1; }
.tc-more:hover { color: var(--primary-500); background: rgba(239,68,68,0.08); opacity: 1; }
.tc-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    z-index: 70;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 0.3rem;
    min-width: 158px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.4);
    display: none;
}
.tc-menu.open { display: block; animation: tcMenuIn 0.15s ease; }
@keyframes tcMenuIn { from { opacity: 0; transform: translateY(-5px); } }
.tc-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    background: none;
    border: none;
    color: var(--text);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    text-align: right;
    transition: 0.15s;
}
.tc-menu-item i { width: 15px; text-align: center; color: var(--text3); }
.tc-menu-item:hover { background: rgba(239,68,68,0.08); color: var(--primary-500); }
.tc-menu-item:hover i { color: var(--primary-500); }
.tc-menu-item.danger { color: #ef4444; }
.tc-menu-item.danger i { color: #ef4444; }
.tc-menu-item.danger:hover { background: rgba(220,38,38,0.12); }

/* ============================================
   نوتیفیکیشن‌ها
   ============================================ */
.badge-purple { background: rgba(167,139,250,0.14); color: #b6a7fc; }

.notif-wrap { position: relative; }
.notif-badge { background: linear-gradient(135deg,#ef4444,#b91c1c); }

.notif-drop {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: -14px;
    width: 330px;
    z-index: 300;
    background: var(--bg2);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    overflow: hidden;
}
.notif-drop.open { display: block; }
.notif-drop::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: var(--bg2);
    border-top: 1px solid var(--stroke);
    border-right: 1px solid var(--stroke);
    transform: rotate(315deg);
}
.notif-drop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--stroke);
    background: rgba(255,255,255,0.02);
}
.notif-drop-head strong { font-size: 0.85rem; }
.notif-mark-all {
    background: none;
    border: none;
    color: var(--primary-500);
    font-size: 0.76rem;
    cursor: pointer;
}
.notif-drop-list { max-height: 340px; overflow-y: auto; }
.notif-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    transition: background 0.15s;
}
.notif-item + .notif-item { border-top: 1px solid rgba(255,255,255,0.04); }
.notif-item:hover { background: rgba(239,68,68,0.05); }
.notif-item.unread { background: rgba(239,68,68,0.06); }
.notif-item.unread::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-500);
    flex: none;
}
.notif-item-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.notif-item-txt { flex: 1; min-width: 0; }
.notif-item-txt strong { display: block; font-size: 0.8rem; margin-bottom: 0.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-txt small { display: block; font-size: 0.72rem; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-item-time { font-size: 0.68rem; color: var(--text3); flex: none; }
.notif-empty { padding: 2rem 1rem; text-align: center; color: var(--text3); font-size: 0.82rem; }
.notif-empty i { font-size: 1.6rem; opacity: 0.4; display: block; margin-bottom: 0.4rem; }
.notif-drop-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem;
    border-top: 1px solid var(--stroke);
    background: rgba(255,255,255,0.03);
    font-size: 0.8rem;
    color: var(--primary-500);
}

.ntf-enable {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(239,68,68,0.14), rgba(168,85,247,0.12));
    border: 1px solid rgba(239,68,68,0.25);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}
.ntf-enable-txt { display: flex; align-items: center; gap: 0.8rem; }
.ntf-enable-txt i { font-size: 1.8rem; color: var(--primary-500); }
.ntf-enable-txt strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.ntf-enable-txt small { font-size: 0.76rem; color: var(--text3); line-height: 1.8; }

.ntf-empty { text-align: center; padding: 3rem 1rem; color: var(--text3); }
.ntf-empty i { font-size: 3rem; opacity: 0.3; display: block; margin-bottom: 0.7rem; }

.ntf-list { display: flex; flex-direction: column; gap: 0.8rem; }
.ntf-item {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    background: var(--bg);
}
.ntf-item.unread { border-color: rgba(239,68,68,0.4); background: rgba(239,68,68,0.05); }
.ntf-item-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.ntf-item-date { font-size: 0.72rem; color: var(--text3); }
.ntf-item h3 { font-size: 0.95rem; margin: 0 0 0.4rem; }
.ntf-item p { font-size: 0.84rem; color: var(--text2); line-height: 2; margin: 0; white-space: pre-line; }

/* تبلیغات وب‌اپ */
.app-pwa {
    margin-top: 2rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 1.5rem;
}
.app-pwa-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.1rem; }
.app-pwa-ico {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex: none;
}
.app-pwa-head h2 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.app-pwa-head p { font-size: 0.82rem; color: var(--text3); line-height: 1.9; margin: 0; }
.app-pwa-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.app-pwa-steps { display: flex; flex-direction: column; gap: 0.7rem; }
.app-pwa-step { display: flex; align-items: center; gap: 0.7rem; font-size: 0.82rem; color: var(--text2); line-height: 1.8; }
.app-pwa-step b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(239,68,68,0.12);
    color: var(--primary-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex: none;
}

@media (max-width: 560px) {
    .notif-drop { left: -70px; width: min(320px, calc(100vw - 20px)); right: -70px; }
    .ntf-enable { flex-direction: column; align-items: flex-start; }
}