/**
 * VISHNITA App Experience — mobile-first shell and premium touch surfaces.
 */
.tor-app-bottom-nav,
.tor-app-search-layer,
.tor-app-install-card { font-family: inherit; }

.tor-app-bottom-nav { display: none; }
.tor-app-search-layer[hidden],
.tor-app-install-card[hidden] { display: none !important; }

.tor-app-search-layer {
  position: fixed;
  z-index: 100020;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 31, 51, .48);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 1;
  overscroll-behavior: contain;
}
.tor-app-search-card {
  width: min(100%, 620px);
  padding: clamp(21px, 5vw, 30px);
  border: 1px solid rgba(215, 229, 245, .96);
  border-radius: 25px;
  background: linear-gradient(155deg, #fff 0%, #f7fbff 100%);
  box-shadow: 0 26px 90px rgba(7, 29, 57, .25);
  animation: tor-app-sheet-in .2s ease-out both;
}
.tor-app-search-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.tor-app-search-kicker { display: block; margin-bottom: 8px; color: #2864b5; font-size: 10px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.tor-app-search-heading h2 { max-width: 470px; margin: 0; color: #17324d; font-size: clamp(23px, 5.7vw, 32px); line-height: 1.12; letter-spacing: -.045em; }
.tor-app-search-close, .tor-app-install-dismiss {
  display: grid;
  flex: 0 0 40px;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dbe6f2;
  border-radius: 13px;
  background: #fff;
  color: #34536f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.tor-app-search-form { display: flex; gap: 9px; margin: 23px 0 10px; }
.tor-app-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #cbdced;
  border-radius: 14px;
  background: #fff;
  color: #17324d;
  font: inherit;
  box-shadow: 0 2px 6px rgba(23, 50, 77, .035);
}
.tor-app-search-form input:focus { outline: 0; border-color: #2864b5; box-shadow: 0 0 0 4px rgba(40, 100, 181, .14); }
.tor-app-search-form button {
  flex: 0 0 auto;
  min-width: 94px;
  padding: 0 17px;
  border: 1px solid #20589e;
  border-radius: 14px;
  background: linear-gradient(145deg, #397bd0, #1d4e91);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 7px 16px rgba(40, 100, 181, .2);
  cursor: pointer;
}
.tor-app-search-card > p { margin: 10px 0 0; color: #70859a; font-size: 12px; line-height: 1.6; }
body.tor-app-search-open { overflow: hidden; }

.tor-app-install-card {
  position: fixed;
  z-index: 100010;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 570px;
  margin-inline: auto;
  padding: 12px;
  border: 1px solid #d5e4f6;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 15px 48px rgba(17, 47, 82, .18);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.tor-app-install-mark { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg,#eaf3ff,#dbeaff); color: #2864b5; font-size: 22px; font-weight: 800; }
.tor-app-install-copy { display: grid; flex: 1 1 auto; min-width: 0; gap: 3px; }
.tor-app-install-copy strong { color: #17324d; font-size: 12px; font-weight: 850; }
.tor-app-install-copy span { color: #657e96; font-size: 10px; line-height: 1.45; }
.tor-app-install-action { flex: 0 0 auto; min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: #2864b5; color: #fff; font-size: 11px; font-weight: 800; cursor: pointer; }
.tor-app-install-dismiss { flex-basis: 30px; width: 30px; height: 30px; border-radius: 10px; font-size: 21px; }

.tor-app-nav-item:focus-visible,
.tor-app-search-close:focus-visible,
.tor-app-search-form button:focus-visible,
.tor-app-install-action:focus-visible,
.tor-app-install-dismiss:focus-visible { outline: 3px solid rgba(40,100,181,.35); outline-offset: 3px; }

@keyframes tor-app-sheet-in { from { transform: translateY(16px); opacity: .65; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 899px) {
  body.tor-app-shell-active { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tor-app-bottom-nav {
    position: fixed;
    z-index: 99990;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
    border-top: 1px solid rgba(214, 227, 241, .9);
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 -12px 35px rgba(18, 43, 67, .08);
    -webkit-backdrop-filter: blur(18px) saturate(1.45);
    backdrop-filter: blur(18px) saturate(1.45);
  }
  .tor-app-nav-item {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 53px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 3px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: #70849a;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease, background-color .16s ease, transform .16s ease;
  }
  .tor-app-nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  .tor-app-nav-item span { overflow: hidden; max-width: 100%; font-size: 10px; font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
  .tor-app-nav-item.is-active { border-color: #d8e8fb; background: linear-gradient(160deg, #eef6ff, #e4f0ff); color: #245d9f; }
  .tor-app-nav-item.is-active::before { position: absolute; top: -1px; width: 19px; height: 3px; border-radius: 0 0 4px 4px; background: #2864b5; content: ""; }
  .tor-app-nav-item:active { transform: scale(.96); }
  .tor-menu-toggle { min-height: 44px; }
  .tor-home-intro { margin-top: 14px; }
  .tor-app-search-layer { align-items: end; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .tor-app-install-card { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 700px) {
  body.tor-app-shell-active .tor-topbar { display: none; }
  body.tor-app-shell-active .tor-header-search { display: none !important; }
}

@media (max-width: 380px) {
  .tor-app-bottom-nav { gap: 0; padding-inline: max(5px, env(safe-area-inset-left, 0px)) max(5px, env(safe-area-inset-right, 0px)); }
  .tor-app-nav-item { min-height: 51px; border-radius: 11px; }
  .tor-app-nav-item svg { width: 20px; height: 20px; }
  .tor-app-nav-item span { font-size: 9px; }
  .tor-app-search-card { padding: 19px; border-radius: 22px; }
  .tor-app-search-form { flex-direction: column; }
  .tor-app-search-form button { min-height: 48px; }
  .tor-app-install-card { gap: 8px; padding: 10px; }
  .tor-app-install-mark { display: none; }
  .tor-app-install-action { padding-inline: 11px; }
}
@media (min-width: 701px) and (max-width: 899px) {
  body.tor-js.tor-app-shell-active .tor-nav-shell { position: static; border: 0; background: transparent; }
  body.tor-js.tor-app-shell-active .tor-nav-inner { width: auto; min-height: 0; display: block; }
  body.tor-js.tor-app-shell-active .tor-nav-note,
  body.tor-js.tor-app-shell-active .tor-menu-toggle { display: none !important; }
  body.tor-js.tor-app-shell-active .tor-primary-nav {
    position: fixed;
    z-index: 99989;
    right: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    left: 14px;
    display: none;
    max-height: min(68vh, 560px);
    overflow-y: auto;
    padding: 12px 18px;
    border: 1px solid #d9e6f5;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 55px rgba(17, 47, 82, .2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }
  body.tor-js.tor-app-shell-active .tor-primary-nav.is-open { display: block; }
  body.tor-js.tor-app-shell-active .tor-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  body.tor-js.tor-app-shell-active .tor-menu > li > a,
  body.tor-js.tor-app-shell-active .tor-menu > li:first-child > a { padding: 13px 8px; border-bottom: 1px solid #e7eef6; font-size: 13px; }
  body.tor-js.tor-app-shell-active .tor-menu .sub-menu { position: static; min-width: 0; padding: 0 0 5px 13px; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
  body.tor-js.tor-app-shell-active .tor-menu .sub-menu a { padding: 9px 10px; }
}

@media (min-width: 900px) {
  .tor-app-search-layer { place-items: center; padding: 28px; }
  .tor-app-install-card { bottom: 24px; }
}
@media (max-height: 480px) and (max-width: 899px) {
  .tor-app-search-layer { align-items: center; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tor-app-search-card { animation: none; }
  .tor-app-nav-item { transition: none; }
}
@media print {
  .tor-app-bottom-nav, .tor-app-search-layer, .tor-app-install-card { display: none !important; }
  body.tor-app-shell-active { padding-bottom: 0; }
}
