:root {
  --blue: #1f73f1;
  --blue-2: #0f56d9;
  --ink: #101a33;
  --muted: #667085;
  --line: #e6ebf3;
  --surface: #ffffff;
  --bg: #edf4fb;
  --soft-blue: #eaf3ff;
  --soft-green: #eaf8f0;
  --green: #28a867;
  --amber: #ffb14a;
  --coral: #ff745f;
  --shadow: 0 20px 55px rgba(20, 43, 89, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", Arial,
    sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(31, 115, 241, 0.12), transparent 28%),
    linear-gradient(145deg, #f8fbff 0%, var(--bg) 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  width: 390px;
  height: 844px;
  max-width: min(100vw, 430px);
  max-height: calc(100vh - 32px);
  background: var(--surface);
  border: 1px solid rgba(16, 26, 51, 0.1);
  border-radius: 38px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

#app,
.screen {
  height: 100%;
}

.screen {
  display: flex;
  flex-direction: column;
  background: #fff;
}

.screen.gradient {
  background:
    linear-gradient(180deg, #f9fcff 0%, #fff 52%),
    #fff;
}

.statusbar {
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 24px 7px;
  font-size: 13px;
  font-weight: 700;
}

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

.signal,
.wifi,
.battery {
  display: inline-block;
}

.signal {
  width: 18px;
  height: 11px;
  background: linear-gradient(
    90deg,
    #111 3px,
    transparent 3px 5px,
    #111 5px 8px,
    transparent 8px 10px,
    #111 10px 13px,
    transparent 13px 15px,
    #111 15px 18px
  );
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.wifi {
  width: 15px;
  height: 10px;
  border: 2px solid #111;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  transform: scaleX(0.9);
}

.battery {
  width: 22px;
  height: 11px;
  border: 1.8px solid #111;
  border-radius: 3px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  height: 5px;
  width: 14px;
  border-radius: 1px;
  background: #111;
}

.battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 3px;
  width: 2px;
  height: 5px;
  border-radius: 0 2px 2px 0;
  background: #111;
}

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 96px;
  scrollbar-width: none;
}

.content::-webkit-scrollbar {
  display: none;
}

.centered {
  text-align: center;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 14px;
}

.topbar h1,
.topbar h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.back,
.icon-btn,
.round-arrow {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.icon-btn.ghost,
.back.ghost {
  border-color: transparent;
  background: transparent;
}

.hero-title {
  margin: 42px 0 8px;
  font-size: 27px;
  line-height: 1.22;
  letter-spacing: 0;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 280px;
}

.student-visual {
  height: 292px;
  margin: 22px auto 18px;
  position: relative;
  display: grid;
  place-items: center;
}

.student-visual svg {
  width: 290px;
  height: 260px;
}

.primary,
.secondary,
.link-button {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  font-weight: 800;
}

.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #1688ff);
  box-shadow: 0 12px 28px rgba(31, 115, 241, 0.26);
}

.primary:active,
.quick-card:active,
.order-card:active {
  transform: translateY(1px);
}

.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.link-button {
  background: transparent;
  color: var(--blue);
  min-height: 46px;
}

.auth-card {
  padding-top: 40px;
}

.auth-card h1 {
  margin: 28px 0 8px;
  font-size: 24px;
  text-align: center;
}

.form {
  display: grid;
  gap: 15px;
  margin: 32px 0 18px;
}

.field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.input-wrap {
  position: relative;
}

.input,
.select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #dbe2ec;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.input:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31, 115, 241, 0.1);
}

.field-icon {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.small-link {
  font-size: 13px;
  color: var(--blue);
  background: transparent;
  padding: 0;
  justify-self: end;
  min-height: auto;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.socials {
  display: grid;
  gap: 12px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font-weight: 800;
}

.google-mark,
.apple-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.google-mark {
  color: #4285f4;
}

.apple-mark {
  color: #111;
}

.register-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

.home-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.home-head h1 {
  font-size: 20px;
  margin: 0 0 4px;
}

.home-head p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.bell {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
}

.cta-card {
  background:
    linear-gradient(135deg, #196ff0 0%, #1689ff 100%);
  color: #fff;
  border-radius: 18px;
  padding: 20px;
  min-height: 142px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 18px 34px rgba(31, 115, 241, 0.24);
}

.cta-card h2 {
  margin: 10px 0 3px;
  font-size: 21px;
}

.cta-card p {
  margin: 0;
  font-size: 13px;
  opacity: 0.88;
}

.parcel-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd074, #f4a23c);
  display: grid;
  place-items: center;
  color: #935914;
}

.round-arrow {
  background: #fff;
  color: var(--blue);
  border: 0;
}

.section-title {
  margin: 22px 0 12px;
  font-size: 16px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 9px 4px;
  font-size: 12px;
  color: #33415c;
}

.quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
}

.quick-icon.blue {
  background: var(--blue);
}

.quick-icon.violet {
  background: #8e7df4;
}

.quick-icon.coral {
  background: var(--coral);
}

.quick-icon.muted {
  background: #5b79b7;
}

.news {
  min-height: 86px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, #fff3de, #fff8ed);
  border: 1px solid #ffe5bd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}

.news strong {
  display: block;
  margin-bottom: 5px;
}

.news span {
  color: var(--muted);
  font-size: 13px;
}

.tiny-boxes {
  display: flex;
  align-items: end;
  gap: 5px;
}

.tiny-box {
  width: 40px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd174, #f2a545);
  position: relative;
}

.tiny-box.small {
  width: 28px;
  height: 26px;
  background: linear-gradient(135deg, #feb77b, #ed805f);
}

.stepper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: start;
  margin: 2px 0 22px;
  position: relative;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 16.5%;
  right: 16.5%;
  height: 2px;
  background: var(--line);
}

.step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  z-index: 1;
  font-size: 12px;
  color: #98a2b3;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf0f6;
  color: #98a2b3;
  font-weight: 900;
}

.step.active {
  color: var(--blue);
  font-weight: 900;
}

.step.active .step-num {
  color: #fff;
  background: var(--blue);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.order-form {
  display: grid;
  gap: 15px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.size-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 9px;
  color: var(--ink);
}

.size-option strong {
  font-size: 22px;
}

.size-option span {
  color: var(--muted);
  font-size: 12px;
}

.size-option em {
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}

.size-option.selected {
  border-color: var(--blue);
  background: var(--soft-blue);
  box-shadow: 0 0 0 3px rgba(31, 115, 241, 0.09);
}

.screen-footer {
  flex: 0 0 auto;
  padding: 12px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), #fff 30%);
}

.summary-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.summary-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row strong {
  color: var(--blue);
  font-size: 17px;
}

.payment-options {
  display: grid;
  gap: 13px;
  margin-top: 18px;
}

.payment-option {
  border: 1px solid var(--line);
  border-radius: 16px;
  min-height: 82px;
  padding: 14px;
  display: grid;
  grid-template-columns: 44px 1fr 22px;
  align-items: center;
  gap: 12px;
  background: #fff;
  text-align: left;
}

.payment-option.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 115, 241, 0.08);
}

.pay-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #f2f6fb;
}

.payment-option strong {
  display: block;
  margin-bottom: 3px;
}

.payment-option span {
  color: var(--muted);
  font-size: 12px;
}

.radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #b6c1d2;
  display: grid;
  place-items: center;
}

.selected .radio {
  border-color: var(--blue);
}

.selected .radio::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.processing {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 650px;
  text-align: center;
}

.phone-illus {
  width: 158px;
  height: 206px;
  border: 8px solid #dceaff;
  border-radius: 34px;
  position: relative;
  display: grid;
  place-items: center;
  background: #fff;
}

.card-float {
  width: 96px;
  height: 66px;
  border-radius: 14px;
  background: linear-gradient(135deg, #3a89ff, #0f56d9);
  box-shadow: 0 18px 32px rgba(31, 115, 241, 0.26);
  position: relative;
}

.card-float::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 17px;
  width: 24px;
  height: 16px;
  border-radius: 4px;
  background: #ffd174;
}

.dots {
  display: flex;
  gap: 7px;
  margin-top: -6px;
}

.dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6d1ff;
  animation: pulse 1s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
    transform: translateY(-4px);
  }
}

.success-mark {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  margin: 22px auto 18px;
  box-shadow: 0 16px 34px rgba(40, 168, 103, 0.25);
}

.success h1 {
  color: var(--green);
  font-size: 23px;
  margin: 0 0 4px;
}

.success .summary-list {
  margin-top: 34px;
}

.tracking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.tracking-meta span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.status-pill {
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  background: var(--soft-green);
  color: var(--green);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 4px 0 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-height: 92px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf0f6;
  color: #a8b2c5;
  z-index: 1;
  font-size: 13px;
  font-weight: 900;
}

.done .timeline-dot {
  background: var(--green);
  color: #fff;
}

.current .timeline-dot {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(31, 115, 241, 0.12);
}

.timeline-copy h3 {
  margin: 2px 0 5px;
  font-size: 15px;
}

.timeline-copy p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 34px;
  border-radius: 16px;
  padding: 0 12px;
  background: #fff;
  color: #53627c;
  font-weight: 800;
  font-size: 13px;
}

.tab.active {
  color: #fff;
  background: var(--blue);
}

.orders {
  display: grid;
  gap: 12px;
}

.order-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 13px;
  background: #fff;
  min-height: 112px;
  text-align: left;
}

.order-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #f5f1eb;
  display: grid;
  place-items: center;
}

.order-card h3 {
  margin: 0 0 6px;
  font-size: 13px;
}

.order-card p {
  margin: 0 0 6px;
  max-width: 160px;
  color: #53627c;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.order-card small {
  color: var(--muted);
}

.amount {
  align-self: start;
  font-size: 13px;
  font-weight: 900;
}

.profile-hero {
  margin: -18px -24px 18px;
  min-height: 155px;
  padding: 32px 24px 20px;
  color: #fff;
  background:
    linear-gradient(135deg, #1689ff 0%, #1f73f1 100%);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #f6c28f;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.32);
}

.profile-info h1 {
  margin: 0 0 4px;
  font-size: 20px;
}

.profile-info p {
  margin: 0;
  opacity: 0.9;
  font-size: 13px;
  line-height: 1.45;
}

.menu {
  display: grid;
  border-top: 1px solid var(--line);
}

.menu-item {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 55px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.menu-item span:nth-child(2) {
  font-size: 14px;
  font-weight: 700;
}

.menu-item small {
  color: var(--muted);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 75px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  padding: 6px 12px 9px;
  backdrop-filter: blur(16px);
}

.nav-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: #53627c;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.nav-item.active {
  color: var(--blue);
}

.nav-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.muted-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

svg {
  display: block;
}

@media (max-width: 500px) {
  body {
    background: #fff;
  }

  .stage {
    padding: 0;
  }

  .phone {
    width: 100vw;
    height: 100svh;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .screen-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .profile-hero {
    margin-left: -20px;
    margin-right: -20px;
  }
}

/* Layout stability fixes: prevent narrow flex children from wrapping into columns. */
.home-content {
  padding-top: 28px;
}

.cta-card {
  min-height: 156px;
}

.quick-card {
  min-width: 0;
}

.news {
  min-height: 104px;
}

.latest-card {
  min-height: 0;
  height: auto;
  padding: 16px;
  margin-bottom: 12px;
}

.latest-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.latest-body > * {
  min-width: 0;
}

.route-line {
  width: 100%;
  min-width: 0;
}

.route-line span {
  min-width: 0;
  max-width: 100%;
}

.route-line strong,
.route-line b,
.route-line small,
.route-line span {
  overflow-wrap: anywhere;
}

.route-line span:last-child strong,
.route-line span:last-child {
  line-height: 1.35;
}

.latest-price {
  width: 112px;
}

.latest-price .size-badge {
  min-width: 104px;
  padding: 0 8px;
  font-size: 13px;
}

.latest-price strong {
  font-size: 23px;
}

.card-chevron {
  display: grid;
  place-items: center;
}

.bottom-nav {
  z-index: 5;
}

.content {
  padding-bottom: 118px;
}

.latest-route {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.latest-route-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.latest-route-item span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.latest-route-item b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.latest-route-item strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.latest-route-line {
  width: 2px;
  height: 18px;
  margin-left: 8px;
  border-left: 2px dashed #8398bd;
}

/* Bottom navigation should reserve layout space instead of covering content. */
.bottom-nav {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 86px;
  width: 100%;
  border-radius: 24px 24px 0 0;
}

.content {
  padding-bottom: 24px;
}

.home-content,
.profile-content {
  padding-bottom: 24px;
}

/* Refined visual pass based on the latest reference screens. */
:root {
  --ink: #07133f;
  --muted: #6f7d9a;
  --line: #dde7f7;
  --blue: #1165f5;
  --blue-2: #0054ee;
  --soft-blue: #eef6ff;
  --card-shadow: 0 12px 30px rgba(23, 73, 143, 0.08);
}

.screen {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.content {
  padding-top: 30px;
}

.topbar {
  min-height: 52px;
  margin-bottom: 18px;
}

.topbar h1,
.topbar h2 {
  font-size: 25px;
  font-weight: 900;
}

.icon-line,
.bell,
.back,
.icon-btn,
.nav-icon,
.menu-item > span:first-child {
  color: #0b225b;
}

.splash-screen .hero-title {
  margin-top: 34px;
}

.auth-card {
  padding-top: 38px;
}

.auth-card h1 {
  margin: 10px 0 4px;
  font-size: 38px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.auth-card .subtitle {
  font-size: 22px;
  font-weight: 800;
  color: #21386c;
}

.auth-card .student-visual {
  height: 240px;
  margin: 8px auto 16px;
}

.auth-card .student-visual svg {
  width: 300px;
  height: 236px;
}

.soft-form {
  gap: 14px;
  margin-top: 0;
}

.soft-input {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 62, 128, 0.08);
}

.soft-input input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 20px;
  color: var(--ink);
  background: transparent;
}

.soft-input input::placeholder {
  color: #7d889e;
  font-weight: 700;
}

.muted-icon {
  color: #7f8ba3;
}

.forgot {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 5px;
  font-size: 17px;
  font-weight: 900;
}

.auth-card .primary {
  min-height: 66px;
  border-radius: 22px;
  font-size: 22px;
}

.auth-card .social {
  min-height: 58px;
  border-radius: 22px;
  font-size: 17px;
}

.google-mark,
.apple-mark {
  font-size: 22px;
}

.home-content {
  padding: 32px 24px 112px;
}

.home-head {
  align-items: center;
  margin-bottom: 20px;
}

.home-head h1 {
  font-size: 27px;
  font-weight: 950;
  margin-bottom: 10px;
  color: var(--ink);
}

.location-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
  font-size: 19px !important;
  font-weight: 900;
}

.location-row svg {
  color: #0b225b;
}

.bell {
  width: 52px;
  height: 52px;
  border: 0;
}

.cta-card {
  min-height: 174px;
  border-radius: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #086dff 0%, #0055f4 100%);
}

.cta-card h2 {
  margin: 10px 0 8px;
  font-size: 28px;
  font-weight: 950;
}

.cta-card p {
  font-size: 16px;
  font-weight: 700;
}

.parcel-icon {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  place-items: start;
  filter: drop-shadow(0 10px 12px rgba(6, 41, 111, 0.22));
}

.round-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--blue);
}

.section-title.big {
  font-size: 23px;
  font-weight: 950;
  margin: 26px 0 16px;
}

.quick-grid {
  gap: 12px;
}

.quick-card {
  min-height: 96px;
  border-radius: 18px;
  gap: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  box-shadow: var(--card-shadow);
}

.quick-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 8px 16px rgba(17, 101, 245, 0.22);
}

.quick-icon.blue {
  background: linear-gradient(135deg, #1788ff, #0058f1);
}

.quick-icon.violet {
  background: linear-gradient(135deg, #9c6eff, #6945f0);
}

.quick-icon.coral {
  background: linear-gradient(135deg, #ff7e55, #ff3f23);
}

.news {
  min-height: 96px;
  margin-top: 22px;
  border-radius: 18px;
  padding: 18px 22px;
  background: linear-gradient(90deg, #fff5e6, #fffaf2);
}

.news strong {
  font-size: 21px;
  font-weight: 950;
}

.news span {
  font-size: 16px;
  color: #263c6c;
}

.promo-boxes {
  position: relative;
  min-width: 116px;
  display: grid;
  place-items: center;
}

.mini-parcel {
  position: absolute;
  right: -8px;
  bottom: 2px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  background: transparent;
  font-size: 15px;
  font-weight: 900;
}

.latest-card {
  width: 100%;
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: left;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.latest-top,
.latest-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.latest-top {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.latest-top small,
.latest-top strong {
  display: block;
}

.latest-top small {
  color: #465980;
  font-weight: 700;
}

.latest-top strong {
  margin-top: 6px;
  font-size: 16px;
}

.latest-body {
  padding-top: 16px;
}

.route-line,
.address-stack {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 4px 12px;
  position: relative;
}

.route-line span,
.address-stack span {
  display: grid;
  gap: 4px;
}

.route-line b,
.address-stack b {
  color: var(--blue);
}

.route-line .line,
.address-stack .line {
  width: 2px;
  height: 22px;
  justify-self: center;
  border-left: 2px dashed #8398bd;
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  align-self: center;
  justify-self: center;
}

.dot.blue {
  background: var(--blue);
}

.dot.coral {
  background: #ff4d2e;
  box-shadow: 0 0 0 4px rgba(255, 77, 46, 0.12);
}

.latest-price {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.size-badge,
.size-tile {
  min-width: 112px;
  min-height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f9ff, #eef5ff);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0d4fd7;
  font-weight: 900;
}

.latest-price strong {
  font-size: 25px;
  color: var(--blue);
}

.card-chevron {
  color: #253968;
}

.status-pill.warm {
  background: #fff0db;
  color: #ef8b10;
}

.order-content {
  padding: 28px 18px 24px;
}

.order-title {
  position: relative;
  align-items: start;
  margin-bottom: 8px;
}

.order-title h1 {
  flex: 1;
  text-align: center;
  padding-top: 2px;
}

.title-ornament {
  width: 74px;
  margin-top: 0;
  filter: drop-shadow(0 12px 16px rgba(17, 101, 245, 0.12));
}

.stepper.refined {
  margin: 6px 10px 22px;
  grid-template-columns: repeat(3, 1fr);
}

.stepper.refined::before {
  top: 16px;
  left: 15%;
  right: 15%;
  height: 3px;
  background: #cdd6e7;
}

.step-num {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.step {
  font-size: 16px;
  font-weight: 850;
}

.step.done .step-num {
  color: #fff;
  background: var(--blue);
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.form-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 950;
}

.form-card h2 button {
  margin-left: auto;
  min-width: 64px;
  min-height: 38px;
  border-radius: 12px;
  background: var(--soft-blue);
  color: var(--blue);
  font-weight: 900;
}

.colored-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.colored-icon.blue {
  background: var(--blue);
}

.colored-icon.coral {
  background: #ff4d2e;
}

.colored-icon.amber {
  background: #ff9b00;
}

.colored-icon.violet {
  background: #7b48f2;
}

.colored-icon.green {
  background: #12b76a;
}

.choice-row {
  width: 100%;
  min-height: 72px;
  border: 1px solid #cbd8ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #f9fcff, #f1f7ff);
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  text-align: left;
}

.choice-row strong,
.choice-row small {
  display: block;
}

.choice-row strong {
  font-size: 18px;
  font-weight: 950;
}

.choice-row small {
  color: #435982;
  font-size: 14px;
  margin-top: 4px;
}

.choice-row.plain {
  grid-template-columns: 1fr auto;
  background: #fff;
  font-size: 17px;
  color: #75829c;
  font-weight: 800;
}

.choice-row.compact {
  min-height: 56px;
  grid-template-columns: 1fr auto;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 800;
}

.size-grid.rich {
  gap: 12px;
}

.size-grid.rich .size-option {
  min-height: 142px;
  border-radius: 17px;
  position: relative;
  gap: 3px;
  overflow: hidden;
}

.size-grid.rich .size-option.selected::after {
  content: "✓";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 34px;
  height: 34px;
  border-radius: 0 17px 0 18px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-weight: 950;
}

.size-mark {
  position: absolute;
  left: 10px;
  top: 54px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  z-index: 1;
}

.size-mark.s {
  background: #1f73f1;
}

.size-mark.m {
  background: #ff9b00;
}

.size-mark.l {
  background: #ff5061;
}

.size-grid.rich .size-option strong {
  font-size: 16px;
}

.size-grid.rich .size-option em {
  color: var(--blue);
  font-size: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.two-col h2 {
  font-size: 17px;
}

.note-box {
  min-height: 72px;
  border: 1px solid #cbd8ee;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding: 12px 14px;
}

.note-box input {
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 16px;
}

.note-box input::placeholder {
  color: #75829c;
}

.note-box span {
  color: #526489;
  font-weight: 800;
}

.quote-footer,
.single-footer,
.dual-footer {
  flex: 0 0 auto;
  padding: 14px 18px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid rgba(221, 231, 247, 0.8);
}

.quote-footer {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 14px;
  align-items: center;
}

.quote-footer span small,
.quote-footer span strong {
  display: block;
}

.quote-footer span small {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.quote-footer span strong {
  font-size: 30px;
  color: var(--blue);
  font-weight: 950;
}

.quote-footer .primary,
.single-footer .primary,
.dual-footer .primary,
.dual-footer .secondary {
  min-height: 58px;
  border-radius: 24px;
  font-size: 19px;
}

.single-footer {
  display: grid;
  gap: 10px;
}

.single-footer small {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #7180a0;
  font-weight: 800;
}

.dual-footer {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 12px;
}

.dual-footer .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--blue);
  border-color: var(--blue);
}

.info-card {
  padding: 20px;
}

.address-stack {
  padding-left: 2px;
}

.address-stack strong {
  font-size: 18px;
}

.address-stack small {
  color: #4c5e86;
  font-size: 15px;
}

.box-summary {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 18px;
  align-items: center;
}

.box-summary strong,
.box-summary small {
  display: block;
}

.box-summary strong {
  font-size: 19px;
  margin-bottom: 10px;
}

.box-summary small {
  color: #405580;
  font-size: 15px;
  line-height: 1.65;
}

.split-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.split-info span {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.split-info small {
  color: #4c5e86;
  font-size: 14px;
}

.plain-text {
  margin: 0;
  font-size: 16px;
  color: #2c3f70;
}

.price-card {
  display: grid;
  gap: 8px;
}

.price-card h2 {
  margin-bottom: 8px;
}

.price-card div,
.price-card strong {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #263c6c;
  font-size: 15px;
}

.price-card strong {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 2px;
  color: var(--ink);
  font-size: 17px;
}

.price-card b {
  color: var(--blue);
  font-size: 24px;
}

.payment-option {
  border-radius: 20px;
  min-height: 88px;
}

.pay-icon {
  color: var(--blue);
}

.processing h1 {
  font-size: 24px;
}

.detail-content {
  padding: 28px 18px 18px;
}

.detail-hero,
.delivered-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 12px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.detail-hero {
  display: grid;
  grid-template-columns: 1fr 148px;
  gap: 12px;
  align-items: center;
}

.detail-hero small,
.detail-hero strong,
.detail-hero b {
  display: block;
}

.detail-hero small {
  color: #526489;
  font-weight: 800;
  margin-bottom: 8px;
}

.detail-hero strong {
  font-size: 21px;
  margin-bottom: 14px;
}

.detail-hero b {
  font-size: 17px;
}

.detail-hero em {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  margin-left: 8px;
  color: var(--blue);
  background: var(--soft-blue);
  font-style: normal;
  font-weight: 900;
}

.map-box,
.door-box {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 118px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4f8ff, #fff);
}

.map-box i,
.door-box i {
  position: absolute;
  right: 14px;
  top: 12px;
  color: var(--blue);
}

.vertical-status {
  display: grid;
  gap: 0;
}

.vertical-status .status-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  min-height: 86px;
  position: relative;
}

.vertical-status .status-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 42px;
  bottom: -6px;
  width: 3px;
  background: #c9ced9;
}

.vertical-status .status-step.done::before {
  background: var(--blue);
}

.vertical-status .status-step:last-child::before {
  display: none;
}

.status-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 1;
  background: #d5d9e2;
  color: #fff;
}

.status-step.done .status-dot {
  background: var(--blue);
}

.status-step.current {
  margin: 0 -8px 14px 0;
  padding: 14px 12px 12px 0;
  border-radius: 12px;
  background: #eef5ff;
}

.status-step.current .status-dot {
  width: 56px;
  height: 56px;
  margin-left: -7px;
}

.status-step strong {
  font-size: 18px;
  color: var(--ink);
}

.status-step.current strong,
.status-step.done strong {
  color: var(--blue);
}

.status-step small {
  margin-left: 12px;
  color: #29406f;
  font-size: 14px;
}

.status-step p {
  margin: 6px 0 0;
  color: #354972;
}

.progress-line {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  gap: 6px;
}

.progress-line::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 9%;
  right: 9%;
  height: 3px;
  background: var(--blue);
}

.progress-line .status-step {
  display: grid;
  justify-items: center;
  gap: 8px;
  z-index: 1;
  text-align: center;
}

.progress-line .status-dot {
  width: 40px;
  height: 40px;
}

.progress-line .status-step strong {
  font-size: 14px;
}

.progress-line .status-step small {
  margin: 0;
  font-size: 12px;
}

.package-row {
  display: grid;
  grid-template-columns: 1fr 122px;
  gap: 14px;
  align-items: center;
}

.compact-stack strong {
  font-size: 17px;
}

.size-tile {
  min-height: 118px;
  flex-direction: column;
}

.reminder-card {
  min-height: 76px;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef6ff, #f9fcff);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  color: var(--blue);
}

.reminder-card strong {
  color: var(--ink);
}

.reminder-card p {
  margin: 4px 0 0;
  color: #354972;
}

.delivered-hero {
  min-height: 172px;
  display: grid;
  grid-template-columns: 1fr 160px;
  align-items: center;
  background: linear-gradient(135deg, #f3f8ff, #ffffff);
}

.delivered-hero h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.delivered-hero p {
  margin: 0 0 18px;
  color: #354972;
}

.delivered-hero button {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  font-weight: 900;
}

.profile-content {
  padding: 0 18px 104px;
  background: #f9fbff;
}

.profile-hero {
  margin: 0 -18px;
  min-height: 232px;
  padding: 48px 24px 44px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #2f8cff 0%, #0058f4 100%);
}

.settings-float {
  position: absolute;
  right: 24px;
  top: 36px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #fff;
  background: transparent;
}

.profile-info {
  gap: 18px;
}

.avatar {
  width: 90px;
  height: 90px;
  border-width: 6px;
}

.profile-info h1 {
  font-size: 32px;
  font-weight: 950;
}

.profile-info p {
  font-size: 20px;
}

.menu.elevated {
  margin: -20px 0 20px;
  padding: 24px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(12, 48, 104, 0.08);
}

.menu-item {
  min-height: 72px;
  grid-template-columns: 38px 1fr auto;
  color: #0b225b;
}

.menu-item span:nth-child(2) {
  font-size: 22px;
  font-weight: 950;
}

.menu-item small {
  font-size: 18px;
  color: #7e8aa4;
  font-weight: 900;
}

.bottom-nav {
  height: 88px;
  border-radius: 26px 26px 0 0;
  padding: 8px 12px 12px;
  box-shadow: 0 -12px 26px rgba(12, 48, 104, 0.06);
}

.nav-item {
  font-size: 14px;
  gap: 5px;
}

.nav-icon {
  width: 34px;
  height: 34px;
}

.nav-item.active {
  color: var(--blue);
}

.order-card {
  border-radius: 19px;
  box-shadow: var(--card-shadow);
}

.order-avatar {
  background: #fff3df;
}

@media (max-width: 500px) {
  .home-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .order-content,
  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quote-footer,
  .single-footer,
  .dual-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Final anti-shift overrides. Keep these last. */
.home-content {
  padding-top: 28px;
  padding-bottom: 128px;
}

.cta-card {
  min-height: 150px;
}

.quick-card {
  min-width: 0;
}

.news {
  min-height: 104px;
}

.latest-card {
  min-height: 0;
  height: auto;
  padding: 16px;
  margin-bottom: 16px;
}

.latest-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px 22px;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
}

.latest-body > * {
  min-width: 0;
}

.route-line {
  width: 100%;
  min-width: 0;
}

.route-line span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
}

.route-line span:last-child {
  line-height: 1.35;
}

.route-line span:last-child strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.latest-price {
  width: 112px;
}

.latest-price .size-badge {
  min-width: 104px;
  padding: 0 8px;
  font-size: 13px;
}

.latest-price strong {
  font-size: 23px;
}

.card-chevron {
  display: grid;
  place-items: center;
}

.bottom-nav {
  z-index: 5;
}

.content {
  padding-bottom: 118px;
}

/* 2026-05 layout hotfix: repair shifted pages on mobile screens */
.login-hero-img {
  display: block;
  width: 100%;
  height: 292px;
  object-fit: cover;
  object-position: center top;
  border-radius: 32px;
  margin: 0 0 18px;
}

.auth-card.image-auth {
  padding-top: 12px;
}

.auth-card .form {
  margin-top: 14px;
}

.register-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.address-stack,
.route-line {
  width: 100%;
  min-width: 0;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
}

.address-stack span,
.route-line span,
.compact-stack span {
  min-width: 0;
  max-width: 100%;
}

.address-stack b,
.address-stack strong,
.address-stack small,
.address-stack span,
.route-line b,
.route-line strong,
.route-line small,
.route-line span {
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.address-stack strong,
.route-line strong {
  line-height: 1.45;
}

.address-stack small,
.route-line small {
  line-height: 1.5;
}

.package-row {
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: start;
}

.size-tile {
  width: 100%;
  min-width: 0;
  min-height: 120px;
  padding: 14px 12px;
  justify-self: stretch;
  text-align: center;
}

.size-tile b {
  display: block;
  line-height: 1.35;
}

.form-card.package-info,
.form-card.info-card {
  overflow: hidden;
}

.detail-hero {
  grid-template-columns: minmax(0, 1fr) 120px;
}

.detail-hero > span,
.package-row > span,
.box-summary > span,
.menu-item > span,
.menu-item > small {
  min-width: 0;
}

.map-box,
.door-box {
  width: 100%;
  display: grid;
  place-items: center;
}

.profile-content {
  padding-bottom: 124px;
}

.menu.elevated {
  margin-bottom: 18px;
}

@media (max-width: 430px) {
  .package-row {
    grid-template-columns: 1fr;
  }

  .size-tile {
    min-height: 92px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .stage {
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
  }
}
