/* ============================================================
   00) ROOT VARIABLES & GLOBAL SETUP
============================================================ */




:root {
    /* Google Primary Palette */
    --bg-primary: #f8f9fa;       /* خاکستری بسیار روشن گوگل برای پس‌زمینه */
    --bg-secondary: #f1f3f4;     /* رنگ سرفیس‌های غیرفعال گوگل */
    
    --text-primary: #202124;     /* زغالی تیره اختصاصی گوگل برای متن */
    --text-secondary: #5f6368;   /* خاکستری متون فرعی */

    /* Google Signature Colors */
    --accent-blue: #1a73e8;      /* آبی استاندارد Google Button */
    --accent-purple: #7030a0;    /* بنفش حرفه‌ای */
    --accent-orange: #e37400;    /* نارنجی تیره (برخلاف زردِ جیغ) */

    /* Glass Effects (Google Style - Tonal & Soft) */
    /* در سبک گوگل شیشه کمی به آبی یا خاکستری مایل است */
    --white-glass: rgba(255, 255, 255, 0.85); 
    --border-light: rgba(218, 220, 224, 0.5); /* لبه‌های نرم‌تر و همرنگ حاشیه اینپوت‌های گوگل */
    --glass-bg: rgba(248, 249, 250, 0.8);
    --glass-border: #dadce0;

    /* Shadows (Material Elevation) */
    --shadow-soft: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-medium: 0 4px 8px 3px rgba(60,64,67,0.15), 0 1px 3px rgba(60,64,67,0.3);

    /* Radius (Material 3 Standards) */
    --radius-lg: 28px;           /* کارت‌های بزرگ در متریال دیزاین */
    --radius-md: 12px;           /* دکمه‌ها و اینپوت‌ها */

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); /* انیمیشن استاندارد گوگل */

    /* Semantic Colors */
    --primary-color: var(--accent-blue);
    --error-color: #d93025;      /* قرمز گوگل */
    --success-color: #1e8e3e;    /* سبز گوگل */
    --warning-color: #f9ab00;    /* زرد/نارنجی گوگل */
}


/* ============================================================
   01) FONTS
============================================================ */

@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url('../fonts/vazir/webfonts/Vazirmatn-FD-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* ============================================================
   02) BASE STYLES
============================================================ */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    min-height: 100vh;
    /* استفاده از متغیرهای متریال دیزاین گوگل */
    background: 
        /* هاله آبی آرام‌بخش گوگل در بالا سمت راست */
        radial-gradient(1000px circle at 85% 15%, rgba(26, 115, 232, 0.07), transparent 50%),
        /* هاله بنفش ملایم در بالا سمت چپ */
        radial-gradient(800px circle at 15% 10%, rgba(112, 48, 160, 0.05), transparent 45%),
        /* هاله گرم در پایین برای تعادل */
        radial-gradient(800px circle at 50% 85%, rgba(255, 159, 10, 0.04), transparent 50%),
        /* رنگ پایه بسیار روشن گوگل */
        linear-gradient(180deg, #f8f9fa 0%, #e8eaed 100%);
    
    color: var(--text-primary);
    min-height: 100vh;
    background-attachment: fixed; /* خیلی مهم: باعث میشه موقع اسکرول، گرادینت ثابت بمونه و شیشه‌ها روش لیز بخورن */
    -webkit-font-smoothing: antialiased;

    overflow-x: hidden;
   
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}
a:hover { opacity: 0.8; }

/* ============================================================
   03) BASE ANIMATIONS (ONLY ONCE)
============================================================ */

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes iosShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-6px); }
    30% { transform: translateX(6px); }
    45% { transform: translateX(-4px); }
    60% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
    85% { transform: translateX(2px); }
}

@keyframes macDropdown {
    0% { opacity: 0; transform: scale(0.95) translateY(-10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes iosSlideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* ============================================================
   04) GLASS COMPONENTS
============================================================ */


.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    backdrop-filter: blur(10px);
}

.glass-card {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 24px;
    transition: var(--transition);
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.6);
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    pointer-events: none;
}
.glass-card:hover::before { left: 100%; }

/* ============================================================
   05) NAVBAR
============================================================ */



.navbar-custom {
    margin: 1rem auto 1rem;
 }


/* ============================================================
   06) Search
============================================================ */


.search-container {
    position: relative;
    background: var(--white-glass, #fff);
    backdrop-filter: blur(10px);
    border-radius: 12px;  /* گردتر برای هماهنگی با navbar */
    padding: 1px 1px 1px 1px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-light, #d0d0d0);
    transition: var(--transition, all 0.3s ease);
    min-width: 240px;
}

/*  ا*/
.search-container:focus-within {
    border-color: var(--accent-blue, #0a84ff);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25), 0 4px 12px rgba(0, 122, 255, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    padding: 10px 0;
    font-size: 0.875rem;
    background: transparent;
    color: var(--text-primary);
    font-family: inherit;
}

.search-container input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* آیکون سرچ */
.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-right: 8px;
    transition: var(--transition);
}

.search-container:focus-within .search-icon {
    color: var(--accent-blue);
}

/* دکمه سرچ*/
.search-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    margin-left: 8px;
    color: white;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(0.97);
    opacity: 0.9;
}


/* ============================================================
   07) BENTO GRID
============================================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
    margin: 2rem 0;
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-secondary);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}
.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.bento-item:hover img { transform: scale(1.08); }
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    color: white;
    transition: transform 0.3s ease;
}
.bento-item:hover .bento-overlay { transform: translateY(-5px); }
.bento-overlay h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.bento-overlay p { font-size: 0.875rem; opacity: 0.9; margin: 0; }
.bento-item.glass {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
}
.bento-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    z-index: 2;
    transition: var(--transition);
}
.bento-item:hover .bento-badge { transform: translateY(-2px); }

/* ============================================================
   08) BADGES & TAGS
============================================================ */

/* ظرف کلی تگ‌ها */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 0 5px;
}

/* استایل تگ‌های مدرن */
.tags-container a {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.4) !important; /* شیشه‌ای نیمه شفاف */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    color: #555 !important;
    padding: 8px 18px !important;
    border-radius: 14px !important; /* لبه‌های نرم Material 3 */
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* حالت هوور تگ‌ها */
.tags-container a:hover {
    background: #1a73e8 !important; /* آبی گوگل */
    color: #ffffff !important;
    border-color: #1a73e8 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.25);
}

/* استایل Badge ویژه (مثلاً فوری یا اکازیون) */
.badge-special-new {
    background: linear-gradient(135deg, #ff4b2b 0%, #ff416c 100%) !important;
    color: white !important;
    padding: 6px 16px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 75, 43, 0.3);
}


/* ============================================================
   09) SIDEBAR
============================================================ */

.sidebar-sticky {
    position: sticky;
    top: 100px;
    z-index: 10;
}
.sidebar-sticky h6.text-uppercase {
    color: var(--text-secondary);
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding-right: 18px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.sidebar-sticky h6.text-uppercase::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    transition: var(--transition);
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.35rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
}
.category-item:hover {
    background: rgba(0,122,255,0.08);
    color: var(--accent-blue);
    transform: translateX(-4px);
}
.category-item.active {
    background: linear-gradient(90deg, rgba(0,122,255,0.12), transparent);
    color: var(--accent-blue);
    font-weight: 600;
    border-right: 3px solid var(--accent-blue);
}
.category-item .count {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}
.category-item:hover .count,
.category-item.active .count {
    background: var(--accent-blue);
    color: white;
}
.backitemmenu {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    font-weight: 500;
}
.backitemmenu:hover {
    background: rgba(0,122,255,0.08);
    color: var(--accent-blue);
    transform: translateX(-5px);
}
.backitemmenu::before {
    content: "←";
    font-size: 1.1rem;
    transition: var(--transition);
}
.backitemmenu:hover::before { transform: translateX(-3px); }
[dir="rtl"] .backitemmenu::before { content: "→"; }
[dir="rtl"] .category-item:hover { transform: translateX(4px); }
[dir="rtl"] .category-item.active {
    border-right: none;
    border-left: 3px solid var(--accent-blue);
}
[dir="rtl"] .sidebar-sticky h6.text-uppercase {
    padding-right: 0;
    padding-left: 18px;
    text-align: left;
}
[dir="rtl"] .sidebar-sticky h6.text-uppercase::before {
    right: auto;
    left: 0;
}

/* ============================================================
   10) DROPDOWNS
============================================================ */

.lang-dropdown .dropdown-toggle::after { display: none; }
.lang-dropdown .dropdown-item {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.glass-dropdown { position: relative; }
.glass-dropdown .dropdown-menu {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px;
    background: var(--white-glass);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-medium);
    animation: macDropdown 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.glass-dropdown .dropdown-item {
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 14px;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.glass-dropdown .dropdown-item:hover {
    background: rgba(0,0,0,0.06);
    transform: translateX(4px);
    color: var(--accent-blue);
}
.glass-dropdown .dropdown-item.active {
    background: rgba(0,122,255,0.1);
    color: var(--accent-blue);
    font-weight: 600;
}
.glass-dropdown .dropdown-divider {
    height: 1px;
    margin: 6px 0;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 8px 16px;
    transition: var(--transition);
    cursor: pointer;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.8);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
[dir="rtl"] .glass-dropdown .dropdown-item:hover { transform: translateX(-4px); }

/* ============================================================
   11) FORMS & VALIDATION
============================================================ */

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-light);
    background-color: var(--white-glass);
}
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.form-check-input:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0,122,255,0.25);
    border-color: var(--primary-color);
}
.form-check-input[type="radio"] { border-radius: 50%; }
.form-switch .form-check-input {
    width: 2.5rem;
    border-radius: 1.25rem;
}
.is-invalid {
    border-color: var(--error-color) !important;
    background-color: rgba(255, 59, 48, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15) !important;
    animation: iosShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.is-valid {
    border-color: var(--success-color) !important;
    background-color: rgba(52, 199, 89, 0.08) !important;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.15) !important;
}
.invalid-feedback,
.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--error-color);
    animation: slideDown 0.2s ease;
}
.form-control,
.form-select {
    background: var(--white-glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--text-primary);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0,122,255,0.15);
    background: rgba(255,255,255,0.95);
    outline: none;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
}
.form-label.required::after {
    content: "*";
    color: var(--error-color);
    margin-left: 4px;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ============================================================
   12) MOBILE NAVIGATION
============================================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    padding: 12px 0 20px;
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-light);
}
@media (max-width: 768px) {
    .mobile-bottom-nav { display: block; }
    body { padding-bottom: 70px; }
}
.nav-items-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.nav-item-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 40px;
}
.nav-item-mobile:hover {
    color: var(--accent-blue);
    transform: translateY(-2px);
}
.nav-item-mobile.active {
    color: var(--primary-color);
    background: rgba(0,122,255,0.1);
}
.mobile-toolbar {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 500px;
    z-index: 2000;
    display: none;
}
@media (max-width: 768px) {
    .mobile-toolbar { display: block; }
    body { padding-bottom: 80px; }
}
.toolbar-inner {
    background: var(--white-glass);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 2rem;
    padding: 0.6rem 0.5rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.toolbar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 800;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0;
    border-radius: 40px;
}
.toolbar-item.active,
.toolbar-item:hover { color: var(--primary-color); }
.toolbar-center { position: relative; flex: 1.2; text-align: center; }
.plus-btn-wrapper {
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%);
}
.plus-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary-color), var(--violet-color));
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 10px 20px rgba(0,122,255,0.4);
    border: 3px solid white;
    transition: all 0.2s;
    cursor: pointer;
}
.plus-btn:active { transform: scale(0.92); }
@media (min-width: 769px) {
    .mobile-bottom-nav,
    .mobile-toolbar { display: none !important; }
}

/* ============================================================
   13) iOS TABLE
============================================================ */

.ios-table-wrapper {
    background: var(--white-glass);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow-x: auto;
    box-shadow: var(--shadow-soft);
}
.ios-table-wrapper::-webkit-scrollbar { height: 6px; }
.ios-table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-blue), var(--violet-color));
    border-radius: 10px;
}
.ios-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
}
.ios-table th {
    padding: 1.2rem 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(0,0,0,0.04);
    background: rgba(248,250,252,0.5);
}
.ios-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.ios-table tbody tr:hover { background-color: rgba(0,122,255,0.04); }
.ios-table tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   14) PAYMENT METHODS
============================================================ */

.custom-control-payment {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: var(--white-glass);
    backdrop-filter: blur(4px);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}
.custom-control-payment:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.95);
}
.custom-control-payment:has(.custom-control-input-payment:checked) {
    border-color: var(--accent-blue);
    background: linear-gradient(135deg, rgba(0,122,255,0.04), rgba(142,68,255,0.02));
}
.custom-control-input-payment {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.payment-indicator {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--text-secondary);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}
[dir="ltr"] .payment-indicator { margin-right: 16px; }
[dir="rtl"] .payment-indicator { margin-left: 16px; }
.custom-control-input-payment:checked + .payment-indicator {
    border-color: var(--accent-blue);
}
.custom-control-input-payment:checked + .payment-indicator::after {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-blue);
    border-radius: 50%;
    display: block;
    animation: scaleIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.payment-label-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex: 1;
}
.payment-text {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.payment-subtext {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.payment-icon {
    font-size: 1.6rem;
    color: #aeaeb2;
    transition: all 0.2s;
}
[dir="ltr"] .payment-icon { margin-left: 12px; }
[dir="rtl"] .payment-icon { margin-right: 12px; }
.custom-control-input-payment:checked ~ .payment-label-content .payment-icon {
    color: var(--accent-blue);
    transform: scale(1.15);
}
.custom-control-input-payment:checked ~ .payment-label-content .payment-text {
    color: var(--accent-blue);
}

/* ============================================================
   15) DASHBOARD CARDS
============================================================ */

.dashboard-card {
    background: var(--white-glass);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}
.dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}
.dc-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}
.dc-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.dashboard-card:hover .dc-image-wrapper img { transform: scale(1.08); }
.dc-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(10px);
    color: white;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
}
[dir="ltr"] .dc-badge { right: 12px; }
[dir="rtl"] .dc-badge { left: 12px; }
.dc-badge.featured { background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple)); }
.dc-body { padding: 18px 16px; flex: 1; }
.dc-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.dc-title:hover { color: var(--accent-blue); }
.dc-price {
    margin-top: auto;
    padding-top: 12px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent-blue);
}
.dc-footer {
    padding: 12px 16px;
    background: rgba(248,250,252,0.6);
    border-top: 1px solid rgba(0,0,0,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dc-btn-primary {
    background: rgba(0,122,255,0.12);
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    cursor: pointer;
}
.dc-btn-primary:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   16) CATEGORY TREE
============================================================ */

.Ucategory { margin: 0; padding: 0; list-style: none; }
.Ucategory ol {
    padding-right: 20px;
    border-right: 2px solid var(--border-light);
    margin: 6px 0;
    list-style: none;
}
[dir="rtl"] .Ucategory ol {
    padding-right: 0;
    padding-left: 20px;
    border-right: none;
    border-left: 2px solid var(--border-light);
}
.Ucategory ol.collapse { display: none; }
.Ucategory ol.collapse.show {
    display: block;
    animation: iosSlideDown 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}
.Ucategory li.self_cat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    background: var(--white-glass);
    border: 1px solid transparent;
}
.Ucategory li.self_cat:hover {
    background: var(--bg-secondary);
    color: var(--accent-blue);
    border-color: var(--border-light);
}
[dir="ltr"] .Ucategory li.self_cat:hover { transform: translateX(4px); }
[dir="rtl"] .Ucategory li.self_cat:hover { transform: translateX(-4px); }
.Ucategory li.self_cat::after {
    content: "▼";
    margin-right: auto;
    color: var(--text-secondary);
    font-size: 0.7rem;
    transition: transform 0.3s;
}
[dir="rtl"] .Ucategory li.self_cat::after { margin-right: 0; margin-left: auto; }
.Ucategory li.self_cat[aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--accent-blue);
}
.Ucategory li.self_cat.no-sublist::after { display: none; }
.Ucategory li.self_cat.active {
    background: linear-gradient(135deg, rgba(0,122,255,0.08), rgba(142,68,255,0.04));
    color: var(--accent-blue);
}

/* ============================================================
   17) WIZARD PROGRESS
============================================================ */

.wizard-progress-wrapper { padding: 0 0.5rem; margin-bottom: 2rem; }
.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    right: 10px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 4px;
    z-index: -1;
}
.step-progress-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    height: 4px;
    background: var(--accent-blue);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
    width: 0;
    z-index: -1;
}
[dir="rtl"] .step-progress-line { left: auto; right: 10px; }
.step-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white-glass);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.step-dot.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0,122,255,0.3);
    animation: pulse 1.5s infinite;
}
.step-dot.completed {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}
.step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}
.step-label {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}
.step-dot.active + .step-label { color: var(--accent-blue); font-weight: 800; }
.step-dot.completed + .step-label { color: var(--success-color); }
[dir="rtl"] .step-label { transform: translateX(50%); }
.wizard-btn {
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.wizard-btn-prev {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}
.wizard-btn-next {
    background: var(--accent-blue);
    color: white;
}
.wizard-btn-next:hover {
    background: var(--accent-purple);
    transform: translateX(2px);
}
[dir="rtl"] .wizard-btn-next:hover { transform: translateX(-2px); }

/* ============================================================
   18) IOS SEGMENTED & SWITCH
============================================================ */

.ios-segmented-control {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    display: inline-flex;
    gap: 4px;
}
.ios-segmented-control .nav-link {
    color: var(--text-secondary);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 24px;
    transition: all 0.25s;
    cursor: pointer;
    background: transparent;
}
.ios-segmented-control .nav-link.active {
    background: var(--white-glass);
    color: var(--text-primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.ios-settings-list {
    background: var(--white-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.ios-settings-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}
.ios-settings-row:hover { background: rgba(0,122,255,0.04); }
.ios-settings-row:last-child { border-bottom: none; }
.ios-switch {
    width: 52px;
    height: 32px;
    cursor: pointer;
    background: #e5e5ea;
    border: none;
    border-radius: 32px;
    appearance: none;
    position: relative;
    transition: background-color 0.3s;
    flex-shrink: 0;
}
.ios-switch::before {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
[dir="rtl"] .ios-switch::before { left: auto; right: 2px; }
.ios-switch:checked { background: #34c759; }
.ios-switch:checked::before { transform: translateX(20px); }
[dir="rtl"] .ios-switch:checked::before { transform: translateX(-20px); }

/* ============================================================
   19) IMAGE UPLOAD
============================================================ */

.kt-image-drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-secondary);
    font-size: 0.7rem;
}
.kt-image-drop-zone:hover {
    background: var(--bg-primary);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}
.kt-image-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.btn-delete-picture {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255,59,48,0.9);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 30px;
    padding: 6px 10px;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
[dir="rtl"] .btn-delete-picture { left: auto; right: 8px; }
.btn-delete-picture:hover {
    background: #ff3b30;
    transform: scale(1.05);
}

/* ============================================================
   20) DARK MODE (UNIFIED)
============================================================ */

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    }
    .glass-card,
    .dashboard-card,
    .custom-control-payment,
    .ios-settings-list,
    .Ucategory li.self_cat {
        background: rgba(30, 30, 35, 0.85);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .glass-card:hover {
        background: rgba(30, 30, 35, 0.95);
    }
    .text-primary, .dc-title, .payment-text, .settings-title {
        color: #e2e8f0;
    }
    .text-secondary, .payment-subtext, .settings-subtitle {
        color: #8e8e93;
    }
    .form-control, .form-select {
        background: rgba(30, 30, 35, 0.8);
        color: #e2e8f0;
    }
    .mobile-bottom-nav, .toolbar-inner, .sticky-save-bar {
        background: rgba(30, 30, 35, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
    .ios-table th {
        background: rgba(30, 30, 35, 0.8);
        color: #94a3b8;
    }
    .ios-table td {
        color: #e2e8f0;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }
    .search-container:focus-within {
        background: rgba(30, 30, 35, 0.9);
    }
    .step-dot {
        background: rgba(30, 30, 35, 0.9);
        border-color: rgba(255, 255, 255, 0.15);
        color: #8e8e93;
    }
    .step-dot.active {
        background: var(--accent-blue);
    }
    .step-dot.completed {
        background: var(--success-color);
    }
}

/* ============================================================
   21) RESPONSIVE (UNIFIED)
============================================================ */

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .bento-large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    .step-label {
        font-size: 0.65rem;
        white-space: normal;
        max-width: 80px;
        text-align: center;
    }
    .wizard-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }
    .wizard-btn {
        width: 100%;
        text-align: center;
    }
    .ios-segmented-control .nav-link {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    .sticky-save-bar {
        border-radius: 20px;
        padding: 0.75rem 1rem;
        flex-direction: column;
    }
    .sticky-save-bar .save-buttons {
        width: 100%;
    }
    .save-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .custom-control-payment {
        padding: 12px 14px;
    }
    .payment-text {
        font-size: 0.85rem;
    }
    .payment-icon {
        font-size: 1.3rem;
    }
    .kt-image-drop-zone,
    .kt-image-upload-preview {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .toolbar-item {
        font-size: 0.6rem;
    }
    .plus-btn {
        width: 48px;
        height: 48px;
    }
    .step-dot {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .step-label {
        font-size: 0.6rem;
        max-width: 65px;
    }
}

/* ============================================================
   22) UTILITY CLASSES
============================================================ */

.container-custom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.btn-glass {
 /* پس‌زمینه زغالی خیلی ملایم و نیمه‌شفاف */
    background: rgba(32, 33, 36, 0.05); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* متن و آیکون با رنگ زغالی گوگل */
    color: #202124;
    
    /* حاشیه ظریف که در حالت Glass حیاتی است */
    border: 1px solid rgba(0, 0, 0, 0.1);
    
    border-radius: 12px; /* گردی ملایم مطابق تصویر شما */
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-glass:hover {
    background: rgba(26, 115, 232, 0.1); /* تغییر رنگ ملایم به آبی گوگل در هاور */
    color: #1a73e8;
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); border-radius: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-orange));
}



