:root {
  --ink: #0b1c34;
  --muted: #64748b;
  --soft: #8fa3b8;
  --line: rgba(98, 139, 183, 0.18);
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --blue: #1765df;
  --blue-deep: #0b46aa;
  --sky: #e8f5ff;
  --ice: #f7fbff;
  --green: #12a474;
  --amber: #d88422;
  --red: #d84b5b;
  --shadow: 0 24px 70px rgba(24, 82, 146, 0.15);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "Avenir Next", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    linear-gradient(115deg, rgba(219, 240, 255, 0.72) 0%, transparent 38%),
    linear-gradient(245deg, rgba(205, 230, 255, 0.68) 0%, transparent 42%),
    #f7fbff;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(28, 102, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 102, 196, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, black 0%, transparent 78%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.student-product {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.phone-app {
  position: relative;
  width: min(430px, 100%);
  min-height: min(900px, calc(100vh - 44px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 38px;
  background: rgba(248, 252, 255, 0.76);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(28px) saturate(1.35);
}

.phone-app::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 4;
  width: 82px;
  height: 22px;
  border-radius: 999px;
  background: #0c1727;
  transform: translateX(-50%);
}

.student-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 48px 22px 18px;
  border-bottom: 1px solid rgba(98, 139, 183, 0.12);
  background: rgba(248, 252, 255, 0.72);
  backdrop-filter: blur(22px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.sx-logo {
  position: relative;
  display: inline-grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: white;
  box-shadow: 0 14px 34px rgba(23, 101, 223, 0.16);
}

.sx-logo::after {
  display: none;
}

.sx-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand-word {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-word b,
.brand-word strong {
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.brand-word small {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 850;
}

.eyeline {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 850;
}

.soft-icon,
.nav-ico,
.brand-mark,
.avatar-box {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 101, 223, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.soft-icon {
  width: 46px;
  height: 38px;
}

.student-screen {
  height: calc(min(900px, 100vh - 44px) - 156px);
  overflow-y: auto;
  padding: 18px 18px 148px;
  scrollbar-width: none;
}

.student-screen::-webkit-scrollbar,
.admin-workspace::-webkit-scrollbar {
  display: none;
}

.hero-card,
.section-block,
.pay-summary,
.advisor-card,
.loading-card,
.admin-panel,
.login-card,
.detail-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(18, 79, 150, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px) saturate(1.25);
}

.app-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-height: 306px;
  overflow: hidden;
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.92), rgba(219, 239, 255, 0.76)),
    repeating-linear-gradient(132deg, rgba(23, 101, 223, 0.06) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, #ffffff, #e7f5ff);
}

.app-hero::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -34px;
  width: 170px;
  height: 118px;
  border: 1px solid rgba(23, 101, 223, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(23, 101, 223, 0.2) 46%, rgba(23, 101, 223, 0.2) 52%, transparent 53%),
    rgba(255, 255, 255, 0.54);
  transform: rotate(-8deg);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h2,
.pay-summary h2 {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy p,
.pay-summary p,
.advisor-card p,
.class-card p,
.location-card p,
.info-card p,
.consult-guide p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.primary-action.compact,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
}

.ghost-action {
  border: 1px solid rgba(23, 101, 223, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--blue-deep);
  font-weight: 900;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 132px;
}

.training-field {
  position: absolute;
  right: -12px;
  bottom: 10px;
  width: 224px;
  height: 126px;
  overflow: hidden;
  border: 1px solid rgba(23, 101, 223, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.72) 48%, rgba(255, 255, 255, 0.72) 52%, transparent 53%),
    repeating-linear-gradient(0deg, rgba(23, 101, 223, 0.16) 0 1px, transparent 1px 31px),
    repeating-linear-gradient(90deg, rgba(23, 101, 223, 0.14) 0 1px, transparent 1px 44px),
    linear-gradient(145deg, rgba(235, 247, 255, 0.92), rgba(196, 225, 251, 0.58));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 20px 52px rgba(22, 82, 150, 0.12);
  transform: rotate(-4deg);
}

.training-field::before {
  content: "";
  position: absolute;
  inset: 14px 22px 18px 54px;
  border: 2px dashed rgba(8, 70, 170, 0.22);
  border-left: 0;
  border-radius: 0 60px 60px 0;
}

.training-field::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 18px;
  width: 74px;
  height: 22px;
  border-top: 2px solid rgba(8, 70, 170, 0.22);
  border-bottom: 2px solid rgba(8, 70, 170, 0.22);
  border-radius: 16px;
}

.parking-slot {
  position: absolute;
  display: block;
  width: 42px;
  height: 28px;
  border: 1px solid rgba(8, 70, 170, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
}

.slot-a {
  left: 20px;
  top: 18px;
}

.slot-b {
  left: 20px;
  top: 52px;
}

.slot-c {
  left: 20px;
  top: 86px;
}

.cone {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-bottom: 18px solid rgba(216, 132, 34, 0.9);
  border-left: 7px solid transparent;
  filter: drop-shadow(0 8px 8px rgba(140, 78, 16, 0.14));
}

.cone-a {
  right: 68px;
  top: 28px;
}

.cone-b {
  right: 112px;
  bottom: 26px;
}

.license-card {
  position: absolute;
  right: 10px;
  top: -4px;
  z-index: 5;
  min-width: 138px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(20, 82, 150, 0.14);
  padding: 11px 12px;
  backdrop-filter: blur(18px) saturate(1.2);
}

.license-card b,
.license-card span {
  display: block;
}

.license-card b {
  color: #0a3f99;
  font-size: 18px;
  font-weight: 950;
}

.license-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.route-card {
  position: absolute;
  left: 2px;
  bottom: 2px;
  z-index: 3;
  width: min(254px, 73%);
  border: 1px solid rgba(23, 101, 223, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(28, 82, 150, 0.12);
  padding: 12px;
  backdrop-filter: blur(18px);
}

.route-card span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 12px;
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
}

.route-card strong,
.route-card small,
.route-card em {
  display: block;
}

.route-card strong {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 920;
}

.route-card small,
.route-card em {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.route-card small {
  color: var(--blue-deep);
  font-size: 11px;
  font-weight: 880;
}

.route-card em {
  font-size: 12px;
  font-style: normal;
}

.route-line {
  position: absolute;
  right: -16px;
  bottom: 42px;
  z-index: 2;
  width: 184px;
  height: 64px;
  border-top: 2px dashed rgba(23, 101, 223, 0.32);
  border-radius: 999px;
  transform: rotate(-12deg);
}

.mini-car {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
  box-shadow: 0 16px 30px rgba(23, 101, 223, 0.24);
}

.hero-stat span,
.tiny-fact span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

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

.tiny-fact {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  padding: 10px;
}

.fact-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 10px;
  background: rgba(23, 101, 223, 0.08);
  color: var(--blue-deep);
  font-size: 14px;
  font-style: normal;
  margin-bottom: 6px;
}

.tiny-fact strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.featured-class {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(23, 101, 223, 0.16);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(232, 245, 255, 0.64));
  box-shadow: 0 18px 42px rgba(18, 79, 150, 0.08);
  padding: 14px;
  margin-bottom: 12px;
}

.featured-class span,
.featured-class p {
  color: var(--muted);
  font-size: 12px;
}

.featured-class strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 950;
}

.featured-class p {
  margin-top: 4px;
  line-height: 1.45;
}

.featured-class b {
  color: #e45c1c;
  font-size: 23px;
}

.journey-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  padding: 8px;
  backdrop-filter: blur(18px);
}

.journey-strip.drive-flow {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(232, 245, 255, 0.62)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(23, 101, 223, 0.05) 34px 35px);
}

.journey-strip.drive-flow::before {
  content: "";
  position: absolute;
  top: 19px;
  right: 28px;
  left: 28px;
  height: 1px;
  border-top: 1px dashed rgba(23, 101, 223, 0.2);
}

.journey-strip article {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  padding: 9px;
}

.journey-strip b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
  font-size: 12px;
}

.journey-strip strong,
.journey-strip span {
  display: block;
}

.journey-strip strong {
  margin-top: 6px;
  font-size: 13px;
}

.journey-strip span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.section-block {
  border-radius: 26px;
  padding: 18px;
  margin-top: 14px;
}

.top-tight {
  margin-top: 0;
}

.section-head,
.panel-head,
.price-row,
.class-card,
.location-card,
.advisor-card,
.data-row,
.detail-head,
.kv,
.action-row,
.session-pill,
.admin-top {
  display: flex;
  align-items: center;
}

.section-head,
.panel-head,
.price-row,
.kv,
.session-pill,
.admin-top {
  justify-content: space-between;
  gap: 12px;
}

.section-head h3 {
  font-size: 18px;
  font-weight: 900;
}

.text-btn {
  border-radius: 12px;
  background: rgba(23, 101, 223, 0.08);
  color: var(--blue-deep);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 850;
}

.class-stack {
  display: grid;
  gap: 12px;
}

.class-card {
  position: relative;
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(98, 139, 183, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  padding: 15px;
}

.class-card.is-active {
  border-color: rgba(23, 101, 223, 0.36);
  box-shadow: inset 0 0 0 1px rgba(23, 101, 223, 0.08);
}

.class-card > div:first-child {
  min-width: 0;
  flex: 1;
}

.class-card span {
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.class-card h3,
.location-card h4 {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 900;
}

.class-price {
  min-width: 78px;
  text-align: right;
}

.class-price strong {
  display: block;
  color: #e45c1c;
  font-size: 19px;
  font-weight: 950;
}

.class-price small {
  color: var(--muted);
  font-size: 11px;
}

.class-card button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-width: 54px;
  min-height: 32px;
  border-radius: 11px;
  background: #0d1728;
  color: white;
  font-size: 12px;
  font-weight: 850;
}

.location-card {
  gap: 12px;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  padding: 13px;
  margin-top: 10px;
}

.map-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #e9f5ff;
  color: var(--blue-deep);
}

.account-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(18, 79, 150, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82);
  padding: 16px;
  backdrop-filter: blur(24px) saturate(1.25);
}

.account-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-head > div {
  min-width: 0;
  flex: 1;
}

.account-head h2 {
  font-size: 22px;
  font-weight: 950;
}

.account-head p,
.account-note span,
.student-order-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.account-summary strong {
  font-size: 15px;
  line-height: 1.25;
  word-break: keep-all;
}

.account-note {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(23, 101, 223, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  padding: 13px;
}

.account-note b {
  color: var(--blue-deep);
  font-size: 13px;
}

.student-order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
}

.student-order-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.student-order-card h3 {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 920;
}

.student-order-card b {
  color: #e45c1c;
  font-size: 18px;
}

.bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px rgba(20, 82, 150, 0.16);
  padding: 8px;
  backdrop-filter: blur(24px);
}

.mobile-nav {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 56px;
  border-radius: 17px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.mobile-nav.is-active {
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
}

.nav-ico {
  width: 23px;
  height: 23px;
  border-radius: 9px;
  font-size: 14px;
}

.mobile-nav.is-active .nav-ico {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.advisor-card {
  gap: 12px;
  border-radius: 24px;
  padding: 16px;
}

.avatar-box,
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
}

.online-dot {
  margin-left: auto;
  border-radius: 999px;
  background: rgba(18, 164, 116, 0.1);
  color: var(--green);
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 850;
}

.chat-page {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
}

.advisor-card {
  min-height: 112px;
}

.chat-box {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 0 10px;
}

.consult-guide {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(23, 101, 223, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
  margin-top: 0;
}

.consult-guide > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
}

.consult-guide strong {
  font-size: 15px;
}

.bubble {
  width: fit-content;
  max-width: 86%;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.78);
  padding: 12px 13px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.62;
}

.bubble.user {
  justify-self: end;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
}

.prompt-row {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 148px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-row::-webkit-scrollbar {
  display: none;
}

.prompt-row button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid rgba(23, 101, 223, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-deep);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.composer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 94px;
  display: grid;
  grid-template-columns: 1fr 66px;
  gap: 8px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(98, 139, 183, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  outline: none;
  padding: 0 12px;
}

textarea {
  min-height: 88px;
  padding-top: 10px;
  resize: vertical;
}

.composer button,
.primary-action,
.admin-primary {
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
  box-shadow: 0 14px 28px rgba(23, 101, 223, 0.22);
  font-weight: 900;
}

.pay-summary {
  border-radius: 28px;
  padding: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 242, 255, 0.74));
}

.price-row {
  margin-top: 16px;
}

.price-row strong {
  color: #e45c1c;
  font-size: 38px;
  font-weight: 950;
}

.price-row span,
.success-note {
  color: var(--blue-deep);
  font-weight: 850;
}

.payment-ready {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.payment-ready .primary-action {
  width: fit-content;
  padding: 0 16px;
}

.field-hint,
.form-error {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.field-hint:empty {
  display: none;
}

.pay-steps,
.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.pay-steps span,
.service-row i {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: rgba(23, 101, 223, 0.08);
  color: var(--blue-deep);
  padding: 7px 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.mobile-form,
.admin-form {
  display: grid;
  gap: 12px;
}

.mobile-form {
  margin-top: 14px;
  padding-bottom: 116px;
}

.mobile-form label,
.admin-form label {
  display: grid;
  gap: 7px;
}

.mobile-form label span,
.admin-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.primary-action {
  min-height: 48px;
}

.admin-product {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  padding: 18px;
}

.admin-auth-locked .admin-product {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100vh;
  padding: 22px;
}

.admin-auth-locked .admin-rail,
.admin-auth-locked .admin-top {
  display: none;
}

.admin-auth-locked .admin-workspace {
  display: grid;
  width: min(520px, 100%);
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.admin-auth-locked #app {
  display: grid;
  width: 100%;
  place-items: center;
}

.admin-rail {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 36px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 26px;
  background: linear-gradient(180deg, #071f3e, #082f63);
  box-shadow: 0 26px 70px rgba(4, 35, 78, 0.28);
  padding: 16px;
  color: white;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 18px;
  font-weight: 900;
}

.admin-logo {
  width: 48px;
  height: 48px;
  box-shadow: 0 16px 34px rgba(1, 22, 52, 0.28);
}

.admin-word strong {
  display: block;
  color: white;
  font-size: 18px;
}

.admin-word small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-nav,
.admin-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  padding: 0 13px;
  font-size: 14px;
  font-weight: 820;
}

.admin-nav[hidden] {
  display: none;
}

.admin-nav span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
}

.admin-nav.is-active {
  background: rgba(255, 255, 255, 0.13);
  color: white;
}

.admin-link {
  display: grid;
  align-items: center;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.admin-workspace {
  height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 28px;
  background: rgba(248, 252, 255, 0.68);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px) saturate(1.25);
  padding: 20px;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 4px 0 18px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(248, 252, 255, 0));
}

.admin-top h1 {
  margin-top: 5px;
  font-size: 32px;
  font-weight: 950;
}

.session-pill {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  padding: 0 10px 0 14px;
  font-size: 13px;
  font-weight: 850;
}

.session-pill button {
  border-radius: 12px;
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
  padding: 7px 10px;
  font-weight: 850;
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 101, 223, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(18, 79, 150, 0.09);
  margin-bottom: 14px;
  padding: 20px;
  backdrop-filter: blur(20px);
}

.ops-hero h2 {
  margin-top: 5px;
  font-size: 25px;
  font-weight: 950;
}

.ops-hero p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.admin-metric,
.funnel-step,
.task-card,
.data-row,
.info-card,
.edit-row {
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.admin-metric {
  padding: 17px;
}

.admin-metric span,
.panel-head span,
.data-row small,
.task-card p,
.detail-head p {
  color: var(--muted);
  font-size: 12px;
}

.admin-metric strong {
  display: block;
  margin-top: 9px;
  font-size: 32px;
  font-weight: 950;
}

.admin-metric p {
  margin-top: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 14px;
  margin-top: 14px;
}

.admin-panel,
.detail-panel,
.login-card {
  border-radius: 24px;
  padding: 18px;
}

.wide {
  grid-column: span 1;
}

.panel-head {
  margin-bottom: 14px;
}

.panel-head h2 {
  font-size: 19px;
  font-weight: 920;
}

.panel-head button,
.task-card button,
.edit-row button,
.admin-search button,
.admin-secondary {
  min-height: 36px;
  border-radius: 12px;
  background: rgba(23, 101, 223, 0.08);
  color: var(--blue-deep);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.funnel-step {
  min-height: 122px;
  padding: 14px;
}

.funnel-step strong {
  display: block;
  margin-top: 18px;
  font-size: 26px;
  font-weight: 950;
}

.funnel-step em,
.data-row em {
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.admin-list,
.task-grid,
.settings-list,
.channel-list,
.notice-list {
  display: grid;
  gap: 10px;
}

.data-row {
  width: 100%;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px;
  text-align: left;
}

.data-row span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.data-row strong,
.data-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-pill,
.order-dot,
.order-badge {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.score-pill.large {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 18px;
}

.order-dot {
  width: 14px;
  height: 42px;
  border-radius: 999px;
}

.order-badge {
  width: 58px;
  height: 58px;
}

.split-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
}

.detail-panel {
  position: sticky;
  top: 92px;
  align-self: start;
}

.detail-head {
  gap: 14px;
}

.detail-head h2 {
  font-size: 25px;
  font-weight: 950;
}

.info-card {
  margin-top: 14px;
  padding: 15px;
}

.next-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(232, 245, 255, 0.64));
}

.summary-row,
.growth-rules {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.summary-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-row article,
.growth-rules article {
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  padding: 12px;
}

.summary-row span,
.growth-rules span {
  color: var(--muted);
  font-size: 12px;
}

.summary-row strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 950;
}

.growth-rules {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.growth-rules b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
  font-size: 12px;
}

.growth-rules strong,
.growth-rules span {
  display: block;
}

.growth-rules strong {
  margin-top: 8px;
}

.growth-rules span {
  margin-top: 4px;
  line-height: 1.5;
}

.order-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.order-steps span {
  position: relative;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.order-steps span.is-done {
  background: rgba(18, 164, 116, 0.1);
  color: var(--green);
}

.order-steps span.is-current {
  background: rgba(23, 101, 223, 0.1);
  color: var(--blue-deep);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  border-radius: 999px;
  background: rgba(23, 101, 223, 0.08);
  color: var(--blue-deep);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 820;
}

.action-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-start;
}

.action-row.tight {
  align-items: stretch;
  margin-top: 0;
}

.action-row.tight > * {
  flex: 1 1 0;
  min-width: 0;
}

.admin-primary,
.admin-secondary {
  min-height: 40px;
  padding: 0 14px;
}

.admin-secondary.danger {
  background: rgba(216, 75, 91, 0.1);
  color: var(--red);
}

.kv {
  min-height: 36px;
  border-bottom: 1px solid rgba(98, 139, 183, 0.12);
}

.kv:last-child {
  border-bottom: 0;
}

.task-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
}

.task-card h3 {
  font-size: 15px;
}

.task-card button {
  grid-column: 1 / -1;
  justify-self: start;
}

.channel-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 13px;
}

.channel-row span,
.channel-row b {
  position: relative;
  z-index: 1;
}

.channel-row i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #74c7ff);
}

.notice-list p {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(98, 139, 183, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  padding: 13px;
  margin: 0;
}

.notice-list b {
  color: var(--blue-deep);
}

.notice-list span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.login-shell {
  display: grid;
  width: 100%;
  min-height: auto;
  place-items: center;
}

.login-card {
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 0%, rgba(23, 101, 223, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.82);
  padding: 28px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  font-size: 18px;
  font-weight: 950;
}

.login-brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.login-card h2 {
  margin-bottom: 22px;
  font-size: 34px;
  font-weight: 950;
}

.edit-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.7fr 0.7fr 1.4fr auto auto;
  gap: 8px;
  padding: 10px;
}

.admin-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-bottom: 12px;
}

.empty-state,
.loading-card {
  border-radius: 18px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  transform: translate(-50%, 16px);
  border: 1px solid rgba(23, 101, 223, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  color: var(--blue-deep);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.legal-page {
  width: min(880px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue-deep);
  font-weight: 850;
}

.legal-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.legal-panel h1 {
  font-size: clamp(32px, 6vw, 56px);
}

.legal-panel h2 {
  margin-top: 28px;
  font-size: 20px;
}

.legal-panel p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.85;
}

@media (max-width: 980px) {
  .admin-product {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .admin-rail {
    position: static;
    height: auto;
    border-radius: 22px;
    overflow: hidden;
  }

  .admin-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    width: 100%;
    scrollbar-width: none;
  }

  .admin-menu::-webkit-scrollbar {
    display: none;
  }

  .admin-nav {
    min-width: 0;
  }

  .admin-nav,
  .admin-link {
    justify-content: center;
    text-align: center;
  }

  .admin-workspace {
    height: auto;
    min-height: calc(100vh - 170px);
  }

  .metrics-strip,
  .admin-grid,
  .split-work,
  .funnel {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }

  .edit-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .student-product {
    display: block;
    padding: 0;
  }

  .phone-app {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .student-screen {
    height: calc(100vh - 156px);
  }

  .hero-copy h2,
  .pay-summary h2 {
    font-size: 31px;
  }

  .app-hero {
    min-height: 374px;
    padding: 20px;
  }

  .hero-visual {
    min-height: 128px;
  }

  .admin-workspace {
    border-radius: 22px;
    padding: 14px;
  }

  .admin-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }
}
