/* =====================================================
   style.css — متجر Watsons 🎀
   ألوان مأخوذة من اللوگو: وردي ناعم + أخضر فاتح + رمادي
   ===================================================== */
:root {
  --img-bg: #ffffff; /* خلفية صور المنتجات (الصور الشفافة تطلع على أبيض) */
  --pink: #ffd3d4;
  --pink-soft: #fff1f1;
  --pink-deep: #e79aa0;
  --green: #cee2c9;
  --green-soft: #eef6ec;
  --green-deep: #5f8e6c;
  --green-dark: #4b7657;
  --text: #4a4e47;
  --muted: #8b8f87;
  --line: #efe7e6;
  --bg: #fffdfc;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 8px 30px rgba(180, 120, 125, 0.12);
  --shadow-sm: 0 3px 12px rgba(180, 120, 125, 0.10);
  --text-soft: #62665f;
  --brand-text: #3f5a45;
  --header-bg: rgba(255, 253, 252, .9);
  --glass: rgba(255, 255, 255, .82);
  --glass-strong: rgba(255, 255, 255, .92);
  --star-empty: #e6dcda;
  --neutral: #eeeeee;
  --admin-bg: #faf6f5;
  --toast-bg: #4a4e47;
  --toast-text: #ffffff;
  --overlay: rgba(60, 50, 50, .35);
  color-scheme: light;
}

/* ---------- الوضع الداكن 🌙 ---------- */
[data-theme="dark"] {
  --pink: #6a3f47;
  --pink-soft: #2c2226;
  --pink-deep: #e79aa0;
  --green: #2a3a2f;
  --green-soft: #1f2b23;
  --green-deep: #5f8e6c;
  --green-dark: #a9d4b5;
  --text: #f1e9ea;
  --muted: #a89fa1;
  --line: #3a3034;
  --bg: #1c1719;
  --white: #252023;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, 0.3);
  --text-soft: #cfc6c8;
  --brand-text: #bfe0c7;
  --header-bg: rgba(28, 23, 25, .88);
  --glass: rgba(37, 32, 35, .86);
  --glass-strong: rgba(37, 32, 35, .94);
  --star-empty: #4a4044;
  --neutral: #3a3336;
  --admin-bg: #1c1719;
  --toast-bg: #f1e9ea;
  --toast-text: #1c1719;
  --overlay: rgba(0, 0, 0, .55);
  color-scheme: dark;
}
body, .header, .card, .product-card, .chip, .search, input, textarea, select, .footer, .announce {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ---------- Announcement ---------- */
.announce {
  background: var(--green);
  color: var(--green-dark);
  text-align: center;
  font-size: .9rem;
  font-weight: 500;
  padding: 7px 12px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand span:not(.bow) { font-family: "Poppins", sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--brand-text); }
.bow { font-size: 1.1rem; animation: sway 3s ease-in-out infinite; display: inline-block; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink-soft); color: var(--text);
  transition: background .2s, transform .2s;
}
.cart-btn:hover { background: var(--pink); transform: translateY(-2px); }
.cart-count {
  position: absolute; top: -3px; left: -3px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  background: var(--green-deep); color: #fff;
  font-size: .75rem; font-weight: 700; display: grid; place-items: center;
}
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.4); } 60% { transform: scale(.9); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--green-deep); color: #fff;
  padding: 12px 28px; border: 0; border-radius: 99px;
  font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 6px 18px rgba(95, 142, 108, .25);
}
.btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.outline { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green-deep); box-shadow: none; }
.btn.outline:hover { background: var(--green-soft); }
.btn.small { padding: 8px 20px; font-size: .92rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--pink-deep); font-size: .88rem; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Banner slider ---------- */
.slider-wrap { margin-top: 18px; margin-bottom: 30px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--pink-soft); }
.slides { display: flex; width: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 2 / 1; }
.slides::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: block; overflow: hidden; }
.slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; transition: transform 6s ease; }
.slide:hover img { transform: scale(1.03); }
.slide-text {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  max-width: min(420px, 55%);
  background: var(--glass); backdrop-filter: blur(8px);
  padding: 22px 26px; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(180, 120, 125, .15);
}
.slide-text h2 { font-size: clamp(1.1rem, 3vw, 2rem); font-weight: 800; line-height: 1.35; margin-bottom: 4px; }
.slide-text p { color: var(--muted); font-size: clamp(.85rem, 1.6vw, 1.05rem); margin-bottom: 12px; }
.slide-btn { display: inline-block; background: var(--green-deep); color: #fff; font-weight: 700; padding: 8px 20px; border-radius: 99px; font-size: .92rem; transition: background .2s; }
.slide:hover .slide-btn { background: var(--green-dark); }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--glass-strong); color: var(--text); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  opacity: 0; transition: opacity .25s, background .2s;
}
.slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: var(--white); }
.slider-arrow.prev { right: 14px; }
.slider-arrow.next { left: 14px; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .7); box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: all .3s; }
.dot.active { width: 24px; background: var(--pink-deep); }

/* ---------- Hero (old, unused) ---------- */
.hero {
  background: linear-gradient(160deg, var(--pink) 0%, var(--pink-soft) 55%, var(--green-soft) 100%);
  padding: 60px 0;
  margin-bottom: 36px;
  overflow: hidden;
}
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hero-kicker { display: inline-block; background: rgba(255,255,255,.7); padding: 4px 14px; border-radius: 99px; font-size: .88rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.hero p { color: #6f736b; font-size: 1.1rem; margin-bottom: 24px; max-width: 460px; }
.hero-logo img {
  width: clamp(150px, 24vw, 250px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  box-shadow: 0 20px 50px rgba(200, 130, 135, .25);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; border: 1px solid var(--line); background: var(--white);
  padding: 7px 18px; border-radius: 99px; color: var(--text); transition: all .2s;
}
.chip:hover { border-color: var(--pink-deep); }
.chip.active { background: var(--pink); border-color: var(--pink); font-weight: 700; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 99px;
  padding: 0 16px; min-width: 240px; color: var(--muted);
}
.search { transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgba(231, 154, 160, .18); color: var(--pink-deep); }
.search input, .search input:focus {
  border: 0; outline: 0; box-shadow: none; border-radius: 0;
  background: transparent; padding: 10px 0; width: 100%; font: inherit; color: var(--text);
}
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; margin-bottom: 60px; }
.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pc-img { position: relative; aspect-ratio: 1; background: var(--img-bg); overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .pc-img img { transform: scale(1.05); }
.badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--pink-deep); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.badge.muted { background: #9a9d96; }
.badge.inline { position: static; }
.pc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pc-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.5; }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.price { color: var(--green-dark); font-weight: 800; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .88rem; }
.pc-swatches { display: flex; gap: 4px; margin-top: 4px; }
.pc-swatches i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Stars ---------- */
.stars { display: inline-flex; direction: ltr; color: var(--star-empty); font-size: 1.15rem; letter-spacing: 1px; }
.stars.sm { font-size: .85rem; }
.star { position: relative; display: inline-block; }
.star-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f3b43f; white-space: nowrap; }

/* ---------- Product page ---------- */
.crumbs { font-size: .88rem; color: var(--muted); margin: 22px 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.crumbs a:hover { color: var(--pink-deep); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.product > * { min-width: 0; }
.gallery { position: sticky; top: 90px; }
.main-img {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; direction: ltr;
  border-radius: 24px; background: var(--img-bg); aspect-ratio: 1; scrollbar-width: none;
}
.main-img::-webkit-scrollbar { display: none; }
.main-img img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.thumbs .thumb { scroll-snap-align: start; }
.thumb { flex: 0 0 72px; height: 72px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--img-bg); opacity: .6; transition: all .2s; }
.thumb.active { border-color: var(--pink-deep); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.info h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.4; margin: 8px 0; }
.tag { display: inline-block; background: var(--green-soft); color: var(--green-dark); padding: 3px 12px; border-radius: 99px; font-size: .82rem; font-weight: 500; }
a.tag { text-decoration: none; margin: 0 0 4px; transition: filter .2s; }
a.tag:hover { filter: brightness(.95); }
.rating-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.rating-link:hover span { text-decoration: underline; }
.price-row.big { margin: 18px 0 6px; }
.price-row.big .price { font-size: 1.7rem; }
.stock { font-size: .92rem; color: var(--green-deep); font-weight: 500; }
.stock.out { color: var(--pink-deep); }

.opt { margin-top: 20px; }
.opt-label { margin-bottom: 8px; font-size: .95rem; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c);
  border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s;
}
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 2px var(--pink-deep); transform: scale(1.1); }
.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 99px; background: var(--white); overflow: hidden; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.2rem; color: var(--text); transition: background .2s; }
.qty button:hover { background: var(--pink-soft); }
.qty span { min-width: 36px; text-align: center; font-weight: 700; }
.qty.sm button { width: 32px; height: 32px; font-size: 1rem; }

.actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.actions .btn { flex: 1; min-width: 150px; }
.actions.center { justify-content: center; }
.actions.center .btn { flex: 0 1 auto; }
.perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.perks span { background: var(--pink-soft); padding: 6px 12px; border-radius: 12px; font-size: .85rem; }
.desc { margin-top: 30px; padding-top: 24px; border-top: 1px dashed var(--line); }
.desc h2 { font-size: 1.15rem; margin-bottom: 8px; }
.desc p { white-space: pre-line; color: var(--text-soft); }

/* ---------- Reviews ---------- */
.section-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 20px; }
.reviews { margin-top: 64px; }
.reviews-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.review-summary { text-align: center; position: sticky; top: 90px; }
.big-rating { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.bars { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 30px 1fr 24px; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.bar { height: 8px; background: var(--pink-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #f3b43f; border-radius: 99px; }

.review-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; background: linear-gradient(180deg, var(--pink-soft), var(--white)); }
.review-form h3 { font-size: 1.05rem; }
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 4px; direction: ltr; }
.star-picker input { display: none; }
.star-picker label { font-size: 1.9rem; color: var(--star-empty); cursor: pointer; transition: color .15s, transform .15s; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #f3b43f; }
.star-picker label:hover { transform: scale(1.15); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.review-form { position: relative; }

.review { padding: 16px 4px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review-head .date { margin-inline-start: auto; font-size: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--green); color: var(--green-dark); display: grid; place-items: center; font-weight: 700; }
.review p { color: var(--text-soft); white-space: pre-line; }

/* ---------- Related ---------- */
.related { margin: 64px 0; }
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 18px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x proximity; }
.row-scroll > * { scroll-snap-align: start; }

/* ---------- Forms ---------- */
input, textarea, select {
  width: 100%; font: inherit; color: var(--text);
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--pink-deep); box-shadow: 0 0 0 3px rgba(231, 154, 160, .18); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { font-size: 1.15rem; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .94rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { min-height: 1.4em; font-size: .92rem; }
.form-msg.success { color: var(--green-deep); }
.form-msg.error { color: #d35d6b; }
.pay-note { background: var(--green-soft); color: var(--green-dark); padding: 10px 14px; border-radius: 12px; font-weight: 500; }

/* ---------- Cart / Checkout ---------- */
.page-title { font-size: 1.7rem; font-weight: 800; margin: 28px 0 20px; }
.checkout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; margin-bottom: 60px; }
.checkout > div { display: flex; flex-direction: column; gap: 20px; }
.cart-list { padding: 6px 20px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--img-bg); }
.ci-info { display: flex; flex-direction: column; gap: 2px; font-size: .92rem; }
.ci-name { font-weight: 700; font-size: 1rem; }
.ci-actions { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.summary { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 1.15rem; }
.sum-row { display: flex; justify-content: space-between; }
.sum-row.total { border-top: 1px dashed var(--line); padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.hint { background: var(--pink-soft); padding: 8px 12px; border-radius: 10px; font-size: .86rem; }

.done { padding: 60px 0; }
.done-card { max-width: 520px; margin: auto; text-align: center; padding: 40px 28px; background: linear-gradient(180deg, var(--pink-soft), var(--white)); }
.done-icon { font-size: 3.5rem; animation: pop .6s ease; }
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
.done-card h1 { font-size: 1.8rem; margin: 8px 0; }
.done-card p { margin-bottom: 8px; }

/* ---------- Misc ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 10px; grid-column: 1 / -1; }
.empty.big { padding: 90px 10px; font-size: 1.2rem; line-height: 2.4; }
.loader { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--pink); border-top-color: var(--pink-deep); animation: spin .8s linear infinite; margin: 30px auto; }
.loader.page { margin: 120px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.page-enter { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: var(--toast-bg); color: var(--toast-text); padding: 11px 24px; border-radius: 99px;
  opacity: 0; pointer-events: none; transition: all .3s; z-index: 50; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Footer ---------- */
.footer { background: var(--pink-soft); margin-top: 40px; padding: 34px 0 18px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.footer-brand strong { font-family: "Poppins", sans-serif; font-size: 1.1rem; color: var(--brand-text); }
.footer-brand p { color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 10px; }
.footer-links a { background: var(--white); padding: 8px 16px; border-radius: 99px; font-size: .92rem; transition: transform .2s; }
.footer-links a:hover { transform: translateY(-2px); }
.copy { text-align: center; color: var(--muted); font-size: .84rem; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gallery { position: static; }
  .reviews-wrap { grid-template-columns: 1fr; }
  .review-summary { position: static; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .slider-wrap { width: 94%; margin-top: 12px; margin-bottom: 22px; }
  .slider { border-radius: 18px; }
  .slides { aspect-ratio: 16 / 10; }
  .slide-text { right: 4%; left: auto; max-width: 62%; top: auto; bottom: 26px; transform: none; padding: 9px 12px; border-radius: 12px; }
  .slide-text h2 { font-size: .95rem; }
  .slide-text p { display: none; }
  .slide-text h2 { margin-bottom: 6px; }
  .slide-btn { padding: 3px 12px; font-size: .75rem; }
  .slider-arrow { display: none; }
  .dots { bottom: 10px; }
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero p { margin-inline: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pc-body { padding: 10px 12px 12px; }
  .pc-body h3 { font-size: .92rem; }
  .search { min-width: 0; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .ci-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .row-scroll { grid-auto-columns: 46%; }
}

/* =====================================================
   لوحة التحكم (Admin)
   ===================================================== */
.admin-body { background: var(--admin-bg); min-height: 100vh; }
.login-box { max-width: 380px; margin: 12vh auto; text-align: center; }
.login-box img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 10px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 12px; flex-wrap: wrap; }
.admin-top h1 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.admin-top h1 img { width: 40px; height: 40px; border-radius: 50%; }
.admin-top .actions { margin: 0; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; }
.tab { white-space: nowrap; padding: 8px 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--white); color: var(--text); }
.tab.active { background: var(--pink); border-color: var(--pink); font-weight: 700; }
.tab .count { background: var(--green-deep); color: #fff; font-size: .75rem; padding: 0 7px; border-radius: 99px; margin-inline-start: 4px; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.admin-item img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--img-bg); }
.admin-item .meta { font-size: .85rem; color: var(--muted); }
.admin-item .row-actions { display: flex; gap: 6px; }
.icon-btn { border: 1px solid var(--line); background: var(--white); border-radius: 10px; padding: 6px 12px; font-size: .88rem; color: var(--text); }
.icon-btn:hover { background: var(--pink-soft); }
.icon-btn.danger { color: #d35d6b; }

.modal { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: start center; padding: 30px 12px; overflow-y: auto; z-index: 40; }
.modal-box { width: min(760px, 100%); background: var(--white); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); animation: fadeUp .25s ease; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h2 { font-size: 1.2rem; }
.close-btn { border: 0; background: var(--pink-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.check input { width: auto; }

.img-list { display: flex; gap: 10px; flex-wrap: wrap; }
.img-item { position: relative; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .main-tag { position: absolute; bottom: 4px; right: 4px; background: var(--green-deep); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 6px; }
.img-item .img-btns { position: absolute; top: 4px; left: 4px; display: flex; gap: 4px; }
.img-item .img-btns button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--glass-strong); color: var(--text); font-size: .75rem; }
.upload-box { width: 96px; height: 96px; border-radius: 14px; border: 2px dashed var(--pink-deep); display: grid; place-items: center; color: var(--pink-deep); cursor: pointer; text-align: center; font-size: .82rem; }
.upload-box input { display: none; }
.color-row { display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.color-row .c-stock { text-align: center; padding-inline: 6px; }
.color-row input[type="color"] { padding: 2px; height: 42px; cursor: pointer; }

.order-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.order-head strong { font-size: 1.05rem; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; font-size: .92rem; }
.order-items div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.order-foot select { width: auto; }
.status { padding: 2px 12px; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.status.s-جديد { background: var(--pink); }
.status.s-قيد { background: #fde9c7; }
.status.s-تم { background: var(--green); }
.status.s-ملغي { background: var(--neutral); color: var(--muted); }
.filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .order-grid { grid-template-columns: 1fr; }
  .admin-item { grid-template-columns: 50px 1fr; }
  .admin-item img { width: 50px; height: 50px; }
  .admin-item .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---------- Admin: banners ---------- */
.interval { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.interval input { width: 70px; padding: 6px 10px; }
.banner-item { grid-template-columns: 150px 1fr auto; }
.banner-item img { width: 150px; height: 75px; }
.banner-item.off { opacity: .55; }
.banner-preview { margin-bottom: 16px; }
.banner-preview .preview-img { position: relative; aspect-ratio: 2 / 1; border-radius: 16px; overflow: hidden; background: var(--pink-soft); }
.banner-preview .preview-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-preview .preview-img .change { position: absolute; bottom: 10px; left: 10px; background: var(--glass-strong); padding: 6px 14px; border-radius: 99px; font-size: .85rem; cursor: pointer; }
.banner-preview .preview-img .change input { display: none; }
.upload-box.wide { width: 100%; height: auto; aspect-ratio: 2 / 1; font-size: .95rem; }
@media (max-width: 560px) {
  .banner-item { grid-template-columns: 90px 1fr; }
  .banner-item img { width: 90px; height: 45px; }
}

/* ---------- Admin: categories ---------- */
.toolbar-group { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cat-filter { width: auto; min-width: 150px; border-radius: 99px; padding: 9px 14px; }
.cat-add { display: flex; gap: 10px; padding: 14px; }
.cat-add input { flex: 1; }
.cat-item { grid-template-columns: 46px 1fr auto; }
.cat-item.off { opacity: .6; }
.cat-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--pink-soft); display: grid; place-items: center; font-size: 1.3rem; }
.cat-item.off .cat-icon { background: var(--neutral); }
.cat-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.count-badge { background: var(--green-soft); color: var(--green-dark); font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; cursor: pointer; border: 0; }
.count-badge:hover { background: var(--green); }
.count-badge.zero { background: var(--neutral); color: var(--muted); }
.hidden-badge { background: var(--neutral); color: var(--muted); font-size: .78rem; padding: 2px 10px; border-radius: 99px; }
.cat-edit { display: flex; gap: 6px; align-items: center; }
.cat-edit input { padding: 6px 10px; max-width: 220px; }
.cat-item.uncat { border-style: dashed; }
@media (max-width: 560px) {
  .cat-item { grid-template-columns: 40px 1fr; }
  .cat-icon { width: 40px; height: 40px; }
  .cat-add { flex-direction: column; }
}

/* ---------- زر الثيم + المدخل المخفي ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--pink-soft); color: var(--text);
  display: grid; place-items: center; transition: background .2s, transform .3s;
}
.theme-btn:hover { background: var(--pink); }
.theme-btn:active { transform: rotate(40deg) scale(.9); }
.theme-btn .moon { display: block; }
.theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: block; color: #f3d28b; }
.secret { color: inherit; cursor: default; text-decoration: none; }
.secret:hover { color: inherit; }

[data-theme="dark"] .status.s-قيد { background: #5a4a2a; }
[data-theme="dark"] .badge.muted { background: #5b5557; }
[data-theme="dark"] .pay-note, [data-theme="dark"] .tag { color: var(--green-dark); }
[data-theme="dark"] .btn.outline { color: var(--green-dark); border-color: var(--green-deep); }
[data-theme="dark"] .chip.active { color: #fff; }
[data-theme="dark"] .hint { color: var(--text); }
[data-theme="dark"] .brand img, [data-theme="dark"] .footer-brand img { box-shadow: 0 0 0 2px rgba(255,255,255,.08); }

/* ---------- Admin: appearance ---------- */
.effect-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.effect-opt { position: relative; }
.effect-opt input { position: absolute; opacity: 0; pointer-events: none; }
.effect-opt span {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white);
  cursor: pointer; font-size: .9rem; transition: all .2s; text-align: center;
}
.effect-opt span b { font-size: 1.6rem; font-weight: 400; }
.effect-opt input:checked + span { border-color: var(--pink-deep); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(231,154,160,.18); }
.switch { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 12px !important; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 99px; background: var(--neutral); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; padding: 0; border: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch input:checked { background: var(--green-deep); }
.switch input:checked::after { transform: translateX(-20px); }
.switch input:focus { box-shadow: 0 0 0 3px rgba(95,142,108,.25); }

/* الصور الفاتحة أهدأ شوية بالوضع الداكن */
[data-theme="dark"] .slide img, [data-theme="dark"] .pc-img, [data-theme="dark"] .main-img, [data-theme="dark"] .thumb, [data-theme="dark"] .cart-item img, [data-theme="dark"] .mini-item img { filter: brightness(.9) saturate(.95); }

.optional { color: var(--muted); font-weight: 400; font-size: .85em; }

/* ---------- الدفع 💳 ---------- */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt > span {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 14px 10px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--white);
  transition: all .2s; height: 100%;
}
.pay-opt > span b { font-size: 1.6rem; font-weight: 400; line-height: 1.2; }
.pay-opt > span strong { font-size: .95rem; }
.pay-opt > span small { color: var(--muted); font-size: .78rem; }
.pay-opt:hover > span { border-color: var(--pink-deep); }
.pay-opt input:checked + span { border-color: var(--pink-deep); background: var(--pink-soft); box-shadow: 0 0 0 3px rgba(231,154,160,.18); }
.pay-opt input:focus-visible + span { outline: 2px solid var(--pink-deep); outline-offset: 2px; }

.pay-box { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: var(--pink-soft); border: 1px dashed var(--pink-deep); animation: fadeUp .3s ease; }
.pay-amount { color: var(--green-dark); font-size: 1.1em; }
.pay-number { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--white); border-radius: 12px; padding: 10px 14px; border: 1px solid var(--line); }
.pay-number span { font-family: "Poppins", sans-serif; font-size: 1.15rem; font-weight: 600; letter-spacing: 1px; }
.copy-btn { border: 0; background: var(--green-deep); color: #fff; border-radius: 99px; padding: 6px 14px; font-size: .85rem; font-weight: 700; flex-shrink: 0; }
.copy-btn:hover { background: var(--green-dark); }
[data-theme="dark"] .copy-btn:hover { background: #4b7657; }
.pay-extra { font-size: .9rem; color: var(--text-soft); white-space: pre-line; }
.receipt-box {
  display: flex !important; flex-direction: column !important; align-items: center; justify-content: center; gap: 6px !important;
  min-height: 110px; padding: 14px; border: 2px dashed var(--pink-deep); border-radius: 14px;
  background: var(--white); cursor: pointer; text-align: center; color: var(--pink-deep); font-weight: 500 !important;
  transition: background .2s;
}
.receipt-box:hover { background: var(--pink-soft); }
.receipt-box b { font-size: 1.8rem; font-weight: 400; }
.receipt-box input { display: none; }
.receipt-box img { max-height: 160px; width: auto; border-radius: 10px; }
.receipt-box.has { border-style: solid; border-color: var(--green-deep); color: var(--green-dark); }

/* ---------- Admin: payment ---------- */
.pay-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pay-status { padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.pay-status.cod { background: var(--neutral); color: var(--muted); }
.pay-status.pending { background: #fde9c7; color: #8a5a00; }
.pay-status.paid { background: var(--green); color: var(--green-dark); }
.pay-status.rejected { background: #f8d0d4; color: #a3303d; }
[data-theme="dark"] .pay-status.pending { background: #5a4a2a; color: #f3d28b; }
[data-theme="dark"] .pay-status.rejected { background: #5a2a31; color: #f5b3bb; }
.receipt-thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; background: var(--pink-soft); }
.pay-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.method-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.method-card.off { opacity: .7; }
.method-head { display: grid; grid-template-columns: 60px 1fr auto; gap: 10px; align-items: center; }
.method-head input.icon-in { text-align: center; font-size: 1.3rem; padding: 6px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.8); display: grid; place-items: center; z-index: 70; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 12px; }

/* ---------- إتمام الطلب ---------- */
.step-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--text); display: grid; place-items: center; font-size: .9rem; font-weight: 800; flex-shrink: 0; }
[data-theme="dark"] .step-num { color: #fff; }
.checkout > div > .card { margin: 0; }
.orders-btn { color: var(--text); }

/* رمز التحقق */
.otp { display: flex; flex-direction: column; gap: 12px; }
.otp label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.otp-label { font-weight: 500; margin-bottom: -4px; }
.otp-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.otp-ch > span { flex-direction: row !important; justify-content: center; gap: 8px !important; padding: 12px !important; }
.otp-ch > span b { font-size: 1.3rem !important; }
.otp-steps { background: var(--pink-soft); border-radius: 14px; padding: 12px 34px 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: .95rem; }
.tg-btn { background: #2aabee; box-shadow: 0 6px 18px rgba(42,171,238,.3); }
.tg-btn:hover { background: #1e96d3; }
.otp-sent { background: var(--green-soft); border-radius: 14px; padding: 12px 14px; }
.otp-code { text-align: center; font-size: 1.6rem; letter-spacing: 10px; font-family: "Poppins", sans-serif; font-weight: 600; padding: 12px; }
.otp-links { display: flex; justify-content: space-between; }
.link-btn:disabled { color: var(--muted); cursor: default; text-decoration: none; }
.verified { display: flex; align-items: center; gap: 12px; background: var(--green-soft); border-radius: 14px; padding: 12px 14px; }
.verified .v-icon { font-size: 1.5rem; }
.verified div { display: flex; flex-direction: column; flex: 1; }
.verified strong { font-family: "Poppins", sans-serif; font-size: 1.1rem; text-align: right; }
.verified small { color: var(--green-dark); }

/* ملخص الطلب */
.mini-items { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow-y: auto; padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.mini-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.mini-item img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--img-bg); }
.mini-item div { display: flex; flex-direction: column; line-height: 1.4; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-applied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--green-soft); border: 1px dashed var(--green-deep); border-radius: 12px; padding: 8px 12px; font-size: .92rem; }
.coupon-applied span { color: var(--green-dark); flex: 1; }
.sum-row.discount { color: var(--pink-deep); font-weight: 700; }

/* طلباتي */
.orders-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.who { background: var(--white); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-size: .92rem; }
.order-tabs { margin: 4px 0 18px; }
.order-tabs .count { background: var(--pink-deep); color: #fff; }
.orders-login { max-width: 520px; margin: 0 auto 60px; }
.orders-login h2 { font-size: 1.15rem; margin-bottom: 14px; text-align: center; }
.my-orders { display: flex; flex-direction: column; gap: 16px; margin-bottom: 60px; }
.my-order { display: flex; flex-direction: column; gap: 16px; }
.mo-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.mo-head > div { display: flex; flex-direction: column; }
.mo-head strong { font-size: 1.1rem; }
.mo-status { background: var(--pink-soft); padding: 5px 14px; border-radius: 99px; font-weight: 700; font-size: .9rem; }
.mo-status.done { background: var(--green); color: var(--green-dark); }
.mo-status.cancel { background: var(--neutral); color: var(--muted); }
.cancel-note { background: var(--neutral); color: var(--muted); padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.tracker { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.tk { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; text-align: center; }
.tk::before { content: ""; position: absolute; top: 19px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tk:first-child::before { display: none; }
.tk.on::before { background: var(--green-deep); }
.tk-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); display: grid; place-items: center; font-size: 1.05rem; position: relative; z-index: 1; transition: all .3s; filter: grayscale(1); opacity: .6; }
.tk.on .tk-dot { border-color: var(--green-deep); background: var(--green-soft); filter: none; opacity: 1; color: var(--green-dark); font-weight: 800; }
.tk.now .tk-dot { background: var(--green-deep); color: #fff; box-shadow: 0 0 0 5px rgba(95,142,108,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(95,142,108,.08); } }
.tk-label { font-size: .8rem; color: var(--muted); }
.tk.on .tk-label { color: var(--text); font-weight: 500; }
.mo-items { display: flex; flex-direction: column; gap: 10px; }
.mo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .92rem; }
@media (max-width: 560px) {
  .tk-dot { width: 34px; height: 34px; font-size: .9rem; }
  .tk::before { top: 16px; }
  .tk-label { font-size: .72rem; }
  .header-actions { gap: 6px; }
  .header-actions .theme-btn, .header-actions .cart-btn { width: 40px; height: 40px; }
}

/* ---------- Admin: coupons & notify ---------- */
.coupon-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coupon-code-in { max-width: 240px; font-family: "Poppins", sans-serif; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.used-badge { background: var(--green-soft); color: var(--green-dark); font-size: .8rem; padding: 3px 10px; border-radius: 99px; font-weight: 700; }
.coupon-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.coupon-card .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.status-box { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.st-row { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.st-row code { background: var(--pink-soft); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; }
.verify-tag { color: var(--green-dark); font-size: .85rem; font-weight: 700; }

.wa-form { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.wa-form > label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.wa-test { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-test input { flex: 1; min-width: 180px; }

.wa-btn { background: #25d366; box-shadow: 0 6px 18px rgba(37,211,102,.3); }
.wa-btn:hover { background: #1ebe5b; }

.meta-help { background: var(--green-soft); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.copy-row { display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center; }
.copy-row code { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: .82rem; overflow-x: auto; white-space: nowrap; }
@media (max-width: 560px) { .copy-row { grid-template-columns: 1fr auto; } .copy-row span { grid-column: 1 / -1; } }

.privacy { max-width: 760px; padding-bottom: 60px; }
.privacy .brand { display: inline-flex; }
.privacy h1 { font-size: 1.6rem; }
.privacy h2 { font-size: 1.1rem; margin: 18px 0 6px; }
.privacy p { color: var(--text-soft); }
.privacy-link { color: var(--muted); font-size: .85rem; }
.privacy-link:hover { color: var(--pink-deep); }

/* ---------- الهيدر: الأزرار الجديدة ---------- */
.header-actions .cart-btn { border: 0; }
.bag-btn { background: var(--pink); }
.bag-btn:hover { background: var(--pink-deep); color: #fff; }
.bag-btn .bag-heart { fill: var(--pink-deep); stroke: none; transition: transform .3s; transform-origin: 12px 15px; }
.bag-btn:hover .bag-heart { fill: #fff; transform: scale(1.15); }
[data-theme="dark"] .bag-btn { background: var(--pink); color: #fff; }
.orders-btn { width: auto !important; padding: 0 12px; gap: 6px; display: inline-flex !important; align-items: center; border-radius: 99px !important; }
.orders-btn .btn-label { font-size: .9rem; font-weight: 700; }
.notif-count { background: var(--pink-deep); }
@media (max-width: 560px) {
  .orders-btn { width: 40px !important; padding: 0; justify-content: center; }
  .orders-btn .btn-label { display: none; }
  .brand span:not(.bow) { font-size: 1.1rem; }
  .brand img { width: 38px; height: 38px; }
}

/* ---------- الفوتر يبقى جوه ---------- */
body.store { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.store > main { flex: 1 0 auto; width: 100%; }
body.store > .footer { flex-shrink: 0; }

/* ---------- خط حالات الطلب (تصحيح الاتجاه) ---------- */
.tk::before { right: auto; left: 50%; }

/* ---------- لوحة الإشعارات ---------- */
.notif-overlay { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.15); }
.notif-panel {
  position: fixed; top: 76px; left: max(4%, calc((100vw - 1180px) / 2)); z-index: 45;
  width: min(390px, 92vw); max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  animation: fadeUp .25s ease;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-head h3 { font-size: 1.05rem; }
.notif-list { overflow-y: auto; padding: 6px; }
.notif-item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px; border-radius: 14px; align-items: start; transition: background .2s; position: relative; }
.notif-item:hover { background: var(--pink-soft); }
.notif-item.unread { background: var(--pink-soft); }
.notif-item.unread::after { content: ""; position: absolute; top: 14px; left: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-deep); }
.notif-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--green-soft); overflow: hidden; }
.notif-icon img { width: 100%; height: 100%; object-fit: cover; }
.notif-item strong { display: block; font-size: .95rem; line-height: 1.5; }
.notif-item p { color: var(--text-soft); font-size: .88rem; line-height: 1.5; }
.notif-item small { color: var(--muted); font-size: .78rem; }
.notif-empty { text-align: center; color: var(--muted); padding: 30px 16px; line-height: 2; }
@media (max-width: 560px) { .notif-panel { top: 70px; left: 4vw; } }

.main-img.flash { animation: imgFlash .5s ease; }
@keyframes imgFlash { 0% { opacity: .55; } 100% { opacity: 1; } }

/* ---------- Admin: color image ---------- */
.color-row { grid-template-columns: 50px minmax(0, 1fr) 76px 46px auto; }
.color-img { width: 46px; height: 42px; border-radius: 10px; border: 1.5px dashed var(--pink-deep); background: var(--white); font-size: 1.1rem; overflow: hidden; padding: 0; }
.color-img.has { border-style: solid; border-color: var(--green-deep); }
.color-img img { width: 100%; height: 100%; object-fit: cover; }
.color-picker { background: var(--pink-soft); border-radius: 12px; padding: 10px; margin: -2px 0 10px; font-size: .88rem; }
.cp-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cp-img { width: 64px; height: 64px; border-radius: 10px; border: 2px solid transparent; overflow: hidden; padding: 0; background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); }
.cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cp-img.active { border-color: var(--green-deep); }
.cp-upload { border: 2px dashed var(--pink-deep); color: var(--pink-deep); }
.cp-upload input { display: none; }

/* ---------- Admin: stats ---------- */
.stats-top { margin-bottom: 14px; }
.stats-alert { background: var(--pink-soft); border: 1px solid var(--pink-deep); border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 14px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.kpi.big { background: linear-gradient(135deg, var(--pink-soft), var(--green-soft)); }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--pink-soft); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.kpi.big .kpi-icon { background: var(--white); }
.kpi small { color: var(--muted); display: block; font-size: .82rem; }
.kpi b { font-size: 1.35rem; font-family: "Poppins", "Tajawal", sans-serif; line-height: 1.4; }
.kpi-extra { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.delta { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.delta.up { background: var(--green); color: var(--green-dark); }
.delta.down { background: #f8d0d4; color: #a3303d; }
[data-theme="dark"] .delta.down { background: #5a2a31; color: #f5b3bb; }
.chart-card { margin-bottom: 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head h3, .stats-grid h3 { font-size: 1rem; }
.stats-grid h3 { margin-bottom: 12px; }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 200px; align-items: end; direction: ltr; }
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.vbar i { width: 100%; max-width: 38px; background: linear-gradient(180deg, var(--pink-deep), var(--pink)); border-radius: 8px 8px 3px 3px; transition: height .5s; }
.vbar:last-child i { background: linear-gradient(180deg, var(--green-deep), var(--green)); }
.vb-val { font-size: .7rem; color: var(--muted); min-height: 1em; }
.vb-label { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 30px; }
.hbars { display: flex; flex-direction: column; gap: 8px; }
.hbar { display: grid; grid-template-columns: minmax(70px, 38%) 1fr auto; gap: 8px; align-items: center; font-size: .85rem; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 10px; background: var(--pink-soft); border-radius: 99px; overflow: hidden; }
.hb-track i { display: block; height: 100%; background: var(--green-deep); border-radius: 99px; }
.hb-val { font-weight: 700; white-space: nowrap; font-size: .82rem; }
.hb-val small { font-weight: 400; color: var(--muted); }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mini-stats div { background: var(--bg); border-radius: 12px; padding: 10px; text-align: center; }
.mini-stats b { display: block; font-size: 1.2rem; }
.mini-stats small { color: var(--muted); font-size: .8rem; }
.stock-warn { margin-top: 10px; font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 560px) { .vbars { height: 160px; gap: 3px; } .vb-val { display: none; } }

/* ---------- Admin: alerts ---------- */
.alerts-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 860px) { .alerts-grid { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; }
.seg input:checked + span { border-color: var(--pink-deep); background: var(--pink-soft); }
.quick-tpl { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: .85rem; }
.quick-tpl .chip { padding: 5px 12px; font-size: .85rem; }
.notif-item.preview { border: 1px solid var(--line); }

/* ---------- السلة ويا كلمة "السلة" ---------- */
.bag-btn { width: auto !important; padding: 0 14px 0 12px; gap: 6px; display: inline-flex !important; align-items: center; border-radius: 99px !important; }
.bag-btn .btn-label { font-weight: 800; font-size: .92rem; }
.notif-btn.ring svg { animation: ring .8s ease; transform-origin: 50% 10%; }
@keyframes ring { 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

/* ---------- القائمة السفلية (موبايل) ---------- */
.bottom-nav { display: none; }
@media (max-width: 860px) {
  .desk-only { display: none !important; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
    background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
    background: none; border: 0; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700;
    padding: 6px 0; border-radius: 14px; transition: color .2s, background .2s;
  }
  .bottom-nav .active { color: var(--text); background: var(--pink-soft); }
  .bottom-nav .active svg { stroke: var(--pink-deep); }
  .nav-dot { position: absolute; top: 6px; left: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--pink-deep); border: 2px solid var(--white); }
  body.store { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .bag-btn { padding: 0 10px; }
  .bag-btn .btn-label { font-size: .85rem; }
}

/* ---------- نافذة الأقسام ---------- */
.sheet-overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 46; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.cats-sheet {
  position: fixed; z-index: 47; background: var(--bg);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(720px, 94vw); max-height: 84vh; overflow-y: auto;
  border-radius: 24px; box-shadow: var(--shadow); padding-bottom: 16px;
  animation: popIn .25s ease;
}
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -46%); } }
.sheet-head { position: sticky; top: 0; z-index: 1; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 14px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.sheet-head h3 { text-align: center; font-size: 1.1rem; grid-column: 2; }
.sheet-head .close-btn { grid-column: 3; grid-row: 1; justify-self: end; }
.cats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px; }
.cat-card {
  display: flex; justify-content: space-between; align-items: stretch; gap: 8px; min-height: 92px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  text-align: right; color: var(--text); font: inherit; cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--pink-deep); }
.cc-text { display: flex; flex-direction: column; justify-content: space-between; }
.cc-text b { font-size: 1rem; line-height: 1.4; }
.cc-text small { color: var(--muted); font-size: .8rem; }
.cc-art { width: 66px; height: 66px; flex-shrink: 0; align-self: center; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--pink-soft); }
.cc-art img { width: 100%; height: 100%; object-fit: cover; }
.cc-emoji { font-size: 2rem; }
.cat-card.all .cc-art { background: var(--green-soft); }
.cat-card.sale .cc-art { background: #fde2d4; }
[data-theme="dark"] .cat-card.sale .cc-art { background: #4a2f28; }
@media (max-width: 860px) {
  .cats-sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 86vh; border-radius: 24px 24px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); animation: slideUp .3s ease; }
  .cats-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
  .cat-card { min-height: 84px; padding: 10px 12px; }
  .cc-art { width: 54px; height: 54px; }
  .cc-emoji { font-size: 1.7rem; }
}
@keyframes slideUp { from { transform: translateY(100%); } }
body.sheet-open { overflow: hidden; }

/* ---------- Admin: قائمة جانبية عمودية ---------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.admin-main { min-width: 0; }
.side-tabs {
  position: sticky; top: 16px; flex-direction: column; gap: 4px; margin: 0; overflow: visible;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px;
}
.side-tabs .tab { text-align: right; border: 0; border-radius: 12px; padding: 10px 14px; background: transparent; display: flex; align-items: center; justify-content: space-between; font-weight: 500; }
.side-tabs .tab:hover { background: var(--pink-soft); }
.side-tabs .tab.active { background: var(--pink); font-weight: 800; }
.side-toggle { display: none; }
@media (max-width: 860px) {
  .admin-layout { grid-template-columns: 1fr; gap: 12px; }
  .side-toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
    font: inherit; font-weight: 800; color: var(--text); margin-bottom: 12px;
  }
  .side-tabs { display: none; position: static; }
  .side-tabs.open { display: flex; animation: fadeUp .2s ease; }
}

/* ---------- Admin: الربح ---------- */
.profit-tag { color: var(--green-dark); font-weight: 700; }
.profit-hint { grid-column: 1 / -1; font-size: .9rem; }
.profit-hint .ok { color: var(--green-dark); }
.profit-hint .bad { color: #d35d6b; }
.profit-line { color: var(--green-dark); font-weight: 700; }
.cat-img-up { cursor: pointer; overflow: hidden; position: relative; }
.cat-img-up img { width: 100%; height: 100%; object-fit: cover; }
.cat-img-up input { display: none; }
.cat-img-up:hover::after { content: "📷"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); font-size: 1.1rem; }

/* ---------- Admin: ترتيب الإحصائيات ---------- */
.st-sec { margin-bottom: 22px; }
.st-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.st-title h2 { font-size: 1.15rem; }
.st-title small { color: var(--muted); font-size: .82rem; }
.kpis.fin { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.kpi.profit { background: linear-gradient(135deg, var(--green-soft), var(--white)); border-color: var(--green-deep); }
.kpi.profit b { color: var(--green-dark); }
.kpi.profit.neg b { color: #d35d6b; }
.kpi.profit .kpi-icon { background: var(--green); }
.kpi-extra span { display: inline-block; margin-inline-start: 4px; }
.stats-alert.soft { background: var(--green-soft); border-color: var(--green-deep); }
.legend { display: flex; gap: 12px; font-size: .82rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 4px; vertical-align: middle; }
.lg-rev { background: var(--pink-deep); }
.lg-pro { background: var(--green-deep); }
.vbars.two .vb-pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 100%; }
.vbars.two .vb-pair i { width: 42%; max-width: 18px; border-radius: 6px 6px 2px 2px; }
.vbars.two i.rev { background: linear-gradient(180deg, var(--pink-deep), var(--pink)); }
.vbars.two i.pro { background: linear-gradient(180deg, var(--green-deep), var(--green)); }
.vbars.two .vbar:last-child i.rev { background: linear-gradient(180deg, var(--pink-deep), var(--pink)); }
.chart-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .9rem; }
.chart-foot .ok { color: var(--green-dark); }
.vbars.two .vb-pair { flex: 1 1 0; height: auto; min-height: 0; }

/* ---------- Admin: بحث الطلبات والتواريخ ---------- */
.order-tools { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; padding: 14px; }
.search.wide { width: 100%; min-width: 0; }
.date-range { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.date-range label { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: .9rem; white-space: nowrap; }
.date-range input[type="date"] { width: auto; padding: 7px 10px; border-radius: 10px; }
.quick-dates { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.quick-dates .chip { padding: 5px 12px; font-size: .85rem; }
.order-summary { font-size: .9rem; color: var(--muted); }
.order-summary b { color: var(--text); }
.stats-top { display: flex; flex-direction: column; gap: 10px; }
.stats-range { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; }
.range-label { font-size: .82rem; }
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); }
@media (max-width: 560px) { .date-range label { flex: 1 1 45%; } .date-range input[type="date"] { flex: 1; min-width: 0; } }
.pid { font-size: .72rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0 5px; direction: ltr; display: inline-block; }

/* المخزون */
.stock-tag { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green-dark); white-space: nowrap; }
.stock-tag.out { background: #fdecee; color: #a3303d; }
.stock-tag.low { background: #fff4dc; color: #8a5a00; }
[data-theme="dark"] .stock-tag.out { background: #4a262c; color: #f5b3bb; }
[data-theme="dark"] .stock-tag.low { background: #4a3a1a; color: #f3d38a; }
.color-stock { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.color-stock .bad { color: #d35d6b; }
.swatch.oos { opacity: .35; position: relative; cursor: not-allowed; }
.swatch.oos::after { content: ""; position: absolute; inset: 45% -2px auto; height: 2px; background: currentColor; transform: rotate(-35deg); }
@media (max-width: 480px) {
  .color-row { grid-template-columns: 44px minmax(0, 1fr) 58px 42px auto; gap: 6px; }
  .color-row input[type="color"] { width: 44px; }
  .color-row .c-stock { font-size: .85rem; }
}

/* ---------- ✨ الإضافة التلقائية ---------- */
.autofill { border: 1.5px dashed var(--pink-deep); background: var(--pink-soft); border-radius: 16px; padding: 12px 14px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.af-head { font-size: .95rem; line-height: 1.7; }
.af-head .muted { font-size: .82rem; }
.af-row { display: flex; gap: 8px; }
.af-row input { flex: 1; min-width: 0; }
.af-row .btn { white-space: nowrap; }
.af-progress { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; background: var(--white); border-radius: 12px; padding: 10px 12px; }
.af-progress .done { color: var(--green-dark); }
.af-progress .err { color: #c0392b; }
.af-progress .warn { color: #8a5a00; }
[data-theme="dark"] .af-progress .err { color: #f5b3bb; }
[data-theme="dark"] .af-progress .warn { color: #f3d38a; }
#afKeys summary { cursor: pointer; font-size: .85rem; }
#afKeys label { margin-top: 8px; }

.af-photo-btn { display: grid; place-items: center; cursor: pointer; font-size: 1.1rem; padding: 0 12px; }
.af-preview { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; padding: 8px; font-size: .84rem; }
.af-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.af-preview span { flex: 1; }

.af-note-row { display: flex; gap: 8px; align-items: stretch; }
.af-note-row textarea { flex: 1; min-width: 0; font-size: .86rem; resize: vertical; }
.af-note-row .icon-btn { white-space: nowrap; }
@media (max-width: 520px) { .af-note-row { flex-direction: column; } }
.img-item .img-num { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; border-radius: 99px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ---------- ⏱️ مؤقت الخصم ---------- */
.from { font-size: .72em; font-weight: 500; color: var(--muted); }
/* شريط العداد تحت صورة الكارت (ما يغطي الصورة) */
.pc-deal { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 12px; font-size: .76rem; font-weight: 700; color: #fff;
  background: linear-gradient(90deg, #e2557a, #f08a6c); }
.pc-deal-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-deal b { direction: ltr; font-variant-numeric: tabular-nums; font-size: .82rem; letter-spacing: .3px; white-space: nowrap; }
.pc-deal.urgent { background: linear-gradient(90deg, #d7263d, #ff5a5f); animation: urgentPulse 1.2s ease-in-out infinite; }
@keyframes urgentPulse { 0%, 100% { filter: none; } 50% { filter: brightness(1.12); } }
@media (max-width: 420px) { .pc-deal { padding: 5px 8px; font-size: .7rem; } .pc-deal b { font-size: .76rem; } }
/* علامة 🏷️ على اللون اللي عليه خصم */
.swatch.on-sale { position: relative; }
.swatch.on-sale::before { content: "%"; position: absolute; top: -6px; left: -6px; width: 17px; height: 17px; border-radius: 50%; background: #e2557a; color: #fff;
  font-size: .62rem; font-weight: 800; display: grid; place-items: center; z-index: 1; box-shadow: 0 2px 6px rgba(226,85,122,.4); }

/* صندوق العرض بصفحة المنتج */
.deal-box { margin: 4px 0 14px; padding: 14px 16px; border-radius: 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #e2557a 0%, #f08a6c 100%); box-shadow: 0 10px 28px rgba(226, 85, 122, .3); }
.deal-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%);
  transform: translateX(-100%); animation: dealShine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes dealShine { 60%, 100% { transform: translateX(100%); } }
.deal-box.urgent { background: linear-gradient(135deg, #c81d3a 0%, #ff5a5f 100%); animation: urgentPulse 1.2s ease-in-out infinite; }
.deal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.deal-fire { font-size: 1.25rem; animation: fireWiggle 1.4s ease-in-out infinite; display: inline-block; }
@keyframes fireWiggle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(-8deg); } }
.deal-save { margin-inline-start: auto; background: rgba(255,255,255,.22); padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.deal-sub { font-size: .8rem; opacity: .9; margin: 6px 0 8px; }
.deal-clock { display: flex; align-items: center; justify-content: center; gap: 6px; direction: ltr; }
.deal-clock > i { font-style: normal; font-weight: 800; font-size: 1.2rem; opacity: .8; }
.dc-unit { background: #fff; color: #c8335a; border-radius: 12px; min-width: 58px; padding: 6px 4px 4px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,.1); }
.dc-unit b { display: block; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dc-unit b.tick { animation: digitTick .35s ease; }
.dc-unit small { font-size: .7rem; color: #9a5866; }
@keyframes digitTick { 0% { transform: translateY(-35%); opacity: .2; } 100% { transform: none; opacity: 1; } }
[data-theme="dark"] .dc-unit { background: #2c2226; color: #ff8fa7; }
[data-theme="dark"] .dc-unit small { color: #d9a5b0; }
@media (max-width: 420px) { .dc-unit { min-width: 50px; } .dc-unit b { font-size: 1.25rem; } }

/* صف اللون: اللون · الاسم · الكمية · السعر · الصورة · حذف */
.color-row { grid-template-columns: 50px minmax(0, 1fr) 76px 96px 46px auto !important; grid-template-areas: "col name stock price img del"; }
.color-row > input[type="color"] { grid-area: col; }
.color-row .c-name { grid-area: name; }
.color-row .c-stock { grid-area: stock; }
.color-row .c-price { grid-area: price; text-align: center; padding-inline: 6px; }
.color-row .color-img { grid-area: img; }
.color-row .c-del { grid-area: del; }
@media (max-width: 560px) {
  .color-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 42px auto !important; grid-template-areas: "col name name img del" "stock stock price price price"; row-gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
}
.c-price-tag { color: var(--green-dark); font-weight: 700; }
.sale-timer { display: flex; flex-direction: column; gap: 8px; background: var(--pink-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.st-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.st-quick .chip { font-size: .82rem; padding: 5px 12px; }
.sale-note { font-size: .85rem; margin: 0; }
.sale-note:empty { display: none; }
.sale-note.ok { color: #c8335a; font-weight: 700; }
.sale-note.warn { color: #8a5a00; }
[data-theme="dark"] .sale-note.ok { color: #ff8fa7; }
[data-theme="dark"] .sale-note.warn { color: #f3d38a; }

/* 🏷️ خصم كل لون */
.color-row { grid-template-columns: 50px minmax(0, 1fr) 70px 90px auto 46px auto !important; grid-template-areas: "col name stock price sale img del"; }
.color-row .c-sale { grid-area: sale; }
@media (max-width: 560px) {
  .color-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 42px auto !important; grid-template-areas: "col name name img del" "stock stock price sale sale"; }
}
.c-sale { border: 1px dashed var(--line); background: var(--white); border-radius: 12px; padding: 0 8px; height: 42px; font-size: .78rem; white-space: nowrap; cursor: pointer; color: var(--text); }
.c-sale.inherit, .c-sale.own { border-style: solid; border-color: #e2557a; color: #c8335a; font-weight: 700; background: #fff0f3; }
.c-sale.none { color: var(--muted); }
.c-sale.warn { border-color: #d39b2a; color: #8a5a00; }
[data-theme="dark"] .c-sale.inherit, [data-theme="dark"] .c-sale.own { background: #3a2229; color: #ff8fa7; }
.c-sale-panel { background: var(--pink-soft); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin: -2px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.cs-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.cs-mode { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px !important; border: 1px solid var(--line); background: var(--white); border-radius: 99px; padding: 5px 12px; font-size: .82rem; cursor: pointer; }
.cs-mode input { width: auto; margin: 0; }
.cs-mode.active { border-color: #e2557a; color: #c8335a; font-weight: 700; }
.cs-own { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.cs-own .st-quick { grid-column: 1 / -1; }
.cs-note { font-size: .82rem; margin: 0; color: var(--text-soft); }
.st-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }

/* الأقسام الفرعية */
.sub-chips { margin: -6px 0 16px; padding: 8px 10px; background: var(--pink-soft); border-radius: 16px; }
.sub-chips .chip { font-size: .84rem; padding: 6px 13px; background: var(--white); }
.sub-chips .chip.active { background: var(--pink); }
.sub-chips .chip small { color: var(--muted); font-size: .72rem; margin-inline-start: 2px; }
.crumbs a { color: inherit; }
.crumbs a:hover { color: var(--pink-deep); }

/* أقسام فرعية بالداشبورد */
.sub-panel { margin: -6px 0 12px; margin-inline-start: 28px; padding: 10px 12px; border-inline-start: 3px solid var(--pink-deep); background: var(--pink-soft); border-radius: 0 0 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.sub-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; }
.sub-name { font-weight: 700; flex: 1; min-width: 100px; }
.sub-acts { display: flex; gap: 4px; flex-wrap: wrap; }
.sub-acts .icon-btn { padding: 4px 10px; font-size: .8rem; }
.sub-edit-input { flex: 1; min-width: 120px; }
.sub-del { background: #fff4dc; border-radius: 12px; padding: 8px 10px; font-size: .85rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
[data-theme="dark"] .sub-del { background: #4a3a1a; }
.sub-del select { width: auto; flex: 1; min-width: 160px; }
.sub-add { display: flex; gap: 6px; }
.sub-add input { flex: 1; min-width: 0; }
.sub-empty { font-size: .84rem; margin: 0; }
.icon-btn.active { background: var(--pink); }
@media (max-width: 560px) { .sub-panel { margin-inline-start: 8px; } }

/* الوضع الداكن مطفي من الإعدادات → زر 🌙 يختفي بالمتجر */
html[data-force-theme] .theme-btn { display: none !important; }

/* صور المنتجات بلوحة التحكم على أبيض هم */
.img-item, .cp-img, .color-img.has { background: var(--img-bg); }

/* ===== 📱 طلبات البيج + تصفير الإحصائيات ===== */
.stats-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.stats-tools .chips { margin: 0; }
.stats-tools .btn.small { padding: 7px 14px; }
.stats-reset-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: var(--white); border: 1px dashed var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; font-size: .92rem; }
.page-tag { display: inline-block; background: #fdeef3; color: var(--pink-deep); border-radius: 99px; padding: 2px 10px; font-size: .78rem; font-weight: 700; }
.po-items-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 -4px; }
#poItems { display: flex; flex-direction: column; gap: 10px; }
.po-item { display: grid; grid-template-columns: 2fr 1.2fr .7fr 1fr auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.po-item label { font-size: .78rem; gap: 3px !important; }
.po-item input, .po-item select { padding: 8px 10px; min-width: 0; }
.po-item .po-custom { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.po-item .po-line { grid-column: 1 / -1; font-size: .8rem; color: var(--muted, #888); }
.po-sum { background: var(--cream, #faf6f0); border-radius: 14px; padding: 10px 14px; display: grid; gap: 4px; font-size: .92rem; }
.po-sum div { display: flex; justify-content: space-between; }
.po-sum .tot { font-weight: 800; font-size: 1.02rem; }
.po-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.po-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.po-row .meta { font-size: .8rem; color: var(--muted, #888); }
.po-row .amt { text-align: left; font-weight: 700; white-space: nowrap; }
.po-row .amt small { display: block; font-weight: 500; font-size: .75rem; color: var(--green-deep); }
.po-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
@media (max-width: 640px) {
  .po-item { grid-template-columns: 1fr 1fr; }
  .po-item .po-prod { grid-column: 1 / -1; }
  .po-row { grid-template-columns: 1fr auto; }
  .po-row .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
html[data-theme="dark"] .page-tag { background: rgba(231,154,160,.18); }
html[data-theme="dark"] .po-sum { background: rgba(255,255,255,.05); }

/* ===== منع العرض الزايد على الموبايل + زر الرجوع ===== */
body { overflow-x: clip; }
.gallery-wrap { position: relative; }
.back-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; font-size: 1.25rem; line-height: 1;
  background: rgba(255,255,255,.92); color: var(--text, #333);
  box-shadow: 0 2px 10px rgba(0,0,0,.15); backdrop-filter: blur(6px); transition: transform .15s;
}
.back-btn:hover { transform: scale(1.06); }
.back-btn:active { transform: scale(.94); }
[data-theme="dark"] .back-btn { background: rgba(30,26,28,.9); color: #f1e9ea; }
.admin-item.is-hidden > img { opacity: .45; filter: grayscale(.6); }
.admin-item.is-hidden strong { color: var(--muted); }
.hidden-tag { display: inline-block; background: #eceae6; color: #6b6e68; border-radius: 99px; padding: 1px 9px; font-size: .76rem; font-weight: 700; vertical-align: middle; }
[data-theme="dark"] .hidden-tag { background: rgba(255,255,255,.1); color: #c9c3c5; }
.oos-note { display: inline-block; margin-inline-start: 6px; background: #f6e3e5; color: #b4505d; border-radius: 99px; padding: 1px 10px; font-size: .8rem; font-weight: 700; }
[data-theme="dark"] .oos-note { background: rgba(211,93,107,.18); color: #f0a3ad; }
.swatch.oos.active { opacity: .6; }

/* ===== 📥 استلام بضاعة ===== */
.cost-tip { font-size: .82rem; color: var(--muted); background: var(--cream, #faf6f0); border-radius: 12px; padding: 8px 12px; line-height: 1.7; }
[data-theme="dark"] .cost-tip { background: rgba(255,255,255,.05); }
.rs-now { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs-now div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; }
.rs-now small { color: var(--muted); font-size: .76rem; }
.rs-colors { display: flex; flex-direction: column; gap: 8px; }
.rs-color { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px !important; border: 1px solid var(--line); border-radius: 14px; padding: 6px 10px; background: var(--white); }
.rs-color span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rs-color i { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.1); }
.rs-color input { width: 110px; flex-shrink: 0; padding: 8px 10px; }
.rs-preview { background: var(--cream, #faf6f0); border-radius: 14px; padding: 10px 14px; display: grid; gap: 5px; font-size: .92rem; }
[data-theme="dark"] .rs-preview { background: rgba(255,255,255,.05); }
.rs-preview > div { display: flex; justify-content: space-between; gap: 10px; }
.rs-preview .ok { color: var(--green-deep); } .rs-preview .bad { color: #d35d6b; }
.rs-calc { direction: ltr; justify-content: center !important; font-size: .8rem; color: var(--muted); font-family: Poppins, sans-serif; }
.rs-warn { display: block !important; font-size: .8rem; color: #b07a2a; line-height: 1.6; }
.rs-hist { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.rs-hist-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.rs-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; font-size: .84rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.rs-row small { color: var(--muted); }
@media (max-width: 520px) { .rs-row { grid-template-columns: 1fr; gap: 2px; } }

/* ===== 📱 طلب البيج السريع ===== */
.po-box { width: min(600px, 100%); min-width: 0; max-width: 100%; padding-bottom: 0; display: flex; flex-direction: column; gap: 14px; }
.po-channels { max-width: 100%; min-width: 0; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-top: -6px; }
.po-channels::-webkit-scrollbar { display: none; }
.po-channels .chip { flex-shrink: 0; padding: 7px 12px; font-size: .86rem; }
.po-step { display: flex; flex-direction: column; gap: 10px; }
.po-step-t { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.po-step-t > span { width: 24px; height: 24px; border-radius: 50%; background: var(--pink-deep); color: #fff; display: grid; place-items: center; font-size: .8rem; }
.po-search { position: relative; }
.po-search input { padding: 13px 16px; font-size: 1rem; border-width: 2px; }
.po-results { position: absolute; inset: calc(100% + 4px) 0 auto; z-index: 5; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); max-height: 340px; overflow-y: auto; padding: 6px; }
.po-res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: start; font: inherit; color: inherit; }
.po-res:hover, .po-res.first { background: var(--pink-soft, #fdf0f1); }
.po-res[disabled] { opacity: .45; cursor: not-allowed; }
.po-res img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--img-bg, #fff); flex-shrink: 0; }
.po-res span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.po-res b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.po-res small { color: var(--muted); font-size: .78rem; }
.po-res em { font-style: normal; color: var(--green-deep); font-weight: 800; }
.po-nores { padding: 12px; font-size: .9rem; color: var(--muted); }
#poItems { display: flex; flex-direction: column; gap: 10px; }
.po-empty { text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: 16px; padding: 18px; font-size: .92rem; }
.po-card { border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.po-card.need { border-color: #e2a23b; box-shadow: 0 0 0 3px rgba(226,162,59,.15); }
.po-card-top { display: flex; align-items: center; gap: 10px; }
.po-thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--img-bg, #fff); flex-shrink: 0; display: grid; place-items: center; font-size: 1.3rem; }
.po-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.po-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-name small { font-size: .78rem; }
.po-cname { flex: 1; min-width: 0; }
.po-x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(211,93,107,.1); color: #d35d6b; cursor: pointer; flex-shrink: 0; font-size: .9rem; }
.po-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.po-color { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--white); color: inherit; border-radius: 99px; padding: 5px 11px 5px 9px; font: inherit; font-size: .82rem; cursor: pointer; }
.po-color i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); flex-shrink: 0; }
.po-color.on { border-color: var(--pink-deep); background: var(--pink-soft, #fdf0f1); font-weight: 700; box-shadow: 0 0 0 2px rgba(231,154,160,.35); }
.po-color[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.po-card-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.po-card.custom .po-card-row { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); }
.po-card-row label { font-size: .76rem; gap: 3px !important; color: var(--muted); }
.po-card-row input { padding: 8px 10px; }
.po-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 40px; }
.po-qty button { width: 38px; height: 100%; border: 0; background: var(--cream, #faf6f0); font-size: 1.15rem; cursor: pointer; color: inherit; }
.po-qty b { min-width: 34px; text-align: center; }
.po-line { font-weight: 800; white-space: nowrap; padding-bottom: 9px; }
.po-err { color: #c4652a; font-size: .8rem; font-weight: 700; }
.po-custom-add { align-self: flex-start; font-size: .86rem; }
.po-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.po-more { border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.po-more summary { cursor: pointer; font-weight: 700; list-style: none; }
.po-more summary::-webkit-details-marker { display: none; }
.po-more[open] summary { margin-bottom: 12px; }
.po-more .switch { margin-top: 12px; }
.po-foot { position: sticky; bottom: 0; z-index: 4; margin: 0 -24px; padding: 12px 24px 16px; background: var(--white); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.po-foot .po-sum { background: none; padding: 0; gap: 2px; }
.po-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.po-total b { font-size: 1.35rem; }
.po-sub { font-size: .8rem; color: var(--muted); }
.po-sub .ok { color: var(--green-deep); font-weight: 700; } .po-sub .bad { color: #d35d6b; font-weight: 700; }
.po-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.po-actions .btn { padding: 12px 10px; }
@media (max-width: 520px) {
  .po-card.custom .po-card-row { grid-template-columns: auto minmax(0, 1fr); }
  .po-card.custom .po-card-row label:last-child { grid-column: 1 / -1; }
}
[data-theme="dark"] .po-res:hover, [data-theme="dark"] .po-res.first, [data-theme="dark"] .po-color.on { background: rgba(231,154,160,.14); }
[data-theme="dark"] .po-qty button { background: rgba(255,255,255,.06); }
.modal > .modal-box { min-width: 0; }
.po-step, .po-search, #poItems, .po-card { min-width: 0; }

/* 📂 أقسام إضافية للمنتج (لوحة التحكم) */
.extra-cats .xc-title { display: block; font-weight: 500; margin-bottom: 8px; }
.xc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.xc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font: inherit; font-size: .9rem; color: inherit; transition: .2s; }
.xc-chip:hover { border-color: var(--pink-deep); }
.xc-chip.on { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; }
.xc-chip .xc-mark { font-size: .8rem; }

/* 🔐 حساب الزبونة */
@media (max-width: 860px) { .bottom-nav.four { grid-template-columns: repeat(4, 1fr); } }
.account-btn, #accountNav { position: relative; }
.acc-dot { display: none; position: absolute; top: 4px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: #5f8e6c; border: 2px solid var(--white); }
.signed .acc-dot { display: block; }
#accountNav .acc-dot { top: 2px; inset-inline-end: calc(50% - 16px); }
.auth-wrap { display: flex; justify-content: center; padding-top: 18px; padding-bottom: 30px; }
.auth-card { width: 100%; max-width: 420px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.auth-icon { font-size: 2.6rem; line-height: 1; }
.auth-avatar { width: 68px; height: 68px; margin: 0 auto; border-radius: 50%; background: var(--pink-soft); color: var(--pink-deep); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.auth-title { font-size: 1.35rem; margin: 0; }
.auth-text { margin: 0; line-height: 1.8; }
.auth-small { margin: 0; font-size: .9rem; line-height: 1.7; }
.auth-email { margin: -6px 0 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { text-align: start; display: flex; flex-direction: column; gap: 12px; }
.auth-card .link-btn { align-self: center; }
.verified-badge { align-self: center; background: var(--green-soft); color: var(--green-dark); padding: 4px 14px; border-radius: 99px; font-size: .88rem; font-weight: 700; }
.account-strip { padding: 12px 16px; margin-bottom: 14px; font-size: .92rem; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff !important; color: #3c4043 !important; border: 1.5px solid #dadce0 !important; box-shadow: none !important; font-weight: 700; }
.google-btn:hover { background: #f7f8f8 !important; }
.google-btn:disabled { opacity: .6; }
.auth-photo { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; object-fit: cover; border: 3px solid var(--pink-soft); }
.inapp-note { background: #fff6e5; color: #7a5300; border: 1px solid #f3d9a4; border-radius: 14px; padding: 12px 14px; font-size: .9rem; line-height: 1.8; text-align: start; }
[data-theme="dark"] .inapp-note { background: #3a2f1a; color: #f3d9a4; border-color: #5c4a26; }
.inapp-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
