/* ============================================================
    NANO MEDICAL — Rose Gold Decorations & Extras
   Butterflies, Bows, Hearts, Sparkles + Variants/Multi-images
   ============================================================ */

/* Shooting star */
.shooting-star {
  position: fixed;
  top: 12%;
  right: -20%;
  width: 240px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.9) 60%, #c9a961);
  border-radius: 999px;
  filter: drop-shadow(0 0 8px #c9a961);
  pointer-events: none;
  z-index: 0;
  animation: nd-shoot 9s ease-in infinite;
  opacity: 0;
}
.shooting-star:nth-child(2) { top: 38%; animation-delay: 4s; animation-duration: 11s; }
@keyframes nd-shoot {
  0%   { transform: translateX(0) translateY(0) rotate(-18deg); opacity: 0; }
  5%   { opacity: 1; }
  18%  { transform: translateX(-130vw) translateY(40vh) rotate(-18deg); opacity: 0; }
  100% { transform: translateX(-130vw) translateY(40vh) rotate(-18deg); opacity: 0; }
}

/* Butterfly Layer */
.butterfly-layer {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  overflow: hidden;
}
.butterfly {
  position: absolute;
  width: 38px; height: 38px;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(201, 169, 97, 0.4));
  animation: nd-fly-around 22s linear infinite, nd-flap 0.4s ease-in-out infinite alternate;
  transform-origin: center;
}
.butterfly svg { width:100%; height:100%; }
.butterfly .wing-l, .butterfly .wing-r {
  transform-origin: 50% 50%;
  animation: nd-flap-wing 0.18s ease-in-out infinite alternate;
}
.butterfly .wing-r { animation-delay: -0.09s; }

.butterfly:nth-child(1) {
  top: 15%; left: -10%;
  animation-duration: 24s, 0.45s;
  animation-delay: 0s;
}
.butterfly:nth-child(2) {
  top: 35%; left: -10%;
  animation-duration: 28s, 0.38s;
  animation-delay: 3s;
  width: 32px; height: 32px;
}
.butterfly:nth-child(3) {
  top: 55%; left: -10%;
  animation-duration: 26s, 0.42s;
  animation-delay: 6s;
  width: 44px; height: 44px;
}
.butterfly:nth-child(4) {
  top: 75%; left: -10%;
  animation-duration: 30s, 0.4s;
  animation-delay: 9s;
  width: 36px; height: 36px;
}
.butterfly:nth-child(5) {
  top: 25%; left: -10%;
  animation-duration: 32s, 0.46s;
  animation-delay: 12s;
  width: 30px; height: 30px;
}
.butterfly:nth-child(6) {
  top: 65%; left: -10%;
  animation-duration: 29s, 0.41s;
  animation-delay: 15s;
  width: 40px; height: 40px;
}
@keyframes nd-fly-around {
  0%   { transform: translate(0, 0) rotate(0deg); }
  20%  { transform: translate(30vw, -8vh) rotate(15deg); }
  40%  { transform: translate(55vw, 6vh) rotate(-10deg); }
  60%  { transform: translate(75vw, -4vh) rotate(20deg); }
  80%  { transform: translate(95vw, 8vh) rotate(-15deg); }
  100% { transform: translate(120vw, 0) rotate(0deg); }
}
@keyframes nd-flap {
  0%   { transform: scale(1, 1); }
  100% { transform: scale(0.7, 1); }
}
@keyframes nd-flap-wing {
  0%   { transform: scaleX(1); }
  100% { transform: scaleX(0.6); }
}

/* Bows */
.bow-deco {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(201, 169, 97, 0.35));
  animation: nd-bow-float 6s ease-in-out infinite alternate;
}
.bow-deco svg { width: 100%; height: 100%; }
.bow-deco.b1 { top: 8%; left: 4%; width: 56px; height: 56px; animation-delay: 0s; }
.bow-deco.b2 { top: 14%; right: 5%; width: 48px; height: 48px; animation-delay: 1s; }
.bow-deco.b3 { bottom: 10%; left: 6%; width: 60px; height: 60px; animation-delay: 2s; }
.bow-deco.b4 { bottom: 18%; right: 7%; width: 52px; height: 52px; animation-delay: 3s; }
@keyframes nd-bow-float {
  0%   { transform: translateY(0) rotate(-8deg); }
  100% { transform: translateY(-20px) rotate(8deg); }
}

/* Floating hearts */
.heart-float {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  font-size: 1.6rem;
  color: rgba(201, 169, 97, 0.5);
  animation: nd-heart-rise 12s linear infinite;
  opacity: 0;
}
.heart-float.h1 { left: 10%; animation-delay: 0s; }
.heart-float.h2 { left: 30%; animation-delay: 3s; font-size: 1.2rem; }
.heart-float.h3 { left: 55%; animation-delay: 6s; font-size: 2rem; }
.heart-float.h4 { left: 75%; animation-delay: 9s; font-size: 1.4rem; }
.heart-float.h5 { left: 92%; animation-delay: 1.5s; font-size: 1.8rem; }
@keyframes nd-heart-rise {
  0%   { transform: translateY(110vh) scale(0.5) rotate(-15deg); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-15vh) scale(1.2) rotate(15deg); opacity: 0; }
}

/* Sparkles */
.sparkle-star {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  font-size: 1.4rem;
  color: rgba(201, 169, 97, 0.7);
  animation: nd-sparkle-twinkle 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(201, 169, 97, 0.5));
}
.sparkle-star.s1 { top: 22%; left: 15%; animation-delay: 0s; }
.sparkle-star.s2 { top: 45%; left: 88%; animation-delay: 0.7s; }
.sparkle-star.s3 { top: 68%; left: 12%; animation-delay: 1.4s; font-size: 1.8rem; }
.sparkle-star.s4 { top: 30%; left: 70%; animation-delay: 2.1s; font-size: 1rem; }
.sparkle-star.s5 { top: 80%; left: 85%; animation-delay: 0.4s; }
@keyframes nd-sparkle-twinkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.3; }
  50%      { transform: scale(1.2) rotate(180deg); opacity: 1; }
}

/* Mobile - shrink decorations */
@media (max-width: 720px) {
  .bow-deco.b1, .bow-deco.b2 { width: 36px !important; height: 36px !important; }
  .bow-deco.b3, .bow-deco.b4 { width: 38px !important; height: 38px !important; }
  .butterfly { width: 26px !important; height: 26px !important; }
  .heart-float, .sparkle-star { font-size: 1rem !important; }
}

/* ====== Color Variants (color picker on product) ====== */
.color-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 4px;
  align-items: center;
}
.color-row-label {
  font-size: 0.84rem; color: var(--text-2); font-weight: 700;
  margin-left: 4px;
}
.color-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--border-2), inset 0 0 0 2px rgba(255,255,255,0.4);
  transition: 0.2s;
  position: relative;
}
.color-swatch:hover { transform: scale(1.12); }
.color-swatch.selected {
  box-shadow: 0 0 0 3px var(--brand), inset 0 0 0 2px rgba(255,255,255,0.4);
  transform: scale(1.18);
}
.color-swatch.out-of-stock::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(45deg, transparent 45%, #f87171 45%, #f87171 55%, transparent 55%);
  border-radius: 50%; pointer-events: none;
}
.color-name-display {
  font-size: 0.86rem; color: var(--brand-dark); font-weight: 800;
  margin-right: 8px;
}
.qv-color-row .color-swatch { width: 38px; height: 38px; }

/* ====== MTO / Stock Pills ====== */
.mto-banner {
  background: rgba(201, 169, 97, 0.10);
  border: 1px solid rgba(201, 169, 97, 0.35);
  color: var(--brand-dark);
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  line-height: 1.6;
}
.mto-banner i { color: var(--brand-dark); }

.stock-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
}
.stock-pill.ok { background: rgba(52, 211, 153, 0.14); color: #059669; border: 1px solid rgba(52, 211, 153, 0.28); }
.stock-pill.low { background: rgba(251, 191, 36, 0.14); color: #b45309; border: 1px solid rgba(251, 191, 36, 0.28); }
.stock-pill.out { background: rgba(248, 113, 113, 0.14); color: #b91c1c; border: 1px solid rgba(248, 113, 113, 0.28); }
.stock-pill.mto { background: rgba(201, 169, 97, 0.14); color: var(--brand-dark); border: 1px solid rgba(201, 169, 97, 0.28); }

/* Sold-out overlay */
.product-card.sold-out .product-image-wrap::after {
  content: 'نفدت الكمية';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: rgba(248, 113, 113, 0.95);
  color: #fff;
  padding: 6px 22px;
  font-weight: 900;
  font-size: 0.95rem;
  border-radius: 8px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(248, 113, 113, 0.4);
  letter-spacing: 1px;
}
.product-card.sold-out { opacity: 0.7; }

/* ====== Multi-Image Gallery (Quick view & detail) ====== */
.product-gallery-thumbs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 10px;
}
.product-gallery-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  background: #fff;
  transition: 0.2s;
}
.product-gallery-thumb:hover { transform: translateY(-2px); border-color: var(--brand); }
.product-gallery-thumb.active {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(201, 169, 97, 0.25);
  transform: translateY(-2px);
}
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qv-img-fading { opacity: 0.4; transition: opacity 0.2s ease; }

/* ====== Multi-Image Upload Grid (Admin) ====== */
.multi-image-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.multi-image-cell {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(201, 169, 97, 0.04);
  border: 1.5px dashed var(--border-2);
  display: flex; align-items: center; justify-content: center;
}
.multi-image-cell img { width: 100%; height: 100%; object-fit: cover; }
.multi-image-cell .placeholder-content {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; color: var(--text-3); font-size: 0.72rem; gap: 6px;
}
.multi-image-cell .placeholder-content i { font-size: 1.4rem; color: var(--brand); }
.multi-image-cell input[type="file"] { display: none; }
.multi-image-cell .img-remove-btn {
  position: absolute; top: 4px; left: 4px;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(248, 113, 113, 0.9); color: #fff; border: none; cursor: pointer;
  font-size: 0.72rem; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}

/* ====== Variants Editor (Admin) ====== */
.variants-wrap { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.variant-row {
  display: grid;
  grid-template-columns: 22px 78px 1fr 90px 96px 90px 36px;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: rgba(201, 169, 97, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.2s;
}
.variant-row.is-main {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.06);
  box-shadow: 0 6px 24px rgba(251, 191, 36, 0.15);
}
.variant-row.dragging { opacity: 0.5; }
.variant-row.drag-over { border-color: var(--brand); }
.variant-handle { color: var(--text-3); cursor: grab; text-align: center; }
.variant-img-pick {
  width: 78px; height: 78px; border-radius: 10px;
  border: 1.5px dashed var(--border-2);
  background: rgba(201, 169, 97, 0.05);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); overflow: hidden; position: relative; flex: 0 0 auto;
}
.variant-img-pick img { width: 100%; height: 100%; object-fit: cover; }
.variant-img-pick input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.variant-row input[type="text"], .variant-row input[type="number"] {
  padding: 8px 10px; background: #fff; border: 1px solid var(--border-2);
  border-radius: 8px; color: var(--text); font-size: 0.9rem; font-family: inherit; width: 100%;
}
.variant-row input[type="color"] { padding: 0; height: 38px; cursor: pointer; border-radius: 8px; border: 1px solid var(--border-2); width: 100%; }
.variant-row .btn-rm {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.14); color: #b91c1c;
  border: none; cursor: pointer; font-size: 0.9rem;
}
.variant-row .btn-rm:hover { background: rgba(248, 113, 113, 0.28); }
.variant-main-toggle {
  background: #fff; border: 1px solid var(--border-2); border-radius: 8px;
  padding: 6px 10px; cursor: pointer; font-size: 0.82rem; font-weight: 700;
  color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; justify-content: center;
}
.variant-main-toggle.is-main {
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; border-color: transparent;
}
.variant-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px; background: rgba(201, 169, 97, 0.04);
  border-radius: 12px; border: 1px solid var(--border);
}
.vig-cell {
  background: #fff; border: 2px solid var(--border); border-radius: 10px;
  padding: 6px; text-align: center; transition: 0.2s;
}
.vig-cell img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 8px; }
.vig-name { font-size: 0.78rem; font-weight: 800; color: var(--text); margin-top: 4px; }
@media (max-width: 720px) {
  .variant-row { grid-template-columns: 22px 70px 1fr 36px; gap: 6px; }
  .variant-row .v-color-input, .variant-row .v-stock-input, .variant-row .v-main-cell { grid-column: 2 / 4; }
}

/* Locked mode (when colors mode is enabled) */
.section-card.mode-locked, .form-row.mode-locked, #stockRow.mode-locked, #multiImagesSection.mode-locked, #mainImageSection.mode-locked {
  opacity: 0.45; pointer-events: none;
  filter: grayscale(0.4);
}

/* ====== Live Preview (Admin product modal) ====== */
.product-modal-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
}
@media (max-width: 980px) {
  .product-modal-grid { grid-template-columns: 1fr; }
}
.live-preview-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,240,246,0.85));
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 16px;
  position: sticky; top: 10px;
}
.lp-label {
  font-size: 0.78rem; color: var(--brand-dark); font-weight: 800;
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
.lp-product-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lp-img-wrap { aspect-ratio: 1/1; background: rgba(201, 169, 97, 0.06); position: relative; }
.lp-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.lp-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--brand-light); font-size: 3rem; }
.lp-badges { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.lp-badge {
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 900; color: #fff;
}
.lp-badge.disc { background: linear-gradient(135deg, #f87171, #dc2626); }
.lp-badge.new { background: linear-gradient(135deg, #34d399, #059669); }
.lp-badge.hot { background: linear-gradient(135deg, #fbbf24, #d97706); }
.lp-badge.feat { background: linear-gradient(135deg, #c9a961, #1a1a1a); }
.lp-badge.mto { background: linear-gradient(135deg, #d4b87a, #262626); }
.lp-badge.out { background: rgba(0,0,0,0.7); }
.lp-body { padding: 12px; }
.lp-cat-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(201, 169, 97, 0.10);
  color: var(--brand-dark); padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; margin-bottom: 6px;
}
.lp-name { font-size: 0.95rem; font-weight: 900; color: var(--text); margin-bottom: 3px; }
.lp-desc { font-size: 0.78rem; color: var(--text-2); margin-bottom: 8px; line-height: 1.5; }
.lp-colors { display: flex; gap: 4px; margin-bottom: 8px; align-items: center; }
.lp-color-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-2);
}
.lp-color-dot.is-main { box-shadow: 0 0 0 2px var(--brand); }
.lp-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.lp-price-new { font-size: 1.1rem; font-weight: 900; color: var(--brand-dark); }
.lp-price-old { font-size: 0.78rem; color: var(--text-3); text-decoration: line-through; }
.lp-stock-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800;
}
.lp-stock-pill.ok { background: rgba(52, 211, 153, 0.14); color: #059669; }
.lp-stock-pill.low { background: rgba(251, 191, 36, 0.14); color: #b45309; }
.lp-stock-pill.out { background: rgba(248, 113, 113, 0.14); color: #b91c1c; }
.lp-stock-pill.mto { background: rgba(201, 169, 97, 0.14); color: var(--brand-dark); }

/* ====== Stock Mode Cards (Admin) ====== */
.stock-mode-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px;
}
@media (max-width: 600px) { .stock-mode-row { grid-template-columns: 1fr; } }
.stock-mode-card {
  padding: 14px; border-radius: 14px; cursor: pointer;
  background: #fff; border: 2px solid var(--border);
  transition: 0.2s; text-align: center;
}
.stock-mode-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.stock-mode-card.active {
  border-color: var(--brand); background: rgba(201, 169, 97, 0.08);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.18);
}
.stock-mode-card i { font-size: 1.6rem; color: var(--brand-dark); margin-bottom: 6px; display: block; }
.smc-title { font-weight: 900; font-size: 0.94rem; margin-bottom: 4px; color: var(--text); }
.smc-desc { font-size: 0.78rem; color: var(--text-2); line-height: 1.5; }

/* ====== Section card (Admin) ====== */
.section-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; margin-bottom: 14px;
}
.section-card-title {
  font-size: 1rem; font-weight: 900; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding-bottom: 8px; border-bottom: 1px dashed var(--border);
}
.section-card-title i { color: var(--brand); }

/* ====== Image upload box ====== */
.image-upload-box {
  position: relative;
  border: 2px dashed var(--border-2);
  border-radius: 14px;
  background: rgba(201, 169, 97, 0.04);
  min-height: 160px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s;
}
.image-upload-box:hover { background: rgba(201, 169, 97, 0.08); border-color: var(--brand); }
.image-upload-box.is-dragover { background: rgba(201, 169, 97, 0.12); border-color: var(--brand); }
.image-upload-box.has-image { border-style: solid; }
.image-upload-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-upload-hint { text-align: center; color: var(--text-2); padding: 20px; }
.image-upload-hint i { font-size: 2rem; color: var(--brand); display: block; margin-bottom: 8px; }
.image-upload-preview { max-width: 100%; max-height: 240px; object-fit: contain; }
.image-upload-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.url-toggle {
  margin-top: 8px; font-size: 0.85rem; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.url-toggle a { color: var(--brand-dark); cursor: pointer; font-weight: 700; text-decoration: underline; }

/* ====== Coupons ====== */
.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.coupon-card {
  background: #fff; border: 2px solid var(--border-2);
  border-radius: 16px; padding: 16px;
  position: relative; overflow: hidden;
  transition: 0.2s;
}
.coupon-card::before {
  content: ''; position: absolute;
  top: 50%; right: -8px; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg, #f8f2e8);
  box-shadow: 0 0 0 2px var(--border-2);
}
.coupon-card::after {
  content: ''; position: absolute;
  top: 50%; left: -8px; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg, #f8f2e8);
  box-shadow: 0 0 0 2px var(--border-2);
}
.coupon-card.exhausted { opacity: 0.55; }
.coupon-card.inactive { opacity: 0.55; background: rgba(0,0,0,0.04); }
.cpn-code {
  font-family: monospace; font-size: 1.1rem; font-weight: 900;
  color: var(--brand-dark); padding: 8px 12px; border-radius: 10px;
  background: rgba(201, 169, 97, 0.08); text-align: center;
  letter-spacing: 2px; cursor: pointer; margin-bottom: 8px;
  border: 1px dashed var(--border-2);
}
.cpn-code:hover { background: rgba(201, 169, 97, 0.14); }
.cpn-value {
  text-align: center; font-weight: 800; color: var(--brand-dark);
  font-size: 0.94rem; margin-bottom: 8px;
}
.cpn-meta {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 10px; justify-content: center;
}
.cpn-pill {
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(201, 169, 97, 0.06); color: var(--text-2);
}
.cpn-actions { display: flex; gap: 6px; }
.coupon-hint {
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.28);
  color: #1e40af; padding: 10px 14px; border-radius: 10px;
  font-size: 0.84rem; font-weight: 700;
  margin-bottom: 14px; line-height: 1.7;
}

/* ====== Confetti ====== */
.confetti-container {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
}
.confetti-piece {
  position: absolute; top: -10vh;
  width: 10px; height: 14px; opacity: 0.9;
  animation: nd-confetti-fall linear forwards;
}
@keyframes nd-confetti-fall {
  to { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

/* ====== Order detail (Admin) ====== */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.detail-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.detail-label {
  font-size: 0.78rem; color: var(--text-3); font-weight: 700;
  margin-bottom: 4px;
}
.detail-value { font-weight: 800; color: var(--text); font-size: 0.94rem; word-break: break-word; }
.detail-sheet-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  flex-wrap: wrap; gap: 10px;
}
.detail-sheet-title h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 4px; }
.detail-sheet-sub { font-size: 0.84rem; color: var(--text-3); }
.info-stack { padding: 12px 16px; }
.info-line {
  display: flex; justify-content: space-between;
  padding: 6px 0; font-size: 0.94rem;
  border-bottom: 1px dashed var(--border);
}
.info-line:last-child { border-bottom: none; }
.info-line .value { font-weight: 800; }

/* ====== Status badges ====== */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800;
}
.badge-pending { background: rgba(251, 191, 36, 0.14); color: #b45309; border: 1px solid rgba(251, 191, 36, 0.28); }
.badge-processing { background: rgba(96, 165, 250, 0.14); color: #1e40af; border: 1px solid rgba(96, 165, 250, 0.28); }
.badge-shipped { background: rgba(26, 26, 26, 0.14); color: #6b21a8; border: 1px solid rgba(26, 26, 26, 0.28); }
.badge-delivered { background: rgba(52, 211, 153, 0.14); color: #059669; border: 1px solid rgba(52, 211, 153, 0.28); }
.badge-cancelled { background: rgba(248, 113, 113, 0.14); color: #b91c1c; border: 1px solid rgba(248, 113, 113, 0.28); }
.badge-returned { background: rgba(26, 26, 26, 0.14); color: #6b21a8; border: 1px solid rgba(26, 26, 26, 0.28); }

/* Pay badges (Admin orders) */
.pay-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800;
}
.pay-badge.paid { background: rgba(52, 211, 153, 0.14); color: #059669; }
.pay-badge.pending { background: rgba(251, 191, 36, 0.14); color: #b45309; }
.pay-method-pill {
  background: rgba(201, 169, 97, 0.08); color: var(--brand-dark);
  padding: 2px 8px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700;
  display: inline-block;
}
.phone-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(36, 211, 102, 0.10); color: #15803d;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.84rem; font-weight: 700;
  text-decoration: none;
}
.phone-pill:hover { background: rgba(36, 211, 102, 0.20); }

/* ====== Returns / Tracking ====== */
.returns-link .badge-num {
  background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff;
  border-radius: 999px; padding: 1px 8px; font-size: 0.72rem;
  margin-right: 6px; font-weight: 900;
}
.live-pill {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff; padding: 3px 10px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; margin-right: 8px;
}
.live-pill::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; background: #fff; border-radius: 50%;
  margin-left: 5px; animation: nd-live-pulse 1.4s ease-in-out infinite;
}
@keyframes nd-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* ====== Auto-save pill ====== */
.autosave-pill {
  position: fixed; bottom: 24px; left: 24px;
  background: linear-gradient(135deg, #34d399, #059669); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800;
  box-shadow: 0 10px 24px rgba(52, 211, 153, 0.4);
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(20px);
  transition: 0.3s; pointer-events: none;
  z-index: 9999;
}
.autosave-pill.visible { opacity: 1; transform: translateY(0); }

/* ====== Logo box (Admin settings) ====== */
.logo-box {
  width: 110px; height: 110px;
  border-radius: 26px;
  background: var(--gradient-brand, linear-gradient(135deg, #c9a961, #1a1a1a));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem;
  box-shadow: var(--shadow-brand, 0 18px 38px rgba(201, 169, 97, 0.45)), 0 0 0 4px rgba(201, 169, 97, 0.18);
  overflow: hidden; position: relative;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; border-radius: 25px; }
.logo-flex { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ====== Settings groups (Admin) ====== */
.settings-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}
.settings-group-title {
  font-size: 1.04rem; font-weight: 900;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 12px; padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.settings-group-title i { color: var(--brand); }
.settings-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 720px) { .settings-grid { grid-template-columns: 1fr; } }
.toggle-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--border);
  gap: 10px;
}
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #d1d5db; transition: 0.3s; border-radius: 999px;
}
.slider::before {
  position: absolute; content: '';
  width: 20px; height: 20px; left: 3px; bottom: 3px;
  background: #fff; transition: 0.3s; border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.switch input:checked + .slider { background: var(--brand); }
.switch input:checked + .slider::before { transform: translateX(20px); }

.voda-num-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.voda-num-row input {
  flex: 1; padding: 8px 10px;
  border: 1px solid var(--border-2); border-radius: 8px;
  background: #fff; font-family: monospace; direction: ltr; text-align: left;
}
.voda-num-row .btn-rm {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(248, 113, 113, 0.14); color: #b91c1c;
  border: none; cursor: pointer;
}

/* Pay numbers (frontend checkout) */
.pay-num-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; background: rgba(201, 169, 97, 0.04);
  border-radius: 8px; margin-bottom: 6px;
  font-family: monospace; direction: ltr;
}
.pay-num-copy {
  background: var(--brand); color: #fff; border: none;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-size: 0.78rem; font-weight: 800;
}
.pay-numbers-box { display: none; padding: 10px; background: rgba(201, 169, 97, 0.04); border-radius: 10px; margin-top: 8px; }
.pay-numbers-box.active { display: block; }
.pay-numbers-title { font-weight: 800; color: var(--brand-dark); margin-bottom: 6px; font-size: 0.88rem; }
.pay-channel { padding: 12px; background: rgba(255,255,255,0.5); border-radius: 10px; margin-top: 8px; display: none; }
.pay-card.selected .pay-channel { display: block; }
.pay-channel-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pay-channel-opt {
  flex: 1; min-width: 140px; padding: 10px;
  border: 1.5px solid var(--border-2); border-radius: 10px;
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; background: #fff; font-weight: 700;
  font-size: 0.88rem;
}
.pay-channel-opt.selected {
  border-color: var(--brand); background: rgba(201, 169, 97, 0.08);
}
.pay-channel-opt input[type="radio"] { accent-color: var(--brand); }
.pay-instructions {
  margin-top: 8px; padding: 8px 12px;
  background: rgba(96, 165, 250, 0.06);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: #1e40af; border-radius: 8px;
  font-size: 0.82rem; font-weight: 600;
}

/* Brevo / Notification status pill */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; }
.pill-ok { background: rgba(52, 211, 153, 0.14); color: #059669; }
.pill-no { background: rgba(248, 113, 113, 0.14); color: #b91c1c; }
.pwd-strength { margin-top: 6px; font-size: 0.84rem; font-weight: 700; }
.pwd-strength.weak { color: #b91c1c; }
.pwd-strength.medium { color: #b45309; }
.pwd-strength.strong { color: #059669; }

/* Stat icons (Admin) */
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: rgba(201, 169, 97, 0.10); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex: 0 0 auto;
}
.chart-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.chart-card h3 { font-size: 1rem; font-weight: 900; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 8px; background: rgba(201, 169, 97, 0.04); border-radius: 10px; }
.bar-chart-item {
  flex: 1; background: linear-gradient(180deg, #c9a961, #1a1a1a);
  border-radius: 6px 6px 0 0;
  position: relative; min-height: 4px;
  transition: 0.3s;
}
.bar-chart-item:hover .bar-tooltip { opacity: 1; transform: translate(-50%, -8px); }
.bar-tooltip {
  position: absolute; bottom: 100%; left: 50%;
  transform: translate(-50%, 0);
  background: var(--text); color: #fff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.74rem; font-weight: 700;
  white-space: nowrap; opacity: 0;
  transition: 0.2s; pointer-events: none;
}
.bar-chart-labels {
  display: flex; gap: 6px; margin-top: 8px;
}
.bar-chart-labels span {
  flex: 1; text-align: center;
  font-size: 0.72rem; font-weight: 700; color: var(--text-3);
}

/* Table polishes */
.orders-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); background: #fff; }
.order-products-cell { display: flex; flex-direction: column; gap: 4px; max-width: 220px; }
.order-product-row { display: flex; align-items: center; gap: 6px; font-size: 0.84rem; }
.order-prod-thumb { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
.order-prod-thumb-ph { width: 28px; height: 28px; border-radius: 6px; background: rgba(201, 169, 97, 0.12); display: flex; align-items: center; justify-content: center; color: var(--brand-dark); font-size: 0.74rem; flex: 0 0 auto; }
.order-prod-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-prod-qty { font-weight: 800; color: var(--brand-dark); }

/* Track page banner */
.track-banner { background: linear-gradient(135deg, rgba(201, 169, 97, 0.10), rgba(201, 169, 97, 0.05)); border: 1px dashed var(--border-2); border-radius: 14px; padding: 18px; }

/* Quick view modal grid */
.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) {
  .quickview-grid { grid-template-columns: 1fr; }
}
.quickview-img {
  aspect-ratio: 1/1;
  border-radius: 14px; overflow: hidden;
  background: rgba(201, 169, 97, 0.06);
}
.quickview-img img { width: 100%; height: 100%; object-fit: cover; }
.quickview-img .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--brand-light); font-size: 4rem; }
.qty-spinner {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border-2); border-radius: 10px; overflow: hidden;
}
.qty-spinner button {
  width: 36px; height: 36px; background: rgba(201, 169, 97, 0.06);
  border: none; cursor: pointer; color: var(--brand-dark); font-weight: 900;
}
.qty-spinner button:hover { background: rgba(201, 169, 97, 0.16); }
.qty-spinner span {
  min-width: 36px; text-align: center; font-weight: 900;
  padding: 0 10px;
}

/* Discount badge mini */
.discount-badge-mini {
  background: linear-gradient(135deg, #f87171, #dc2626); color: #fff;
  padding: 1px 6px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; margin-right: 4px;
}

/* Hide modal overlay default scroll-lock helper */
body.modal-open { overflow: hidden; }

/* Steps styling already in main.css if exists; ensure track */
.track-section .form-card { max-width: 560px; margin: 0 auto; }

/* Spinner */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid #fff; border-top-color: transparent;
  border-radius: 50%; animation: nd-spin 0.7s linear infinite;
}
@keyframes nd-spin { to { transform: rotate(360deg); } }

/* Returns details */
.return-modal { max-width: 600px; }


/* ===== RODY — neutralize Nadoda's pink decorations ===== */
.butterfly-layer, .butterfly,
.shooting-star,
.bow-decoration, .floating-bow,
.heart-decoration, .floating-heart,
.sparkle-decoration, .floating-sparkle,
.crown-decoration {
  display: none !important;
}

/* تم حذف النقاط الدائرية الثابتة لأنها كانت تظهر كعنصر متحرك أثناء التصفح. */

/* Final neutralization: hide any remaining Nadoda-era decorative elements */
.heart-float, .sparkle-star, .floating-heart, .floating-sparkle,
.floating-bow, .heart-decoration, .sparkle-decoration,
.crown-decoration, .pink-crown, .pink-bow, [class*="heart-float"],
[class*="sparkle-star"] {
  display: none !important;
}
