/* =========================
       1) FONT FACE – SHABNAM
       ========================== */

    @font-face {
      font-family: "Shabnam";
      src: url("../fonts/shabnam/Shabnam-FD-WOL.woff2") format("woff2"),
        url("../fonts/shabnam/Shabnam-FD-WOL.woff") format("woff");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Shabnam";
      src: url("../fonts/shabnam/Shabnam-Medium-FD-WOL.woff2") format("woff2"),
        url("../fonts/shabnam/Shabnam-Medium-FD-WOL.woff") format("woff");
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Shabnam";
      src: url("../fonts/shabnam/Shabnam-Bold-FD-WOL.woff2") format("woff2"),
        url("../fonts/shabnam/Shabnam-Bold-FD-WOL.woff") format("woff");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }


    /* =========================
       2) DESIGN TOKENS (DAYAN)
       ========================== */

    :root {
      --font-sans-latin: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-sans-arabic: "Shabnam", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --dayan-blue: #1C2C3A;
    --dayan-teal: #1BA7A6;
    --dayan-teal-light: #D4F4EF;
    --dark-ink: #0D2735;
    --accent: #2BB2A8;
    --soft-bg: #F1F7FB;
    --gray: #6C757D;
    --gray-soft: #E5EDF4;
    --danger: #E55353;
    --success: #2EAD70;
    }

    .text-number {
      font-family: var(--font-sans-latin);
      font-weight: 500;
      letter-spacing: 0.03em;
    }

    /* =========================
       3) GLOBAL LAYOUT
       ========================== */

    * {
      box-sizing: border-box;
      -webkit-user-select: none;
      user-select: none;
      -webkit-touch-callout: none;
    }

    html,
    body {
      height: 100%;
    }

    body {
      margin: 0;
      background: radial-gradient(circle at top, #D4F4EF 0, #F6FBFC 40%, #E9F3F7 100%);
      color: var(--dayan-blue);
      font-family: var(--font-sans-arabic);
      -webkit-font-smoothing: antialiased;
      display: flex;
      justify-content: center;
      align-items: stretch;
      font-size: 16px;
      line-height: 1.6;
    }

    .app-shell {
      width: 100%;
      max-width: 480px;
      min-height: 100vh;
      min-height: 100dvh;
      padding: 8px 14px calc(14px + env(safe-area-inset-bottom, 0));
      /* قبلاً 12 / 18 / 16 بود */
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 10px;
      position: relative;
    }


    



/* زیرتیتر «آخرین تردد» زیر اسم کاربر */
    .last-status-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
      font-size: 11px;
      color: var(--gray);
      background: transparent;
      padding: 0;
    }

    .last-status-chip i {
      font-size: 12px;
      color: var(--accent);
    }

    .desktop-blocker {
      position: fixed;
      inset: 0;
      background: #0E1E27;
      color: #fff;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
    }

    .desktop-blocker-inner {
      max-width: 480px;
      padding: 20px;
    }

    .overlay-title {
      font-weight: 600;
      margin-top: 10px;
      margin-bottom: 4px;
    }

    .overlay-text {
      font-size: 11px;
      color: var(--gray);
    }

    .desktop-title {
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .desktop-text {
      font-size: 14px;
      line-height: 1.9;
      color: #D8E6EE;
    }

    .desktop-note {
      font-family: var(--font-sans-latin);
      font-size: 11px;
      opacity: .7;
      margin-top: 10px;
    }

    .orientation-blocker {
      position: fixed;
      inset: 0;
      background: radial-gradient(circle at top, #020910 0, #04121D 55%, #000000 100%);
      color: #fff;
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 24px;
    }

    .orientation-blocker-inner {
      max-width: 420px;
      padding: 16px;
    }

    .orientation-title {
      font-size: 22px;
      font-weight: 700;
      margin-top: 14px;
      margin-bottom: 8px;
    }

    .orientation-text {
      font-size: 15px;
      line-height: 1.9;
      color: #D8E6EE;
    }

    .dayan-sleep {
      position: relative;
      width: 100%;
      max-width: 260px;
      margin: 0 auto;
    }

    .dayan-img {
      display: block;
      width: 70%;
      height: auto;
      margin: 0 auto;
    }

    .dayan-page-loader {
      position: fixed;
      inset: 0;
      z-index: 12000;
      background: radial-gradient(circle at top, rgba(212, 244, 239, 0.96) 0, rgba(15, 23, 42, 0.86) 70%);
      backdrop-filter: blur(8px);

      display: none;
      /* پیش‌فرض اصلاً دیده نشه */
      align-items: center;
      justify-content: center;
      padding: 24px;

      opacity: 0;
      pointer-events: none;
      transition: opacity .35s ease-out;
    }

    .dayan-page-loader-inner {
      width: 100%;
      max-width: 360px;
      background: #04121D;
      border-radius: 24px;
      padding: 18px 18px 16px;
      text-align: center;
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.45);
    }

    .dayan-page-loader-avatar {
      width: 140px;
      height: 140px;
      margin: 0 auto 12px;
      border-radius: 999px;
      background: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow:
        0 0 0 4px #ECFEFF,
        0 14px 26px rgba(15, 23, 42, 0.28);
    }

    .dayan-page-loader-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .dayan-page-loader-text {
      font-size: 16px;
      font-weight: 700;
      color: var(--dayan-blue);
    }
