/* Global Mobile Frame Styling */
:root {
  --frame-width: 390px;
  --frame-height: 844px;
  --frame-radius: 44px;
  --frame-shadow: 0 40px 100px rgba(0, 0, 0, 0.18), 0 0 0 10px #1a1a1a;
  --primary-blue: #1D63E8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #fbfdff;
  font-family: 'Poppins', sans-serif;
}

.phone-frame {
  width: var(--frame-width);
  height: var(--frame-height);
  background: #fff;
  border-radius: var(--frame-radius);
  box-shadow: var(--frame-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

/* Speaker/Camera Notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #1a1a1a;
  border-radius: 20px;
  z-index: 100;
}

/* Inner border overlay so backgrounds don't hide it */
.phone-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--frame-radius);
  box-shadow: inset 0 0 0 2px #333;
  pointer-events: none;
  z-index: 9999;
}

.status-bar {
  padding: 18px 24px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  z-index: 90;
  flex-shrink: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

@media (max-width: 430px) {
  body {
    background: #fff;
    align-items: flex-start;
    padding: 0;
  }

  .phone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-frame::before {
    display: none;
  }
}

/* Global Bottom Nav - PILL SHAPE with Glass Effect */
.bottom-nav {
  position: absolute;
  bottom: 25px;
  left: 18px;
  right: 18px;
  height: 75px;
  background: rgba(255, 255, 255, 0.92); /* Glassy background */
  backdrop-filter: blur(10px); /* Blur content behind */
  -webkit-backdrop-filter: blur(10px);
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle glass border */
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
}

.nav-item svg {
  width: 26px;
  height: 26px;
}

.nav-item span {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
}

/* Outline style mapping */
.nav-item svg path,
.nav-item svg rect,
.nav-item svg circle,
.nav-item svg ellipse,
.nav-item svg line {
  stroke: #9ca3af;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

/* Active State */
.nav-item.active span {
  color: #2563eb;
  font-weight: 600;
}

.nav-item.active svg path,
.nav-item.active svg rect,
.nav-item.active svg circle,
.nav-item.active svg ellipse,
.nav-item.active svg line {
  stroke: #2563eb;
}

.nav-item:active {
  transform: scale(0.92);
}