    /* ==========================================================================
       V17 — PIN privacy · WhatsApp contact · edit-access control ·
             notification page · session persistence · sidebar · footer
       ========================================================================== */

    /* ---------- 1. Mess PIN is moderator-only ---------- */
    body.member-mode .pin-only,
    body.member-mode [data-pin-only] {
      display: none !important;
    }

    /* ---------- 2. WhatsApp contact ---------- */
    .wa-contact {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 13px;
      border-radius: 999px;
      background: #25D366;
      color: #fff !important;
      font-size: 0.78rem;
      font-weight: 800;
      text-decoration: none !important;
      border: 0;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: 0 4px 12px rgba(37, 211, 102, .28);
      transition: transform .15s ease, box-shadow .15s ease;
    }

    .wa-contact:hover {
      transform: translateY(-1px);
      box-shadow: 0 7px 18px rgba(37, 211, 102, .38);
      color: #fff !important;
    }

    .wa-contact svg {
      width: 15px;
      height: 15px;
      fill: currentColor;
      flex: 0 0 auto;
    }

    .wa-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 8px;
    }

    .wa-row .wa-number {
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--text);
      direction: ltr;
    }

    .mess-member-item .wa-contact {
      padding: 6px 11px;
      font-size: 0.72rem;
    }

    /* ---------- 3. Edit access ---------- */
    body.edit-granted #tab-dailyMeal [data-role-only="moderator"],
    body.edit-granted #tab-bazarList [data-role-only="moderator"],
    body.edit-granted #tab-bazarDuty [data-role-only="moderator"],
    body.edit-granted #tab-results [data-role-only="moderator"] {
      display: revert !important;
    }

    .access-card .access-list {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
      gap: 9px;
      margin-top: 12px;
    }

    .access-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid var(--border);
      background: var(--surface2);
    }

    .access-item strong {
      font-size: 0.85rem;
      font-weight: 800;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .access-item small {
      display: block;
      font-size: 0.68rem;
      font-weight: 600;
      color: var(--text2);
    }

    .access-switch {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      font-size: 0.75rem;
      font-weight: 800;
      cursor: pointer;
      white-space: nowrap;
    }

    .access-switch input {
      width: 16px;
      height: 16px;
      accent-color: #17c86a;
      cursor: pointer;
    }

    .access-banner {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 9px;
      padding: 10px 13px;
      margin-bottom: 12px;
      border-radius: 12px;
      font-size: 0.79rem;
      font-weight: 700;
      color: #b45309;
      background: rgba(245, 158, 11, .12);
      border: 1px solid rgba(245, 158, 11, .3);
    }

    body.edit-granted .access-banner {
      color: #0f9d58;
      background: rgba(23, 200, 106, .12);
      border-color: rgba(23, 200, 106, .3);
    }

    /* ---------- 4. Notification page ---------- */
    #dashboardNotifications,
    #dashboardNotificationBadge,
    #topNotificationBadge,
    .dashboard-live-panel {
      display: none !important;
    }

    .notif-page-hero {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding: 20px 22px;
      margin-bottom: 16px;
      border-radius: 18px;
      color: #fff;
      background: linear-gradient(120deg, #4f6ef0, #9333ea 92%);
      box-shadow: 0 18px 44px rgba(79, 110, 240, .22);
    }

    .notif-page-hero h2 {
      margin: 0 0 4px;
      font-size: 1.25rem;
      font-weight: 800;
    }

    .notif-page-hero p {
      margin: 0;
      font-size: 0.82rem;
      opacity: .92;
    }

    .notif-filter-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .notif-chip {
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid var(--border);
      background: var(--surface2);
      font-size: 0.76rem;
      font-weight: 800;
      cursor: pointer;
      color: var(--text2);
    }

    .notif-chip.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    .header-bell-foot .btn {
      font-weight: 800;
    }

    /* ---------- 7. Sidebar mess name ---------- */
    .sidebar-mess-name {
      background: transparent !important;
      border: 1px dashed var(--border);
      font-size: 0.95rem !important;
      font-weight: 900 !important;
      color: var(--text) !important;
      padding: 10px 8px !important;
      gap: 9px !important;
    }

    .sidebar-mess-icon {
      font-size: 1.35rem !important;
      line-height: 1 !important;
    }

    @media (min-width: 901px) {

      .responsive-sidebar:not(:hover):not(.force-open) .sidebar-mess-name,
      body:not(.sidebar-pinned):not(.sidebar-click-open) .responsive-sidebar:not(:hover) .sidebar-mess-name {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        border-style: solid;
        border-color: transparent;
      }

      .responsive-sidebar:not(:hover):not(.force-open) .sidebar-mess-icon,
      body:not(.sidebar-pinned):not(.sidebar-click-open) .responsive-sidebar:not(:hover) .sidebar-mess-icon {
        font-size: 1.5rem !important;
      }
    }

    /* ---------- 8. Footer ---------- */
    .page-footer {
      display: none !important;
    }

    .app-footer {
      margin: 34px 0 0;
      padding: 34px clamp(18px, 4vw, 46px) 0;
      border-top: 1px solid var(--border);
      background: var(--surface);
      color: var(--text2);
    }

    body.show-homepage .app-footer,
    body.show-auth-page .app-footer {
      display: none !important;
    }

    .app-footer-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
      gap: clamp(20px, 3vw, 46px);
      max-width: 1280px;
      margin: 0 auto;
    }

    .app-footer-brand-row {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 12px;
    }

    .app-footer-brand-row img {
      width: 42px;
      height: 42px;
    }

    .app-footer-brand-row strong {
      font-family: 'Sora', sans-serif;
      font-size: 1.12rem;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .app-footer p.app-footer-about {
      font-size: 0.82rem;
      line-height: 1.75;
      margin: 0 0 14px;
      max-width: 42ch;
    }

    .app-footer h4 {
      font-size: 0.76rem;
      font-weight: 900;
      letter-spacing: .08em;
      text-transform: uppercase;
      color: var(--text);
      margin: 0 0 14px;
    }

    .app-footer-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .app-footer-links a,
    .app-footer-links button {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: none;
      border: 0;
      padding: 0;
      font: inherit;
      font-size: 0.83rem;
      color: var(--text2);
      text-decoration: none;
      cursor: pointer;
      text-align: left;
      transition: color .15s ease, transform .15s ease;
      width: fit-content;
    }

    .app-footer-links a:hover,
    .app-footer-links button:hover {
      color: var(--accent);
      transform: translateX(2px);
    }

    .app-footer-links i {
      font-size: 0.95rem;
      opacity: .8;
      width: 17px;
      text-align: center;
      flex: 0 0 auto;
    }

    .app-footer-contact a span {
      word-break: break-word;
    }

    .app-footer-social {
      display: flex;
      gap: 9px;
      flex-wrap: wrap;
    }

    .app-footer-social a {
      width: 38px;
      height: 38px;
      border-radius: 11px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border: 1px solid var(--border);
      background: var(--surface2);
      color: var(--text2);
      font-size: 1.02rem;
      text-decoration: none;
      transition: transform .15s ease, background .15s ease, color .15s ease;
    }

    .app-footer-social a:hover {
      transform: translateY(-2px);
      color: #fff;
    }

    .app-footer-social a.fb:hover {
      background: #1877f2;
      border-color: #1877f2;
    }

    .app-footer-social a.wa:hover {
      background: #25D366;
      border-color: #25D366;
    }

    .app-footer-social a.mail:hover {
      background: var(--accent);
      border-color: var(--accent);
    }

    .app-footer-bottom {
      max-width: 1280px;
      margin: 26px auto 0;
      padding: 18px 0 22px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      font-size: 0.8rem;
    }

    .app-footer-bottom a {
      color: var(--accent);
      font-weight: 800;
      text-decoration: none;
    }

    .app-footer-bottom a:hover {
      text-decoration: underline;
    }

    .app-footer-made {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    @media (max-width: 1000px) {
      .app-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px;
      }

      .app-footer-brand {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 560px) {
      .app-footer {
        padding: 26px 18px 0;
        margin-top: 26px;
      }

      .app-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
      }

      .app-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
      }
    }
  
