/* Mobile device frame mockups */
.mobile-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(26, 107, 110, 0.2), transparent 45%),
    radial-gradient(ellipse at 80% 90%, rgba(232, 163, 23, 0.12), transparent 40%),
    #d5e2e5;
}

.phone {
  width: 390px;
  height: 844px;
  max-height: 90vh;
  background: var(--ink);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(14, 26, 31, 0.35);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  position: relative;
}

.phone-status {
  height: 44px;
  padding: 0 1.25rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 5;
}

.phone-status.light {
  color: var(--white);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.phone-status.dark {
  color: var(--ink);
  background: var(--white);
}

.m-tabbar {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 0.45rem 0.5rem 0.75rem;
  flex-shrink: 0;
}

.m-tabbar a {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.45;
  padding: 0.35rem;
}

.m-tabbar a.on {
  opacity: 1;
  color: var(--sea);
}

.m-tabbar .ico {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.1rem;
  font-family: var(--font-display);
}

/* Map mobile */
.m-map {
  flex: 1;
  position: relative;
  min-height: 0;
}

.m-map .map-canvas {
  width: 100%;
  height: 100%;
}

.m-brand {
  position: absolute;
  top: 52px;
  left: 1rem;
  z-index: 3;
}

.m-brand .brand {
  font-size: 1.85rem;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.m-fab {
  position: absolute;
  right: 1rem;
  bottom: 200px;
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--citrus);
  color: var(--ink);
  border: none;
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(14, 26, 31, 0.25);
}

.m-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 0.65rem 1.1rem 1.1rem;
  box-shadow: 0 -8px 30px rgba(14, 26, 31, 0.15);
}

.m-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--mist);
  border-radius: 2px;
  margin: 0 auto 0.85rem;
}

.m-sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.m-sheet h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.2rem 0 0.15rem;
  letter-spacing: -0.03em;
}

.m-filters-scroll {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  padding: 0 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.m-filters-scroll button {
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(14, 26, 31, 0.1);
}

.m-filters-scroll button.on {
  background: var(--sea);
  color: var(--white);
}

/* Create mobile steps */
.m-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.m-header h1 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.m-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem 1.5rem;
}

.m-steps {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.m-steps span {
  flex: 1;
  height: 3px;
  background: var(--mist);
  border-radius: 2px;
}

.m-steps span.done,
.m-steps span.current {
  background: var(--sea);
}

.m-footer {
  padding: 0.85rem 1.1rem 1.1rem;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.type-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 0.85rem;
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.type-card.on {
  border-color: var(--sea);
  background: rgba(26, 107, 110, 0.08);
}

.type-card strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.type-card span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Event mobile */
.m-event-hero {
  height: 200px;
  flex-shrink: 0;
  background:
    linear-gradient(180deg, transparent 20%, rgba(14, 26, 31, 0.8)),
    linear-gradient(145deg, #1a6b6e, #0e1a1f);
  color: var(--white);
  padding: 3rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.m-event-hero h1 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0.35rem 0 0.2rem;
  letter-spacing: -0.03em;
}

.m-back {
  position: absolute;
  top: 48px;
  left: 1rem;
  z-index: 6;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  cursor: pointer;
}

/* Inbox */
.m-seg {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.m-seg button {
  flex: 1;
  border: none;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  background: var(--fog);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
}

.m-seg button.on {
  background: var(--sea);
  color: var(--white);
}

.inbox-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
  margin-bottom: 0.65rem;
}

.inbox-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.inbox-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.5rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.inbox-status.wait {
  background: rgba(232, 163, 23, 0.2);
  color: #7a5200;
}

.inbox-status.ok {
  background: rgba(26, 107, 110, 0.15);
  color: var(--sea-deep);
}

.inbox-status.org {
  background: rgba(212, 90, 58, 0.12);
  color: var(--coral);
}

.stage-label {
  position: absolute;
  bottom: -2rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 420px) {
  .mobile-stage {
    padding: 0;
    align-items: stretch;
  }
  .phone {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .phone-screen {
    border-radius: 0;
  }
  .stage-label {
    display: none;
  }
}
