.panel,
.wallet-card,
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.panel {
  margin-bottom: 22px;
}
.stat {
  display: block;
}
.stat span {
  font-size: 14px;
  color: var(--muted);
}
.stat strong {
  font-size: 30px;
  display: block;
  margin: 10px 0 6px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.stat strong .badge {
  font-size: 15px;
}
.primary,
.secondary,
.danger-button,
.button,
.light,
.quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 17px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.18s,
    background-color 0.18s,
    box-shadow 0.18s;
}
.primary {
  background: var(--accent);
  color: var(--accent-text);
}
.secondary,
.quick {
  background: var(--raised);
  color: var(--text);
  border-color: var(--line);
}
.danger-button {
  background: var(--red-bg);
  color: var(--red);
}
.light {
  background: #d9eee5;
  color: #183b30;
}
.quick {
  background: var(--panel);
  justify-content: flex-start;
  padding: 18px;
}
.quick .icon {
  color: var(--accent);
}
.text-button,
.text-link {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
}
.title-button {
  border: 0;
  background: none;
  color: var(--text);
  padding: 0;
  text-align: left;
  font-weight: 650;
  font-size: 17px;
  min-height: 44px;
}
.close {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 44px;
  height: 44px;
  font-size: 27px;
  background: none;
  border: 0;
  color: var(--muted);
}
.badge,
.saving,
.earning {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}
.badge {
  background: var(--raised);
  color: var(--muted);
}
.success,
.saving {
  background: var(--green-bg);
  color: var(--green);
}
.pending,
.earning {
  background: var(--amber-bg);
  color: var(--amber);
}
.danger {
  background: var(--red-bg);
  color: var(--red);
}
.benefits {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.saving,
.earning {
  font-size: 13px;
}
.membership-card {
  border: 1px solid #386257;
  background: #153d36;
  border-radius: 14px;
  padding: 28px;
  color: #f0f7f3;
  min-height: 242px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.membership-card.inactive {
  background: var(--raised);
  border-color: var(--line);
  color: var(--text);
}
.card-top,
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.card-top {
  font-size: 12px;
  letter-spacing: 0.6px;
}
.membership-card h2 {
  font-size: 27px;
  margin: 24px 0 7px;
}
.membership-card p {
  font-size: 14px;
  color: #b8d4ca;
}
.membership-card small {
  color: #b8d4ca;
}
.card-bottom {
  margin-top: 20px;
}
.wallet-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.wallet-card > .section-title .icon {
  color: var(--amber);
}
.balance {
  font-size: 40px;
  letter-spacing: 0;
  font-weight: 650;
  line-height: 1.2;
  margin: 14px 0;
}
.balance small {
  font-weight: 400;
  font-size: 14px;
  display: inline-block;
}
.wallet-card .card-bottom {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.offer-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
}
.offer-art {
  height: 118px;
  background: #253631;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  color: #b7cec6;
}
.offer-art .icon {
  width: 43px;
  height: 43px;
  stroke-width: 1.3;
}
.offer-art span {
  font-size: 12px;
  background: #10141599;
  padding: 6px 9px;
  border-radius: 5px;
  color: #e5ece9;
}
.offer-art.dining {
  background: #332e25;
  color: #d3bea0;
}
.offer-art.healthcare {
  background: #24323a;
  color: #a4c3d2;
}
.offer-art.shopping {
  background: #302c39;
  color: #c3b4d5;
}
.offer-content {
  padding: 19px;
}
.offer-content .meta {
  margin: 0 0 14px;
}
.offer-content h3 {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}
.offer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  font-size: 14px;
}
.offer-bottom s {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
  margin-left: 4px;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 14px;
  margin: 0 0 18px;
  min-width: 0;
}
.field input,
.field textarea,
.field select,
select {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  min-height: 44px;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 16px 0;
}
.check input {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.filter-bar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.filter-bar .field {
  margin: 0;
  flex: 1;
  min-width: 145px;
}
.filter-bar .check {
  margin: 10px 0;
  min-height: 44px;
  align-items: center;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
  background: var(--raised);
}
td {
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  vertical-align: middle;
}
td small {
  display: block;
}
td .text-button + button {
  margin-left: 10px;
}
tr:last-child td {
  border-bottom: 0;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row p {
  color: var(--muted);
  font-size: 13px;
  margin: 5px 0;
}
.list-row strong {
  font-size: 15px;
}
.summary {
  margin: 20px 0;
  padding: 18px;
  background: var(--raised);
  border-radius: 10px;
}
.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.summary > div:last-child {
  border: 0;
}
.summary dt {
  font-size: 14px;
  color: var(--muted);
}
.summary dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.price {
  font-size: 34px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin: 20px 0;
}
.price small {
  font-size: 14px;
  font-weight: 400;
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan ul {
  padding-left: 20px;
  color: var(--muted);
  line-height: 2;
  flex: 1;
}
.plan.featured {
  border-color: var(--accent);
}
.scan-mark {
  display: grid;
  place-items: center;
  width: 165px;
  height: 165px;
  margin: 25px auto;
  background: #eef5f1;
  color: #143b32;
  border-radius: 12px;
}
.scan-mark .icon {
  width: 120px;
  height: 120px;
  stroke-width: 1;
}
.banner,
.status-notice {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  padding: 19px 22px;
  border-radius: 10px;
  margin-bottom: 26px;
  background: var(--panel);
}
.banner p {
  font-size: 14px;
  color: var(--muted);
  margin: 5px 0 0;
}
.status-notice {
  font-size: 14px;
}
.steps {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.steps span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}
.steps .active {
  border-color: var(--accent);
  color: var(--accent);
}
.capacity {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.capacity progress {
  flex: 1;
  height: 10px;
  accent-color: var(--accent);
}
dialog {
  width: min(620px, calc(100% - 28px));
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 30px;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #07120fb3;
  backdrop-filter: blur(4px);
}
dialog h2 {
  padding-right: 30px;
  margin-bottom: 14px;
}
dialog .form-actions {
  justify-content: flex-end;
}
.form-error {
  background: var(--red-bg);
  color: var(--red);
  padding: 13px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 14px;
}
.demo-note {
  background: var(--amber-bg);
  color: var(--amber);
  padding: 13px;
  border-radius: 8px;
  font-size: 14px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.timeline > div {
  padding-bottom: 20px;
}
.timeline small {
  display: block;
}
.timeline p {
  margin: 5px 0;
  font-size: 14px;
}
.document-preview {
  max-height: 340px;
  overflow: auto;
  padding: 30px;
  border: 1px dashed var(--line);
  position: relative;
  background: var(--raised);
}
.document-preview img {
  max-width: 100%;
  max-height: 280px;
}
.watermark {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  padding: 15px 0;
  border-top: 1px solid var(--line);
  margin-top: 15px;
}
.skeleton {
  height: 90px;
  background: linear-gradient(100deg, var(--raised) 20%, var(--line) 50%, var(--raised) 80%);
  background-size: 200% 100%;
  animation: loading 1.4s infinite;
  border-radius: 10px;
  margin: 15px 0;
}
@keyframes loading {
  to {
    background-position: -200% 0;
  }
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 90%;
  font-size: 14px;
  display: none;
}
.segmented {
  display: flex;
  gap: 8px;
}
.file-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .primary:not(:disabled):hover,
  .light:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 5px 14px #0003;
  }
  .secondary:hover,
  .quick:hover,
  .theme-button:hover {
    background: var(--raised);
    border-color: var(--muted);
    transform: translateY(-1px);
  }
  .nav-item:hover {
    background: var(--raised);
  }
  .text-button:hover,
  .text-link:hover {
    color: var(--text);
  }
  .offer-card:hover {
    border-color: #607b72;
  }
}
.primary:active,
.light:active {
  transform: scale(0.98);
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
    transform: none !important;
  }
}
