/* ============================================================
   H&H Warranty Portal — Styles aligned with main site VI
   Brand: Leap Orange #E9481A · Warm White #F9F2EC · Graphite #121211
   Updated: 2026-07-07
   ============================================================ */

:root {
  --background: #f9f2ec;
  --foreground: #121211;
  --orange: #e9481a;
  --orange-deep: #bd3312;
  --paper: #fffaf6;
  --white: #ffffff;
  --gray: #c8bcb5;
  --soft: #5d5651;
  --line: rgba(18, 18, 17, 0.13);
  --green: #188452;
  --amber: #ad6a00;
  --red: #b42318;
  --blue: #2464a7;
  --panel: rgba(255, 255, 255, 0.92);
  --surface: rgba(255, 255, 255, 0.72);
  --shadow: 0 4px 24px rgba(91, 21, 6, 0.06);
  --shadow-soft: 0 2px 16px rgba(91, 21, 6, 0.05);
  --shadow-hover: 0 12px 40px rgba(233, 72, 26, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    "OPPOSans", "Inter", "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

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

button {
  cursor: pointer;
}

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

/* ── No-script fallback ── */
.no-script {
  max-width: 760px;
  margin: 15vh auto;
  padding: 32px;
}

/* ── Shell ── */
.portal-shell {
  min-height: 100vh;
}

/* ============================================================
   Header — sticky, warm white, orange accent border
   ============================================================ */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(233, 72, 26, 0.14);
  background: rgba(249, 242, 236, 0.92);
  backdrop-filter: blur(18px);
}

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

.portal-brand-logo {
  display: block;
  width: 86px;
  height: auto;
  aspect-ratio: 433 / 207;
  object-fit: contain;
}

.portal-brand-copy {
  display: block;
}

.portal-brand-copy > span {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.portal-brand-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

/* ── Nav ── */
.portal-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.portal-nav::-webkit-scrollbar {
  display: none;
}

.portal-nav a,
.role-tabs a,
.subnav a,
.subnav button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  transition: all 0.2s ease;
}

.portal-nav a:hover,
.role-tabs a:hover,
.subnav a:hover {
  color: var(--foreground);
}

.portal-nav a.is-active,
.role-tabs a.is-active,
.subnav a.is-active {
  border-color: rgba(233, 72, 26, 0.3);
  background: rgba(233, 72, 26, 0.08);
  color: var(--orange);
}

.subnav button {
  cursor: pointer;
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-select {
  min-height: 36px;
  border: 1px solid rgba(233, 72, 26, 0.2);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--foreground);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.home-link:hover {
  background: var(--orange);
  color: #ffffff;
}

/* ============================================================
   Page layout
   ============================================================ */
.page {
  padding: clamp(40px, 6vw, 76px) clamp(18px, 5vw, 64px) clamp(64px, 8vw, 96px);
}

.page-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.page-inner > section + section {
  margin-top: clamp(28px, 4vw, 52px);
}

/* ============================================================
   Workspace — sidebar changed from green to graphite
   ============================================================ */
.workspace-page {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  min-height: 100vh;
  background: var(--background);
}

.workspace-page > * {
  min-width: 0;
}

.workspace-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 14px 20px;
  background: #1a1a18;
  color: rgba(255, 255, 255, 0.72);
}

.workspace-brand {
  display: block;
  min-width: 0;
  padding: 2px 12px 34px;
  color: #ffffff;
}

.workspace-brand strong {
  display: block;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.04;
}

.workspace-brand span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.workspace-nav {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
  scrollbar-width: none;
}

.workspace-nav::-webkit-scrollbar {
  display: none;
}

.workspace-nav a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 42px;
  border-radius: var(--radius-sm);
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.workspace-nav a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

.workspace-nav a.is-active {
  background: rgba(233, 72, 26, 0.15);
  color: #ffffff;
}

.workspace-nav-mark {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.workspace-nav a.is-active .workspace-nav-mark {
  border-color: var(--orange);
  background: var(--orange);
}

.workspace-sidebar-footer {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 12px 0;
}

.workspace-sidebar-footer a,
.workspace-sidebar-footer button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.workspace-sidebar-footer a:hover,
.workspace-sidebar-footer button:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Workspace main area ── */
.workspace-main {
  min-width: 0;
  padding: 42px clamp(24px, 4vw, 56px) 76px;
}

.workspace-topbar {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin: 0 auto 30px;
  max-width: 1360px;
}

.workspace-topbar h1 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
  font-weight: 900;
}

.workspace-topbar p:not(.section-kicker) {
  margin: 0;
  max-width: 760px;
  color: var(--soft);
  line-height: 1.55;
  font-size: 14px;
}

.workspace-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  padding-top: 4px;
}

.workspace-content {
  max-width: 1360px;
  margin: 0 auto;
}

.workspace-content > section + section {
  margin-top: 22px;
}

/* Workspace cards — warm white, not green-tinted */
.workspace-content .panel,
.workspace-content .metric-card,
.workspace-content .data-card,
.workspace-content .result-card {
  border-color: rgba(200, 188, 181, 0.35);
  background: var(--white);
  box-shadow: var(--shadow);
}

.workspace-content .metric-card strong {
  color: var(--orange);
}

.workspace-content .metric-grid {
  gap: 20px;
}

.workspace-content .metric-card {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
}

.workspace-content .metric-card strong {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.5vw, 40px);
}

/* ── Dashboard World Map ── */
#dashboard-world-map {
  position: relative;
  min-height: 360px;
}

#dashboard-world-map .map-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  color: var(--soft);
  font-size: 14px;
}

/* ECharts tooltip override for map */
#dashboard-world-map .echarts-tooltip {
  max-width: 260px;
}

@media (max-width: 768px) {
  #dashboard-world-map {
    height: 300px;
    min-height: 260px;
  }
  #dashboard-world-map .map-loading {
    height: 260px;
  }
}

.workspace-content .metric-card span {
  color: var(--soft);
  font-size: 13px;
}

.workspace-content .panel,
.workspace-content .data-card,
.workspace-content .result-card {
  padding: 24px 28px;
}

.workspace-content .panel h2 {
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.18;
}

.workspace-content .panel h3,
.workspace-content .data-card h3 {
  color: var(--foreground);
}

/* Workspace buttons — use orange, not green */
.workspace-content .button {
  border-color: var(--orange);
  background: var(--orange);
}

.workspace-content .ghost-button {
  background: var(--white);
}

.workspace-content .text-button {
  color: var(--orange);
}

.workspace-content input,
.workspace-content select,
.workspace-content textarea {
  border-color: rgba(200, 188, 181, 0.4);
  background: var(--white);
}

.workspace-content .table-wrap {
  border-color: rgba(200, 188, 181, 0.35);
  background: var(--white);
}

.workspace-content th {
  background: rgba(249, 242, 236, 0.8);
  color: var(--soft);
}

/* 长文本单元格（如经销商详细地址）：超宽省略，hover 显示完整内容 */
.workspace-content .cell-ellipsis {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: minmax(540px, 1.16fr) minmax(340px, 0.84fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: min(760px, calc(100vh - 68px));
  padding: clamp(14px, 3vw, 32px) 0;
}

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

/* ============================================================
   Typography
   ============================================================ */
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  line-height: 1.08;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.12;
}

h1,
h2 {
  overflow-wrap: normal;
  word-break: keep-all;
}

h3 {
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.lead {
  color: var(--soft);
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.7;
  max-width: 860px;
}

.small {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

html[lang="zh"] .hero-copy h1,
html[lang="zh"] .system-card h2,
html[lang="zh"] .workflow-panel h2,
html[lang="zh"] .page-inner > section:first-child h1,
html[lang="zh"] .panel > h2 {
  white-space: nowrap;
}

/* ============================================================
   Buttons
   ============================================================ */
.hero-actions,
.toolbar,
.inline-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
.ghost-button,
.text-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 18px;
  background: var(--white);
  color: var(--foreground);
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.button {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.button:hover {
  background: var(--orange-deep);
  border-color: var(--orange-deep);
  box-shadow: 0 4px 16px rgba(233, 72, 26, 0.25);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(200, 188, 181, 0.4);
}

.ghost-button:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.text-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--orange);
  padding: 0;
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--red);
}

/* ============================================================
   Cards
   ============================================================ */
.system-card,
.panel,
.metric-card,
.data-card,
.result-card,
.login-panel {
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.system-card {
  padding: clamp(24px, 3.5vw, 38px);
}

.system-card h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
}

.system-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.system-card header span,
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border: 1px solid rgba(233, 72, 26, 0.22);
  border-radius: 4px;
  background: rgba(233, 72, 26, 0.06);
  color: var(--orange);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel,
.metric-card,
.data-card,
.result-card,
.login-panel {
  padding: clamp(20px, 2.5vw, 28px);
}

.panel,
.result-card,
.login-panel {
  background: var(--panel);
}

.data-card,
.metric-card {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel h3,
.data-card h3,
.result-card h3 {
  margin-bottom: 10px;
}

.panel p,
.data-card p,
.result-card p {
  color: var(--soft);
  line-height: 1.65;
}

.panel > h2,
.result-card > h2 {
  margin-bottom: 14px;
}

.panel > p,
.result-card > p,
.data-card > p {
  margin-bottom: 18px;
}

.metric-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--orange);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  line-height: 1;
}

.metric-card span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

/* ============================================================
   Workflow steps
   ============================================================ */
.workflow {
  display: grid;
  gap: 16px;
}

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

.workflow-step strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.workflow-step p {
  margin: 0;
  color: var(--soft);
  line-height: 1.55;
}

/* ============================================================
   Grid layouts
   ============================================================ */
.home-grid,
.feature-grid,
.metric-grid,
.two-column,
.three-column,
.admin-grid,
.reward-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 28px);
}

.home-grid > *,
.feature-grid > *,
.metric-grid > *,
.two-column > *,
.three-column > *,
.admin-grid > *,
.reward-grid > * {
  min-width: 0;
}

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

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

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

.two-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.workflow-panel .two-column {
  grid-template-columns: minmax(520px, 1.16fr) minmax(0, 0.84fr);
  align-items: center;
}

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

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

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

.reward-catalog-card {
  min-height: 176px;
}

/* ── Reward image upload / display ── */
.reward-image-upload {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-4);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.reward-image-upload .reward-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reward-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-2);
  font-size: 14px;
  gap: 4px;
}

.reward-image-placeholder .small {
  font-size: 12px;
  color: var(--gray-1);
}

.reward-image-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

.reward-file-input {
  display: none;
}

.reward-upload-btn {
  background: rgba(0,0,0,0.6) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.3) !important;
  font-size: 12px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Dealer catalog reward image */
.reward-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.reward-image-wrap .reward-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   Redemption
   ============================================================ */
.redemption-builder {
  margin-top: 18px;
}

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

.redemption-table-wrap {
  margin-top: 0;
}

.redemption-table-wrap table {
  min-width: 860px;
}

.redemption-table-wrap td strong {
  display: block;
  margin-bottom: 5px;
}

.redemption-table-wrap td span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.redemption-table-wrap tr.is-muted {
  color: var(--soft);
}

.redemption-table-wrap tr.is-muted input {
  background: rgba(18, 18, 17, 0.03);
}

.quantity-input {
  max-width: 92px;
  min-height: 40px;
}

.redemption-summary {
  position: sticky;
  top: 18px;
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}

.redemption-summary h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.redemption-summary ul {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 1.1em;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

.redemption-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 12px;
}

.redemption-total span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.redemption-total strong {
  color: var(--green);
  font-size: 1.75rem;
  line-height: 1;
}

.redemption-summary .button {
  width: 100%;
  margin-top: 12px;
}

/* ============================================================
   Subnav & role tabs
   ============================================================ */
.role-tabs,
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
}

.subnav {
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  padding: 6px;
  box-shadow: var(--shadow-soft);
}

/* ============================================================
   Forms
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 9px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(200, 188, 181, 0.4);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--foreground);
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(233, 72, 26, 0.15);
  border-color: var(--orange);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* ============================================================
   Tables
   ============================================================ */
.table-wrap {
  margin-top: 18px;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: var(--white);
}

.compact-table {
  overflow-x: visible;
}

.compact-table table {
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

th,
td {
  border-bottom: 1px solid rgba(18, 18, 17, 0.08);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(249, 242, 236, 0.5);
}

tr:last-child td {
  border-bottom: 0;
}

/* ── Status badges ── */
.status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 4px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-active,
.status-approved,
.status-shipped {
  background: rgba(24, 132, 82, 0.1);
  color: var(--green);
}

.status-pending,
.status-waiting {
  background: rgba(173, 106, 0, 0.1);
  color: var(--amber);
}

.status-rejected,
.status-voided,
.status-out {
  background: rgba(180, 35, 24, 0.1);
  color: var(--red);
}

.status-allocated,
.status-unallocated,
.status-coming {
  background: rgba(36, 100, 167, 0.1);
  color: var(--blue);
}

/* ============================================================
   Certificate
   ============================================================ */
.certificate {
  margin-top: 28px;
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 3px solid var(--orange);
  padding-bottom: 22px;
  margin-bottom: 22px;
}

.certificate-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  width: clamp(120px, 16vw, 176px);
  aspect-ratio: 433 / 207;
}

.certificate-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

/* ============================================================
   Misc components
   ============================================================ */
.field {
  border-bottom: 1px solid rgba(18, 18, 17, 0.08);
  padding: 10px 0;
}

.field span {
  display: block;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field strong {
  display: block;
  margin-top: 4px;
}

.notice {
  border-left: 4px solid var(--orange);
  background: rgba(233, 72, 26, 0.05);
  padding: 16px 18px;
  color: var(--soft);
  line-height: 1.55;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.login-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.55fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 170px);
  max-width: 1120px;
  margin: 0 auto;
}

.login-panel {
  display: grid;
  gap: 18px;
  background: var(--white);
}

.login-panel h3,
.login-panel p {
  margin-bottom: 0;
}

.login-panel label {
  gap: 10px;
}

.login-panel .button {
  justify-self: start;
  margin-top: 2px;
}

.demo-account {
  border-radius: var(--radius-sm);
  background: rgba(18, 18, 17, 0.03);
  padding: 14px 16px;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Terms ── */
.terms-hero {
  max-width: 980px;
}

.terms-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.terms-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid rgba(233, 72, 26, 0.2);
  border-radius: 4px;
  background: rgba(233, 72, 26, 0.05);
  color: var(--orange);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.terms-document {
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  padding: clamp(24px, 4vw, 46px);
}

.terms-block {
  padding: 22px 0;
  border-bottom: 1px solid rgba(18, 18, 17, 0.08);
}

.terms-block:first-child {
  padding-top: 0;
}

.terms-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.terms-block h2 {
  margin-bottom: 10px;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.24;
}

.terms-block p,
.terms-list {
  max-width: 1020px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.78;
}

.terms-block p + p {
  margin-top: 10px;
}

.terms-list {
  margin: 0;
  padding-left: 1.18em;
}

.terms-list li + li {
  margin-top: 8px;
}

.terms-table-wrap {
  width: 100%;
  margin: 18px 0 16px;
  overflow-x: auto;
  border: 1px solid rgba(200, 188, 181, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
}

.terms-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  color: var(--foreground);
  font-size: 14px;
}

.terms-table th,
.terms-table td {
  border-bottom: 1px solid rgba(18, 18, 17, 0.07);
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
}

.terms-table th {
  background: rgba(233, 72, 26, 0.04);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
}

.terms-table tr:last-child td {
  border-bottom: 0;
}

.terms-note {
  margin-top: 26px;
  border-left: 4px solid var(--orange);
  background: rgba(233, 72, 26, 0.05);
  padding: 18px 20px;
  color: var(--soft);
  line-height: 1.7;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.terms-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--foreground);
}

.terms-note p {
  margin-bottom: 0;
}

.terms-table-note {
  margin: 16px 0 14px;
}

/* ── Tags & pills ── */
.code-pill-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.code-pill-list span,
.tag-list span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(200, 188, 181, 0.35);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.6);
  padding: 0 9px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.upload-box {
  border: 1px dashed rgba(233, 72, 26, 0.4);
  border-radius: var(--radius);
  background: rgba(233, 72, 26, 0.03);
  padding: 18px;
}

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

/* ── Combobox for warranty code search ── */
.code-combobox {
  position: relative;
}

.code-combobox input {
  width: 100%;
}

.code-combobox-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(200, 188, 181, 0.4);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
}

.code-combobox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(18, 18, 17, 0.06);
  cursor: pointer;
  font-size: 13px;
  transition: background 0.12s ease;
}

.code-combobox-item:last-child {
  border-bottom: 0;
}

.code-combobox-item:hover,
.code-combobox-item.is-active {
  background: rgba(233, 72, 26, 0.08);
}

.code-combobox-item strong {
  font-weight: 800;
  color: var(--foreground);
}

.code-combobox-item span {
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.code-combobox-item.is-empty {
  color: var(--soft);
  cursor: default;
  justify-content: center;
}

.code-combobox-item.is-empty:hover {
  background: transparent;
}

#dealer-code-count {
  display: block;
  margin-top: 4px;
}

/* ── Allocation tables: compact rows ── */
.allocation-section .table-wrap {
  margin-top: 10px;
}

.allocation-table table {
  font-size: 12px;
}

.allocation-table th,
.allocation-table td {
  padding: 7px 10px;
  vertical-align: middle;
}

.allocation-table td.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.allocation-table td .small {
  display: block;
  color: var(--soft);
  font-size: 11px;
  margin-top: 1px;
}

.allocation-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(24, 132, 82, 0.2);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  color: var(--green);
  font-weight: 800;
}

/* ── Footer ── */
.portal-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 22px clamp(16px, 5vw, 56px);
  color: var(--soft);
  font-size: 12px;
}

.portal-footer a {
  color: var(--orange);
  font-weight: 800;
}

.hidden {
  display: none !important;
}

/* ============================================================
   Media Queries
   ============================================================ */
@media print {
  .portal-header,
  .portal-footer,
  .hero-actions,
  .toolbar,
  .role-tabs,
  .subnav,
  .form-actions,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff;
  }

  .page {
    padding: 0;
  }

  .certificate {
    box-shadow: none;
    border: 0;
  }
}

@media (max-width: 980px) {
  .portal-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .workspace-page {
    grid-template-columns: 1fr;
  }

  .workspace-sidebar {
    position: static;
    min-height: auto;
    padding: 16px;
  }

  .workspace-brand {
    padding-bottom: 14px;
  }

  .workspace-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .workspace-nav a {
    flex: 0 0 auto;
  }

  .workspace-sidebar-footer {
    display: flex;
    margin-top: 12px;
    padding-top: 12px;
  }

  .workspace-main {
    padding: 24px 18px 54px;
  }

  .workspace-topbar {
    display: grid;
  }

  .workspace-actions {
    justify-content: flex-start;
  }

  .portal-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero,
  .login-wrap,
  .admin-grid,
  .two-column,
  .workflow-panel .two-column {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(28px, 5vw, 36px);
    word-break: normal;
  }

  h2 {
    font-size: clamp(22px, 4vw, 32px);
    word-break: normal;
  }

  html[lang="zh"] .hero-copy h1,
  html[lang="zh"] .system-card h2,
  html[lang="zh"] .workflow-panel h2,
  html[lang="zh"] .page-inner > section:first-child h1,
  html[lang="zh"] .panel > h2 {
    white-space: normal;
  }

  .home-grid,
  .feature-grid,
  .metric-grid,
  .three-column,
  .reward-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .redemption-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .workspace-main {
    padding: 20px 14px 44px;
  }

  .workspace-topbar h1 {
    font-size: clamp(20px, 5vw, 24px);
  }

  .workspace-nav a {
    min-height: 38px;
    font-size: 12px;
  }

  .portal-brand {
    min-width: 0;
  }

  .portal-brand-logo {
    width: 68px;
  }

  .portal-brand-copy {
    display: none;
  }

  .portal-nav a,
  .role-tabs a,
  .subnav a {
    min-height: 32px;
    padding: 0 9px;
    font-size: 11px;
  }

  .page {
    padding-inline: 14px;
  }

  .home-grid,
  .feature-grid,
  .metric-grid,
  .three-column,
  .reward-grid,
  .form-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .metric-card,
  .data-card,
  .result-card,
  .login-panel {
    padding: 16px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(24px, 6vw, 30px);
  }

  h2 {
    font-size: clamp(20px, 5vw, 26px);
  }

  .portal-footer,
  .certificate-header {
    flex-direction: column;
  }

  .certificate-logo {
    width: 126px;
  }

  .terms-document {
    padding: 20px;
  }

  .login-panel .button {
    justify-self: stretch;
  }
}

/* ── Review photos & lightbox ── */
.review-photos {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.photo-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
  margin: 0 0 8px;
}
.thumb-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.review-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.review-thumb:hover {
  transform: scale(1.03);
  border-color: var(--orange);
  box-shadow: 0 6px 18px rgba(233, 72, 26, 0.22);
}
.photo-name {
  font-size: 12px;
  color: var(--soft);
  background: rgba(18, 18, 17, 0.05);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 9, 8, 0.86);
  cursor: zoom-out;
  padding: 24px;
}
.photo-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ── Warranty code filter bar & detail modal ── */
.panel-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.panel-head-row > div {
  flex: 1 1 320px;
}
.panel-head-row .button {
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .panel-head-row {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-head-row .button {
    align-self: stretch;
  }
}
.wc-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  margin: 14px 0 16px;
  padding: 14px;
  background: rgba(18, 18, 17, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.wc-search-label,
.wc-status-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.wc-search-label {
  flex: 1 1 240px;
}
.wc-status-label {
  flex: 0 1 180px;
}
.wc-search-label input,
.wc-status-label select {
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.wc-count {
  margin-left: auto;
  color: var(--soft);
  align-self: center;
}
.wc-code-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--orange);
  text-align: left;
  font: inherit;
}
.wc-code-btn:hover {
  text-decoration: underline;
}
.wc-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  background: rgba(10, 9, 8, 0.62);
  padding: 32px 18px;
}
.wc-detail-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 26px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.wc-detail-card .lightbox-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(18, 18, 17, 0.06);
  color: var(--soft);
}
.wc-detail-card .lightbox-close:hover {
  background: rgba(18, 18, 17, 0.12);
}
.wc-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.wc-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 22px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wc-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wc-field-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--soft);
}
.wc-field-value {
  font-size: 14px;
  color: #1a1a18;
  word-break: break-word;
}
.wc-section-title {
  margin: 20px 0 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.wc-record {
  background: rgba(18, 18, 17, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.wc-record-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.wc-record p {
  margin: 2px 0;
  font-size: 13px;
  color: var(--soft);
}
.wc-record .thumb-grid {
  margin-top: 8px;
}
.wc-record .review-thumb {
  width: 86px;
  height: 64px;
}
@media (max-width: 560px) {
  .wc-detail-grid {
    grid-template-columns: 1fr;
  }
  .wc-count {
    margin-left: 0;
  }
}

/* ===== Hero Section (Homepage) — H&H Orange ===== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #E9481A;
  background-image:
    radial-gradient(ellipse 55% 45% at 25% 30%, rgba(255, 106, 50, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 80% 60%, rgba(122, 33, 14, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
    linear-gradient(120deg, #7A210E 0%, #B83212 35%, #E9481A 68%, #FF6530 100%);
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 4px
    );
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 800px;
  width: 100%;
}
.hero-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 20px;
}
.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 48px;
  line-height: 1.35;
}
.hero-main-stat {
  margin-bottom: 16px;
}
.hero-number-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
}
.hero-number {
  font-size: 72px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -2px;
}
.hero-number-unit {
  font-size: 22px;
  font-weight: 600;
  color: #FFE5D8;
}
.hero-number-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
  margin: 14px 0 0;
  letter-spacing: 1px;
}
.hero-data-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 40px;
  line-height: 1.6;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
/* Subtle divider between main stat and sub-stats */
.hero-sub-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.20);
}
.hero-sub-stat {
  text-align: center;
  min-width: 90px;
}
.hero-sub-number {
  font-size: 30px;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.hero-sub-unit {
  font-size: 14px;
  font-weight: 500;
  color: #FFE5D8;
  margin-left: 4px;
}
.hero-sub-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  margin: 8px 0 0;
  white-space: nowrap;
}
/* Vertical separators between sub-stats (desktop) */
@media (min-width: 641px) {
  .hero-sub-stat + .hero-sub-stat {
    padding-left: 56px;
    border-left: 1px solid rgba(255, 255, 255, 0.20);
  }
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-actions .button {
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
/* Primary: white bg + orange text */
.hero-actions .button-primary {
  background: #FFFFFF;
  color: #E9481A;
  border: 1px solid #FFFFFF;
}
.hero-actions .button-primary:hover {
  background: #FFF8F4;
  transform: translateY(-1px);
}
/* Secondary: semi-transparent + white text */
.hero-actions .button-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.65);
}
.hero-actions .button-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

/* ===== Three-Step Guide ===== */
.hero-steps {
  padding: 56px 0 40px;
  text-align: center;
}
.hero-steps-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 40px;
}
.hero-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.hero-step {
  text-align: center;
  padding: 0 12px;
}
.hero-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero-step h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--foreground);
  margin: 0 0 8px;
}
.hero-step p {
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
  margin: 0;
}

/* ===== Entry Cards ===== */
.hero-entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding-bottom: 56px;
}
.hero-entry-card {
  display: block;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.hero-entry-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(233, 72, 26, 0.08);
}
.hero-entry-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 8px;
}
.hero-entry-card p {
  font-size: 14px;
  color: var(--soft);
  margin: 0;
  line-height: 1.5;
}
.hero-entry-arrow {
  position: absolute;
  right: 28px;
  top: 32px;
  font-size: 20px;
  color: var(--orange);
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-entry-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .hero-section {
    min-height: 60vh;
  }
  .hero-content {
    padding: 56px 16px 40px;
  }
  .hero-title {
    font-size: 24px;
    margin-bottom: 32px;
  }
  .hero-number {
    font-size: 48px;
  }
  .hero-number-unit {
    font-size: 18px;
  }
  .hero-sub-stats {
    gap: 28px;
  }
  .hero-sub-number {
    font-size: 24px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .button {
    text-align: center;
  }
  .hero-steps-title {
    font-size: 20px;
  }
}
