:root {
  --night: #0b1118;
  --coal: #141d25;
  --coal2: #202b35;
  --gold: #d8b885;
  --gold2: #f1dcb5;
  --cream: #f5f0e8;
  --text: #e9edf1;
  --muted: #b7c1ca;
  --line: rgba(255, 255, 255, 0.15);
  --bs-body-font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --bs-body-bg: var(--night);
  --bs-body-color: var(--text);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--night);
  color: var(--text);
  line-height: 1.75;
  min-width: 300px;
}
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: var(--gold);
}
img {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f5d59b !important;
  outline-offset: 2px;
}
.container {
  max-width: 1200px;
}
.notice {
  background: #080d12;
  color: #d0c0a7;
  font-size: 12px;
  padding: 6px 40px;
  text-align: center;
  letter-spacing: 0.03em;
  position: relative;
}
.notice-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d0c0a7;
  font-size: 18px;
  line-height: 1;
}
.notice-close:hover {
  background: #1d2630;
  color: var(--gold);
}
.site-header {
  background: rgba(11, 17, 24, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.site-header .navbar {
  min-height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}
.brand img {
  width: 75px;
  height: 73px;
  object-fit: contain;
}
.brand strong {
  display: block;
  color: #fff;
  font-size: 21px;
  letter-spacing: 0.09em;
  white-space: nowrap;
}
.brand small {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.navbar-nav .nav-link {
  color: #d9dde0 !important;
  font-size: 14px;
  padding: 12px 10px !important;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--gold) !important;
}
.mobile-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #626b72;
  color: var(--cream);
  border-radius: 7px;
  background: transparent;
  font-size: 25px;
  line-height: 1;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  border: 1px solid #4e5a62;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
}
.cart-badge {
  background: var(--gold);
  color: #17130d;
  padding: 0 6px;
  border-radius: 50px;
  min-width: 20px;
  text-align: center;
  font-weight: 700;
}
.btn-gold {
  background: var(--gold);
  color: #14171b;
  border: 1px solid var(--gold);
  font-weight: 750;
  letter-spacing: 0.02em;
}
.btn-gold:hover {
  background: var(--gold2);
  border-color: var(--gold2);
  color: #101417;
}
.btn-outline-gold {
  border: 1px solid #a68d67;
  color: var(--gold2);
  font-weight: 700;
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #111;
}
.btn-lg {
  padding: 12px 25px;
  font-size: 15px;
}
.breadcrumb-dark {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #b5bfc5;
}
.breadcrumb-dark a {
  color: #d9c3a2;
}
.breadcrumb-dark span:not(:last-child):after {
  content: " /";
  color: #7a858d;
  padding-left: 8px;
}
.hero {
  background: radial-gradient(circle at 75% 22%, #3c3126 0%, #141b22 40%, #0b1118 78%);
  position: relative;
  overflow: hidden;
  padding: 88px 0 78px;
}
.eyebrow {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.19em;
  font-weight: 750;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 20px 0;
}
.hero .lead {
  color: #d2d4d7;
  line-height: 1.9;
  font-size: 18px;
  max-width: 590px;
}
.hero-image {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 385px;
  background: #645448;
  box-shadow: 0 30px 70px #0008;
}
.hero-image img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}
.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 90px #0406086b;
  pointer-events: none;
}
.hero-stamp {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 1;
  background: #0d141dd9;
  border: 1px solid #e9cd9a80;
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--gold2);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.section {
  padding: 78px 0;
}
.section-sm {
  padding: 45px 0;
}
.surface {
  background: #151e27;
}
.surface-light {
  background: var(--cream);
  color: #222b33;
}
.surface-light .muted {
  color: #63717a;
}
.section-head {
  margin-bottom: 32px;
}
.section-head h2,
.page-head h1 {
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 800;
  line-height: 1.35;
  margin: 13px 0;
}
.muted {
  color: var(--muted) !important;
}
.body-lg {
  font-size: 17px;
  max-width: 820px;
}
.fine {
  font-size: 12px;
  color: var(--muted);
}
.gold {
  color: var(--gold);
}
.info-card,
.item-card,
.policy-card,
.form-panel {
  height: 100%;
  background: #1b2530;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.info-card h3,
.item-card h3 {
  font-size: 21px;
  font-weight: 750;
  color: #fff;
}
.info-card p,
.item-card p {
  color: var(--muted);
  font-size: 15px;
}
.number {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 20px;
}
.item-card img,
.product-cover {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: 12px;
}
.product-cover {
  height: 450px;
}
.pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 100px;
  background: #51412b;
  color: #ffe4bc;
  font-size: 12px;
}
.price {
  color: var(--gold2);
  font-size: 35px;
  font-weight: 800;
  line-height: 1.3;
}
.price-sm {
  color: var(--gold2);
  font-size: 27px;
  font-weight: 800;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.spec-row > span:first-child {
  color: var(--muted);
}
.spec-row strong {
  text-align: right;
}
.page-head {
  background: linear-gradient(125deg, #19242e, #080e13);
  padding: 63px 0 56px;
  border-bottom: 1px solid var(--line);
}
.page-head p {
  color: var(--muted);
  max-width: 760px;
  margin: 0;
}
.page-head .breadcrumb-dark {
  margin-bottom: 20px;
}
.policy-card h2 {
  font-size: 23px;
  color: var(--gold2);
  margin-bottom: 15px;
}
.policy-card h3 {
  font-size: 18px;
  margin-top: 20px;
}
.policy-card li,
.policy-card p {
  color: #d7dee4;
}
.policy-card ul,
.policy-card ol {
  padding-left: 24px;
}
.policy-card li {
  margin-bottom: 9px;
}
.table-dark-custom {
  --bs-table-bg: #18212b;
  --bs-table-color: #e9edf1;
  --bs-table-border-color: #42505d;
}
.table-dark-custom th {
  color: #f1d2a0;
  font-weight: 650;
}
.faq .accordion-item {
  background: #1b2530;
  color: #e9edf1;
  border: 1px solid var(--line);
}
.faq .accordion-button {
  background: #1b2530;
  color: #fff;
  font-weight: 650;
  box-shadow: none;
}
.faq .accordion-button:not(.collapsed) {
  color: var(--gold2);
  background: #26333f;
}
.faq .accordion-button::after {
  filter: invert(1);
}
.faq .accordion-body {
  color: #cbd5dc;
}
.offcanvas {
  background: #131b23;
  color: #fff;
}
.offcanvas .btn-close {
  filter: invert(1);
}
.offcanvas .nav-link {
  display: block;
  padding: 14px 8px;
  color: #e8edf2;
  border-bottom: 1px solid #34404c;
}
.offcanvas .nav-link.active {
  color: var(--gold);
}
.form-label {
  color: #dce2e8;
}
.form-control,
.form-select {
  background: #0e161e;
  border: 1px solid #56616b;
  color: #fff;
  min-height: 47px;
}
.form-control:focus,
.form-select:focus {
  background: #14202a;
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 0.16rem #d8b88530;
}
.form-control::placeholder {
  color: #8998a4;
}
.form-select option {
  background: #121920;
  color: #fff;
}
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid #68727b;
  border-radius: 8px;
  overflow: hidden;
}
.qty-control button {
  background: #25313d;
  color: #fff;
  border: 0;
  padding: 7px 16px;
  font-size: 20px;
}
.qty-control output {
  min-width: 54px;
  text-align: center;
  font-weight: 750;
}
.checkout-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.checkout-steps span {
  background: #27333e;
  color: #c2cbd2;
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 13px;
}
.checkout-steps span.active {
  background: var(--gold);
  color: #151a1f;
  font-weight: 800;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-line img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
}
.footer {
  background: #070d13;
  border-top: 1px solid var(--line);
  padding: 55px 0 20px;
}
.footer img {
  width: 69px;
  height: 67px;
  object-fit: contain;
}
.footer h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.footer p,
.footer li {
  font-size: 14px;
  color: #aebcc6;
}
.footer ul {
  padding: 0;
  list-style: none;
}
.footer li {
  margin-bottom: 9px;
}
.footer a {
  color: #c8d3d9;
}
.footer a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 12px;
  color: #91a0a9;
  margin-top: 30px;
}
.empty-state {
  padding: 65px 20px;
  text-align: center;
  background: #19242e;
  border: 1px dashed #55626e;
  border-radius: 14px;
}
.toast-container {
  z-index: 1090;
}
.toast {
  background: #24313c;
  color: #fff;
  border: 1px solid #86735a;
}
.back-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gold);
  color: #141820;
  border: 0;
  border-radius: 9px;
  padding: 10px 13px;
  display: none;
  z-index: 30;
}
.back-top.show {
  display: block;
}
.divider-gold {
  height: 2px;
  width: 46px;
  background: var(--gold);
  margin: 16px 0;
}
.photo-note {
  font-size: 12px;
  color: #bfc6cd;
  margin-top: 10px;
}
.contact-box {
  border-left: 2px solid var(--gold);
  padding-left: 20px;
  margin-bottom: 24px;
}
.logo-row {
  display: flex;
  gap: 15px;
  align-items: center;
}
.logo-row img {
  width: 85px;
  height: 80px;
}
.bg-photo {
  background:
    linear-gradient(90deg, #10171f 5%, #10171fe5 47%, #10171f3d 100%),
    url("../images/product-original.jpg") center/cover;
  min-height: 360px;
  padding: 60px 0;
}
.badge-review {
  display: inline-block;
  background: #4c3723;
  color: #f5d09a;
  border: 1px solid #8a6a48;
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 12px;
}
.contact-grid a {
  overflow-wrap: anywhere;
}
.alert-custom {
  border: 1px solid #79654a;
  background: #2e281f;
  color: #efdbc0;
  padding: 15px 19px;
  border-radius: 8px;
}
.top-summary {
  position: sticky;
  top: 113px;
}
.required:after {
  content: " *";
  color: #f4bd87;
}
@media (max-width: 991.98px) {
  .brand {
    min-width: 0;
  }
  .brand img {
    width: 63px;
    height: 60px;
  }
  .brand strong {
    font-size: 19px;
  }
  .site-header .navbar {
    min-height: 77px;
  }
  .hero {
    padding: 55px 0;
  }
  .hero-image {
    min-height: 330px;
  }
  .section {
    padding: 55px 0;
  }
  .top-summary {
    position: static;
  }
  .product-cover {
    height: 340px;
  }
}
@media (max-width: 575.98px) {
  .notice {
    font-size: 10px;
  }
  .site-header .navbar {
    min-height: 70px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 57px;
    height: 54px;
  }
  .brand strong {
    font-size: 17px;
  }
  .brand small {
    font-size: 8px;
    letter-spacing: 0.12em;
  }
  .cart-link {
    justify-content: center;
    gap: 4px;
    min-width: 40px;
    min-height: 40px;
    padding: 6px;
  }
  .cart-link > svg {
    width: 20px;
    height: 20px;
    flex: none;
  }
  .cart-label {
    display: none;
  }
  .mobile-toggle {
    width: 39px;
    height: 41px;
  }
  .hero {
    padding: 43px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero .lead {
    font-size: 16px;
  }
  .hero-image {
    min-height: 270px;
  }
  .section {
    padding: 47px 0;
  }
  .section-head h2,
  .page-head h1 {
    font-size: 30px;
  }
  .page-head {
    padding: 43px 0 40px;
  }
  .info-card,
  .item-card,
  .policy-card,
  .form-panel {
    padding: 20px;
  }
  .product-cover {
    height: 265px;
  }
  .cart-line {
    flex-wrap: wrap;
  }
  .cart-line img {
    width: 100%;
    height: 180px;
  }
  .price {
    font-size: 30px;
  }
  .footer {
    padding-top: 42px;
  }
  .bg-photo {
    min-height: 290px;
    padding: 46px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
 * 會員中心（login.html / member.html / 手機下方分頁列）
 * ========================================================= */

/* 頁首會員按鈕 */
.member-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  border: 1px solid #4e5a62;
  border-radius: 7px;
  padding: 8px 12px;
  font-size: 13px;
}
.member-link svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}
.member-link span {
  max-width: 9em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文字型按鈕 */
.member-text-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gold);
  font-size: inherit;
}
.member-text-btn:hover {
  color: var(--gold2);
  text-decoration: underline;
}

/* 等級標籤 */
.tier-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.tier-gold {
  background: var(--gold);
  color: #17130d;
}
.tier-bronze {
  background: #8a5a3b;
  color: #fbe3cf;
}

/* 會員卡 */
.member-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #26333f, #141d25);
  border: 1px solid #6d5b43;
  border-radius: 16px;
  padding: 24px;
}
.member-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2e281f;
  border: 2px solid var(--gold);
  color: var(--gold2);
  font-size: 26px;
  font-weight: 800;
}
.member-hello {
  margin: 0 0 6px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.member-hello span {
  color: var(--gold2);
}
.member-id {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  background: #0e161e;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

/* 側邊選單（桌機） */
.member-aside {
  position: sticky;
  top: 113px;
}
.member-menu {
  margin-top: 16px;
  padding: 8px;
  background: #1b2530;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.member-menu a,
.member-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #d9dde0;
  font-size: 14px;
  text-align: left;
}
.member-menu svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.member-menu a:hover,
.member-menu button:hover {
  background: #25313d;
  color: var(--gold2);
}
.member-menu a.active {
  background: #2e281f;
  color: var(--gold2);
}
.member-menu hr {
  margin: 6px 0;
  border-color: var(--line);
}

/* 數據卡 */
.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.member-stats > div + div {
  border-left: 1px solid var(--line);
}
.member-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.member-stats strong {
  display: block;
  color: var(--gold2);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.4;
}

/* 功能分組與按鈕 */
.member-group-title {
  margin: 28px 0 12px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.member-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 112px;
  padding: 18px 8px;
  background: #1b2530;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #e9edf1;
  font-size: 14px;
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.member-tile:hover {
  border-color: var(--gold);
  color: var(--gold2);
  transform: translateY(-2px);
}
.member-tile svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

/* 功能畫面標題列 */
#memberView {
  scroll-margin-top: 100px;
}
.member-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.member-view-head h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.member-back {
  color: var(--gold);
  font-size: 14px;
}

/* 公告 */
.member-notice {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.member-notice:first-child {
  padding-top: 0;
}
.member-notice:last-child {
  border-bottom: 0;
}
.member-notice time {
  color: var(--muted);
  font-size: 12px;
}
.member-notice h3 {
  margin: 2px 0 4px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
.member-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* 組織圖 */
.member-tree-wrap {
  overflow-x: auto;
}
.member-tree,
.member-tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.member-tree ul {
  margin-left: 18px;
  padding-left: 18px;
  border-left: 1px dashed #55626e;
}
.member-tree li {
  position: relative;
  padding: 6px 0;
}
.member-tree ul > li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 24px;
  width: 14px;
  border-top: 1px dashed #55626e;
}
.member-node {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #0e161e;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  white-space: nowrap;
}
.member-node.is-self {
  border-color: var(--gold);
}
.member-node small {
  color: var(--muted);
}
.member-node .tier-badge {
  padding: 1px 8px;
  font-size: 11px;
}

/* 帳戶紀錄增減 */
.member-plus {
  color: #9fd8a8;
}
.member-minus {
  color: #f4bd87;
}

/* 登入頁展示帳號 */
.member-demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.member-demo:last-child {
  border-bottom: 0;
}
.member-demo strong {
  display: block;
  color: #fff;
}

/* 灰色狀態標籤（審核中、待結算、待確認） */
.pill-muted {
  background: #27333e;
  color: #c2cbd2;
}

/* 實名認證狀態標籤 */
.kyc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}
.kyc-none {
  background: #27333e;
  color: #c2cbd2;
  border-color: #42505d;
}
.kyc-pending {
  background: #2e281f;
  color: #f1d2a0;
  border-color: #79654a;
}
.kyc-approved {
  background: #1f3327;
  color: #9fd8a8;
  border-color: #3f6b4c;
}
.kyc-rejected {
  background: #3a2220;
  color: #f4b4a6;
  border-color: #7a3f37;
}

/* 會員首頁提醒列 */
.member-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* 認證狀態／提領鎖定畫面 */
.kyc-status {
  padding: 40px 24px;
  text-align: center;
}
.kyc-status > svg {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  color: var(--gold);
}
.kyc-status .kyc-badge {
  margin: 0 0 14px;
  padding: 4px 16px;
  font-size: 14px;
}
.kyc-status h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.kyc-status p {
  color: var(--muted);
}
.kyc-demo {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed #55626e;
}
.kyc-demo .btn {
  margin: 4px;
}

/* 證件上傳預覽 */
.kyc-preview {
  display: grid;
  place-items: center;
  height: 150px;
  margin-bottom: 8px;
  overflow: hidden;
  background: #0e161e;
  border: 1px dashed #55626e;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}
.kyc-preview svg {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto 6px;
  color: var(--gold);
}
.kyc-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-control[type="date"] {
  color-scheme: dark;
}
.form-control::file-selector-button {
  background: #25313d;
  color: #fff;
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button {
  background: #2f3d4a;
}

/* 可提領金額 */
.member-amount {
  color: var(--gold2);
  font-size: 34px;
  font-weight: 800;
  line-height: 1.3;
}

/* 手機下方分頁列 */
.member-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 17, 24, 0.97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.member-tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 7px;
  color: #aebcc6;
  font-size: 12px;
  line-height: 1.4;
}
.member-tabbar svg {
  width: 22px;
  height: 22px;
}
.member-tabbar a.active {
  color: var(--gold);
}
.member-tabbar .cart-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 6px);
  min-width: 16px;
  padding: 0 4px;
  font-size: 10px;
  line-height: 16px;
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  .back-top {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .toast-container {
    padding-bottom: 76px !important;
  }
  .member-aside {
    position: static;
  }
}
@media (max-width: 575.98px) {
  .member-card {
    padding: 18px;
  }
  .member-avatar {
    width: 54px;
    height: 54px;
    font-size: 22px;
  }
  .member-hello {
    font-size: 18px;
  }
  .member-stats strong {
    font-size: 22px;
  }
  .member-tile {
    min-height: 96px;
    padding: 14px 4px;
    font-size: 13px;
  }
  .member-tile svg {
    width: 28px;
    height: 28px;
  }
  /* KYC 步驟列：手機版固定一行四格 */
  .kyc-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .kyc-steps span {
    min-width: 0;
    padding: 5px 1px;
    font-size: 10px;
    text-align: center;
    white-space: nowrap;
  }
  .member-banner {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .member-banner > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .member-banner > .btn {
    flex: none;
    white-space: nowrap;
  }
}
