:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #66737f;
  --line: #dfe7ed;
  --surface: #ffffff;
  --soft: #f4f8fa;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #e8573f;
  --gold: #c2872c;
  --shadow: 0 18px 45px rgba(15, 31, 43, 0.12);
}

/* Final visual layer: keep this at the end so the polished UI wins the cascade. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --surface: #ffffff;
  --soft: #f5f5f7;
  --brand: #0071e3;
  --brand-dark: #005bb8;
  --accent: #bf4800;
  --gold: #b46a13;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
}

body {
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  min-height: 54px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: #1d1d1f;
  border-radius: 8px;
  font-size: 15px;
}

.nav {
  gap: clamp(14px, 2.2vw, 30px);
  color: #424245;
  font-size: 13px;
}

.topbar-action,
.link-button {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.topbar-action:hover,
.link-button:hover {
  color: var(--brand);
}

.language-switcher {
  background: rgba(245, 245, 247, 0.86);
  border-color: rgba(210, 210, 215, 0.72);
}

.language-switcher button.is-active {
  background: #1d1d1f;
}

.hero {
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: calc(100vh - 54px);
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 72px) 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 113, 227, 0.09), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #fff 62%, #f5f5f7 100%);
}

.hero-copy {
  width: min(940px, 100%);
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

h1 {
  max-width: none;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 800;
}

.hero-text {
  width: min(720px, 100%);
  margin: 12px auto 0;
  color: #424245;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.38;
}

.hero-actions {
  justify-content: center;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.mini-button,
.danger-button,
.ghost-button {
  border-radius: 999px;
}

.primary-button,
.mini-button {
  background: var(--brand);
  box-shadow: none;
}

.secondary-button {
  color: var(--brand);
  background: transparent;
  border-color: rgba(0, 113, 227, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.18);
}

.hero-stats {
  width: min(620px, 100%);
  margin: 18px auto 0;
}

.hero-stats div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(210, 210, 215, 0.72);
  backdrop-filter: blur(18px);
}

.hero-stats dt {
  font-size: 21px;
}

.hero-visual {
  min-height: 0;
  align-self: center;
}

.hero-visual img {
  width: min(1120px, 100%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.intro-strip {
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #f5f5f7;
}

.intro-strip div {
  min-height: 126px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.intro-strip strong {
  font-size: 22px;
}

.section-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 34px;
}

.section-heading p {
  color: #6e6e73;
  font-size: 18px;
}

.phone-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-card {
  min-height: 520px;
  padding: 22px;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
}

.phone-card:hover,
.phone-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.phone-art {
  height: 240px;
  background: linear-gradient(180deg, #ffffff, #ececf0);
}

.phone-art img {
  object-fit: contain;
  padding: 10px;
}

.phone-card h3 {
  font-size: 21px;
  font-weight: 800;
}

.badge,
.phone-rates span,
.status-pill {
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
}

.badge.is-warning {
  color: #b42318;
  background: #fff2f0;
}

.price-row strong {
  color: #1d1d1f;
  font-size: 28px;
}

.feature-list {
  color: #515154;
}

.feature-list li::before {
  background: var(--brand);
}

.planner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px);
  background: #f5f5f7;
  border-radius: 8px;
}

.calculator-panel,
.apply-form,
.auth-panel,
.dashboard-card,
.metric-card,
.admin-sidebar,
.finance-tabs,
.order-item,
.empty-state {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  box-shadow: none;
}

input,
select,
textarea {
  background: #ffffff;
  border-color: #d2d2d7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.readonly-field,
.detail-grid span {
  background: #f5f5f7;
  border-color: transparent;
}

.readonly-field span,
label,
legend {
  color: #424245;
}

.readonly-field strong {
  color: #1d1d1f;
}

.term-options label {
  background: #ffffff;
  border-color: #d2d2d7;
}

.term-options label:has(input:checked) {
  color: #fff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.plan-result,
.repayment-highlight {
  background: #1d1d1f;
}

.process-list span {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: transparent;
}

.dashboard-page {
  background: #f5f5f7;
}

.dashboard-hero {
  padding: clamp(20px, 4vw, 36px);
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.auth-shell,
.dashboard-shell,
.checkout-shell {
  width: min(1240px, calc(100% - 36px));
}

.demo-accounts span,
.payment-method-option,
.warehouse-row,
.finance-detail-row,
.user-list-row,
.sku-library-item {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
}

.tabbar,
.admin-menu-item:hover,
.admin-menu-item.is-active,
.finance-tab:hover,
.finance-tab.is-active,
.finance-preset:hover,
.finance-preset.is-active {
  background: #f5f5f7;
}

.tab-button.is-active {
  color: #1d1d1f;
}

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

.admin-sidebar {
  top: 74px;
}

.admin-menu-item {
  color: #515154;
}

.metric-card strong {
  font-size: clamp(26px, 3vw, 34px);
}

.footer {
  background: #f5f5f7;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

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

  .planner {
    width: calc(100% - 28px);
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

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

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats,
  .intro-strip,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    display: none;
  }

  .phone-card {
    min-height: auto;
  }

  .phone-art {
    height: 220px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .planner {
    width: calc(100% - 24px);
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .hero-stats {
    display: none;
  }
}

/* Visual polish pass: premium consumer-electronics layout, neutral surfaces, cleaner density. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --surface: #ffffff;
  --soft: #f5f5f7;
  --brand: #0071e3;
  --brand-dark: #005bb8;
  --accent: #bf4800;
  --gold: #b46a13;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
}

body {
  background: #ffffff;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.topbar {
  min-height: 54px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: #1d1d1f;
  border-radius: 8px;
  font-size: 15px;
}

.nav {
  gap: clamp(14px, 2.2vw, 30px);
  color: #424245;
  font-size: 13px;
}

.nav a:hover,
.topbar-action:hover,
.link-button:hover {
  color: var(--brand);
}

.topbar-action,
.link-button {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
}

.language-switcher {
  background: rgba(245, 245, 247, 0.86);
  border-color: rgba(210, 210, 215, 0.72);
}

.language-switcher button.is-active {
  background: #1d1d1f;
}

.hero {
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: calc(100vh - 54px);
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 72px) 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 113, 227, 0.09), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #fff 62%, #f5f5f7 100%);
}

.hero-copy {
  width: min(940px, 100%);
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

h1 {
  max-width: none;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 800;
}

.hero-text {
  width: min(720px, 100%);
  margin: 12px auto 0;
  color: #424245;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.38;
}

.hero-actions {
  justify-content: center;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.mini-button,
.danger-button,
.ghost-button {
  border-radius: 999px;
}

.primary-button,
.mini-button {
  background: var(--brand);
  box-shadow: none;
}

.secondary-button {
  color: var(--brand);
  background: transparent;
  border-color: rgba(0, 113, 227, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.18);
}

.hero-stats {
  width: min(620px, 100%);
  margin: 12px auto 0;
}

.hero-stats div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(210, 210, 215, 0.72);
  backdrop-filter: blur(18px);
}

.hero-stats dt {
  font-size: 21px;
}

.hero-visual {
  min-height: 0;
  align-self: center;
}

.hero-visual img {
  width: min(1120px, 100%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.intro-strip {
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #f5f5f7;
}

.intro-strip div {
  min-height: 126px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.intro-strip strong {
  font-size: 22px;
}

.section-heading {
  align-items: end;
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 34px;
}

.section-heading p {
  color: #6e6e73;
  font-size: 18px;
}

.phone-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-card {
  min-height: 520px;
  padding: 22px;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
}

.phone-card:hover,
.phone-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.phone-art {
  height: 240px;
  background: linear-gradient(180deg, #ffffff, #ececf0);
}

.phone-art img {
  object-fit: contain;
  padding: 10px;
}

.phone-card h3 {
  font-size: 21px;
  font-weight: 800;
}

.badge,
.phone-rates span,
.status-pill {
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
}

.badge.is-warning {
  color: #b42318;
  background: #fff2f0;
}

.price-row strong {
  color: #1d1d1f;
  font-size: 28px;
}

.feature-list {
  color: #515154;
}

.feature-list li::before {
  background: var(--brand);
}

.planner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px);
  background: #f5f5f7;
  border-radius: 8px;
}

.calculator-panel,
.apply-form,
.auth-panel,
.dashboard-card,
.metric-card,
.admin-sidebar,
.finance-tabs,
.order-item,
.empty-state {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  box-shadow: none;
}

input,
select,
textarea {
  background: #ffffff;
  border-color: #d2d2d7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.readonly-field,
.detail-grid span {
  background: #f5f5f7;
  border-color: transparent;
}

.readonly-field span,
label,
legend {
  color: #424245;
}

.readonly-field strong {
  color: #1d1d1f;
}

.term-options label {
  background: #ffffff;
  border-color: #d2d2d7;
}

.term-options label:has(input:checked) {
  color: #fff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.plan-result,
.repayment-highlight {
  background: #1d1d1f;
}

.process-list span {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: transparent;
}

.dashboard-page {
  background: #f5f5f7;
}

.dashboard-hero {
  padding: clamp(20px, 4vw, 36px);
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.auth-shell,
.dashboard-shell,
.checkout-shell {
  width: min(1240px, calc(100% - 36px));
}

.auth-shell {
  gap: 28px;
}

.demo-accounts span,
.payment-method-option,
.warehouse-row,
.finance-detail-row,
.user-list-row,
.sku-library-item {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
}

.tabbar,
.admin-menu-item:hover,
.admin-menu-item.is-active,
.finance-tab:hover,
.finance-tab.is-active,
.finance-preset:hover,
.finance-preset.is-active {
  background: #f5f5f7;
}

.tab-button.is-active {
  color: #1d1d1f;
}

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

.admin-sidebar {
  top: 74px;
}

.admin-menu-item {
  color: #515154;
}

.metric-card strong {
  font-size: clamp(26px, 3vw, 34px);
}

.footer {
  background: #f5f5f7;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

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

  .planner {
    width: calc(100% - 28px);
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

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

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats,
  .intro-strip,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    min-height: auto;
  }

  .phone-art {
    height: 220px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .planner {
    width: calc(100% - 24px);
    padding: 22px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfd;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(251, 253, 253, 0.88);
  border-bottom: 1px solid rgba(223, 231, 237, 0.75);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 15px;
}

.nav a:hover,
.topbar-action:hover {
  color: var(--brand);
}

.topbar-action {
  color: var(--brand-dark);
  font-weight: 700;
}

.language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 4px;
  background: #edf6f4;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
}

.language-switcher button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.language-switcher button.is-active {
  color: #fff;
  background: var(--brand);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 6vw, 78px) clamp(20px, 5vw, 72px) 38px;
  overflow: hidden;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6.2vw, 76px);
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.hero-text,
.section-heading p,
.planner-copy p,
.apply-layout p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(15, 118, 110, 0.22);
}

.secondary-button {
  color: var(--brand-dark);
  background: #e8f4f2;
  border-color: #cbe5df;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 34px 0 0;
}

.hero-stats div {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-stats dt {
  font-size: 22px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
}

.hero-visual {
  align-self: stretch;
  display: grid;
  min-height: 430px;
  place-items: center;
}

.hero-visual img {
  width: min(760px, 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: 76px clamp(20px, 5vw, 72px);
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.intro-strip div {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 28px;
  background: #f9fbfb;
}

.intro-strip strong {
  font-size: 20px;
}

.intro-strip span {
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 560px;
  margin: 0;
}

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

.phone-card {
  display: grid;
  gap: 18px;
  min-height: 380px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.phone-card:hover,
.phone-card.is-selected {
  transform: translateY(-4px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: var(--shadow);
}

.phone-card.is-unavailable {
  opacity: 0.72;
}

.phone-card.is-unavailable .phone-art {
  filter: grayscale(0.8);
}

.phone-art {
  display: grid;
  aspect-ratio: 1;
  width: 100%;
  place-items: center;
  background: linear-gradient(135deg, #eaf6f5, #fff5ef);
  border-radius: 8px;
  overflow: hidden;
}

.phone-image-button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

.phone-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-art > img {
  object-fit: contain;
  padding: 10px;
}

.phone-shape {
  width: 74px;
  height: 126px;
  border: 6px solid #1f2933;
  border-radius: 18px;
  background: linear-gradient(160deg, #e9f6ff, #fff);
  box-shadow: 14px 12px 0 rgba(15, 118, 110, 0.14);
}

.sku-thumb,
.product-setting-image {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: linear-gradient(135deg, #f5fbfa, #fff8f2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}

.product-setting-image {
  width: 86px;
  height: 86px;
}

.image-cropper-overlay,
.product-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 18, 24, 0.54);
}

.image-cropper-panel,
.product-preview-panel {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  padding: 18px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-cropper-canvas {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 16px 0;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-qr-cropper-canvas {
  width: min(360px, 100%);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.cropper-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.cropper-controls label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.cropper-controls input {
  width: 100%;
}

.product-preview-panel img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  margin-top: 16px;
  background: linear-gradient(135deg, #f5fbfa, #fff8f2);
  border-radius: 8px;
}

.file-preview-panel {
  width: min(1040px, 100%);
}

.file-preview-body {
  display: grid;
  min-height: min(68vh, 720px);
  place-items: center;
  margin: 16px 0;
  overflow: hidden;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-preview-body img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.file-preview-body iframe {
  width: 100%;
  height: min(72vh, 760px);
  border: 0;
}

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

.phone-card h3 {
  margin: 0;
  font-size: 21px;
}

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

.badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  color: #8c4a13;
  background: #fff3d8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.is-warning {
  color: #9f1d16;
  background: #ffe4df;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price-row strong {
  color: var(--accent);
  font-size: 26px;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.feature-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  background: var(--brand);
  border-radius: 50%;
  vertical-align: 1px;
}

.phone-rates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.phone-rates span {
  padding: 5px 8px;
  color: var(--brand-dark);
  background: #e8f4f2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.planner {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  gap: 42px;
  background: #edf6f4;
}

.calculator-panel,
.apply-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 31, 43, 0.08);
}

label {
  display: grid;
  gap: 8px;
  color: #31424c;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}

.readonly-field {
  display: grid;
  gap: 8px;
  padding: 13px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.readonly-field span {
  color: #31424c;
  font-weight: 800;
}

.readonly-field strong {
  color: var(--accent);
  font-size: 22px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: #31424c;
  font-weight: 800;
}

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

.term-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 10px;
  background: #f5f9f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.term-options input {
  width: auto;
  min-height: auto;
  margin-right: 6px;
}

.plan-result {
  display: grid;
  gap: 4px;
  padding: 22px;
  color: #fff;
  background: #172026;
  border-radius: 8px;
}

.plan-result strong {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.plan-result small {
  color: #bbcad2;
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 42px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.process-list span {
  padding: 14px 16px;
  background: #fff8ed;
  border: 1px solid #f5d9aa;
  border-radius: 8px;
  color: #70420e;
  font-weight: 800;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.form-message.is-error {
  color: #b42318;
}

.orders {
  padding-top: 0;
}

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

.order-item,
.empty-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-item strong {
  display: block;
}

.order-item span,
.empty-state {
  color: var(--muted);
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: #e8f4f2;
  border-radius: 999px;
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.dashboard-page {
  min-height: 100vh;
  background: #f3f8f7;
}

.link-button {
  padding: 0;
  color: var(--brand-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

.auth-shell,
.dashboard-shell,
.checkout-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 52px 0;
}

.auth-copy h1,
.dashboard-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.auth-copy p,
.dashboard-hero p {
  color: var(--muted);
  font-size: 17px;
}

.demo-accounts {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.demo-accounts span {
  padding: 12px 14px;
  color: #70420e;
  background: #fff8ed;
  border: 1px solid #f5d9aa;
  border-radius: 8px;
  font-weight: 800;
}

.auth-panel {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel .tabbar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 20px;
  padding: 6px;
  background: #edf6f4;
  border-radius: 8px;
}

.tab-button {
  min-height: 42px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 900;
}

.tab-button.is-active {
  color: var(--brand-dark);
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(15, 31, 43, 0.08);
}

.stack-form {
  display: grid;
  gap: 16px;
}

.inline-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.is-hidden {
  display: none;
}

.dashboard-shell {
  display: grid;
  gap: 28px;
  padding: 46px 0 72px;
}

.admin-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 31, 43, 0.06);
}

.admin-sidebar-title {
  display: grid;
  gap: 4px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-title strong {
  font-size: 22px;
}

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

.admin-menu-item {
  min-height: 42px;
  padding: 0 12px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.admin-menu-item:hover,
.admin-menu-item.is-active {
  color: var(--brand-dark);
  background: #eaf6f4;
  border-color: rgba(15, 118, 110, 0.18);
}

.admin-workspace,
.admin-page {
  min-width: 0;
}

.admin-page {
  display: none;
  gap: 24px;
}

.admin-page.is-active {
  display: grid;
}

.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finance-tab,
.finance-preset {
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  background: #f5f9f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.finance-tab:hover,
.finance-tab.is-active,
.finance-preset:hover,
.finance-preset.is-active {
  color: var(--brand-dark);
  background: #eaf6f4;
  border-color: rgba(15, 118, 110, 0.24);
}

.finance-panel {
  display: none;
}

.finance-panel.is-active {
  display: grid;
}

.finance-filter-form {
  gap: 16px;
}

.finance-filter-head,
.finance-preset-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.finance-filter-head {
  justify-content: space-between;
}

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

.finance-detail-row {
  display: grid;
  grid-template-columns: 108px auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finance-detail-row > span:first-child,
.finance-detail-row div span {
  color: var(--muted);
  font-weight: 800;
}

.finance-detail-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.checkout-shell {
  display: grid;
  gap: 28px;
  padding: 46px 0 72px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.dashboard-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.metric-card {
  display: grid;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  font-size: 34px;
  line-height: 1;
}

.metric-grid > .sales-dashboard {
  grid-column: 1 / -1;
}

.sales-dashboard {
  display: grid;
  gap: 18px;
}

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

.sales-metric-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 255, 0.92)),
    var(--surface);
}

.sales-metric-card small {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.sales-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.sales-chart-card {
  align-content: start;
  min-width: 0;
  overflow: hidden;
}

.sales-chart-card.is-wide {
  grid-column: 1 / -1;
}

.sales-bar-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(12px, 1fr);
  align-items: end;
  gap: 6px;
  min-height: 220px;
  padding: 16px 10px 4px;
  background:
    linear-gradient(to top, rgba(210, 210, 215, 0.34) 1px, transparent 1px) 0 0 / 100% 25%,
    #fbfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sales-bar-item {
  display: grid;
  grid-template-rows: 1fr 18px;
  gap: 8px;
  align-items: end;
  min-width: 0;
  height: 100%;
}

.sales-bar-item span {
  display: block;
  width: 100%;
  min-height: 3px;
  background: linear-gradient(180deg, #0071e3, #34c759);
  border-radius: 999px 999px 4px 4px;
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.14);
}

.sales-bar-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.sales-donut-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.sales-donut {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.sales-donut::after {
  position: absolute;
  inset: 32px;
  content: "";
  background: var(--surface);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line);
}

.sales-donut span,
.sales-donut small {
  position: relative;
  z-index: 1;
}

.sales-donut span {
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.sales-donut small {
  color: var(--muted);
  font-weight: 900;
}

.sales-legend {
  display: grid;
  gap: 10px;
}

.sales-legend span {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-weight: 850;
}

.sales-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sales-legend strong {
  color: var(--ink);
  white-space: nowrap;
}

.sales-ranking {
  display: grid;
  gap: 14px;
}

.sales-ranking-row {
  display: grid;
  gap: 8px;
}

.sales-ranking-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.sales-ranking-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-ranking-row span {
  color: var(--muted);
  font-weight: 850;
  white-space: nowrap;
}

.sales-ranking-row b,
.sales-composition-bar {
  display: block;
  height: 10px;
  overflow: hidden;
  background: #edf2f1;
  border-radius: 999px;
}

.sales-ranking-row b i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0071e3, #34c759);
  border-radius: inherit;
}

.sales-composition {
  display: grid;
  gap: 18px;
}

.sales-composition-bar {
  display: flex;
  height: 18px;
}

.sales-composition-bar span,
.sales-composition-bar i {
  display: block;
  min-width: 4px;
  height: 100%;
}

.sales-composition-bar span {
  background: #0071e3;
}

.sales-composition-bar i {
  background: #34c759;
}

.dashboard-list {
  display: grid;
  gap: 16px;
}

.dashboard-list.finance-panel {
  display: none;
}

.dashboard-list.finance-panel.is-active {
  display: grid;
}

.dashboard-heading {
  margin-bottom: 0;
}

.dashboard-card {
  display: grid;
  gap: 20px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(15, 31, 43, 0.06);
}

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

.dashboard-card h2 {
  margin: 0;
  font-size: 21px;
}

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

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

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

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

.user-search-card {
  gap: 12px;
}

.user-filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, 0.8fr) minmax(150px, 0.5fr);
  gap: 12px;
  align-items: end;
}

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

.user-list-head,
.user-list-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(240px, 1.25fr) 80px 110px 140px;
  gap: 12px;
  align-items: center;
}

.user-list-head {
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.user-list-row {
  width: 100%;
  min-height: 72px;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.user-list-row:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 12px 30px rgba(15, 31, 43, 0.08);
}

.user-primary,
.user-products {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-primary strong,
.user-products {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-primary small {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sku-library-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sku-library-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.sku-library-item strong {
  display: block;
  font-size: 17px;
}

.sku-library-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.admin-stacked-list {
  display: grid;
  gap: 18px;
}

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

.warehouse-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warehouse-row span {
  color: var(--muted);
}

.agent-quote-list .user-list-row {
  cursor: default;
}

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

.agent-account-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-account-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agent-account-row[open] {
  border-color: rgba(19, 113, 234, 0.35);
}

.agent-account-summary {
  display: grid;
  grid-template-columns: 68px minmax(170px, 0.9fr) minmax(150px, 0.75fr) minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(110px, 0.55fr) 54px;
  gap: 10px;
  align-items: center;
  list-style: none;
}

.agent-account-card .agent-account-summary {
  grid-template-columns: 68px minmax(170px, 0.9fr) minmax(150px, 0.75fr) minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(110px, 0.55fr);
}

.agent-account-row .agent-account-summary {
  cursor: pointer;
}

.agent-account-summary::-webkit-details-marker {
  display: none;
}

.agent-account-toggle {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.agent-account-row[open] .agent-account-toggle::before {
  content: "收起";
}

.agent-account-row[open] .agent-account-toggle {
  font-size: 0;
}

.agent-link-text {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-account-editbar {
  display: grid;
  grid-template-columns: minmax(120px, 0.75fr) minmax(120px, 0.7fr) minmax(160px, 1fr) minmax(120px, 0.7fr) 74px 66px;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.agent-account-editbar input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 9px;
  font-size: 13px;
}

.agent-quote-list .user-list-head,
.agent-quote-list .user-list-row {
  grid-template-columns:
    minmax(180px, 1.15fr)
    minmax(170px, 1fr)
    minmax(135px, 0.75fr)
    minmax(140px, 0.85fr)
    minmax(135px, 0.8fr)
    minmax(78px, 0.45fr)
    76px;
}

.agent-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.agent-inline-actions input {
  width: 120px;
  min-width: 0;
  padding: 8px 9px;
}

.agent-quote-list input[name="agentPrice"] {
  width: 100%;
  min-width: 0;
}

.agent-quote-toggle {
  justify-content: flex-start;
  white-space: nowrap;
}

.material-list .user-list-head,
.material-list .user-list-row {
  grid-template-columns: minmax(110px, 0.7fr) minmax(190px, 1.1fr) minmax(180px, 1fr) minmax(96px, 0.55fr) 92px;
}

.compact-select {
  display: grid;
  gap: 6px;
  min-width: 240px;
  color: var(--muted);
  font-weight: 800;
}

.compact-select select {
  min-height: 38px;
}

.user-chip {
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.user-chip:hover {
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 12px 30px rgba(15, 31, 43, 0.08);
}

.user-chip strong {
  font-size: 18px;
}

.user-chip span {
  color: var(--muted);
}

.repayment-highlight {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #172026;
  border-radius: 8px;
}

.repayment-highlight span {
  display: grid;
  gap: 4px;
  color: #bbcad2;
  font-weight: 800;
}

.repayment-highlight strong {
  color: #fff;
  font-size: 22px;
}

.detail-grid span {
  display: grid;
  gap: 4px;
  padding: 13px;
  color: var(--muted);
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
}

.installment-table {
  display: grid;
  gap: 8px;
}

.installment-table.compact {
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.installment-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  background: #fbfdfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.installment-row span {
  color: var(--muted);
}

.installment-row strong {
  color: var(--ink);
}

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.danger-button {
  min-height: 34px;
  padding: 0 12px;
  color: #b42318;
  background: #fff0ed;
  border: 1px solid #ffd1ca;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.mini-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status-select {
  width: auto;
  min-width: 126px;
  background: #e8f4f2;
  border-color: #cbe5df;
  color: var(--brand-dark);
  font-weight: 900;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
}

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

.sku-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.payment-methods {
  display: grid;
  gap: 10px;
}

.payment-method-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #f7faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-method-option input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.payment-method-option span {
  display: grid;
  gap: 4px;
}

.payment-method-option small,
.proof-name {
  color: var(--muted);
  font-weight: 800;
}

.localized-loading {
  color: transparent;
  display: inline-block;
  min-width: 5.5em;
  position: relative;
}

.localized-loading::after {
  color: var(--text);
  content: "Đang tải...";
  inset: 0;
  position: absolute;
}

html[data-lang="en"] .localized-loading::after {
  content: "Loading...";
}

html[data-lang="zh"] .localized-loading::after,
html[data-lang="zh-CN"] .localized-loading::after {
  content: "加载中";
}

@media (max-width: 1080px) {
  .phone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .planner,
  .apply-layout,
  .auth-shell,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

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

  .settings-grid,
  .sku-form-grid,
  .admin-split-grid,
  .user-filter-grid,
  .user-chip-list,
  .sku-library-list,
  .finance-detail-row,
  .repayment-highlight {
    grid-template-columns: 1fr;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-menu-item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher button {
    flex: 1;
  }

  .hero-stats,
  .intro-strip,
  .phone-grid,
  .term-options {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 38px;
  }

  .section-heading,
  .footer,
  .order-item,
  .empty-state,
  .dashboard-hero,
  .dashboard-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .detail-grid,
  .installment-row,
  .inline-form-row,
  .user-list-row,
  .warehouse-row,
  .agent-profit-strip,
  .agent-quote-card-grid,
  .agent-account-summary,
  .agent-account-editbar,
  .cropper-controls {
    grid-template-columns: 1fr;
  }

  .agent-quote-card {
    padding: 13px;
  }

  .agent-quote-title strong {
    font-size: 17px;
  }

  .agent-quote-money-grid {
    grid-template-columns: 1fr;
  }

  .agent-quote-money-grid span {
    min-height: 0;
    grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
    align-items: center;
  }

  .agent-quote-money-grid strong,
  .agent-quote-money-grid .agent-profit-amount strong {
    text-align: right;
  }

  .model-shopper {
    grid-template-columns: 1fr;
  }

  .model-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .phone-spec-highlight {
    grid-template-columns: 1fr;
  }

  .user-list-head {
    display: none;
  }

  .user-primary strong,
  .user-primary small,
  .user-products {
    white-space: normal;
  }

  .auth-shell,
  .dashboard-shell {
    width: min(100% - 28px, 1180px);
  }
}

/* Final visual layer: keep this at the end so the polished UI wins the cascade. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --surface: #ffffff;
  --soft: #f5f5f7;
  --brand: #0071e3;
  --brand-dark: #005bb8;
  --accent: #bf4800;
  --gold: #b46a13;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.12);
}

body {
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  min-height: 54px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(210, 210, 215, 0.55);
  backdrop-filter: saturate(180%) blur(22px);
}

.brand {
  font-size: 17px;
  font-weight: 700;
}

.brand-mark {
  width: 30px;
  height: 30px;
  background: #1d1d1f;
  border-radius: 8px;
  font-size: 15px;
}

.nav {
  gap: clamp(14px, 2.2vw, 30px);
  color: #424245;
  font-size: 13px;
}

.topbar-action,
.link-button {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
}

.nav a:hover,
.topbar-action:hover,
.link-button:hover {
  color: var(--brand);
}

.language-switcher {
  background: rgba(245, 245, 247, 0.86);
  border-color: rgba(210, 210, 215, 0.72);
}

.language-switcher button.is-active {
  background: #1d1d1f;
}

.hero {
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: calc(100vh - 54px);
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 72px) 22px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 113, 227, 0.09), transparent 28%),
    linear-gradient(180deg, #fbfbfd 0%, #fff 62%, #f5f5f7 100%);
}

.hero-copy {
  width: min(940px, 100%);
  max-width: none;
  margin: 0 auto;
}

.eyebrow {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

h1 {
  max-width: none;
  font-size: clamp(38px, 5.2vw, 66px);
  font-weight: 800;
}

h2 {
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 800;
}

.hero-text {
  width: min(720px, 100%);
  margin: 12px auto 0;
  color: #424245;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.38;
}

.hero-actions {
  justify-content: center;
  margin-top: 18px;
}

.primary-button,
.secondary-button,
.mini-button,
.danger-button,
.ghost-button {
  border-radius: 999px;
}

.primary-button,
.mini-button {
  background: var(--brand);
  box-shadow: none;
}

.secondary-button {
  color: var(--brand);
  background: transparent;
  border-color: rgba(0, 113, 227, 0.32);
}

.primary-button:hover,
.secondary-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.18);
}

.hero-stats {
  width: min(620px, 100%);
  margin: 18px auto 0;
}

.hero-stats div {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(210, 210, 215, 0.72);
  backdrop-filter: blur(18px);
}

.hero-stats dt {
  font-size: 21px;
}

.hero-visual {
  min-height: 0;
  align-self: center;
}

.hero-visual img {
  width: min(1120px, 100%);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.section {
  padding: clamp(62px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.intro-strip {
  gap: 14px;
  padding-top: 34px;
  padding-bottom: 34px;
  background: #f5f5f7;
}

.intro-strip div {
  min-height: 126px;
  padding: 26px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.intro-strip strong {
  font-size: 22px;
}

.section-heading {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
  margin-bottom: 34px;
}

.section-heading p {
  color: #6e6e73;
  font-size: 18px;
}

.phone-grid {
  width: min(1280px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.phone-card {
  min-height: 520px;
  padding: 22px;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: none;
}

.phone-card:hover,
.phone-card.is-selected {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.38);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.1);
}

.phone-art {
  height: 240px;
  background: linear-gradient(180deg, #ffffff, #ececf0);
}

.phone-art img {
  object-fit: contain;
  padding: 10px;
}

.phone-card h3 {
  font-size: 21px;
  font-weight: 800;
}

.badge,
.phone-rates span,
.status-pill {
  color: #1d1d1f;
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
}

.badge.is-warning {
  color: #b42318;
  background: #fff2f0;
}

.price-row strong {
  color: #1d1d1f;
  font-size: 28px;
}

.feature-list {
  color: #515154;
}

.feature-list li::before {
  background: var(--brand);
}

.planner {
  width: min(1280px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(44px, 6vw, 72px);
  background: #f5f5f7;
  border-radius: 8px;
}

.calculator-panel,
.apply-form,
.auth-panel,
.dashboard-card,
.metric-card,
.admin-sidebar,
.finance-tabs,
.order-item,
.empty-state {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  box-shadow: none;
}

input,
select,
textarea {
  background: #ffffff;
  border-color: #d2d2d7;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.13);
}

.readonly-field,
.detail-grid span {
  background: #f5f5f7;
  border-color: transparent;
}

.readonly-field span,
label,
legend {
  color: #424245;
}

.readonly-field strong {
  color: #1d1d1f;
}

.term-options label {
  background: #ffffff;
  border-color: #d2d2d7;
}

.term-options label:has(input:checked) {
  color: #fff;
  background: #1d1d1f;
  border-color: #1d1d1f;
}

.plan-result,
.repayment-highlight {
  background: #1d1d1f;
}

.process-list span {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: transparent;
}

.dashboard-page {
  background: #f5f5f7;
}

.dashboard-hero {
  padding: clamp(20px, 4vw, 36px);
  background: #ffffff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.auth-shell,
.dashboard-shell,
.checkout-shell {
  width: min(1240px, calc(100% - 36px));
}

.demo-accounts span,
.payment-method-option,
.warehouse-row,
.finance-detail-row,
.user-list-row,
.sku-library-item {
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.72);
}

.tabbar,
.admin-menu-item:hover,
.admin-menu-item.is-active,
.finance-tab:hover,
.finance-tab.is-active,
.finance-preset:hover,
.finance-preset.is-active {
  background: #f5f5f7;
}

.tab-button.is-active {
  color: #1d1d1f;
}

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

.admin-sidebar {
  top: 74px;
}

.admin-menu-item {
  color: #515154;
}

.metric-card strong {
  font-size: clamp(26px, 3vw, 34px);
}

.footer {
  background: #f5f5f7;
}

@media (max-width: 1080px) {
  .hero {
    min-height: auto;
  }

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

  .planner {
    width: calc(100% - 28px);
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .topbar {
    min-height: auto;
  }

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

  .hero {
    padding-top: 36px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-stats,
  .intro-strip,
  .phone-grid {
    grid-template-columns: 1fr;
  }

  .phone-card {
    min-height: auto;
  }

  .phone-art {
    height: 220px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .planner {
    width: calc(100% - 24px);
    padding: 22px;
  }
}

/* Mobile final override appended at EOF. */
@media (max-width: 720px) {
  .hero-stats {
    display: none;
  }
}

/* Dashboard typography final override. */
.dashboard-page .section-heading h2,
.admin-page .section-heading h2,
.checkout-shell .section-heading h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}
@media (min-width: 900px) {
  .admin-page .section-heading {
    display: grid;
    grid-template-columns: minmax(420px, 0.95fr) minmax(280px, 1fr);
    align-items: end;
  }
}

/* Homepage hero carousel final layer. */
.hero-visual {
  width: 100%;
}

.hero-carousel {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  background: #f5f5f7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.16);
}

.hero-carousel-track,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  margin: 0;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.46s ease, transform 0.7s ease;
  pointer-events: none;
}

.hero-slide[hidden] {
  display: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-visual .hero-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.hero-carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
}

.hero-carousel-button:hover {
  background: rgba(255, 255, 255, 0.92);
}

.hero-carousel-button.is-prev {
  left: 16px;
}

.hero-carousel-button.is-next {
  right: 16px;
}

.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  gap: 8px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 999px;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(29, 29, 31, 0.28);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.hero-carousel-dots button.is-active {
  width: 22px;
  background: #1d1d1f;
}

@media (max-width: 720px) {
  .hero-carousel {
    width: 100%;
    min-height: 214px;
    max-height: 260px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
  }

  .hero-carousel-button {
    width: 34px;
    height: 34px;
    font-size: 26px;
  }

  .hero-carousel-button.is-prev {
    left: 10px;
  }

  .hero-carousel-button.is-next {
    right: 10px;
  }

  .hero-carousel-dots {
    bottom: 10px;
  }
}

/* Homepage first viewport balance. */
.hero {
  gap: 16px;
  padding-top: clamp(22px, 4vw, 42px);
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 56px);
}

.hero-stats {
  display: none;
}

.hero-carousel {
  height: clamp(300px, 42vw, 460px);
  aspect-ratio: auto;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-carousel {
    height: clamp(210px, 54vw, 260px);
  }
}

/* Admin marketplace layout final layer. */
.dashboard-page {
  background: #f5f5f7;
}

.admin-layout {
  width: min(1480px, calc(100% - 32px));
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  padding-top: 22px;
}

.admin-sidebar {
  top: 76px;
  gap: 14px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(210, 210, 215, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px);
}

.admin-sidebar-title {
  padding-bottom: 14px;
}

.admin-sidebar-title strong {
  font-size: 20px;
}

.admin-menu {
  gap: 16px;
}

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

.admin-menu-group > span {
  padding: 0 8px;
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}

.admin-menu-item {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  color: #424245;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.admin-menu-item:hover,
.admin-menu-item.is-active {
  color: #1d1d1f;
  background: #f5f5f7;
  border-color: rgba(210, 210, 215, 0.9);
}

.admin-workspace {
  display: grid;
  gap: 18px;
}

.admin-page.is-active {
  gap: 18px;
}

.dashboard-hero,
.dashboard-card,
.metric-card,
.finance-tabs {
  background: #fff;
  border-color: rgba(210, 210, 215, 0.78);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
}

.dashboard-hero {
  padding: 24px;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
}

.dashboard-hero h1 {
  font-size: clamp(32px, 3vw, 44px);
}

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

.metric-card {
  min-height: 112px;
  padding: 18px;
}

.metric-card strong {
  font-size: clamp(24px, 2.4vw, 34px);
}

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

.admin-command-card {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  color: #1d1d1f;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.admin-command-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.08);
}

.admin-command-card span,
.admin-command-card small {
  color: #6e6e73;
  font-weight: 700;
}

.admin-command-card strong {
  font-size: 40px;
  line-height: 1;
}

.admin-command-card.is-urgent {
  border-color: rgba(191, 72, 0, 0.24);
  background: #fff8f4;
}

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

.admin-check-list button,
.admin-check-list span {
  display: grid;
  gap: 4px;
  padding: 14px;
  color: #1d1d1f;
  text-align: left;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.admin-check-list button {
  cursor: pointer;
}

.admin-check-list small,
.admin-check-list span span,
.admin-check-list button span {
  color: #6e6e73;
  font-weight: 700;
}

.compact-heading h2 {
  font-size: clamp(24px, 2.2vw, 34px);
}

.admin-data-table {
  display: grid;
  gap: 8px;
  overflow: hidden;
}

.admin-data-head,
.admin-data-row {
  display: grid;
  grid-template-columns: 116px minmax(160px, 1.15fr) minmax(180px, 1.2fr) 100px 126px 112px;
  gap: 10px;
  align-items: center;
}

.risk-data-table .admin-data-head,
.risk-data-table .admin-data-row {
  grid-template-columns: minmax(180px, 1.15fr) minmax(220px, 1.3fr) 76px 130px 130px 86px;
}

.service-data-table .admin-data-head,
.service-data-table .admin-data-row {
  grid-template-columns: 120px minmax(160px, 1fr) minmax(220px, 1.25fr) 112px 112px 100px;
}

.order-filter-card {
  padding: 16px;
}

.order-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr) minmax(170px, 0.9fr) minmax(180px, 0.9fr) 120px;
  gap: 12px;
  align-items: end;
}

.support-filter-form {
  grid-template-columns: 160px minmax(220px, 1fr) auto auto;
}

.referral-filter-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(170px, 0.85fr) minmax(120px, 0.6fr);
  margin-bottom: 12px;
}

.admin-list-filter-grid {
  grid-template-columns:
    minmax(220px, 1.2fr)
    minmax(150px, 0.8fr)
    minmax(150px, 0.8fr)
    minmax(170px, 0.9fr)
    minmax(120px, 0.65fr);
  margin-bottom: 12px;
}

.order-filter-grid label,
.order-filter-grid .readonly-field {
  min-width: 0;
}

.pagination-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pagination-pages .mini-button {
  min-width: 40px;
  padding: 0 10px;
}

.pagination-pages .mini-button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.pagination-ellipsis {
  min-width: 24px;
  color: var(--muted);
  text-align: center;
  font-weight: 900;
}

.order-data-table .admin-data-head,
.order-data-table .admin-data-row {
  grid-template-columns: minmax(170px, 1fr) minmax(220px, 1.25fr) 108px minmax(130px, 0.8fr) 90px 132px;
}

.order-summary-card {
  display: grid;
  gap: 8px;
}

.order-summary-card summary {
  list-style: none;
}

.order-summary-card summary::-webkit-details-marker {
  display: none;
}

.order-summary-row {
  position: relative;
}

.order-summary-row::after {
  color: #86868b;
  content: "展开";
  font-size: 12px;
  font-weight: 900;
}

.order-summary-card[open] .order-summary-row::after {
  content: "收起";
}

.order-detail-card {
  margin: 0 0 12px;
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: none;
}

.admin-data-head {
  padding: 0 12px 4px;
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}

.admin-data-row {
  width: 100%;
  min-height: 58px;
  padding: 12px;
  color: #1d1d1f;
  text-align: left;
  background: #fbfbfd;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  cursor: pointer;
}

.admin-data-row:hover {
  background: #fff;
  border-color: rgba(0, 113, 227, 0.28);
}

.admin-data-row span {
  min-width: 0;
}

.admin-data-row small {
  display: block;
  margin-top: 3px;
  color: #86868b;
  font-size: 12px;
  font-weight: 700;
}

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

.content-preview-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

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

.permission-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 12px;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  font-weight: 800;
}

.permission-check input {
  width: 16px;
  height: 16px;
}

.permission-grid.is-readonly {
  opacity: 0.72;
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.span-2 {
  grid-column: 1 / -1;
}

.support-ticket-card,
.support-admin-ticket {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fbfbfd;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
}

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

.support-message {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.support-message.is-admin {
  background: #f1f7ff;
  border-color: rgba(0, 113, 227, 0.22);
}

.support-message span {
  color: #86868b;
  font-size: 12px;
  font-weight: 700;
}

.support-message p {
  margin: 0;
  color: #1d1d1f;
  line-height: 1.55;
  white-space: pre-wrap;
}

.support-follow-form {
  display: grid;
  gap: 10px;
}

textarea {
  width: 100%;
  resize: vertical;
}

.admin-page[data-admin-page-panel="order-review"] .admin-split-grid {
  grid-template-columns: 1fr;
}

.admin-page[data-admin-page-panel="order-review"] .dashboard-card {
  max-width: 100%;
  overflow: hidden;
}

.admin-page[data-admin-page-panel="order-review"] .installment-table {
  overflow-x: auto;
}

@media (max-width: 1180px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    max-height: none;
  }

  .admin-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-command-grid,
  .metric-grid,
  .permission-grid,
  .sales-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-analytics-grid,
  .sales-donut-wrap {
    grid-template-columns: 1fr;
  }

  .sales-donut {
    justify-self: center;
  }

  .admin-data-head {
    display: none;
  }

  .order-filter-grid,
  .order-data-table .admin-data-row,
  .order-data-table .admin-data-head {
    grid-template-columns: 1fr;
  }

  .admin-data-row,
  .repayment-data-table .admin-data-row,
  .risk-data-table .admin-data-row,
  .service-data-table .admin-data-row {
    grid-template-columns: 1fr;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-layout {
    width: min(100% - 20px, 1480px);
    padding-top: 14px;
  }

  .admin-menu {
    grid-template-columns: 1fr;
  }

  .sales-metric-grid {
    grid-template-columns: 1fr;
  }

  .sales-bar-chart {
    min-height: 170px;
    gap: 4px;
    padding-inline: 8px;
  }

  .bad-debt-ratio-chart {
    grid-auto-columns: minmax(5px, 1fr);
    gap: 3px;
    min-height: 160px;
    padding-inline: 6px;
  }

  .bad-debt-ratio-chart .sales-bar-item {
    grid-template-rows: 1fr 16px;
    gap: 6px;
  }

  .bad-debt-ratio-chart .sales-bar-item small {
    font-size: 9px;
  }

  .sales-legend span {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .sales-legend strong {
    grid-column: 2;
  }

  .sales-ranking-row div {
    display: grid;
  }

  .admin-menu-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-menu-group > span {
    flex: 0 0 auto;
    align-self: center;
  }

  .admin-command-grid,
  .metric-grid,
  .content-preview-strip,
  .permission-grid {
    grid-template-columns: 1fr;
  }
}

/* User center menu layout. */
.user-layout {
  width: min(1320px, calc(100% - 32px));
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 22px;
  padding-top: 22px;
}

.user-sidebar {
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow: auto;
}

.user-menu,
.user-workspace,
.user-page {
  min-width: 0;
}

.user-menu {
  display: grid;
  gap: 12px;
}

.user-menu-group {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(210, 210, 215, 0.62);
}

.user-menu-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.user-menu-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 8px;
  color: #6e6e73;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.user-menu-group-toggle strong {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #1d1d1f;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.9);
  border-radius: 999px;
  font-size: 15px;
  line-height: 1;
}

.user-menu-items {
  display: grid;
  gap: 6px;
}

.user-menu-group.is-collapsed .user-menu-items {
  display: none;
}

.user-menu .admin-menu-item {
  justify-content: space-between;
  gap: 10px;
}

.menu-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  color: #424245;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.admin-menu-item.is-active .menu-count,
.admin-menu-item:hover .menu-count {
  color: #0f766e;
  border-color: rgba(15, 118, 110, 0.26);
}

.user-workspace {
  display: grid;
  gap: 18px;
}

.user-page,
.agent-page-panel {
  display: none;
  gap: 18px;
  container-type: inline-size;
}

.user-page.is-active,
.agent-page-panel.is-active {
  display: grid;
}

.agent-profit-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.agent-profit-strip span {
  display: grid;
  gap: 5px;
  min-height: 70px;
  padding: 12px;
  color: #6e6e73;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.agent-profit-strip strong {
  overflow: hidden;
  color: #1d1d1f;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.agent-quote-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.85);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.045);
}

.agent-quote-card.is-paused {
  opacity: 0.62;
}

.agent-quote-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-profit-tag {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.09);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.agent-quote-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.agent-quote-title strong {
  color: #1d1d1f;
  font-size: 18px;
  line-height: 1.18;
}

.agent-quote-title span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

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

.agent-quote-money-grid span {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  background: #f8f8fa;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.agent-quote-money-grid small {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 900;
}

.agent-quote-money-grid strong {
  overflow-wrap: anywhere;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.2;
}

.agent-quote-money-grid .agent-profit-amount {
  background: #eefaf6;
  border-color: rgba(15, 118, 110, 0.22);
}

.agent-quote-money-grid .agent-profit-amount strong {
  color: #0f766e;
  font-size: 18px;
}

@container (max-width: 760px) {
  .agent-profit-strip,
  .agent-quote-card-grid,
  .agent-quote-money-grid {
    grid-template-columns: 1fr;
  }

  .agent-quote-card {
    padding: 13px;
  }

  .agent-quote-title strong {
    font-size: 17px;
  }

  .agent-quote-money-grid span {
    min-height: 0;
    grid-template-columns: minmax(86px, 0.45fr) minmax(0, 1fr);
    align-items: center;
  }

  .agent-quote-money-grid strong,
  .agent-quote-money-grid .agent-profit-amount strong {
    text-align: right;
  }
}

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

.user-summary-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 16px;
  color: #1d1d1f;
  text-align: left;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  cursor: pointer;
}

.user-summary-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.user-summary-card span,
.user-summary-card small {
  color: #6e6e73;
  font-weight: 800;
}

.user-summary-card strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.user-repayment-table .installment-row {
  grid-template-columns: minmax(150px, 0.85fr) minmax(220px, 1.2fr) minmax(110px, 0.65fr) minmax(130px, auto) auto;
}

.user-repayment-table .installment-row.is-urgent {
  border-color: rgba(220, 38, 38, 0.34);
  background: #fff1f2;
}

.user-repayment-table .installment-row.is-urgent span,
.user-repayment-table .installment-row.is-urgent strong {
  color: #b91c1c;
}

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

.consent-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(210, 210, 215, 0.82);
  border-radius: 8px;
  background: #fff;
}

.status-pill.is-success {
  color: #047857;
  background: #ecfdf5;
  border-color: rgba(4, 120, 87, 0.26);
}

.status-pill.is-warning {
  color: #92400e;
  background: #fffbeb;
  border-color: rgba(217, 119, 6, 0.26);
}

.bad-debt-analytics-grid {
  margin-bottom: 18px;
}

.bad-debt-ratio-chart .sales-bar-item span {
  background: linear-gradient(180deg, #ff375f, #ff9f0a);
}

.bad-debt-donut span {
  color: #b91c1c;
}

.status-pill.is-danger,
.bad-debt-summary-card.is-bad-debt > summary {
  color: #b91c1c;
  background: #fff1f2;
  border-color: rgba(220, 38, 38, 0.28);
}

.bad-debt-summary-card.is-bad-debt > summary strong,
.bad-debt-summary-card.is-bad-debt > summary small,
.bad-debt-summary-card.is-bad-debt > summary span {
  color: #b91c1c;
}

.consent-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.62);
}

.consent-modal-panel {
  display: grid;
  gap: 14px;
  width: min(960px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  padding: 18px;
  background: #f5f7fb;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
}

.consent-document {
  display: grid;
  gap: 10px;
  padding: 24px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.86);
  border-radius: 8px;
  line-height: 1.8;
}

.consent-document p {
  margin: 0;
  text-indent: 2em;
}

.consent-signature-lines {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  font-weight: 850;
}

.signature-pad-wrap {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.86);
  border-radius: 8px;
}

.signature-pad {
  width: 100%;
  height: 220px;
  background: #fff;
  border: 1px dashed rgba(29, 29, 31, 0.28);
  border-radius: 8px;
  touch-action: none;
}

@media (max-width: 1180px) {
  .user-layout {
    width: min(100% - 24px, 1320px);
    grid-template-columns: 1fr;
  }

  .user-sidebar {
    position: static;
    max-height: none;
  }

  .user-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-repayment-table .installment-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .payer-fields {
    grid-template-columns: 1fr;
  }

  .consent-modal-overlay {
    padding: 10px;
  }

  .consent-modal-panel {
    max-height: 94vh;
    padding: 12px;
  }

  .consent-document {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .user-layout {
    width: min(100% - 20px, 1320px);
    padding-top: 14px;
  }

  .user-menu,
  .user-overview-grid {
    grid-template-columns: 1fr;
  }

  .user-menu-group {
    padding-bottom: 8px;
  }

.user-summary-card {
  min-height: 112px;
  }
}

.payment-qr-upload {
  display: grid;
  gap: 10px;
}

.payment-qr-preview,
.payment-qr-image {
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  color: var(--muted);
  background: #fff;
  border: 1px dashed rgba(110, 110, 115, 0.38);
  border-radius: 8px;
  font-weight: 900;
}

.payment-qr-preview img,
.payment-qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-style: solid;
}

.payment-qr-option {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.payment-qr-option small {
  color: #1d1d1f;
  font-size: 16px;
  font-weight: 900;
}

.id-card-upload-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.id-card-upload-summary span {
  font-weight: 900;
}

.file-input-hidden {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.id-card-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.id-card-preview-grid .payment-qr-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.square-cropper-canvas {
  width: min(520px, 80vw);
  aspect-ratio: 1;
}

/* Home storefront redesign: product-first Finstar landing experience. */
body {
  background: #f6f7f8;
}

.topbar {
  z-index: 40;
}

.brand-mark {
  width: 38px;
  font-size: 13px;
  letter-spacing: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(620px, 82svh, 780px);
  padding: clamp(46px, 8vw, 84px) clamp(20px, 6vw, 92px);
  overflow: hidden;
  text-align: left;
  background: #f4f5f6;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(246, 247, 248, 0.96) 0%, rgba(246, 247, 248, 0.84) 32%, rgba(246, 247, 248, 0.26) 68%, rgba(246, 247, 248, 0.62) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(245, 245, 247, 0.82));
}

.hero-copy {
  width: min(680px, 100%);
  margin: 0;
}

.hero .eyebrow {
  color: #0f766e;
  font-size: 13px;
}

.hero h1 {
  max-width: 680px;
  margin-top: 8px;
  font-size: clamp(42px, 6.2vw, 78px);
  line-height: 0.98;
}

.hero-text {
  width: min(600px, 100%);
  margin: 18px 0 0;
  color: #3b4248;
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.48;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 24px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.hero-proof span {
  min-height: 34px;
  padding: 8px 13px;
  color: #263238;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(210, 210, 215, 0.68);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.hero-stats {
  width: min(560px, 100%);
  margin: 24px 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(210, 210, 215, 0.78);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  min-height: 100%;
}

.hero-carousel,
.hero-carousel-track,
.hero-slide {
  width: 100%;
  height: 100%;
}

.hero-carousel {
  max-width: none;
  border-radius: 0;
  box-shadow: none;
}

.hero-slide img,
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 0;
  box-shadow: none;
}

.hero-carousel-button {
  top: auto;
  right: clamp(18px, 4vw, 54px);
  bottom: 28px;
  transform: none;
  background: rgba(255, 255, 255, 0.86);
}

.hero-carousel-button.is-prev {
  right: calc(clamp(18px, 4vw, 54px) + 58px);
  left: auto;
}

.hero-carousel-button.is-next {
  right: clamp(18px, 4vw, 54px);
}

.hero-carousel-dots {
  right: auto;
  bottom: 36px;
  left: clamp(20px, 6vw, 92px);
  transform: none;
  background: rgba(255, 255, 255, 0.72);
}

.intro-strip {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 36px));
  margin: -34px auto 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  background: transparent;
}

.intro-strip div {
  min-height: 132px;
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(210, 210, 215, 0.78);
  box-shadow: 0 18px 46px rgba(24, 33, 41, 0.08);
}

.intro-strip strong {
  font-size: 20px;
}

.shopping-flow {
  padding-top: clamp(74px, 9vw, 118px);
  background: #f6f7f8;
}

.flow-grid {
  display: grid;
  width: min(1240px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article {
  display: grid;
  gap: 12px;
  min-height: 212px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.74);
  border-radius: 8px;
}

.flow-grid span {
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
}

.flow-grid strong {
  font-size: 21px;
}

.flow-grid p {
  margin: 0;
  color: #66737f;
  line-height: 1.55;
}

#phones {
  background: #fff;
}

.phone-grid {
  width: min(1360px, 100%);
  grid-template-columns: 1fr;
  gap: 24px;
}

.model-shopper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.model-picker-panel {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 250, 0.96)),
    #f7f8fa;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
}

.model-picker-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.model-picker-head strong {
  color: #1d1d1f;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0;
  line-height: 1.08;
}

.model-picker-head span {
  color: #6e6e73;
  font-size: 14px;
  font-weight: 800;
}

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

.model-picker-grid button {
  display: grid;
  gap: 7px;
  min-height: 92px;
  padding: 14px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.9);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.model-picker-grid button strong {
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.18;
}

.model-picker-grid button small {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.model-picker-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.12);
}

.model-picker-grid button.is-active {
  background: linear-gradient(180deg, #f5faff, #eaf4ff);
  border-color: rgba(0, 113, 227, 0.76);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.32);
}

.model-picker-grid button.is-empty {
  opacity: 0.62;
}

.phone-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 28px);
  overflow: hidden;
  background: #ffffff;
  border-color: rgba(210, 210, 215, 0.74);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.model-config-card {
  cursor: default;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: stretch;
  scroll-margin-top: 92px;
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.08);
}

.model-empty-state {
  min-height: 320px;
  align-content: center;
}

.model-empty-state strong {
  color: #1d1d1f;
  font-size: 26px;
}

.phone-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border: 2px solid transparent;
  border-radius: 8px;
}

.phone-card.is-selected::after {
  border-color: rgba(0, 113, 227, 0.42);
}

.phone-card-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

.phone-art {
  grid-row: span 6;
  align-self: start;
  aspect-ratio: 1;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef1f4 100%);
  border: 1px solid rgba(210, 210, 215, 0.64);
  border-radius: 8px;
}

.phone-image-button {
  border-radius: 8px;
}

.phone-art img {
  object-fit: contain;
  transform: none;
}

.phone-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.phone-card h3 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.06;
}

.phone-card p {
  color: #5c6670;
}

.phone-config-panel {
  display: grid;
  gap: 15px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
}

.phone-option-group {
  display: grid;
  gap: 7px;
}

.phone-option-group > span {
  color: #6e6e73;
  font-size: 12px;
  font-weight: 900;
}

.phone-option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.phone-option-list button {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 38px;
  padding: 7px 15px;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.94);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.phone-option-list button small {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 800;
}

.phone-option-list button.is-active small {
  color: #005bb8;
}

.phone-option-list button:hover {
  border-color: rgba(0, 113, 227, 0.45);
}

.phone-option-list button.is-active {
  color: #005bb8;
  background: #eef6ff;
  border-color: rgba(0, 113, 227, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, 0.35);
}

.phone-option-list button:disabled {
  color: #a1a1a6;
  background: #f5f5f7;
  border-style: dashed;
  cursor: not-allowed;
}

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

.phone-spec-highlight span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 8px;
}

.phone-spec-highlight small {
  color: #6e6e73;
  font-size: 11px;
  font-weight: 900;
}

.phone-spec-highlight strong {
  overflow: hidden;
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-payment-preview {
  display: grid;
  gap: 6px;
  padding: 18px;
  color: #cfd8dc;
  background:
    linear-gradient(135deg, #1d1d1f 0%, #2f3a44 100%);
  border-radius: 8px;
}

.phone-payment-preview span,
.phone-payment-preview small {
  color: #cfd8dc;
  font-size: 13px;
  font-weight: 800;
}

.phone-payment-preview strong {
  color: #fff;
  font-size: 26px;
  line-height: 1.05;
}

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

.phone-amount-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  color: #64707a;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 850;
}

.phone-amount-grid strong {
  color: #1d1d1f;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.phone-rates {
  gap: 7px;
}

.phone-rates span,
.badge,
.status-pill {
  border-color: rgba(210, 210, 215, 0.76);
}

.price-row {
  align-items: end;
  padding-top: 4px;
  border-top: 1px solid rgba(210, 210, 215, 0.72);
}

.phone-select-button {
  min-height: 42px;
  color: #fff;
  background: #0071e3;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.phone-select-button:hover {
  background: #005bb8;
}

.phone-card.is-unavailable .phone-select-button {
  color: #6e6e73;
  background: #e5e5ea;
}

.planner {
  display: grid;
  width: min(1240px, calc(100% - 36px));
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  gap: 24px;
  align-items: stretch;
  background: #172026;
}

.planner-copy {
  align-content: center;
  padding: clamp(8px, 2vw, 18px);
}

.planner-copy .eyebrow,
.planner-copy h2,
.planner-copy p {
  color: #fff;
}

.planner-copy p {
  opacity: 0.78;
}

.calculator-panel {
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.plan-result {
  background: #0f766e;
}

.apply-layout {
  width: min(1240px, calc(100% - 36px));
  margin: clamp(66px, 8vw, 104px) auto;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84)),
    url("/assets/phone-hero-cafe.png") center / cover;
  border: 1px solid rgba(210, 210, 215, 0.74);
  border-radius: 8px;
}

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

.process-list span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 210, 215, 0.72);
}

.orders {
  background: #fff;
}

@media (max-width: 1080px) {
  .hero {
    min-height: 720px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(246, 247, 248, 0.96) 0%, rgba(246, 247, 248, 0.82) 48%, rgba(246, 247, 248, 0.2) 100%);
  }

  .hero-copy {
    align-self: start;
  }

  .hero-carousel-dots {
    left: 20px;
  }

  .intro-strip,
  .flow-grid,
  .planner,
  .apply-layout {
    grid-template-columns: 1fr;
  }

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

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

  .model-config-card {
    grid-template-columns: 1fr;
  }

  .phone-art {
    grid-row: auto;
    min-height: 320px;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 560px;
    padding: 24px 18px 54px;
  }

  .hero-slide img,
  .hero-visual img {
    object-position: center 30%;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  .hero-text {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.42;
  }

  .hero-actions {
    margin-top: 16px;
  }

  .hero-proof {
    margin-top: 12px;
    gap: 7px;
  }

  .hero-proof span {
    min-height: 30px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .model-picker-panel,
  .model-config-card {
    padding: 16px;
  }

  .model-picker-head {
    align-items: flex-start;
  }

  .model-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-picker-grid button {
    min-height: 84px;
    padding: 12px 10px;
  }

  .phone-art {
    min-height: 260px;
  }

  .phone-meta,
  .phone-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .phone-amount-grid {
    grid-template-columns: 1fr;
  }

  .phone-spec-highlight {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .hero-proof {
    align-items: stretch;
  }

  .hero-actions a {
    justify-content: center;
  }

  .hero-stats {
    display: none;
  }

  .hero-carousel-button {
    bottom: 18px;
  }

  .hero-carousel-dots {
    bottom: 26px;
  }

  .intro-strip {
    width: min(100% - 24px, 1240px);
    grid-template-columns: 1fr;
    margin-top: -46px;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .phone-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .planner,
  .apply-layout {
    width: min(100% - 24px, 1240px);
    padding: 22px;
  }
}
