:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #071432;
  background: #eef8ff;
}

* { box-sizing: border-box; }
body { margin: 0; }

.landing {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  padding: clamp(42px, 8vh, 92px) 18px 38px;
  background:
    radial-gradient(circle at 15% 23%, rgba(255, 255, 255, .96) 0 7%, transparent 27%),
    radial-gradient(circle at 89% 80%, rgba(159, 212, 255, .46) 0 12%, transparent 34%),
    linear-gradient(150deg, #f5fbff 0%, #e8f6ff 48%, #dceeff 100%);
}

.landing::before {
  content: "";
  position: fixed;
  top: 42px;
  right: 22px;
  width: 78px;
  height: 78px;
  opacity: .38;
  background-image: radial-gradient(#9abfe9 2px, transparent 2px);
  background-size: 14px 14px;
  pointer-events: none;
}

.landing::after {
  content: "";
  position: fixed;
  left: -18%;
  right: -18%;
  bottom: -115px;
  height: 240px;
  border-radius: 50% 50% 0 0;
  border-top: 22px solid rgba(255, 255, 255, .74);
  transform: rotate(-9deg);
  background: linear-gradient(180deg, rgba(255,255,255,.45), rgba(142,199,255,.38));
  pointer-events: none;
}

.card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  min-height: min(690px, calc(100svh - 80px));
  padding: clamp(42px, 7vw, 70px) clamp(24px, 6vw, 56px) 40px;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: clamp(28px, 7vw, 46px);
  box-shadow: 0 24px 56px rgba(69, 139, 204, .20), 0 2px 10px rgba(57, 126, 190, .08);
}

.badge {
  width: max-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 9px 18px 9px 10px;
  border-radius: 999px;
  color: #0560bd;
  background: #f3fbff;
  box-shadow: 0 7px 22px rgba(49, 155, 232, .10);
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: .02em;
}

.badge-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(150deg, #0878f7, #0057ce);
}

.badge-icon svg { width: 19px; fill: currentColor; }

.card h1 {
  margin: clamp(54px, 9vw, 76px) 0 18px;
  text-align: center;
  font-size: clamp(27px, 6.4vw, 39px);
  line-height: 1.35;
  letter-spacing: .01em;
}

.subtitle {
  margin: 0 0 clamp(42px, 8vw, 62px);
  text-align: center;
  color: #3f4756;
  font-size: clamp(17px, 4vw, 22px);
  line-height: 1.6;
}

.card label:not(.consent) {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(18px, 4.5vw, 23px);
  font-weight: 700;
}

.phone-field { position: relative; }

.phone-icon {
  position: absolute;
  z-index: 1;
  left: 20px;
  top: 50%;
  width: 27px;
  height: 27px;
  transform: translateY(-50%);
  fill: none;
  stroke: #0a376f;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.card input[type="tel"] {
  width: 100%;
  height: 76px;
  padding: 0 18px 0 62px;
  border: 1.5px solid #cfd3d9;
  border-radius: 16px;
  outline: none;
  color: #101a2d;
  background: #fff;
  font: inherit;
  font-size: clamp(17px, 4vw, 21px);
  transition: border-color .2s, box-shadow .2s;
}

.card input[type="tel"]::placeholder { color: #999da5; }
.card input[type="tel"]:focus {
  border-color: #0878f7;
  box-shadow: 0 0 0 4px rgba(8, 120, 247, .10);
}

.privacy-note {
  margin: 24px 2px 30px;
  color: #444b58;
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.65;
}

.card button,
.admin button,
.login-card button {
  border: 0;
  color: #fff;
  background: #1769ff;
  font-weight: 700;
  cursor: pointer;
}

.card button {
  width: 100%;
  height: 72px;
  border-radius: 15px;
  background: linear-gradient(100deg, #087af9, #0864ed);
  box-shadow: 0 12px 26px rgba(8, 101, 237, .20);
  font-size: clamp(19px, 4.8vw, 25px);
  letter-spacing: .02em;
}

.card button:active { transform: translateY(1px); }
.card button:disabled { opacity: .65; cursor: wait; }

.message {
  min-height: 24px;
  margin: 15px 0 0;
  text-align: center;
  font-weight: 600;
}
.message.error { color: #d13b3b; }
.message.success { color: #16834a; }

.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: linear-gradient(150deg, #f5fbff, #e4f3ff);
}
.login-card {
  width: min(100%, 420px);
  padding: 42px 28px 32px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(56, 118, 184, .16);
}
.login-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #087af9, #0864ed);
  box-shadow: 0 10px 24px rgba(8, 101, 237, .22);
}
.login-mark svg {
  width: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.login-card h1 { margin: 0; text-align: center; font-size: 29px; }
.login-card > p { margin: 10px 0 30px; text-align: center; color: #707b8f; font-size: 14px; }
.login-card label { display: block; margin: 18px 0 9px; font-weight: 700; }
.login-card input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid #d3dbe6;
  border-radius: 14px;
  outline: none;
  font: inherit;
  font-size: 16px;
}
.login-card input:focus { border-color: #0878f7; box-shadow: 0 0 0 4px rgba(8,120,247,.1); }
.login-card button {
  width: 100%;
  height: 58px;
  margin-top: 28px;
  border-radius: 14px;
  font-size: 18px;
}
.login-card button:disabled { opacity: .65; }

.admin { min-height: 100vh; padding: 28px; background: #f3f6fb; }
.admin-wrap { max-width: 980px; margin: auto; }
.admin header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.admin h1 { margin: 0 0 6px; }
.admin header p, .status { color: #748096; margin: 0; }
.admin-actions { display: flex; gap: 10px; }
.admin button { padding: 11px 18px; border-radius: 12px; white-space: nowrap; }
.admin .button-secondary { color: #42516a; background: #e4eaf3; }
.table-card { background: #fff; border-radius: 18px; overflow: auto; box-shadow: 0 12px 35px rgba(40,70,120,.09); }
table { width: 100%; border-collapse: collapse; min-width: 820px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid #edf0f5; }
th { background: #f9fbff; color: #526078; font-size: 13px; }
td { font-variant-numeric: tabular-nums; }
.status { text-align: right; margin-top: 12px; font-size: 13px; }

@media (max-width: 520px) {
  .landing { place-items: start center; padding: 42px 14px 28px; }
  .card { min-height: calc(100svh - 70px); padding: 40px 22px 28px; border-radius: 30px; }
  .card h1 { margin-top: 48px; }
  .subtitle { margin-bottom: 42px; }
  .card input[type="tel"] { height: 68px; }
  .privacy-note { margin: 22px 2px 28px; }
  .card button { height: 66px; }
  .admin { padding: 18px 12px; }
  .admin header { align-items: flex-start; flex-direction: column; }
  .admin h1 { font-size: 24px; }
  .admin-actions { width: 100%; }
  .admin button { flex: 1; min-height: 44px; }
  .table-card { overflow: visible; background: transparent; box-shadow: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  table { min-width: 0; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tr {
    padding: 12px 16px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(40,70,120,.08);
  }
  td {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    text-align: right;
    border-bottom: 1px solid #edf0f5;
    font-size: 15px;
  }
  td:last-child { border-bottom: 0; }
  td::before { content: attr(data-label); color: #7b8799; font-size: 13px; }
  .empty-row { padding: 20px; }
  .empty-row td { display: block; text-align: center; border: 0; color: #7b8799; }
  .empty-row td::before { content: none; }
  .status { text-align: center; }
}

@media (max-width: 370px), (max-height: 720px) {
  .landing { padding-top: 20px; }
  .card { min-height: calc(100svh - 38px); padding-top: 28px; }
  .card h1 { margin-top: 30px; }
  .subtitle { margin-bottom: 26px; }
  .privacy-note { margin: 18px 2px 20px; }
}
