:root {
  --fresh-primary: #ff5f93;
  --fresh-primary-dark: #10233f;
  --fresh-accent: #2d8cff;
  --fresh-bg: #fff6f7;
  --fresh-text: #10233f;
  --fresh-muted: #667085;
  --fresh-line: #ead7de;
  --fresh-soft: #fff0f4;
  --acg-primary: #ff5f93;
  --acg-secondary: #2d8cff;
  --acg-danger: #e73573;
  --acg-text-strong: #10233f;
  --acg-text-muted: #667085;
  --acg-card-bg: #ffffff;
  --acg-border: #ead7de;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--fresh-bg) !important;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 246, 247, 0.96)),
    linear-gradient(90deg, rgba(255, 140, 166, 0.1) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 35, 63, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #fff7f7 0%, #f5fbff 58%, #fff0f4 100%) !important;
  background-size: auto, 44px 44px, 44px 44px, auto !important;
  background-attachment: fixed !important;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: var(--fresh-text) !important;
  letter-spacing: 0 !important;
}

a {
  text-decoration: none;
}

.site-footer {
  margin-top: 34px;
  padding: 18px 0 24px;
  color: rgba(16, 35, 63, 0.64);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid rgba(16, 35, 63, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.site-footer a {
  color: #476582;
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--fresh-primary);
  text-decoration: underline;
}

.brand-logo-wide {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff8f8;
  border: 1px solid rgba(16, 35, 63, 0.08);
  padding: 3px;
}

.nav-bonus-line {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 6px;
  padding: 0 12px;
  border: 1px solid rgba(231, 53, 115, 0.22);
  border-radius: 999px;
  color: #e73573;
  background: #fff0f4;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.auth-logo-wide {
  width: min(260px, 72%);
  height: auto;
  display: block;
  border-radius: 18px;
  filter: drop-shadow(0 12px 24px rgba(16, 35, 63, 0.16));
}

.navbar-fresh {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06) !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid rgba(255, 95, 147, 0.18);
  border-radius: 0 0 18px 18px;
  margin-bottom: 20px;
}

.navbar-fresh .nav-link {
  font-weight: 600;
  color: var(--fresh-text) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-fresh .nav-link:hover,
.navbar-fresh .nav-link.active {
  background-color: #ffe3eb !important;
  color: var(--fresh-primary) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2310233f' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.brand-hero {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 14px;
  padding: 0;
  width: calc(100% + 1.5rem);
  max-width: calc(100% + 1.5rem);
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 241, 245, 0.96) 48%, rgba(238, 247, 255, 0.97) 100%),
    repeating-linear-gradient(90deg, rgba(16, 35, 63, 0.04) 0 1px, transparent 1px 36px);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.07);
}

.brand-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 44%, rgba(255, 255, 255, 0.32) 62%, rgba(255, 255, 255, 0.04) 100%);
  pointer-events: none;
}

.brand-hero::after {
  content: "";
  position: absolute;
  inset: auto 18px 12px 18px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 95, 147, 0.55) 0 10px, transparent 10px 18px);
  pointer-events: none;
}

.brand-hero-copy,
.brand-hero-art {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.brand-hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "kicker"
    "title"
    "voice";
  align-content: center;
  justify-items: start;
  gap: 10px;
  width: min(450px, 46%);
  min-height: 240px;
  padding: 24px 0 24px 30px;
}

.brand-kicker {
  grid-area: kicker;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  color: #e73573;
  background: #fff0f4;
  border: 1px solid rgba(255, 95, 147, 0.2);
  font-size: 13px;
  font-weight: 800;
}

.brand-hero h1 {
  grid-area: title;
  max-width: none;
  margin: 0;
  color: #10233f;
  font-size: 34px;
  line-height: 1.06;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.brand-hero p {
  grid-area: intro;
  max-width: none;
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.brand-voice-card {
  grid-area: voice;
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 95, 147, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.05);
}

.brand-voice-card strong {
  color: #d9467f;
  font-family: "KaiTi", "楷体", "STKaiti", "Songti SC", "Microsoft YaHei", serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86), 0 5px 14px rgba(217, 70, 127, 0.12);
}

.brand-voice-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.brand-hero-actions {
  grid-area: actions;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0;
  max-width: 156px;
}

.brand-hero-actions .btn {
  padding: 6px 10px !important;
  font-size: 13px;
  line-height: 1.2;
}

.brand-feature-row {
  grid-area: features;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 0;
  max-width: 100%;
}

.brand-feature-row span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 8px;
  color: #10233f;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(16, 35, 63, 0.08);
  font-size: 11px;
  font-weight: 800;
  min-width: 0;
}

.customer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  max-width: 220px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 95, 147, 0.22);
  border-radius: 12px;
  color: #10233f;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.06);
  font-weight: 900;
}

.customer-pill img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

.customer-pill span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 95, 147, 0.22);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.06);
}

.customer-icon-link img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
}

.user-login-box-mobile {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  display: none !important;
}

.mobile-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 95, 147, 0.2);
  border-radius: 999px;
  color: #10233f;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 6px 14px rgba(16, 35, 63, 0.06);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.brand-hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  z-index: 0;
  overflow: hidden;
}

.brand-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 14px;
  filter: drop-shadow(0 12px 18px rgba(16, 35, 63, 0.12));
}

.side-brand-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 95, 147, 0.18);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7f8, #f5fbff);
}

.side-brand-card img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(16, 35, 63, 0.08);
}

.side-brand-card strong {
  color: #10233f;
  font-size: 15px;
  line-height: 1.1;
}

.side-brand-card small {
  color: var(--fresh-muted);
  line-height: 1.45;
}

.notice-panel {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f5 60%, #f2f8ff 100%) !important;
  border-left: 5px solid var(--fresh-primary) !important;
}

.notice-icon {
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(16, 35, 63, 0.08);
}

.service-advantage-panel {
  margin-top: 32px !important;
}

.service-advantage-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 18px;
  border-bottom: 1px dashed rgba(16, 35, 63, 0.12);
}

.service-advantage-head p {
  margin-top: 8px;
  line-height: 1.8;
}

.service-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.service-advantage-item {
  padding: 16px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.service-advantage-item strong {
  display: block;
  color: #10233f;
  font-size: 15px;
  margin-bottom: 8px;
}

.service-advantage-item p {
  margin: 0;
  color: var(--fresh-muted);
  font-size: 14px;
  line-height: 1.72;
}

.order-flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.order-flow-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 95, 147, 0.16);
  color: #10233f;
  font-weight: 700;
  line-height: 1.3;
}

.order-flow-strip b {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6f9f 0%, #2d8cff 100%);
  color: #fff;
  font-size: 12px;
}

.panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.06) !important;
  border: 1px solid rgba(16, 35, 63, 0.06) !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

.panel-header {
  border-bottom: 1px dashed var(--fresh-line) !important;
  padding-bottom: 15px !important;
  margin-bottom: 20px !important;
}

.panel-title {
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}

.icon {
  color: var(--fresh-primary) !important;
  background: #ffe3eb !important;
  padding: 10px;
  border-radius: 12px;
  margin-right: 12px;
}

.switch-category,
.chip {
  background: #fff !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  border: 1px solid var(--fresh-line) !important;
  font-weight: 600;
  color: var(--fresh-text);
}

.switch-category.is-primary,
.switch-category.active,
.chip.is-primary {
  background: linear-gradient(135deg, #ff7ca7 0%, #ff4f8a 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(255, 95, 147, 0.24) !important;
}

.form-control,
.form-select,
textarea.form-control {
  border-radius: 12px !important;
  border: 1px solid var(--fresh-line) !important;
  padding: 12px 15px !important;
  background: #f9fafb !important;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: var(--fresh-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(255, 95, 147, 0.18) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6f9f 0%, #e73573 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 9px 20px rgba(255, 95, 147, 0.26) !important;
}

.btn-light,
.btn-outline-success {
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.top-search-box {
  display: flex;
  align-items: center;
  height: 42px;
  min-width: 220px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 0 12px 0 10px;
}

.top-search-icon {
  display: flex;
  align-items: center;
  margin-right: 8px;
  color: #9ca3af;
  font-size: 14px;
}

.top-search-input {
  width: 170px;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
  line-height: 42px;
  font-size: 14px;
  color: #374151;
}

.acg-card {
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 8px !important;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.08) !important;
  box-shadow: 0 12px 26px rgba(16, 35, 63, 0.06) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(16, 35, 63, 0.11) !important;
}

.other-service-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.94)),
    #fff;
  border-color: rgba(45, 140, 255, 0.16) !important;
}

.other-service-card .goods-title {
  margin-top: 8px;
}

.minor-service-card {
  border-color: rgba(255, 95, 147, 0.18) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96)),
    #fff;
}

.home-record-query-card {
  border-radius: 20px;
  background: #fff;
}

.home-record-query-card p {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.other-service-points {
  display: grid;
  gap: 8px;
}

.other-service-points span {
  display: block;
  padding: 8px 10px;
  border: 1px solid rgba(45, 140, 255, 0.14);
  border-radius: 8px;
  background: rgba(45, 140, 255, 0.08);
  color: #10233f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.minor-service-points {
  display: grid;
  gap: 8px;
}

.minor-service-points span {
  display: block;
  padding: 9px 11px;
  border: 1px solid rgba(255, 95, 147, 0.16);
  border-radius: 8px;
  background: rgba(255, 95, 147, 0.07);
  color: #10233f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.template-card-thumb {
  height: 168px;
  background: linear-gradient(135deg, #fff4f7, #edf7ff);
  border-radius: 0 !important;
}

.template-card-thumb .item-cover {
  object-fit: contain;
  padding: 18px;
}

.template-card-thumb .brand-card-art {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
  background: #fff;
}

.badge-soft {
  border-radius: 999px !important;
  font-weight: 800;
}

.badge-soft-primary {
  background: #fff0f4 !important;
  color: #d92d70 !important;
  border-color: rgba(255, 95, 147, 0.28) !important;
}

.badge-soft-success {
  background: #edf7ff !important;
  color: #1263b3 !important;
  border-color: rgba(45, 140, 255, 0.24) !important;
}

.badge-soft-info {
  background: #f5f7fb !important;
  color: #10233f !important;
  border-color: rgba(16, 35, 63, 0.14) !important;
}

.badge-soft-danger {
  background: #fff1f1 !important;
  color: #d92d20 !important;
  border-color: rgba(217, 45, 32, 0.2) !important;
}

.badge-soft-muted {
  background: #f4f5f7 !important;
  color: #667085 !important;
  border-color: rgba(16, 35, 63, 0.12) !important;
}

.price,
.goods-price {
  color: #e73573 !important;
}

.price .unit {
  color: #ff5f93 !important;
}

.goods-title,
.goods-name {
  color: #10233f !important;
}

.goods-section {
  border-color: rgba(16, 35, 63, 0.08) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-radius: 12px !important;
}

.goods-image {
  border-radius: 8px !important;
  border-color: #fff !important;
  object-fit: cover !important;
}

.sku {
  border: 1px solid rgba(16, 35, 63, 0.08) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

.sku.is-primary {
  color: #fff !important;
  background: linear-gradient(90deg, #ff7ca7, #ff4f8a) !important;
  border-color: transparent !important;
}

.brand-inline-image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px !important;
  border: 1px solid rgba(16, 35, 63, 0.08);
}

[data-home-card][hidden],
[data-home-empty][hidden],
[data-category-panel][hidden] {
  display: none !important;
}

.message {
  min-height: 24px;
  margin-top: 12px;
  color: #0f766e;
  font-weight: 800;
}

.message.error {
  color: #b91c1c;
}

.muted {
  color: var(--fresh-muted);
}

.result-card {
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(229, 231, 235, 0.92);
  border-radius: 16px;
  padding: 18px;
  margin-top: 16px;
  text-align: left;
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0f4;
  color: #d92d70;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0 !important;
}

.status-badge.status-paid,
.status-badge.status-completed {
  background: linear-gradient(135deg, #ff6f9f, #e73573) !important;
  color: #fff !important;
}

.load-more-end .fa-check-circle {
  color: #e73573 !important;
}

.risk-prompt-ack-row .risk-prompt-ack {
  accent-color: #ff5f93 !important;
}

.risk-prompt-ack-row .risk-prompt-ack:checked {
  background-color: #ff5f93 !important;
  border-color: #ff5f93 !important;
}

.risk-prompt-layer .layui-layer-btn .layui-layer-btn1 {
  border-color: #ff5f93 !important;
  background: linear-gradient(135deg, #ff6f9f 0%, #e73573 100%) !important;
  box-shadow: 0 10px 20px rgba(255, 95, 147, 0.22) !important;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn.primary,
.btn.secondary {
  border-radius: 12px;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f 0%, #e73573 100%);
  box-shadow: 0 8px 18px rgba(255, 95, 147, 0.22);
}

.btn.secondary {
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--fresh-line);
}

.btn.small {
  padding: 8px 12px;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 8px;
}

.field {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--fresh-text);
}

.field.wide {
  min-width: 0;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--fresh-line);
  background: #f9fafb;
  padding: 10px 12px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.file-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  background: #f9fafb;
  color: #0f172a;
  font-weight: 700;
}

.file-button {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.admin-console-page {
  min-height: 100vh;
  background: #f5f7fb;
}

.admin-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 16px;
  border-right: 1px solid #e2e8f0;
  background: #ffffff;
}

.admin-brand {
  display: grid;
  gap: 10px;
  color: #10233f;
  text-decoration: none;
  font-weight: 900;
}

.admin-brand img {
  width: min(172px, 100%);
  height: auto;
  object-fit: contain;
}

.admin-brand span {
  font-size: 15px;
}

.admin-main {
  min-width: 0;
  padding: 24px;
}

.admin-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-eyebrow {
  margin: 0 0 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.admin-topbar h1 {
  margin: 0;
  color: #10233f;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.admin-auth-box {
  display: grid;
  grid-template-columns: minmax(190px, 260px) auto;
  gap: 10px;
  align-items: center;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tab {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  color: #475569;
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.admin-tab.active {
  color: #0f766e;
  border-color: #99f6e4;
  background: #ecfdf5;
}

.admin-view[hidden] {
  display: none !important;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.admin-kpi-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.admin-kpi-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.admin-kpi-card strong {
  color: #10233f;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.admin-kpi-card small {
  color: #667085;
  font-weight: 700;
}

.admin-kpi-card.kpi-primary {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.admin-overview-grid:has(.admin-kpi-card:nth-child(5)) {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.boss-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.boss-hero-card,
.boss-action-card,
.boss-quick-card {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

.boss-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: #ffffff;
  background: #10233f;
  border-color: #10233f;
}

.boss-hero-card span {
  display: block;
  margin-bottom: 8px;
  color: #bae6fd;
  font-size: 13px;
  font-weight: 900;
}

.boss-hero-card strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.boss-hero-card p {
  margin: 8px 0 0;
  color: #dbeafe;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.boss-action-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.boss-action-card .feedback-stack {
  max-height: 310px;
  overflow: auto;
}

.boss-action-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.boss-action-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.boss-action-head strong {
  color: #10233f;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.boss-action-head span {
  color: #667085;
  font-size: 13px;
  font-weight: 750;
}

.boss-action-head b {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 24px;
  font-weight: 900;
}

.boss-action-danger .boss-action-head b {
  color: #b42318;
  background: #fee4e2;
}

.boss-action-primary .boss-action-head b {
  color: #075985;
  background: #e0f2fe;
}

.boss-row-list {
  display: grid;
  gap: 8px;
}

.boss-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #10233f;
  text-align: left;
}

.boss-static-row {
  cursor: default;
}

.boss-order-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.boss-order-row b,
.boss-order-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-order-row small {
  color: #667085;
  font-weight: 750;
}

.boss-order-row em {
  min-width: 70px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.boss-empty {
  display: grid;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  font-weight: 800;
}

.boss-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.boss-quick-card {
  display: grid;
  gap: 5px;
  padding: 15px;
  color: #10233f;
  text-align: left;
}

.boss-quick-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.boss-quick-card strong {
  color: #10233f;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.boss-quick-card small {
  color: #667085;
  font-weight: 750;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 12px;
}

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

.admin-workbench-card {
  min-height: 100%;
}

.admin-mini-list {
  display: grid;
  gap: 8px;
}

.admin-mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #10233f;
  text-align: left;
}

.admin-mini-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-mini-row b,
.admin-mini-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-mini-row small {
  color: #667085;
  font-weight: 700;
}

.admin-mini-row em {
  min-width: 74px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #e0f2fe;
  color: #075985;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.feedback-stack {
  display: grid;
  gap: 10px;
}

.feedback-item {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

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

.feedback-head > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.feedback-head strong,
.feedback-head span,
.feedback-meta span,
.feedback-item p {
  overflow-wrap: anywhere;
}

.feedback-head span {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.feedback-item p {
  margin: 0;
  color: #10233f;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 750;
}

.feedback-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.order-feedback-card {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.admin-status-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-status-matrix div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-status-matrix span {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.admin-status-matrix strong {
  color: #10233f;
  font-size: 20px;
  font-weight: 900;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

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

.stat-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

.stat-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.stat-card strong {
  color: #10233f;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.stat-card small {
  color: #667085;
  font-weight: 700;
}

.stat-lines {
  display: grid;
  gap: 8px;
}

.stat-lines div,
.stats-table-head,
.stats-table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 1fr 1fr;
  gap: 10px;
  align-items: center;
}

.stat-lines div {
  grid-template-columns: 1fr auto;
  padding: 8px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.06);
}

.stat-lines b,
.stats-table-head {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.stat-lines strong {
  font-size: 18px;
}

.stats-table {
  display: grid;
  gap: 0;
  overflow-x: auto;
}

.stats-table-head,
.stats-table-row {
  min-width: 760px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(16, 35, 63, 0.08);
}

.stats-table-row span {
  color: #10233f;
  font-weight: 700;
}

.order-card,
.admin-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

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

.order-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  color: #475569;
  font-size: 14px;
}

.simple-order-card {
  gap: 16px;
}

.simple-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 900;
}

.simple-status.is-working {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde68a;
}

.simple-status.is-done {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.simple-status.is-failed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.order-failure-notice {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
}

.order-failure-notice strong {
  color: #b91c1c;
}

.simple-order-meta,
.simple-download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.simple-order-meta span,
.simple-download-grid section {
  min-width: 0;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
}

.simple-order-meta b {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: 12px;
}

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

.simple-download-grid section {
  display: grid;
  gap: 10px;
}

.simple-download-grid strong {
  color: #0f172a;
}

.order-table-wrap {
  display: grid;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.order-table-head,
.order-table-row {
  display: grid;
  grid-template-columns: 48px minmax(170px, 1.4fr) minmax(150px, 1.1fr) minmax(120px, 0.9fr) minmax(110px, 0.8fr) minmax(108px, 0.8fr) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 980px;
}

.order-table-head {
  padding: 12px 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.order-table-row {
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
}

.order-table-row:last-child {
  border-bottom: 0;
}

.order-table-row > span {
  min-width: 0;
  color: #334155;
  font-weight: 800;
}

.order-table-row b,
.order-table-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-table-row small {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.order-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.order-table-row.is-open {
  background: #f8fafc;
}

.order-table-detail {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px 0 4px 60px;
}

.admin-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: #475569;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.service-sku-list .service-option {
  cursor: pointer;
}

.service-option:has(input:checked) {
  color: #fff;
  background: linear-gradient(90deg, #ff7ca7, #ff4f8a);
  border-color: transparent;
}

.service-option input {
  flex: 0 0 auto;
}

.file-field {
  font-weight: 700;
}

.file-field small {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

.home-upload-panel {
  scroll-margin-top: 110px;
  background: linear-gradient(135deg, #ffffff 0%, #fff6f9 62%, #f0f8ff 100%) !important;
}

.home-upload-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.home-upload-head img {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.12);
}

.custom-service-warning {
  color: #c1121f;
  font-weight: 800;
  line-height: 1.8;
}

.minor-request-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 95, 147, 0.2);
  border-radius: 8px;
  background: #fff9fb;
}

.minor-request-panel[hidden] {
  display: none;
}

.minor-request-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #10233f;
}

.minor-request-head strong {
  font-size: 15px;
  font-weight: 900;
}

.minor-request-head span {
  color: #64748b;
  font-size: 13px;
}

.minor-request-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.minor-request-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #10233f;
  font-size: 14px;
  font-weight: 750;
}

.minor-request-grid input {
  width: 16px;
  height: 16px;
  accent-color: #ff5f93;
}

.home-submit-form {
  display: grid;
  gap: 16px;
}

.service-inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.upload-dropzone {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 210px;
  padding: 28px;
  border: 2px dashed rgba(255, 95, 147, 0.42);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 248, 251, 0.96), rgba(239, 249, 255, 0.94)),
    #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84), 0 12px 26px rgba(255, 95, 147, 0.08);
}

.upload-dropzone input,
.template-upload-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover,
.template-upload-tile:hover,
.template-upload-tile.is-dragover {
  border-color: #ff5f93;
  background:
    linear-gradient(135deg, rgba(255, 241, 247, 0.98), rgba(230, 246, 255, 0.98)),
    #fff;
  transform: translateY(-1px);
}

.upload-dropzone.has-file,
.template-upload-tile.has-file {
  border-color: rgba(255, 95, 147, 0.62);
  background: #fff9fb;
}

.upload-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #d72669;
  background: rgba(255, 95, 147, 0.1);
  border: 1px solid rgba(255, 95, 147, 0.2);
  font-size: 13px;
  font-weight: 900;
}

.upload-title {
  color: #10233f;
  font-size: 23px;
  line-height: 1.35;
  font-weight: 800;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 190px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f 0%, #e73573 52%, #10233f 100%);
  box-shadow: 0 12px 22px rgba(255, 95, 147, 0.24);
  font-size: 17px;
  font-weight: 900;
}

.upload-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 6px;
  line-height: 1;
}

.upload-meta {
  color: #5f6f85;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-submit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.home-submit-form .field {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #10233f;
  font-weight: 900;
}

.home-submit-form .field.wide {
  grid-column: 1 / -1;
}

.school-template-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: stretch;
}

.school-template-add {
  width: 40px;
  min-height: 40px;
  border: 1px solid #d6dce5;
  border-radius: 8px;
  background: #ffffff;
  color: #10233f;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.school-template-add:hover,
.school-template-add.is-active {
  border-color: #c21f4a;
  color: #c21f4a;
  background: #fff5f8;
}

.school-template-status {
  min-height: 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.school-template-status.is-hit {
  color: #067647;
}

.school-template-status.is-pending {
  color: #b54708;
}

.template-upload-tile {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-height: 82px;
  padding: 16px;
  border: 1.5px dashed #d6dce5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #10233f;
  cursor: pointer;
}

.template-upload-tile span {
  font-size: 16px;
  font-weight: 900;
}

.template-upload-tile small {
  color: #667085;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.home-captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 14px;
  align-items: end;
}

.home-captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.home-captcha-box .captcha-image {
  max-width: 190px;
  flex: 0 0 190px;
}

.home-captcha-box div {
  display: grid;
  gap: 4px;
}

.home-submit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-choice-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 95, 147, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff9fb 0%, #f2f9ff 100%);
  box-shadow: 0 10px 24px rgba(16, 35, 63, 0.06);
}

.payment-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #10233f;
}

.payment-choice-head strong {
  display: block;
  font-size: 18px;
  font-weight: 900;
}

.payment-choice-head span {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.payment-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.payment-method-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid rgba(16, 35, 63, 0.1);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.payment-method-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 95, 147, 0.42);
  box-shadow: 0 10px 22px rgba(255, 95, 147, 0.12);
}

.payment-method-card:has(input:checked) {
  border-color: rgba(255, 95, 147, 0.7);
  background: linear-gradient(135deg, #fff 0%, #fff5f9 100%);
  box-shadow: 0 12px 24px rgba(255, 95, 147, 0.14);
}

.payment-method-card input {
  position: absolute;
  top: 14px;
  right: 14px;
}

.payment-method-title {
  padding-right: 28px;
  color: #10233f;
  font-size: 17px;
  font-weight: 900;
}

.payment-method-card small {
  color: #667085;
  line-height: 1.55;
  font-weight: 700;
}

.promo-code-field[hidden] {
  display: none !important;
}

.captcha-image {
  width: 100%;
  max-width: 260px;
  border-radius: 14px;
  border: 1px solid var(--fresh-line);
  background: #fff;
  display: block;
}

.qr-box {
  width: min(100%, 320px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, #fff8fa, #edf7ff);
  border: 1px solid rgba(255, 95, 147, 0.18);
  border-radius: 18px;
  padding: 16px;
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

.qr-grid {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 3px;
}

.qr-grid span {
  border-radius: 3px;
}

.qr-grid .on {
  background: linear-gradient(135deg, #10233f, #ff5f93);
}

.qr-grid .off {
  background: rgba(148, 163, 184, 0.15);
}

.cashier-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.cashier-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f5 58%, #f3f9ff 100%) !important;
}

.cashier-title {
  font-size: 28px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.cashier-display-id {
  margin: 14px 0 20px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 900;
  letter-spacing: 0;
}

.cashier-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}

.cashier-meta strong {
  color: #0f172a;
  text-align: right;
}

.cashier-qr-card {
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(255, 95, 147, 0.18);
  box-shadow: rgba(100, 100, 111, 0.08) 0 7px 24px 0;
}

.pay-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-tab {
  border: 1px solid var(--fresh-line);
  border-radius: 10px;
  min-height: 40px;
  font-weight: 900;
  color: #475569;
  background: #f8fafc;
}

.pay-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, #ff7ca7, #ff4f8a);
}

.pay-tab:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  background: #f1f5f9;
}

.cashier-qr-frame {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.cashier-qr-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 18px;
  color: #64748b;
  text-align: center;
  background:
    linear-gradient(#f8fafc, #f8fafc) padding-box,
    repeating-linear-gradient(45deg, rgba(255, 95, 147, 0.18) 0 10px, rgba(45, 140, 255, 0.14) 10px 20px) border-box;
}

.cashier-qr-placeholder strong {
  color: #10233f;
  font-size: 22px;
  font-weight: 900;
}

.cashier-qr-placeholder span {
  font-weight: 800;
}

.cashier-qr-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.cashier-payee {
  margin-top: 12px;
  color: #d92d70;
  font-weight: 900;
  text-align: center;
}

.cashier-proof .form-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

.notice-layout {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}

.auth-wrapper {
  width: 100%;
  max-width: 1020px;
  margin: 20px;
  box-shadow: 0 24px 60px rgba(16, 35, 63, 0.13) !important;
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}

.auth-page-soft {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 142, 174, 0.24), transparent 30%),
    radial-gradient(circle at 84% 84%, rgba(45, 140, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #fff7fa 0%, #ffffff 48%, #f0f7ff 100%);
}

.auth-modern-shell {
  min-height: 0 !important;
}

.auth-card {
  width: 50% !important;
  padding: 46px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.auth-soft-card {
  gap: 12px;
}

.auth-cover {
  width: 50%;
  background:
    linear-gradient(135deg, rgba(255, 95, 147, 0.86), rgba(45, 140, 255, 0.78)),
    url("assets/paibanpai-service-thesis.jpg?v=20260522-illustrations") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  padding: 40px;
  text-align: center;
}

.auth-cover-kicker {
  margin-bottom: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.auth-cover-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.auth-cover-points span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  margin-bottom: 14px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 18px;
  background: #f6f8fb;
}

.auth-mode-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #667085;
  font-weight: 900;
  text-decoration: none;
}

.auth-mode-tabs a.is-active {
  background: #ffffff;
  color: #d92d70;
  box-shadow: 0 8px 20px rgba(16, 35, 63, 0.08);
}

.auth-state-pill {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(217, 45, 112, 0.16);
  border-radius: 999px;
  background: #fff2f6;
  color: #d92d70;
  font-size: 12px;
  font-weight: 900;
}

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

.auth-form-stack .form-floating > .form-control {
  min-height: 58px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fbfdff;
  color: #10233f;
  font-weight: 800;
  box-shadow: none;
}

.auth-form-stack .form-floating > label {
  color: #667085;
  font-weight: 800;
}

.auth-form-stack .form-control:focus {
  border-color: rgba(217, 45, 112, 0.45);
  box-shadow: 0 0 0 4px rgba(217, 45, 112, 0.1);
  background: #ffffff;
  color: #10233f;
}

.btn-gradient {
  background: linear-gradient(135deg, #ff6f9f, #e73573) !important;
  border: none;
  border-radius: 18px;
  padding: 12px;
  font-weight: bold;
  letter-spacing: 0;
  color: white !important;
  box-shadow: 0 4px 15px rgba(255, 95, 147, 0.28);
}

.auth-submit-button {
  min-height: 54px;
  width: 100%;
}

.text-link {
  color: var(--fresh-primary) !important;
  font-weight: bold;
  text-decoration: none;
}

.auth-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: stretch;
}

.auth-code-row .form-floating {
  min-width: 0;
}

.auth-code-button {
  min-height: 58px;
  border: 1px solid rgba(255, 95, 147, 0.2) !important;
  color: #d92d70 !important;
  background: #fff5f8 !important;
  border-radius: 18px !important;
  font-weight: 900 !important;
  white-space: nowrap;
}

.auth-code-button:disabled {
  color: #94a3b8 !important;
  background: #f1f5f9 !important;
}

.auth-secondary-links,
.auth-bottom-link {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 8px 0 0;
  color: #667085;
  font-weight: 800;
}

.customer-center-page {
  display: grid;
  gap: 18px;
}

.customer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 248, 0.92) 58%, rgba(238, 247, 255, 0.96)),
    #fff;
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.07);
}

.customer-hero-copy {
  display: grid;
  gap: 12px;
  align-content: center;
  min-width: 0;
}

.customer-eyebrow {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(255, 95, 147, 0.22);
  border-radius: 999px;
  background: #fff0f5;
  color: #d92d70;
  font-size: 12px;
  font-weight: 900;
}

.customer-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #10233f;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 950;
}

.customer-hero p,
.customer-account-main p,
.customer-record-card p,
.customer-wallet-card p,
.customer-auth-card p {
  margin: 0;
  color: #667085;
  line-height: 1.7;
}

.customer-hero-actions,
.customer-order-actions,
.customer-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.customer-hero-side {
  display: grid;
  gap: 10px;
  align-content: center;
  justify-items: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(45, 140, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.customer-hero-side img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(16, 35, 63, 0.11);
}

.customer-hero-side strong {
  color: #10233f;
  font-size: 20px;
  font-weight: 950;
}

.customer-hero-side span {
  color: #667085;
  font-weight: 700;
  line-height: 1.55;
}

.customer-dashboard {
  display: grid;
  gap: 16px;
}

.customer-loading-card,
.customer-auth-card,
.customer-auth-side,
.customer-account-card,
.customer-stat-card,
.customer-orders-panel,
.customer-order-card,
.customer-wallet-card,
.customer-record-card,
.customer-support-card {
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 35, 63, 0.06);
}

.customer-loading-card {
  display: grid;
  gap: 6px;
  padding: 22px;
}

.customer-loading-card strong {
  color: #10233f;
  font-size: 18px;
}

.customer-loading-card span {
  color: #667085;
}

.customer-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.customer-auth-card {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.customer-auth-card h2,
.customer-section-head h2,
.customer-account-main h2 {
  margin: 0;
  color: #10233f;
  font-weight: 950;
}

.customer-auth-side {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
}

.customer-auth-side div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(45, 140, 255, 0.12);
  border-radius: 8px;
  background: #fff;
}

.customer-auth-side b {
  color: #10233f;
}

.customer-auth-side span {
  color: #667085;
  line-height: 1.5;
}

.customer-account-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 249, 0.9)),
    #fff;
}

.customer-avatar {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #ff6f9f 0%, #2d8cff 100%);
  font-size: 30px;
  font-weight: 950;
}

.customer-account-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.customer-account-main p {
  overflow-wrap: anywhere;
}

.customer-account-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-account-tags span,
.customer-segment a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 999px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.customer-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-stat-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 17px;
}

.customer-stat-card span {
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.customer-stat-card strong {
  color: #10233f;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.customer-stat-card small {
  color: #667085;
  font-weight: 700;
}

.customer-segment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.customer-segment a:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff6f9f 0%, #e73573 100%);
}

.customer-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.customer-orders-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

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

.customer-section-head > div {
  display: grid;
  gap: 8px;
}

.customer-orders-list,
.customer-side-stack {
  display: grid;
  gap: 12px;
}

.customer-order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

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

.customer-order-head h3 {
  margin: 5px 0 4px;
  color: #10233f;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 950;
}

.customer-order-head p {
  margin: 0;
  color: #667085;
  font-weight: 750;
}

.customer-order-id {
  color: #2d8cff;
  font-size: 13px;
  font-weight: 950;
}

.customer-order-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.customer-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(16, 35, 63, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.customer-status.is-done,
.customer-status.is-paid {
  color: #067647;
  background: #ecfdf3;
  border-color: rgba(6, 118, 71, 0.16);
}

.customer-status.is-working,
.customer-status.is-review {
  color: #1263b3;
  background: #edf7ff;
  border-color: rgba(45, 140, 255, 0.18);
}

.customer-status.is-waiting,
.customer-status.is-unpaid {
  color: #d92d70;
  background: #fff0f5;
  border-color: rgba(255, 95, 147, 0.18);
}

.customer-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.customer-progress::before,
.customer-progress::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 16.66%;
  height: 3px;
  border-radius: 999px;
}

.customer-progress::before {
  right: 16.66%;
  background: #edf2f7;
}

.customer-progress::after {
  width: var(--progress-width, 0%);
  background: linear-gradient(90deg, #ff6f9f, #2d8cff);
}

.customer-progress span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.customer-progress span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid #edf2f7;
  border-radius: 50%;
  background: #fff;
  z-index: 1;
}

.customer-progress span.is-active {
  color: #10233f;
}

.customer-progress span.is-active::before {
  border-color: #ff6f9f;
  background: #fff0f5;
}

.customer-order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.customer-order-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 8px;
  background: #f8fafc;
  color: #10233f;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.customer-order-meta b {
  color: #667085;
  font-size: 12px;
}

.customer-feedback-note {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 8px;
  background: #fffbeb;
  color: #713f12;
  line-height: 1.6;
}

.customer-wallet-card,
.customer-record-card,
.customer-support-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.customer-wallet-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 255, 0.92)),
    #fff;
}

.customer-wallet-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.customer-wallet-top span,
.customer-record-card h3 {
  margin: 0;
  color: #10233f;
  font-size: 17px;
  font-weight: 950;
}

.customer-wallet-top strong {
  color: #d92d70;
  font-size: 28px;
  font-weight: 950;
}

.customer-mini-list {
  display: grid;
  gap: 8px;
}

.customer-mini-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(16, 35, 63, 0.07);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-mini-list span,
.customer-empty-mini {
  color: #10233f;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.customer-mini-list b {
  color: #d92d70;
}

.customer-mini-list small {
  grid-column: 1 / -1;
  color: #667085;
  font-weight: 700;
}

.customer-empty-mini,
.customer-empty-state {
  padding: 14px;
  border: 1px dashed rgba(45, 140, 255, 0.22);
  border-radius: 8px;
  background: #f4f9ff;
}

.customer-empty-state {
  display: grid;
  gap: 6px;
}

.customer-empty-state strong {
  color: #10233f;
}

.customer-empty-state span {
  color: #667085;
}

.customer-support-card {
  border-color: rgba(255, 95, 147, 0.14);
  background: #fff7fa;
}

.customer-support-card span {
  color: #d92d70;
  font-weight: 950;
}

.customer-support-card strong {
  color: #10233f;
  line-height: 1.55;
}

@media (max-width: 992px) {
  .brand-hero {
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
  }

  .brand-hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "voice";
    padding: 24px 22px;
    gap: 12px;
    width: 100%;
    min-height: 0;
  }

  .brand-hero-art {
    position: relative;
    inset: auto;
    width: min(50%, 260px);
    min-height: 0;
    margin: 0 18px 18px auto;
    z-index: 2;
  }

  .brand-hero-art img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
  }

  .cashier-shell,
  .cashier-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell,
  .stats-grid,
  .stats-grid-compact,
  .boss-workbench,
  .boss-quick-grid,
  .admin-overview-grid,
  .admin-overview-grid:has(.admin-kpi-card:nth-child(5)),
  .admin-dashboard-grid,
  .admin-dashboard-grid-even,
  .customer-stats-grid,
  .customer-main-grid,
  .customer-auth-grid,
  .customer-hero {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

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

  .admin-topbar,
  .admin-meta,
  .admin-actions,
  .order-meta,
  .simple-order-meta,
  .simple-download-grid,
  .order-table-detail,
  .customer-order-meta,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .order-table-detail {
    padding-left: 0;
  }

  .order-head,
  .feedback-head,
  .boss-action-head,
  .boss-order-row,
  .admin-topbar,
  .customer-order-head,
  .customer-account-card,
  .customer-section-head {
    flex-direction: column;
  }

  .admin-auth-box {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .customer-account-card {
    grid-template-columns: 1fr;
  }

  .customer-account-actions {
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .navbar-fresh .container,
  .navbar-fresh .container-fluid {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .navbar-fresh .navbar-brand {
    order: 1;
    margin-right: auto;
  }

  .navbar-fresh .navbar-toggler {
    order: 3;
    margin-left: 0;
  }

  .navbar-fresh .navbar-collapse {
    order: 4;
    flex-basis: 100%;
  }

  .navbar-collapse .user-login-box-desktop {
    display: none !important;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .user-login-box-mobile {
    order: 2;
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
    margin-left: auto;
    display: flex !important;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
  }

  .user-login-box-mobile .btn,
  .user-login-box-mobile .customer-pill {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px !important;
    font-size: 14px;
    justify-content: center;
  }

  .user-login-box-mobile .customer-pill {
    max-width: none;
  }

  .home-submit-grid,
  .home-captcha-row,
  .payment-method-grid,
  .service-advantage-grid,
  .order-flow-strip,
  .auth-code-row {
    grid-template-columns: 1fr;
  }

  .minor-request-head {
    display: grid;
  }

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

  .home-captcha-box {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .brand-logo-wide {
    width: 52px;
    height: 52px;
  }

  .minor-request-grid {
    grid-template-columns: 1fr;
  }

  .navbar-fresh {
    border-radius: 0 0 14px 14px;
  }

  .user-login-box {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .user-login-box .btn,
  .customer-pill {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }

  .brand-hero {
    padding: 0;
    border-radius: 14px;
  }

  .brand-hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "voice";
    justify-items: start;
    gap: 10px;
    padding: 22px 18px;
  }

  .home-upload-head {
    align-items: center;
  }

  .customer-hero,
  .customer-auth-card,
  .customer-account-card,
  .customer-orders-panel {
    padding: 18px;
  }

  .customer-hero h1 {
    font-size: 26px;
    line-height: 1.22;
  }

  .customer-hero-actions .btn,
  .customer-account-actions .btn,
  .customer-account-actions button,
  .customer-order-actions .btn,
  .customer-wallet-card .btn {
    width: 100%;
    justify-content: center;
  }

  .home-upload-head img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .upload-dropzone {
    min-height: 176px;
    padding: 22px 16px;
  }

  .upload-title {
    font-size: 18px;
  }

  .upload-button {
    width: 100%;
    min-width: 0;
    max-width: 260px;
  }

  .home-captcha-box {
    flex-direction: column;
  }

  .home-captcha-box .captcha-image {
    width: 100%;
    max-width: 240px;
    flex-basis: auto;
  }

  .brand-hero-copy,
  .brand-hero h1,
  .brand-voice-card {
    width: 100%;
    max-width: calc(100vw - 56px);
  }

  .brand-hero h1 {
    font-size: 26px;
    line-height: 1.24;
  }

  .brand-hero-art img {
    min-height: 0;
  }

  .auth-cover {
    display: none;
  }
  .auth-card {
    width: 100% !important;
    padding: 30px !important;
  }

  .auth-page-soft {
    padding: 14px;
    align-items: flex-start;
  }

  .auth-wrapper {
    margin: 0;
    border-radius: 24px;
  }

  .auth-mode-tabs {
    border-radius: 16px;
  }

  .auth-form-stack .form-floating > .form-control,
  .auth-code-button,
  .auth-submit-button {
    border-radius: 16px !important;
  }
}

@media (max-width: 480px) {
  .brand-hero-copy,
  .brand-hero h1,
  .brand-voice-card {
    max-width: 320px;
  }
}
