@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap");

:root {
  --blue-700: #0a56af;
  --blue-600: #1262c5;
  --blue-100: #dcecff;
  --ink-900: #101828;
  --ink-700: #344054;
  --ink-500: #667085;
  --line: #d0d5dd;
  --surface: #f7f9fc;
  --panel: #ffffff;
  --success: #2eaf63;
  --danger: #da2554;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 20%, #d7e8ff 0%, #f1f6ff 45%, #eef2f8 100%);
}

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

.phone {
  width: min(390px, 100vw);
  height: min(844px, 100vh);
  background: var(--surface);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 70px rgba(11, 53, 106, 0.24);
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--surface);
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms ease;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.status-bar {
  height: 48px;
  padding: 14px 18px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #fff;
  background: var(--blue-700);
}

.status-bar strong {
  letter-spacing: 0.3px;
}

.status-light {
  background: var(--blue-700);
}

.status-icons {
  opacity: 0.88;
  letter-spacing: 2px;
  font-size: 10px;
}

#home .status-bar {
  color: var(--ink-900);
  background: transparent;
}

.home-header {
  padding: 4px 18px 10px;
}

.home-header h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.home-header p {
  margin: 6px 0 0;
  color: var(--ink-500);
  font-size: 16px;
}

.hero-banner {
  margin: 0 12px;
  border-radius: 18px;
  color: #fff;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 0%, #50b4ff 0%, #0f67ca 45%, #063c84 100%);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: "";
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  position: absolute;
  right: -30px;
  top: -40px;
}

.hero-banner h2 {
  margin: 0 0 8px;
  font-size: 24px;
  position: relative;
  z-index: 1;
}

.hero-banner p {
  margin: 0;
  line-height: 1.45;
  font-size: 14px;
  width: 80%;
  position: relative;
  z-index: 1;
}

.content-block {
  margin: 18px 0;
  background: #fff;
  border-top: 1px solid #e7ecf3;
  border-bottom: 1px solid #e7ecf3;
  padding: 16px 14px;
}

.content-block h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: var(--ink-900);
}

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

.icon-card {
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--ink-900);
  padding: 4px;
}

.icon-card span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border-radius: 18px;
  background:
    linear-gradient(155deg, #4d8de0, #2258ad);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 8px 18px rgba(10, 86, 175, 0.26);
}

.icon-card:nth-child(1) span {
  background: linear-gradient(155deg, #67d58e, #3eaa67);
}

.icon-card:nth-child(2) span {
  background: linear-gradient(155deg, #4d9adf, #3468d2);
}

.icon-card:nth-child(3) span {
  background: linear-gradient(155deg, #ffcb42, #e09b00);
}

.icon-card:nth-child(4) span {
  background: linear-gradient(155deg, #6784f2, #405fc8);
}

.icon-card small {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.quick-actions {
  display: flex;
  gap: 10px;
}

.quick-actions button {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #c9d6ec;
  background: #f4f8ff;
  color: var(--blue-700);
  padding: 12px;
  font-weight: 600;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid #dce3ef;
}

.top-header.blue {
  background: var(--blue-700);
  color: #fff;
}

.top-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 34px;
  width: 34px;
  height: 34px;
  line-height: 1;
  padding: 0;
}

.tabs {
  background: #fff;
  border-bottom: 1px solid #e3e8f0;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0 12px;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--ink-900);
  font-size: 20px;
  padding: 16px 4px;
  margin-right: 16px;
  border-bottom: 3px solid transparent;
}

.tabs button.active {
  color: var(--blue-700);
  border-bottom-color: var(--blue-700);
}

.list-wrap {
  padding: 10px 10px 94px;
}

.list-item {
  background: #fff;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #e7ebf2;
}

.list-item .thumb {
  border-radius: 8px;
  background:
    linear-gradient(130deg, #d4dce8 0%, #b8c7dc 44%, #e2e8f2 100%);
  min-height: 70px;
}

.list-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ink-900);
}

.list-item p {
  margin: 0;
  color: var(--ink-500);
  font-size: 13px;
  line-height: 1.35;
}

.meta {
  margin-top: 5px;
}

.meta .ok {
  color: var(--success);
}

.simple-list .list-item {
  grid-template-columns: 42px 1fr;
}

.simple-list .thumb {
  width: 42px;
  height: 42px;
  min-height: unset;
  border-radius: 50%;
  background: linear-gradient(150deg, #e0f7e8, #9dddaf);
}

.fab {
  position: absolute;
  right: 20px;
  bottom: 84px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--blue-700);
  color: #fff;
  font-size: 44px;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(10, 86, 175, 0.35);
}

.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid #dbe4f0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.bottom-nav.simple {
  grid-template-columns: repeat(3, 1fr);
}

.bottom-nav button {
  border: 0;
  background: transparent;
  color: #737c8b;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bottom-nav button span {
  font-size: 20px;
}

.bottom-nav button.active {
  color: var(--blue-700);
}

.form-page {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 30px;
}

.form-page h3 {
  margin: 8px 0 6px;
  font-size: 20px;
  color: var(--ink-900);
}

.form-page label {
  color: var(--ink-900);
  font-size: 17px;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.required {
  color: var(--danger);
}

input,
textarea,
select,
.select-like,
.selected-view {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  min-height: 48px;
  padding: 11px 12px;
  font-size: 17px;
  font-family: inherit;
  color: var(--ink-900);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

small {
  color: var(--ink-500);
  font-style: italic;
}

.input-with-icon {
  position: relative;
}

.input-with-icon input {
  padding-right: 44px;
}

.icon-inline {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 20px;
}

.text-link {
  color: var(--blue-700);
  text-align: right;
  text-decoration: none;
  font-size: 18px;
}

.primary-btn,
.outline-btn {
  min-height: 50px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
}

.primary-btn {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, var(--blue-600), var(--blue-700));
}

.outline-btn {
  border: 1px solid var(--blue-600);
  color: var(--blue-700);
  background: #fff;
}

.or-line {
  margin: 8px 0;
  text-align: center;
  color: var(--ink-500);
  position: relative;
}

.or-line::before,
.or-line::after {
  content: "";
  height: 1px;
  background: #dde3eb;
  width: 40%;
  position: absolute;
  top: 50%;
}

.or-line::before {
  left: 0;
}

.or-line::after {
  right: 0;
}

.bottom-text {
  color: #555f72;
  text-align: center;
  margin: 12px 0 0;
}

.bottom-text a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 700;
}

.map-link {
  margin: 0;
  font-size: 18px;
  color: var(--blue-700);
  font-weight: 600;
}

.voice-btn {
  border: 0;
  background: #edf2f8;
  color: #1f3557;
  border-radius: 10px;
  min-height: 52px;
  font-size: 18px;
}

.check-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.check-inline input {
  width: 22px;
  min-height: 22px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-title {
  margin-bottom: 0;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin: 0 0 8px;
}

.radio-group.vertical {
  flex-direction: column;
  gap: 10px;
}

.radio-group label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}

.radio-group input {
  width: 22px;
  min-height: 22px;
}

.selected-view {
  background: #f8fafc;
}

.select-like {
  text-align: left;
  color: #667085;
  background: #fff;
}

.empty-state {
  height: calc(100% - 150px);
  display: grid;
  place-items: center;
  text-align: center;
  color: #697688;
  padding: 30px;
}

.empty-icon {
  font-size: 52px;
  opacity: 0.28;
}

.modal {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 25;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 12px 14px 24px;
  transform: translateY(16px);
  transition: transform 220ms ease;
}

.modal.open .sheet {
  transform: translateY(0);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-head h3 {
  margin: 0;
  font-size: 24px;
}

.issue-list {
  margin-top: 8px;
}

.issue-list button {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
  min-height: 52px;
  font-size: 20px;
  color: var(--ink-900);
}

.toast {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  min-height: 44px;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 17, 0.92);
  color: #fff;
  border-radius: 12px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 35;
}

.toast.show {
  opacity: 1;
}

.reveal {
  animation: riseIn 480ms ease both;
}

.icon-card.reveal:nth-child(1) {
  animation-delay: 60ms;
}

.icon-card.reveal:nth-child(2) {
  animation-delay: 100ms;
}

.icon-card.reveal:nth-child(3) {
  animation-delay: 140ms;
}

.icon-card.reveal:nth-child(4) {
  animation-delay: 180ms;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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