[hidden] {
  display: none !important;
}


:root {
  --bg: #f7f5ee;
  --surface: #ffffff;
  --surface-soft: #f0efe7;
  --text: #161616;
  --muted: #57534a;
  --line: #d8d2c4;
  --brand: #111111;
  --brand-green: #1f7a34;
  --brand-green-dark: #155626;
  --accent: #efe8d3;
  --shadow: 0 16px 40px rgba(20, 20, 20, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(31, 122, 52, 0.10), transparent 26%),
    linear-gradient(180deg, #fbfaf6 0%, #f1ede3 100%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
  flex: 1;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 18px 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer-link {
  color: var(--muted);
  text-decoration: none;
}

.site-footer-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.site-footer-metric {
  margin-top: 8px;
  color: rgba(87, 83, 74, 0.62);
  font-weight: 600;
}

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

a {
  color: inherit;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.topbar,
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

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

.button-link,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.button-link:hover,
button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.button-light {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.button-dark {
  background: var(--brand);
  color: #fff;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

input:focus,
select:focus {
  outline: 2px solid rgba(31, 122, 52, 0.18);
  border-color: var(--brand-green);
}

form {
  margin: 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

small {
  display: block;
  margin-top: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 0.92rem;
  color: var(--muted);
}

.narrow {
  max-width: 560px;
  margin: 9vh auto 0;
}

.brand-block h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 6px;
}

.brand-mark {
  margin-bottom: 8px;
  color: var(--brand-green);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.homepage-brand-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.homepage-brand-title {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  line-height: 1;
}

.homepage-brand-title a {
  color: var(--brand-green);
  text-decoration: none;
}

.homepage-brand-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.brand-subtitle {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(31, 122, 52, 0.08), rgba(255, 255, 255, 0.86)),
    var(--surface);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e4f1e7;
  color: var(--brand-green-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 640px;
}

.hero-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  margin-top: 20px;
}

.hero-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-highlight {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: 24px;
  background: url("/static/img/song-watermark.svg") center center / 78% auto no-repeat, linear-gradient(160deg, #1b5f2b 0%, #2b8e43 100%);
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-highlight span,
.hero-highlight strong {
  position: relative;
  z-index: 1;
}

.hero-highlight span {
  display: block;
  opacity: 0.82;
  margin-bottom: 8px;
}

.hero-highlight strong {
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.15;
}

.hero-highlight strong br {
  display: block;
  content: "";
}

.hero-rotating-copy {
  display: block;
  min-height: 4.8rem;
  opacity: 1;
  will-change: opacity;
}

.online-presence-title strong {
  font-size: 1.1em;
}

.online-presence {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.online-presence-title {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
}

.online-presence-grid {
  display: grid;
  grid-template-columns: repeat(4, 25%);
  gap: 0;
}

.online-presence-item {
  width: 100%;
}

.online-presence-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.online-presence-item strong {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1;
}

.online-presence-item span {
  margin: 0;
  opacity: 0.78;
  font-size: 0.88rem;
}

.online-presence-item-merchant-active strong {
  color: #f7d774;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.entry-card {
  padding: 0;
  overflow: hidden;
}

.entry-media {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--surface-soft);
}

.entry-body {
  padding: 22px 22px 24px;
}

.entry-body h2 {
  margin-bottom: 10px;
}

.entry-body p {
  color: var(--muted);
  min-height: 48px;
}

.map-card {
  padding: 0;
  overflow: hidden;
}

.map-heading {
  padding: 24px 24px 0;
}

.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1080px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .landing-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button-link {
    flex: 1;
  }

  .hero-form,
  .grid.two,
  .entry-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 2rem;
  }

  .hero-highlight strong,
  .hero-rotating-copy {
    font-size: 2.3rem;
    line-height: 1.15;
  }

  .hero-rotating-copy {
    min-height: 5.8rem;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  th,
  td {
    font-size: 0.95rem;
  }

  .entry-media {
    height: 200px;
  }
}


.compact-header {
  margin-bottom: 20px;
}

.auth-card {
  margin-top: 3vh;
}

.auth-copy,
.auth-links p,
.page-intro p,
.merchant-address,
.product-card p,
.intro-card p {
  color: var(--muted);
}

.form-alert {
  color: #b55233;
  font-weight: 700;
}

.stack-form {
  display: grid;
  gap: 4px;
}

.form-shell {
  max-width: 960px;
  margin: 0 auto 24px;
}

.page-intro {
  margin-bottom: 18px;
}

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.intro-card {
  margin-bottom: 22px;
}

.merchant-list,
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.merchant-card,
.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.merchant-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.merchant-card h3,
.product-card h3 {
  margin-bottom: 0;
}

.merchant-id {
  margin-bottom: 6px;
  color: var(--brand-green);
  font-size: 0.9rem;
  font-weight: 700;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e5f2e7;
  color: var(--brand-green-dark);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.data-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.data-points span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.94rem;
}

.big-points span {
  background: #eaf3eb;
}

@media (max-width: 1080px) {
  .merchant-list,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .merchant-list,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .merchant-card-head {
    flex-direction: column;
  }

  .action-row {
    flex-direction: column;
  }

  .action-row .button-link,
  .action-row button {
    width: 100%;
  }
}


.dashboard-panel table {
  margin-top: 8px;
}

.compact-actions {
  gap: 8px;
}

.compact-actions form {
  margin: 0;
}

.dashboard-panel .stack-form input,
.dashboard-panel .stack-form select {
  margin-bottom: 10px;
}

.compact-search {
  margin-top: 18px;
}

.search-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.search-summary p {
  margin: 0;
  color: var(--muted);
}

.inline-summary {
  margin-top: 16px;
}

.inline-summary strong,
.search-summary strong {
  color: var(--text);
}

@media (max-width: 760px) {
  .search-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

.location-button {
  border: none;
  cursor: pointer;
}

.location-status {
  width: 100%;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.nearby-points {
  margin-top: 4px;
}

.compact-table-form {
  gap: 6px;
  min-width: 220px;
}

.compact-table-form input,
.compact-table-form select {
  margin-bottom: 0;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--muted);
}

.compact-filter-form {
  margin-top: 16px;
}

.location-flash {
  animation: locationFlash 0.5s ease-in-out 2;
}

@keyframes locationFlash {
  0%, 100% {
    border-color: rgba(39, 174, 96, 0.25);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.0);
  }
  50% {
    border-color: #27ae60;
    box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.16);
  }
}

textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  color: var(--text);
}

.otp-card {
  max-width: 960px;
  margin: 0 auto;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 18px 0 22px;
}

.otp-panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 20px;
}

.otp-qr-panel {
  text-align: center;
}

.otp-qr {
  width: min(100%, 280px);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.otp-secret {
  margin-top: 14px;
  color: var(--muted);
  word-break: break-all;
}

.otp-form {
  max-width: 520px;
}

.otp-download-links {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.muted-note {
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 760px) {
  .otp-grid {
    grid-template-columns: 1fr;
  }
}

.otp-notice {
  background: #eef7ef;
  border: 1px solid rgba(31, 122, 52, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--brand-green-dark);
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  flex: 0 0 18px;
}

.inline-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.inline-check input[type="checkbox"] {
  margin-top: 2px;
}

.profile-password-intro {
  margin-top: 18px;
}

.merchant-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.merchant-sidebar {
  position: sticky;
  top: 24px;
}

.merchant-sidebar-nav,
.merchant-sidebar-group {
  display: grid;
  gap: 10px;
}

.merchant-sidebar-group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.merchant-sidebar-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.merchant-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f5f2e8;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.merchant-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 122, 52, 0.16);
}

.merchant-nav-link.active {
  background: #1f7a34;
  color: #fff;
  border-color: #1f7a34;
}

.merchant-nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.85rem;
}

.merchant-content {
  display: grid;
  gap: 22px;
}

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

  .merchant-sidebar {
    position: static;
  }
}

.merchant-order-groups {
  display: grid;
  gap: 18px;
}

.merchant-order-group {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.merchant-order-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.merchant-order-group-head h3 {
  margin-bottom: 0;
}

.merchant-product-manage-list {
  display: grid;
  gap: 18px;
}

.merchant-product-manage {
  padding: 20px;
}

.merchant-product-manage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.merchant-product-manage-head h3 {
  margin-bottom: 0;
}

.secondary-action {
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(0, 0, 0, 0.12);
}


.otp-code-group {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.otp-digit {
  min-height: 60px;
  padding: 0;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 18px;
}

.otp-digit:focus {
  outline: 2px solid rgba(31, 122, 52, 0.22);
  border-color: var(--brand-green);
}

@media (max-width: 760px) {
  .otp-code-group {
    gap: 8px;
  }

  .otp-digit {
    min-height: 54px;
    font-size: 1.35rem;
    border-radius: 14px;
  }
}

.identity-option {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(36, 60, 41, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.identity-option + .identity-option {
  margin-top: 0.85rem;
}

.identity-option input[type="radio"] {
  margin-top: 0.15rem;
}

.identity-option span {
  display: grid;
  gap: 0.25rem;
}

.identity-option small {
  color: var(--muted);
  line-height: 1.5;
}

