/* Smart Trippy device + product mock styles */

/* ============== PHONE SHELL ============== */
.phone-shell {
  position: relative;
  width: 320px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  background: #0E1420;
  padding: 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 0 0 2px rgba(255,255,255,.08) inset,
    0 60px 120px -30px rgba(0,0,0,.55),
    0 30px 60px -20px rgba(0,0,0,.4);
}
.phone-shell::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 30px;
  background: #07090F;
  border-radius: 999px;
  z-index: 4;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #B8E6E3 0%, #FAFBFC 55%, #FAFBFC 100%);
}
.phone-status {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 0;
  font-size: 12px;
  font-weight: 600;
  color: #0B1A2C;
  z-index: 3;
}
.phone-status .right { display: flex; align-items: center; gap: 5px; opacity: .85; }
.phone-status svg { width: 14px; height: 14px; }

/* tab bar */
.tab-bar {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  height: 64px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 8px 24px -10px rgba(7,17,30,.18);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  z-index: 3;
}
.tab-bar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: #6B7A90;
  font-weight: 500;
}
.tab-bar .tab.active { color: var(--teal-600); }
.tab-bar .tab svg { width: 20px; height: 20px; }
.tab-bar .center-fab {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--teal-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow:
    0 6px 16px -4px rgba(45,182,181,.6),
    0 0 0 4px white;
  z-index: 4;
}
.tab-bar .center-fab svg { width: 22px; height: 22px; }

/* ============== APP SCREENS ============== */
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: 56px;
}

/* Trip Home */
.scr-home .hero-img {
  height: 38%;
  background: url('https://images.unsplash.com/photo-1512100356356-de1b84283e18?w=600&q=70') center/cover;
  position: relative;
}
.scr-home .hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.25) 100%);
}
.scr-home .body {
  flex: 1;
  background: var(--paper);
  padding: 18px 20px 90px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: -18px;
  position: relative;
  z-index: 2;
}
.scr-home h3 {
  font-size: 22px;
  color: var(--teal-700);
  font-weight: 700;
  margin-bottom: 4px;
}
.scr-home .dates { font-size: 12px; color: var(--ink-400); margin-bottom: 14px; }
.scr-home .countdown {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  margin-bottom: 14px;
}
.scr-home .countdown .lbl { font-size: 10px; color: var(--ink-500); margin-bottom: 6px; }
.scr-home .countdown .nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.scr-home .countdown .num { font-size: 22px; font-weight: 700; color: var(--teal-600); line-height: 1; }
.scr-home .countdown .unit { font-size: 9px; color: var(--ink-400); margin-top: 2px; }
.scr-home .about-h { font-size: 14px; font-weight: 700; color: var(--ink-900); margin-bottom: 6px; }
.scr-home .about-p { font-size: 11px; line-height: 1.5; color: var(--ink-600); }

/* Trip Plan timeline */
.scr-plan { background: var(--paper); }
.scr-plan .top {
  padding: 4px 20px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-900);
}
.scr-plan .days {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px;
  overflow: hidden;
}
.scr-plan .day {
  min-width: 50px;
  padding: 8px 4px;
  border-radius: 10px;
  background: white;
  text-align: center;
  font-size: 9px;
  color: var(--ink-500);
  box-shadow: 0 2px 6px -2px rgba(7,17,30,.08);
}
.scr-plan .day strong { display: block; font-size: 14px; color: var(--ink-900); margin-bottom: 1px; }
.scr-plan .day.active { background: var(--teal-500); color: white; }
.scr-plan .day.active strong { color: white; }
.scr-plan .timeline { padding: 4px 16px 90px; }
.scr-plan .item { display: flex; gap: 10px; margin-bottom: 12px; position: relative; }
.scr-plan .item::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -16px;
  width: 1px;
  background: var(--ink-200);
}
.scr-plan .item:last-child::before { display: none; }
.scr-plan .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--teal-300);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}
.scr-plan .icon svg { width: 16px; height: 16px; color: var(--teal-600); }
.scr-plan .icon.purple { border-color: #B5A8FF; }
.scr-plan .icon.purple svg { color: #6B5CFF; }
.scr-plan .card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 2px 8px -2px rgba(7,17,30,.06);
}
.scr-plan .card .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.scr-plan .time {
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.scr-plan .time.purple { background: #EDE9FF; color: #6B5CFF; }
.scr-plan .tag {
  font-size: 8px;
  background: var(--ink-100);
  color: var(--ink-500);
  padding: 3px 6px;
  border-radius: 5px;
}
.scr-plan h4 { font-size: 12px; font-weight: 700; color: var(--ink-900); margin: 4px 0 2px; }
.scr-plan .where { font-size: 9px; color: var(--ink-500); margin-bottom: 4px; display: flex; align-items: center; gap: 3px; }
.scr-plan .desc { font-size: 9px; line-height: 1.4; color: var(--ink-500); }

/* App grid (icons launchpad) */
.scr-grid { background: linear-gradient(165deg, var(--teal-500) 0%, var(--teal-300) 60%, #DEF3F2 100%); }
.scr-grid .grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 8px;
  padding: 30px 24px 90px;
  align-content: start;
}
.scr-grid .cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.scr-grid .ic {
  width: 54px;
  height: 54px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.18);
}
.scr-grid .ic svg { width: 22px; height: 22px; }
.scr-grid .lbl { font-size: 10px; color: white; font-weight: 600; }

/* Flights screen */
.scr-flights { background: var(--paper); padding-top: 56px; }
.scr-flights .top { text-align: center; padding: 4px 20px 14px; font-size: 14px; font-weight: 700; }
.scr-flights .body { padding: 0 16px 90px; }
.scr-flights .card {
  background: white;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px -4px rgba(7,17,30,.08);
  margin-bottom: 12px;
}
.scr-flights .airline { color: var(--teal-600); font-size: 11px; font-weight: 700; }
.scr-flights .flight-no { font-size: 10px; color: var(--ink-500); margin-bottom: 10px; }
.scr-flights .pill {
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 9px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  float: right;
  margin-top: -2px;
}
.scr-flights .route {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ink-100);
}
.scr-flights .city { font-size: 12px; font-weight: 700; }
.scr-flights .iata { font-size: 9px; color: var(--ink-400); }
.scr-flights .time-big { font-size: 14px; color: var(--teal-600); font-weight: 700; margin-top: 4px; }
.scr-flights .date-sm { font-size: 9px; color: var(--ink-400); }
.scr-flights .arrow-mid { color: var(--teal-500); }
.scr-flights .arrow-mid svg { width: 14px; height: 14px; }
.scr-flights .duration { font-size: 9px; color: var(--ink-400); text-align: center; margin-top: 2px; }
.scr-flights .meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 10px;
  font-size: 9px;
}
.scr-flights .meta .k { color: var(--ink-400); text-transform: uppercase; letter-spacing: .04em; }
.scr-flights .meta .v { font-weight: 700; color: var(--ink-900); }

/* Map / hotels card */
.scr-hotel { background: var(--paper); padding-top: 56px; }
.scr-hotel .top { text-align: center; padding: 4px 20px 14px; font-size: 14px; font-weight: 700; }
.scr-hotel .body { padding: 0 16px 90px; }
.scr-hotel .img {
  height: 140px;
  border-radius: 14px;
  background: url('https://images.unsplash.com/photo-1540541338287-41700207dee6?w=600&q=70') center/cover;
  margin-bottom: 12px;
  position: relative;
}
.scr-hotel .img .rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.6);
  color: white;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.scr-hotel h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.scr-hotel .addr { font-size: 10px; color: var(--ink-500); margin-bottom: 10px; line-height: 1.4; }
.scr-hotel .dates {
  background: var(--ink-100);
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.scr-hotel .dates .k { font-size: 9px; color: var(--ink-500); margin-bottom: 2px; }
.scr-hotel .dates .v { font-size: 11px; font-weight: 700; }
.scr-hotel .amenities { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.scr-hotel .amen {
  background: var(--teal-50);
  color: var(--teal-700);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.scr-hotel .cta-row { display: flex; flex-direction: column; gap: 8px; }
.scr-hotel .cta {
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
}
.scr-hotel .cta.outline { border: 1px solid var(--teal-500); color: var(--teal-600); }
.scr-hotel .cta.solid { background: var(--teal-500); color: white; }

/* Welcome screen */
.scr-welcome {
  background: linear-gradient(180deg, #DEF3F2 0%, #B8E6E3 100%);
  padding-top: 56px;
  align-items: center;
  text-align: center;
}
.scr-welcome .plane {
  width: 56px;
  height: 56px;
  margin: 60px auto 16px;
  color: var(--teal-700);
}
.scr-welcome h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 8px;
}
.scr-welcome p {
  font-size: 11px;
  color: var(--ink-600);
  padding: 0 28px;
  margin-bottom: auto;
}
.scr-welcome .actions {
  width: 100%;
  padding: 0 16px 90px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scr-welcome .pill-input {
  background: white;
  border-radius: 14px;
  padding: 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px -4px rgba(7,17,30,.08);
}
.scr-welcome .pill-input svg { width: 14px; height: 14px; color: var(--ink-500); }
.scr-welcome .pill-cta {
  background: var(--teal-500);
  color: white;
  border-radius: 14px;
  padding: 14px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 8px 20px -6px rgba(45,182,181,.5);
}
.scr-welcome .qr {
  background: white;
  border-radius: 14px;
  padding: 12px;
  font-size: 10px;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ============== DASHBOARD MOCK ============== */
.dash {
  width: 100%;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 60px 100px -30px rgba(0,0,0,.5),
    0 30px 60px -20px rgba(0,0,0,.3);
  font-size: 11px;
  border: 1px solid rgba(255,255,255,.08);
}
.dash--img img {
  width: 100%;
  height: auto;
  display: block;
}
.dash:not(.dash--img) {
  display: grid;
  grid-template-columns: 200px 1fr;
}
.dash .side {
  background: #0B1220;
  color: var(--ink-200);
  padding: 16px 12px;
  min-height: 480px;
}
.dash .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 12px;
}
.dash .brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--coral-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}
.dash .brand .name { color: white; font-weight: 600; font-size: 12px; }
.dash .brand .sub { color: var(--ink-400); font-size: 9px; }
.dash .nav { display: flex; flex-direction: column; gap: 1px; }
.dash .nav .item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-300);
  font-weight: 500;
  font-size: 11px;
}
.dash .nav .item svg { width: 14px; height: 14px; }
.dash .nav .item.active {
  background: rgba(245,158,79,.12);
  color: var(--coral-500);
  border-left: 2px solid var(--coral-500);
  padding-left: 8px;
}
.dash .main { padding: 14px 16px; background: var(--paper); }
.dash .main .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dash .main .h2 { font-size: 18px; font-weight: 700; color: var(--ink-900); }
.dash .main .sub { font-size: 10px; color: var(--ink-400); margin-top: 2px; }
.dash .main .add-btn {
  background: var(--coral-500);
  color: white;
  font-size: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.dash .grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.dash .card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px -2px rgba(7,17,30,.06);
}
.dash .card .img {
  height: 80px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.dash .card .badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,.65);
  color: white;
  font-size: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
}
.dash .card .body { padding: 8px 10px; }
.dash .card .title { font-size: 10px; font-weight: 700; color: var(--ink-900); margin-bottom: 2px; }
.dash .card .meta { font-size: 8px; color: var(--ink-400); }
