:root {
  --background: #f2fbf8;
  --surface: #ffffff;
  --surface-low: #edf6f3;
  --surface-container: #e7f0ed;
  --surface-high: #e1eae7;
  --surface-highest: #dbe4e2;
  --ink: #151d1c;
  --ink-soft: #404944;
  --emerald: #064e3b;
  --primary: #003527;
  --lime: #afff00;
  --lime-soft: #e7ffb3;
  --outline: #707974;
  --outline-soft: #bfc9c3;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(255, 255, 255, 0.62);
  --red: #ba1a1a;
  --shadow-sm: 0 4px 8px rgba(6, 78, 59, 0.05), 0 10px 22px rgba(6, 78, 59, 0.07);
  --shadow-lg: 0 24px 70px rgba(6, 78, 59, 0.14);
  --sidebar-width: 256px;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--background); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--background);
  font-family: "Lexend", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}
button, input, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
}
.ambient, .login-ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.ambient-one { width: 48vw; height: 48vw; right: -14vw; top: -22vw; background: rgba(176, 240, 214, 0.32); }
.ambient-two { width: 44vw; height: 44vw; left: 12vw; bottom: -30vw; background: rgba(175, 255, 0, 0.12); }
.glass-panel {
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 50;
  padding: 30px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid rgba(255,255,255,.9);
  box-shadow: 3px 0 20px rgba(6,78,59,.06);
  backdrop-filter: blur(24px);
}
.athlete-avatar {
  width: 72px; height: 72px; margin: 0 auto 15px;
  display: grid; place-items: center;
  color: var(--emerald);
  border-radius: 50%;
  border: 3px solid var(--lime);
  background: radial-gradient(circle at 32% 25%, #e7ffd2, #9edac2 45%, #498d76 100%);
  box-shadow: 0 8px 18px rgba(6,78,59,.18), 0 0 0 5px rgba(255,255,255,.72);
  overflow: hidden;
}
.athlete-avatar .material-symbols-outlined { font-size: 39px; color: white; text-shadow: 0 3px 10px rgba(0,53,39,.24); }
.athlete-avatar.has-image { background-size: cover; background-position: center; }
.athlete-avatar.has-image .material-symbols-outlined { opacity: 0; }
.brand { text-align: center; color: var(--emerald); margin-bottom: 48px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.brand small { margin-top: 7px; color: var(--ink-soft); font-size: 13px; }
.brand .plan-label { width:max-content; max-width:100%; margin:9px auto 0; padding:5px 10px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(11,124,97,.16); border-radius:999px; color:#075e49; background:linear-gradient(135deg,#e7ffd2,#d9f7e9); font-size:10px; font-weight:800; line-height:1.2; box-shadow:0 5px 14px rgba(6,78,59,.08); }
.nav { display: grid; gap: 10px; }
.nav-item {
  width: 100%; min-height: 52px; padding: 0 16px;
  display: flex; align-items: center; gap: 14px;
  border: 0; border-radius: 15px; background: transparent;
  color: var(--ink-soft); font-weight: 500; cursor: pointer; text-align: left;
  transition: transform .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}
.nav-item .nav-icon { width: 25px; font-size: 25px; }
.nav-item:hover { color: var(--emerald); background: rgba(231,240,237,.75); transform: translateX(2px); }
.nav-item.active { color: var(--emerald); background: var(--lime); box-shadow: 0 7px 20px rgba(175,255,0,.2); font-weight: 800; }
.nav-item.active .material-symbols-outlined { font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24; }
.sidebar-status { margin-top: auto; padding: 16px 10px; display: flex; gap: 10px; border-top: 1px solid rgba(112,121,116,.15); }
.status-dot { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(175,255,0,.14), 0 0 12px var(--lime); }
.sidebar-status strong, .sidebar-status small { display: block; }
.sidebar-status strong { color: var(--emerald); font-size: 11px; }
.sidebar-status small { margin-top: 4px; color: var(--outline); font-size: 9px; line-height: 1.5; }
.sidebar-cta {
  min-height: 56px; margin-top: 16px; border: 0; border-radius: 17px;
  display: flex; justify-content: center; align-items: center; gap: 9px;
  color: var(--lime); background: var(--emerald); font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 24px rgba(6,78,59,.2); transition: transform .2s ease, box-shadow .2s ease;
}
.sidebar-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(6,78,59,.25); }

.main { grid-column: 2; min-width: 0; padding: 0 48px 54px; position: relative; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-heading p, .page-heading h1 { margin: 0; }
.page-heading p { color: var(--emerald); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.page-heading h1 { margin-top: 6px; color: var(--emerald); font-size: 30px; }
.top-actions, .user-summary { display: flex; align-items: center; gap: 12px; }
.user-summary img, .profile-main img { object-fit: cover; border-radius: 50%; background: var(--surface-high); border: 2px solid white; box-shadow: 0 0 0 1px rgba(6,78,59,.12); }
.user-summary img { width: 44px; height: 44px; }
.user-summary strong, .user-summary small { display: block; }
.user-summary strong { color: var(--emerald); }
.user-summary small { margin-top: 4px; color: var(--outline); font-size: 10px; }
.icon-button, .text-button { border: 0; background: none; cursor: pointer; }
.icon-button { display: grid; place-items: center; }
.menu-button { display: none; width: 42px; height: 42px; border-radius: 13px; background: var(--glass); }

.button {
  min-height: 46px; padding: 0 20px; border: 0; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}
.button .material-symbols-outlined { font-size: 20px; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: scale(.98); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.primary { color: var(--lime); background: var(--emerald); box-shadow: 0 8px 22px rgba(6,78,59,.18); }
.button.primary:hover { box-shadow: 0 10px 28px rgba(6,78,59,.25); }
.button.secondary { color: var(--emerald); background: rgba(255,255,255,.68); border: 1.5px solid var(--emerald); }
.button.lime { color: var(--emerald); background: var(--lime); box-shadow: 0 7px 22px rgba(175,255,0,.28); }
.button.lime:hover { box-shadow: 0 0 26px rgba(175,255,0,.5); }
.button.ghost { min-height: 38px; padding: 0 8px; color: var(--emerald); background: transparent; font-size: 11px; }
.button.danger { color: var(--red); background: rgba(255,218,214,.58); border: 1px solid rgba(186,26,26,.18); }
.button.full { width: 100%; }
.text-button { padding: 8px; color: var(--emerald); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.view { display: none; }
.view.active { display: block; }

.announcement-strip {
  max-width: 1260px;
  min-height: 48px;
  margin: 0 auto 18px;
  padding: 0 12px 0 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(175,255,0,.42);
  border-radius: 18px;
  color: var(--emerald);
  background: rgba(244,255,219,.78);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.announcement-strip > .material-symbols-outlined { font-size: 20px; }
.announcement-marquee { min-width: 0; overflow: hidden; white-space: nowrap; }
.announcement-track { width:max-content; display:flex; align-items:center; animation:marquee 20s linear infinite; will-change:transform; }
.announcement-track strong { flex:none; padding-right:72px; font-size:12px; }
.announcement-strip:hover .announcement-track { animation-play-state:paused; }
.announcement-strip .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--emerald);
}
.announcement-strip .icon-button:hover { background: rgba(255,255,255,.55); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

body[data-view="home"] .topbar,
body[data-view="route"] .topbar { display: none; }

/* Home */
.home-view { max-width: 1260px; margin: 0 auto; padding-top: 58px; }
.welcome-band { min-height: 168px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band-label, .section-title-row span, .plans-heading > span, .section-intro > div > span, .recharge-section > div > span, .account-aside section > span {
  color: var(--emerald); font-size: 11px; font-weight: 700; letter-spacing: .12em;
}
.welcome-band h2 { max-width: 780px; margin: 8px 0 8px; color: var(--emerald); font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.045em; }
.welcome-band p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.welcome-actions { display: flex; flex-direction: column; flex: 0 0 190px; gap: 10px; }
.section-title-row { margin: 32px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-title-row h2 { margin: 5px 0 0; color: var(--emerald); font-size: 32px; line-height: 1.2; letter-spacing: -.025em; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.metric {
  min-height: 164px; padding: 24px;
  background: rgba(255,255,255,.74); border: 1.5px solid var(--glass-border); border-radius: 25px;
  box-shadow: var(--shadow-sm); backdrop-filter: blur(14px); position: relative; overflow: hidden;
}
.metric.featured::after { content:""; position:absolute; inset:auto -35% -70% 25%; height:140%; border-radius:50%; background:rgba(175,255,0,.15); filter:blur(18px); }
.metric.outlined { border-color: rgba(175,255,0,.62); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); }
.metric-top > span { font-size: 11px; font-weight: 700; letter-spacing: .11em; }
.metric-top i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--emerald); background: var(--surface-high); font-size: 20px; font-style: normal; }
.metric.featured .metric-top i, .metric.outlined .metric-top i { background: var(--lime-soft); }
.metric > strong { display: block; position: relative; z-index: 1; margin: 23px 0 8px; color: var(--emerald); font-size: clamp(25px, 2.6vw, 44px); line-height: 1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.metric > small { position: relative; z-index: 1; color: var(--outline); font-size: 10px; line-height: 1.45; }
.quick-start { margin-top: 52px; }
.quick-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.quick-options button {
  min-height: 214px; padding: 28px; border: 1.5px solid var(--glass-border); border-radius: 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255,255,255,.54); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.quick-options button:hover { transform: translateY(-5px); border-color: rgba(175,255,0,.7); box-shadow: var(--shadow-lg); }
.quick-options button.recommended { background: linear-gradient(135deg, rgba(244,255,219,.84), rgba(255,255,255,.65)); border-color: rgba(175,255,0,.56); }
.quick-options i { width: 66px; height: 66px; margin-bottom: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--emerald); background: var(--surface-high); font-size: 31px; font-style: normal; }
.quick-options .recommended i { background: var(--lime); box-shadow: 0 10px 24px rgba(175,255,0,.28); }
.quick-options strong { color: var(--emerald); font-size: 19px; }
.quick-options span { margin-top: 10px; color: var(--ink-soft); font-size: 12px; }
.recent-panel { margin-top: 54px; }
.activity-list { display: grid; gap: 13px; }
.activity-item, .empty-state {
  min-height: 78px; padding: 0 22px; border: 1.5px solid var(--glass-border); border-radius: 24px;
  background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm);
}
.activity-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 16px; }
.activity-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-high); color: var(--emerald); font-weight: 800; }
.activity-copy strong, .activity-copy span { display: block; }
.activity-copy strong { font-size: 14px; }
.activity-copy span { margin-top: 4px; color: var(--outline); font-size: 10px; }
.activity-price { color: var(--emerald); font-weight: 800; }
.empty-state { display: grid; place-items: center; color: var(--outline); text-align: center; }

/* Route planning */
body[data-view="route"] { overflow: hidden; }
body[data-view="route"] .main { height: 100vh; padding: 0; overflow: hidden; }
.route-workspace { position: relative; width: 100%; height: 100vh; overflow: hidden; background: var(--surface-high); }
.map-panel { position: absolute; inset: 0; overflow: hidden; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; background: #dfeae6; }
.map-panel::after { content:""; position:absolute; inset:0; pointer-events:none; background: linear-gradient(90deg, rgba(0,53,39,.08), transparent 18%, transparent 82%, rgba(0,53,39,.04)); }
.map-toolbar {
  position: absolute; z-index: 5; right: 34px; top: 30px; min-width: 280px; min-height: 66px; padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 1.5px solid var(--glass-border); border-radius: 20px; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); backdrop-filter: blur(14px);
}
.map-toolbar strong, .map-toolbar div > span { display: block; }
.map-toolbar strong { color: var(--emerald); font-size: 12px; }
.map-toolbar div > span { max-width: 220px; margin-top: 4px; color: var(--outline); font-size: 9px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.map-source, .live-badge { white-space: nowrap; border-radius: 999px; color: var(--emerald); background: rgba(231,240,237,.88); }
.map-source { padding: 7px 10px; font-size: 9px; font-weight: 700; }
.route-controls {
  position: absolute; z-index: 10; top: 32px; left: 40px; width: 390px; max-height: calc(100vh - 64px); overflow: auto;
  padding: 27px; border-radius: 30px;
}
.route-control-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.route-control-heading > div > span { color: var(--emerald); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.route-control-heading h2 { margin: 5px 0 3px; color: var(--emerald); font-size: 27px; }
.route-control-heading p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.live-badge { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid label { color: var(--emerald); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.form-grid .campus-field { grid-column: 1 / -1; }
.campus-field select { margin-top: 8px; padding-right: 36px; }
.campus-field .ui-select { margin-top: 8px; }
.campus-current {
  min-height: 48px; margin-top: 8px; padding: 0 14px; display: flex; align-items: center;
  border-radius: 13px; color: var(--ink); background: rgba(255,255,255,.78);
  box-shadow: inset 0 0 0 1px rgba(191,201,195,.26); letter-spacing: 0; font-size: 13px;
}
.input-unit { position: relative; margin-top: 8px; }
.input-unit input, select {
  width: 100%; height: 48px; padding: 0 46px 0 14px; border: 0; border-radius: 13px;
  color: var(--ink); background: rgba(255,255,255,.78); outline: none; box-shadow: inset 0 0 0 1px rgba(191,201,195,.26);
  transition: box-shadow .2s ease, background .2s ease;
}
.input-unit input:focus, select:focus { background: white; box-shadow: inset 0 -2px 0 var(--lime), 0 0 0 4px rgba(175,255,0,.12); }
.ui-select { --ui-select-surface: rgba(255,255,255,.78); --ui-select-border: rgba(191,201,195,.42); --ui-select-muted: var(--outline); }
.ui-select-button { min-height: 48px; border: 0; border-radius: 13px; box-shadow: inset 0 0 0 1px rgba(191,201,195,.26); }
.ui-select-button:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(6,78,59,.34); }
.input-unit span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--outline); font-size: 9px; pointer-events: none; }
.control-row { min-height: 54px; margin-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.switch-row { display: flex; align-items: center; gap: 8px; color: var(--emerald); font-size: 10px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch { width: 36px; height: 21px; border-radius: 999px; background: var(--outline-soft); position: relative; transition: background .2s ease; }
.switch::after { content:""; position:absolute; width:17px; height:17px; top:2px; left:2px; border-radius:50%; background:white; box-shadow:0 1px 4px rgba(0,0,0,.18); transition:left .2s ease; }
.switch-row input:checked + .switch { background: var(--emerald); }
.switch-row input:checked + .switch::after { left: 17px; }
.checkpoint-block { margin: 4px 0 18px; }
.field-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.field-label span { color: var(--emerald); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.field-label small { color: var(--outline); font-size: 9px; }
.checkpoint-list { max-height: 150px; overflow: auto; display: grid; gap: 7px; padding-right: 4px; }
.checkpoint-item { min-height: 38px; padding: 0 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--glass-border); border-radius: 12px; background: rgba(255,255,255,.5); color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.checkpoint-item::before { content:"location_on"; font-family:"Material Symbols Outlined"; color:var(--emerald); font-size:17px; }
.checkpoint-item input { accent-color: var(--lime); }
.checkpoint-item:has(input:checked) { color: var(--emerald); background: rgba(231,255,179,.35); border-color: rgba(175,255,0,.72); }
.route-summary { position: absolute; z-index: 10; right: 40px; bottom: 34px; width: 470px; padding: 22px; border-radius: 28px; }
.route-result { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.route-result div { min-width: 0; padding: 0 14px; border-right: 1px solid rgba(255,255,255,.7); }
.route-result div:first-child { padding-left: 0; }
.route-result div:last-child { border-right: 0; padding-right: 0; }
.route-result span, .route-result strong { display: block; }
.route-result span { color: var(--emerald); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.route-result strong { margin-top: 7px; color: var(--primary); font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.submit-route-button { margin-top: 18px; }
.submit-result { margin-top: 12px; padding: 12px 14px; border-radius: 13px; background: rgba(231,255,179,.5); color: var(--emerald); font-size: 10px; line-height: 1.55; }
.submit-result.warning { background: rgba(255,244,188,.75); color: #6a5412; }
.submit-result.error { background: rgba(255,218,214,.8); color: #93000a; }
.submit-result strong { display: block; margin-bottom: 3px; }
.checkpoint-marker { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--emerald); background: var(--lime); border: 2px solid white; box-shadow: 0 0 13px rgba(175,255,0,.9); font-size: 9px; font-weight: 800; }
.checkpoint-marker.missed { color: #93000a; background: #ffdad6; box-shadow: 0 0 13px rgba(255,96,96,.55); }
.route-endpoint { min-width: 46px; height: 28px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; color: var(--lime); background: var(--emerald); border: 2px solid white; box-shadow: 0 4px 12px rgba(0,53,39,.25); font-size: 9px; font-weight: 800; }
.route-endpoint.finish { color: var(--emerald); background: var(--lime); }

/* Plans */
.plans-content { max-width: 1180px; margin: 0 auto; padding: 0 0 50px; }
.balance-banner { max-width: 900px; min-height: 164px; margin: 0 auto; padding: 32px 38px; display: flex; align-items: center; gap: 24px; border-radius: 28px; position: relative; overflow: hidden; }
.balance-banner::after { content:""; position:absolute; width:360px; height:250px; right:-80px; bottom:-170px; border-radius:50%; background:rgba(175,255,0,.24); filter:blur(22px); }
.balance-icon { width: 64px; height: 64px; flex:0 0 auto; display:grid; place-items:center; border-radius:50%; color:var(--lime); background:var(--emerald); box-shadow:0 10px 24px rgba(6,78,59,.2); }
.balance-icon .material-symbols-outlined { font-size: 30px; }
.balance-banner > div:nth-child(2) { flex:1; }
.balance-banner span, .balance-banner strong { display:block; }
.balance-banner > div > span { color:var(--ink-soft); font-size:14px; }
.balance-banner strong { margin-top:5px; color:var(--emerald); font-size:52px; line-height:1; letter-spacing:-.04em; }
.balance-banner .button { position:relative; z-index:1; min-width:150px; }
.plans-heading { margin:24px 0 34px; text-align:center; }
.plans-heading h2 { margin:7px 0 8px; color:var(--emerald); font-size:38px; letter-spacing:-.03em; }
.plans-heading p { margin:0; color:var(--ink-soft); font-size:15px; }
.plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; align-items:stretch; }
.plan-card { min-height:410px; padding:32px; display:flex; flex-direction:column; position:relative; border:1.5px solid var(--glass-border); border-radius:26px; background:rgba(255,255,255,.72); box-shadow:var(--shadow-sm); transition:transform .25s ease, box-shadow .25s ease; }
.plan-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.plan-card.recommended { transform:scale(1.035); border:4px solid var(--emerald); background:linear-gradient(150deg,rgba(244,255,219,.9),rgba(255,255,255,.72)); }
.plan-card.recommended:hover { transform:scale(1.035) translateY(-6px); }
.plan-tag { align-self:flex-start; padding:7px 10px; border-radius:999px; color:var(--emerald); background:var(--surface-high); font-size:9px; font-weight:700; letter-spacing:.1em; }
.plan-card.recommended .plan-tag { position:absolute; left:50%; top:-16px; transform:translateX(-50%); padding:7px 22px; background:var(--lime); box-shadow:0 4px 12px rgba(175,255,0,.3); white-space:nowrap; }
.plan-card::before { content:"directions_run"; width:52px; height:52px; margin:18px 0; display:grid; place-items:center; font-family:"Material Symbols Outlined"; font-size:25px; color:var(--emerald); background:var(--surface-high); border-radius:15px; }
.plan-card.recommended::before { content:"workspace_premium"; color:var(--lime); background:var(--emerald); box-shadow:0 8px 18px rgba(6,78,59,.22); }
.plan-card:last-child::before { content:"event_available"; }
.plan-card h3 { margin:0; color:var(--emerald); font-size:23px; }
.plan-price { margin:18px 0 12px; color:var(--emerald); font-size:38px; font-weight:800; letter-spacing:-.04em; }
.plan-price small { color:var(--ink-soft); font-size:12px; font-weight:400; letter-spacing:0; }
.plan-card > p { min-height:48px; margin:0 0 20px; color:var(--ink-soft); line-height:1.6; }
.plan-facts { margin:auto 0 24px; display:grid; gap:10px; }
.plan-facts div { min-height:35px; display:flex; align-items:center; justify-content:space-between; color:var(--emerald); font-size:11px; }
.plan-facts div::before { content:"check_circle"; margin-right:8px; font-family:"Material Symbols Outlined"; color:var(--lime); font-size:20px; }
.plan-facts div span { flex:1; }
.recharge-section { max-width:900px; margin:76px auto 0; padding-top:60px; border-top:1px solid rgba(255,255,255,.85); text-align:center; }
.recharge-section h2 { margin:7px 0; color:var(--emerald); font-size:25px; }
.recharge-section p { margin:0; color:var(--outline); }
.coming-soon { width:max-content; margin:13px auto 30px; padding:7px 13px; display:flex; align-items:center; gap:7px; border-radius:999px; background:var(--surface-highest); color:var(--ink-soft); font-size:9px; font-weight:700; letter-spacing:.1em; }
.coming-soon .material-symbols-outlined { font-size:15px; }
.recharge-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; opacity:.55; filter:grayscale(.7); }
.recharge-options > button[data-amount] { min-height:104px; border:2px dashed var(--outline-soft); border-radius:18px; background:rgba(255,255,255,.5); cursor:not-allowed; }
.recharge-options strong, .recharge-options span { display:block; }
.recharge-options strong { color:var(--emerald); font-size:20px; }
.recharge-options span { margin-top:8px; color:var(--outline); font-size:10px; }
.recharge-options #rechargeButton { grid-column:1/-1; width:220px; margin:14px auto 0; }
.loading-line { grid-column:1/-1; min-height:180px; display:grid; place-items:center; color:var(--outline); }

/* Orders and account */
.orders-view, .records-view, .account-view { max-width:1180px; margin:0 auto; }
.section-intro { margin:20px 0 30px; display:flex; align-items:flex-end; justify-content:space-between; gap:30px; }
.section-intro h2 { margin:7px 0 5px; color:var(--emerald); font-size:35px; }
.section-intro p { margin:0; color:var(--ink-soft); }
.section-intro select { width:170px; height:46px; padding:0 14px; border-radius:14px; }
.section-intro .ui-select { width: 170px; }
.section-intro .ui-select-button { min-height: 46px; border-radius: 14px; }
.table-panel { border-radius:26px; overflow:hidden; }
.table-scroll { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th, td { height:64px; padding:0 18px; text-align:left; border-bottom:1px solid rgba(191,201,195,.25); white-space:nowrap; }
th { color:var(--emerald); background:rgba(237,246,243,.7); font-size:10px; letter-spacing:.06em; }
td { font-size:12px; }
.empty-cell { height:180px; color:var(--outline); text-align:center; }
.order-status { padding:6px 10px; border-radius:999px; color:var(--emerald); background:var(--lime-soft); font-size:9px; font-weight:700; }
.order-main strong, .order-main span { display:block; }
.order-main strong { color:var(--emerald); font-size:12px; }
.order-main span { margin-top:5px; color:var(--outline); font-size:9px; }
.order-history-list, .run-record-list { display:grid; gap:14px; }
.order-history-card { padding:20px 22px; border-radius:22px; }
.order-history-head { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:15px; }
.order-type-mark { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; color:var(--lime); background:var(--emerald); font-size:16px; font-weight:800; }
.order-history-head strong, .order-history-head small { display:block; }
.order-history-head strong { color:var(--emerald); font-size:15px; }
.order-history-head small { margin-top:5px; color:var(--outline); font-size:9px; overflow-wrap:anywhere; }
.order-history-head b { color:var(--emerald); font-size:20px; }
.order-history-meta { margin:15px 0 0 61px; padding-top:13px; display:flex; align-items:center; gap:12px; border-top:1px solid rgba(191,201,195,.3); color:var(--outline); font-size:10px; }
.order-history-meta time { margin-left:auto; }
.run-record-card { padding:22px; display:grid; grid-template-columns:54px minmax(0,1fr) minmax(330px,.9fr); align-items:center; gap:18px; border-radius:24px; border-left:5px solid var(--emerald); }
.run-record-card.failed { border-left-color:var(--red); }
.run-record-card.pending { border-left-color:#d08700; }
.run-record-icon { width:54px; height:54px; display:grid; place-items:center; border-radius:18px; color:var(--lime); background:var(--emerald); }
.run-record-card.failed .run-record-icon { color:#fff; background:var(--red); }
.run-record-card.pending .run-record-icon { color:#6a5412; background:#fff4bc; }
.run-record-icon .material-symbols-outlined { font-size:28px; }
.run-record-copy > div { display:flex; align-items:center; gap:10px; }
.run-record-copy > div > strong { color:var(--emerald); font-size:24px; }
.run-record-copy p { margin:6px 0 0; color:var(--outline); font-size:10px; }
.run-record-copy > small { margin-top:7px; display:block; color:var(--red); font-size:9px; }
.run-record-card.pending .run-record-copy > small { color:#6a5412; }
.run-record-status { padding:5px 9px; border-radius:999px; color:var(--emerald); background:var(--lime-soft); font-size:9px; font-weight:800; }
.run-record-card.failed .run-record-status { color:var(--red); background:#ffdad6; }
.run-record-card.pending .run-record-status { color:#6a5412; background:#fff4bc; }
.run-record-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.run-record-stats span { min-height:58px; padding:10px; display:flex; flex-direction:column; justify-content:center; border-radius:14px; background:rgba(237,246,243,.7); }
.run-record-stats small, .run-record-stats strong { display:block; }
.run-record-stats small { color:var(--outline); font-size:8px; }
.run-record-stats strong { margin-top:5px; color:var(--emerald); font-size:10px; }
.account-login-prompt { width:min(560px,100%); margin:34px auto 0; padding:48px 42px; border-radius:30px; text-align:center; }
.account-login-prompt > span { color:var(--emerald); font-size:10px; font-weight:700; letter-spacing:.12em; }
.account-login-prompt h2 { margin:10px 0 8px; color:var(--emerald); font-size:30px; letter-spacing:-.03em; }
.account-login-prompt p { margin:0 0 26px; color:var(--ink-soft); line-height:1.7; }
.account-login-prompt .button { min-width:220px; }
.account-layout { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr); gap:28px; }
.profile-panel { border-radius:28px; overflow:hidden; }
.profile-cover { height:150px; background:radial-gradient(circle at 80% 15%,rgba(175,255,0,.75),transparent 32%),linear-gradient(125deg,var(--emerald),#0b7c61); }
.profile-main-card { margin:-112px 22px 20px; padding:22px; position:relative; border-radius:24px; background:rgba(255,255,255,.96); box-shadow:0 16px 38px rgba(0,53,39,.16); }
.profile-main { padding:0; display:flex; align-items:center; gap:20px; }
.profile-main img { width:94px; height:94px; }
.profile-main span { color:var(--outline); font-size:10px; }
.profile-main h2 { margin:6px 0 4px; color:var(--emerald); font-size:27px; }
.profile-main p { margin:0; color:var(--outline); font-size:10px; overflow-wrap:anywhere; }
.account-primary-actions { margin:18px 0 0; padding:14px; display:grid; grid-template-columns:minmax(180px,240px) 1fr; align-items:center; gap:14px; border:1px solid rgba(11,124,97,.14); border-radius:18px; background:linear-gradient(135deg,rgba(231,255,210,.72),rgba(255,255,255,.64)); }
.account-primary-actions small { color:var(--ink-soft); font-size:10px; line-height:1.55; }
.profile-fields { padding:0 30px 30px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-fields div { min-height:74px; padding:16px; border-radius:17px; background:rgba(255,255,255,.5); }
.profile-fields span, .profile-fields strong { display:block; }
.profile-fields span { color:var(--outline); font-size:9px; }
.profile-fields strong { margin-top:7px; color:var(--emerald); font-size:12px; overflow-wrap:anywhere; }
.account-aside { display:grid; align-content:start; gap:14px; }
.account-aside section { padding:24px; border-radius:23px; }
.account-aside h3 { margin:8px 0 7px; color:var(--emerald); }
.account-aside p { margin:0; color:var(--ink-soft); font-size:11px; line-height:1.7; }
.campus-settings select { margin:16px 0 12px; padding-right:36px; }
.campus-settings .ui-select { margin: 16px 0 12px; }
.campus-settings .button { min-height:46px; }

/* Login and common dialogs */
.modal { position:fixed; inset:0; z-index:200; padding:24px; display:grid; place-items:center; background:rgba(242,251,248,.86); backdrop-filter:blur(18px); }
.login-modal { overflow:auto; }
.login-ambient-one { width:58vw; height:58vw; right:-12vw; top:-25vw; background:rgba(176,240,214,.42); }
.login-ambient-two { width:52vw; height:52vw; left:-16vw; bottom:-28vw; background:rgba(175,255,0,.18); }
.modal-card { width:min(480px,100%); padding:36px; position:relative; border-radius:30px; text-align:center; }
.modal-close { position:absolute; top:16px; right:16px; width:42px; height:42px; border-radius:50%; color:var(--emerald); }
.modal-close:hover { background:var(--surface-high); }
.login-card { width:min(520px,100%); padding:38px 52px 34px; box-shadow:var(--shadow-lg); }
.login-icon { width:60px; height:60px; margin:0 auto 18px; display:grid; place-items:center; border-radius:18px; color:var(--emerald); background:var(--surface-high); border:1px solid var(--glass-border); }
.login-icon .material-symbols-outlined { font-size:31px; }
.modal-kicker { color:var(--emerald); font-size:9px; font-weight:700; letter-spacing:.14em; }
.modal-card h2 { margin:7px 0 6px; color:var(--emerald); font-size:34px; letter-spacing:-.03em; }
.modal-card > p { margin:0; color:var(--ink-soft); }
.qr-outer { margin:28px auto 22px; padding:11px; border:1px solid rgba(191,201,195,.35); border-radius:28px; }
.qr-frame { width:300px; max-width:100%; aspect-ratio:1; margin:0 auto; padding:28px; display:grid; place-items:center; position:relative; overflow:hidden; border-radius:23px; background:white; box-shadow:0 4px 14px rgba(6,78,59,.08); }
.qr-frame img { width:100%; height:100%; object-fit:contain; position:relative; z-index:2; }
.qr-loading { color:var(--outline); font-size:12px; }
.corner { position:absolute; z-index:4; width:28px; height:28px; border-color:var(--lime); border-style:solid; }
.corner.tl { top:17px; left:17px; border-width:3px 0 0 3px; border-radius:8px 0 0 0; }
.corner.tr { top:17px; right:17px; border-width:3px 3px 0 0; border-radius:0 8px 0 0; }
.corner.bl { bottom:17px; left:17px; border-width:0 0 3px 3px; border-radius:0 0 0 8px; }
.corner.br { bottom:17px; right:17px; border-width:0 3px 3px 0; border-radius:0 0 8px 0; }
.scan-line { position:absolute; z-index:3; left:25px; right:25px; top:24px; height:2px; background:var(--lime); box-shadow:0 0 9px 2px rgba(175,255,0,.7); animation:scan 3s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform:translateY(0); opacity:.45; } 50% { transform:translateY(248px); opacity:1; } }
.scan-status { width:max-content; max-width:100%; margin:0 auto; padding:12px 20px; display:grid; grid-template-columns:auto auto; align-items:center; gap:3px 10px; border-radius:999px; background:rgba(231,240,237,.72); }
.scan-indicator { grid-row:1/3; width:10px; height:10px; border-radius:50%; background:var(--lime); box-shadow:0 0 10px rgba(175,255,0,.9); animation:pulse 2s infinite; }
.scan-indicator.error { background:var(--red); box-shadow:none; animation:none; }
.scan-status strong { color:var(--emerald); font-size:10px; letter-spacing:.08em; text-align:left; }
.scan-status small { color:var(--outline); font-size:8px; text-align:left; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(175,255,0,.5)} 50%{box-shadow:0 0 0 9px rgba(175,255,0,0)} }
.login-help { margin-top:22px; border:0; background:transparent; color:rgba(6,78,59,.62); font-size:11px; }
.confirm-card { max-width:440px; }
.confirm-card h2 { font-size:28px; }
.confirm-actions { margin-top:26px; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.purchase-card { max-width:520px; text-align:left; }
.purchase-card h2 { font-size:29px; }
.purchase-summary { margin:20px 0; padding:17px; display:flex; justify-content:space-between; gap:15px; border-radius:18px; color:var(--emerald); background:var(--surface-low); }
.purchase-summary strong, .purchase-summary span { display:block; }
.purchase-summary span { font-weight:800; }
.payment-methods { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:18px; }
.payment-method { min-height:112px; padding:16px; display:grid; grid-template-columns:40px 1fr; align-content:center; gap:3px 10px; border:2px solid transparent; border-radius:19px; color:var(--ink-soft); background:rgba(255,255,255,.76); cursor:pointer; text-align:left; }
.payment-icon { grid-row:1/3; width:40px; height:40px; display:grid; place-items:center; border-radius:12px; background:transparent; overflow:hidden; }
.payment-icon img { width:32px; height:32px; display:block; object-fit:contain; border:0; background:transparent; image-rendering:auto; }
.payment-method strong, .payment-method small { display:block; }
.payment-method small { color:var(--outline); font-size:9px; }
.payment-method.active { border-color:var(--emerald); background:var(--lime-soft); box-shadow:0 7px 20px rgba(6,78,59,.1); }
.purchase-security { margin:12px auto 0; display:block; color:var(--outline); font-size:9px; text-align:center; }
.notice-card { max-width: 520px; text-align: left; }
.notice-card h2 { font-size: 28px; }
.notice-content { margin: 16px 0 24px; color: var(--ink-soft); line-height: 1.75; }
.notice-content p { margin: 0 0 10px; }
.notice-content a { color: var(--emerald); font-weight: 700; }
.notice-content ul, .notice-content ol { padding-left: 22px; }
.notice-content blockquote { margin: 14px 0; padding: 10px 14px; border-left: 4px solid var(--lime); background: rgba(175,255,0,.1); }
.notice-content h2, .notice-content h3, .notice-content h4 { color: var(--emerald); line-height: 1.35; }
.toast { position:fixed; z-index:300; left:50%; bottom:28px; transform:translateX(-50%); max-width:min(520px,calc(100vw - 30px)); padding:13px 20px; border-radius:999px; color:var(--lime); background:var(--emerald); box-shadow:0 14px 34px rgba(6,78,59,.28); font-size:11px; text-align:center; }

@media (max-width: 1180px) {
  .main { padding-left:32px; padding-right:32px; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .route-controls { left:24px; width:370px; }
  .route-summary { right:24px; width:420px; }
}

@media (max-width: 900px) {
  .app-shell { display:block; }
  .sidebar { transform:translateX(-106%); transition:transform .25s ease; }
  .sidebar.open { transform:translateX(0); }
  .main { grid-column:auto; padding:0 22px 38px; }
  .topbar { min-height:78px; }
  .menu-button { display:grid; }
  body[data-view="home"] .topbar, body[data-view="route"] .topbar { display:flex; position:absolute; z-index:40; left:20px; top:16px; min-height:42px; }
  body[data-view="home"] .topbar .page-heading, body[data-view="home"] .topbar .top-actions,
  body[data-view="route"] .topbar .page-heading, body[data-view="route"] .topbar .top-actions { display:none; }
  .home-view { padding-top:82px; }
  .announcement-strip { margin-top: 78px; }
  .welcome-band { align-items:flex-start; flex-direction:column; }
  .welcome-actions { width:100%; flex-basis:auto; flex-direction:row; }
  .welcome-actions .button { flex:1; }
  .quick-options { grid-template-columns:1fr; }
  .quick-options button { min-height:155px; }
  body[data-view="route"] { overflow:auto; }
  body[data-view="route"] .main { height:auto; min-height:100vh; overflow:visible; padding:0; }
  .route-workspace { min-height:100vh; height:auto; padding:78px 20px 24px; display:flex; flex-direction:column; gap:16px; overflow:visible; }
  .map-panel { position:relative; inset:auto; height:55vh; min-height:420px; order:2; border-radius:28px; overflow:hidden; }
  #map { position:absolute; }
  .map-toolbar { top:14px; right:14px; left:14px; min-width:0; }
  .route-controls { position:relative; inset:auto; width:100%; max-height:none; order:1; }
  .route-summary { position:relative; inset:auto; width:100%; order:3; }
  .plans-content { padding-bottom:50px; }
  .plan-grid { grid-template-columns:1fr; }
  .plan-card.recommended, .plan-card.recommended:hover { transform:none; }
  .account-layout { grid-template-columns:1fr; }
}

@media (max-width: 620px) {
  .main { padding-left:16px; padding-right:16px; }
  .welcome-band h2 { font-size:34px; }
  .welcome-actions { flex-direction:column; }
  .metrics { grid-template-columns:1fr; gap:14px; }
  .metric { min-height:145px; }
  .section-title-row h2 { font-size:27px; }
  .quick-start, .recent-panel { margin-top:38px; }
  .activity-item { grid-template-columns:38px 1fr; }
  .activity-price { grid-column:2; margin-top:-10px; padding-bottom:10px; }
  .route-workspace { padding-left:12px; padding-right:12px; }
  .route-controls, .route-summary { padding:20px; border-radius:23px; }
  .form-grid { grid-template-columns:1fr; }
  .route-result { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 0; }
  .route-result div:nth-child(2) { border-right:0; }
  .route-result div:nth-child(3) { padding-left:0; }
  .plans-content { padding-bottom:40px; }
  .balance-banner { min-height:0; padding:24px; flex-wrap:wrap; }
  .balance-banner strong { font-size:39px; }
  .balance-banner .button { width:100%; }
  .plans-heading h2 { font-size:31px; }
  .plan-card { min-height:420px; padding:26px; }
  .recharge-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-login-prompt { margin-top:18px; padding:36px 22px; }
  .account-login-prompt .button { width:100%; min-width:0; }
  .profile-fields { grid-template-columns:1fr; }
  .profile-main-card { margin:-106px 14px 16px; padding:18px; }
  .profile-main { align-items:center; gap:14px; }
  .profile-main img { width:78px; height:78px; flex:0 0 auto; }
  .profile-main h2 { font-size:21px; overflow-wrap:anywhere; }
  .account-primary-actions { grid-template-columns:1fr; }
  .account-primary-actions small { text-align:center; }
  .order-history-card { padding:17px; }
  .order-history-head { grid-template-columns:42px minmax(0,1fr); }
  .order-type-mark { width:42px; height:42px; }
  .order-history-head b { grid-column:2; font-size:18px; }
  .order-history-meta { margin-left:0; flex-wrap:wrap; }
  .order-history-meta time { width:100%; margin-left:0; }
  .run-record-card { grid-template-columns:46px minmax(0,1fr); padding:17px; }
  .run-record-icon { width:46px; height:46px; }
  .run-record-stats { grid-column:1/-1; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payment-methods { grid-template-columns:1fr; }
  .orders-table thead { display:none; }
  .orders-table, .orders-table tbody, .orders-table tr, .orders-table td { display:block; width:100%; }
  .orders-table tbody { padding:10px; }
  .orders-table tr { margin-bottom:10px; padding:10px 12px; border:1px solid rgba(191,201,195,.34); border-radius:16px; background:rgba(255,255,255,.72); box-shadow:0 7px 18px rgba(6,78,59,.06); }
  .orders-table tr:last-child { margin-bottom:0; }
  .orders-table td { min-height:0; height:auto; padding:8px 0; display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:12px; border:0; white-space:normal; text-align:right; }
  .orders-table td::before { content:attr(data-label); color:var(--outline); font-size:9px; font-weight:700; text-align:left; }
  .orders-table td:first-child { grid-template-columns:1fr; text-align:left; }
  .orders-table td:first-child::before { display:none; }
  .orders-table .empty-cell { display:block; padding:58px 16px; text-align:center; }
  .login-card { padding:32px 20px 28px; }
  .qr-frame { width:260px; }
  @keyframes scan { 0%,100% { transform:translateY(0); opacity:.45; } 50% { transform:translateY(208px); opacity:1; } }
}
