:root {
  --red: #d32f2f;
  --red-deep: #9b111e;
  --red-dark: #6d0b14;
  --red-hot: #ff1744;
  --gold: #f5c542;
  --gold-deep: #c99214;
  --ink: #2a1212;
  --paper: #fff5f2;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "ZCOOL XiaoWei", "Noto Sans SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #7a0f14;
  min-height: 100dvh;
  line-height: 1.45;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 装饰小图标禁止被撑满整行 */
img.stamp-ico,
img.deco-chili {
  max-width: none;
  width: auto;
  height: auto;
  flex-shrink: 0;
}

img.stamp-ico {
  width: 16px;
  height: 16px;
}

.query-icon,
.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

.query-icon {
  width: 28px;
  height: 28px;
  animation: spinSlow 6s linear infinite;
}

.query-icon svg,
.section-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.section-icon {
  width: 36px;
  height: 36px;
  animation: giftBounce 1.8s ease-in-out infinite;
}

button,
input {
  font: inherit;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  background: none;
}

[hidden] {
  display: none !important;
}

/* ===== Background: 单层背景，避免子元素缺失导致失效 ===== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #7a0f14;
  background-image:
    linear-gradient(180deg, rgba(109, 11, 20, 0.78) 0%, rgba(155, 17, 30, 0.88) 42%, rgba(80, 8, 12, 0.95) 100%),
    url("../img/bg-hotpot.jpg");
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 14px 12px calc(28px + var(--safe-b));
}

/* ===== Shop header ===== */
.shop-header {
  position: relative;
  margin-bottom: 14px;
  animation: riseIn 0.5s ease both;
}

.shop-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 16px 12px 14px;
  border-radius: 16px 16px 0 0;
  background:
    linear-gradient(160deg, #e53935 0%, #b71c1c 55%, #8e0000 100%);
  border: 2px solid rgba(255, 213, 79, 0.45);
  border-bottom: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.shop-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 213, 79, 0.22), transparent 35%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.shop-logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
  background: #fff;
  position: relative;
  z-index: 1;
  animation: logoPulse 2.6s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.shop-logo,
.shop-logo-placeholder {
  width: 100%;
  height: 100%;
}

.shop-logo {
  object-fit: cover;
}

.shop-logo-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff5252, #b71c1c);
}

.logo-char {
  font-family: var(--display);
  font-size: 30px;
  color: #fff;
}

.shop-info {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.shop-name {
  font-family: var(--display);
  font-size: 20px;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  letter-spacing: 0.02em;
}

.shop-address,
.shop-slogan {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-slogan {
  color: var(--gold);
  font-weight: 600;
}

.btn-admin {
  align-self: start;
  position: relative;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #6d0b14;
  background: linear-gradient(180deg, #ffe082, #f5c542);
  box-shadow: 0 3px 0 #b8860b;
  white-space: nowrap;
}

.btn-admin:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b8860b;
}

.stamp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px 4px;
  background: linear-gradient(180deg, #c62828, #b71c1c);
  border-left: 2px solid rgba(255, 213, 79, 0.45);
  border-right: 2px solid rgba(255, 213, 79, 0.45);
}

.stamp-ico {
  opacity: 0.95;
  animation: chiliWiggle 2.4s ease-in-out infinite;
}

.stamp-ico:last-child {
  transform: scaleX(-1);
  animation-delay: 0.35s;
}

@keyframes chiliWiggle {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.stamp-ico:last-child {
  animation-name: chiliWiggleFlip;
}

@keyframes chiliWiggleFlip {
  0%, 100% { transform: scaleX(-1) rotate(-10deg); }
  50% { transform: scaleX(-1) rotate(10deg); }
}

.stamp {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1.5px dashed rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
  animation: stampPop 0.55s ease both;
}

.stamp:nth-child(2) { animation-delay: 0.08s; transform: rotate(2deg); }
.stamp:nth-child(3) { animation-delay: 0.16s; }

.stamp-gold {
  color: #6d0b14;
  background: var(--gold);
  border-style: solid;
  border-color: #fff3c4;
}

@keyframes stampPop {
  from { opacity: 0; transform: scale(1.4) rotate(-8deg); }
  to { opacity: 1; }
}

.points-banner {
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  background: #6d0b14;
  border: 2px solid rgba(255, 213, 79, 0.45);
  border-top: 1px solid rgba(255, 213, 79, 0.25);
}

.points-banner-track {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 8px 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: marquee 18s linear infinite;
}

.points-banner-track .dot {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== User ===== */
.user-section {
  margin-bottom: 16px;
  animation: riseIn 0.5s 0.06s ease both;
}

.user-query-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 248, 245, 0.96);
  border: 2px solid rgba(255, 213, 79, 0.55);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.query-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.query-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--red-deep);
}

.query-row {
  display: flex;
  gap: 8px;
}

.input-phone {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #f0c2c2;
  color: var(--ink);
}

.input-phone:focus {
  border-color: var(--red);
}

.btn-query {
  flex-shrink: 0;
  height: 46px;
  padding: 0 16px;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(180deg, #ff5252, #c62828);
  box-shadow: 0 4px 0 #8e0000;
}

.btn-query:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #8e0000;
}

.query-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #a05a5a;
}

.user-card {
  position: relative;
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8a65 0%, #e53935 40%, #b71c1c 100%);
  border: 2px solid var(--gold);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  animation: cardIn 0.4s ease;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.user-card-shine {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 48%, transparent 62%);
  background-size: 200% 100%;
  animation: shine 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shine {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

.user-card-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  position: relative;
}

.btn-user-logs {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  height: 36px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #6d0b14;
  background: linear-gradient(180deg, #ffe082, #f5c542);
  box-shadow: 0 3px 0 #b8860b;
  position: relative;
  z-index: 1;
}

.btn-user-logs:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b8860b;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}

.user-phone {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.user-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-top: 2px;
}

.user-points-wrap {
  text-align: right;
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.user-points {
  display: block;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.user-points.bump {
  animation: bump 0.4s ease;
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.user-points-unit {
  font-size: 12px;
  font-weight: 700;
}

.user-logs-head h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--red-deep);
  margin-bottom: 8px;
}

.logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(60dvh, 420px);
  overflow: auto;
}

.logs-empty {
  text-align: center;
  padding: 16px 8px;
  color: #a07070;
  font-size: 13px;
}

.log-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0c2c2;
}

.log-item.redeem {
  border-left: 4px solid #e53935;
}

.log-item.add {
  border-left: 4px solid #2e7d32;
}

.log-tag {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}

.log-item.redeem .log-tag {
  color: #fff;
  background: #e53935;
}

.log-item.add .log-tag {
  color: #fff;
  background: #2e7d32;
}

.log-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.log-phone {
  margin-top: 3px;
  font-size: 12px;
  color: var(--red-deep);
  font-weight: 600;
}

.log-time {
  margin-top: 3px;
  font-size: 11px;
  color: #a07070;
}

.log-side {
  text-align: right;
  flex-shrink: 0;
}

.log-points {
  font-size: 16px;
  font-weight: 800;
}

.log-item.redeem .log-points { color: #c62828; }
.log-item.add .log-points { color: #2e7d32; }

.log-balance {
  margin-top: 2px;
  font-size: 11px;
  color: #a07070;
}

.logs-filter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.logs-filter .btn-upload {
  height: 42px;
  padding: 0 12px;
  white-space: nowrap;
}

.logs-filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.log-filter-btn {
  flex: 1;
  height: 32px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5050;
  background: #f4e0da;
}

.log-filter-btn.active {
  color: #fff;
  background: linear-gradient(180deg, #ff5252, #c62828);
}

/* ===== Products ===== */
.products-section {
  animation: riseIn 0.5s 0.12s ease both;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(183, 28, 28, 0.88);
  border: 1.5px solid rgba(255, 213, 79, 0.5);
}

.section-icon {
  width: 36px;
  height: 36px;
  animation: giftBounce 1.8s ease-in-out infinite;
}

@keyframes giftBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(4deg); }
}

.section-title {
  font-family: var(--display);
  font-size: 22px;
  color: #fff;
  line-height: 1.1;
}

.section-sub {
  font-size: 12px;
  color: var(--gold);
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff8f5;
  border: 1.5px solid #f0b4b4;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
  animation: riseIn 0.4s ease both;
}

.product-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--gold), var(--red));
}

.product-item.no-action {
  grid-template-columns: 84px 1fr;
}

.product-thumb {
  width: 84px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffe0d6;
  border: 1px solid #efc0b8;
}

.product-thumb-fallback {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ff8a65, #c62828);
  color: #fff;
  font-family: var(--display);
  font-size: 30px;
}

.product-meta {
  min-width: 0;
}

.product-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-points {
  margin-top: 6px;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe8e0;
  color: var(--red-deep);
  font-weight: 800;
}

.product-points strong {
  font-size: 18px;
  color: var(--red);
}

.product-points span {
  font-size: 11px;
  font-weight: 600;
}

.product-stock {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #a07070;
}

.btn-redeem {
  align-self: center;
  min-width: 64px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #6d0b14;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe082, #f5c542);
  box-shadow: 0 3px 0 #b8860b;
  animation: redeemGlow 1.6s ease-in-out infinite;
}

.btn-redeem:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b8860b;
}

.btn-redeem:disabled {
  opacity: 0.45;
  animation: none;
  box-shadow: none;
}

@keyframes redeemGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sk-item {
  height: 104px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(255, 220, 210, 0.5) 25%, rgba(255, 240, 235, 0.7) 50%, rgba(255, 220, 210, 0.5) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.empty-tip {
  text-align: center;
  padding: 28px 12px;
  color: #ffd7d0;
  font-size: 14px;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 10px calc(12px + var(--safe-b));
  background: rgba(60, 0, 8, 0.55);
  animation: fadeIn 0.2s ease;
}

@media (min-width: 520px) {
  .modal-overlay { align-items: center; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  width: 100%;
  max-width: 420px;
  max-height: min(88dvh, 720px);
  overflow: auto;
  border-radius: 18px;
  background: #fff8f5;
  border: 2px solid #f5c542;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  animation: sheetUp 0.28s ease;
}

@keyframes sheetUp {
  from { transform: translateY(24px); opacity: 0.7; }
  to { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
  position: sticky;
  top: 0;
  background: #fff8f5;
  z-index: 1;
}

.modal-head h3 {
  font-family: var(--display);
  font-size: 20px;
  color: var(--red-deep);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 22px;
  color: #8a5050;
  background: #f5e0da;
}

.modal-body { padding: 6px 14px 10px; }
.modal-foot {
  display: flex;
  gap: 8px;
  padding: 8px 14px 14px;
}

.btn-cancel,
.btn-confirm,
.btn-submit {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

.btn-cancel { color: #7a4040; background: #f0ddd7; }
.btn-confirm,
.btn-submit {
  color: #fff;
  background: linear-gradient(180deg, #ff5252, #c62828);
  box-shadow: 0 3px 0 #8e0000;
}

.btn-submit { width: 100%; margin-top: 4px; }

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #8a4040;
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #f0c2c2;
  color: var(--ink);
}

.form-input:focus { border-color: var(--red); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.upload-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px dashed #f0a8a8;
}

.upload-preview {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #f0c2c2;
  background: #ffe8e0;
}

.upload-placeholder {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff1ec;
  color: #a07070;
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.btn-upload {
  height: 40px;
  border-radius: 10px;
  font-weight: 700;
  color: #6d0b14;
  background: linear-gradient(180deg, #ffe082, #f5c542);
  box-shadow: 0 3px 0 #b8860b;
}

.btn-upload:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #b8860b;
}

.btn-upload:disabled {
  opacity: 0.6;
  box-shadow: none;
}

.btn-cancel-inline {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  color: #7a4040;
  background: #f0ddd7;
  font-weight: 600;
}

.redeem-preview {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #f0c2c2;
}

.redeem-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffe0d6;
}

.redeem-name { font-weight: 700; font-size: 15px; }
.redeem-cost {
  margin-top: 6px;
  font-size: 13px;
  color: #8a5050;
}
.redeem-cost strong {
  color: var(--red);
  font-size: 18px;
}
.redeem-tip {
  margin-top: 10px;
  font-size: 12px;
  color: #a07070;
  line-height: 1.6;
}

.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 10px;
  background: #f4e0da;
  flex-wrap: wrap;
}

.admin-tab {
  flex: 1 1 calc(50% - 4px);
  min-width: 72px;
  height: 34px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #8a5050;
}

.admin-tab.active {
  color: #fff;
  background: linear-gradient(180deg, #ff5252, #c62828);
}

.admin-form-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--red-deep);
  margin-bottom: 8px;
}

.admin-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.admin-product-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #f0c2c2;
}

.admin-product-item img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #ffe0d6;
}

.admin-product-item .name {
  font-size: 13px;
  font-weight: 700;
}

.admin-product-item .meta {
  font-size: 11px;
  color: #a07070;
  margin-top: 2px;
}

.admin-product-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-mini {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.btn-mini.edit {
  color: #fff;
  background: #e53935;
}

.btn-mini.del {
  color: #8a4040;
  background: #f0ddd7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-b));
  z-index: 200;
  transform: translateX(-50%) translateY(10px);
  max-width: calc(100% - 36px);
  padding: 11px 16px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  background: rgba(60, 8, 12, 0.94);
  animation: toastIn 0.25s ease forwards;
  pointer-events: none;
}

.toast.success { background: #2e7d32; }
.toast.error { background: #b71c1c; }
.toast.hide { animation: toastOut 0.2s ease forwards; }

@keyframes toastIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
