:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #182230;
  --muted: #667085;
  --line: #d6deea;
  --blue: #1769e0;
  --blue-dark: #0f4fb4;
  --green: #0f9f7a;
  --cyan: #12b6c8;
  --lime: #78d26f;
  --ink: #0b1220;
  --orange: #c87516;
  --red: #c33d32;
  --shadow: 0 16px 34px rgba(28, 43, 70, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

body.is-home-view {
  background:
    linear-gradient(125deg, #060b14 0%, #0b1322 40%, #062b34 72%, #07111f 100%),
    #07111f;
  color: #edf6ff;
}

body.is-home-view::before,
body.is-home-view::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body.is-home-view::before {
  background-image:
    linear-gradient(rgba(125, 232, 242, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 232, 242, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 18px);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  opacity: 0.46;
  animation: homeGridShift 22s linear infinite;
}

body.is-home-view::after {
  background:
    linear-gradient(115deg, transparent 0%, rgba(46, 125, 244, 0.18) 18%, transparent 34%),
    linear-gradient(245deg, transparent 0%, rgba(120, 210, 111, 0.14) 20%, transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 36%, rgba(0, 0, 0, 0.25));
  opacity: 0.78;
  animation: homeLightSweep 12s ease-in-out infinite alternate;
}

body.is-home-view .workspace,
body.is-home-view .footer {
  position: relative;
  z-index: 1;
}

body.is-home-view .topbar {
  position: sticky;
  z-index: 20;
}

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

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

button {
  -webkit-tap-highlight-color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr) minmax(96px, auto);
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(214, 222, 234, 0.9);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.18);
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  color: #101828;
  font-size: 18px;
  line-height: 1.15;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-item,
.account-chip button,
.outline-button,
.secondary-button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  color: #344054;
  font-weight: 700;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
}

.nav-item:hover,
.nav-item.is-active {
  background: #eaf1fb;
  color: var(--blue);
}

.account-chip {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
}

.account-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-chip button {
  flex: 0 0 auto;
  padding: 0 16px;
  border-color: var(--blue);
  background: #ffffff;
  color: var(--blue);
}

body.is-home-view .topbar {
  background: rgba(6, 12, 24, 0.78);
  border-bottom-color: rgba(125, 232, 242, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

body.is-home-view .brand-logo {
  box-shadow: 0 0 0 1px rgba(125, 232, 242, 0.26), 0 12px 28px rgba(18, 182, 200, 0.18);
}

body.is-home-view .brand-text strong {
  color: #ffffff;
}

body.is-home-view .brand-text small {
  color: rgba(237, 246, 255, 0.66);
}

body.is-home-view .nav-item {
  color: rgba(237, 246, 255, 0.72);
}

body.is-home-view .nav-item:hover,
body.is-home-view .nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #7de8f2;
}

body.is-home-view .account-chip {
  color: rgba(237, 246, 255, 0.72);
}

body.is-home-view .account-chip button {
  border-color: rgba(125, 232, 242, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.workspace {
  width: min(1220px, calc(100vw - 48px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 34px 0 48px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 30px 0 56px;
}

.hero-copy h1,
.intro-band h2,
.section-head h2,
.page-head h1 {
  margin: 0;
  color: #101828;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: 48px;
}

.lead {
  max-width: 660px;
  margin: 22px 0 0;
  color: #475467;
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.primary-button,
.secondary-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--blue-dark);
}

.secondary-button {
  background: #ffffff;
  border-color: var(--line);
  color: var(--blue);
}

.outline-button {
  background: #ffffff;
  border-color: var(--line);
  color: #344054;
}

.primary-button:disabled,
.secondary-button:disabled,
.outline-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.product-preview {
  min-height: 420px;
  padding: 20px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.preview-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7edf5;
}

.preview-top span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--blue);
}

.preview-top strong {
  color: #101828;
}

.preview-top em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.home-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 38px;
  min-height: calc(100vh - 118px);
  margin: -10px 0 0;
  padding: 62px;
  overflow: hidden;
  border: 1px solid rgba(124, 168, 214, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 15, 30, 0.98), rgba(11, 25, 44, 0.96) 48%, rgba(5, 63, 74, 0.94)),
    var(--ink);
  box-shadow: 0 24px 70px rgba(8, 20, 40, 0.28);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: none;
  opacity: 0;
  animation: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 1px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, rgba(18, 182, 200, 0.82), transparent);
  animation: scanLine 4.8s ease-in-out infinite;
}

.hero-backdrop {
  display: none !important;
}

.hero-backdrop img {
  display: none !important;
}

.home-hero .hero-copy,
.hero-device {
  position: relative;
  z-index: 1;
}

.home-hero .eyebrow {
  color: #7de8f2;
}

.home-hero .hero-copy h1 {
  color: #ffffff;
  font-size: 54px;
}

.home-hero .lead {
  color: rgba(237, 246, 255, 0.82);
}

.home-hero .primary-button {
  background: linear-gradient(135deg, #2e7df4, #10b7c4);
  box-shadow: 0 16px 32px rgba(16, 183, 196, 0.22);
}

.home-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(237, 246, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.hero-metrics strong {
  margin-right: 5px;
  color: #9ff2d0;
}

.hero-device {
  width: min(100%, 360px);
  justify-self: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
  animation: floatDevice 6s ease-in-out infinite;
}

.hero-device img {
  display: block;
  width: 100%;
  height: min(70vh, 690px);
  border-radius: 24px;
  object-fit: cover;
  object-position: center top;
}

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

.preview-grid article {
  min-height: 96px;
  padding: 14px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
}

.preview-grid span,
.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.preview-grid strong {
  display: block;
  margin-top: 10px;
  color: #101828;
  font-size: 26px;
}

.preview-flow {
  display: grid;
  gap: 10px;
}

.preview-flow p {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
}

.preview-flow b {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.preview-flow i {
  color: var(--blue);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-band h2,
.section-head h2 {
  font-size: 30px;
}

.intro-band p:last-child {
  margin: 4px 0 0;
  color: #475467;
  font-size: 17px;
}

.section {
  padding: 54px 0 8px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

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

.feature-grid article,
.capability-list article,
.plan-card,
.point-card,
.print-item,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-grid article {
  min-height: 190px;
  padding: 20px;
}

.feature-grid h3,
.capability-list h3,
.plan-card h3,
.point-card h3,
.panel h2,
.dialog-head h2 {
  margin: 0;
  color: #101828;
  line-height: 1.25;
  letter-spacing: 0;
}

.feature-grid h3,
.plan-card h3,
.point-card h3 {
  font-size: 20px;
}

.feature-grid p,
.capability-list p,
.plan-card p,
.point-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.module-grid article {
  position: relative;
  overflow: hidden;
}

.module-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(23, 105, 224, 0.1), transparent 48%, rgba(15, 159, 122, 0.1));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.module-grid article:hover::before {
  opacity: 1;
}

.module-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf1fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.showcase-section {
  padding-top: 64px;
}

.showcase-hint {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e8f7f1;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.showcase-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 12px;
  align-items: center;
}

.showcase-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(300px, 0.8fr);
  gap: 28px;
  min-height: 680px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(23, 105, 224, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)),
    #ffffff;
  box-shadow: 0 24px 60px rgba(24, 34, 48, 0.12);
}

.showcase-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 105, 224, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.28;
}

.showcase-stage.is-changing .showcase-phone,
.showcase-stage.is-changing .showcase-copy {
  animation: imageIn 0.34s ease both;
}

.showcase-visual,
.showcase-copy {
  position: relative;
  z-index: 1;
}

.showcase-visual {
  display: grid;
  place-items: center;
  min-width: 0;
}

.showcase-phone {
  width: min(100%, 360px);
  height: 620px;
  padding: 11px;
  border: 1px solid #d9e4f2;
  border-radius: 34px;
  background: #101828;
  box-shadow: 0 22px 55px rgba(15, 32, 58, 0.2);
}

.showcase-phone img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  object-fit: contain;
  object-position: center top;
  background: #ffffff;
}

.showcase-copy {
  align-self: center;
  display: grid;
  gap: 16px;
  max-width: 460px;
}

.showcase-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #101828;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.showcase-copy h3 {
  margin: 0;
  color: #101828;
  font-size: 34px;
  line-height: 1.15;
}

.showcase-copy p:not(.eyebrow) {
  margin: 0;
  color: #475467;
  font-size: 17px;
}

.showcase-points {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.showcase-points li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #182230;
  font-weight: 800;
}

.showcase-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 0 0 5px rgba(23, 105, 224, 0.1);
}

.showcase-arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid #cdd9ea;
  border-radius: 999px;
  background: #ffffff;
  color: #101828;
  cursor: pointer;
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(28, 43, 70, 0.1);
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.showcase-arrow:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue);
}

.showcase-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.showcase-dots button {
  width: 28px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cbd5e1;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.showcase-dots button.is-active {
  width: 46px;
  background: linear-gradient(135deg, var(--blue), var(--green));
}

body.is-home-view .workspace {
  width: min(1440px, calc(100vw - 44px));
  padding: 24px 0 64px;
}

body.is-home-view .home-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  min-height: calc(100vh - 118px);
  margin: 0;
  padding: 74px;
  border-color: rgba(125, 232, 242, 0.24);
  background:
    linear-gradient(135deg, rgba(7, 13, 27, 0.98) 0%, rgba(10, 24, 42, 0.96) 52%, rgba(5, 61, 72, 0.94) 100%),
    #08101f;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

body.is-home-view .home-hero::before {
  background-image:
    linear-gradient(rgba(125, 232, 242, 0.065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 232, 242, 0.065) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0%, rgba(46, 125, 244, 0.08) 48%, rgba(18, 182, 200, 0.08) 100%);
  opacity: 0.62;
}

body.is-home-view .home-hero::after {
  background: linear-gradient(90deg, transparent, rgba(120, 210, 111, 0.68), rgba(18, 182, 200, 0.82), transparent);
}

body.is-home-view .hero-backdrop {
  display: none !important;
}

body.is-home-view .home-hero .hero-copy h1 {
  max-width: 760px;
  font-size: 58px;
  text-shadow: 0 16px 44px rgba(0, 0, 0, 0.34);
}

body.is-home-view .home-hero .lead {
  max-width: 720px;
  color: rgba(237, 246, 255, 0.8);
  font-size: 19px;
}

body.is-home-view .hero-device {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 88px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(125, 232, 242, 0.16);
}

body.is-home-view .intro-band {
  margin: 36px 0 8px;
  padding: 34px;
  border: 1px solid rgba(125, 232, 242, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

body.is-home-view .intro-band h2,
body.is-home-view .section-head h2 {
  color: #ffffff;
}

body.is-home-view #home .eyebrow {
  color: #7de8f2;
}

body.is-home-view .intro-band p:last-child,
body.is-home-view .showcase-copy p:not(.eyebrow) {
  color: rgba(237, 246, 255, 0.72);
}

body.is-home-view .module-section,
body.is-home-view .showcase-section {
  padding-top: 72px;
}

body.is-home-view .module-grid article {
  min-height: 220px;
  border-color: rgba(125, 232, 242, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

body.is-home-view .module-grid article::before {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(46, 125, 244, 0.18), transparent 46%, rgba(120, 210, 111, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
}

body.is-home-view .module-grid span {
  background: rgba(125, 232, 242, 0.12);
  color: #7de8f2;
}

body.is-home-view .module-grid h3 {
  color: #ffffff;
}

body.is-home-view .module-grid p {
  color: rgba(237, 246, 255, 0.68);
}

body.is-home-view .showcase-hint {
  background: rgba(120, 210, 111, 0.12);
  color: #9ff2d0;
}

body.is-home-view .showcase-stage {
  border-color: rgba(125, 232, 242, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(8, 15, 30, 0.7);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

body.is-home-view .showcase-stage::before {
  background-image:
    linear-gradient(rgba(125, 232, 242, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 232, 242, 0.09) 1px, transparent 1px);
  opacity: 0.3;
}

body.is-home-view .showcase-phone {
  border-color: rgba(255, 255, 255, 0.18);
  background: #050a12;
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(125, 232, 242, 0.14);
}

body.is-home-view .showcase-counter {
  background: rgba(125, 232, 242, 0.12);
  color: #7de8f2;
}

body.is-home-view .showcase-copy h3,
body.is-home-view .showcase-points li {
  color: #ffffff;
}

body.is-home-view .showcase-arrow {
  border-color: rgba(125, 232, 242, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

body.is-home-view .showcase-arrow:hover {
  border-color: #7de8f2;
  color: #7de8f2;
}

body.is-home-view .showcase-dots button {
  background: rgba(255, 255, 255, 0.22);
}

body.is-home-view .showcase-dots button.is-active {
  background: linear-gradient(135deg, #2e7df4, #12b6c8, #78d26f);
}

body.is-home-view .dashboard-panel {
  border-color: rgba(125, 232, 242, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

body.is-home-view .footer {
  border-top-color: rgba(125, 232, 242, 0.14);
  background: rgba(6, 12, 24, 0.72);
  color: rgba(237, 246, 255, 0.6);
}

body.is-home-view .footer a {
  color: #7de8f2;
}

.capability-list {
  display: grid;
  gap: 12px;
}

.capability-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px;
}

.capability-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eaf1fb;
  color: var(--blue);
  font-weight: 900;
}

.dashboard-panel {
  margin-top: 54px;
  padding: 22px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.page-head h1 {
  font-size: 30px;
}

.section-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
}

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

.status-pill,
.head-meta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.is-ok {
  background: #e8f7f1;
  color: var(--green);
}

.status-pill.is-warn {
  background: #fff3e0;
  color: var(--orange);
}

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

.stat-card {
  min-height: 104px;
  padding: 16px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  color: #101828;
  font-size: 24px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef2f7;
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  color: #182230;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 520px;
  padding: 26px;
  border-color: #d9dee7;
  background: #fbfcfe;
  box-shadow: none;
}

.pricing-card.is-current {
  border-color: rgba(23, 105, 224, 0.6);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08);
}

.pricing-card.is-disabled {
  border-color: #e4e7ec;
  background: #f7f8fa;
  color: #98a2b3;
}

.pricing-card.is-disabled .pricing-kicker,
.pricing-card.is-disabled .pricing-summary,
.pricing-card.is-disabled .pricing-features,
.pricing-card.is-disabled .pricing-price,
.pricing-card.is-disabled .pricing-price strong,
.pricing-card.is-disabled .pricing-price span:last-child {
  color: #98a2b3 !important;
}

.pricing-card.is-disabled .pricing-features li::before {
  background: #eef0f3;
  color: #98a2b3;
}

.pricing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-kicker {
  margin: 0 0 8px !important;
  color: var(--muted) !important;
  font-size: 13px;
  font-weight: 800;
}

.pricing-card h3 {
  font-size: 24px;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eaf1fb;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  color: #101828;
}

.pricing-price .currency {
  align-self: flex-start;
  margin-top: 9px;
  color: #8a94a6;
  font-size: 18px;
  font-weight: 800;
}

.pricing-price strong {
  font-size: 46px;
  line-height: 1;
  letter-spacing: 0;
}

.pricing-price span:last-child {
  margin-bottom: 5px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

.pricing-summary {
  min-height: 48px;
  margin: -4px 0 0 !important;
  color: #101828 !important;
  font-size: 15px;
  font-weight: 900;
}

.plan-actions {
  display: grid;
  gap: 10px;
}

.pricing-button {
  width: 100%;
  min-height: 46px;
}

.pricing-features {
  display: grid;
  gap: 14px;
  margin: 4px 0 0;
  padding: 0;
  color: #101828;
  font-size: 14px;
  line-height: 1.45;
  list-style: none;
}

.pricing-features li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.pricing-features li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ecfdf3;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.point-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.point-card {
  min-height: 390px;
}

.point-card .pricing-summary {
  color: var(--blue) !important;
}

.recharge-layout {
  grid-template-columns: 300px minmax(0, 1fr);
}

.recharge-side {
  position: static;
}

.balance-box {
  display: grid;
  gap: 3px;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

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

.balance-box strong {
  color: var(--blue);
  font-size: 22px;
}

.amount-field,
.login-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.amount-field input,
.login-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.amount-field input:focus,
.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.full-button {
  width: 100%;
  margin-top: 14px;
}

.form-tip {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-tip.is-error {
  color: var(--red);
}

.form-tip.is-success {
  color: var(--green);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.print-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.print-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}

.date-filter {
  display: flex;
  align-items: end;
  gap: 8px;
}

.date-filter label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.date-filter input {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  font: inherit;
}

.date-filter-separator {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-button {
  min-height: 38px;
  padding: 0 12px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.segmented button {
  min-width: 86px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  color: #344054;
  font-weight: 800;
}

.segmented button.is-active {
  background: var(--blue);
  color: #ffffff;
}

.print-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.print-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
}

.print-list {
  display: grid;
  gap: 10px;
}

.print-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.print-check {
  width: 18px;
  height: 18px;
}

.print-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}

.print-title strong {
  overflow-wrap: anywhere;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.print-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.print-actions {
  display: flex;
  gap: 8px;
}

.print-frame {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0.01;
  pointer-events: none;
}

.empty-state {
  min-height: 170px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.summary-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.summary-grid strong {
  display: block;
  margin-top: 8px;
  color: #101828;
  font-size: 26px;
  line-height: 1.15;
}

.tool-panel,
.table-panel {
  margin-bottom: 14px;
  padding: 16px;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.filter-grid label,
.form-grid label,
.wide-field,
.assign-panel label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.filter-grid input,
.filter-grid select,
.form-grid input,
.form-grid select,
.student-form textarea,
.assign-panel input,
.assign-panel select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  outline: none;
}

.student-form textarea {
  min-height: 86px;
  padding: 10px 12px;
  resize: vertical;
}

.filter-grid input:focus,
.filter-grid select:focus,
.form-grid input:focus,
.form-grid select:focus,
.student-form textarea:focus,
.assign-panel input:focus,
.assign-panel select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.12);
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #ffffff;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  background: #f8fafc;
}

.data-table td {
  color: #182230;
  font-size: 14px;
}

.data-table td strong,
.data-table td span {
  display: block;
}

.data-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-tag.is-ok {
  background: #e8f7f1;
  color: var(--green);
}

.status-tag.is-warn {
  background: #fff3e0;
  color: var(--orange);
}

.status-tag.is-danger {
  background: #feeceb;
  color: var(--red);
}

.status-tag.is-muted {
  background: #eef2f7;
  color: #475467;
}

#students .data-table th:nth-child(6),
#students .data-table td:nth-child(6) {
  min-width: 260px;
}

.student-package-usage {
  display: grid;
  gap: 7px;
  width: min(100%, 260px);
  min-width: 230px;
  padding: 9px 11px;
  border: 1px solid #cdeee0;
  border-radius: 8px;
  background: #e8f7f1;
}

.student-package-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-package-head strong {
  min-width: 0;
  overflow: hidden;
  color: #047857;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-package-head em {
  flex: 0 0 auto;
  color: #059669;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.student-package-quota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.data-table td .student-package-quota span {
  display: inline;
  margin-top: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.data-table td .student-package-quota span:first-child {
  color: #047857;
}

.student-package-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(4, 120, 87, 0.12);
}

.student-package-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
}

.student-package-usage.is-warn {
  border-color: #fed7aa;
  background: #fff7ed;
}

.student-package-usage.is-warn .student-package-head strong,
.student-package-usage.is-warn .student-package-head em,
.student-package-usage.is-warn .student-package-quota span:first-child {
  color: #c2410c;
}

.student-package-usage.is-warn .student-package-progress {
  background: rgba(194, 65, 12, 0.14);
}

.student-package-usage.is-warn .student-package-progress i {
  background: linear-gradient(90deg, #f97316, #fb923c);
}

.student-package-usage.is-danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.student-package-usage.is-danger .student-package-head strong,
.student-package-usage.is-danger .student-package-head em,
.student-package-usage.is-danger .student-package-quota span:first-child {
  color: #be123c;
}

.student-package-usage.is-danger .student-package-progress {
  background: rgba(190, 18, 60, 0.14);
}

.student-package-usage.is-danger .student-package-progress i {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.student-package-usage.is-muted {
  border-color: #e4e7ec;
  background: #f2f4f7;
}

.student-package-usage.is-muted .student-package-head strong,
.student-package-usage.is-muted .student-package-head em,
.student-package-usage.is-muted .student-package-quota span:first-child {
  color: #667085;
}

.student-package-usage.is-muted .student-package-progress {
  background: rgba(102, 112, 133, 0.14);
}

.student-package-usage.is-muted .student-package-progress i {
  background: #98a2b3;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 220px;
}

.row-actions button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.row-actions button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.danger-text {
  color: var(--red) !important;
}

.wide-dialog {
  width: min(820px, calc(100vw - 28px));
}

.student-form {
  display: grid;
  gap: 14px;
}

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

.wide-field {
  grid-column: 1 / -1;
}

.detail-body {
  padding: 20px 22px 4px;
}

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

.detail-item {
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-item span,
.detail-note span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-item strong {
  display: block;
  margin-top: 7px;
  color: #101828;
  overflow-wrap: anywhere;
}

.detail-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #ffffff;
}

.detail-note p {
  margin: 6px 0 0;
  color: #344054;
  white-space: pre-wrap;
}

.detail-actions {
  padding: 0 22px 22px;
}

.package-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.package-side {
  position: sticky;
  top: 92px;
  padding: 10px;
}

.package-tabs {
  display: grid;
  gap: 6px;
}

.package-tabs button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #344054;
  cursor: pointer;
  text-align: left;
  font-weight: 900;
}

.package-tabs button.is-active {
  background: #eaf1fb;
  color: var(--blue);
}

.package-pane {
  display: none;
}

.package-pane.is-active {
  display: block;
}

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

.compact-head h2 {
  font-size: 22px;
}

.package-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.package-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.package-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-card h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
  line-height: 1.25;
}

.package-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.package-metrics,
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.package-metrics span,
.inventory-grid span {
  min-height: 58px;
  padding: 10px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.package-metrics b,
.inventory-grid b {
  display: block;
  color: #101828;
  font-size: 20px;
  line-height: 1.15;
}

.feature-lines {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #475467;
  font-size: 13px;
}

.quantity-row {
  display: grid;
  grid-template-columns: 36px 52px 36px minmax(96px, 1fr);
  gap: 8px;
  align-items: center;
}

.quantity-row button:not(.primary-button):not(.secondary-button) {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  color: #344054;
  font-weight: 900;
}

.quantity-row input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #101828;
  text-align: center;
  font-weight: 900;
}

.inventory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
  align-items: start;
}

.config-panel,
.assign-panel,
.record-panel,
.compare-panel {
  padding: 18px;
}

.compact-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 160px) minmax(150px, 180px);
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.check-field {
  display: inline-flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.check-field input,
.student-config-item input {
  width: 16px;
  height: 16px;
}

.student-config-list {
  display: grid;
  gap: 8px;
}

.student-config-item {
  display: grid;
  grid-template-columns: auto minmax(150px, 1.2fr) minmax(86px, auto) minmax(120px, 1fr) minmax(70px, auto) minmax(150px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 13px;
}

.student-config-item strong,
.student-config-item em {
  display: block;
}

.student-config-item em {
  margin-top: 3px;
  color: var(--muted);
  font-style: normal;
}

.assign-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
}

.divider {
  height: 1px;
  margin: 4px 0;
  background: var(--line);
}

.status-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.status-actions button {
  min-width: 0;
  padding: 0 8px;
}

.danger-button {
  color: var(--red);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.record-list article {
  padding: 12px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
}

.record-list strong,
.record-list span {
  display: block;
}

.record-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.small-empty {
  min-height: 110px;
}

.compare-table {
  display: grid;
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table div {
  display: grid;
  grid-template-columns: 160px repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #eef2f7;
}

.compare-table div:last-child {
  border-bottom: 0;
}

.compare-table strong,
.compare-table span {
  padding: 13px;
  border-right: 1px solid #eef2f7;
}

.compare-table strong:last-child,
.compare-table span:last-child {
  border-right: 0;
}

.compare-table strong {
  background: #f8fafc;
  color: #101828;
}

.compare-table span {
  color: #344054;
}

dialog {
  width: min(520px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}

.dialog-form,
.payment-body,
.info-dialog p {
  padding: 20px 22px 22px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
  color: #344054;
  font-size: 22px;
  line-height: 1;
}

.qr-box {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid #e4eaf3;
  border-radius: 8px;
  background: var(--surface-soft);
}

.qr-box.is-success,
body:not(.is-home-view) .qr-box.is-success {
  border-color: #9ee6c4;
  background: #f0fdf4;
  box-shadow: 0 16px 38px rgba(18, 183, 106, 0.14);
}

.qr-box canvas {
  width: 220px;
  height: 220px;
  border-radius: 6px;
  background: #ffffff;
}

.qr-box.is-success canvas {
  box-shadow: 0 10px 24px rgba(18, 183, 106, 0.18);
}

.qr-fallback {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: center;
}

.qr-box.is-success .qr-fallback {
  color: var(--green);
  font-weight: 800;
}

.payment-notice {
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #b7d5ff;
  border-radius: 8px;
  background: #f2f7ff;
  color: #174a8b;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

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

.info-dialog p {
  margin: 0;
  color: #344054;
  white-space: pre-line;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--blue);
}

/* Unified portal UI polish: quiet, minimal, and lightly technical. */
body:not(.is-home-view) {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 248, 252, 0.88)),
    linear-gradient(rgba(23, 105, 224, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.035) 1px, transparent 1px),
    #f3f7fb;
  background-size: auto, 40px 40px, 40px 40px, auto;
}

body:not(.is-home-view) .topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(192, 205, 224, 0.7);
  box-shadow: 0 12px 30px rgba(29, 56, 94, 0.06);
}

body:not(.is-home-view) .workspace {
  width: min(1560px, calc(100vw - 48px));
  padding-top: 46px;
}

body:not(.is-home-view) .view:not(#home) {
  padding-top: 4px;
}

body:not(.is-home-view) .page-head {
  min-height: 92px;
  padding: 20px 22px;
  border: 1px solid rgba(214, 226, 242, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 254, 0.9)),
    #ffffff;
  box-shadow: 0 16px 36px rgba(28, 43, 70, 0.06);
}

body:not(.is-home-view) .page-head h1 {
  font-size: 32px;
}

body:not(.is-home-view) .eyebrow {
  color: #0f6fe8;
}

body:not(.is-home-view) .panel,
body:not(.is-home-view) .summary-grid article,
body:not(.is-home-view) .package-card,
body:not(.is-home-view) .pricing-card,
body:not(.is-home-view) .print-item,
body:not(.is-home-view) .student-config-item,
body:not(.is-home-view) .record-list article,
body:not(.is-home-view) .detail-item,
body:not(.is-home-view) .detail-note,
body:not(.is-home-view) .compare-table,
body:not(.is-home-view) .qr-box {
  border-color: rgba(211, 224, 241, 0.96);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(28, 43, 70, 0.07);
}

body:not(.is-home-view) .panel,
body:not(.is-home-view) .summary-grid article,
body:not(.is-home-view) .package-card,
body:not(.is-home-view) .pricing-card,
body:not(.is-home-view) .print-item {
  backdrop-filter: blur(10px);
}

body:not(.is-home-view) .summary-grid article {
  position: relative;
  overflow: hidden;
}

body:not(.is-home-view) .summary-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

body:not(.is-home-view) .summary-grid strong,
body:not(.is-home-view) .stat-card strong,
body:not(.is-home-view) .balance-box strong {
  color: #0d4fb8;
}

body:not(.is-home-view) .primary-button {
  border-color: transparent;
  background: linear-gradient(135deg, #1769e0, #10a7bf);
  box-shadow: 0 12px 24px rgba(23, 105, 224, 0.16);
}

body:not(.is-home-view) .primary-button:hover {
  background: linear-gradient(135deg, #0f4fb4, #0b8fa4);
}

body:not(.is-home-view) .secondary-button,
body:not(.is-home-view) .outline-button,
body:not(.is-home-view) .row-actions button,
body:not(.is-home-view) .quantity-row button:not(.primary-button):not(.secondary-button),
body:not(.is-home-view) .icon-button {
  border-color: rgba(197, 212, 232, 0.96);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(28, 43, 70, 0.04);
}

body:not(.is-home-view) .secondary-button:hover,
body:not(.is-home-view) .outline-button:hover,
body:not(.is-home-view) .row-actions button:hover,
body:not(.is-home-view) .quantity-row button:not(.primary-button):not(.secondary-button):hover {
  border-color: rgba(23, 105, 224, 0.48);
  background: #f5f9ff;
  color: var(--blue);
}

body:not(.is-home-view) .filter-grid input,
body:not(.is-home-view) .filter-grid select,
body:not(.is-home-view) .form-grid input,
body:not(.is-home-view) .form-grid select,
body:not(.is-home-view) .student-form textarea,
body:not(.is-home-view) .assign-panel input,
body:not(.is-home-view) .assign-panel select,
body:not(.is-home-view) .amount-field input,
body:not(.is-home-view) .login-form input,
body:not(.is-home-view) .quantity-row input {
  border-color: rgba(199, 213, 232, 0.95);
  background: rgba(255, 255, 255, 0.94);
}

body:not(.is-home-view) .filter-grid input:focus,
body:not(.is-home-view) .filter-grid select:focus,
body:not(.is-home-view) .form-grid input:focus,
body:not(.is-home-view) .form-grid select:focus,
body:not(.is-home-view) .student-form textarea:focus,
body:not(.is-home-view) .assign-panel input:focus,
body:not(.is-home-view) .assign-panel select:focus,
body:not(.is-home-view) .amount-field input:focus,
body:not(.is-home-view) .login-form input:focus {
  border-color: #2b7be8;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

body:not(.is-home-view) .data-table {
  background: rgba(255, 255, 255, 0.94);
}

body:not(.is-home-view) .data-table th {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(239, 245, 252, 0.98));
  color: #526173;
}

body:not(.is-home-view) .data-table tr:hover td {
  background: #f8fbff;
}

body:not(.is-home-view) .package-side {
  background: rgba(255, 255, 255, 0.78);
}

body:not(.is-home-view) .package-tabs {
  gap: 8px;
}

body:not(.is-home-view) .package-tabs button {
  border: 1px solid transparent;
  color: #4a5b70;
}

body:not(.is-home-view) .package-tabs button:hover {
  border-color: rgba(23, 105, 224, 0.18);
  background: #f5f9ff;
  color: var(--blue);
}

body:not(.is-home-view) .package-tabs button.is-active,
body:not(.is-home-view) .segmented button.is-active {
  background: linear-gradient(135deg, #1769e0, #10a7bf);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(23, 105, 224, 0.16);
}

body:not(.is-home-view) .segmented,
body:not(.is-home-view) .print-summary span,
body:not(.is-home-view) .balance-box,
body:not(.is-home-view) .status-pill,
body:not(.is-home-view) .head-meta,
body:not(.is-home-view) .tag,
body:not(.is-home-view) .pricing-badge {
  border-color: rgba(205, 219, 238, 0.96);
  background: rgba(255, 255, 255, 0.84);
}

body:not(.is-home-view) .pricing-card {
  min-height: 500px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
}

body:not(.is-home-view) .pricing-card.is-current {
  border-color: rgba(23, 105, 224, 0.55);
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.08), 0 18px 42px rgba(28, 43, 70, 0.08);
}

body:not(.is-home-view) .pricing-price strong {
  color: #0f58cf;
}

body:not(.is-home-view) .package-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.92));
}

body:not(.is-home-view) .empty-state {
  border-color: rgba(184, 204, 230, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 247, 254, 0.76));
}

body:not(.is-home-view) dialog {
  border: 1px solid rgba(209, 224, 242, 0.95);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

body:not(.is-home-view) .dialog-head {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 254, 0.96));
}

body:not(.is-home-view) .footer {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

/* Lighter marketing home: clean, technical, but not heavy. */
body.is-home-view {
  background:
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 46%, #edfdfb 100%),
    #f7fbff;
  color: #101828;
}

body.is-home-view::before {
  background: none;
  opacity: 0;
  animation: none;
}

body.is-home-view::after {
  background:
    linear-gradient(115deg, transparent 0%, rgba(23, 105, 224, 0.1) 22%, transparent 42%),
    linear-gradient(245deg, transparent 0%, rgba(18, 182, 200, 0.12) 24%, transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 54%);
  opacity: 0.9;
}

body.is-home-view .topbar {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(199, 213, 232, 0.78);
  box-shadow: 0 12px 30px rgba(29, 56, 94, 0.06);
}

body.is-home-view .brand-text strong {
  color: #101828;
}

body.is-home-view .brand-text small,
body.is-home-view .nav-item,
body.is-home-view .account-chip {
  color: #5c6f86;
}

body.is-home-view .nav-item:hover,
body.is-home-view .nav-item.is-active {
  background: #eaf3ff;
  color: var(--blue);
}

body.is-home-view .account-chip button {
  border-color: rgba(23, 105, 224, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: var(--blue);
}

body.is-home-view .home-hero {
  border-color: rgba(186, 207, 234, 0.88);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 247, 255, 0.92) 56%, rgba(232, 252, 249, 0.9) 100%),
    #ffffff;
  box-shadow: 0 24px 70px rgba(28, 43, 70, 0.1);
}

body.is-home-view .home-hero::before {
  background: none;
  opacity: 0;
  animation: none;
}

body.is-home-view .home-hero::after {
  background: linear-gradient(90deg, transparent, rgba(23, 105, 224, 0.24), rgba(18, 182, 200, 0.28), transparent);
}

body.is-home-view .home-hero .hero-copy h1 {
  color: #101828;
  text-shadow: none;
}

body.is-home-view .home-hero .lead {
  color: #4e5f73;
}

body.is-home-view #home .eyebrow,
body.is-home-view .home-hero .eyebrow {
  color: #0f6fe8;
}

body.is-home-view .home-hero .secondary-button {
  border-color: rgba(191, 207, 228, 0.96);
  background: rgba(255, 255, 255, 0.82);
  color: var(--blue);
}

body.is-home-view .hero-metrics span {
  border-color: rgba(191, 207, 228, 0.9);
  background: rgba(255, 255, 255, 0.72);
  color: #39516b;
}

body.is-home-view .hero-metrics strong {
  color: #0f6fe8;
}

body.is-home-view .hero-device {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.72)),
    #ffffff;
  border-color: rgba(184, 204, 230, 0.88);
  box-shadow:
    0 26px 70px rgba(28, 43, 70, 0.16),
    0 0 0 1px rgba(23, 105, 224, 0.06);
}

body.is-home-view .intro-band,
body.is-home-view .module-grid article,
body.is-home-view .showcase-stage,
body.is-home-view .dashboard-panel {
  border-color: rgba(186, 207, 234, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(28, 43, 70, 0.08);
  backdrop-filter: blur(12px);
}

body.is-home-view .intro-band h2,
body.is-home-view .section-head h2,
body.is-home-view .module-grid h3,
body.is-home-view .showcase-copy h3,
body.is-home-view .showcase-points li {
  color: #101828;
}

body.is-home-view .intro-band p:last-child,
body.is-home-view .module-grid p,
body.is-home-view .showcase-copy p:not(.eyebrow) {
  color: #56687d;
}

body.is-home-view .module-grid article::before {
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.08), transparent 48%, rgba(18, 182, 200, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), transparent);
}

body.is-home-view .module-grid span,
body.is-home-view .showcase-counter,
body.is-home-view .showcase-hint {
  background: #eaf3ff;
  color: var(--blue);
}

body.is-home-view .showcase-stage::before {
  background-image:
    linear-gradient(rgba(23, 105, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 224, 0.055) 1px, transparent 1px);
  opacity: 0.5;
}

body.is-home-view .showcase-arrow {
  border-color: rgba(191, 207, 228, 0.96);
  background: rgba(255, 255, 255, 0.88);
  color: #1f3653;
  box-shadow: 0 14px 30px rgba(28, 43, 70, 0.08);
}

body.is-home-view .showcase-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
}

body.is-home-view .showcase-dots button {
  background: #bfd0e6;
}

body.is-home-view .footer {
  border-top-color: rgba(199, 213, 232, 0.78);
  background: rgba(255, 255, 255, 0.76);
  color: #667085;
}

body:not(.is-home-view) #membership .section-layout,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-layout {
  grid-template-columns: 1fr;
}

body:not(.is-home-view) #membership .side-panel,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side {
  position: static;
}

body:not(.is-home-view) #membership .side-panel {
  padding: 20px;
}

body:not(.is-home-view) #membership .info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body:not(.is-home-view) #membership .info-list div {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(224, 232, 244, 0.96);
  border-radius: 8px;
  background: rgba(248, 251, 255, 0.9);
}

body:not(.is-home-view) #membership .info-list dt {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

body:not(.is-home-view) #membership .info-list dd {
  min-width: 0;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
}

body:not(.is-home-view) #membership .plan-grid,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .point-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:not(.is-home-view) #membership .pricing-card,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .point-card {
  min-height: 470px;
  padding: 24px;
}

body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  align-items: end;
  padding: 18px;
}

body:not(.is-home-view) #membership .section-layout {
  grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
}

body:not(.is-home-view) #membership .side-panel {
  position: sticky;
  top: 92px;
}

body:not(.is-home-view) #membership .plan-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.is-home-view) #membership .pricing-card {
  min-height: 470px;
  padding: 22px;
  gap: 16px;
}

body:not(.is-home-view) #membership .pricing-price strong {
  font-size: 40px;
}

body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side h2,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side .form-tip {
  grid-column: 1 / -1;
}

body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side .full-button,
body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side .form-tip {
  margin-top: 0;
}

#packages [data-package-pane="store"] .package-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#packages [data-package-pane="store"] .package-pricing-card {
  --package-accent: #1769e0;
  --package-accent-2: #12b6c8;
  --package-soft: #eef6ff;
  --package-border: rgba(23, 105, 224, 0.22);
  display: flex;
  flex-direction: column;
  min-height: 470px;
  padding: 22px;
  gap: 16px;
  position: relative;
  overflow: hidden;
  border-color: var(--package-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
    linear-gradient(160deg, var(--package-soft), rgba(255, 255, 255, 0));
}

#packages [data-package-pane="store"] .package-pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--package-accent), var(--package-accent-2));
}

#packages [data-package-pane="store"] .package-tone-orange {
  --package-accent: #f97316;
  --package-accent-2: #fbbf24;
  --package-soft: #fff7ed;
  --package-border: rgba(249, 115, 22, 0.26);
}

#packages [data-package-pane="store"] .package-tone-blue {
  --package-accent: #1769e0;
  --package-accent-2: #12b6c8;
  --package-soft: #eef6ff;
  --package-border: rgba(23, 105, 224, 0.24);
}

#packages [data-package-pane="store"] .package-tone-violet {
  --package-accent: #7c3aed;
  --package-accent-2: #38bdf8;
  --package-soft: #f5f3ff;
  --package-border: rgba(124, 58, 237, 0.24);
}

#packages [data-package-pane="store"] .package-tone-teal {
  --package-accent: #0f9f7a;
  --package-accent-2: #12b6c8;
  --package-soft: #ecfdf5;
  --package-border: rgba(15, 159, 122, 0.25);
}

#packages [data-package-pane="store"] .package-tone-gold {
  --package-accent: #c87516;
  --package-accent-2: #f59e0b;
  --package-soft: #fffbeb;
  --package-border: rgba(200, 117, 22, 0.28);
}

#packages [data-package-pane="store"] .package-pricing-card h3 {
  font-size: 24px;
}

#packages [data-package-pane="store"] .package-pricing-card .pricing-kicker,
#packages [data-package-pane="store"] .package-pricing-card .pricing-badge {
  color: var(--package-accent) !important;
}

#packages [data-package-pane="store"] .package-pricing-card .pricing-badge {
  background: color-mix(in srgb, var(--package-accent) 11%, #ffffff);
}

#packages [data-package-pane="store"] .package-point-price strong {
  color: var(--package-accent);
  font-size: 42px;
}

#packages [data-package-pane="store"] .package-mini-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#packages [data-package-pane="store"] .package-mini-metrics span {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--package-border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--package-soft) 72%, #ffffff);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

#packages [data-package-pane="store"] .package-mini-metrics b {
  display: block;
  color: #101828;
  font-size: 20px;
  line-height: 1.1;
}

#packages [data-package-pane="store"] .package-pricing-card .quantity-row {
  grid-template-columns: 42px minmax(48px, 1fr) 42px;
  margin-top: 4px;
}

#packages [data-package-pane="store"] .package-pricing-card .quantity-row .primary-button {
  grid-column: 1 / -1;
  min-height: 46px;
  background: linear-gradient(135deg, var(--package-accent), var(--package-accent-2));
}

@media (max-width: 1280px) {
  #packages [data-package-pane="store"] .package-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  #packages [data-package-pane="store"] .package-card-grid {
    grid-template-columns: 1fr;
  }
}

/* Keep the light home backdrop, but make the hero banner a subtle frosted panel. */
body.is-home-view .home-hero {
  border-color: rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(239, 248, 255, 0.56) 56%, rgba(234, 253, 250, 0.5) 100%),
    rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 24px 70px rgba(28, 43, 70, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
}

body.is-home-view .home-hero::before {
  display: none;
  background: none;
  opacity: 0;
  animation: none;
}

body.is-home-view .home-hero {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 420px);
  align-items: center;
  padding: 76px 96px 82px 72px;
}

body.is-home-view .home-hero.is-changing .hero-copy,
body.is-home-view .home-hero.is-changing .hero-device img {
  animation: imageIn 0.34s ease both;
}

body.is-home-view .home-hero .hero-copy {
  display: grid;
  gap: 20px;
  max-width: 760px;
  align-self: center;
}

body.is-home-view .home-hero .hero-copy h1 {
  max-width: 860px;
  font-size: 52px;
  line-height: 1.16;
}

body.is-home-view .home-hero .lead {
  max-width: 720px;
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
}

body.is-home-view .home-hero .showcase-counter {
  display: none;
}

body.is-home-view .hero-device {
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
  animation: floatDevice 6s ease-in-out infinite;
}

body.is-home-view .home-hero.is-book-slide {
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 500px);
}

body.is-home-view .home-hero.is-book-slide .hero-device {
  isolation: isolate;
  width: min(100%, 470px);
  padding: 18px 18px 22px;
  border-radius: 12px;
  border-color: rgba(191, 207, 228, 0.9);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)),
    #ffffff;
  box-shadow:
    0 28px 70px rgba(28, 43, 70, 0.18),
    12px 14px 0 rgba(213, 225, 241, 0.55),
    24px 28px 0 rgba(229, 238, 248, 0.62);
  transform: perspective(980px) rotateY(-9deg) rotateX(3deg) rotateZ(0.8deg);
  animation: floatBook 6s ease-in-out infinite;
}

body.is-home-view .home-hero.is-book-slide .hero-device::before {
  content: "";
  position: absolute;
  inset: 12px -18px -14px 26px;
  z-index: -1;
  border: 1px solid rgba(191, 207, 228, 0.7);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  transform: rotateZ(1.4deg);
}

body.is-home-view .home-hero.is-book-slide .hero-device::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 0 8px 0 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 0 49%, rgba(222, 235, 250, 0.96) 50%, rgba(255, 255, 255, 0.98) 76%);
  box-shadow: -12px 12px 24px rgba(28, 43, 70, 0.12);
  pointer-events: none;
}

body.is-home-view .home-hero.is-book-slide .hero-device img {
  position: relative;
  z-index: 1;
  height: min(70vh, 660px);
  border: 1px solid rgba(213, 225, 241, 0.9);
  border-radius: 8px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

body.is-home-view .hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

body.is-home-view .hero-points li {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(191, 207, 228, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #39516b;
  font-size: 14px;
  font-weight: 900;
}

body.is-home-view .hero-points li::before {
  content: none;
}

body.is-home-view .hero-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  opacity: 0.82;
  transform: translateY(-50%);
}

body.is-home-view .hero-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.04);
}

body.is-home-view .hero-carousel-arrow-prev {
  left: 18px;
}

body.is-home-view .hero-carousel-arrow-next {
  right: 18px;
}

body.is-home-view .hero-dots {
  position: absolute;
  right: 0;
  bottom: 24px;
  left: 0;
  z-index: 3;
  margin: 0;
}

body.is-home-view .hero-dots {
  gap: 6px;
}

body.is-home-view .hero-dots button {
  width: 16px;
  height: 5px;
}

body.is-home-view .hero-dots button.is-active {
  width: 34px;
}

@keyframes homeGridShift {
  from {
    background-position: 0 0, 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px, 0 0;
  }
}

@keyframes homeLightSweep {
  from {
    transform: translateX(-2%) translateY(0);
    opacity: 0.66;
  }
  to {
    transform: translateX(2%) translateY(-1%);
    opacity: 0.88;
  }
}

@keyframes gridDrift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 42px 42px, 42px 42px;
  }
}

@keyframes scanLine {
  0%,
  100% {
    transform: translateY(-48px);
    opacity: 0;
  }
  45%,
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(390px);
  }
}

@keyframes floatDevice {
  0%,
  100% {
    transform: perspective(900px) rotateY(-7deg) rotateX(3deg) translateY(0);
  }
  50% {
    transform: perspective(900px) rotateY(-5deg) rotateX(2deg) translateY(-10px);
  }
}

@keyframes floatBook {
  0%,
  100% {
    transform: perspective(980px) rotateY(-9deg) rotateX(3deg) rotateZ(0.8deg) translateY(0);
  }
  50% {
    transform: perspective(980px) rotateY(-7deg) rotateX(2deg) rotateZ(0.4deg) translateY(-8px);
  }
}

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

@media (max-width: 1080px) {
  .hero-section,
  .intro-band,
  .section-layout,
  .package-layout,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .product-preview {
    min-height: 360px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 44px;
  }

  .home-hero .hero-copy h1 {
    max-width: 780px;
    font-size: 44px;
  }

  .hero-device {
    transform: none;
  }

  .showcase-shell {
    grid-template-columns: 1fr;
  }

  .showcase-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .showcase-copy {
    max-width: none;
  }

  .showcase-arrow {
    display: none;
  }

  .feature-grid,
  .point-grid,
  .summary-grid,
  .package-card-grid,
  .records-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .side-panel,
  .package-side,
  .assign-panel {
    position: static;
  }

  .package-tabs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .package-tabs button {
    text-align: center;
  }

  body:not(.is-home-view) #membership .info-list,
  body:not(.is-home-view) #membership .plan-grid,
  body:not(.is-home-view) #packages [data-package-pane="recharge"] .point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 18px;
  }

  .nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .account-chip {
    justify-self: start;
  }

  .workspace {
    width: min(100% - 28px, 760px);
    padding-top: 24px;
  }

  .hero-section {
    min-height: auto;
    padding-top: 18px;
  }

  .home-hero {
    padding: 34px 24px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .home-hero .hero-copy h1 {
    font-size: 36px;
  }

  .hero-device {
    width: min(100%, 310px);
  }

  .hero-device img {
    height: 560px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .showcase-stage {
    padding: 20px;
  }

  .showcase-phone {
    width: min(100%, 310px);
    height: 540px;
    border-radius: 28px;
  }

  .showcase-phone img {
    border-radius: 20px;
  }

  .showcase-copy h3 {
    font-size: 28px;
  }

  .stats-grid,
  .plan-grid,
  .form-grid,
  .filter-grid,
  .compact-filter {
    grid-template-columns: 1fr;
  }

  .student-config-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .student-config-item > span {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .page-head,
  .print-toolbar,
  .toolbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .page-head h1,
  .intro-band h2,
  .section-head h2 {
    font-size: 24px;
  }

  .hero-copy h1 {
    font-size: 30px;
  }

  .home-hero .hero-copy h1 {
    font-size: 30px;
  }

  .lead,
  .intro-band p:last-child {
    font-size: 16px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-button,
  .hero-actions .secondary-button {
    width: 100%;
  }

  .hero-device,
  .showcase-phone {
    width: min(100%, 280px);
  }

  .hero-device img {
    height: 500px;
  }

  .showcase-phone {
    height: 500px;
  }

  .nav-item {
    padding: 0 12px;
    white-space: nowrap;
  }

  .feature-grid,
  .point-grid,
  .summary-grid,
  .package-card-grid,
  .records-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .capability-list article,
  .print-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .print-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .segmented {
    width: 100%;
  }

  .date-filter,
  .print-toolbar-actions {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .date-filter label {
    flex: 1 1 130px;
  }

  .date-filter input,
  .print-toolbar-actions button {
    width: 100%;
  }

  .segmented button {
    flex: 1 1 0;
    min-width: 0;
  }

  .package-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .package-metrics,
  .inventory-grid,
  .detail-grid,
  .compare-table div {
    grid-template-columns: 1fr;
  }

  body:not(.is-home-view) #membership .info-list,
  body:not(.is-home-view) #membership .plan-grid,
  body:not(.is-home-view) #packages [data-package-pane="recharge"] .point-grid,
  body:not(.is-home-view) #packages [data-package-pane="recharge"] .recharge-side {
    grid-template-columns: 1fr;
  }

  .compare-table strong,
  .compare-table span {
    border-right: 0;
    border-bottom: 1px solid #eef2f7;
  }

  .compare-table strong:last-child,
  .compare-table span:last-child {
    border-bottom: 0;
  }

  .quantity-row,
  .status-actions {
    grid-template-columns: 36px minmax(48px, 1fr) 36px;
  }

  .quantity-row .primary-button,
  .quantity-row .secondary-button {
    grid-column: 1 / -1;
  }
}
