/* ============================================================
   کفش ایوان — components.css v12
   اجزای مشترک: shell, top-bar, nav, gallery, buttons, toast, forms
   ============================================================ */

/* ============================================================
   1. APP SHELL
   ============================================================ */
body {
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
}

.app {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: var(--z-base);
}

.page-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding:
    calc(var(--top-bar-h) + 10px)
    clamp(10px, 2.5vw, 16px)
    calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px))
    clamp(10px, 2.5vw, 16px);
}
.page-scroll::-webkit-scrollbar { display: none; }

/* ============================================================
   2. TOP BAR
   ============================================================ */
.top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--top-bar-h);
  z-index: 20;
  display: grid;
  grid-template-columns: 46px 1fr 52px;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(253, 252, 247, 0.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.85);
  backdrop-filter: blur(24px) saturate(1.85);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 2px 18px rgba(184, 134, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .top-bar {
    background: rgba(253, 252, 247, 0.94);
    box-shadow: 0 2px 18px rgba(184, 134, 11, 0.14);
  }
}

.back-btn {
  width: 46px; height: 46px;
  border-radius: 13px;
  border: 1.3px solid rgba(212, 175, 55, 0.75);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(253, 240, 189, 0.7), transparent 65%),
    linear-gradient(180deg, rgba(255, 253, 246, 0.85), rgba(253, 240, 189, 0.65));
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  color: var(--g5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform var(--dur-fast) var(--ease-back);
  touch-action: manipulation;
}
.back-btn:hover { transform: translateY(-1px); }
.back-btn:active { transform: scale(0.94); }
.back-btn svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}

.page-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vh, 1.4rem);
  font-weight: 400;
  line-height: 1.4;
  padding: 0.05em 0.5em;
  background-image: var(--gold-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--g4);
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.7)) drop-shadow(0 2px 4px rgba(143, 106, 9, 0.4));
}
.page-title.is-loading {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11.5px, 1.4vh, 13px);
  color: var(--muted-2);
  -webkit-text-fill-color: var(--muted-2);
  background: none;
  filter: none;
}

.logo-btn {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255, 255, 255, 0.6), transparent 65%),
    rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  backdrop-filter: blur(12px) saturate(1.6);
  border: 1.3px solid rgba(212, 175, 55, 0.6);
  padding: 4px;
  transition: transform var(--dur-med);
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.logo-btn:hover { transform: scale(1.04); }
.logo-btn:active { transform: scale(0.94); }
.logo-btn img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(143, 106, 9, 0.4));
}

@media (max-width: 380px) {
  :root { --top-bar-h: 60px; }
  .top-bar { grid-template-columns: 42px 1fr 46px; padding: 6px 10px; gap: 6px; }
  .back-btn { width: 42px; height: 42px; border-radius: 11px; }
  .back-btn svg { width: 18px; height: 18px; }
  .logo-btn { width: 46px; height: 46px; border-radius: 12px; padding: 3px; }
  .page-title { font-size: 1.05rem; }
}

/* ============================================================
   3. BOTTOM NAV
   ============================================================ */
.page-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 720px;
  padding: 0 max(10px, env(safe-area-inset-right))
           max(10px, env(safe-area-inset-bottom))
           max(10px, env(safe-area-inset-left));
  z-index: var(--z-nav-fixed);
  pointer-events: none;
}

.nav-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(3px, 0.6vw, 8px);
  padding: clamp(10px, 1.5vh, 14px) clamp(8px, 1.2vw, 12px);
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(ellipse 90% 120% at 50% 110%, rgba(212, 175, 55, 0.28), transparent 60%),
    linear-gradient(135deg, rgba(255, 253, 246, 0.22), rgba(253, 240, 189, 0.18));
  -webkit-backdrop-filter: blur(30px) saturate(1.9);
  backdrop-filter: blur(30px) saturate(1.9);
  border: 1.2px solid rgba(212, 175, 55, 0.65);
  box-shadow:
    0 16px 40px rgba(184, 134, 11, 0.22),
    0 4px 16px rgba(184, 134, 11, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(212, 175, 55, 0.45);
  overflow: visible;
  isolation: isolate;
  pointer-events: auto;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-shell { background: rgba(255, 253, 246, 0.96); }
}

.nav-shell::before {
  content: "";
  position: absolute;
  top: 1px; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
  pointer-events: none; z-index: 2;
}
.nav-shell::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
  pointer-events: none; z-index: 2;
}

.page-nav-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: clamp(9px, 1.3vh, 12px) 4px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-family: inherit;
  font-weight: 800;
  font-size: clamp(12px, 1.6vh, 14px);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(253, 240, 189, 0.55) 0%, transparent 60%),
    linear-gradient(160deg, rgba(212, 175, 55, 0.94), rgba(184, 134, 11, 0.96) 40%, rgba(143, 106, 9, 0.98));
  border: 1.2px solid rgba(253, 240, 189, 0.6);
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform var(--dur-med) var(--ease-back), box-shadow var(--dur-med), filter var(--dur-med);
  touch-action: manipulation;
  min-height: 54px;
  min-width: 0;
  z-index: 3;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(107, 79, 6, 0.55);
  cursor: pointer;
  overflow: hidden;
}
.page-nav-item svg {
  width: clamp(19px, 2.5vh, 22px);
  height: clamp(19px, 2.5vh, 22px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(107, 79, 6, 0.5));
  transition: transform var(--dur-med) var(--ease-back);
}
.page-nav-item span {
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.page-nav-item:hover { transform: translateY(-3px); filter: brightness(1.1); }
.page-nav-item:hover svg { transform: scale(1.1); }
.page-nav-item:active { transform: translateY(-1px) scale(0.95); }

.page-nav-item.is-featured {
  z-index: 4;
  padding-block: clamp(14px, 2.1vh, 18px);
  border-radius: 16px;
  border: 2px solid rgba(143, 106, 9, 0.92);
  background:
    radial-gradient(ellipse 100% 55% at 50% 0%, rgba(255, 255, 255, 0.92), transparent 55%),
    linear-gradient(135deg, #fffbe8 0%, #f7e07a 18%, #e8c95a 42%, #d4af37 68%, #b8860b 100%);
  box-shadow:
    0 12px 28px rgba(212, 175, 55, 0.6),
    0 0 0 4px rgba(255, 250, 226, 0.65),
    0 0 38px rgba(212, 175, 55, 0.5),
    inset 0 2px 0 var(--white),
    inset 0 -3px 8px rgba(143, 106, 9, 0.32);
  transform: translateY(-6px);
  color: #3a2c05;
  font-weight: 900;
  font-size: clamp(14px, 1.85vh, 16px);
  text-shadow: none;
  filter: none;
  animation: navGlow 3.6s ease-in-out infinite;
}
.page-nav-item.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.4) 47%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.4) 53%, transparent 65%);
  background-size: 250% 100%;
  background-position: 250% 0;
  border-radius: inherit;
  animation: navShimmer 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.page-nav-item.is-featured svg {
  width: clamp(23px, 3.1vh, 27px);
  height: clamp(23px, 3.1vh, 27px);
  stroke: #4a3604;
  stroke-width: 2.2;
  position: relative;
  z-index: 2;
}
.page-nav-item.is-featured span {
  color: #3a2c05;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
  position: relative;
  z-index: 2;
  font-weight: 900;
}
.page-nav-item.is-featured:hover {
  transform: translateY(-9px);
  filter: none;
  box-shadow:
    0 16px 34px rgba(212, 175, 55, 0.72),
    0 0 0 5px rgba(255, 250, 226, 0.78),
    0 0 54px rgba(212, 175, 55, 0.62),
    inset 0 2px 0 var(--white),
    inset 0 -3px 8px rgba(143, 106, 9, 0.36);
}
.page-nav-item.is-featured:hover svg { transform: scale(1.12) rotate(-3deg); }
.page-nav-item.is-featured:active { transform: translateY(-3px) scale(0.96); }

@keyframes navGlow {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(212, 175, 55, 0.6),
      0 0 0 4px rgba(255, 250, 226, 0.65),
      0 0 38px rgba(212, 175, 55, 0.5),
      inset 0 2px 0 var(--white),
      inset 0 -3px 8px rgba(143, 106, 9, 0.32);
  }
  50% {
    box-shadow:
      0 14px 32px rgba(212, 175, 55, 0.72),
      0 0 0 5px rgba(255, 250, 226, 0.78),
      0 0 48px rgba(212, 175, 55, 0.6),
      inset 0 2px 0 var(--white),
      inset 0 -3px 8px rgba(143, 106, 9, 0.34);
  }
}
@keyframes navShimmer {
  0%, 75%, 100% { background-position: 250% 0; }
  90%           { background-position: -50% 0; }
}

.page-nav-badge {
  position: absolute;
  top: 2px; right: 6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: #e11d48;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 16px;
  border-radius: var(--radius-pill);
  text-align: center;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.3),
    0 0 0 1.5px rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
  z-index: 5;
}
.page-nav-item.is-featured .page-nav-badge {
  top: 0; right: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35), 0 0 0 1.5px #fffbe8;
}

@media (max-width: 380px) {
  :root { --nav-h: 88px; }
  .nav-shell { padding: 8px 8px 10px; border-radius: 22px; gap: 3px; }
  .page-nav-item { min-height: 48px; padding: 8px 3px 6px; font-size: 11.5px; border-radius: 11px; gap: 3px; }
  .page-nav-item svg { width: 18px; height: 18px; }
  .page-nav-item.is-featured { padding-block: 12px; border-radius: 14px; transform: translateY(-4px); font-size: 12.5px; }
  .page-nav-item.is-featured svg { width: 21px; height: 21px; }
  .page-nav-item.is-featured:hover { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .page-nav-item.is-featured { animation: none !important; }
  .page-nav-item.is-featured::before { display: none; }
}

/* ============================================================
   4. GALLERY
   ============================================================ */
.gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  isolation: isolate;
  background: #ffffff;
  touch-action: pan-x pan-y;
}
.product-card .gallery { border-radius: 17px 17px 0 0; }
.product-scroll .gallery {
  border-radius: 18px;
  border: 1.3px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 6px 22px rgba(184, 134, 11, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-track::-webkit-scrollbar { display: none; }

.g-slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}
.g-slide img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 1%;
  box-sizing: border-box;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.g-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.g-fallback.is-shown { display: flex; }
.g-fallback svg {
  width: 55%; height: 55%;
  filter: drop-shadow(0 3px 8px rgba(143, 106, 9, 0.35));
}

.g-badge {
  position: absolute;
  top: 10px; left: 10px;
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(43, 36, 24, 0.85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fdf0bd;
  font-size: clamp(10px, 1.2vh, 11.5px);
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  z-index: 3;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.g-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fdf0bd;
  box-shadow: 0 0 6px rgba(253, 240, 189, 0.8);
  flex: 0 0 auto;
}
.g-badge.is-main { background: rgba(34, 100, 60, 0.9); color: #d1fae5; }
.g-badge.is-main::before { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.8); }

.g-badge-new {
  position: absolute;
  top: 10px; right: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: clamp(9.5px, 1.1vh, 10.5px);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--g3), var(--g5));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 3;
  pointer-events: none;
}

.g-dots {
  position: absolute;
  bottom: 10px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 36, 24, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 3;
  max-width: 90%;
  overflow-x: auto;
  scrollbar-width: none;
}
.g-dots::-webkit-scrollbar { display: none; }
.g-dots[hidden] { display: none; }

.g-dot {
  flex: 0 0 auto;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 240, 189, 0.5);
  padding: 0;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
  position: relative;
  touch-action: manipulation;
}
.g-dot::before { content: ""; position: absolute; inset: -8px; }
.g-dot.is-active {
  width: 18px;
  border-radius: 3px;
  background: #fdf0bd;
  box-shadow: 0 0 6px rgba(253, 240, 189, 0.6);
}

@media (max-width: 380px) {
  .g-badge { padding: 4px 9px; font-size: 9.5px; top: 8px; left: 8px; }
  .g-badge-new { padding: 4px 8px; font-size: 9px; top: 8px; right: 8px; }
  .g-dots { gap: 4px; padding: 5px 9px; bottom: 8px; }
  .g-dot { width: 5px; height: 5px; }
  .g-dot.is-active { width: 15px; }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 44px;
  padding: 0 var(--space-lg);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: clamp(11.5px, 1.35vh, 12.5px);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-med);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.btn-primary {
  background:
    radial-gradient(ellipse 100% 80% at 50% 0%, rgba(253, 240, 189, 0.5) 0%, transparent 60%),
    var(--gold-gradient-deep);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(143, 106, 9, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(107, 79, 6, 0.4);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(143, 106, 9, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary {
  background: linear-gradient(180deg, var(--white), #fdf8e4);
  color: #5c4305;
  border: 1.4px solid rgba(212, 175, 55, 0.55);
}
.btn-secondary:hover:not(:disabled) {
  background: linear-gradient(180deg, var(--white), var(--g1));
  transform: translateY(-1px);
}

.btn-block { width: 100%; }

/* ============================================================
   6. TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--toast-offset-bottom) + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.9);
  background: linear-gradient(135deg, var(--g5), var(--g3) 60%, var(--g4));
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med), transform var(--dur-med);
  z-index: var(--z-toast);
  box-shadow: 0 8px 28px rgba(143, 106, 9, 0.5);
  max-width: 90vw;
  text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
.toast.error {
  background: linear-gradient(135deg, #991b1b, #dc2626 60%, #b91c1c);
  box-shadow: 0 8px 28px rgba(185, 28, 28, 0.5);
}

/* ============================================================
   7. DIVIDER
   ============================================================ */
.divider-luxe {
  position: relative;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  margin: clamp(2px, 0.4vh, 5px) 0;
  pointer-events: none;
  flex: 0 0 auto;
}
.divider-luxe::before,
.divider-luxe::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.15) 10%, rgba(212, 175, 55, 0.55) 50%, rgba(212, 175, 55, 0.15) 90%, transparent 100%);
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.3);
}
.divider-luxe .dl-gem {
  flex: 0 0 auto;
  width: 12px; height: 12px;
  margin: 0 10px;
  transform: rotate(45deg);
  background: radial-gradient(circle at 30% 30%, #fffef0 0%, var(--g1) 25%, var(--g3) 60%, var(--g5) 100%);
  border: 1.2px solid rgba(253, 240, 189, 0.95);
  border-radius: 2px;
  box-shadow: 0 1px 4px rgba(143, 106, 9, 0.45), 0 0 8px rgba(212, 175, 55, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.divider-luxe .dl-gem::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.divider-luxe .dl-dot {
  flex: 0 0 auto;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--g4);
  box-shadow: 0 0 4px rgba(184, 134, 11, 0.5);
  margin: 0 4px;
  opacity: 0.7;
}
.divider-luxe.is-strong::before,
.divider-luxe.is-strong::after {
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.7) 50%, transparent 100%);
}
.divider-luxe.is-strong .dl-gem {
  width: 14px; height: 14px;
  box-shadow: 0 2px 6px rgba(143, 106, 9, 0.55), 0 0 12px rgba(212, 175, 55, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* ============================================================
   8. FORM
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  position: relative;
}
.field:last-child { margin-bottom: 0; }
.field-label {
  font-size: clamp(10px, 1.15vh, 11px);
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 3px;
}
.field-label .req { color: var(--danger); font-size: 1.15em; line-height: 1; }
.field-input {
  width: 100%;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.4px solid rgba(212, 175, 55, 0.5);
  background: linear-gradient(180deg, var(--white), var(--paper-2));
  font-family: inherit;
  font-size: clamp(11.5px, 1.3vh, 12.5px);
  font-weight: 600;
  color: var(--ink);
  padding: 0 11px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
textarea.field-input { height: 64px; padding: 9px 11px; resize: none; line-height: 1.55; min-height: 64px; }
.field-input:focus { border-color: var(--g5); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
.field-input::placeholder { color: var(--muted-2); font-weight: 500; }
.field.has-error .field-input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1); }
.field-error {
  font-size: clamp(9px, 1.05vh, 10px);
  font-weight: 700;
  color: var(--danger);
  line-height: 1.3;
  display: none;
}
.field.has-error .field-error { display: block; }

/* ============================================================
   9. BADGE / CHIP
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: clamp(9px, 1.05vh, 10px);
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}
.badge-gold {
  background: linear-gradient(135deg, var(--g3), var(--g5));
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(22, 101, 52, 0.3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 6px 11px;
  border-radius: var(--radius-xs);
  border: 1.2px solid rgba(212, 175, 55, 0.45);
  background: linear-gradient(180deg, var(--white), #fdf8e4);
  color: #5c4305;
  font-family: inherit;
  font-size: clamp(10px, 1.15vh, 11px);
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation;
  min-height: 30px;
  line-height: 1;
}
.chip:hover { background: linear-gradient(180deg, var(--white), var(--g1)); border-color: var(--g5); }
.chip:active { transform: scale(0.94); }
.chip.is-active {
  background: linear-gradient(180deg, var(--g1), var(--g2));
  border-color: rgba(143, 106, 9, 0.7);
  color: #3a2c05;
  box-shadow: 0 2px 6px rgba(184, 134, 11, 0.25);
  font-weight: 900;
}

/* ============================================================
   10. STATE BOX / SPINNER / EMPTY STATE
   ============================================================ */
.state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}
.state-box svg {
  width: 60px; height: 60px;
  fill: none;
  stroke: var(--g4);
  stroke-width: 1.6;
  opacity: 0.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.state-box strong { font-size: clamp(13px, 1.6vh, 15px); font-weight: 900; color: var(--ink-2); }
.state-box p { font-size: clamp(11px, 1.25vh, 12.5px); line-height: 1.7; max-width: 32ch; }
.state-box a {
  padding: 10px 22px;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--g1), var(--g2));
  color: #3a2c05;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(11px, 1.3vh, 12.5px);
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--g3);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-lg);
  padding: 70px 20px;
  min-height: 60vh;
}
.empty-state svg {
  width: 72px; height: 72px;
  opacity: 0.5;
  fill: none;
  stroke: var(--g4);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.empty-state strong { font-size: clamp(13px, 1.65vh, 15px); font-weight: 900; color: var(--ink-2); }
.empty-state p { font-size: clamp(11px, 1.25vh, 12px); color: var(--muted); line-height: 1.7; max-width: 34ch; }
.empty-state a {
  padding: 11px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--g1), var(--g2));
  color: #3a2c05;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(11px, 1.25vh, 12px);
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ============================================================
   11. CONTAINER
   ============================================================ */
.container { width: 100%; max-width: 960px; margin: 0 auto; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }