/* ==========================================================================
   PM TECH Water Solutions — استايل سطح المكتب المخصص (Desktop Dedicated CSS)
   - فصل كامل لتصميم سطح المكتب عن الهاتف (كل القواعد أدناه داخل min-width: 769px)
   - phone-shell.css يُحمَّل قبل هذا الملف، لذا فإن القواعد المماثلة هنا هي الفائزة
     على سطح المكتب فقط، وشكل الهاتف (≤768px) يبقى كما هو دون أي تغيير.
   - 0% Emojis (أيقونات SVG هندسية نقية)
   - هوية بصرية: أزرق نيلي #0B3472، أزرق كهربائي #087AF1، أخضر #52B534
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. قواعد الظهور والإخفاء حسب حجم الشاشة (Mobile vs Desktop Separation)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hub-desktop-only,
  .pm-desktop-only,
  .pm-desktop-navbar,
  .pm-desktop-footer {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hub-mobile-only,
  .pm-mobile-only,
  .hub-bottom-nav,
  .mobile-app-bottom-nav {
    display: none !important;
  }

  .hub-desktop-only,
  .pm-desktop-only {
    display: block !important;
  }

  /* منع أي تمرير أفقي على سطح المكتب */
  .pmtech-hub-body {
    overflow-x: clip;
  }
}

/* --------------------------------------------------------------------------
   2. شريط التنقل المكتبي الموحد (Desktop Navbar)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .pm-desktop-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: 0 4px 20px rgba(11, 52, 114, 0.05);
  }

  .pm-dt-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 clamp(16px, 2vw, 28px);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .pm-dt-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
  }

  .pm-dt-brand img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease;
  }

  .pm-dt-brand:hover img {
    transform: scale(1.02);
  }

  /* روابط التنقل — قابلة للتمرير الأفقي كشبكة أمان على الشاشات الضيقة */
  .pm-dt-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 4px 2px;
    list-style: none;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pm-dt-nav-links::-webkit-scrollbar {
    display: none;
  }

  .pm-dt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .pm-dt-link:hover {
    color: #087AF1;
    background: #F1F7FD;
  }

  .pm-dt-link.is-active {
    color: #0B3472;
    background: #EBF3FC;
    font-weight: 800;
  }

  .pm-dt-link-ai {
    color: #087AF1;
    background: #F0F7FF;
    border: 1px solid #D6E8FA;
  }

  .pm-dt-link-ai:hover {
    background: #E2EFFF;
    border-color: #BEDBFA;
  }

  .pm-dt-ai-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
  }

  /* الإجراءات وأزرار الحساب */
  .pm-dt-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .pm-dt-booth-pill {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .pm-dt-booth-pill:hover {
    background: #DCFCE7;
    border-color: #86EFAC;
    transform: translateY(-1px);
  }

  /* شاشات عريضة جداً فقط: إظهار شارة الجناح */
  @media (min-width: 1680px) {
    .pm-dt-booth-pill {
      display: inline-flex;
    }
  }

  .pm-dt-btn-register {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0B3472 0%, #087AF1 100%);
    color: #FFFFFF;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(8, 122, 241, 0.25);
    transition: all 0.2s ease;
  }

  .pm-dt-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(8, 122, 241, 0.35);
    color: #FFFFFF;
  }

  .pm-dt-btn-login {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 12px;
    background: #F8FAFC;
    border: 1px solid #CBD5E1;
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .pm-dt-btn-login:hover {
    background: #F1F5F9;
    border-color: #94A3B8;
    color: #0F172A;
  }

  .pm-dt-btn-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 12px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .pm-dt-btn-account:hover {
    background: #DBEAFE;
    transform: translateY(-1px);
  }

  .pm-dt-user-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   3. تذييل الصفحة المكتبي (معطَّل حالياً — يحتفظ بالأنماط للرجوع إليه)
   -------------------------------------------------------------------------- */
.pm-desktop-footer {
  display: none !important;
}

@media (min-width: 769px) {
  .pm-footer-top {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px 48px;
  }

  .pm-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
    gap: 40px;
  }

  .pm-footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 18px;
    filter: brightness(0) invert(1);
  }

  .pm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 24px;
  }

  .pm-footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

/* --------------------------------------------------------------------------
   4. الصفحة الرئيسية على سطح المكتب (Home Page Desktop)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  /* الحاوية الرئيسية: إلغاء شبكة الهاتف المفروضة من hub.css */
  .pmtech-hub-body .hub-page {
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    background: radial-gradient(circle at 90% 0%, rgba(184, 228, 255, 0.4), transparent 36rem),
                linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 100%);
  }

  .pmtech-hub-body .hub-shell {
    display: block;
    width: min(1280px, calc(100% - 56px));
    height: auto;
    max-width: none;
    margin: 0 auto;
    padding: 20px 0 56px;
    overflow: visible;
  }

  /* ترويسة الترحيب: العنوان يمين + شارات الثقة يسار */
  .pmtech-hub-body .hub-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: right;
    padding: 14px 4px 22px;
    margin-bottom: 26px;
    border-bottom: 1px solid #E5EDF6;
  }

  .pmtech-hub-body .hub-welcome h1 {
    flex-shrink: 0;
    font-size: 31px;
    font-weight: 900;
    color: #0B3472;
    letter-spacing: -0.5px;
  }

  /* شارات الثقة — تصميم حبّات أنيق (كانت بلا أي تنسيق) */
  .pmtech-hub-body .hub-desktop-trust-badges {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }

  .pmtech-hub-body .hub-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 9999px;
    background: #FFFFFF;
    border: 1px solid #DCE8F5;
    box-shadow: 0 4px 14px rgba(11, 52, 114, 0.06);
    color: #1E4E8C;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
  }

  .pmtech-hub-body .hub-trust-pill svg {
    color: #087AF1;
    flex-shrink: 0;
  }

  .pmtech-hub-body .hub-trust-pill:last-child svg {
    color: #52B534;
  }

  /* المحتوى المُدار: تدفق عمودي طبيعي بدل تقسيم الأعمدة */
  .pmtech-hub-body .hub-managed-content {
    display: block;
    min-height: 0;
    gap: 0;
    overflow: visible;
  }

  /* سلايدر الـ Hero */
  .pmtech-hub-body .hub-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    height: 400px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(11, 52, 114, 0.12);
    margin-bottom: 34px;
  }

  .pmtech-hub-body .hub-hero-slide .hub-hero-copy {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(560px, 60%);
    padding: 40px 46px;
  }

  .pmtech-hub-body .hub-hero-copy h2 {
    font-size: 34px;
    line-height: 1.35;
    font-weight: 900;
    color: #0B3472;
    margin-bottom: 10px;
  }

  .pmtech-hub-body .hub-hero-copy p {
    font-size: 16px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 18px;
  }

  .pmtech-hub-body .hub-primary-action {
    padding: 12px 26px;
    font-size: 15px;
    font-weight: 800;
    border-radius: 14px;
  }

  /* شعار الحملة داخل السلايدر: شارة أفقية أسفل يسار بدل النص العمودي */
  .pmtech-hub-body .hub-hero-slogan {
    top: auto;
    right: auto;
    bottom: 30px;
    left: 34px;
    transform: rotate(-4deg);
    padding: 9px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 18px rgba(11, 52, 114, 0.12);
    color: #0B3472;
    font-size: 14px;
    text-align: center;
  }

  .pmtech-hub-body .hub-hero-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 16px rgba(11, 52, 114, 0.18);
  }

  /* عناوين الأقسام */
  .pmtech-hub-body .hub-section {
    margin-top: 34px;
  }

  .pmtech-hub-body .hub-section-heading {
    margin-bottom: 18px;
    align-items: center;
  }

  .pmtech-hub-body .hub-section-heading h2 {
    font-size: 25px;
    font-weight: 900;
    color: #0B3472;
  }

  .pmtech-hub-body .hub-section-heading span {
    font-size: 13px;
    font-weight: 700;
    color: #64748B;
  }

  /* شبكة التطبيقات: أعمدة تلقائية تتسع لعدد البطاقات (4 أو 5) دون بطاقة يتيمة */
  .pmtech-hub-body .hub-app-grid,
  .pmtech-hub-body .hub-app-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 18px;
    margin-bottom: 8px;
  }

  .pmtech-hub-body .hub-app-card {
    min-height: 158px;
    padding: 20px 16px;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 6px 18px rgba(11, 52, 114, 0.05);
    transition: all 0.25s ease;
  }

  .pmtech-hub-body .hub-app-card:hover {
    transform: translateY(-5px);
    border-color: #087AF1;
    box-shadow: 0 16px 32px rgba(8, 122, 241, 0.12);
  }

  .pmtech-hub-body .hub-app-icon {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    transition: transform 0.25s ease;
  }

  .pmtech-hub-body .hub-app-card strong {
    font-size: 15.5px;
    font-weight: 800;
    color: #0B3472;
  }

  /* قسم عروض المعرض — تخطيط مكتبي صحيح بدل التخطيط المطلق الخاص بالهاتف */
  .pmtech-hub-body .hub-offers {
    display: block;
    margin-bottom: 6px;
  }

  .pmtech-hub-body .hub-offer-banner {
    min-height: 150px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 32px;
    border-radius: 24px;
    box-shadow: 0 10px 28px rgba(11, 52, 114, 0.08);
  }

  .pmtech-hub-body .hub-offer-banner::after {
    top: -46%;
    right: 34%;
    width: 24%;
    height: 192%;
    border-width: 10px;
  }

  /* الصورة على الطرف الأيسر تتلاشى تدريجياً نحو خلفية البانر الكحلية */
  .pmtech-hub-body .hub-offer-photo {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 36%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .pmtech-hub-body .hub-offer-photo-rim {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    background: linear-gradient(90deg, rgba(6, 41, 95, 0) 16%, rgba(6, 52, 110, 0.82) 44%, #06295F 62%);
  }

  .pmtech-hub-body .hub-offer-copy {
    position: relative;
    inset: auto;
    transform: none;
    order: 1;
    text-align: right;
  }

  .pmtech-hub-body .hub-offer-copy strong {
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .pmtech-hub-body .hub-offer-copy span {
    font-size: 15px;
  }

  .pmtech-hub-body .hub-offer-visual {
    position: relative;
    inset: auto;
    transform: none;
    order: 2;
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    align-self: center;
  }

  .pmtech-hub-body .hub-offer-gift,
  .pmtech-hub-body .hub-offer-gift svg {
    width: 68px;
    height: 68px;
    padding: 0;
  }

  .pmtech-hub-body .hub-offer-arrow {
    position: relative;
    inset: auto;
    transform: none;
    order: 3;
    width: 46px;
    height: 46px;
    margin-right: auto;
    flex: 0 0 auto;
    box-shadow: 0 6px 16px rgba(6, 41, 95, 0.25);
  }

  /* التصنيفات السريعة: أعمدة تلقائية بلا خلايا فارغة */
  .pmtech-hub-body .hub-category-list {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }

  .pmtech-hub-body .hub-category {
    flex-direction: row;
    justify-content: flex-start;
    gap: 14px;
    min-height: 76px;
    padding: 14px 22px;
    border-radius: 18px;
    background: #FFFFFF;
    border: 1px solid #E6EEF7;
    text-align: right;
  }

  .pmtech-hub-body .hub-category-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .pmtech-hub-body .hub-category strong {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   5. صفحات الأدوات الهندسية على سطح المكتب
      (محدد الطاقة / مختبر الطلمبات / توفير الديزل / الصفحات المؤقتة)
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  /* تحرير جميع الأغلفة الهندسية من قيد عرض الهاتف 440px على سطح المكتب */
  body.phone-shell.tool-phone .sd-shell,
  body.phone-shell.tool-phone .pl-shell,
  body.phone-shell.tool-phone .dvs-shell,
  body.phone-shell.tool-phone.solar-determiner-body .sd-shell,
  body.phone-shell.tool-phone.pump-lab-body .pl-shell,
  body.phone-shell.tool-phone.dvs-body .dvs-shell,
  body.phone-shell.pump-lab-body .pl-shell,
  body.phone-shell.tool-phone.placeholder-phone .placeholder-shell,
  body.phone-shell.tool-phone .placeholder-shell,
  body.phone-shell.tool-phone .products-shell,
  body.phone-shell.tool-phone .quote-shell,
  body.phone-shell.tool-phone .offers-shell {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 28px 24px 64px !important;
    box-sizing: border-box !important;
  }

  body.phone-shell .sales-app-wrapper {
    width: min(620px, calc(100vw - 140px)) !important;
    max-width: 620px !important;
    margin: 0 !important;
    padding: 22px 20px 60px !important;
    box-sizing: border-box !important;
  }

  /* بانر ومقدمة التطبيقات الهندسية على سطح المكتب */
  body.phone-shell.tool-phone .app-phone-intro {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 32px !important;
    padding: 32px 36px !important;
    border-radius: 22px !important;
    margin-bottom: 24px !important;
    background: linear-gradient(135deg, #0B3472 0%, #087AF1 100%) !important;
    box-shadow: 0 12px 30px rgba(11, 52, 114, 0.12) !important;
  }

  body.phone-shell.tool-phone .app-phone-intro h1 {
    font-size: 28px !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
  }

  body.phone-shell.tool-phone .app-phone-intro p {
    font-size: 15px !important;
    line-height: 1.65 !important;
    max-width: 720px !important;
    margin: 0 !important;
    color: #E2E8F0 !important;
  }

  body.phone-shell.tool-phone .app-phone-intro-kicker {
    font-size: 12px !important;
    margin-bottom: 6px !important;
    color: #93C5FD !important;
    font-weight: 800 !important;
  }

  body.phone-shell.tool-phone .app-phone-intro-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    width: auto !important;
  }

  body.phone-shell.tool-phone .app-phone-action {
    min-height: 48px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }

  /* إخفاء أي بقايا واجهة الهاتف على سطح المكتب */
  body.phone-shell.tool-phone .mobile-tool-toolbar {
    display: none !important;
  }

  body.phone-shell.sales-mode .sales-inline-actions {
    display: none !important;
  }

  /* ---------- محدد الطاقة الشمسية على سطح المكتب ---------- */
  body.phone-shell.tool-phone.solar-determiner-body .sd-mode-switch {
    display: flex !important;
    justify-content: center !important;
    max-width: 680px !important;
    margin: 0 auto 28px !important;
    padding: 6px !important;
    border-radius: 16px !important;
    background: #E2E8F0 !important;
    border: 1px solid #CBD5E1 !important;
    position: static !important;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-mode-btn {
    flex: 1 !important;
    min-height: 48px !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
  }

  /* شاشة مدخلات ومخرجات حاسبة الطاقة — عمودين هندسيين متوازنين */
  body.phone-shell.tool-phone.solar-determiner-body .sd-form-pane {
    display: grid !important;
    grid-template-columns: minmax(400px, 1fr) minmax(520px, 1.25fr) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-card-form {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 28px 26px !important;
    box-shadow: 0 4px 18px rgba(11, 52, 114, 0.05) !important;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-results-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 28px 26px !important;
    box-shadow: 0 4px 18px rgba(11, 52, 114, 0.05) !important;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-mode-btn {
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 13px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-card {
    padding: 20px 22px;
    border-radius: 16px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-card-title {
    margin-bottom: 16px;
    padding-bottom: 10px;
    font-size: 18px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-field-group {
    margin-bottom: 16px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-input,
  body.phone-shell.tool-phone.solar-determiner-body .sd-select {
    min-height: 48px;
    border-radius: 11px;
    font-size: 14px;
    background: #FBFDFF;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-presets {
    gap: 8px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-preset-pill {
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 10px;
    font-size: 12.5px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-btn-calc {
    position: static;
    min-height: 52px;
    border-radius: 12px;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(7, 104, 213, 0.22);
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-kpi-grid {
    gap: 10px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-kpi-box {
    min-height: 0;
    padding: 14px 16px;
    border-radius: 12px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-kpi-val {
    font-size: 21px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-spec-row {
    gap: 10px;
    padding: 11px 0;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-spec-key,
  body.phone-shell.tool-phone.solar-determiner-body .sd-spec-val {
    font-size: 12.5px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-yield-grid {
    gap: 10px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-yield-item {
    padding: 12px;
    border-radius: 12px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-yield-item span,
  body.phone-shell.tool-phone.solar-determiner-body .sd-yield-item strong {
    font-size: 12.5px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-actions-row {
    display: flex;
    gap: 10px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-actions-row .sd-btn-act {
    flex: 1;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-report-lang-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-3d-pane {
    gap: 16px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-3d-viewport-card,
  body.phone-shell.tool-phone.solar-determiner-body #three-canvas-container {
    min-height: 460px;
    border-radius: 18px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-3d-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-3d-hud {
    top: 14px;
    right: 14px;
    left: 14px;
    gap: 7px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-hud-pill {
    padding: 6px 10px;
    font-size: 11px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-3d-toolbar {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 14px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-camera-btns {
    display: flex;
    gap: 7px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-cam-btn {
    padding: 9px 12px;
    font-size: 11.5px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-tilt-controller {
    font-size: 12.5px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-chat-pane {
    width: min(860px, 100%);
    height: auto;
    min-height: 560px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-chat-messages {
    padding: 18px;
    gap: 14px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-msg {
    max-width: 85%;
    gap: 10px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-msg-avatar {
    width: 38px;
    height: 38px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-msg-bubble {
    padding: 13px 16px;
    border-radius: 15px;
    font-size: 14px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-suggestions {
    padding: 10px 14px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-chat-input-row {
    padding: 12px;
    gap: 9px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-chat-input {
    min-height: 48px;
    border-radius: 13px;
    font-size: 14px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-btn-send {
    min-width: 0;
    min-height: 48px;
    padding: 8px 18px;
    border-radius: 13px;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-btn-send span {
    display: inline;
  }

  body.phone-shell.tool-phone.solar-determiner-body .sd-bom-table {
    display: table;
    width: 100%;
    white-space: normal;
    overflow-x: visible;
  }

  /* ---------- حاسبة توفير الديزل (تصميم مضغوط) ---------- */
  body.phone-shell.tool-phone.dvs-body .dvs-main {
    gap: 12px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-card {
    padding: 16px 18px;
    border-radius: 16px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-card-title {
    gap: 10px;
    font-size: 15px;
  }

  body.phone-shell.tool-phone.dvs-body .tag-hint {
    padding: 3px 8px;
    font-size: 10.5px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-chips-grid--wide {
    flex-direction: column;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-chips-grid--wide .dvs-chip-btn {
    width: 100%;
    min-width: 0;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-chip-btn {
    min-height: 40px;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12.5px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-chip-btn small {
    font-size: 10px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-input {
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-hero-comparison > * {
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-loss-val,
  body.phone-shell.tool-phone.dvs-body .dvs-saving-val {
    font-size: 26px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-roi-bar {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-roi-badge {
    align-self: auto;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-specs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-spec-pill {
    min-height: 60px;
    padding: 10px 12px;
    border-radius: 12px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-spec-pill .k {
    font-size: 10.5px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-spec-pill .v {
    font-size: 13.5px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-tbl-wrap {
    margin: 0;
    border-radius: 12px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-table {
    min-width: 0;
    width: 100%;
    font-size: 12px;
  }

  body.phone-shell.tool-phone.dvs-body .dvs-table th,
  body.phone-shell.tool-phone.dvs-body .dvs-table td {
    padding: 9px 10px;
  }

  /* ---------- مختبر الطلمبات ---------- */
  body.phone-shell.pump-lab-body .pl-header {
    margin-bottom: 14px;
    padding: 12px 18px;
    border: 1px solid #E3EDF7;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(19, 71, 128, 0.06);
  }

  body.phone-shell.pump-lab-body .pl-header-brand img {
    height: 34px;
  }

  body.phone-shell.pump-lab-body .pl-header-title strong {
    font-size: 16px;
  }

  body.phone-shell.pump-lab-body .pl-header-title span {
    display: block;
  }

  body.phone-shell.pump-lab-body .pl-mode-tabs {
    position: sticky;
    top: 86px;
    z-index: 40;
    margin: 0 0 16px;
    padding: 6px;
    border-radius: 15px;
  }

  body.phone-shell.pump-lab-body .pl-tab-btn {
    min-height: 46px;
    padding: 9px 10px;
    font-size: 13.5px;
  }

  body.phone-shell.pump-lab-body .pl-main {
    gap: 16px;
  }

  body.phone-shell.pump-lab-body .pl-chat-card {
    height: auto;
    min-height: 620px;
    border-radius: 22px;
  }

  body.phone-shell.pump-lab-body .pl-chat-messages {
    padding: 18px;
    gap: 14px;
  }

  body.phone-shell.pump-lab-body .pl-msg {
    max-width: 88%;
    gap: 10px;
    font-size: 14px;
  }

  body.phone-shell.pump-lab-body .pl-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  body.phone-shell.pump-lab-body .pl-msg-bubble {
    padding: 13px 16px;
    border-radius: 15px;
  }

  body.phone-shell.pump-lab-body .pl-chat-input-bar {
    padding: 12px;
    gap: 9px;
  }

  body.phone-shell.pump-lab-body .pl-chat-input-bar input {
    min-height: 48px;
    border-radius: 13px;
    font-size: 14px;
  }

  body.phone-shell.pump-lab-body .pl-btn-send {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  body.phone-shell.pump-lab-body .pl-wizard-card {
    border-radius: 22px;
  }

  body.phone-shell.pump-lab-body .pl-form-grid input,
  body.phone-shell.pump-lab-body .pl-form-group input,
  body.phone-shell.pump-lab-body .pl-form-group select {
    min-height: 48px;
    border-radius: 12px;
    font-size: 14px;
  }

  body.phone-shell.pump-lab-body .pl-btn-primary {
    min-height: 52px;
    border-radius: 13px;
  }

  body.phone-shell.pump-lab-body .pl-card-pump {
    padding: 18px;
    border-radius: 16px;
  }

  body.phone-shell.pump-lab-body .pl-card-specs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  body.phone-shell.pump-lab-body .pl-spec-box {
    padding: 10px;
    border-radius: 11px;
  }

  body.phone-shell.pump-lab-body .pl-spec-box .label,
  body.phone-shell.pump-lab-body .pl-spec-box .val {
    font-size: 12px;
  }

  body.phone-shell.pump-lab-body .pl-card-actions {
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }

  /* مختبر الطلمبات — تحسينات إضافية على سطح المكتب */
  /* الأمثلة السريعة (quick presets) تصبح 4 أزرار في صف واحد */
  body.phone-shell.pump-lab-body .pl-quick-presets {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
  }

  body.phone-shell.pump-lab-body .pl-quick-presets button {
    flex: 0 1 auto !important;
    min-height: 40px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: var(--pl-primary-light, #EBF4FC) !important;
    color: var(--pl-primary, #0F5B9E) !important;
    border: 1px solid #D0E4F7 !important;
    cursor: pointer !important;
  }

  body.phone-shell.pump-lab-body .pl-quick-presets button:hover {
    background: var(--pl-primary, #0F5B9E) !important;
    color: #fff !important;
  }

  /* نموذج الاختيار السريع — 3 أعمدة على سطح المكتب */
  body.phone-shell.pump-lab-body .pl-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
  }

  /* بطاقة الـ wizard تحصل على padding أوسع */
  body.phone-shell.pump-lab-body .pl-wizard-card {
    padding: 32px 36px !important;
  }

  /* نتائج البحث تظهر في شبكة 2 بطاقة جانباً لجنب */
  body.phone-shell.pump-lab-body .pl-candidates-deck {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }

  /* مواصفات كل بطاقة — 4 أعمدة */
  body.phone-shell.pump-lab-body .pl-card-specs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }


  /* ---------- الصفحات المؤقتة (المنتجات / عرض السعر) ---------- */
  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-page {
    padding: 26px 0;
  }

  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-card {
    width: min(660px, 100%);
    padding: 52px 46px;
    border-radius: 26px;
  }

  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-card h1 {
    font-size: 32px;
  }

  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-card > p:not(.hub-placeholder-kicker) {
    font-size: 16px;
  }

  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-logo {
    width: 210px;
    height: 60px;
  }

  body.phone-shell.tool-phone.placeholder-phone .hub-placeholder-mark {
    width: 72px;
    height: 72px;
    margin-top: 18px;
    border-radius: 22px;
  }

  /* بطاقة «قريباً» العامة خارج غلاف الهاتف */
  .hub-placeholder-page {
    max-width: 900px;
    margin: 30px auto;
  }

  .hub-placeholder-card {
    padding: 48px 40px;
    border-radius: 26px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    box-shadow: 0 16px 40px rgba(11, 52, 114, 0.07);
    text-align: center;
  }

  .hub-placeholder-card h1 {
    font-size: 32px;
    font-weight: 900;
    color: #0B3472;
    margin: 14px 0 10px;
  }

  /* صانع الشخصيات والمساعد PM */
  body.creator-shell .stitch-container {
    max-width: 1040px;
    width: 100%;
    margin: 26px auto 40px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 18px 45px rgba(11, 52, 114, 0.08);
    height: auto;
    min-height: 640px;
    background: #FFFFFF;
  }

  body.creator-shell .stitch-intro-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 0;
  }

  body.creator-shell .stitch-cards-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  body.creator-shell .stitch-card-item {
    flex-direction: column;
    text-align: center;
    padding: 24px 18px;
    gap: 14px;
  }

  body.creator-shell .stitch-card-arrow {
    display: none;
  }

  /* نافذة المحادثة المنبثقة: إطار واسع متمركز بدل إطار الهاتف الضيق */
  .chat-app {
    background: rgba(11, 34, 68, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 24px;
    box-sizing: border-box;
  }

  .chat-app .chat-mobile-frame {
    width: min(760px, 100%);
    max-width: 760px;
    height: min(880px, 94dvh);
    min-height: 0;
    max-height: none;
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(6, 25, 55, 0.45);
    border: 1px solid #E2E8F0;
  }

  /* توسيع بطاقات «عرض سعر» العامة */
  .hub-placeholder-card p {
    font-size: 16px;
    color: #64748B;
    max-width: 600px;
    margin: 0 auto 24px;
  }
}

/* --------------------------------------------------------------------------
   6. صفحة تسجيل الزوار (المبيعات) على سطح المكتب
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  /* بطاقات اختيار التصنيف: أعمدة مريحة بدل بطاقات الهاتف المتراصة */
  body.phone-shell .category-cards-grid {
    gap: 14px;
  }

  body.phone-shell .category-choice-card {
    min-height: 150px;
    padding: 20px 18px;
    border-radius: 18px;
  }

  body.phone-shell .category-card-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 10px;
  }

  body.phone-shell .category-card-title {
    font-size: 15px;
  }
}

/* --------------------------------------------------------------------------
   7. لوحات التحكم (المبيعات / الإدارة) — شاشات عريضة ≥901px
      (نفس نقطة قطع dashboards.css حتى لا تتعارض مع نطاق التابلت)
   -------------------------------------------------------------------------- */
@media (min-width: 901px) {
  /* إخفاء تنقل الهاتف العائم — يوجد شريط جانبي مخصص لسطح المكتب */
  body.phone-shell.dashboard-body .tg-bottom-nav {
    display: none !important;
  }

  /* إعادة جداول سطح المكتب بدل قوائم الهاتف المفروضة */
  body.phone-shell.dashboard-body .table-scroll-desktop {
    display: block !important;
  }

  body.phone-shell.dashboard-body .lead-mobile-list,
  body.phone-shell.dashboard-body .team-mobile-list {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   8. نافذة المساعد الموحدة داخل الأدوات (ديزل / طاقة / طلمبات)
      — مطابقة تماماً لبطاقة المساعد الرئيسي PM على سطح المكتب
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  /* البطاقة المتمركز: نفس أبعاد وزوايا وظل إطار المساعد الرئيسي،
     مع تعتيم خلفية الصفحة عبر ظل ضخم حول البطاقة */
  body.phone-shell .unified-assistant-screen {
    position: fixed;
    inset: 0 !important;
    margin: auto !important;
    width: min(760px, calc(100% - 48px)) !important;
    max-width: min(760px, calc(100% - 48px)) !important;
    height: min(880px, 92dvh) !important;
    min-height: 0 !important;
    max-height: none;
    z-index: 1200;
    border-radius: 26px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FBFDFF !important;
    overflow: hidden;
    box-shadow: 0 0 0 200vmax rgba(11, 34, 68, 0.55), 0 30px 70px rgba(6, 25, 55, 0.45) !important;
  }

  /* الترويسة: نفس إيقاع ترويسة المساعد الرئيسي */
  body.phone-shell .unified-assistant-screen .unified-assistant-live {
    min-height: 74px;
    padding: 12px 22px;
    gap: 12px;
  }

  body.phone-shell .unified-assistant-screen .unified-assistant-avatar {
    width: 44px;
    height: 44px;
  }

  body.phone-shell .unified-assistant-screen .unified-assistant-live strong {
    font-size: 16px;
  }

  /* الرسائل تملأ البطاقة بدل ارتفاع الهاتف المحدود */
  body.phone-shell .unified-assistant-screen .page-assistant-messages,
  body.phone-shell .unified-assistant-screen .sd-chat-messages,
  body.phone-shell .unified-assistant-screen .pl-chat-messages {
    max-height: none !important;
    flex: 1 1 auto;
    padding: 22px;
    gap: 14px;
    font-size: 14px;
  }

  /* شريط الإدخال: نفس خلفية وحقل المساعد الرئيسي */
  body.phone-shell .unified-assistant-screen .page-assistant-form,
  body.phone-shell .unified-assistant-screen .sd-chat-input-row,
  body.phone-shell .unified-assistant-screen .pl-chat-input-bar {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FBFF 100%);
    border-top: 1px solid #E2E8F0;
    border-radius: 0;
    padding: 12px 16px;
    gap: 9px;
  }

  body.phone-shell .unified-assistant-screen .page-assistant-form input,
  body.phone-shell .unified-assistant-screen .page-assistant-form textarea,
  body.phone-shell .unified-assistant-screen .sd-chat-input,
  body.phone-shell .unified-assistant-screen .sd-chat-input-row input,
  body.phone-shell .unified-assistant-screen .sd-chat-input-row textarea,
  body.phone-shell .unified-assistant-screen .pl-chat-input-bar input,
  body.phone-shell .unified-assistant-screen .pl-chat-input-bar textarea {
    min-height: 46px;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    background: #FFFFFF;
    color: #173761;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 14px;
  }

  /* زر الإرسال: دائري بألوان المساعد الرئيسي */
  body.phone-shell .unified-assistant-screen .page-assistant-form button,
  body.phone-shell .unified-assistant-screen .sd-btn-send,
  body.phone-shell .unified-assistant-screen .pl-btn-send {
    width: 46px;
    height: 46px;
    min-width: 0;
    min-height: 0;
    flex: 0 0 46px;
    border-radius: 50%;
    background: #EEF6FF;
    color: #0066FF;
  }

  body.phone-shell .unified-assistant-screen .page-assistant-form button svg,
  body.phone-shell .unified-assistant-screen .sd-btn-send svg,
  body.phone-shell .unified-assistant-screen .pl-btn-send svg {
    width: 20px;
    height: 20px;
  }

  /* نص «إرسال» داخل زر الطاقة يُخفى ليطابق أيقونة الرئيسي فقط */
  body.phone-shell .unified-assistant-screen .sd-btn-send span,
  body.phone-shell .unified-assistant-screen .pl-btn-send span {
    display: none;
  }

  /* اقتراحات المساعد: نفس حبّات الأزرار السريعة في المساعد الرئيسي */
  body.phone-shell .unified-assistant-screen .dvs-assistant-suggestions,
  body.phone-shell .unified-assistant-screen .sd-suggestions,
  body.phone-shell .unified-assistant-screen .pl-chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  body.phone-shell .unified-assistant-screen .dvs-assistant-suggestions button,
  body.phone-shell .unified-assistant-screen .dvs-assistant-suggestions a {
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 9999px;
    border: 1px solid #E0EFFF;
    background: #FFFFFF;
    color: #0066FF;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
  }

  body.phone-shell .unified-assistant-screen .dvs-assistant-suggestions button:hover,
  body.phone-shell .unified-assistant-screen .dvs-assistant-suggestions a:hover {
    background: #F0F7FF;
  }

  body.phone-shell .unified-assistant-screen .page-assistant-msg {
    width: fit-content;
    max-width: 88%;
    font-size: 14px;
  }

  body.phone-shell .unified-assistant-screen .page-assistant-msg.user {
    margin-inline-start: auto;
  }

  /* --------------------------------------------------------------------------
     10. لوحة الإدارة والمبيعات كصفحة جانبية على سطح المكتب (Side Panel / Drawer Mode)
     - الشريط الجانبي ثابت على أقصى اليمين (110px)
     - محتوى لوحة التحكم يفتح كصفحة جانبية أنيقة ملاصقة للشريط الجانبي (~620px)
     - خلفية الموقع تظل ظاهرة على اليسار
     - أزرار تسجيل الزائر وفئاته منسقة كعمودين متناسقين تماماً
     - يعمل حصرياً على سطح المكتب (≥769px) ولا يمس الهاتف إطلاقاً
     -------------------------------------------------------------------------- */
  body.dashboard-body .dash-layout-container,
  body.sales-mode .dash-layout-container {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important; /* يبدأ من اليمين في RTL */
    align-items: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 72px) !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* الشريط الجانبي الأيمن — ثابت ومرتّب */
  body.dashboard-body .dash-sidebar,
  body.sales-mode .dash-sidebar {
    display: flex !important;
    position: sticky !important;
    top: 72px !important;
    height: calc(100vh - 72px) !important;
    width: 110px !important;
    min-width: 110px !important;
    flex-shrink: 0 !important;
    background: #FFFFFF !important;
    border-left: 1px solid #E2E8F0 !important;
    border-right: none !important;
    padding: 24px 10px 20px !important;
    box-sizing: border-box !important;
    z-index: 90 !important;
    box-shadow: -4px 0 16px rgba(15, 23, 42, 0.03) !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.dashboard-body .dash-nav-items,
  body.sales-mode .dash-nav-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
  }

  body.dashboard-body .dash-nav-btn,
  body.sales-mode .dash-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 100% !important;
    padding: 12px 6px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    color: #64748B !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    min-height: unset !important;
  }

  body.dashboard-body .dash-nav-btn:hover,
  body.sales-mode .dash-nav-btn:hover {
    background: #F1F5F9 !important;
    color: #087AF1 !important;
  }

  body.dashboard-body .dash-nav-btn.active,
  body.sales-mode .dash-nav-btn.active {
    background: #087AF1 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(8, 122, 241, 0.3) !important;
  }

  body.dashboard-body .dash-nav-btn svg,
  body.sales-mode .dash-nav-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  /* الصفحة الجانبية الملاصقة للشريط الجانبي (خاصة بنمط تسجيل مندوب المبيعات السريع فقط) */
  body.sales-mode:not(.admin-dashboard-body) .dash-main-content {
    width: min(620px, calc(100vw - 140px)) !important;
    max-width: 620px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 22px 20px 60px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    min-height: calc(100vh - 72px) !important;
    overflow-y: visible !important;
  }

  /* لوحة الإدارة العامة والسوبر أدمن — شاشة سطح مكتب متسعة ومريحة تمنع أي تراكب */
  body.admin-dashboard-body .dash-layout-container,
  body.dashboard-body:not(.sales-mode) .dash-layout-container {
    width: 100% !important;
    max-width: none !important;
    min-height: calc(100vh - 72px) !important;
    display: flex !important;
    flex-direction: row !important;
  }

  body.admin-dashboard-body .dash-main-content,
  body.dashboard-body:not(.sales-mode) .dash-main-content {
    width: calc(100% - 110px) !important;
    max-width: 1440px !important;
    flex: 1 1 auto !important;
    margin: 0 !important;
    padding: 22px 28px 60px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    min-height: calc(100vh - 72px) !important;
    overflow-y: visible !important;
  }

  /* الشريط العلوي للوحة التحكم والصفحات الجانبية — منع التراكب تماماً */
  body.dashboard-body .dash-header-bar,
  body.sales-mode .dash-header-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px 18px !important;
    padding: 14px 20px !important;
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
    position: static !important;
    backdrop-filter: none !important;
    box-sizing: border-box !important;
  }

  body.dashboard-body .dash-header-logo,
  body.sales-mode .dash-header-logo {
    height: 38px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  body.dashboard-body .dash-header-titles,
  body.sales-mode .dash-header-titles {
    flex: 1 1 260px !important;
    min-width: 240px !important;
    text-align: right !important;
  }

  body.dashboard-body .dash-header-titles h1,
  body.sales-mode .dash-header-titles h1 {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  body.dashboard-body .dash-header-titles p,
  body.sales-mode .dash-header-titles p {
    font-size: 12px !important;
    color: #64748B !important;
    margin: 0 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
  }

  body.dashboard-body .dash-header-user-group,
  body.sales-mode .dash-header-user-group {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
    flex-shrink: 0 !important;
  }

  body.dashboard-body .dash-expo-pill,
  body.dashboard-body .dash-user-pill {
    white-space: nowrap !important;
  }

  /* البطاقات داخل الصفحة الجانبية */
  body.dashboard-body .dash-panel-card,
  body.sales-mode .dash-panel-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 18px 20px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
  }

  /* بطاقات المؤشرات الـ 4 كشبكة 2×2 لتناسب العرض الجانبي */
  body.dashboard-body .dash-kpi-grid-4 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }

  body.dashboard-body .dash-kpi-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  }

  body.dashboard-body .dash-kpi-card h3 {
    font-size: 12px !important;
    color: #64748B !important;
    margin: 0 0 4px !important;
    font-weight: 700 !important;
  }

  body.dashboard-body .dash-kpi-card .kpi-val {
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0F172A !important;
    font-family: 'Plus Jakarta Sans', sans-serif !important;
  }

  body.dashboard-body .dash-kpi-card .kpi-subtext {
    font-size: 10px !important;
    color: #94A3B8 !important;
    margin-top: 2px !important;
  }

  /* الإجراءات السريعة وملخص اليوم */
  body.dashboard-body .dash-bottom-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  body.dashboard-body .rep-quick-actions-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  body.dashboard-body .rep-quick-btn {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: 1px solid #E2E8F0 !important;
    background: #F8FAFC !important;
    color: #1E293B !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
  }

  body.dashboard-body .rep-quick-btn:hover {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
    color: #087AF1 !important;
    transform: translateY(-1px) !important;
  }

  /* --------------------------------------------------------------------------
     أزرار وبطاقات تسجيل الزائر داخل الصفحة الجانبية (شاشة التأهيل)
     -------------------------------------------------------------------------- */
  body.phone-shell.sales-mode .sales-stepper-container {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 16px 18px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
    margin-bottom: 14px !important;
  }

  body.phone-shell.sales-mode .step-main-title {
    font-size: 17px !important;
    font-weight: 800 !important;
  }

  body.phone-shell.sales-mode .step-number-badge {
    font-size: 12px !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
  }

  body.phone-shell.sales-mode .sales-mobile-brief {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, #0284C7, #2563EB) !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
    margin-bottom: 12px !important;
  }

  body.phone-shell.sales-mode .sales-mobile-brief strong {
    font-size: 14px !important;
  }

  body.phone-shell.sales-mode .sales-mobile-brief small {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 11px !important;
  }

  /* شبكة بطاقات فئة العميل (أزرار الاسكرين الأخرى) كعمودين أنيقين في الصفحة الجانبية */
  body.phone-shell.sales-mode .category-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  body.phone-shell.sales-mode .category-choice-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 15px 14px !important;
    background: #FFFFFF !important;
    border: 2px solid #E2E8F0 !important;
    border-radius: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03) !important;
    min-height: 120px !important;
    box-sizing: border-box !important;
  }

  body.phone-shell.sales-mode .category-choice-card:hover {
    border-color: #93C5FD !important;
    background: #F8FAFC !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08) !important;
  }

  body.phone-shell.sales-mode .category-choice-card.selected {
    border-color: #2563EB !important;
    background: #EFF6FF !important;
    box-shadow: 0 0 0 1px #2563EB, 0 8px 20px rgba(37, 99, 235, 0.12) !important;
  }

  body.phone-shell.sales-mode .category-card-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    background: #EFF6FF !important;
    color: #2563EB !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease !important;
  }

  body.phone-shell.sales-mode .category-choice-card.selected .category-card-icon {
    background: #2563EB !important;
    color: #FFFFFF !important;
  }

  body.phone-shell.sales-mode .category-card-title {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin: 0 0 4px !important;
    line-height: 1.3 !important;
  }

  body.phone-shell.sales-mode .category-card-desc {
    font-size: 11px !important;
    color: #64748B !important;
    line-height: 1.4 !important;
    margin: 0 !important;
  }

  body.phone-shell.sales-mode .card-check-indicator {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #CBD5E1 !important;
    background: #FFFFFF !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
  }

  body.phone-shell.sales-mode .category-choice-card.selected .card-check-indicator {
    border-color: #2563EB !important;
    background: #2563EB !important;
    color: #FFFFFF !important;
  }

  /* الخطوة 2: الاهتمامات كشبكة 2 أعمدة مرتبة */
  body.phone-shell.sales-mode .interests-choice-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  body.phone-shell.sales-mode .interest-choice-pill {
    padding: 12px 14px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
  }

  /* الخطوة 3: بطاقة إدخال بيانات العميل */
  body.phone-shell.sales-mode .client-info-form-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 18px 20px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
  }

  /* الخطوة 4: بطاقة النتيجة */
  body.phone-shell.sales-mode .qualification-result-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 20px !important;
    padding: 22px 20px !important;
    box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.06) !important;
  }

  /* جدول العملاء في الصفحة الجانبية */
  body.dashboard-body .sales-clients-table-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 18px !important;
    padding: 18px 16px !important;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05) !important;
  }

  body.dashboard-body .table-scroll-desktop {
    overflow-x: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: #BFDBFE #F1F5F9 !important;
  }

  body.dashboard-body .table-scroll-desktop::-webkit-scrollbar {
    height: 6px !important;
  }

  body.dashboard-body .table-scroll-desktop::-webkit-scrollbar-thumb {
    background: #BFDBFE !important;
    border-radius: 4px !important;
  }
}

