/* ═══════════════════════════════
   MOBILE BOTTOM NAV — ثابت تمامًا
═══════════════════════════════ */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;

    position: fixed;
    bottom: 12px; /* ✅ جعله عائم */
    right: 12px;
    left: 12px;

    height: calc(60px + env(safe-area-inset-bottom, 0px));
    min-height: calc(60px + env(safe-area-inset-bottom, 0px));
    max-height: calc(60px + env(safe-area-inset-bottom, 0px));

    /* ✅ Glass Effect */
    background: var(--color-block);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    /* ✅ حدود زجاجية */
    border: 1px solid var(--color-border);

    /* ✅ حواف ناعمة */
    border-radius: 18px;

    /* ✅ ظل عائم */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

    z-index: 300;
    padding-bottom: env(safe-area-inset-bottom, 0px);

    /* ✅ ثبات الأداء */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    backface-visibility: hidden;
    contain: strict;
  }

  [data-theme="light"] .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  }

  .mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;

    height: 60px;
    min-height: 60px;

    color: var(--color-text-muted);
    text-decoration: none;

    transition: all 0.25s ease;

    padding: 8px 4px;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: none;

    font-family: var(--font-family);

    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    flex-grow: 1;
    flex-basis: 0;
    overflow: hidden;
  }

  [data-theme="dark"] .mob-nav-item {
     color: rgba(255, 255, 255, 0.6);
  }

  /* ✅ Hover / Active */
  .mob-nav-item:hover,
  .mob-nav-item--active {
    color: var(--color-primary) !important;
  }

  /* ✅ Glow خفيف */
  .mob-nav-item:hover {
    background: var(--color-block-hover);
    border-radius: 12px;
  }

  .mob-nav-item--active {
    background: var(--color-primary-light);
    border-radius: 12px;
  }

  .mob-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition: all 0.25s ease;
  }

  /* ✅ تكبير بسيط عند التفاعل */
  .mob-nav-item:hover svg,
  .mob-nav-item--active svg {
    transform: scale(1.1);
  }

  .mob-nav-label {
    font-family: var(--font-family);
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;

    transition: all 0.25s ease;
  }

  .mob-nav-dot {
    display: none;
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    border-radius: 50%;

    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .mob-nav-item--active .mob-nav-dot {
    display: block;
    box-shadow: 0 0 6px var(--color-primary);
  }
}