/* ── ডিভাইস মকআপ ও শেল ─────────────────────────────────────── */

:root {
  --device-w: 390px;
  --device-h: 844px;
}

body { font-family: "Hind Siliguri", Inter, system-ui, sans-serif; }

.device-stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 32px 24px;
  background:
    radial-gradient(1000px 600px at 15% 0%, #d1fae5 0%, transparent 55%),
    radial-gradient(900px 700px at 95% 100%, #dbeafe 0%, transparent 50%),
    #eceef2;
}

.device {
  position: relative;
  width: var(--device-w);
  height: var(--device-h);
  max-height: calc(100dvh - 64px);
  background: #fff;
  border-radius: 44px;
  border: 10px solid #101725;
  box-shadow: 0 40px 80px -20px rgba(16, 23, 37, .45), 0 0 0 1px rgba(16,23,37,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.device-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 128px; height: 26px; background: #101725;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
  z-index: 40;
}

.status-bar {
  flex: none;
  height: 44px;
  padding: 0 26px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: var(--sb-color, #101725);
  transition: color .25s ease;
}
.status-icons { display: inline-flex; align-items: center; gap: 5px; }

.screen {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #f6f7f9;
}
.screen::-webkit-scrollbar { display: none; }

.home-indicator {
  flex: none;
  height: 22px;
  display: grid; place-items: center;
  background: #fff;
}
.home-indicator::after {
  content: ""; width: 134px; height: 5px; border-radius: 999px; background: #101725; opacity: .85;
}

/* ── ট্যাববার ───────────────────────────────────────────────── */

.tabbar {
  flex: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid #eceef2;
  padding-top: 6px;
}
.tabbar[hidden] { display: none; }

.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 4px 0 6px;
  font-size: 11px; font-weight: 600;
  color: #8b94a7;
  transition: color .18s ease;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: #059669; }
.tab.is-active .tab-dot { opacity: 1; transform: scale(1); }
.tab-dot {
  width: 4px; height: 4px; border-radius: 999px; background: #059669;
  opacity: 0; transform: scale(.4); transition: all .2s ease;
}

/* ── ট্রানজিশন ও ইউটিলিটি ───────────────────────────────────── */

.fade-in { animation: fadeIn .28s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.stagger > * { animation: fadeIn .32s ease both; }
.stagger > *:nth-child(1) { animation-delay: .02s }
.stagger > *:nth-child(2) { animation-delay: .06s }
.stagger > *:nth-child(3) { animation-delay: .10s }
.stagger > *:nth-child(4) { animation-delay: .14s }
.stagger > *:nth-child(5) { animation-delay: .18s }
.stagger > *:nth-child(6) { animation-delay: .22s }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

.press { transition: transform .12s ease, box-shadow .12s ease; }
.press:active { transform: scale(.975); }

/* ── বটম শিট ────────────────────────────────────────────────── */

.sheet-backdrop {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(16,23,37,.45);
  animation: fadeIn .2s ease both;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 61;
  background: #fff;
  border-radius: 24px 24px 0 0;
  max-height: 88%;
  display: flex; flex-direction: column;
  animation: sheetUp .3s cubic-bezier(.2,.8,.25,1) both;
  box-shadow: 0 -12px 40px rgba(16,23,37,.18);
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
.sheet-grip { width: 40px; height: 4px; border-radius: 999px; background: #d5d9e2; margin: 10px auto 4px; }

/* ── টোস্ট ──────────────────────────────────────────────────── */

.toast-root {
  position: absolute; left: 0; right: 0; top: 54px; z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none;
}
.toast {
  background: #101725; color: #fff;
  padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(16,23,37,.25);
  animation: fadeIn .22s ease both;
}

/* ── ডেস্কটপ সাইড নোট ───────────────────────────────────────── */

.stage-note { width: 340px; }
.note-item { display: flex; gap: 10px; align-items: center; }
.note-item > span {
  flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: #d1fae5; color: #047857; font-size: 11px; font-weight: 700;
}

@media (max-width: 900px) { .stage-note { display: none; } }

/* মোবাইলে ফুল-ব্লিড */
@media (max-width: 640px) {
  .device-stage { padding: 0; background: #101725; }
  .device {
    width: 100%; height: 100dvh; max-height: none;
    border: 0; border-radius: 0; box-shadow: none;
  }
  .device-notch { display: none; }
  .status-bar { height: env(safe-area-inset-top, 20px); min-height: 20px; }
  .home-indicator { height: max(env(safe-area-inset-bottom), 10px); }
  .home-indicator::after { display: none; }
}
