:root {
  --ink: #23201c;
  --ink-soft: #59544d;
  --line: rgba(98, 82, 58, 0.16);
  --accent: #7f6d56;
  --paper: #f5f1ea;
  --mist: #e8e1d5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% -10%, rgba(255, 255, 255, 0.8), transparent 40%),
    radial-gradient(circle at 14% 82%, rgba(223, 201, 172, 0.18), transparent 54%),
    linear-gradient(160deg, var(--paper), var(--mist));
}

.container {
  width: min(1240px, calc(100% - 2.4rem));
  margin: 0 auto;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 233, 0.9);
  backdrop-filter: blur(10px);
}

.nav-grid {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: #151310;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-center,
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: nowrap;
}

.nav-center a,
.main-nav a,
.member-elder-toggle-btn,
.lang-select {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  flex-shrink: 0;
}

.main-nav {
  justify-self: end;
}

.member-elder-toggle-btn {
  border: 1px solid rgba(105, 89, 65, 0.26);
  border-radius: 999px;
  background: rgba(253, 249, 242, 0.92);
  color: #1d2f43;
  padding: 0.36rem 0.78rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.member-elder-toggle-btn:hover {
  background: #12314d;
  color: #f6efe3;
  border-color: #12314d;
}

.member-elder-toggle-btn.is-active {
  background: #173755;
  color: #f7f2e9;
  border-color: #173755;
  box-shadow: 0 0 0 2px rgba(23, 55, 85, 0.16);
}

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
}

.lang-select {
  border: 1px solid rgba(105, 89, 65, 0.26);
  border-radius: 999px;
  background: rgba(253, 249, 242, 0.92);
  color: #1d2f43;
  padding: 0.36rem 1.55rem 0.36rem 0.72rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(29, 47, 67, 0.85) 50%),
    linear-gradient(135deg, rgba(29, 47, 67, 0.85) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 3px), calc(100% - 7px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.lang-select:focus {
  outline: none;
  border-color: rgba(20, 42, 65, 0.52);
  box-shadow: 0 0 0 3px rgba(20, 42, 65, 0.12);
}

.nav-center a,
.main-nav a {
  text-decoration: none;
  color: #17283a;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  font-weight: 650;
  padding: 0.38rem 0.64rem;
  border-radius: 8px;
}

.nav-center a:hover,
.main-nav a:hover {
  background: #0f243a;
  color: #f7f1e9;
}

html.elder-mode {
  font-size: 114%;
}

html.elder-mode .nav-center a,
html.elder-mode .main-nav a,
html.elder-mode .member-elder-toggle-btn {
  font-size: 0.9rem;
}

html.elder-mode .member-elder-toggle-btn,
html.elder-mode .lang-select {
  min-height: 44px;
}

html.elder-mode #auth-card input,
html.elder-mode #auth-card select,
html.elder-mode #auth-card textarea,
html.elder-mode #member-dashboard input,
html.elder-mode #member-dashboard select,
html.elder-mode #member-dashboard textarea {
  font-size: 1rem !important;
  min-height: 52px;
}

html.elder-mode #auth-card .btn,
html.elder-mode #member-dashboard .btn,
html.elder-mode #member-dashboard button {
  min-height: 52px;
  font-size: 0.96rem;
}

html.elder-mode .metric-card strong {
  font-size: 1.32rem;
}

html.elder-mode .detail-table td,
html.elder-mode .detail-table th,
html.elder-mode .detail-row label,
html.elder-mode .detail-row input,
html.elder-mode .detail-row select,
html.elder-mode .detail-row textarea {
  font-size: 0.94rem;
}

/* Elder mode phase 2: credit-card, order details, and high-contrast tables */
html.elder-mode .panel-card,
html.elder-mode .member-detail-panel {
  border-color: rgba(70, 88, 112, 0.24);
  background: rgba(255, 255, 255, 0.95);
}

html.elder-mode .panel-head h3,
html.elder-mode .detail-title {
  font-size: 1.1rem;
  color: #13263a;
}

html.elder-mode .detail-sub,
html.elder-mode .detail-note,
html.elder-mode .detail-empty,
html.elder-mode .detail-section-title {
  color: #2f4359;
  font-size: 0.9rem;
}

html.elder-mode .detail-tabs {
  border-color: rgba(24, 49, 74, 0.24);
  background: rgba(245, 249, 253, 0.9);
}

html.elder-mode .detail-tab-btn {
  font-size: 0.82rem;
  padding: 0.5rem 0.98rem;
  border-color: rgba(24, 49, 74, 0.22);
  color: #1b334d;
}

html.elder-mode .detail-tab-btn.active {
  background: #12314d;
  border-color: #12314d;
  color: #f7f2e9;
}

html.elder-mode .detail-table {
  font-size: 0.9rem;
}

html.elder-mode .detail-table th {
  font-size: 0.72rem;
  color: #445a72;
  background: rgba(238, 245, 252, 0.88);
  border-bottom-color: rgba(76, 95, 120, 0.24);
  padding-top: 0.62rem;
  padding-bottom: 0.62rem;
}

html.elder-mode .detail-table td {
  color: #1e3247;
  border-bottom-color: rgba(87, 104, 127, 0.2);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

html.elder-mode .detail-pill {
  font-size: 0.68rem;
  padding: 0.24rem 0.56rem;
  border-color: rgba(21, 48, 73, 0.32);
  color: #143556;
  background: rgba(22, 52, 84, 0.12);
}

html.elder-mode .order-row-actions .mini-btn {
  font-size: 0.8rem;
  padding: 0.42rem 0.72rem;
}

html.elder-mode .order-detail-inline .address-card-title {
  font-size: 0.88rem;
}

html.elder-mode .order-detail-inline .address-card-lines {
  font-size: 0.84rem;
  line-height: 1.52;
}

html.elder-mode .credit-card-switch-btn {
  border-color: rgba(20, 48, 75, 0.3);
  background: rgba(255, 255, 255, 0.97);
  padding: 0.72rem 0.84rem;
}

html.elder-mode .credit-card-switch-btn strong {
  font-size: 0.92rem;
}

html.elder-mode .credit-card-switch-btn span {
  font-size: 0.8rem;
  color: #48607b;
}

html.elder-mode .credit-card-switch-btn.is-active {
  border-color: #0a5fcc;
  box-shadow: 0 0 0 3px rgba(10, 95, 204, 0.3), 0 10px 18px rgba(17, 46, 78, 0.14);
}

html.elder-mode .credit-card-summary {
  border-color: rgba(63, 82, 107, 0.22);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 254, 0.92));
  padding: 0.82rem;
  gap: 0.74rem;
}

html.elder-mode .credit-card-visual {
  min-height: 18.2rem;
  border-color: rgba(30, 66, 101, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(8, 27, 54, 0.32);
}

html.elder-mode .credit-card-visual-tier {
  font-size: 1.3rem;
}

html.elder-mode .credit-card-visual-number {
  font-size: 1.12rem;
  letter-spacing: 0.09em;
}

html.elder-mode .credit-card-visual-field span {
  font-size: 0.67rem;
}

html.elder-mode .credit-card-visual-field strong {
  font-size: 0.95rem;
}

html.elder-mode .credit-card-visual-brand {
  min-height: 3.2rem;
  font-size: 1.9rem;
}

html.elder-mode .credit-card-visual-brand-master {
  font-size: 1.28rem;
  padding-left: 3.2rem;
}

html.elder-mode .credit-card-visual-brand-master::before,
html.elder-mode .credit-card-visual-brand-master::after {
  width: 1.9rem;
  height: 1.9rem;
}

html.elder-mode .credit-card-visual-brand-master::after {
  left: 1.2rem;
}

html.elder-mode .credit-card-view-btn,
html.elder-mode .credit-card-topup-btn,
html.elder-mode .credit-card-copy-btn {
  min-height: 44px;
  font-size: 0.86rem;
  font-weight: 800;
}

html.elder-mode .credit-card-metric {
  border-color: rgba(76, 94, 119, 0.2);
  background: rgba(250, 252, 255, 0.9);
}

html.elder-mode .credit-card-metric p,
html.elder-mode .credit-card-overview-metric p {
  font-size: 0.78rem;
  color: #4a5e75;
}

html.elder-mode .credit-card-metric strong,
html.elder-mode .credit-card-overview-metric strong {
  font-size: 1.18rem;
  color: #17304a;
}

html.elder-mode .credit-card-inline-form,
html.elder-mode .credit-card-stage,
html.elder-mode .credit-card-overview-block,
html.elder-mode .credit-card-sensitive-short,
html.elder-mode .credit-card-block {
  border-color: rgba(73, 92, 116, 0.22);
}

html.elder-mode .credit-card-tab-btn {
  font-size: 0.84rem;
  padding: 0.52rem 0.96rem;
  border-color: rgba(22, 52, 84, 0.32);
}

html.elder-mode .credit-card-stage-item {
  border-color: rgba(58, 82, 110, 0.34);
}

html.elder-mode .credit-card-stage-item p {
  font-size: 0.84rem;
  color: #253a52;
}

html.elder-mode .credit-card-timeline-title {
  font-size: 0.88rem;
}

html.elder-mode .credit-card-timeline-meta {
  font-size: 0.8rem;
  color: #4e647d;
}

html.elder-mode .credit-card-timeline-amount {
  font-size: 0.92rem;
  color: #16344f;
}

.member-main {
  padding: 2rem 0 2.8rem;
}

.member-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.92fr);
  gap: 1.2rem;
}

.member-intro,
.auth-card {
  border: 1px solid rgba(110, 93, 67, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(146deg, rgba(252, 249, 243, 0.92), rgba(244, 238, 230, 0.84)),
    #f5efe7;
  box-shadow: 0 20px 40px rgba(49, 39, 28, 0.09);
}

.member-intro {
  padding: clamp(1.4rem, 2.8vw, 2.6rem);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.66rem;
  color: #7f756a;
  font-weight: 700;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.68rem, 3.28vw, 3.12rem);
  line-height: 0.95;
}

.lead {
  margin: 0.9rem 0 0;
  max-width: 54ch;
  line-height: 1.64;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.member-notes {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.68rem;
}

.member-notes p {
  margin: 0;
  padding-left: 0.76rem;
  border-left: 2px solid rgba(127, 109, 86, 0.22);
  color: #4f4a43;
  line-height: 1.56;
  font-size: 0.9rem;
}

.auth-card {
  padding: clamp(1.2rem, 2.6vw, 2rem);
}

.auth-tabs {
  width: fit-content;
  display: inline-flex;
  gap: 0.34rem;
  padding: 0.26rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 104, 77, 0.2);
  background: rgba(255, 252, 247, 0.86);
}

.auth-tab {
  border: 0;
  background: transparent;
  color: #544838;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.94rem;
  border-radius: 999px;
  cursor: pointer;
}

.auth-tab.active {
  background: #142a41;
  color: #f8f2e8;
}

.auth-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.72rem;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form label {
  display: grid;
  gap: 0.32rem;
  color: #453d34;
  font-size: 0.73rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(123, 107, 86, 0.25);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.92);
  color: #201d18;
  font-size: 0.94rem;
  padding: 0.78rem 0.82rem;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(20, 42, 65, 0.58);
  box-shadow: 0 0 0 3px rgba(20, 42, 65, 0.12);
}

.auth-form input.is-invalid {
  border-color: rgba(180, 35, 24, 0.62);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18);
}

.auth-inline-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.auth-send-code-btn {
  white-space: nowrap;
  padding: 0.7rem 0.9rem;
}

.field-hint {
  margin: 0;
  min-height: 0.94rem;
  color: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 550;
}

.field-hint.is-error {
  color: #b42318;
  font-weight: 700;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Manrope", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.78rem 1.2rem;
  cursor: pointer;
}

.btn-primary {
  background: #152a40;
  color: #f6f0e6;
}

.btn-primary:hover {
  background: #0f2337;
}

.btn:disabled,
.btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.46;
  background: #7d8b9a;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(117, 98, 71, 0.3);
  color: #5f4f3d;
}

.btn-secondary:hover {
  background: rgba(237, 228, 215, 0.65);
}

.form-message {
  margin: 0.88rem 0 0;
  min-height: 1.2rem;
  color: #72553d;
  font-size: 0.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0;
}

.form-message:not(.is-success):not(:empty) {
  color: #b42318;
  background: rgba(180, 35, 24, 0.09);
  border-color: rgba(180, 35, 24, 0.3);
  font-weight: 700;
  padding: 0.58rem 0.72rem;
}

.form-message.is-success {
  color: #29554a;
  background: rgba(41, 85, 74, 0.1);
  border-color: rgba(41, 85, 74, 0.28);
  font-weight: 700;
  padding: 0.58rem 0.72rem;
}

@media (max-width: 640px) {
  .auth-inline-input {
    grid-template-columns: 1fr;
  }

  .auth-send-code-btn {
    width: 100%;
    justify-self: stretch;
  }
}

.member-dashboard {
  margin-top: 1.2rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.member-console {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.mobile-console-bar,
.mobile-nav-toggle,
.mobile-tabbar,
.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-toggle {
  border: 0;
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.96);
  color: #152d46;
  padding: 0.62rem 0.88rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.72rem;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 14px rgba(23, 40, 60, 0.08);
}

.mobile-nav-toggle-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
}

.mobile-nav-toggle-icon {
  width: 18px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  display: inline-block;
  position: relative;
}

.mobile-nav-toggle-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  border-top: 2px solid currentColor;
}

.mobile-nav-toggle-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-nav-toggle-hint {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #4a5f78;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.mobile-nav-toggle-hint::after {
  content: "›";
  font-size: 0.84em;
  line-height: 1;
  transition: transform 180ms ease;
}

.mobile-nav-toggle[aria-expanded="true"] .mobile-nav-toggle-hint::after {
  transform: rotate(90deg);
}

.console-side,
.console-content {
  border: 1px solid rgba(104, 88, 66, 0.16);
  border-radius: 18px;
  background: rgba(251, 247, 240, 0.88);
}

.console-side {
  position: sticky;
  top: 86px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.86rem;
}

.console-brand {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(110, 95, 75, 0.2);
}

.console-side-title {
  margin: 0;
  color: #7a684f;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.console-side-lead {
  margin: 0;
  color: #212a39;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.26rem, 1.9vw, 1.5rem);
  line-height: 1.1;
}

.console-nav {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.console-nav-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 0.52rem 0.64rem;
  color: #273142;
  font-size: 0.75rem;
  font-weight: 620;
  line-height: 1.28;
  letter-spacing: 0.03em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.console-nav-item:hover {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(105, 88, 63, 0.18);
  color: #173754;
}

.console-nav-item.active {
  color: #f8f2e7;
  border-color: #142f4a;
  background: #142f4a;
}

.console-nav-item.danger {
  margin-top: 0.34rem;
  border-color: rgba(152, 67, 67, 0.24);
  color: #884141;
  background: rgba(255, 250, 250, 0.8);
}

.console-nav-item.danger:hover {
  background: rgba(255, 244, 244, 0.96);
  border-color: rgba(152, 67, 67, 0.4);
}

.console-side-footer {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(113, 98, 76, 0.2);
}

.console-side-footer p {
  margin: 0;
  color: #7c694f;
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.console-side-footer a {
  display: inline-block;
  margin-top: 0.2rem;
  margin-bottom: 0.28rem;
  color: #173553;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.console-side-footer a:hover {
  text-decoration: underline;
}

.console-content {
  padding: 1.22rem;
}

.console-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.02rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(114, 97, 72, 0.2);
}

.console-kicker {
  margin: 0;
  color: #806d54;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.console-banner h2 {
  margin: 0.16rem 0 0;
  font-size: clamp(1.34rem, 2vw, 1.66rem);
  line-height: 1.04;
  color: #1d2532;
}

.console-sub {
  margin: 0.5rem 0 0;
  color: #4f5868;
  font-size: 0.82rem;
  line-height: 1.56;
  max-width: 58ch;
}

.console-times {
  min-width: 210px;
  text-align: right;
  color: #3e4a5d;
  font-size: 0.72rem;
  line-height: 1.4;
  padding-left: 0.74rem;
  border-left: 1px solid rgba(116, 100, 74, 0.18);
}

.console-times p {
  margin: 0;
}

.console-times p + p {
  margin-top: 0.36rem;
}

.console-times strong {
  display: block;
  margin-top: 0.12rem;
  color: #1d2737;
  font-size: 0.8rem;
}

.console-tools {
  margin-top: 0.86rem;
  display: flex;
  align-items: center;
  gap: 0.56rem;
}

.mini-btn {
  border: 1px solid #163454;
  border-radius: 999px;
  padding: 0.5rem 0.98rem;
  background: #163454;
  color: #f7f2e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mini-btn:hover {
  background: #23466d;
  border-color: #23466d;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(19, 47, 76, 0.18);
}

.mini-btn:disabled,
.mini-btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
  box-shadow: none;
  background: #7d8fa8;
  border-color: #7d8fa8;
}

.mini-btn.ghost {
  background: rgba(255, 255, 255, 0.72);
  color: #183755;
  border-color: rgba(24, 55, 85, 0.3);
}

.mini-btn.ghost:hover {
  background: rgba(24, 55, 85, 0.08);
  border-color: rgba(24, 55, 85, 0.44);
}

.mini-btn.ghost:disabled,
.mini-btn.ghost:disabled:hover {
  color: #728195;
  background: rgba(24, 55, 85, 0.08);
  border-color: rgba(24, 55, 85, 0.2);
}

.dashboard-status {
  color: #5b6678;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  min-height: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  transition: all 180ms ease;
}

.dashboard-status.is-visible {
  color: #1f3e5f;
}

.dashboard-status.is-visible.is-success {
  color: #1e5a37;
  background: #e4f6e8;
  border: 1px solid #b8e2c3;
  border-radius: 10px;
  padding: 0.42rem 0.68rem;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(30, 90, 55, 0.12);
}

.dashboard-status.is-visible.is-error {
  color: #842029;
  background: #f8d7da;
  border: 1px solid #efb5bc;
  border-radius: 10px;
  padding: 0.42rem 0.68rem;
  font-weight: 700;
}

.invite-copy-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 9999;
  min-width: 240px;
  max-width: min(88vw, 460px);
  padding: 0.86rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 54, 85, 0.28);
  background: rgba(20, 42, 65, 0.95);
  color: #f7f2e8;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 34px rgba(14, 30, 47, 0.32);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.invite-copy-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.console-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.72rem;
}

.metric-card {
  border: 1px solid rgba(106, 90, 68, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.82rem 0.86rem;
  min-height: 102px;
}

.metric-card p {
  margin: 0;
  color: #726d63;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card strong {
  margin-top: 0.3rem;
  display: block;
  color: #1e2735;
  font-size: 1.28rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 650;
  line-height: 1.08;
}

.metric-card.wide {
  grid-column: span 2;
}

.panel-card {
  margin-top: 0.86rem;
  border: 1px solid rgba(108, 92, 69, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.88rem 0.92rem;
}

.panel-referral {
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.panel-referral.spotlight {
  border-color: rgba(24, 55, 85, 0.34);
  box-shadow: 0 0 0 2px rgba(24, 55, 85, 0.14);
  background: rgba(255, 255, 255, 0.92);
}

.member-detail-panel {
  min-height: 320px;
}

.detail-layout {
  display: grid;
  gap: 0.9rem;
}

.detail-head {
  display: grid;
  gap: 0.28rem;
  padding-bottom: 0.62rem;
  border-bottom: 1px solid rgba(113, 97, 74, 0.16);
}

.detail-kicker {
  margin: 0;
  color: #7e6b52;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.detail-title {
  margin: 0;
  color: #1f2938;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.44rem, 2vw, 1.86rem);
  line-height: 1.06;
}

.detail-desc {
  margin: 0;
  color: #5a6678;
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 74ch;
}

.detail-status {
  margin: 0.08rem 0 0;
  min-height: 1rem;
  color: #5b6678;
  font-size: 0.74rem;
  line-height: 1.45;
}

.detail-status.is-visible {
  color: #173c61;
  background: rgba(23, 60, 97, 0.06);
  border: 1px solid rgba(23, 60, 97, 0.16);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
}

.detail-status.is-visible.is-success {
  color: #1e5a37;
  background: #e4f6e8;
  border-color: #b8e2c3;
  font-weight: 700;
}

.detail-status.is-visible.is-error {
  color: #842029;
  background: #f8d7da;
  border-color: #efb5bc;
  font-weight: 700;
}

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

.detail-block {
  border: 1px solid rgba(109, 92, 67, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.76rem;
}

.detail-block p {
  margin: 0;
}

.detail-block-title {
  color: #6f6659;
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
}

.detail-block-value {
  margin-top: 0.26rem;
  color: #1e2734;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.44;
}

.detail-form {
  display: grid;
  gap: 0.58rem;
}

.detail-form-profile {
  gap: 0.64rem;
}

.detail-form label {
  display: grid;
  gap: 0.28rem;
  color: #4f5b6d;
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  line-height: 1.2;
}

.field-required {
  color: #b13f3f;
  font-size: 0.88em;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  transform: translateY(-0.02em);
}

.detail-required-note {
  margin: -0.08rem 0 0.14rem;
  color: #7a6651;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.detail-form input,
.detail-form select,
.detail-form textarea {
  width: 100%;
  border: 1px solid rgba(106, 88, 64, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2732;
  font-family: "Manrope", sans-serif;
  font-size: 0.86rem;
  padding: 0.62rem 0.68rem;
}

.detail-form textarea {
  min-height: 84px;
  resize: vertical;
}

.security-mask {
  -webkit-text-security: disc;
  text-security: disc;
}

.detail-form input:focus,
.detail-form select:focus,
.detail-form textarea:focus {
  outline: none;
  border-color: rgba(20, 42, 65, 0.56);
  box-shadow: 0 0 0 3px rgba(20, 42, 65, 0.12);
}

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

.detail-row.detail-row-phone {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.46fr) minmax(0, 1fr);
}

.detail-row.detail-row-quick-pay-phone {
  grid-template-columns: minmax(150px, 0.44fr) minmax(0, 1fr) minmax(0, 1fr);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.46rem;
}

.order-row-actions {
  justify-content: flex-start;
}

.order-row-actions .mini-btn {
  padding: 0.34rem 0.62rem;
}

.detail-form-profile .detail-actions {
  justify-content: space-between;
}

.detail-text-btn {
  border: 0;
  background: transparent;
  color: #6f5a3f;
  font-size: 0.71rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.detail-text-btn:hover {
  color: #3e5877;
}

.detail-note {
  margin: 0;
  color: #5b677a;
  font-size: 0.75rem;
  line-height: 1.5;
}

.amount-note-focus {
  color: #111111;
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 1.3em;
  font-weight: 900;
}

.transfer-status {
  min-height: 1.2rem;
}

.transfer-status.is-error {
  color: #c45252;
}

.detail-subline {
  margin-top: 0.2rem;
  color: #6d7788;
  font-size: 0.66rem;
  line-height: 1.45;
}

.detail-tabs {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  border: 1px solid rgba(108, 92, 69, 0.16);
  border-radius: 999px;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.65);
}

.detail-tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #50483f;
  border-radius: 999px;
  padding: 0.4rem 0.84rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.detail-tab-btn:hover {
  border-color: rgba(20, 42, 65, 0.24);
}

.detail-tab-btn.active {
  color: #f8f2e7;
  background: #142f4a;
  border-color: #142f4a;
}

.detail-filter-row {
  margin-top: 0.34rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 0.58rem;
  align-items: end;
}

.detail-filter-action {
  display: flex;
  align-items: flex-end;
}

.detail-balance-strip {
  margin-top: 0.24rem;
  border: 1px solid rgba(108, 92, 69, 0.14);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.82), rgba(244, 238, 230, 0.76));
  padding: 0.72rem 0.84rem;
}

.detail-balance-value {
  margin: 0;
  color: #111111;
  font-size: 1.42rem;
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 700;
  line-height: 1;
}

.detail-balance-strip .detail-balance-value.amount-emphasis {
  font-size: 2.27rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.detail-balance-label {
  margin: 0.2rem 0 0;
  color: #6a6257;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.amount-emphasis {
  font-size: 1.2em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.amount-inline {
  font-size: 1.08em;
  font-weight: 780;
}

.detail-section-title {
  margin: 0.46rem 0 0;
  color: #1f2a39;
  font-size: 0.88rem;
  font-weight: 700;
}

.detail-inline-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.48rem;
  align-items: center;
}

.detail-phone-field {
  display: grid;
  grid-template-columns: minmax(170px, 0.56fr) 1fr;
  gap: 0.48rem;
  align-items: center;
}

.detail-table-wrap {
  overflow-x: auto;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.detail-table th,
.detail-table td {
  padding: 0.52rem 0.42rem;
  border-bottom: 1px solid rgba(108, 92, 69, 0.14);
  text-align: left;
  color: #2d3748;
  white-space: nowrap;
}

.detail-table tbody tr.is-selected > td {
  background: rgba(20, 52, 84, 0.05);
}

.detail-table tbody tr.order-detail-row > td {
  white-space: normal;
  background: rgba(255, 255, 255, 0.72);
  padding-top: 0.34rem;
  padding-bottom: 0.68rem;
}

.order-detail-inline {
  margin: 0;
}

.detail-table th {
  color: #6f6658;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border-radius: 999px;
  padding: 0.2rem 0.46rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(22, 52, 84, 0.2);
  color: #1a3654;
  background: rgba(22, 52, 84, 0.08);
}

.detail-pill.is-muted {
  border-color: rgba(112, 95, 72, 0.2);
  color: #6c604f;
  background: rgba(140, 122, 97, 0.08);
}

.detail-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.38rem;
  color: #2b3748;
  font-size: 0.8rem;
  line-height: 1.58;
}

.credit-card-layout {
  display: grid;
  gap: 0.68rem;
}

.credit-card-switch {
  border: 1px solid rgba(108, 92, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  padding: 0.56rem 0.62rem;
  display: grid;
  gap: 0.42rem;
}

.credit-card-switch .detail-section-title {
  margin: 0;
}

.credit-card-switch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem;
}

.credit-card-switch-btn {
  border: 1px solid rgba(22, 52, 84, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f3042;
  text-align: left;
  padding: 0.6rem 0.72rem;
  display: grid;
  gap: 0.16rem;
  cursor: pointer;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.credit-card-switch-btn strong {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.34;
}

.credit-card-switch-btn span {
  color: #647288;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.credit-card-switch-btn:hover {
  border-color: rgba(22, 52, 84, 0.4);
  box-shadow: 0 0 0 2px rgba(22, 52, 84, 0.1);
}

.credit-card-switch-btn.is-active {
  border-color: #0a5fcc;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.95) 0%, rgba(224, 239, 255, 0.9) 100%);
  box-shadow: 0 0 0 3px rgba(10, 95, 204, 0.25), 0 10px 18px rgba(17, 46, 78, 0.12);
}

.credit-card-switch-btn.is-active::after {
  content: "✓";
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  background: #0a5fcc;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1rem;
  text-align: center;
}

.credit-card-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(250px, 0.89fr);
  gap: 0.62rem;
  border: 1px solid rgba(106, 90, 68, 0.16);
  border-radius: 14px;
  padding: 0.68rem;
  background: rgba(255, 255, 255, 0.86);
  align-items: stretch;
}

.credit-card-summary.is-live .credit-card-visual {
  border-color: rgba(22, 52, 84, 0.42);
}

.credit-card-visual {
  border: 1px solid rgba(22, 52, 84, 0.26);
  border-radius: 12px;
  padding: 0.76rem 0.8rem;
  padding-bottom: 1.34rem;
  min-height: 16.8rem;
  background:
    radial-gradient(130% 95% at 0% 0%, rgba(138, 181, 255, 0.24) 0%, rgba(138, 181, 255, 0) 48%),
    radial-gradient(95% 82% at 100% 100%, rgba(67, 118, 214, 0.3) 0%, rgba(67, 118, 214, 0) 60%),
    linear-gradient(138deg, #0e2c56 0%, #16457f 52%, #0a2346 100%);
  color: #edf5ff;
  display: grid;
  gap: 0.34rem;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(8, 27, 54, 0.3);
}

.credit-card-visual-kicker {
  margin: 0;
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 245, 255, 0.8);
  font-weight: 700;
}

.credit-card-visual-tier {
  margin: 0;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f2f8ff;
}

.credit-card-visual-number {
  margin: 0.12rem 0 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 650;
  color: #f4f9ff;
}

.credit-card-visual-number-row {
  margin-top: 0.12rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.credit-card-visual-number-row .credit-card-visual-number {
  margin: 0;
}

.credit-card-visual-chip {
  width: 2.25rem;
  height: 1.62rem;
  border-radius: 0.28rem;
  margin-top: 0.12rem;
  background: linear-gradient(135deg, #f5d58c 0%, #d7a85d 56%, #b98138 100%);
  border: 1px solid rgba(95, 66, 28, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 246, 208, 0.35);
  position: relative;
}

.credit-card-visual-chip::before,
.credit-card-visual-chip::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  border-top: 1px solid rgba(111, 78, 36, 0.55);
}

.credit-card-visual-chip::before {
  top: 0.54rem;
}

.credit-card-visual-chip::after {
  top: 0.98rem;
}

.credit-card-visual-fields {
  margin-top: 0.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem 0.46rem;
}

.credit-card-visual-field {
  display: grid;
  gap: 0.16rem;
}

.credit-card-visual-field span {
  color: rgba(227, 238, 250, 0.8);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.credit-card-visual-field strong {
  color: #f2f8ff;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.32;
}

.credit-card-visual-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.credit-card-copy-btn {
  border: 1px solid rgba(22, 52, 84, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #163e63;
  padding: 0.2rem 0.62rem;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.credit-card-copy-btn:hover {
  border-color: rgba(22, 52, 84, 0.52);
  background: rgba(255, 255, 255, 0.98);
}

.credit-card-copy-btn.is-copied {
  border-color: #12b34d;
  background: #e9f9ef;
  color: #0f7c39;
}

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

.credit-card-visual-actions {
  position: absolute;
  right: 0.88rem;
  bottom: 0.72rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-wrap: nowrap;
}

.credit-card-visual-id {
  color: rgba(232, 243, 252, 0.84);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.credit-card-visual-brand {
  min-height: 2.9rem;
  padding: 0 0.14rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 251, 255, 0.94);
}

.credit-card-visual-brand-visa {
  font-style: italic;
  letter-spacing: 0.12em;
  color: #f4f9ff;
}

.credit-card-visual-brand-master {
  position: relative;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  padding-left: 2.9rem;
  color: #f4f9ff;
}

.credit-card-visual-brand-master::before,
.credit-card-visual-brand-master::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  transform: translateY(-50%);
}

.credit-card-visual-brand-master::before {
  left: 0.22rem;
  background: rgba(238, 82, 72, 0.88);
}

.credit-card-visual-brand-master::after {
  left: 1.08rem;
  background: rgba(249, 171, 51, 0.88);
  mix-blend-mode: screen;
}

.credit-card-visual-reveal {
  margin-top: 0.12rem;
  display: grid;
  gap: 0.4rem;
}

.credit-card-view-btn {
  border: 1px solid rgba(234, 242, 251, 0.4);
  border-radius: 999px;
  background: rgba(234, 242, 251, 0.12);
  color: #eef5fc;
  padding: 0.42rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
  justify-self: start;
}

.credit-card-view-btn:hover {
  background: rgba(234, 242, 251, 0.2);
  border-color: rgba(234, 242, 251, 0.55);
}

.credit-card-topup-btn {
  border: 1px solid #16b84d;
  border-radius: 999px;
  background: linear-gradient(120deg, #29d463, #12b34d);
  color: #ffffff;
  padding: 0.44rem 0.98rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 180ms ease;
}

.credit-card-topup-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(18, 179, 77, 0.34);
}

.credit-card-topup-btn:disabled,
.credit-card-topup-btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.credit-card-topup-btn.is-active {
  box-shadow: 0 0 0 3px rgba(18, 179, 77, 0.26);
}

.credit-card-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.46rem;
}

.credit-card-metric {
  border: 1px solid rgba(108, 92, 69, 0.14);
  border-radius: 12px;
  background: rgba(248, 244, 236, 0.72);
  padding: 0.62rem;
  min-height: 0;
}

.credit-card-metric p {
  margin: 0;
  color: #666053;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.credit-card-metric strong {
  margin-top: 0.24rem;
  display: block;
  color: #1f2c3b;
  font-size: 1.08rem;
  line-height: 1.32;
  font-weight: 700;
}

.credit-card-balance-actions {
  margin-top: 0.38rem;
  display: flex;
  align-items: center;
}

.credit-card-inline-form {
  margin-top: 0.42rem;
  border: 1px solid rgba(103, 88, 66, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.48rem;
  gap: 0.44rem;
}

.credit-card-metric .credit-card-inline-form .detail-row {
  grid-template-columns: 1fr;
}

.credit-card-activate-code-cell {
  display: grid;
  gap: 0.32rem;
  align-content: start;
  max-width: 420px;
}

.credit-card-activate-main-row {
  align-items: end;
}

.credit-card-activate-code-row {
  grid-template-columns: 1fr;
}

.credit-card-request-code-btn {
  width: fit-content;
  margin-top: 0.04rem;
  justify-self: start;
}

.credit-card-activate-request-feedback {
  margin: 0;
  min-height: 1.1em;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.credit-card-activate-request-feedback.is-error {
  color: #b13f3f;
}

.credit-card-summary-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.credit-card-stage {
  border: 1px solid rgba(108, 92, 69, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.58rem 0.62rem;
}

.credit-card-stage .detail-section-title {
  margin-top: 0;
}

.credit-card-stage-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.48rem;
}

.credit-card-stage-item {
  border: 1px dashed rgba(108, 92, 69, 0.22);
  border-radius: 10px;
  padding: 0.48rem 0.52rem;
  display: grid;
  gap: 0.28rem;
  background: rgba(255, 255, 255, 0.76);
}

.credit-card-stage-item span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 47, 74, 0.12);
  border: 1px solid rgba(20, 47, 74, 0.24);
  color: #163454;
  font-size: 0.72rem;
  font-weight: 800;
}

.credit-card-stage-item p {
  margin: 0;
  color: #2f3b4d;
  font-size: 0.74rem;
  line-height: 1.45;
}

.credit-card-block {
  border: 1px solid rgba(108, 92, 69, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.64rem;
  display: grid;
  gap: 0.58rem;
}

.credit-card-apply-type {
  display: grid;
  gap: 0.38rem;
}

.credit-card-apply-type-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.credit-card-apply-type-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 0.34rem;
  border: 1px solid rgba(22, 52, 84, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1e3858;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase;
  padding: 0.34rem 0.74rem;
  cursor: pointer;
}

.credit-card-apply-type-chip input[type="checkbox"] {
  width: 0.9rem !important;
  height: 0.9rem !important;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #173a5c;
  box-shadow: none !important;
}

.credit-card-apply-type-chip span {
  line-height: 1.2;
}

.credit-card-physical-block {
  border: 1px dashed rgba(24, 54, 84, 0.26);
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.58);
  padding: 0.54rem;
  display: grid;
  gap: 0.52rem;
}

.credit-card-physical-block .detail-section-title {
  margin: 0;
}

.credit-card-upload-label {
  display: grid;
  gap: 0.28rem;
}

.credit-card-upload-row {
  display: flex;
  gap: 0.42rem;
  align-items: center;
}

.credit-card-upload-row input[readonly] {
  flex: 1 1 auto;
  min-width: 0;
  background: rgba(247, 249, 252, 0.9);
}

.credit-card-upload-feedback {
  margin: 0;
  min-height: 0;
  display: none;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
}

.credit-card-upload-feedback:not(:empty) {
  display: block;
}

.credit-card-upload-feedback.is-pending {
  background: rgba(23, 59, 95, 0.08);
  border-color: rgba(23, 59, 95, 0.18);
  color: #173b5f;
}

.credit-card-upload-feedback.is-success {
  background: rgba(32, 172, 89, 0.14);
  border-color: rgba(23, 137, 71, 0.36);
  color: #0f6d39;
}

.credit-card-upload-feedback.is-error {
  background: rgba(190, 43, 43, 0.1);
  border-color: rgba(190, 43, 43, 0.36);
  color: #be2b2b;
}

.credit-card-block-topup {
  scroll-margin-top: 96px;
}

.credit-card-block-topup.is-focus {
  border-color: rgba(23, 59, 95, 0.34);
  box-shadow: 0 0 0 2px rgba(23, 59, 95, 0.12);
}

.credit-card-sensitive-short {
  border: 1px solid rgba(108, 92, 69, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.62rem;
  display: grid;
  gap: 0.5rem;
}

.credit-card-sensitive-submit {
  align-items: flex-end;
  min-height: 100%;
}

.credit-card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.credit-card-tab-btn {
  border: 1px solid rgba(22, 52, 84, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a3656;
  padding: 0.46rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.credit-card-tab-btn:hover {
  border-color: rgba(22, 52, 84, 0.4);
}

.credit-card-tab-btn.is-active {
  background: #173755;
  border-color: #173755;
  color: #f5f0e6;
}

.credit-card-panel-group {
  margin-top: 0.16rem;
}

.credit-card-panel {
  display: none;
  gap: 0.58rem;
}

.credit-card-panel.is-active {
  display: grid;
}

.credit-card-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.credit-card-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.48rem;
}

.credit-card-overview-metric {
  border: 1px solid rgba(107, 90, 66, 0.16);
  border-radius: 10px;
  background: rgba(249, 245, 238, 0.86);
  padding: 0.52rem 0.56rem;
}

.credit-card-overview-metric p {
  margin: 0;
  color: #68604f;
  font-size: 0.61rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.credit-card-overview-metric strong {
  margin-top: 0.24rem;
  display: block;
  color: #1e2e40;
  font-size: 0.9rem;
  font-weight: 760;
}

.credit-card-overview-block {
  border: 1px solid rgba(107, 90, 66, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.56rem;
}

.credit-card-ops {
  margin-top: 0.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.credit-card-timeline {
  margin: 0.28rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.36rem;
}

.credit-card-timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.62rem;
  padding: 0.42rem 0.44rem;
  border: 1px solid rgba(107, 90, 66, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
}

.credit-card-timeline-title {
  margin: 0;
  color: #27384c;
  font-size: 0.76rem;
  font-weight: 700;
}

.credit-card-timeline-meta {
  margin: 0.14rem 0 0;
  color: #617086;
  font-size: 0.68rem;
  line-height: 1.45;
}

.credit-card-timeline-amount {
  margin: 0;
  color: #1d3249;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.credit-card-timeline-empty {
  color: #627084;
  font-size: 0.75rem;
  padding: 0.18rem 0.04rem;
}

.address-card-list {
  display: grid;
  gap: 0.56rem;
}

.address-card {
  border: 1px solid rgba(109, 92, 67, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.66rem 0.72rem;
  display: grid;
  gap: 0.36rem;
}

.address-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.address-card-title {
  color: #1f2a3a;
  font-size: 0.8rem;
  font-weight: 700;
}

.address-card-lines {
  color: #4e5b6d;
  font-size: 0.78rem;
  line-height: 1.5;
}

.progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(99, 112, 128, 0.18);
  overflow: hidden;
}

.progress-value {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #173b5f, #6883a1);
  width: 0;
}

.detail-empty {
  margin: 0;
  color: #657185;
  font-size: 0.8rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding-bottom: 0.58rem;
  border-bottom: 1px solid rgba(114, 97, 74, 0.16);
}

.panel-head h3 {
  margin: 0;
  color: #1e2734;
  font-size: 0.95rem;
  font-weight: 700;
}

.panel-head p {
  margin: 0;
  color: #606a7a;
  font-size: 0.73rem;
}

.gift-row {
  margin-top: 0.54rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.68rem;
  padding: 0.46rem 0 0.18rem;
  border-bottom: 1px dashed rgba(113, 97, 72, 0.18);
}

.gift-row:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.gift-row span {
  color: #283448;
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.team-list {
  margin: 0.54rem 0 0.7rem;
  padding-left: 1.06rem;
  color: #2d3849;
  font-size: 0.8rem;
  line-height: 1.62;
}

.team-list li + li {
  margin-top: 0.42rem;
}

.team-list-cn {
  font-size: 0.9rem;
  line-height: 1.74;
  color: #24364f;
  font-weight: 560;
}

.team-list-cn li + li {
  margin-top: 0.44rem;
}

.team-list-cn li p {
  margin: 0.12rem 0 0;
}

.team-invite-link-box {
  margin-top: 0.42rem;
  border: 1px solid rgba(108, 92, 69, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.5rem 0.56rem;
  display: grid;
  gap: 0.22rem;
}

.team-invite-link-label {
  color: #6e6251;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.team-invite-link-text {
  color: #1e2b3a;
  font-size: 0.84rem;
  line-height: 1.42;
  word-break: break-all;
}

#team-invite-btn {
  margin-top: 0.46rem;
}

#team-invite-btn.is-copied {
  background: #2d8749;
  border-color: #2d8749;
  color: #ffffff;
}

#team-invite-btn.is-copied:hover {
  background: #2d8749;
  border-color: #2d8749;
}

html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .main-nav {
  justify-self: start;
}

html[dir="rtl"] .console-nav-item {
  text-align: right;
}

html[dir="rtl"] .console-times {
  text-align: left;
}

html:lang(zh-CN) .auth-form label,
html:lang(ja) .auth-form label,
html:lang(ko) .auth-form label,
html:lang(vi) .auth-form label,
html:lang(es) .auth-form label,
html:lang(de) .auth-form label,
html:lang(ar) .auth-form label,
html:lang(zh-CN) .console-nav-item,
html:lang(ja) .console-nav-item,
html:lang(ko) .console-nav-item,
html:lang(vi) .console-nav-item,
html:lang(es) .console-nav-item,
html:lang(de) .console-nav-item,
html:lang(ar) .console-nav-item,
html:lang(zh-CN) .mini-btn,
html:lang(ja) .mini-btn,
html:lang(ko) .mini-btn,
html:lang(vi) .mini-btn,
html:lang(es) .mini-btn,
html:lang(de) .mini-btn,
html:lang(ar) .mini-btn {
  text-transform: none;
  letter-spacing: 0.03em;
}

html:lang(zh-CN) body {
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Manrope", sans-serif;
}

html:lang(zh-CN) h1,
html:lang(zh-CN) h2,
html:lang(zh-CN) .console-side-lead,
html:lang(zh-CN) .metric-card strong {
  font-family: "Songti SC", "Noto Serif SC", "STSong", "Cormorant Garamond", serif;
  letter-spacing: 0;
}

html:lang(zh-CN) .eyebrow,
html:lang(zh-CN) .console-side-title,
html:lang(zh-CN) .console-kicker,
html:lang(zh-CN) .metric-card p,
html:lang(zh-CN) .console-side-footer p {
  text-transform: none;
  letter-spacing: 0.06em;
}

html:lang(zh-CN) .lead,
html:lang(zh-CN) .console-sub,
html:lang(zh-CN) .team-list-cn {
  line-height: 1.78;
}

html:lang(zh-CN) .console-nav-item {
  font-size: 0.8rem;
  line-height: 1.35;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

html:lang(zh-CN) .team-list-cn {
  font-size: 0.94rem;
  color: #26354b;
  font-weight: 550;
}

@media (max-width: 1200px) {
  .member-console {
    grid-template-columns: 236px minmax(0, 1fr);
  }

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

  .metric-card.wide {
    grid-column: span 3;
  }
}

@media (max-width: 980px) {
  .member-shell {
    grid-template-columns: 1fr;
  }

  .member-dashboard {
    margin-top: 0.84rem;
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .member-console {
    display: block;
    position: relative;
  }

  .mobile-console-bar {
    display: block;
    position: sticky;
    top: 78px;
    z-index: 16;
    margin-bottom: 0.68rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(23, 40, 60, 0.07);
  }

  .mobile-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: rgba(18, 25, 34, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 42;
  }

  body.member-mobile-nav-open {
    overflow: hidden;
  }

  body.member-mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .console-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 46;
    border-radius: 0 16px 16px 0;
    transform: translateX(-108%);
    transition: transform 220ms ease;
    box-shadow: 0 24px 52px rgba(17, 29, 46, 0.26);
    max-height: none;
    overflow: auto;
    padding: 1rem 0.9rem calc(1.2rem + env(safe-area-inset-bottom));
  }

  html[dir="rtl"] .console-side {
    left: auto;
    right: 0;
    border-radius: 16px 0 0 16px;
    transform: translateX(108%);
  }

  body.member-mobile-nav-open .console-side {
    transform: translateX(0);
  }

  .console-content {
    padding: 0.12rem;
    border: 0;
    background: transparent;
  }

  .console-nav {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
  }

  .console-grid {
    margin-top: 0.76rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }

  .detail-grid,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .detail-row.detail-row-quick-pay-phone {
    grid-template-columns: 1fr;
  }

  .detail-filter-row {
    grid-template-columns: 1fr;
  }

  .credit-card-summary,
  .credit-card-metrics,
  .credit-card-stage-list,
  .credit-card-support-grid,
  .credit-card-overview-grid {
    grid-template-columns: 1fr;
  }

  .credit-card-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.16rem;
  }

  .credit-card-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .detail-filter-action {
    justify-content: flex-start;
  }

  .metric-card {
    min-height: 110px;
    padding: 0.86rem 0.82rem;
    border-radius: 16px;
    border-color: rgba(103, 84, 60, 0.18);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 233, 0.9));
    box-shadow: 0 12px 24px rgba(22, 40, 63, 0.08);
  }

  .metric-card p {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .metric-card strong {
    margin-top: 0.4rem;
    font-family: "Manrope", "Noto Sans", "Noto Sans SC", sans-serif;
    font-size: 1.42rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: #111f30;
  }

  html:lang(zh-CN) .metric-card strong {
    font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", "Manrope", sans-serif;
    font-weight: 850;
  }

  .metric-card.wide {
    grid-column: 1 / -1;
    min-height: 106px;
  }

  .console-times {
    border-left: 0;
    padding: 0.68rem 0.72rem;
    border: 1px solid rgba(152, 124, 83, 0.18);
    border-radius: 14px;
    background: rgba(255, 251, 244, 0.78);
    text-align: left;
    color: #6a5944;
  }

  .console-times strong {
    color: #2f2415;
    font-size: 0.92rem;
  }

  .console-banner {
    grid-template-columns: 1fr;
    gap: 0.72rem;
    padding: 0.98rem 0.9rem;
    border-radius: 18px;
    border-color: rgba(157, 128, 86, 0.2);
    background: linear-gradient(145deg, #f9f2e6 0%, #f5ead8 54%, #eedec4 100%);
    box-shadow: 0 14px 26px rgba(108, 80, 44, 0.14);
  }

  .console-kicker {
    color: rgba(111, 84, 49, 0.9);
  }

  .console-banner h2 {
    color: #2f2415;
    font-size: clamp(1.17rem, 4.8vw, 1.54rem);
  }

  .console-sub {
    color: #5a4832;
  }

  .console-tools {
    margin-top: 0.7rem;
    flex-wrap: wrap;
  }

  .dashboard-status {
    padding: 0.34rem 0.72rem;
    border-radius: 999px;
    background: rgba(20, 47, 74, 0.07);
    color: #1f4264;
  }

  .dashboard-status.is-visible.is-success,
  .dashboard-status.is-visible.is-error {
    border-radius: 10px;
    padding: 0.42rem 0.68rem;
  }

  .dashboard-status:not(.is-visible) {
    display: none;
  }

  .panel-card {
    margin-top: 0.74rem;
    padding: 0.84rem 0.86rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(23, 40, 60, 0.07);
  }

  .gift-row span {
    font-size: 0.92rem;
    line-height: 1.34;
    word-break: break-all;
  }

  .panel-team .team-list {
    margin-top: 0.48rem;
    margin-bottom: 0.6rem;
    font-size: 0.82rem;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 38;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.3rem;
    align-items: end;
    padding: 0.52rem 0.46rem calc(0.58rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(109, 89, 63, 0.17);
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(12px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-tabbar::-webkit-scrollbar {
    display: none;
  }

  .member-dashboard .mobile-tabbar .mobile-tab-item {
    flex: 0 0 auto;
    min-width: 94px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(105, 87, 62, 0.18);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.8);
    color: #2d3a4c;
    padding: 0.45rem 0.48rem;
    font-size: 0.61rem;
    font-weight: 700;
    text-align: center;
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .member-dashboard .mobile-tabbar .mobile-tab-item.active {
    color: #f8f2e7;
    border-color: #142f4a;
    background: #142f4a;
  }

  html.elder-mode .member-dashboard .mobile-tabbar .mobile-tab-item {
    min-width: 108px;
    max-width: 138px;
    font-size: 0.72rem;
    padding-top: 0.52rem;
    padding-bottom: 0.5rem;
  }

  html.elder-mode .detail-table {
    font-size: 0.82rem;
  }

  html.elder-mode .detail-table th {
    font-size: 0.66rem;
  }

  html.elder-mode .credit-card-tab-btn {
    font-size: 0.8rem;
  }

  html.elder-mode .credit-card-visual {
    min-height: 17.2rem;
  }

  html.elder-mode .credit-card-metric strong,
  html.elder-mode .credit-card-overview-metric strong {
    font-size: 1.02rem;
  }

  html.elder-mode .credit-card-timeline-meta {
    font-size: 0.76rem;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1240px, calc(100% - 1.1rem));
  }

  .global-header {
    position: static;
  }

  .mobile-console-bar {
    top: 0;
  }

  .nav-center {
    display: none;
  }

  .nav-grid {
    grid-template-columns: 1fr auto;
    min-height: 62px;
  }

  .logo {
    font-size: 1.34rem;
  }

  .main-nav {
    gap: 0.42rem;
  }

  .main-nav a {
    font-size: 0.69rem;
    padding: 0.34rem 0.5rem;
  }

  .member-elder-toggle-btn {
    font-size: 0.69rem;
    padding: 0.34rem 0.58rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.36rem;
  }

  .lang-select {
    padding: 0.34rem 1.45rem 0.34rem 0.62rem;
    font-size: 0.69rem !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    height: auto;
    min-height: 0;
  }

  .console-banner {
    grid-template-columns: 1fr;
  }

  .console-times {
    min-width: 0;
  }

  .console-content {
    padding: 0.02rem;
  }

  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .metric-card {
    grid-column: auto;
    min-height: 98px;
    padding: 0.74rem 0.7rem;
  }

  .metric-card p {
    font-size: 0.6rem;
  }

  .metric-card strong {
    font-size: 1.3rem;
  }

  .metric-card.wide {
    grid-column: 1 / -1;
    min-height: 94px;
  }

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

  .console-tools {
    gap: 0.4rem;
  }

  .dashboard-status {
    margin-left: 0;
    text-align: left;
  }

  .gift-row {
    align-items: center;
    flex-direction: row;
    gap: 0.44rem;
  }

  .detail-title {
    font-size: clamp(1.07rem, 4.8vw, 1.36rem);
  }

  .detail-inline-input {
    grid-template-columns: 1fr;
  }

  .detail-phone-field {
    grid-template-columns: 1fr;
  }

  .credit-card-summary {
    padding: 0.58rem;
  }

  .credit-card-visual {
    padding: 0.6rem;
    padding-bottom: 1.05rem;
  }

  .credit-card-visual-fields {
    grid-template-columns: 1fr;
  }

  .credit-card-visual-actions {
    right: 0.62rem;
    bottom: 0.52rem;
  }

  .credit-card-visual-brand {
    min-height: 2.2rem;
    font-size: 1.2rem;
  }

  .credit-card-visual-brand-master {
    font-size: 0.92rem;
    padding-left: 2.1rem;
  }

  .credit-card-visual-brand-master::before,
  .credit-card-visual-brand-master::after {
    width: 1.26rem;
    height: 1.26rem;
  }

  .credit-card-visual-brand-master::after {
    left: 0.82rem;
  }

  .credit-card-metric strong {
    font-size: 0.88rem;
  }

  .credit-card-ops .mini-btn {
    flex: 1 1 calc(50% - 0.4rem);
    justify-content: center;
  }

  .credit-card-activate-main-row {
    grid-template-columns: 1fr;
  }

  .credit-card-activate-code-cell {
    max-width: none;
  }

  .credit-card-summary-actions {
    width: 100%;
  }

  .credit-card-topup-btn {
    flex: 1 1 calc(50% - 0.36rem);
    justify-content: center;
    text-align: center;
  }

  .credit-card-sensitive-submit {
    align-items: stretch;
  }

  .credit-card-sensitive-submit .mini-btn {
    width: 100%;
    justify-content: center;
  }

  .detail-table {
    font-size: 0.72rem;
  }

  .detail-table th {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .order-detail-inline .address-card-title {
    font-size: 0.74rem;
  }

  .order-detail-inline .address-card-lines {
    font-size: 0.72rem;
    line-height: 1.4;
  }
}

@media (max-width: 560px) {
  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.44rem;
  }

  .metric-card {
    min-height: 92px;
    padding: 0.66rem 0.58rem;
  }

  .metric-card p {
    font-size: 0.58rem;
  }

  .metric-card strong {
    margin-top: 0.3rem;
    font-size: 1.14rem;
  }

  .metric-card.wide {
    grid-column: 1 / -1;
    min-height: 90px;
  }

  .mobile-tabbar {
    gap: 0.32rem;
    padding-inline: 0.45rem;
  }

  .member-dashboard .mobile-tabbar .mobile-tab-item {
    min-width: 88px;
    max-width: 102px;
    font-size: 0.58rem;
    padding-inline: 0.42rem;
    padding-top: 0.42rem;
    padding-bottom: 0.4rem;
  }

  .credit-card-stage-item p {
    font-size: 0.7rem;
  }

  .credit-card-tab-btn {
    padding: 0.42rem 0.76rem;
    font-size: 0.74rem;
  }

  .credit-card-topup-btn {
    flex: 1 1 100%;
  }

  .credit-card-apply-type-grid {
    gap: 0.34rem;
  }

  .credit-card-apply-type-chip {
    width: 100%;
    justify-content: flex-start;
  }

  .credit-card-ops {
    gap: 0.32rem;
  }

  .credit-card-ops .mini-btn {
    flex: 1 1 100%;
  }

  .credit-card-timeline-item {
    padding: 0.36rem 0.4rem;
  }

  .order-detail-inline .address-card-lines {
    font-size: 0.69rem;
  }

  html.elder-mode .member-dashboard .mobile-tabbar .mobile-tab-item {
    min-width: 104px;
    max-width: 132px;
    font-size: 0.68rem;
  }
}

@media (max-width: 980px) {
  #auth-card input,
  #auth-card select,
  #auth-card textarea,
  #member-dashboard input,
  #member-dashboard select,
  #member-dashboard textarea {
    font-size: 16px !important;
  }
}

input[data-lpignore="true"]::-webkit-credentials-auto-fill-button,
input[data-1p-ignore="true"]::-webkit-credentials-auto-fill-button,
input.security-mask::-webkit-credentials-auto-fill-button,
input[data-lpignore="true"]::-webkit-contacts-auto-fill-button,
input[data-1p-ignore="true"]::-webkit-contacts-auto-fill-button,
input.security-mask::-webkit-contacts-auto-fill-button,
input::-webkit-credentials-auto-fill-button,
input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
}

input[data-lpignore="true"]::-ms-reveal,
input[data-1p-ignore="true"]::-ms-reveal,
input.security-mask::-ms-reveal,
input::-ms-reveal {
  display: none;
}
