:root {
  color-scheme: dark;
  --bg-main: #120715;
  --bg-deep: #08040b;
  --bg-card: rgba(70, 30, 78, 0.38);
  --bg-card-strong: rgba(55, 19, 63, 0.74);
  --accent-pink: #f19ac5;
  --accent-violet: #a98cff;
  --accent-gold: #e8c46a;
  --text-main: #fff7fb;
  --text-muted: rgba(255, 231, 244, 0.72);
  --text-soft: rgba(255, 231, 244, 0.52);
  --border-soft: rgba(255, 185, 224, 0.2);
  --danger: #ff7f9f;
  --success: #78d6b2;
  --radius: 8px;
  --shadow-soft: 0 18px 60px rgba(5, 2, 9, 0.36);
  --shadow-glow: 0 0 34px rgba(241, 154, 197, 0.18);
  --theme-gradient:
    radial-gradient(circle at 18% 12%, rgba(241, 154, 197, 0.18), transparent 28%),
    radial-gradient(circle at 84% 8%, rgba(169, 140, 255, 0.2), transparent 30%),
    linear-gradient(155deg, #18091f 0%, #100716 50%, #07040b 100%);
  --theme-image: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app-bg,
.image-layer,
.video-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.app-bg {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 4, 11, 0.05), rgba(8, 4, 11, 0.72)),
    var(--theme-gradient);
  transition: background 520ms ease;
}

.app-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 70%);
}

.image-layer {
  z-index: -3;
  background-image: var(--theme-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 520ms ease;
}

.image-layer.has-image {
  opacity: 0.18;
}

.video-layer {
  z-index: -4;
  overflow: hidden;
  opacity: 0;
  transition: opacity 520ms ease;
}

.video-layer video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-theme="catalog"] {
  --theme-gradient:
    radial-gradient(circle at 20% 10%, rgba(241, 154, 197, 0.16), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(169, 140, 255, 0.18), transparent 32%),
    linear-gradient(155deg, #18091f 0%, #120817 52%, #07040b 100%);
}

body[data-theme="bags"] {
  --theme-gradient:
    linear-gradient(135deg, rgba(44, 10, 49, 0.92), rgba(12, 4, 14, 0.96)),
    radial-gradient(circle at 22% 20%, rgba(241, 154, 197, 0.24), transparent 30%),
    radial-gradient(circle at 80% 16%, rgba(232, 196, 106, 0.14), transparent 28%);
}

body[data-theme="perfume"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(19, 10, 35, 0.92), rgba(7, 4, 12, 0.97)),
    radial-gradient(circle at 18% 12%, rgba(255, 205, 231, 0.22), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(169, 140, 255, 0.22), transparent 34%);
}

body[data-theme="oils"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(27, 9, 35, 0.94), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 18% 16%, rgba(232, 196, 106, 0.2), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(241, 154, 197, 0.16), transparent 28%);
}

body[data-theme="accessories"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(14, 8, 31, 0.94), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 20% 12%, rgba(169, 140, 255, 0.22), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(241, 154, 197, 0.17), transparent 28%);
}

body[data-theme="cart"],
body[data-theme="checkout"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(23, 9, 27, 0.96), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 18% 10%, rgba(241, 154, 197, 0.14), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(169, 140, 255, 0.12), transparent 30%);
}

body[data-theme="loyalty"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(38, 12, 45, 0.94), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 16% 18%, rgba(232, 196, 106, 0.22), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(241, 154, 197, 0.24), transparent 32%);
}

body[data-theme="owner"],
body[data-theme="staff"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(13, 8, 24, 0.96), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 20% 12%, rgba(169, 140, 255, 0.18), transparent 30%),
    radial-gradient(circle at 84% 16%, rgba(232, 196, 106, 0.12), transparent 28%);
}

.app-shell {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: calc(16px + env(safe-area-inset-top)) 12px calc(104px + env(safe-area-inset-bottom));
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(241, 154, 197, 0.22), transparent 28%),
    radial-gradient(circle at 50% 64%, rgba(169, 140, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #16071c, #08040b 76%);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-orbit {
  position: absolute;
  inset: 0;
}

.splash-orbit span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 18px rgba(241, 154, 197, 0.74);
  animation: particleFloat 3000ms ease-in-out both;
}

.splash-orbit span:nth-child(1) { top: 28%; left: 22%; }
.splash-orbit span:nth-child(2) { top: 20%; right: 26%; animation-delay: 240ms; background: var(--accent-violet); }
.splash-orbit span:nth-child(3) { bottom: 30%; left: 28%; animation-delay: 520ms; }
.splash-orbit span:nth-child(4) { bottom: 24%; right: 22%; animation-delay: 740ms; background: var(--accent-gold); }

.splash-card {
  position: relative;
  width: 118px;
  height: 82px;
  margin-bottom: 2px;
  perspective: 500px;
}

.splash-bag {
  position: absolute;
  inset: 14px 22px 4px;
  border: 1px solid rgba(232, 196, 106, 0.46);
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(145deg, rgba(241, 154, 197, 0.22), rgba(169, 140, 255, 0.16));
  box-shadow: var(--shadow-glow);
  opacity: 0;
  transform: translate3d(-54px, 8px, 0) scale(0.92);
  animation: bagApproach 3000ms cubic-bezier(.2,.9,.2,1) both;
}

.splash-bag::before {
  content: "";
  position: absolute;
  left: 21px;
  top: -13px;
  width: 30px;
  height: 24px;
  border: 1px solid rgba(232, 196, 106, 0.46);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.splash-mist {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 225, 242, 0.32), transparent),
    linear-gradient(110deg, transparent 18%, rgba(169, 140, 255, 0.16), transparent 54%);
  filter: blur(10px);
  opacity: 0;
  transform: translate3d(-20%, 0, 0);
  animation: mistSweep 3000ms ease-in-out both;
}

.splash-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(232, 196, 106, 0.58);
  border-radius: 50%;
  color: var(--accent-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  background: rgba(28, 10, 34, 0.56);
  box-shadow: inset 0 0 24px rgba(232, 196, 106, 0.11), 0 18px 42px rgba(5, 2, 9, 0.34);
}

.splash-mark,
.splash-title,
.splash-subtitle,
.splash-tags {
  opacity: 0;
  animation: logoSettle 3000ms ease both;
}

.splash-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 12vw, 54px);
  line-height: 1;
}

.splash-subtitle,
.splash-tags {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.splash-subtitle {
  animation: softBlink 1300ms ease-in-out infinite;
}

.splash-tags {
  color: var(--text-soft);
  font-size: 12px;
}

.splash-progress {
  width: min(250px, 72vw);
  height: 3px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.splash-progress span {
  display: block;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-pink), var(--accent-violet), transparent);
  animation: splashProgress 3000ms linear both;
}

@keyframes shimmer {
  from { transform: translate3d(-105%, 0, 0); }
  to { transform: translate3d(260%, 0, 0); }
}

@keyframes splashProgress {
  from { transform: translate3d(-105%, 0, 0); }
  to { transform: translate3d(260%, 0, 0); }
}

@keyframes logoSettle {
  0% { opacity: 0; transform: translate3d(0, 8px, 0); }
  15%, 80% { opacity: 1; transform: translate3d(0, 0, 0); }
  100% { opacity: .86; transform: translate3d(0, 0, 0); }
}

@keyframes softBlink {
  0%, 100% { opacity: 0.62; }
  50% { opacity: 1; }
}

@keyframes particleFloat {
  0% { transform: translate3d(0, 8px, 0) scale(.8); opacity: 0; }
  42% { transform: translate3d(0, -10px, 0) scale(1.18); opacity: 1; }
  100% { transform: translate3d(0, -18px, 0) scale(.9); opacity: .18; }
}

@keyframes bagApproach {
  0%, 14% { opacity: 0; transform: translate3d(-54px, 8px, 0) scale(.92); }
  40% { opacity: 1; transform: translate3d(5px, -1px, 0) scale(1.03); }
  52%, 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes mistSweep {
  0%, 38% { transform: translate3d(-24%, 0, 0); opacity: 0; }
  52% { opacity: 0.72; }
  68%, 100% { transform: translate3d(24%, 0, 0); opacity: 0.24; }
}

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

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(232, 196, 106, 0.48);
  border-radius: 50%;
  color: var(--accent-gold);
  background: rgba(49, 19, 58, 0.54);
  font-family: Georgia, "Times New Roman", serif;
}

.brand-logo {
  flex-basis: 42px;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-color: rgba(232, 196, 106, 0.5);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 18%, rgba(232, 196, 106, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(15, 6, 17, 0.98), rgba(42, 17, 48, 0.94));
  box-shadow:
    0 10px 26px rgba(3, 1, 6, 0.34),
    0 0 0 1px rgba(255, 247, 251, 0.04) inset;
  clip-path: circle(50% at 50% 50%);
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  border-radius: 50%;
  filter: drop-shadow(0 2px 8px rgba(232, 196, 106, 0.12));
}

.brand-title {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 500;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 12px;
}

.top-actions {
  display: flex;
  gap: 8px;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.danger-btn,
.chip,
.tab-btn,
.category-btn,
.nav-btn,
.qty-btn,
.favorite-btn,
.checkout-option {
  min-height: 40px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  padding: 0;
}

.primary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  text-align: center;
  text-decoration: none;
}

.primary-btn {
  border-color: rgba(241, 154, 197, 0.56);
  background: linear-gradient(135deg, rgba(241, 154, 197, 0.34), rgba(169, 140, 255, 0.24));
  box-shadow: 0 10px 30px rgba(169, 140, 255, 0.14);
  font-weight: 700;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.065);
}

.danger-btn {
  border-color: rgba(255, 127, 159, 0.42);
  color: #ffd9e2;
  background: rgba(255, 127, 159, 0.1);
}

.icon-btn:active,
.primary-btn:active,
.ghost-btn:active,
.danger-btn:active,
.chip:active,
.tab-btn:active,
.category-btn:active,
.qty-btn:active,
.checkout-option:active {
  transform: translateY(1px);
}

button:disabled,
.checkout-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  color: #18091f;
  background: var(--accent-pink);
  font-size: 11px;
  font-weight: 800;
}

.icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

.demo-ribbon,
.notice {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(241, 154, 197, 0.24);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: rgba(241, 154, 197, 0.09);
  font-size: 13px;
  line-height: 1.42;
}

.notice.is-success {
  border-color: rgba(120, 214, 178, 0.28);
  background: rgba(120, 214, 178, 0.08);
}

.notice.is-danger {
  border-color: rgba(255, 127, 159, 0.32);
  background: rgba(255, 127, 159, 0.1);
}

.hero,
.panel,
.product-card,
.loyalty-card,
.cart-line,
.checkout-panel,
.dashboard-band,
.data-table-wrap {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(82, 35, 92, 0.42), rgba(24, 9, 29, 0.7));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.6), transparent);
}

.hero-title {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.04;
  font-weight: 500;
}

.hero-copy {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.48;
}

.quick-actions,
.category-grid,
.product-grid,
.stat-grid,
.dashboard-grid,
.summary-grid {
  display: grid;
  gap: 10px;
}

.quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 10px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.section-meta,
.muted,
.product-meta,
.tiny {
  color: var(--text-muted);
}

.tiny {
  font-size: 12px;
}

.panel,
.checkout-panel,
.dashboard-band {
  padding: 14px;
}

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

.category-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 86px;
  padding: 13px;
  text-align: left;
  background:
    radial-gradient(circle at 88% 10%, rgba(232, 196, 106, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(241, 154, 197, 0.14), rgba(169, 140, 255, 0.07) 54%, rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025), var(--shadow-soft);
}

.category-title {
  font-size: 17px;
  font-weight: 750;
}

.category-meta {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
}

.premium-category-grid .category-btn {
  min-height: 102px;
}

.chip-row,
.tabs,
.payment-options {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar,
.tabs::-webkit-scrollbar,
.payment-options::-webkit-scrollbar {
  display: none;
}

.chip,
.tab-btn {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.chip.is-active,
.tab-btn.is-active,
.checkout-option.is-active {
  border-color: rgba(241, 154, 197, 0.62);
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(241, 154, 197, 0.18), rgba(169, 140, 255, 0.14));
  box-shadow: var(--shadow-glow);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  margin: 10px 0 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.search-input,
.select-input,
.number-input,
.text-input {
  width: 100%;
  min-height: 40px;
  min-width: 0;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 11px;
  outline: none;
}

.search-input:focus,
.select-input:focus,
.number-input:focus,
.text-input:focus {
  border-color: rgba(241, 154, 197, 0.64);
  box-shadow: 0 0 0 3px rgba(241, 154, 197, 0.12);
}

.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.product-card {
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 12px;
}

.product-title {
  margin: 0;
  min-height: 42px;
  font-size: 15px;
  line-height: 1.28;
}

.product-meta {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

.price {
  margin: 0;
  color: var(--accent-gold);
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.photo-frame {
  display: grid;
  place-items: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(241, 154, 197, 0.14), rgba(169, 140, 255, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.volume-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.volume-row .chip {
  width: 100%;
}

.notes-list {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.notes-list li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 185, 224, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-size: 13px;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
}

.cart-title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.3;
}

.qty-control {
  display: grid;
  grid-template-columns: 34px 42px 34px;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.qty-value {
  text-align: center;
  font-weight: 800;
}

.summary-grid {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 185, 224, 0.16);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.summary-row strong {
  color: var(--text-main);
}

.checkout-option {
  flex: 0 0 auto;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 10px;
  text-align: left;
}

.checkout-option strong {
  font-size: 14px;
}

.checkout-option span {
  color: var(--text-muted);
  font-size: 12px;
}

.loyalty-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(232, 196, 106, 0.18), rgba(241, 154, 197, 0.12), rgba(169, 140, 255, 0.14)),
    linear-gradient(145deg, rgba(63, 20, 70, 0.86), rgba(17, 7, 22, 0.92));
}

.loyalty-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 84px;
  height: 54px;
  border: 1px solid rgba(232, 196, 106, 0.34);
  border-radius: 8px;
  transform: rotate(-9deg);
  opacity: 0.5;
}

.card-number {
  margin: 12px 0 8px;
  color: var(--accent-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 6vw, 30px);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-violet));
}

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

.stat {
  padding: 12px;
  border: 1px solid rgba(255, 185, 224, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.stat strong {
  display: block;
  color: var(--accent-gold);
  font-size: 21px;
}

.data-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th,
.data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 185, 224, 0.14);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.05);
}

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

.data-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 185, 224, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.data-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.data-row strong {
  flex: 0 0 auto;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.timeline-step span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 185, 224, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-step.is-done {
  color: var(--text-main);
}

.timeline-step.is-done span {
  border-color: rgba(120, 214, 178, 0.58);
  background: var(--success);
}

.timeline-step small {
  color: var(--text-soft);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-off {
  color: var(--danger);
}

.empty-state {
  padding: 22px;
  border: 1px dashed rgba(255, 185, 224, 0.26);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.45;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(8px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(calc(100% - 16px), 960px);
  transform: translateX(-50%);
  padding: 7px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(14, 5, 18, 0.86);
  box-shadow: 0 12px 48px rgba(5, 2, 9, 0.42);
  backdrop-filter: blur(20px);
}

.nav-btn {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 5px 2px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 11px;
}

.nav-btn .nav-icon {
  font-size: 17px;
  line-height: 1;
}

.nav-btn.is-active {
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(241, 154, 197, 0.18), rgba(169, 140, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(241, 154, 197, 0.26);
}

.nav-badge,
.nav-status {
  position: absolute;
  top: 2px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  color: #17091d;
  background: var(--accent-pink);
  font-size: 10px;
  font-weight: 800;
}

.nav-status {
  width: 8px;
  min-width: 8px;
  height: 8px;
  top: 7px;
  right: 10px;
  padding: 0;
  background: var(--danger);
}

.nav-status.is-active {
  background: var(--success);
}

@media (max-width: 720px) {
  .app-shell {
    padding-left: 10px;
    padding-right: 10px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-title {
    max-width: 230px;
  }

  .quick-actions,
  .category-grid,
  .toolbar,
  .filter-grid,
  .product-detail,
  .detail-actions {
    grid-template-columns: 1fr;
  }

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

  .photo-frame {
    min-height: 240px;
  }

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

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

  .nav-btn {
    font-size: 10px;
  }

  .brand-title {
    max-width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* Stage 27 Ecosystem Pro */
.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0%, rgba(241, 154, 197, 0.08) 26%, transparent 48%),
    linear-gradient(250deg, transparent 10%, rgba(232, 196, 106, 0.06) 42%, transparent 68%);
  filter: blur(24px);
  opacity: 0.72;
  animation: glowSweep 7200ms ease-in-out infinite alternate;
}

body[data-theme="home"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(37, 10, 43, 0.96), rgba(9, 4, 12, 0.99)),
    radial-gradient(circle at 18% 10%, rgba(241, 154, 197, 0.16), transparent 30%),
    radial-gradient(circle at 82% 14%, rgba(169, 140, 255, 0.13), transparent 28%);
}

.page-motion {
  animation: pageEnter 520ms ease both;
}

.splash-bottle,
.splash-roller {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(232, 196, 106, 0.42);
  background: linear-gradient(160deg, rgba(255, 231, 244, 0.32), rgba(169, 140, 255, 0.12));
  box-shadow: 0 0 24px rgba(241, 154, 197, 0.16);
}

.splash-bottle {
  right: 14px;
  bottom: 7px;
  width: 24px;
  height: 48px;
  border-radius: 8px 8px 12px 12px;
  opacity: 0;
  animation: bottleAppear 3000ms ease-in-out both;
}

.splash-bottle::before {
  content: "";
  position: absolute;
  left: 7px;
  top: -10px;
  width: 10px;
  height: 10px;
  border-radius: 3px 3px 1px 1px;
  background: rgba(232, 196, 106, 0.48);
}

.splash-roller {
  left: 10px;
  bottom: 9px;
  width: 12px;
  height: 48px;
  border-radius: 999px;
  opacity: 0;
  animation: rollerAppear 3000ms ease-in-out both;
}

.hero-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 370px;
  padding: 0;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
}

.hero-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(8, 4, 11, 0.84), rgba(8, 4, 11, 0.24) 58%, rgba(8, 4, 11, 0.72)),
    linear-gradient(0deg, rgba(8, 4, 11, 0.74), transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: 370px;
  padding: 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-gold);
  font-size: 12px;
  text-transform: uppercase;
}

.hero-cta {
  max-width: 240px;
  margin-top: 18px;
}

.feature-grid,
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.feature-card,
.soft-panel,
.mission,
.day-card,
.timer-card,
.staff-order {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.feature-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 13px;
  color: var(--text-main);
  text-align: left;
}

.feature-card span,
.mission span {
  color: var(--text-muted);
  font-size: 12px;
}

.feature-card.is-admin {
  border-color: rgba(232, 196, 106, 0.36);
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.mini-product {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 11px;
  border: 1px solid rgba(255, 185, 224, 0.15);
  border-radius: var(--radius);
  color: var(--text-main);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.mini-product span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.25;
}

.day-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
}

.concept-band {
  height: 154px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 185, 224, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.concept-band img,
.loyalty-art,
.assistant-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.secret-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(232, 196, 106, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(232, 196, 106, 0.12), rgba(241, 154, 197, 0.08)),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
}

.secret-box span {
  color: var(--text-muted);
  line-height: 1.42;
}

.day-card span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.big-number {
  margin: 8px 0;
  color: var(--accent-gold);
  font-size: 28px;
  font-weight: 800;
}

.product-card {
  cursor: pointer;
  animation: cardEnter 520ms ease both;
}

.product-card:focus-within,
.product-card:hover {
  border-color: rgba(241, 154, 197, 0.48);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.product-thumb {
  display: grid;
  place-items: center;
  height: 108px;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.product-thumb img,
.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 20px;
}

.product-badge {
  padding: 3px 7px;
  border: 1px solid rgba(232, 196, 106, 0.28);
  border-radius: 999px;
  color: var(--accent-gold);
  background: rgba(232, 196, 106, 0.08);
  font-size: 10px;
  font-weight: 700;
}

.inline-cart {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.inline-cart span {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  text-align: center;
}

.compact-btn {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}

.product-motion {
  animation: productSlide 560ms ease both;
}

.cart-line {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

.cart-thumb {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 185, 224, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.cart-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart-info {
  min-width: 0;
}

.tiny-btn {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 12px;
}

.total-row {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 185, 224, 0.13);
  font-size: 17px;
}

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

.checkout-steps span {
  min-height: 34px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 185, 224, 0.14);
  border-radius: var(--radius);
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  text-align: center;
}

.checkout-steps .is-active,
.checkout-steps .is-done {
  border-color: rgba(241, 154, 197, 0.48);
  color: var(--text-main);
  box-shadow: var(--shadow-glow);
}

.checkout-steps .is-done {
  color: var(--success);
}

.loyalty-pro {
  animation: cardShimmer 4600ms ease-in-out infinite;
}

.loyalty-art {
  display: block;
  height: 88px;
  margin-bottom: 8px;
  border-radius: var(--radius);
  opacity: 0.82;
}

.loyalty-row,
.timer-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.loyalty-row strong,
.timer-card strong {
  color: var(--text-main);
}

.mission {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 12px;
}

.mission.is-done {
  border-color: rgba(120, 214, 178, 0.34);
  background: rgba(120, 214, 178, 0.08);
}

.timer-card {
  margin-top: 12px;
  padding: 12px;
}

.cabinet-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.assistant-art {
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  border: 1px solid rgba(255, 185, 224, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.robot-character {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(232, 196, 106, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  font-size: 26px;
}

.staff-order {
  padding: 10px;
}

.checklist {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.checklist label {
  display: block;
  line-height: 1.35;
}

.toast {
  animation: toastIn 360ms ease both;
}

.is-bouncy {
  animation: badgeBounce 520ms ease both;
}

.stagger-item {
  animation: cardEnter 540ms ease both;
}

.stagger-item:nth-child(2) { animation-delay: 40ms; }
.stagger-item:nth-child(3) { animation-delay: 80ms; }
.stagger-item:nth-child(4) { animation-delay: 120ms; }
.stagger-item:nth-child(5) { animation-delay: 160ms; }
.stagger-item:nth-child(6) { animation-delay: 200ms; }

@keyframes glowSweep {
  from { transform: translate3d(-4%, -2%, 0) scale(1); opacity: 0.46; }
  to { transform: translate3d(4%, 2%, 0) scale(1.04); opacity: 0.82; }
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(10px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes productSlide {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes badgeBounce {
  0% { transform: scale(0.75); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardShimmer {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: var(--shadow-soft), 0 0 42px rgba(232, 196, 106, 0.18); }
}

@keyframes bottleAppear {
  0%, 38% { opacity: 0; transform: translate3d(24px, 8px, 0) scale(.94); }
  58% { opacity: 1; transform: translate3d(-2px, -2px, 0) scale(1.02); }
  70%, 100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes rollerAppear {
  0%, 62% { opacity: 0; transform: translate3d(-18px, 8px, 0) rotate(-10deg); }
  80% { opacity: .96; transform: translate3d(2px, -2px, 0) rotate(3deg); }
  100% { opacity: .96; transform: translate3d(0, 0, 0) rotate(0); }
}

@media (max-width: 720px) {
  .hero-pro,
  .hero-content {
    min-height: 420px;
  }

  .feature-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mini-strip {
    grid-template-columns: 1fr 1fr;
  }

  .concept-band {
    height: 118px;
  }

  .assistant-art {
    flex-basis: 78px;
    width: 78px;
    height: 62px;
  }

  .cart-line {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
  }

  .cart-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }

  .cart-thumb {
    width: 58px;
    height: 58px;
  }

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

@media (max-width: 420px) {
  .hero-title {
    font-size: 34px;
  }

  .mini-strip,
  .product-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .app-shell {
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
  }

  .cart-actions {
    grid-template-columns: 1fr;
  }

  .qty-control {
    grid-template-columns: 40px minmax(42px, 1fr) 40px;
  }
}

.mode-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #fff6d8;
  color: #2a2113;
  border-bottom: 1px solid rgba(130, 92, 22, .24);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.mode-banner span {
  font-size: 14px;
  font-weight: 700;
}

.mode-banner .ghost-btn {
  min-height: 34px;
  padding: 7px 10px;
  background: #ffffff;
  color: #2a2113;
  border-color: rgba(130, 92, 22, .28);
}

/* Stage 30 Luxury UX */
.splash-stage {
  position: relative;
  width: min(310px, 82vw);
  height: 170px;
  display: grid;
  place-items: center;
}

.splash-logo-scene {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  opacity: 0;
  animation: stage30Logo 3000ms ease both;
}

.splash-logo-scene .splash-mark {
  width: 78px;
  height: 78px;
}

.splash-shimmer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}

.splash-shimmer::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% -45%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  animation: stage30Shimmer 780ms ease 80ms both;
}

.splash-card {
  width: 240px;
  height: 120px;
  margin-top: 52px;
}

.splash-bag {
  inset: 34px auto auto 28px;
  width: 78px;
  height: 68px;
  animation: stage30Bag 3000ms cubic-bezier(.2,.9,.2,1) both;
}

.splash-bottle {
  right: 62px;
  bottom: 22px;
  width: 32px;
  height: 70px;
  animation: stage30Bottle 3000ms ease both;
}

.splash-mist {
  inset: 36px 0 auto auto;
  width: 145px;
  height: 50px;
  border-radius: 999px;
  animation: stage30Mist 3000ms ease both;
}

.splash-roller {
  left: 160px;
  bottom: 18px;
  width: 18px;
  height: 76px;
  animation: stage30Roller 3000ms ease both;
}

.splash-trail {
  position: absolute;
  left: 142px;
  bottom: 18px;
  width: 90px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232,196,106,.34), rgba(241,154,197,.16), transparent);
  filter: blur(10px);
  opacity: 0;
  animation: stage30Trail 3000ms ease both;
}

.visual-category {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 138px;
  border-color: rgba(255, 204, 233, 0.22);
  background:
    radial-gradient(circle at 84% 16%, rgba(232, 196, 106, 0.18), transparent 31%),
    radial-gradient(circle at 18% 18%, rgba(241, 154, 197, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(63, 24, 72, 0.92), rgba(18, 7, 23, 0.94) 54%, rgba(8, 4, 11, 0.98));
  box-shadow:
    0 18px 46px rgba(5, 2, 9, 0.38),
    0 0 28px rgba(133, 71, 136, 0.14),
    inset 0 1px 0 rgba(255, 247, 251, 0.08);
}

.visual-category::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255, 247, 251, 0.08), transparent 24% 70%, rgba(232, 196, 106, 0.08)),
    linear-gradient(0deg, rgba(8, 4, 11, 0.34), transparent 64%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 251, 0.04),
    inset 0 -22px 42px rgba(8, 4, 11, 0.32);
  pointer-events: none;
}

.visual-category span {
  position: relative;
  z-index: 1;
}

.category-subtitle {
  margin-top: auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 34px;
  padding: 0;
  font-size: 18px;
  background: rgba(8, 4, 11, .58);
}

.favorite-btn.is-favorite {
  color: var(--accent-pink);
  border-color: rgba(241, 154, 197, .54);
}

@keyframes stage30Logo {
  0% { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.92); }
  15%, 80% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  100% { opacity: .82; transform: translateX(-50%) translateY(-2px) scale(.98); }
}

@keyframes stage30Shimmer {
  from { transform: translateX(0) skewX(-18deg); }
  to { transform: translateX(360%) skewX(-18deg); }
}

@keyframes stage30Bag {
  0%, 15% { opacity: 0; transform: translate3d(-95px, 8px, 0) scale(.9); }
  40% { opacity: 1; transform: translate3d(5px, -2px, 0) scale(1.04); }
  52%, 82% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: .84; transform: translate3d(18px, -4px, 0) scale(.94); }
}

@keyframes stage30Bottle {
  0%, 40% { opacity: 0; transform: translate3d(22px, 10px, 0) scale(.92); }
  54%, 70% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: .78; transform: translate3d(-6px, -4px, 0) scale(.94); }
}

@keyframes stage30Mist {
  0%, 40% { opacity: 0; transform: translate3d(-12px, 2px, 0) scale(.72); }
  58% { opacity: .78; transform: translate3d(20px, -2px, 0) scale(1.04); }
  70%, 100% { opacity: .18; transform: translate3d(44px, -4px, 0) scale(1.18); }
}

@keyframes stage30Roller {
  0%, 63% { opacity: 0; transform: translate3d(-20px, 12px, 0) rotate(-12deg); }
  80% { opacity: 1; transform: translate3d(4px, -3px, 0) rotate(4deg); }
  100% { opacity: .82; transform: translate3d(-14px, -6px, 0) rotate(0deg); }
}

@keyframes stage30Trail {
  0%, 62% { opacity: 0; transform: translateX(-12px); }
  78% { opacity: .86; transform: translateX(8px); }
  100% { opacity: .12; transform: translateX(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-logo-scene,
  .splash-bag,
  .splash-bottle,
  .splash-roller {
    opacity: 1;
    transform: none;
  }
  .splash-mist,
  .splash-trail,
  .splash-shimmer {
    display: none;
  }
}

/* Stage 31 UX Polish */
body[data-theme="gifts"] {
  --theme-gradient:
    linear-gradient(145deg, rgba(33, 10, 38, 0.94), rgba(8, 4, 11, 0.98)),
    radial-gradient(circle at 18% 12%, rgba(232, 196, 106, 0.2), transparent 30%),
    radial-gradient(circle at 84% 18%, rgba(241, 154, 197, 0.2), transparent 28%);
}

.app-shell {
  padding-bottom: calc(146px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(146px + env(safe-area-inset-bottom));
}

.page-motion {
  transform-origin: 50% 12%;
  animation: stage31PageIn 260ms ease both;
}

.section-more {
  margin-top: 10px;
}

.category-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.option-panel {
  margin: 10px 0 14px;
  padding: 12px;
  border: 1px solid rgba(232, 196, 106, 0.28);
  border-radius: var(--radius);
  background: rgba(18, 7, 21, 0.74);
  box-shadow: var(--shadow-soft);
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
}

.search-input::placeholder,
.number-input::placeholder {
  color: rgba(255, 231, 244, 0.48);
}

.loyalty-card {
  min-height: 226px;
  padding: 18px;
}

.loyalty-art {
  position: relative;
  display: block;
  height: 72px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 106, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(255, 247, 251, 0.16), transparent 35%),
    linear-gradient(135deg, rgba(232, 196, 106, 0.28), rgba(241, 154, 197, 0.2), rgba(169, 140, 255, 0.18)),
    rgba(22, 8, 26, 0.8);
  opacity: 1;
}

.card-chip {
  position: absolute;
  left: 16px;
  bottom: 14px;
  width: 38px;
  height: 26px;
  border: 1px solid rgba(255, 247, 251, 0.36);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(232, 196, 106, 0.84), rgba(241, 154, 197, 0.42));
}

.card-wave {
  position: absolute;
  right: -16px;
  top: 8px;
  width: 148px;
  height: 90px;
  border: 1px solid rgba(255, 247, 251, 0.18);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.card-number {
  overflow-wrap: anywhere;
}

.cabinet-hero {
  align-items: center;
}

.robot-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 106, 0.46);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 251, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(241, 154, 197, 0.22), rgba(169, 140, 255, 0.16)),
    rgba(18, 7, 21, 0.84);
  box-shadow: inset 0 0 24px rgba(255, 247, 251, 0.08), var(--shadow-glow);
}

.robot-avatar::before {
  content: "";
  width: 42px;
  height: 34px;
  border: 1px solid rgba(255, 247, 251, 0.48);
  border-radius: 14px 14px 16px 16px;
  background: rgba(255, 247, 251, 0.12);
  box-shadow: inset 0 -8px 16px rgba(8, 4, 11, 0.16);
}

.robot-avatar::after {
  content: "";
  position: absolute;
  top: 34px;
  left: 25px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 18px 0 0 var(--accent-gold);
}

.robot-avatar span {
  position: absolute;
  top: 17px;
  width: 18px;
  height: 10px;
  border-top: 1px solid rgba(232, 196, 106, 0.62);
}

.robot-avatar-male {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 251, 0.28), transparent 24%),
    linear-gradient(145deg, rgba(169, 140, 255, 0.24), rgba(232, 196, 106, 0.12)),
    rgba(18, 7, 21, 0.84);
}

.robot-avatar-female {
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 251, 0.3), transparent 24%),
    linear-gradient(145deg, rgba(241, 154, 197, 0.3), rgba(232, 196, 106, 0.14)),
    rgba(18, 7, 21, 0.84);
}

.cabinet-name {
  min-width: 0;
}

.staff-order-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.staff-order-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.staff-order-head span {
  color: var(--text-muted);
  font-size: 12px;
}

.status-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(120, 214, 178, 0.34);
  border-radius: 999px;
  color: #c9ffe8;
  background: rgba(120, 214, 178, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.splash-bag {
  border-radius: 10px 10px 14px 14px;
}

.splash-bag::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 24px;
  height: 1px;
  background: rgba(232, 196, 106, 0.42);
}

.splash-bottle {
  width: 40px;
  height: 66px;
  border-radius: 12px 12px 16px 16px;
}

.splash-bottle::before {
  left: 12px;
  top: -14px;
  width: 16px;
  height: 14px;
  border-radius: 5px 5px 2px 2px;
}

.splash-bottle::after {
  content: "";
  position: absolute;
  left: 17px;
  top: -22px;
  width: 24px;
  height: 8px;
  border: 1px solid rgba(232, 196, 106, 0.46);
  border-left: 0;
  border-radius: 0 8px 8px 0;
}

.splash-roller::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  height: 12px;
  border-radius: 999px;
  background: rgba(232, 196, 106, 0.45);
}

@keyframes stage31PageIn {
  from { opacity: 0; transform: translate3d(0, 8px, 0) scale(0.992); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 720px) {
  .category-actions {
    grid-template-columns: 1fr;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-motion {
    animation: none;
  }
}

/* Stage 32 Luxury Home + Motion + Card Polish */
.app-shell {
  padding-bottom: calc(168px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(168px + env(safe-area-inset-bottom));
}

.page-motion {
  animation: stage32PageSoft 240ms cubic-bezier(.2,.8,.2,1) both;
  will-change: opacity, transform, filter;
}

.page-forward {
  animation-name: stage32PageForward;
}

.page-back {
  animation-name: stage32PageBack;
}

.hero-pro {
  margin-bottom: 14px;
}

.quick-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.quick-tile,
.wide-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  color: var(--text-main);
  background:
    radial-gradient(circle at 86% 12%, rgba(232, 196, 106, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-tile {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 7px;
  min-height: 122px;
  padding: 13px;
  text-align: left;
}

.quick-tile::after,
.wide-banner::after,
.luxury-category::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 36%, rgba(255, 247, 251, 0.08) 48%, transparent 62%),
    radial-gradient(circle at 18% 18%, rgba(241, 154, 197, 0.14), transparent 28%);
  pointer-events: none;
}

.quick-tile:active,
.wide-banner:active,
.luxury-category:active {
  transform: translateY(1px) scale(0.992);
}

.quick-tile:hover,
.wide-banner:hover,
.luxury-category:hover {
  border-color: rgba(241, 154, 197, 0.48);
  box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.quick-icon,
.category-icon,
.banner-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(232, 196, 106, 0.36);
  border-radius: 50%;
  color: var(--accent-gold);
  background: rgba(18, 7, 21, 0.48);
  box-shadow: inset 0 0 18px rgba(255, 247, 251, 0.06);
}

.line-icon {
  width: 22px;
  height: 22px;
}

.quick-tile strong,
.wide-banner strong {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.2;
}

.quick-tile span:not(.quick-icon) {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.wide-banner-grid {
  display: grid;
  gap: 10px;
  margin: 10px 0 18px;
}

.wide-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 94px;
  padding: 14px;
  text-align: left;
}

.banner-hit {
  background:
    radial-gradient(circle at 82% 20%, rgba(232, 196, 106, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(84, 31, 78, 0.76), rgba(20, 8, 25, 0.88));
}

.banner-newest {
  background:
    radial-gradient(circle at 84% 18%, rgba(169, 140, 255, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(48, 20, 72, 0.78), rgba(20, 8, 25, 0.9));
}

.banner-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.banner-copy em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 13px;
}

.banner-cta {
  position: relative;
  z-index: 1;
  padding: 8px 10px;
  border: 1px solid rgba(232, 196, 106, 0.28);
  border-radius: 999px;
  color: var(--accent-gold);
  background: rgba(8, 4, 11, 0.34);
  font-size: 12px;
  white-space: nowrap;
}

.luxury-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(132px, 42%, 196px);
  align-items: stretch;
  min-height: 174px;
  padding: 0;
  border-color: rgba(232, 196, 106, 0.22);
  background:
    radial-gradient(ellipse 260px 168px at 78% 24%, rgba(232, 196, 106, 0.15), transparent 67%),
    radial-gradient(ellipse 310px 210px at 67% 76%, rgba(120, 54, 132, 0.2), transparent 70%),
    radial-gradient(ellipse 240px 150px at 16% 14%, rgba(241, 154, 197, 0.1), transparent 66%),
    linear-gradient(118deg, rgba(37, 12, 45, 0.98), rgba(16, 6, 22, 0.99) 54%, rgba(7, 4, 11, 1));
  box-shadow:
    0 18px 46px rgba(5, 2, 9, 0.38),
    0 0 28px rgba(91, 49, 108, 0.14),
    inset 0 1px 0 rgba(255, 247, 251, 0.075);
}

.category-bags.luxury-category {
  border-color: rgba(232, 196, 106, 0.27);
  background:
    radial-gradient(ellipse 300px 176px at 78% 22%, rgba(232, 196, 106, 0.2), transparent 68%),
    radial-gradient(ellipse 320px 220px at 68% 78%, rgba(151, 65, 142, 0.22), transparent 70%),
    radial-gradient(ellipse 250px 150px at 14% 16%, rgba(241, 154, 197, 0.11), transparent 66%),
    linear-gradient(118deg, rgba(43, 14, 48, 0.98), rgba(17, 6, 22, 0.99) 54%, rgba(7, 4, 11, 1));
  box-shadow:
    0 20px 54px rgba(5, 2, 9, 0.44),
    0 0 34px rgba(142, 77, 128, 0.17),
    inset 0 1px 0 rgba(255, 247, 251, 0.09);
}

.luxury-category::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.86;
  background:
    radial-gradient(ellipse 220px 110px at 72% 36%, rgba(255, 247, 251, 0.08), transparent 70%),
    radial-gradient(ellipse 170px 120px at 84% 78%, rgba(232, 196, 106, 0.12), transparent 72%),
    linear-gradient(104deg, rgba(8, 4, 11, 0.22), rgba(91, 39, 98, 0.13) 40%, rgba(232, 196, 106, 0.06) 68%, rgba(8, 4, 11, 0.04));
  filter: saturate(0.94);
}

.luxury-category::after {
  z-index: 0;
  background:
    radial-gradient(ellipse 260px 130px at 94% 8%, rgba(255, 247, 251, 0.055), transparent 72%),
    radial-gradient(ellipse 190px 132px at 78% 88%, rgba(241, 154, 197, 0.065), transparent 72%),
    radial-gradient(ellipse 210px 220px at 51% 50%, rgba(255, 247, 251, 0.055), transparent 49%, rgba(8, 4, 11, 0.1) 73%, transparent 74%),
    linear-gradient(128deg, rgba(255, 247, 251, 0.055), transparent 24% 72%, rgba(232, 196, 106, 0.065)),
    linear-gradient(0deg, rgba(7, 4, 10, 0.26), transparent 64%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 251, 0.04),
    inset 0 -22px 40px rgba(7, 4, 10, 0.3);
}

.category-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 15px clamp(20px, 5vw, 30px) 15px 14px;
  background:
    radial-gradient(ellipse 210px 130px at 6% 6%, rgba(255, 247, 251, 0.045), transparent 72%),
    linear-gradient(100deg, rgba(8, 4, 11, 0.18), rgba(8, 4, 11, 0.04) 62%, transparent);
}

.luxury-category .category-icon,
.luxury-category .category-title,
.luxury-category .category-subtitle,
.luxury-category .category-meta {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

.luxury-category .category-icon {
  margin-bottom: 9px;
}

.category-visual {
  position: relative;
  grid-column: 2;
  align-self: stretch;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 100%;
  margin-left: 0;
  padding: 14px 12px 12px 0;
  overflow: hidden;
  pointer-events: none;
}

.category-visual::before {
  content: "";
  position: absolute;
  inset: -18px -10px -18px -58px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 190px 136px at 72% 42%, rgba(232, 196, 106, 0.1), transparent 72%),
    radial-gradient(ellipse 170px 150px at 62% 78%, rgba(169, 140, 255, 0.1), transparent 74%),
    radial-gradient(ellipse 86px 170px at 13% 52%, rgba(255, 247, 251, 0.11), transparent 67%);
  opacity: 0.9;
}

.category-visual::after {
  content: "";
  position: absolute;
  inset: -22px auto -22px -74px;
  z-index: 0;
  width: 116px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58px 95px at 58% 20%, rgba(255, 247, 251, 0.06), transparent 70%),
    radial-gradient(ellipse 76px 116px at 42% 62%, rgba(120, 54, 132, 0.18), transparent 72%),
    linear-gradient(96deg, transparent, rgba(255, 247, 251, 0.035) 48%, transparent 94%);
  transform: skewX(-10deg);
  border-radius: 52% 48% 48% 52%;
  opacity: 0.82;
}

.category-visual picture {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.category-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 50%;
  opacity: 0.98;
  transform: scale(1.02) translateZ(0);
  filter:
    saturate(1.02)
    contrast(1.03)
    drop-shadow(0 18px 24px rgba(3, 1, 6, 0.46))
    drop-shadow(0 0 14px rgba(232, 196, 106, 0.12));
}

.category-visual.is-fallback picture {
  display: none;
}

.category-bags .category-visual img {
  object-position: 54% 52%;
  transform: scale(1.2) translateZ(0);
  filter:
    saturate(1.05)
    contrast(1.05)
    drop-shadow(0 20px 28px rgba(3, 1, 6, 0.52))
    drop-shadow(0 0 18px rgba(232, 196, 106, 0.16));
}

.category-perfume .category-visual img {
  object-position: 50% 48%;
  transform: scale(1.1) translateZ(0);
}

.category-oils .category-visual img {
  object-position: 50% 48%;
  transform: scale(1.12) translateZ(0);
  filter:
    saturate(1.04)
    contrast(1.06)
    brightness(1.04)
    drop-shadow(0 18px 24px rgba(3, 1, 6, 0.48))
    drop-shadow(0 0 16px rgba(232, 196, 106, 0.15));
}

.category-accessories .category-visual img {
  object-position: 53% 55%;
  transform: scale(1.07) translateZ(0);
}

.category-gifts .category-visual img {
  object-position: 54% 51%;
  transform: scale(1.12) translateZ(0);
}

.daily-choice {
  margin-bottom: 4px;
  background:
    radial-gradient(circle at 86% 12%, rgba(241, 154, 197, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
}

.daily-choice p {
  margin: 0;
  color: var(--accent-gold);
  font-weight: 800;
}

.daily-copy {
  min-width: 0;
}

.home-secondary {
  margin-top: 8px;
}

.saved-list-panel {
  display: grid;
  gap: 12px;
}

.saved-list-actions {
  margin-top: 0;
}

.loyalty-card {
  display: grid;
  gap: 12px;
  min-height: auto;
  padding: 16px;
}

.premium-card-art {
  position: relative;
  aspect-ratio: 1.72 / 1;
  height: auto;
  min-height: 188px;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border-color: rgba(232, 196, 106, 0.42);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 247, 251, 0.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(169, 140, 255, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(232, 196, 106, 0.22), rgba(241, 154, 197, 0.24), rgba(73, 32, 92, 0.78)),
    #17091d;
  box-shadow: inset 0 0 36px rgba(255, 247, 251, 0.07), var(--shadow-soft);
}

.premium-card-art::after {
  content: "";
  position: absolute;
  inset: -20% -26% auto auto;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 247, 251, 0.16);
  border-radius: 50%;
}

.card-brand {
  position: absolute;
  left: 18px;
  top: 16px;
  color: rgba(255, 247, 251, 0.86);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.premium-card-art .card-chip {
  left: 20px;
  top: 60px;
  bottom: auto;
  width: 42px;
  height: 30px;
}

.premium-card-art .card-number {
  position: absolute;
  left: 20px;
  top: 102px;
  right: 18px;
  color: #fff7fb;
  font-size: clamp(18px, 5vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(8, 4, 11, 0.42);
  overflow-wrap: anywhere;
}

.premium-card-art .card-wave {
  right: -26px;
  top: 18px;
  width: 180px;
  height: 124px;
  opacity: 0.8;
}

.card-state {
  margin: 0;
  color: var(--accent-gold);
  font-weight: 800;
}

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

.loyalty-info {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 11px;
  border: 1px solid rgba(255, 185, 224, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.loyalty-info span {
  color: var(--text-muted);
  font-size: 12px;
}

.loyalty-info strong {
  color: var(--text-main);
  line-height: 1.22;
}

@keyframes stage32PageSoft {
  from { opacity: 0; transform: translate3d(0, 4px, 0) scale(0.996); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes stage32PageForward {
  from { opacity: 0; transform: translate3d(12px, 0, 0) scale(0.996); filter: blur(5px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@keyframes stage32PageBack {
  from { opacity: 0; transform: translate3d(-10px, 0, 0) scale(0.998); filter: blur(4px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); filter: blur(0); }
}

@media (max-width: 720px) {
  .wide-banner {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .banner-cta {
    grid-column: 2;
    justify-self: start;
  }

  .premium-category-grid {
    grid-template-columns: 1fr;
  }

  .luxury-category {
    grid-template-columns: minmax(0, 1fr) clamp(126px, 39%, 164px);
  }

  .premium-card-art {
    min-height: 176px;
  }
}

@media (max-width: 420px) {
  .loyalty-info-grid {
    grid-template-columns: 1fr;
  }

  .premium-card-art {
    min-height: 160px;
  }

  .luxury-category {
    grid-template-columns: minmax(0, 1fr) 124px;
    min-height: 158px;
  }

  .category-copy {
    padding: 13px 12px 13px 13px;
  }

  .category-visual {
    width: 100%;
    margin-left: 0;
    padding: 12px 8px 12px 0;
  }

  .category-subtitle {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-motion,
  .page-forward,
  .page-back,
  .quick-tile,
  .wide-banner,
  .luxury-category {
    animation: none;
    transition: none;
  }
}

.stage33-checkout,
.order-panel,
.orders-panel,
.current-order-block {
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.checkout-confirm {
  margin-top: 12px;
  margin-bottom: calc(28px + env(safe-area-inset-bottom));
  min-height: 52px;
}

.field-label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
}

.field-label span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid rgba(255, 185, 224, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-main);
  font: inherit;
  padding: 12px 13px;
}

.text-input.is-invalid {
  border-color: rgba(255, 143, 171, 0.72);
  box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.12);
}

.text-area {
  min-height: 82px;
  resize: vertical;
}

.receipt-email-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 213, 159, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
}

.receipt-email-card .field-label {
  margin: 0;
}

.saved-email-hint {
  color: var(--text-muted);
  font-size: 12px;
}

.field-error {
  color: #ffb3c3;
  font-size: 12px;
  font-weight: 700;
}

.promo-box,
.checkout-extras,
.order-card {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 185, 224, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--text-main);
}

.checkout-summary {
  margin-top: 14px;
}

/* Stage 33 3s anime-luxury splash hotfix */
.splash-screen {
  gap: 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 229, 242, 0.24), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(241, 154, 197, 0.2), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(169, 140, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(232, 196, 106, 0.13), transparent 34%),
    linear-gradient(145deg, #1a071d 0%, #100616 48%, #060309 100%);
  transition: opacity 460ms cubic-bezier(.2,.8,.2,1), visibility 460ms ease, filter 460ms ease, transform 460ms ease;
}

.splash-screen::before,
.splash-screen::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.splash-screen::before {
  inset: -12%;
  background:
    conic-gradient(from 220deg at 50% 44%, transparent 0 62deg, rgba(255, 247, 251, 0.08) 86deg, transparent 118deg 360deg),
    radial-gradient(ellipse at 50% 42%, transparent 0 42%, rgba(232, 196, 106, 0.16) 44%, transparent 47%);
  filter: blur(2px);
  opacity: 0;
  animation: stage33Aura 3000ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-screen::after {
  inset: 0;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(255, 247, 251, 0.1) 46%, transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(6, 3, 9, 0.34) 100%);
  opacity: 0;
  animation: stage33LightSweep 3000ms ease both;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  filter: blur(10px);
  transform: translate3d(0, -8px, 0) scale(1.015);
}

.splash-stage,
.splash-title,
.splash-subtitle,
.splash-tags,
.splash-progress {
  position: relative;
  z-index: 1;
}

.splash-stage {
  width: min(300px, 78vw);
  height: 188px;
  margin-bottom: 2px;
}

.splash-logo-scene {
  top: 0;
  width: 86px;
  height: 86px;
  animation: stage33LogoScene 3000ms cubic-bezier(.2,.9,.2,1) both;
}

.splash-logo-scene .splash-mark,
.splash-mark {
  width: 86px;
  height: 86px;
  border-color: rgba(232, 196, 106, 0.72);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 247, 251, 0.18), transparent 32%),
    rgba(28, 10, 34, 0.64);
  box-shadow: inset 0 0 28px rgba(232, 196, 106, 0.14), 0 24px 58px rgba(5, 2, 9, 0.42), 0 0 34px rgba(241, 154, 197, 0.18);
  font-size: 31px;
}

.splash-shimmer::after {
  animation: stage33MarkShimmer 1500ms cubic-bezier(.2,.8,.2,1) 1040ms both;
}

.splash-card {
  width: min(286px, 76vw);
  height: 140px;
  margin-top: 58px;
  perspective: 720px;
}

.splash-bag {
  inset: auto auto 16px 14px;
  width: 88px;
  height: 76px;
  border-color: rgba(232, 196, 106, 0.6);
  border-radius: 10px 10px 14px 14px;
  background:
    linear-gradient(135deg, rgba(255, 247, 251, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(241, 154, 197, 0.34), rgba(91, 38, 92, 0.48));
  animation: stage33BagFlight 3000ms cubic-bezier(.18,.9,.18,1) both;
}

.splash-bag::before {
  left: 24px;
  top: -18px;
  width: 38px;
  height: 30px;
  border-color: rgba(232, 196, 106, 0.58);
}

.splash-bag::after {
  left: 14px;
  right: 14px;
  top: 29px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.58), transparent);
}

.splash-bottle {
  right: 76px;
  bottom: 16px;
  width: 48px;
  height: 74px;
  border: 1px solid rgba(255, 247, 251, 0.4);
  border-radius: 8px 8px 12px 12px;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.18), transparent 30%, rgba(255, 247, 251, 0.12) 70%, transparent),
    linear-gradient(145deg, rgba(169, 140, 255, 0.28), rgba(241, 154, 197, 0.2));
  box-shadow: inset 0 0 20px rgba(255, 247, 251, 0.08), var(--shadow-glow);
  animation: stage33PerfumeFlight 3000ms cubic-bezier(.2,.86,.2,1) both;
}

.splash-bottle::before {
  left: 17px;
  top: -16px;
  width: 14px;
  height: 16px;
  border: 1px solid rgba(232, 196, 106, 0.58);
  border-radius: 4px 4px 2px 2px;
  background: rgba(232, 196, 106, 0.42);
}

.splash-bottle::after {
  left: 18px;
  top: 27px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(232, 196, 106, 0.48);
  border-radius: 50%;
  background: rgba(255, 247, 251, 0.08);
  box-shadow: 0 -35px 0 -4px rgba(232, 196, 106, 0.68);
}

.splash-roller {
  left: auto;
  right: 28px;
  bottom: 14px;
  width: 20px;
  height: 82px;
  border: 1px solid rgba(232, 196, 106, 0.5);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(232, 196, 106, 0.42), rgba(241, 154, 197, 0.18) 34%, rgba(169, 140, 255, 0.22));
  box-shadow: inset 0 0 14px rgba(255, 247, 251, 0.1), 0 0 24px rgba(232, 196, 106, 0.12);
  animation: stage33RollerArc 3000ms cubic-bezier(.2,.88,.2,1) both;
}

.splash-roller::before {
  left: 3px;
  right: 3px;
  top: 5px;
  height: 13px;
  border-radius: 999px;
  background: rgba(255, 247, 251, 0.5);
}

.splash-mist {
  inset: 48px -6px auto auto;
  width: 210px;
  height: 62px;
  border-radius: 999px;
  background:
    linear-gradient(95deg, transparent, rgba(255, 225, 242, 0.34), rgba(232, 196, 106, 0.18), transparent),
    linear-gradient(110deg, transparent 18%, rgba(169, 140, 255, 0.2), transparent 58%);
  filter: blur(12px);
  animation: stage33MistRibbon 3000ms ease both;
}

.splash-trail {
  left: auto;
  right: -20px;
  bottom: 20px;
  width: 176px;
  height: 48px;
  background:
    linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.34), rgba(241, 154, 197, 0.2), transparent),
    radial-gradient(ellipse at 72% 50%, rgba(169, 140, 255, 0.28), transparent 58%);
  animation: stage33TrailFlash 3000ms ease both;
}

.splash-orbit span {
  width: 5px;
  height: 5px;
  animation: stage33Spark 3000ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-orbit span:nth-child(1) { top: 24%; left: 18%; animation-delay: 120ms; }
.splash-orbit span:nth-child(2) { top: 17%; right: 22%; animation-delay: 360ms; background: var(--accent-violet); }
.splash-orbit span:nth-child(3) { bottom: 28%; left: 21%; animation-delay: 660ms; }
.splash-orbit span:nth-child(4) { bottom: 22%; right: 18%; animation-delay: 900ms; background: var(--accent-gold); }
.splash-orbit span:nth-child(5) { top: 40%; left: 12%; animation-delay: 1180ms; background: var(--accent-gold); }
.splash-orbit span:nth-child(6) { top: 48%; right: 12%; animation-delay: 1420ms; background: var(--accent-pink); }

.splash-title {
  position: relative;
  overflow: hidden;
  padding: 0 8px 3px;
  color: #fff7fb;
  text-shadow: 0 0 24px rgba(241, 154, 197, 0.28), 0 2px 16px rgba(5, 2, 9, 0.48);
  animation: stage33TitleReveal 3000ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-title::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 247, 251, 0.72), transparent);
  transform: translateX(-120%) skewX(-14deg);
  animation: stage33TitleTrace 3000ms cubic-bezier(.2,.8,.2,1) both;
}

.splash-subtitle,
.splash-tags {
  animation: stage33CopySettle 3000ms ease both;
}

.splash-tags {
  letter-spacing: 0;
}

.splash-progress {
  background: rgba(255, 247, 251, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 247, 251, 0.04);
}

.splash-progress span {
  width: 54%;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-pink), var(--accent-violet), transparent);
  animation: stage33Progress 3000ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes stage33Aura {
  0% { opacity: 0; transform: rotate(-8deg) scale(.92); }
  34% { opacity: .72; }
  72% { opacity: .54; transform: rotate(8deg) scale(1.04); }
  100% { opacity: .2; transform: rotate(12deg) scale(1.08); }
}

@keyframes stage33LightSweep {
  0%, 46% { opacity: 0; transform: translateX(-18%); }
  64% { opacity: .8; }
  100% { opacity: .16; transform: translateX(18%); }
}

@keyframes stage33LogoScene {
  0% { opacity: 0; transform: translateX(-50%) translateY(22px) scale(.84); filter: blur(8px); }
  22% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); filter: blur(0); }
  62% { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1); }
  100% { opacity: .9; transform: translateX(-50%) translateY(-5px) scale(.98); }
}

@keyframes stage33MarkShimmer {
  from { transform: translateX(-120%) skewX(-18deg); }
  to { transform: translateX(340%) skewX(-18deg); }
}

@keyframes stage33BagFlight {
  0% { opacity: 0; transform: translate3d(-150px, 38px, 0) rotate(-14deg) scale(.78); filter: blur(8px); }
  34% { opacity: 1; transform: translate3d(10px, -8px, 0) rotate(4deg) scale(1.06); filter: blur(0); }
  52%, 82% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
  100% { opacity: .86; transform: translate3d(10px, -8px, 0) rotate(2deg) scale(.95); }
}

@keyframes stage33PerfumeFlight {
  0%, 26% { opacity: 0; transform: translate3d(126px, 30px, 0) rotate(12deg) scale(.78); filter: blur(8px); }
  52% { opacity: 1; transform: translate3d(-6px, -6px, 0) rotate(-3deg) scale(1.04); filter: blur(0); }
  66%, 84% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
  100% { opacity: .88; transform: translate3d(-4px, -8px, 0) scale(.96); }
}

@keyframes stage33RollerArc {
  0%, 48% { opacity: 0; transform: translate3d(82px, -54px, 0) rotate(28deg) scale(.82); filter: blur(7px); }
  72% { opacity: 1; transform: translate3d(-8px, 4px, 0) rotate(-8deg) scale(1.04); filter: blur(0); }
  86% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0) scale(1); }
  100% { opacity: .86; transform: translate3d(-8px, -8px, 0) rotate(-3deg) scale(.96); }
}

@keyframes stage33MistRibbon {
  0%, 28% { opacity: 0; transform: translate3d(-62px, 8px, 0) scale(.7); }
  50% { opacity: .78; transform: translate3d(0, -4px, 0) scale(1.02); }
  76%, 100% { opacity: .18; transform: translate3d(48px, -8px, 0) scale(1.18); }
}

@keyframes stage33TrailFlash {
  0%, 46% { opacity: 0; transform: translate3d(36px, -14px, 0) rotate(-10deg); }
  72% { opacity: .82; transform: translate3d(-8px, 4px, 0) rotate(-2deg); }
  100% { opacity: .1; transform: translate3d(-26px, -4px, 0); }
}

@keyframes stage33Spark {
  0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.5); }
  34% { opacity: .95; transform: translate3d(10px, -10px, 0) scale(1.25); }
  70% { opacity: .72; transform: translate3d(-6px, -28px, 0) scale(.9); }
  100% { opacity: 0; transform: translate3d(2px, -42px, 0) scale(.45); }
}

@keyframes stage33TitleReveal {
  0%, 42% { opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(8px); clip-path: inset(0 50% 0 50%); }
  66% { opacity: 1; transform: translate3d(0, 0, 0); filter: blur(0); clip-path: inset(0 0 0 0); }
  100% { opacity: .95; transform: translate3d(0, -2px, 0); clip-path: inset(0 0 0 0); }
}

@keyframes stage33TitleTrace {
  0%, 48% { transform: translateX(-120%) skewX(-14deg); opacity: 0; }
  64% { opacity: .85; }
  82%, 100% { transform: translateX(120%) skewX(-14deg); opacity: 0; }
}

@keyframes stage33CopySettle {
  0%, 58% { opacity: 0; transform: translate3d(0, 8px, 0); }
  76% { opacity: .88; transform: translate3d(0, 0, 0); }
  100% { opacity: .7; transform: translate3d(0, 0, 0); }
}

@keyframes stage33Progress {
  from { transform: translate3d(-112%, 0, 0); }
  to { transform: translate3d(210%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .splash-screen,
  .splash-screen::before,
  .splash-screen::after,
  .splash-logo-scene,
  .splash-mark,
  .splash-title,
  .splash-subtitle,
  .splash-tags,
  .splash-progress span,
  .splash-bag,
  .splash-bottle,
  .splash-roller {
    animation: none;
    transition-duration: 160ms;
  }

  .splash-screen::before,
  .splash-screen::after,
  .splash-mist,
  .splash-trail,
  .splash-shimmer,
  .splash-orbit {
    display: none;
  }

  .splash-logo-scene,
  .splash-mark,
  .splash-title,
  .splash-subtitle,
  .splash-tags,
  .splash-bag,
  .splash-bottle,
  .splash-roller {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }
}
