: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;
}

[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: 1fr auto 1fr;
  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;
}

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

.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;
}

.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(2.1rem, 4.1vw, 3.9rem);
  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);
}

.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;
}

.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;
}

.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.68rem, 2.5vw, 2.08rem);
  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.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);
}

.dashboard-status {
  color: #5b6678;
  font-size: 0.72rem;
  text-align: left;
  min-height: 1rem;
}

.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-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;
}

.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-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.46rem;
}

.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;
}

.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: #1f2a3a;
  font-size: 1.42rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1;
}

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

.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 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;
}

.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;
}

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-console {
    grid-template-columns: 1fr;
  }

  .console-side {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .console-content {
    padding: 1rem;
  }

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

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

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

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

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

  .metric-card {
    min-height: 98px;
  }

  .metric-card.wide {
    grid-column: span 2;
    min-height: 98px;
  }

  .console-times {
    border-left: 0;
    padding-left: 0;
  }
}

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

  .global-header {
    position: static;
  }

  .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;
  }

  .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.63rem;
  }

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

  .console-times {
    text-align: left;
    min-width: 0;
  }

  .console-content {
    padding: 0.9rem;
  }

  .console-grid {
    grid-template-columns: 1fr;
    gap: 0.66rem;
  }

  .metric-card,
  .metric-card.wide {
    grid-column: 1 / -1;
    min-height: 0;
  }

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

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

  .console-tools {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .gift-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-title {
    font-size: clamp(1.34rem, 6vw, 1.7rem);
  }

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

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