.dealer-page { gap: 16px; }
.dealer-identity { padding: 18px 16px 20px; border: 1px solid #e2e8f0; box-shadow: 0 4px 12px rgba(15, 76, 129, 0.04); border-radius: 18px; background: #fff; }
.dealer-identity-heading { display: flex; align-items: start; justify-content: space-between; gap: 8px; margin: 2px 4px 18px; }
.dealer-identity h1 { margin: 0; color: #0f4c81; font-size: 17.5px; font-weight: 800; text-transform: uppercase; overflow-wrap: anywhere; letter-spacing: -0.2px; }
.dealer-identity p { margin: 6px 0 0; color: #64748b; font-size: 11.5px; font-weight: 500; }
.dealer-status { flex: none; border-radius: 999px; padding: 4px 12px; background: #e0edff; color: #0d47a1; font-size: 9.5px; font-weight: 700; letter-spacing: 0.3px; }
.dealer-quota-card { display: block; padding: 22px 14px 18px; border-radius: 18px; background: #0d3c6c; color: #fff; box-shadow: 0 8px 22px rgba(13, 60, 108, 0.25); text-decoration: none; }
.dealer-quota-home-card { padding: 22px 18px 18px; background: linear-gradient(135deg, #0d3c6c 0%, #0a2d52 100%); box-shadow: 0 8px 22px rgba(13, 60, 108, 0.25); }
.dealer-quota-home-body { text-align: center; }
.dealer-quota-sub-label { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; color: #93c5fd; text-transform: uppercase; }
.dealer-quota-main-val { display: block; margin: 8px 0 4px; color: #ffc42e; font-size: 38px; font-weight: 800; line-height: 1.1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.dealer-quota-main-val small { font-size: 15px; font-weight: 600; color: #e2e8f0; margin-left: 4px; }
.dealer-quota-equiv { margin: 6px 0 0; color: #cbd5e1; font-size: 13px; font-weight: 600; }
.dealer-quota-home-footer { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 12px; font-weight: 600; color: #ffffff; opacity: 0.95; }
.dealer-quota-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; text-align: center; }
.dealer-quota-stats strong { display: block; color: #ffc42e; font-size: 26px; font-weight: 800; overflow-wrap: anywhere; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.dealer-quota-stats span { display: block; margin-top: 4px; color: #cbd5e1; font-size: 10px; font-weight: 500; }
.dealer-quota-caption { display: block; margin-top: 20px; text-align: center; font-size: 11px; font-weight: 600; color: #ffffff; opacity: 0.95; }
.dealer-scan-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border-radius: 14px; background: #0d3c6c; color: #ffffff; font-size: 14.5px; font-weight: 800; box-shadow: 0 4px 14px rgba(13, 60, 108, 0.28); text-transform: uppercase; text-decoration: none; transition: background 0.15s ease; }
.dealer-scan-cta:hover { background: #0a2d52; }
.scan-hash-icon { display: inline-block; font-size: 22px; line-height: 1; margin-right: 6px; vertical-align: -3px; }
.dealer-section-title { margin: 4px 0 14px; color: #0f172a; font-size: 16px; line-height: 1.5; font-weight: 700; }
.dealer-section-title small { display: block; color: #64748b; font-size: 11px; font-weight: 400; }
.dealer-quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.dealer-quick-link { display: flex; flex-direction: column; gap: 10px; justify-content: center; padding: 18px 20px; min-height: 96px; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 2px 8px rgba(15, 76, 129, 0.03); font-size: 13px; font-weight: 700; color: #0f172a; text-decoration: none; background: #fff; }
.dealer-quick-link i { color: #0f4c81; font-size: 24px; }
.dealer-list { display: grid; gap: 12px; }
.dealer-history-row { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: none; }
.dealer-history-row strong { display: block; font-size: 12px; color: #0f4c81; overflow-wrap: anywhere; }
.dealer-history-row small { display: block; margin-top: 4px; font-size: 10px; color: #64748b; overflow-wrap: anywhere; }
.dealer-latest-credit { padding: 16px 18px; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 2px 8px rgba(15, 76, 129, 0.03); background: #fff; }
.dealer-latest-credit > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dealer-latest-credit strong { font-size: 14px; color: #0f4c81; font-weight: 800; }
.dealer-latest-credit p { margin: 8px 0 4px; font-size: 12px; color: #334155; font-weight: 500; }
.dealer-latest-credit small { font-size: 10px; color: #64748b; }
.dealer-delta { display: grid; place-items: center; min-width: 50px; padding: 10px 5px; border-radius: 10px; background: #e0edff; color: #0d47a1; font-size: 13px; font-weight: 700; }
.dealer-delta.negative { color: #dc2626; background: #fee2e2; }
.dealer-quota-detail > span { font-size: 10px; }
.dealer-balance { display: block; margin: 12px 0 24px; color: #ffcf3b; font-size: 36px; }
.dealer-balance small { font-size: 13px; color: #fff; }
.dealer-detail-row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; font-size: 12px; }
.dealer-recipient { padding: 18px; border: 1px solid #e8ebe7; border-radius: 16px; box-shadow: none; }
.dealer-recipient small { display: block; color: #879188; font-size: 10px; margin-bottom: 6px; }
.dealer-recipient strong { color: #126d38; font-size: 14px; overflow-wrap: anywhere; }
.dealer-transfer-balance { display: flex; justify-content: space-between; gap: 10px; padding: 14px; border: 1px solid #e8ebe7; font-size: 12px; box-shadow: none; }
.dealer-filter-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.dealer-filter-tabs button { min-height: 44px; padding: 8px 12px; border: none; border-radius: 999px; background: #e5f2e9; color: #076837; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.dealer-filter-tabs .active { background: #076837; color: #fff; }
.dealer-farmer-row { display: flex; align-items: center; gap: 12px; padding: 16px 14px; border: 1px solid #eef1ed; border-radius: 18px; box-shadow: none; background: #fff; text-decoration: none; color: inherit; }
.dealer-farmer-row > div { min-width: 0; }
.dealer-farmer-row strong { font-size: 14px; font-weight: 800; color: #19362a; overflow-wrap: anywhere; }
.dealer-farmer-row small, .dealer-farmer-heading small { display: block; color: #7a8780; font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; word-break: break-word; }
.dealer-farmer-points { margin-left: auto; flex: none; color: #076837; font-size: 14px; font-weight: 800; }
.dealer-avatar { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: #e5f2e9; color: #076837; font-weight: 800; font-size: 16px; }
.dealer-avatar-gold { background: #fff2cb; color: #163622; border-radius: 18px; }
.dealer-farmer-heading { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.dealer-farmer-heading h1 { margin: 0; }
.dealer-logout { color: #c0392b; width: 100%; }
.dealer-menu-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; background: #e5f2e9; color: #076837; font-size: 18px; }
.dealer-menu-icon-red { background: #fdeeea; color: #c0392b; }
.dealer-chevron-red { color: #c0392b !important; }
.dealer-row-chevron { margin-left: auto; color: #076837; font-size: 14px; }
.dealer-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); }
.dealer-modal { width: min(100%,340px); padding: 32px 24px 24px; border-radius: 28px; text-align: center; background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,0.25); }
.dealer-modal .dealer-avatar-red { width: 76px; height: 76px; border-radius: 50%; background: #fdeeea; color: #c0392b; display: grid; place-items: center; font-size: 32px; margin: 0 auto 20px; }
.dealer-modal h2 { font-size: 20px; font-weight: 800; color: #19362a; margin-bottom: 8px; }
.dealer-modal p { font-size: 13px; line-height: 1.5; color: #7a8780; margin-bottom: 24px; }
.point-action-text { background: transparent; border: none; color: #076837; font-size: 14px; font-weight: 700; width: 100%; padding: 10px; cursor: pointer; text-align: center; border-radius: 12px; margin-top: 10px; }
.dealer-page-scan {
  margin: -16px -18px -96px;
  min-height: calc(100dvh - 130px);
  background: #07150d;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.dealer-camera-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 16px 20px 32px;
  box-sizing: border-box;
}

.dealer-camera-instruction {
  margin: 4px 0 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  line-height: 1.5;
}

/* Scanner zone with 4 golden-yellow corner markers */
.dealer-scanner-zone {
  position: relative;
  width: min(280px, 78vw);
  height: min(370px, 45vh);
  margin: 8px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.scanner-corner {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
}

.scanner-corner.corner-tl {
  top: 0;
  left: 0;
  border-top: 4px solid #f6bc2f;
  border-left: 4px solid #f6bc2f;
  border-top-left-radius: 4px;
}

.scanner-corner.corner-tr {
  top: 0;
  right: 0;
  border-top: 4px solid #f6bc2f;
  border-right: 4px solid #f6bc2f;
  border-top-right-radius: 4px;
}

.scanner-corner.corner-bl {
  bottom: 0;
  left: 0;
  border-bottom: 4px solid #f6bc2f;
  border-left: 4px solid #f6bc2f;
  border-bottom-left-radius: 4px;
}

.scanner-corner.corner-br {
  bottom: 0;
  right: 0;
  border-bottom: 4px solid #f6bc2f;
  border-right: 4px solid #f6bc2f;
  border-bottom-right-radius: 4px;
}

/* Subtle camera viewfinder rectangle inside corners */
.dealer-scanner-viewfinder {
  position: relative;
  width: min(218px, 62vw);
  height: min(218px, 62vw);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: transparent;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dealer-scanner-viewfinder video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
}

.dealer-scanner-note {
  margin: 4px 0 24px;
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.5;
}

.dealer-camera-actions {
  width: 100%;
  display: flex;
  justify-content: center;
}

.dealer-camera-actions .btn-stop-camera {
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}

.btn-dealer-code-input {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  color: #087838;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.1s, background-color 0.15s;
}

.btn-dealer-code-input:hover {
  background: #f8fafc;
  color: #06622d;
}

.btn-dealer-code-input:active {
  transform: scale(0.99);
}

/* ---- Dealer app (design "App Đại Lý", 04/10/2026): sign-in, registration, transfers waiting for the farmer ---- */
.dealer-auth-main { display: grid; align-content: start; gap: 14px; padding-bottom: 32px; }
.dealer-login-logo { display: block; width: 74px; margin: 0 auto 10px; border-radius: 12px; }
.dealer-login-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -4px 0 18px; font-size: 12px; }
.dealer-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.5; color: #435348; }
.dealer-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: #087838; }
.dealer-check-box { padding: 12px; border: 1px solid #e3ebe6; border-radius: 12px; background: #fff; }
.dealer-link { background: none; border: 0; padding: 0; color: #087838; font-size: 12px; font-weight: 700; text-decoration: none; }
.dealer-link-center { display: block; margin: 0 auto; }
.dealer-steps { display: flex; justify-content: center; align-items: center; gap: 0; margin: 4px 0; padding: 0; list-style: none; }
.dealer-steps li { display: flex; align-items: center; }
.dealer-steps li + li::before { content: ""; width: 44px; height: 2px; background: #cfe0d5; }
.dealer-steps li.done + li::before, .dealer-steps li.current::before { background: #087838; }
.dealer-steps span { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid #cfe0d5; border-radius: 50%; background: #fff; color: #8a978f; font-size: 12px; font-weight: 700; }
.dealer-steps .done span, .dealer-steps .current span { border-color: #087838; background: #087838; color: #fff; }
.dealer-form-card { display: grid; align-content: start; gap: 12px; padding: 22px 18px; border: 1px solid #e8ebe7; border-radius: 18px; box-shadow: none; }
.dealer-form-title { margin: 0; color: #19362a; font-size: 22px; font-weight: 800; line-height: 1.3; }
.dealer-form-lead { margin: -4px 0 4px; color: #6f7d74; font-size: 12px; line-height: 1.6; }
/* Frame 03: heading on the page, fields/hotline in one card, actions beneath it. */
.dealer-verification-screen .figma-mobile-frame,
.dealer-verification-screen .figma-app-main-content { background: #fff; }
.dealer-verification-screen .dealer-auth-main { gap: 22px; padding: 22px 24px 32px; }
.dealer-verification-screen .dealer-steps { margin: 0; }
.dealer-verification { display: grid; gap: 18px; min-width: 0; }
.dealer-verification-heading { display: grid; gap: 12px; }
.dealer-verification-heading .dealer-form-lead { margin: 0; }
.dealer-verification-form { gap: 32px; }
.dealer-verification-card { gap: 18px; padding: 24px 16px 32px; }
.dealer-verification-field { display: grid; gap: 8px; min-width: 0; }
.dealer-verification-card .dealer-note { margin-top: 10px; padding: 16px 14px; background: #fff4ce; font-weight: 600; }
.dealer-verification-actions { display: grid; gap: 12px; }
.dealer-verification-actions .point-action { margin: 0; }
@media (max-width: 359px) {
  .dealer-verification-screen .dealer-auth-main { padding-inline: 18px; }
}
.dealer-hint { margin: 0; color: #7b8780; font-size: 11px; line-height: 1.6; }
.dealer-label { font-size: 12px; font-weight: 700; color: #19362a; }
.dealer-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff7dc; color: #4a4a2c; font-size: 11px; line-height: 1.6; }
.dealer-note a { color: #087838; font-weight: 700; }
.dealer-note ul { margin: 6px 0 0; padding-left: 18px; }
.dealer-note-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.dealer-note-row span { grid-column: 1 / -1; }
.dealer-new-code { background: #e5f2e9; color: #19362a; font-size: 12px; }
.dealer-new-code strong { color: #087838; font-size: 14px; }
.dealer-apply-box { display: grid; gap: 6px; padding: 14px; border: 1px dashed #9cc9ac; border-radius: 14px; background: #f5faf7; }
.dealer-apply-box strong { color: #19362a; font-size: 13px; }
.dealer-apply-box small { color: #6f7d74; font-size: 11px; line-height: 1.5; }
.dealer-apply-box .point-action { margin-top: 4px; }
.dealer-warning { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fff3d6; color: #6b4e00; font-size: 11px; font-weight: 700; line-height: 1.5; text-align: center; }
.dealer-readonly-list label { margin-top: 2px; }
.dealer-readonly { padding: 12px 14px; border-radius: 10px; background: #edf3ef; color: #4c5d53; font-size: 13px; }
.dealer-manager { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #eef5f0; font-size: 11px; }
.dealer-manager small { display: block; color: #7b8780; }
.dealer-manager strong { color: #087838; font-size: 12px; text-align: right; }
.dealer-upload { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 1px solid #e3ebe6; border-radius: 14px; }
.dealer-upload > div { flex: 1; min-width: 0; }
.dealer-upload strong { display: block; font-size: 12px; color: #19362a; }
.dealer-upload small { display: block; margin-top: 3px; color: #7b8780; font-size: 10px; overflow-wrap: anywhere; }
.dealer-upload-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: #087838; color: #fff; font-size: 18px; }
.dealer-upload.uploaded .dealer-upload-icon { background: #e5f2e9; color: #087838; }
.dealer-upload-btn { flex: none; padding: 6px 12px; border: 1px solid #087838; border-radius: 999px; color: #087838; font-size: 11px; font-weight: 700; cursor: pointer; }
.dealer-kv-box { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid #e3ebe6; border-radius: 14px; background: #fff; text-align: left; }
.dealer-kv-box > small { color: #087838; font-size: 10px; font-weight: 800; margin-bottom: 4px; }
.dealer-kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 12px; }
.dealer-kv + .dealer-kv { border-top: 1px solid #f0f3f1; }
.dealer-kv span { color: #7b8780; }
.dealer-kv strong { color: #19362a; text-align: right; overflow-wrap: anywhere; }
.dealer-ok { color: #087838 !important; }
.dealer-big { color: #087838 !important; font-size: 18px; }
.dealer-countdown { color: #087838 !important; font-size: 22px; font-variant-numeric: tabular-nums; }
.dealer-badge-wait { padding: 3px 8px; border-radius: 999px; background: #fff1c2; color: #8a6200 !important; font-size: 10px; }
.dealer-result { display: grid; align-content: start; gap: 12px; justify-items: center; padding: 26px 18px; border: 1px solid #e8ebe7; border-radius: 18px; box-shadow: none; text-align: center; }
.dealer-result > * { width: 100%; }
.dealer-result h1 { margin: 0; color: #19362a; font-size: 22px; font-weight: 800; }
.dealer-result > p { margin: 0; color: #6f7d74; font-size: 12px; line-height: 1.6; }
.dealer-result .dealer-avatar, .dealer-result-icon { width: 64px; height: 64px; margin: 0 auto; }
.dealer-result-icon { display: grid; place-items: center; border-radius: 50%; background: #e5f2e9; color: #087838; font-size: 30px; }
.dealer-result-icon.wait { background: #fff1c2; color: #8a6200; }
.dealer-result-icon.fail { background: #fdeeea; color: #b6452f; }
.dealer-eyebrow { color: #087838; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.dealer-result-points { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: #003e22; color: #fff; }
.dealer-result-points strong { color: #ffcf3b; font-size: 34px; }
.dealer-result-points span, .dealer-result-points small { font-size: 11px; color: #c6ded1; }
.dealer-result-points.muted { background: #edf3ef; color: #19362a; }
.dealer-result-points.muted strong { color: #19362a; }
.dealer-result-points.muted span, .dealer-result-points.muted small { color: #6f7d74; }
.dealer-avatar-lg { width: 64px; height: 64px; font-size: 20px; }
.dealer-avatar-red { background: #fdeeea; color: #b6452f; }
.dealer-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 14px; border: 1px solid #e3ebe6; border-radius: 16px; box-shadow: none; background: #fff; text-align: left; color: inherit; text-decoration: none; }
.dealer-choice:first-of-type { border-color: #087838; }
.dealer-choice > div { flex: 1; }
.dealer-choice strong { display: block; font-size: 13px; color: #19362a; }
.dealer-choice small { display: block; margin-top: 3px; color: #7b8780; font-size: 11px; line-height: 1.5; }
.dealer-choice-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e5f2e9; color: #087838; font-size: 18px; }
.dealer-choice-red { background: #fdeeea; color: #b6452f; }
.dealer-hotline-card { display: grid; gap: 2px; padding: 16px; border-radius: 14px; background: #fff7dc; }
.dealer-hotline-card small { color: #8a6200; font-size: 10px; font-weight: 700; }
.dealer-hotline-card strong { color: #19362a; font-size: 22px; }
.dealer-otp-card .figma-otp-input { letter-spacing: .6em; text-align: center; font-size: 22px; }
.btn-figma-dealer { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; padding: 12px; border: 1.5px solid #fcd34d; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff; font-size: 14px; font-weight: 700; }
.dealer-row-chevron { margin-left: auto; color: #9aa59e; }
.dealer-history-row { color: inherit; text-decoration: none; }
.dealer-pending-banner, .farmer-pending-banner, .member-qr-link { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #f5d77a; border-radius: 16px; background: #fffaf0; box-shadow: none; color: inherit; text-decoration: none; }
.dealer-pending-banner > div, .farmer-pending-banner > div, .member-qr-link > div { flex: 1; min-width: 0; }
.dealer-pending-banner strong, .farmer-pending-banner strong, .member-qr-link strong { display: block; font-size: 13px; color: #19362a; }
.dealer-pending-banner small, .farmer-pending-banner small, .member-qr-link small { display: block; margin-top: 2px; font-size: 11px; color: #7b6a2f; }
.dealer-pending-banner > i:first-child, .farmer-pending-banner > i:first-child { color: #c58a00; font-size: 22px; }
.member-qr-link { border-color: #cfe0d5; background: #fff; margin: 12px 0 0; }
.member-qr-link > i:first-child { color: #087838; font-size: 24px; }
.member-qr-link small { color: #7b8780; }
.farmer-pending-banner { margin: 12px 0 0; }
.dealer-credit-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #e8ebe7; border-radius: 16px; box-shadow: none; }
.dealer-credit-row strong { display: block; font-size: 12px; color: #19362a; }
.dealer-credit-row small { display: block; margin-top: 3px; font-size: 10px; color: #879188; }
.dealer-credit-row > span { color: #087838; font-size: 16px; font-weight: 800; white-space: nowrap; }
.dealer-credit-row > span.negative { color: #b65b31; }
.dealer-farmer-confirm { display: grid; gap: 12px; justify-items: center; padding: 24px 18px; border: 1px solid #e8ebe7; border-radius: 18px; box-shadow: none; text-align: center; }
.dealer-farmer-confirm > * { width: 100%; }
.dealer-farmer-confirm > .dealer-avatar, .dealer-result > .dealer-avatar, .dealer-result > .dealer-result-icon { width: 64px; }
.dealer-farmer-confirm h1 { margin: 0; font-size: 20px; font-weight: 800; color: #19362a; }
.dealer-farmer-confirm > p { margin: 0; color: #7b8780; font-size: 11px; }
.dealer-linked { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #eef5f0; text-align: left; }
.dealer-linked small { color: #7b8780; font-size: 10px; }
.dealer-linked strong { color: #19362a; font-size: 13px; }
.dealer-linked b { color: #087838; }
.dealer-linked.warn { background: #fff7dc; }
.dealer-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.dealer-tier { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 18px 10px; border: 1px solid #e3ebe6; border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: all .15s ease; }
.dealer-tier strong { color: #19362a; font-size: 16px; font-weight: 800; }
.dealer-tier span { color: #076837; font-size: 13px; font-weight: 700; }
.dealer-tier.active { border: 2px solid #f5a623; background: #fff8e7; }

/* Transfer page: direct points selection matching new design */
.dealer-transfer-panel { padding-top: 14px; }
.dealer-transfer-title { margin: 0 0 4px; font-size: 17px; font-weight: 700; color: #19362a; }
.dealer-transfer-subtitle { margin: 0 0 14px; font-size: 13px; color: #7b8780; }
.dealer-point-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.dealer-point-chip { padding: 10px 4px; border: 1px solid #d2ded7; border-radius: 12px; background: #ffffff; color: #19362a; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center; transition: all 0.15s ease; }
.dealer-point-chip:hover { border-color: #087838; }
.dealer-point-chip.active { border: 1.5px solid #087838; background: #f0fdf4; color: #087838; font-weight: 700; }
.dealer-field-label { display: block; font-size: 13px; font-weight: 600; color: #19362a; margin-bottom: 6px; }
.dealer-point-input-wrap { position: relative; display: flex; align-items: center; width: 100%; margin-bottom: 14px; }
.dealer-point-input { width: 100%; height: 48px; padding: 0 54px 0 16px; border: 1px solid #d2ded7; border-radius: 12px; font-size: 15px; font-weight: 600; color: #19362a; background: #ffffff; outline: none; box-sizing: border-box; transition: border-color 0.2s, box-shadow 0.2s; }
.dealer-point-input:focus { border-color: #087838; box-shadow: 0 0 0 3px rgba(8, 120, 56, 0.12); }
.dealer-point-unit { position: absolute; right: 16px; font-size: 13px; color: #7b8780; font-weight: 500; pointer-events: none; }
.dealer-balance-summary { background: #f3f6f4; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.dealer-balance-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.dealer-balance-summary-row span { font-size: 12px; color: #7b8780; }
.dealer-green-val { font-size: 13px; color: #087838; font-weight: 700; }
.dealer-green-val.negative { color: #dc2626; }
.dealer-ref-box { background: #fffbeb; border: 1px solid #fef08a; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.dealer-ref-title { display: block; font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 3px; }
.dealer-ref-desc { margin: 0; font-size: 11.5px; color: #92400e; line-height: 1.45; }
.dealer-check-confirm-card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e3ebe6; border-radius: 12px; background: #ffffff; margin-bottom: 16px; cursor: pointer; font-size: 12px; color: #19362a; line-height: 1.45; }
.dealer-check-confirm-card input[type="checkbox"] { width: 18px; height: 18px; accent-color: #087838; flex: none; }
.btn-dealer-confirm-submit { width: 100%; height: 48px; border-radius: 12px; font-size: 14.5px; font-weight: 700; }
.dealer-tx { display: grid; gap: 14px; padding: 20px 16px; border: 1px solid #eef1ed; border-radius: 20px; box-shadow: none; background: #fff; }
.dealer-tx-head { display: grid; gap: 4px; justify-items: center; text-align: center; }
.dealer-tx-head strong { font-size: 32px; color: #076837; font-weight: 800; }
.dealer-tx-head strong.negative { color: #c0392b; }
.dealer-tx-head small { color: #7a8780; font-size: 12px; }
.dealer-tx-status { padding: 4px 12px; border-radius: 999px; background: #e5f2e9; color: #076837; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.dealer-tx-status.status-pending { background: #fff1c2; color: #8a6200; }
.dealer-tx-status.status-rejected, .dealer-tx-status.status-cancelled, .dealer-tx-status.status-expired { background: #fdeeea; color: #b6452f; }
.dealer-search { margin-bottom: 4px; }
.dealer-title-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dealer-title-row small { color: #076837; font-size: 12px; font-weight: 700; }
.dealer-stats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dealer-notice { display: flex; gap: 14px; padding: 16px; border: 1px solid #eef1ed; border-radius: 18px; box-shadow: none; background: #fff; }
.dealer-notice strong { display: block; font-size: 14px; font-weight: 800; color: #19362a; }
.dealer-notice small { display: block; margin-top: 3px; font-size: 11px; color: #7a8780; }
.dealer-notice-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: #e5f2e9; color: #076837; font-size: 16px; }
.notice-expiring .dealer-notice-icon { background: #fff7dc; color: #8a6200; }
.notice-refund .dealer-notice-icon { background: #fdeeea; color: #b6452f; }
.dealer-program-card { display: grid; gap: 6px; padding: 22px 18px; border-radius: 20px; background: #073c24; color: #fff; }
.dealer-program-card small { color: #ffc42e; font-size: 11px; font-weight: 800; letter-spacing: 0.3px; }
.dealer-program-card h1 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.3; }
.dealer-program-card strong, .dealer-program-card span { font-size: 12px; color: #c6ded1; }
.dealer-rules { margin: 0; padding: 18px 18px 18px 36px; border: 1px solid #eef1ed; border-radius: 18px; box-shadow: none; font-size: 13px; line-height: 1.7; color: #19362a; background: #fff; }
.dealer-rules li + li { margin-top: 8px; }
.dealer-article { display: grid; gap: 10px; padding: 20px 18px; border: 1px solid #e8ebe7; border-radius: 18px; box-shadow: none; }
.dealer-article h1 { margin: 0; color: #19362a; font-size: 20px; font-weight: 800; line-height: 1.35; }
.dealer-article h2 { margin: 6px 0 0; color: #19362a; font-size: 14px; font-weight: 800; }
.dealer-article p { margin: 0; color: #4c5d53; font-size: 12px; line-height: 1.7; }
.dealer-tag { justify-self: start; padding: 3px 8px; border-radius: 999px; background: #e5f2e9; color: #087838; font-size: 9px; font-weight: 800; }
.dealer-faq-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #fff1c2; color: #8a6200; font-weight: 800; }
.dealer-info-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid #e8ebe7; border-radius: 16px; box-shadow: none; }
.dealer-info-head h1 { margin: 0; color: #096a35; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.dealer-info-head small { color: #879188; font-size: 10px; }
.dealer-info-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e8ebe7; border-radius: 14px; box-shadow: none; }
.dealer-info-row > i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: #e5f2e9; color: #087838; }
.dealer-info-row small { display: block; color: #879188; font-size: 10px; }
.dealer-info-row strong { display: block; color: #19362a; font-size: 12px; }
.dealer-account-head { padding: 16px; border: 1px solid #e8ebe7; border-radius: 16px; background: #fff; }
.dealer-row-value { margin-left: auto; color: #7b8780; font-size: 11px; font-weight: 600; }
.dealer-row-badge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: #d64545; color: #fff; font-size: 10px; text-align: center; }
.dealer-row-value + .bi-chevron-right, .dealer-row-badge + .bi-chevron-right { margin-left: 8px !important; }
.dealer-recipient { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid #e8ebe7; border-radius: 14px; background: #fff; }
.dealer-recipient-info { flex: 1; min-width: 0; }
.dealer-recipient-info small { display: block; color: #7b8780; font-size: 11px; margin-bottom: 2px; }
.dealer-recipient-info strong { display: block; color: #19362a; font-size: 13.5px; font-weight: 700; }
.dealer-recipient .dealer-link { color: #087838; font-weight: 600; font-size: 13px; text-decoration: none; border: none; background: none; cursor: pointer; padding: 4px 8px; flex: none; }
/* farmer: member QR and confirmation */
.member-qr-page { gap: 14px; }
.member-qr-card { display: grid; gap: 10px; justify-items: center; padding: 24px 18px; border-radius: 20px; background: linear-gradient(160deg, #0b5d33, #003e22); color: #fff; text-align: center; }
.member-qr-card small { color: #ffcf3b; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.member-qr-card h1 { margin: 0; font-size: 20px; font-weight: 800; color: #fff; }
.member-qr { display: grid; place-items: center; width: 248px; height: 248px; padding: 14px; border-radius: 16px; background: #fff; }
.member-qr img, .member-qr canvas { width: 220px; height: 220px; }
.member-qr-code { font-size: 20px; letter-spacing: .08em; color: #ffcf3b; }
.member-qr-card p { margin: 0; font-size: 11px; color: #c6ded1; }
.member-qr-card b { color: #fff; }
.farmer-confirm .dealer-avatar { font-size: 26px; }

/* ==========================================================================
   FRAME 12 & 13: FARMER TRANSFER CONFIRMATION & SUCCESS - FIGMA EXACT MATCH
   ========================================================================== */
.farmer-transfer-page {
  padding: 16px 16px 32px;
}
.farmer-confirm-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  margin-bottom: 20px;
}
.farmer-dealer-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}
.farmer-dealer-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #087838;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.farmer-dealer-name {
  font-size: 20px;
  font-weight: 800;
  color: #19362a;
  margin: 0 0 4px;
}
.farmer-dealer-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}
.farmer-point-highlight-box {
  width: 100%;
  background: #073820;
  border-radius: 20px;
  padding: 18px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-sizing: border-box;
}
.farmer-point-highlight-val {
  font-size: 38px;
  font-weight: 800;
  color: #fbbf24;
  line-height: 1.1;
  margin-bottom: 2px;
}
.farmer-point-highlight-unit {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 600;
  opacity: 0.95;
}
.farmer-point-dealer-name {
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 4px;
}
.farmer-point-current-balance {
  font-size: 12px;
  color: #86efac;
  font-weight: 500;
}
.farmer-transfer-details {
  width: 100%;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.farmer-transfer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 4px;
  font-size: 13.5px;
}
.farmer-transfer-row span {
  color: #64748b;
}
.farmer-transfer-row strong {
  color: #19362a;
  font-weight: 700;
}
.farmer-notice-box {
  width: 100%;
  background: #fffbeb;
  border: 1px solid #fef08a;
  border-radius: 14px;
  padding: 12px 14px;
  text-align: center;
  color: #92400e;
  font-size: 12.5px;
  font-weight: 600;
  box-sizing: border-box;
}
.farmer-success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #087838;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.farmer-success-title {
  font-size: 22px;
  font-weight: 800;
  color: #19362a;
  margin: 0 0 6px;
}
.farmer-success-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 22px;
}
.farmer-tx-meta {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  margin: 8px 0 0;
  text-align: center;
}
.farmer-transfer-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-farmer-accept {
  width: 100%;
  height: 50px;
  background: #087838;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.btn-farmer-accept:hover {
  background: #06622d;
  color: #ffffff;
}
.btn-farmer-reject,
.btn-farmer-history {
  width: 100%;
  height: 50px;
  background: #ffffff;
  color: #087838;
  border: 1.5px solid #087838;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}
.btn-farmer-reject:hover,
.btn-farmer-history:hover {
  background: #f0fdf4;
  color: #087838;
}

/* ==========================================================================
   FRAME 02: DEALER LOGIN - FIGMA EXACT MATCH
   ========================================================================== */
.dealer-login-page {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #0a355c 0%, #0f4c81 55%, #12579b 100%);
  padding: 64px 18px 40px;
  box-sizing: border-box;
  width: 100%;
}
.dealer-login-container {
  width: 100%;
  max-width: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.dealer-login-header {
  text-align: center;
  color: #ffffff;
  margin-bottom: 22px;
  width: 100%;
}
.dealer-login-logo {
  width: 108px;
  max-width: 100%;
  height: auto;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.dealer-login-title {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}
.dealer-login-subtitle {
  margin-top: 7px;
  margin-bottom: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}
.dealer-login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 24px 18px 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  box-sizing: border-box;
  height: auto;
  min-height: 0;
  color: #26332c;
}
.dealer-form-group {
  margin-bottom: 15px;
}
.dealer-form-group label,
.dealer-login-page .dealer-remember-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}
.dealer-form-group label {
  display: block;
  margin-bottom: 7px;
}
.dealer-input-box {
  width: 100%;
}
.dealer-input {
  width: 100%;
  height: 48px;
  border: 1px solid #dfe7e1;
  border-radius: 13px;
  padding: 0 16px;
  font-size: 14.5px;
  color: #0f172a;
  box-sizing: border-box;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dealer-input:focus {
  border-color: #0f4c81;
  box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.14);
}
.dealer-forgot-row {
  text-align: right;
  margin-top: 10px;
  margin-bottom: 14px;
}
.dealer-forgot-link {
  font-size: 12px;
  font-weight: 600;
  color: #0f4c81;
  text-decoration: none;
}
.dealer-forgot-link:hover {
  text-decoration: underline;
}
.dealer-remember-row {
  margin-bottom: 20px;
}
.dealer-remember-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  min-height: 44px;
}
.dealer-remember-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dealer-custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  transition: all 0.15s;
}
.dealer-remember-label input[type="checkbox"]:checked + .dealer-custom-checkbox,
.dealer-terms-label input[type="checkbox"]:checked + .dealer-custom-checkbox {
  background: #0f4c81;
  border-color: #0f4c81;
}
.dealer-remember-label input[type="checkbox"]:not(:checked) + .dealer-custom-checkbox i,
.dealer-terms-label input[type="checkbox"]:not(:checked) + .dealer-custom-checkbox i {
  display: none;
}
.dealer-remember-text {
  font-size: 12.5px;
  color: #475569;
  font-weight: 500;
}
.btn-dealer-login {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: #0f4c81;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.28);
  transition: background-color 0.2s, transform 0.1s;
}
.btn-dealer-login:hover {
  background: #0a355c;
}
.btn-dealer-login:active {
  transform: scale(0.99);
}
.dealer-register-prompt,
.dealer-activate-prompt {
  margin-top: 18px;
  text-align: center;
  font-size: 11.5px;
}
.dealer-register-lead,
.dealer-activate-lead {
  display: block;
  color: #64748b;
  margin-bottom: 6px;
}
.dealer-register-link,
.dealer-activate-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  background: none;
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f4c81;
  cursor: pointer;
}
.dealer-register-link:hover,
.dealer-activate-link:hover {
  text-decoration: underline;
}

.dealer-auth-footer {
  margin-top: 24px;
  padding: 12px 16px 24px;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.dealer-hotline-footer-link {
  color: #475569;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 44px;
  font-size: 13px;
}
.dealer-hotline-footer-link strong {
  color: #00863f;
}
.dealer-hotline-footer-link:hover {
  color: #00863f;
  text-decoration: underline;
}

/* ==========================================================================
   FRAME 05: REGISTER STEP 3 (HỒ SƠ XÁC MINH ĐẠI LÝ)
   ========================================================================== */
.dealer-steps li.step-active span {
  border-color: #087838 !important;
  background: #087838 !important;
  color: #fff !important;
}
.dealer-steps li.step-active + li.step-active::before {
  background: #087838 !important;
}
.dealer-register-doc-wrap {
  width: 100%;
}
.dealer-register-title {
  margin: 16px 0 20px;
  font-size: 24px;
  font-weight: 700;
  color: #11281e;
  text-align: left;
}
.dealer-upload-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid #e3ebe6;
  border-radius: 16px;
  background: #ffffff;
  margin-bottom: 14px;
}
.dealer-upload-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.dealer-upload-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f5ed;
  color: #0d783d;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  flex: none;
}
.dealer-upload-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #11281e;
  margin-bottom: 2px;
}
.dealer-upload-info small {
  display: block;
  font-size: 11.5px;
  color: #8a978f;
}
.dealer-upload-btn-pill {
  padding: 6px 16px;
  border: 1.5px solid #0d783d;
  border-radius: 20px;
  background: transparent;
  color: #0d783d;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: all 0.2s;
}
.dealer-upload-btn-pill:hover {
  background: #0d783d;
  color: #ffffff;
}
.dealer-register-form {
  margin-top: 14px;
}
.dealer-field-group {
  margin-bottom: 16px;
}
.dealer-field-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #11281e;
  margin-bottom: 8px;
}
.dealer-auth-input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e3ebe6;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: #11281e;
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.dealer-auth-input:focus {
  border-color: #0d783d;
  box-shadow: 0 0 0 3px rgba(13, 120, 61, 0.12);
}
.dealer-auth-input::placeholder {
  color: #1e293b;
  font-size: 16px;
  letter-spacing: 2px;
}
.dealer-terms-row {
  margin: 18px 0 24px;
}
.dealer-terms-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.dealer-terms-label .dealer-custom-checkbox {
  margin-top: 2px;
  flex: none;
}
.dealer-terms-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.dealer-terms-text {
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}
.btn-dealer-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: #087838;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.2s, transform 0.1s;
}
.btn-dealer-submit:hover {
  background: #06622d;
}
.btn-dealer-submit:active {
  transform: scale(0.99);
}

/* Figma Frame 04: Đăng ký thành công */
.figma-f04-success-screen {
  background: #074322;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.figma-f04-container {
  width: 100%;
  max-width: 412px;
  min-height: 100vh;
  background: #074322;
  display: flex;
  flex-direction: column;
}
.figma-f04-header {
  padding: 42px 20px 24px;
  text-align: center;
}
.figma-f04-header-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}
.figma-f04-card-body {
  flex: 1;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 36px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.figma-f04-icon-outer {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #e3f2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.figma-f04-icon-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0a6c38;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}
.figma-f04-icon-inner i {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}
.figma-f04-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 23px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  text-align: center;
}
.figma-f04-sub {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 28px 0;
  text-align: center;
}
.figma-f04-info-box {
  width: 100%;
  background: #eef7f0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 28px;
  box-sizing: border-box;
}
.figma-f04-info-label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: 500;
}
.figma-f04-info-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}
.figma-f04-info-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.figma-f04-info-sublabel {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}
.figma-f04-dealer-tag {
  font-size: 13px;
  font-weight: 700;
  color: #0a6c38;
}
.btn-figma-f04-submit {
  width: 100%;
  height: 50px;
  background: #087436;
  color: #ffffff !important;
  border: none;
  border-radius: 12px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 116, 54, 0.25);
  margin-bottom: 20px;
  transition: background 0.2s, transform 0.1s;
}
.btn-figma-f04-submit:hover {
  background: #065b2a;
}
.btn-figma-f04-submit:active {
  transform: scale(0.98);
}
.figma-f04-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding-bottom: 24px;
}
.figma-f04-brand {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}
.figma-f04-slogan {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 12px;
  font-style: italic;
  color: #94a3b8;
}

/* Figma Frame 06: Quên mật khẩu / Khôi phục tài khoản */
.figma-f06-screen {
  background: #074322 !important;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}
.figma-f06-container {
  width: 100%;
  max-width: 412px;
  min-height: 100vh;
  background: #074322;
  display: flex;
  flex-direction: column;
}
.figma-f06-header {
  padding: 42px 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.figma-f06-header .figma-f06-back-btn,
.figma-f06-back-btn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  color: #ffffff !important;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.figma-f06-header-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
.figma-f06-card-body {
  flex: 1;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  padding: 32px 24px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}
.figma-f06-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  text-align: left;
}
.figma-f06-sub {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 24px 0;
  text-align: left;
}
.figma-f06-notice-box {
  width: 100%;
  background: #fef8e7;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.figma-f06-notice-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 10px 0;
}
.figma-f06-notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.figma-f06-notice-list li {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 12.5px;
  color: #334155;
  line-height: 1.6;
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
}
.figma-f06-notice-list li:last-child {
  margin-bottom: 0;
}
.figma-f06-notice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #334155;
}
.figma-f06-hotline-card {
  width: 100%;
  background: #eef7f0;
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-sizing: border-box;
}
.figma-f06-hotline-info {
  display: flex;
  flex-direction: column;
}
.figma-f06-hotline-label {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #087436;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.figma-f06-hotline-num {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
}
.figma-f06-hotline-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.figma-f06-hotline-icon i {
  font-size: 28px;
  color: #087436;
}
.figma-f06-actions {
  display: flex;
  flex-direction: column;
}
.btn-figma-f06-call {
  width: 100%;
  height: 50px;
  background: #087436;
  color: #ffffff !important;
  border: none;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(8, 116, 54, 0.2);
  transition: background 0.2s, transform 0.1s;
}
.btn-figma-f06-call:hover {
  background: #065b2a;
}
.btn-figma-f06-call:active {
  transform: scale(0.98);
}
.btn-figma-f06-zalo {
  width: 100%;
  height: 50px;
  background: #ffffff;
  color: #087436 !important;
  border: 1.5px solid #087436;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.2s, transform 0.1s;
}
.btn-figma-f06-zalo:hover {
  background: #f0fdf4;
}
.btn-figma-f06-zalo:active {
  transform: scale(0.98);
}
.figma-f06-back-link {
  display: block;
  text-align: center;
  color: #087436;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.figma-f06-back-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* Figma Frame 07: Xác nhận gọi Tổng đài MAK */
.figma-f07-screen {
  background: #ffffff !important;
  min-height: 100vh;
}
.figma-f07-container {
  width: 100%;
  max-width: 412px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.figma-f07-header {
  padding: 12px 0 24px;
}
.figma-f07-back-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: #0f172a;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}
.figma-f07-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 48px;
}
.figma-f07-icon-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #e2f1e7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.figma-f07-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.figma-f07-phone-number {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #087436;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.figma-f07-sub {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13px;
  color: #64748b;
  margin: 0 0 44px 0;
}
.figma-f07-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-figma-f07-call {
  width: 100%;
  height: 52px;
  background: #087436;
  color: #ffffff !important;
  border: none;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(8, 116, 54, 0.25);
  transition: background 0.2s, transform 0.1s;
}
.btn-figma-f07-call:hover {
  background: #065b2a;
}
.btn-figma-f07-call:active {
  transform: scale(0.98);
}
.btn-figma-f07-cancel {
  width: 100%;
  height: 52px;
  background: #ffffff;
  color: #087436 !important;
  border: 1.5px solid #087436;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-figma-f07-cancel:hover {
  background: #f0fdf4;
}

/* ==========================================================================
   Figma Frame 14: Lịch sử điểm và phiếu
   ========================================================================== */
.figma-f14-page {
  margin: -16px -18px 0;
  background: #ffffff;
  min-height: calc(100vh - 64px);
  padding: 16px 0 32px;
}
.figma-f14-tabs-container {
  padding: 0 16px;
  margin-bottom: 20px;
}
.figma-f14-tabs {
  background: #ebf5ee;
  border-radius: 24px;
  padding: 4px;
  display: flex;
  gap: 4px;
}
.figma-f14-tab {
  flex: 1;
  height: 38px;
  border: none;
  border-radius: 20px;
  background: transparent;
  color: #087436;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.figma-f14-tab.active {
  background: #087436;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(8, 116, 54, 0.2);
}
.figma-f14-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px;
}
.figma-f14-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}
.figma-f14-badge {
  width: 58px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 800;
  flex: none;
}
.figma-f14-badge.positive {
  background: #e3f6ea;
  color: #087436;
}
.figma-f14-badge.negative {
  background: #fee7e7;
  color: #dc2626;
}
.figma-f14-info {
  flex: 1;
  margin-left: 14px;
  margin-right: 8px;
  min-width: 0;
}
.figma-f14-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.figma-f14-sub {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.figma-f14-chevron {
  color: #087436;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex: none;
}

/* ==========================================================================
   Figma Frame 15: Trung tâm Thông báo
   ========================================================================== */
.figma-f15-page {
  margin: -16px -18px 0;
  background: #ffffff;
  min-height: calc(100vh - 64px);
  padding: 20px 0 32px;
}
.figma-f15-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 16px;
}
.figma-f15-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s;
}
.figma-f15-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.figma-f15-icon-box.success {
  background: #e3f6ea;
  color: #087436;
}
.figma-f15-icon-box.success i {
  font-size: 22px;
}
.figma-f15-icon-box.warning {
  background: #fef3c7;
  color: #1f2937;
}
.figma-f15-icon-box.warning i {
  font-size: 24px;
  font-weight: 900;
}
.figma-f15-info {
  margin-left: 16px;
  flex: 1;
  min-width: 0;
}
.figma-f15-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 5px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.figma-f15-sub {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.figma-f15-card.is-clickable {
  cursor: pointer;
}
.figma-f15-card:focus-visible {
  outline: 2px solid #087436;
  outline-offset: 2px;
}
.figma-f15-card.is-unread {
  background: #f0fdf4;
  border-color: #86efac;
}
.figma-f15-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  margin-left: 6px;
  flex: none;
}
.figma-f15-chevron {
  color: #94a3b8;
  font-size: 16px;
  margin-left: 8px;
  flex: none;
}
.figma-f15-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 4px;
}
.figma-f15-count {
  font-size: 13px;
  color: #475569;
}
.btn-mark-all-read {
  background: none;
  border: none;
  color: #087436;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.btn-mark-all-read:hover {
  text-decoration: underline;
}
.figma-f15-push-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.figma-f15-push-card.is-active {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.figma-f15-push-card.is-blocked {
  background: #fffbeb;
  border-color: #fde68a;
}
.push-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}
.push-card-icon.success {
  background: #dcfce7;
  color: #16a34a;
}
.push-card-icon.warning {
  background: #fef3c7;
  color: #d97706;
}
.push-card-icon.info {
  background: #e0e7ff;
  color: #4f46e5;
}
.push-card-icon.muted {
  background: #f1f5f9;
  color: #64748b;
}
.push-card-info {
  flex: 1;
  min-width: 0;
}
.push-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
  display: block;
}
.push-card-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}
.btn-push-action {
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  border: none;
  cursor: pointer;
  flex: none;
}
.btn-push-action.btn-push-on {
  background: #087436;
  color: #ffffff;
}
.btn-push-action.btn-push-off {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

/* ==========================================================================
   FRAME 17: ĐỔI PHIẾU BỐC THĂM (Figma Frame 17)
   ========================================================================== */
.point-wallet-badge-gold {
  background: #f6c03b !important;
  color: #713f12 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  padding: 5px 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.figma-f17-page {
  padding: 0 4px;
}
.figma-app-main-content:has(.figma-f17-page) + .mak-role-nav,
.mak-app-shell:has(.figma-f17-page) .mak-role-nav {
  display: none !important;
}
.figma-f17-page .f17-stepper-section {
  padding: 0 4px;
}
.figma-f17-page .f17-section-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 18.5px;
  font-weight: 700;
  color: #111827;
  margin: 26px 0 20px 0;
  text-align: left;
}
.figma-f17-page .f17-stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 320px;
  margin: 0 auto 28px auto;
}
.figma-f17-page .f17-btn-step {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}
.figma-f17-page .f17-btn-step:active:not(:disabled) {
  transform: scale(0.95);
}
.figma-f17-page .f17-step-icon {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  display: block;
  user-select: none;
}
.figma-f17-page .f17-btn-minus {
  background: #e3f6ea;
  color: #087436;
}
.figma-f17-page .f17-btn-minus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.figma-f17-page .f17-stepper-val {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.5px;
  min-width: 60px;
  text-align: center;
}
.figma-f17-page .f17-btn-plus {
  background: #087436;
  color: #ffffff;
}
.figma-f17-page .f17-btn-plus:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.figma-f17-page .f17-details-box {
  margin-top: 10px;
  margin-bottom: 24px;
}
.figma-f17-page .f17-details-title {
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 14px;
}
.figma-f17-page .f17-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
}
.figma-f17-page .f17-detail-row span {
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}
.figma-f17-page .f17-detail-row strong {
  color: #111827;
  font-size: 14.5px;
  font-weight: 700;
}
.figma-f17-page .text-figma-green {
  color: #087436 !important;
}
.figma-f17-page .f17-detail-divider {
  border-top: 1px solid #e2e8f0;
  margin: 12px 0 14px 0;
}
.figma-f17-page .f17-detail-final span {
  color: #111827;
  font-weight: 700;
}
.figma-f17-page .f17-btn-submit {
  width: 100%;
  height: 52px;
  background: #087436;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(8, 116, 54, 0.25);
  cursor: pointer;
  margin-top: 26px;
  margin-bottom: 16px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.figma-f17-page .f17-btn-submit:hover:not(:disabled) {
  background: #065e2b;
}
.figma-f17-page .f17-btn-submit:active:not(:disabled) {
  transform: scale(0.98);
}
.figma-f17-page .f17-btn-submit:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}
.figma-f17-page .f17-notice-card {
  background: #fef6db;
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
  font-family: 'Be Vietnam Pro', -apple-system, sans-serif;
  font-size: 12px;
  line-height: 1.6;
  color: #713f12;
  margin-bottom: 20px;
}

/* ==========================================================================
   FRAME 29: THỂ LỆ TÍCH ĐIỂM MÙA VÀNG (Figma Frame 29)
   ========================================================================== */
.figma-f29-page {
  padding: 0 4px 20px;
}
.figma-app-main-content:has(.figma-f29-page) + .mak-role-nav,
.mak-app-shell:has(.figma-f29-page) .mak-role-nav {
  display: none !important;
}
.figma-f29-page .f29-hero-card {
  background: #054f26;
  border-radius: 20px;
  padding: 24px 20px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 79, 38, 0.15);
}
.figma-f29-page .f29-hero-date {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}
.figma-f29-page .f29-hero-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 16px 0;
}
.figma-f29-page .f29-hero-sub {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.figma-f29-page .f29-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 18px;
  margin-top: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.figma-f29-page .f29-card-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px 0;
}
.figma-f29-page .f29-title-mt {
  margin-top: 18px;
}
.figma-f29-page .f29-list-numbered,
.figma-f29-page .f29-list-bullet {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
}
.figma-f29-page .f29-list-bullet li::before {
  content: "•";
  color: #64748b;
  font-weight: bold;
  display: inline-block;
  width: 1em;
}
.figma-f29-page .f29-btn-action {
  width: 100%;
  height: 52px;
  background: #087436;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(8, 116, 54, 0.25);
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 10px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.figma-f29-page .f29-btn-action:hover {
  background: #065e2b;
  color: #ffffff;
}
.figma-f29-page .f29-btn-action:active {
  transform: scale(0.98);
}

/* ==========================================================================
   FRAME 30: CƠ CHẾ NHẬN ĐIỂM (Figma Frame 30)
   ========================================================================== */
.figma-f30-page {
  padding: 0 4px 20px;
}
.figma-app-main-content:has(.figma-f30-page) + .mak-role-nav,
.mak-app-shell:has(.figma-f30-page) .mak-role-nav {
  display: none !important;
}
.figma-f30-page .f30-section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #111827;
  margin: 10px 0 16px;
  text-align: left;
}
.figma-f30-page .f30-mt {
  margin-top: 26px;
}
.figma-f30-page .f30-timeline-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.figma-f30-page .f30-timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.figma-f30-page .f30-step-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3f6ea;
  color: #087436;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.figma-f30-page .f30-badge-gold {
  background: #fef3c7;
  color: #b45309;
}
.figma-f30-page .f30-step-info {
  flex: 1;
  padding-top: 2px;
}
.figma-f30-page .f30-step-info strong {
  display: block;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 3px;
}
.figma-f30-page .f30-step-info p {
  margin: 0;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}
.figma-f30-page .f30-step-line {
  width: 2px;
  height: 24px;
  background: #e2e8f0;
  margin: 4px 0 4px 19px;
}
.figma-f30-page .f30-notice-card {
  background: #fef6db;
  border-radius: 18px;
  padding: 20px 18px;
}
.figma-f30-page .f30-notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  color: #1e293b;
  font-weight: 600;
  line-height: 1.6;
}
.figma-f30-page .f30-notice-list li::before {
  content: "•";
  color: #713f12;
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* ==========================================================================
   FRAME 32: ĐIỀU KHOẢN VÀ BẢO MẬT (Figma Frame 32)
   ========================================================================== */
.figma-f32-page,
.figma-f33-page,
.figma-f34-page {
  padding: 4px 4px 20px;
}
.figma-app-main-content:has(.figma-f32-page, .figma-f33-page, .figma-f34-page) + .mak-role-nav,
.mak-app-shell:has(.figma-f32-page, .figma-f33-page, .figma-f34-page) .mak-role-nav {
  display: none !important;
}
.figma-f32-page .f32-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.figma-f32-page .f32-menu-card {
  background: #ffffff;
  border: 1px solid #d8ebd9;
  border-radius: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.1s ease, border-color 0.2s ease;
}
.figma-f32-page .f32-menu-card:active {
  transform: scale(0.99);
}
.figma-f32-page .f32-card-text {
  flex: 1;
  min-width: 0;
}
.figma-f32-page .f32-card-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px 0;
}
.figma-f32-page .f32-card-sub {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}
.figma-f32-page .f32-chevron {
  color: #087436;
  font-size: 16px;
  font-weight: 700;
  margin-left: 12px;
}
.figma-f32-page .f32-section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 24px 0 16px 4px;
  text-align: left;
}
.figma-f32-page .f32-summary-card {
  background: #ffffff;
  border: 1px solid #d8ebd9;
  border-radius: 20px;
  padding: 24px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.figma-f32-page .f32-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}
.figma-f32-page .f32-summary-list li::before {
  content: "•";
  color: #64748b;
  font-weight: bold;
  display: inline-block;
  width: 1em;
}

/* ==========================================================================
   FRAME 33 & 34: CHI TIẾT ĐIỀU KHOẢN VÀ BẢO MẬT (Figma Frame 33, 34)
   ========================================================================== */
.f33-header-meta {
  padding: 6px 4px 18px 4px;
}
.f33-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
.f33-subtitle {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  color: #64748b;
  margin: 0;
}
.f33-card {
  background: #ffffff;
  border: 1px solid #d8ebd9;
  border-radius: 20px;
  padding: 22px 18px 6px 18px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.f33-section {
  margin-bottom: 20px;
}
.f33-section-title {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.35;
}
.f33-section-desc {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* Forgotten password: six single-digit OTP boxes (Figma 03) */
.otp-boxes { display: flex; justify-content: center; gap: 8px; margin: 6px 0 4px; }
.otp-box { width: 44px; height: 48px; padding: 0; border: 1.5px solid #dfe5de; border-radius: 12px; background: #fff; color: #19362a; font-size: 20px; font-weight: 700; text-align: center; }
.otp-box:focus { outline: none; border-color: #087436; box-shadow: 0 0 0 3px rgba(8, 116, 54, .15); }
.dealer-resend-wait { color: #087436; font-weight: 700; }
.dealer-farmer-other { color: #8a6200; font-weight: 600; }

/* Dealer QR & Phone Tabs, Confirm Modal and Member QR Phone (T6) */
.dealer-scan-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 12px;
}
.dealer-scan-tabs .dealer-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dealer-scan-tabs .dealer-tab.active {
  background: #ffcf3b;
  color: #1a202c;
  box-shadow: 0 2px 8px rgba(255, 207, 59, 0.25);
}
.dealer-phone-panel {
  padding: 20px 16px;
}
.dealer-confirm-modal .dealer-warning-note {
  font-size: 13px;
  margin: 12px 0;
  line-height: 1.45;
  background: rgba(220, 53, 69, 0.08);
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid #dc3545;
}
.member-qr-phone {
  font-size: 20px;
  letter-spacing: .08em;
  color: #ffcf3b;
  display: block;
  margin-top: 8px;
}
.dealer-row-link { display: block; color: inherit; text-decoration: none; }
.dealer-credit-row.dealer-row-link { display: flex; }
.dealer-row-link:active { background: #f3f7f4; }
