/* ROOH phone tab bar (shared/_tabbar, docs/72). Shown below 768 px and in the Telegram Mini App, like before.
   Duotone ROOH icons, an electric-blue pill under the current tab, the «+» as a steel ring around a blue core
   (the emblem's look). Only looks: the same five links, the same order and labels. Loaded after the premium styles. */
@media (max-width: 767.98px) {
  body.pp-has-tabbar { --pp-tabbar-h: 72px; }
  .rooh-tabbar {
    --rt-ink: #8d9ab0;
    --rt-on: #8cc8ff;
    --rt-pill: rgba(31, 107, 255, .18);
    padding-bottom: calc(8px + max(env(safe-area-inset-bottom, 0px), var(--pp-tg-safe-bottom, 0px)));
    background: linear-gradient(180deg, rgba(13, 20, 33, .9), rgba(7, 10, 16, .94));
    border-top: 0;
    box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -14px 30px -18px rgba(31, 107, 255, .55);
  }
  /* A thin steel hairline along the top edge. */
  .rooh-tabbar::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(223, 229, 236, .45) 20%, rgba(140, 200, 255, .6) 50%, rgba(223, 229, 236, .45) 80%, transparent);
  }
  .rooh-tabbar a { position: relative; color: var(--rt-ink); gap: 3px; min-width: 60px; }
  .rooh-tabbar a > span:not(.pp-plus) { letter-spacing: .01em; }
  .rooh-tabbar .rooh-tab-icon { width: 46px; height: 30px; padding: 4px 12px; box-sizing: border-box; border-radius: 999px; overflow: visible; transition: background-color .2s ease, color .2s ease; }
  .rooh-tabbar .rooh-tab-icon .d { fill: currentColor; stroke: none; opacity: .14; }
  .rooh-tabbar a[aria-current="page"] { color: var(--rt-on); }
  .rooh-tabbar a[aria-current="page"] .rooh-tab-icon { background: var(--rt-pill); box-shadow: inset 0 0 0 1px rgba(140, 200, 255, .25), 0 0 16px -6px rgba(31, 107, 255, .9); }
  .rooh-tabbar a[aria-current="page"] .rooh-tab-icon .d { opacity: .35; }
  .rooh-tabbar a:focus-visible { outline: 2px solid var(--rt-on); outline-offset: 2px; border-radius: 14px; }

  /* «+»: steel ring, blue core, raised over the bar. */
  .rooh-tabbar .pp-plus {
    width: 58px; height: 58px; margin-top: -28px; border-radius: 50%; color: #ffffff;
    border: 3px solid transparent;
    background:
      radial-gradient(circle at 50% 35%, #4d94ff 0%, #1f6bff 55%, #0a3fae 100%) padding-box,
      conic-gradient(from 200deg, #f5f8fb, #8691a0, #ffffff, #4f5a68, #dfe5ec, #97a3b1, #f5f8fb) border-box;
    box-shadow: 0 0 0 4px var(--pp-page, #070a10), 0 10px 22px -8px rgba(0, 0, 0, .8), 0 0 26px -6px rgba(31, 107, 255, .9);
  }
  .rooh-tabbar a[aria-current="page"] .pp-plus { box-shadow: 0 0 0 4px var(--pp-page, #070a10), 0 0 0 6px rgba(140, 200, 255, .55), 0 0 30px -4px rgba(31, 107, 255, 1); }

  /* Day theme: light glass, ROOH navy-blue for the current tab. */
  :root[data-pp-theme="light"] .rooh-tabbar { --rt-ink: #5e677a; --rt-on: #1554d6; --rt-pill: rgba(31, 107, 255, .12); background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(243, 246, 252, .95)); box-shadow: 0 -1px 0 rgba(17, 24, 39, .07), 0 -12px 26px -18px rgba(31, 107, 255, .35); }
  :root[data-pp-theme="light"] .rooh-tabbar::before { background: linear-gradient(90deg, transparent, rgba(31, 107, 255, .35) 50%, transparent); }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .rooh-tabbar a, .rooh-tabbar .rooh-tab-icon { transition: none; }
  .rooh-tabbar a:active { transform: none; }
}
