        :root {
            --primary: #1a73e8;
            --primary-dark: #0d47a1;
            --surface: #fff;
            --bg: #f8f9fa;
            --border: #dadce0;
            --text: #202124;
            --text-secondary: #5f6368;
            --bottom-nav-height: 60px;
            --header-height: 52px;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
        body {
            font-family: 'Vazirmatn', sans-serif;
            background: var(--bg);
            color: var(--text);
            padding-top: var(--header-height);
            padding-bottom: var(--bottom-nav-height);
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ===== اپ بار ===== */
        .app-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: var(--header-height);
            background: var(--surface);
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 12px;
            z-index: 100;
        }
        .app-header-left {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .app-icon-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            background: transparent;
            cursor: pointer;
        }
        .app-icon-btn:active { background: #e8f0fe; }
        .app-icon-btn svg { width: 20px; height: 20px; fill: #5f6368; }
        .app-logo {
            font-size: 18px;
            font-weight: 900;
            text-decoration: none;
            background: linear-gradient(90deg, #1a73e8, #ea4335, #fbbc04, #34a853);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        .app-header-right {
            display: flex;
            align-items: center;
            gap: 4px;
        }
        .app-login-btn {
            background: var(--primary);
            color: #fff;
            border: none;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 10px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Vazirmatn', sans-serif;
            text-decoration: none;
        }

        /* ===== جستجو ===== */
        .app-search {
            position: fixed;
            top: var(--header-height);
            left: 0;
            right: 0;
            background: var(--surface);
            padding: 8px 12px;
            border-bottom: 1px solid var(--border);
            z-index: 99;
            transform: translateY(-100%);
            transition: transform .3s;
        }
        .app-search.open { transform: translateY(0); }
        .app-search-box {
            display: flex;
            align-items: center;
            background: #f1f3f4;
            border-radius: 20px;
            padding: 8px 12px;
            gap: 8px;
        }
        .app-search-box svg { width: 16px; height: 16px; fill: #5f6368; }
        .app-search-box input {
            flex: 1;
            border: none;
            background: transparent;
            font-size: 12px;
            font-family: 'Vazirmatn', sans-serif;
            outline: none;
        }

        /* ===== منوی Touri ===== */
        .app-touri-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,.3);
            z-index: 98;
        }
        .app-touri-overlay.open { display: block; }
        .app-touri-menu {
            display: none;
            position: fixed;
            top: calc(var(--header-height) + 8px);
            right: 8px;
            left: 8px;
            background: var(--surface);
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0,0,0,.15);
            padding: 12px;
            z-index: 99;
            max-height: 70vh;
            overflow-y: auto;
        }
        .app-touri-menu.open { display: block; }
        .app-touri-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
        }
        .app-touri-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            padding: 12px 6px;
            border-radius: 12px;
            text-decoration: none;
            color: var(--text);
        }
        .app-touri-item:active { background: #e8f0fe; }
        .app-touri-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .app-touri-icon svg { width: 20px; height: 20px; fill: #fff; }
        .app-touri-label { font-size: 9px; font-weight: 600; }

        /* ===== مودال ورود ===== */
        .app-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 200;
            align-items: flex-end;
            justify-content: center;
        }
        .app-modal.open { display: flex; }
        .app-modal-overlay {
            position: absolute;
            inset: 0;
            background: rgba(0,0,0,.5);
            backdrop-filter: blur(4px);
        }
        .app-modal-sheet {
            position: relative;
            background: var(--surface);
            border-radius: 20px 20px 0 0;
            padding: 24px 20px;
            width: 100%;
            max-width: 500px;
            z-index: 1;
            animation: slideUp .3s ease;
        }
        @keyframes slideUp {
            from { transform: translateY(100%); }
            to { transform: translateY(0); }
        }
        .app-modal-close {
            position: absolute;
            top: 12px;
            left: 12px;
            background: none;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        .app-modal-close svg { width: 18px; height: 18px; fill: #5f6368; }
        .app-modal-title {
            font-size: 18px;
            font-weight: 900;
            text-align: center;
            margin-bottom: 4px;
        }
        .app-modal-subtitle {
            font-size: 10px;
            color: #5f6368;
            text-align: center;
            margin-bottom: 16px;
        }
        .app-form-group { margin-bottom: 12px; }
        .app-form-label {
            font-size: 10px;
            font-weight: 600;
            display: block;
            margin-bottom: 4px;
        }
        .app-form-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #dadce0;
            border-radius: 10px;
            font-size: 12px;
            font-family: 'Vazirmatn', sans-serif;
        }
        .app-form-input:focus {
            border-color: #1a73e8;
            box-shadow: 0 0 0 2px rgba(26,115,232,.1);
            outline: none;
        }
        .app-submit-btn {
            width: 100%;
            padding: 12px;
            background: #1a73e8;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            font-family: 'Vazirmatn', sans-serif;
        }

        /* ===== محتوا ===== */
        .app-content {
            padding: 8px;
        }

        /* ===== منوی پایین ===== */
        .app-bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            background: var(--surface);
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: space-around;
            align-items: center;
            z-index: 100;
            padding-bottom: env(safe-area-inset-bottom);
        }
        .app-bottom-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            text-decoration: none;
            color: #5f6368;
            font-size: 8px;
            font-weight: 600;
            border: none;
            background: none;
            cursor: pointer;
            font-family: 'Vazirmatn', sans-serif;
            padding: 4px 8px;
            border-radius: 8px;
            transition: color .2s;
        }
        .app-bottom-item.active { color: #1a73e8; }
        .app-bottom-item svg { width: 22px; height: 22px; fill: currentColor; }

/* ═══════════════════════════════════════════════════════════
   FIX GAP — حذف padding-top اضافی از body
   این قانون در انتهای فایل قرار می‌گیرد تا بر قانون اصلی غلبه کند
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    body,
    body.mbs-body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    /* هدر اگر fixed است، این را فعال کنید (اختیاری) */
    /* 
    body {
        padding-top: var(--header-height) !important;
    }
    */
}
