/* FIX v12: [hidden] لازم يكسب أي display class — سبب مشاكل (الشات مش بيقفل) و(التحقق مش بيخلص) */
[hidden] { display: none !important; }

/* ============ XIO — Luxury Black & White Metallic Theme v3 ============ */
:root {
  --black: #050505;
  --black-2: #0b0b0d;
  --black-3: #121216;
  --white: #f5f5f7;
  --silver: #c7c9cf;
  --gold: #c9a24b;
  --gold-light: #e8cf8f;
  --line: rgba(255,255,255,.08);
  --nav-h: 72px;
  font-size: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--gold); color: var(--black); }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 0; right: 0; left: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 48px);
  z-index: 100;
  background: rgba(5,5,5,.35);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s, height .3s;
}
.navbar.scrolled {
  background: rgba(5,5,5,.82);
  border-bottom-color: var(--line);
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  height: 42px; width: auto;
  filter: drop-shadow(0 0 10px rgba(201,162,75,.35));
  transition: transform .3s;
}
.brand:hover .brand-logo { transform: scale(1.08) rotate(-3deg); }
.brand-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: .35em;
  background: linear-gradient(120deg, #fff 20%, #9a9a9a 40%, #fff 60%, #b8b8b8 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metal-sheen 4s linear infinite;
}
@keyframes metal-sheen { to { background-position: 200% center; } }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-user {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-light); font-weight: 700; font-size: .95rem;
}
.nav-user i { font-size: 1.2rem; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-ghost {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 18px rgba(255,255,255,.12);
}
.btn-metal {
  /* v20: من الأبيض الحاد لذهبي شمبانيا معدني — أفخم وأنسب للثيم */
  color: #1a1408;
  background: linear-gradient(135deg, #f3e3b0 0%, #d4b45a 38%, #eed9a0 58%, #b8973f 100%);
  background-size: 200% 200%;
  box-shadow: 0 4px 20px rgba(212,180,90,.28), inset 0 1px 0 rgba(255,244,214,.75);
}
.btn-metal:hover {
  background-position: 100% 100%;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,180,90,.45);
}
.btn-lg { padding: 14px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; padding: 14px; font-size: 1rem; }
.btn-active { outline: 1px solid var(--gold); }

/* submit button with spinner */
.btn-submit { position: relative; overflow: hidden; }
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(0,0,0,.25);
  border-top-color: #111;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn-submit.busy .btn-spinner { display: inline-block; }
.btn-submit.busy .btn-label { opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ HERO (bg video + 3D logo) ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) clamp(16px, 5vw, 64px) 48px;
  position: relative;
  overflow: hidden;
}
.hero-bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .32;
  filter: saturate(.55) brightness(.85);
}
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, transparent 42%, rgba(5,5,5,.78) 82%),
    linear-gradient(180deg, rgba(5,5,5,.6), rgba(5,5,5,.22) 40%, var(--black) 97%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* 3D canvas stage */
.hero-3d-wrap {
  position: relative;
  height: clamp(340px, 46vw, 560px);
  cursor: grab;
  touch-action: pan-y;
}
.hero-3d-wrap:active { cursor: grabbing; }
#logo3d-canvas { width: 100%; height: 100%; display: block; }
.canvas3d-hint {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--silver);
  background: rgba(5,5,5,.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .5s;
  animation: hint-fade 6s forwards;
}
.canvas3d-hint.hide { opacity: 0; }
@keyframes hint-fade { 0%, 75% { opacity: 1; } 100% { opacity: .3; } }

/* team name */
.hero-name { position: relative; }
.hero-name.show { opacity: 1; }
.name-halo {
  position: absolute;
  top: -40px; right: -30px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(201,162,75,.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.team-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: clamp(3.2rem, 8vw, 6rem);
  letter-spacing: .28em;
  color: var(--white);
  text-shadow: 0 0 30px rgba(255,255,255,.35), 0 0 80px rgba(201,162,75,.25);
  line-height: 1.1;
}
.team-tagline {
  margin-top: 10px;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--gold-light);
}
.team-sub {
  margin-top: 14px;
  color: var(--silver);
  font-size: 1.02rem;
  line-height: 1.9;
  max-width: 46ch;
}
.hero-cta { margin-top: 26px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--silver);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.badge i { color: var(--gold-light); font-size: .8rem; }
.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  animation: hint-bounce 2s infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Tech marquee ============ */
.tech-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent);
  overflow: hidden;
  padding: 18px 0;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 46px;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--silver);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.marquee-track i { color: var(--gold-light); font-size: 1.15rem; }
@keyframes marquee { to { transform: translateX(50%); } } /* RTL: track moves right */

/* ============ Sections ============ */
.section {
  padding: 90px clamp(16px, 5vw, 64px);
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  text-align: center;
}
.gold-text {
  background: linear-gradient(120deg, var(--gold-light), var(--gold), #f6e3ae, var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metal-sheen 5s linear infinite;
}
.section-desc { text-align: center; color: var(--silver); margin-top: 10px; font-size: 1.05rem; }

/* ============ Video bands (sections with video bg) ============ */
.video-band {
  position: relative;
  max-width: none;
  overflow: hidden;
}
.band-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .3;
  filter: saturate(.55) brightness(.9);
}
.band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--black) 0%, rgba(5,5,5,.38) 22%, rgba(5,5,5,.38) 78%, var(--black) 100%);
}
.band-content { position: relative; max-width: 1280px; margin: 0 auto; }

/* cards */
.cards-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.card {
  background: linear-gradient(160deg, var(--black-3), var(--black-2));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .8s;
}
.card:hover::before { transform: translateX(100%); }
.card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,162,75,.4);
  box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 30px rgba(201,162,75,.1);
}
.card-icon {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--gold-light);
  background: rgba(201,162,75,.08);
  border: 1px solid rgba(201,162,75,.25);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--silver); line-height: 1.8; font-size: .95rem; }

/* why grid */
.why-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  text-align: center;
}
.why-item i {
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: inline-block;
}
.why-item h3 { margin-bottom: 8px; font-size: 1.15rem; }
.why-item p { color: var(--silver); font-size: .93rem; line-height: 1.8; }

/* process */
.process-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.process-step {
  position: relative;
  padding: 34px 22px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--black-3), var(--black-2));
  text-align: center;
  overflow: hidden;
  transition: transform .35s, border-color .35s;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.4); }
.step-num {
  position: absolute;
  top: 10px; left: 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: rgba(255,255,255,.05);
}
.process-step i { font-size: 1.7rem; color: var(--gold-light); margin-bottom: 14px; }
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { color: var(--silver); font-size: .9rem; line-height: 1.75; }

/* contact */
.contact-row {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(18,18,22,.75);
  backdrop-filter: blur(6px);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.contact-card i { font-size: 1.3rem; color: var(--gold-light); }
.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,75,.5);
  box-shadow: 0 12px 30px rgba(0,0,0,.5);
}

/* footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 20px calc(36px + env(safe-area-inset-bottom));
  text-align: center;
  color: var(--silver);
  font-size: .9rem;
}
.footer-logo {
  height: 44px;
  margin-bottom: 12px;
  opacity: .9;
  filter: drop-shadow(0 0 8px rgba(201,162,75,.3));
}

/* reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* clearer videos for section pages */
.clear-video { opacity: .45 !important; filter: saturate(.7) brightness(1) !important; }

/* AI card accent */
.card-ai { border-color: rgba(201,162,75,.35); }
.card-ai .card-icon { background: rgba(201,162,75,.14); }

/* ============ Internal member area ============ */
.member-body { background: var(--black); }

/* sections chips bar (under navbar) */
.sections-bar {
  position: fixed;
  top: var(--nav-h);
  right: 0; left: 0;
  z-index: 99;
  display: flex;
  gap: 8px;
  padding: 10px clamp(14px, 4vw, 48px);
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.sections-bar::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--silver);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: color .25s, border-color .25s, background .25s;
}
.chip i { color: var(--gold-light); font-size: .8rem; }
.chip:hover { color: var(--white); border-color: rgba(201,162,75,.4); }
.chip-active {
  color: #111;
  background: linear-gradient(135deg, #fff, #cfcfcf);
  border-color: transparent;
}
.chip-active i { color: #6b5416; }

/* member hero */
.member-hero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 18px 46px;
  overflow: hidden;
}
.sec-hero { min-height: 56svh; }
.member-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .42;
  filter: saturate(.7) brightness(.95);
}
.member-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 60% at 50% 45%, transparent 35%, rgba(5,5,5,.72) 85%),
    linear-gradient(180deg, rgba(5,5,5,.72), rgba(5,5,5,.15) 45%, var(--black) 98%);
}
.member-hero-content { position: relative; max-width: 760px; }
.member-welcome { font-size: clamp(1.7rem, 4.5vw, 2.7rem); font-weight: 800; line-height: 1.4; }
.member-sub { margin-top: 12px; color: var(--silver); font-size: 1.02rem; line-height: 1.9; }
.dash-3d-wrap { height: 190px; margin: 0 auto 8px; max-width: 320px; cursor: grab; touch-action: pan-y; }
.dash-3d-wrap canvas { width: 100%; height: 100%; display: block; }
.sec-icon {
  width: 74px; height: 74px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  font-size: 1.9rem;
  color: var(--gold-light);
  background: rgba(201,162,75,.1);
  border: 1px solid rgba(201,162,75,.35);
  box-shadow: 0 0 34px rgba(201,162,75,.18);
}

/* gateway cards (dashboard) */
.gate-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.gate-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--white);
  aspect-ratio: 4 / 3;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.gate-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.8) brightness(.75);
  transition: transform .5s, filter .5s;
}
.gate-card:hover { transform: translateY(-6px); border-color: rgba(201,162,75,.5); box-shadow: 0 18px 44px rgba(0,0,0,.6); }
.gate-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(.9); }
.gate-info {
  position: absolute;
  inset-inline: 0; bottom: 0;
  padding: 40px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(5,5,5,.92));
}
.gate-info i { color: var(--gold-light); font-size: 1.15rem; }
.gate-info h3 { margin-top: 6px; font-size: 1.12rem; }
.gate-info p { color: var(--silver); font-size: .85rem; margin-top: 3px; }

/* team intro */
.team-intro {
  margin-top: 36px;
  background: linear-gradient(160deg, var(--black-3), var(--black-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 28px;
}
.team-intro p { color: var(--silver); line-height: 2.1; font-size: 1.02rem; }
.team-intro strong { color: var(--gold-light); }
.team-points {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.team-points span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.team-points i { color: var(--gold-light); font-size: .75rem; }

/* gallery */
.gallery-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.shot {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--black-2);
  transition: transform .35s, border-color .35s;
}
.shot:hover { transform: translateY(-5px); border-color: rgba(201,162,75,.4); }
.shot img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.gallery-portrait .shot img { aspect-ratio: 3 / 4; object-position: top; }
.shot figcaption {
  padding: 13px 16px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--silver);
  border-top: 1px solid var(--line);
}

/* section CTA box */
.sec-cta-box {
  text-align: center;
  border-radius: 22px;
  padding: 46px 24px;
  border: 1px solid rgba(201,162,75,.28);
  background:
    radial-gradient(ellipse 60% 90% at 50% 0%, rgba(201,162,75,.09), transparent 60%),
    linear-gradient(165deg, var(--black-3), var(--black-2));
}
.sec-cta-box h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; }
.sec-cta-box > p { margin-top: 10px; color: var(--silver); }
.sec-cta-box .contact-row { margin-top: 28px; }

/* ============ AUTH — split layout with video visual ============ */
.auth-body { background: var(--black); }
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-visual video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .55;
  filter: saturate(.65) brightness(.95);
}
.auth-visual-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(5,5,5,.12) 45%, rgba(5,5,5,.6) 100%),
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 42%, rgba(5,5,5,.6));
}
.auth-visual-content {
  position: relative;
  text-align: center;
  padding: 30px;
  animation: fade-up .9s ease both;
}
.auth-visual-logo {
  height: 110px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 26px rgba(201,162,75,.5));
  animation: float-soft 5s ease-in-out infinite;
}
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.auth-visual-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
}
.auth-visual-content p {
  margin-top: 10px;
  color: var(--silver);
  font-size: 1.02rem;
}

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(18px, 4vw, 60px);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: linear-gradient(165deg, rgba(18,18,22,.92), rgba(11,11,13,.95));
  border-radius: 22px;
  padding: 40px 36px;
  animation: fade-up .7s ease both .15s;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* animated glowing border */
.glow-border { position: relative; }
.glow-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 23px;
  padding: 1px;
  background: conic-gradient(from var(--ga, 0deg), transparent 0%, rgba(201,162,75,.9) 12%, transparent 26%, transparent 55%, rgba(255,255,255,.5) 66%, transparent 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: border-rotate 5s linear infinite;
  pointer-events: none;
}
@property --ga { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes border-rotate { to { --ga: 360deg; } }

.auth-title { font-size: 1.65rem; font-weight: 800; text-align: center; }
.auth-sub { color: var(--silver); margin-top: 6px; margin-bottom: 30px; font-size: .95rem; text-align: center; }
.auth-form { text-align: right; }

/* floating-label fields */
.ffield { position: relative; margin-bottom: 22px; }
.ffield input {
  width: 100%;
  padding: 11px 14px;
  padding-top: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.ffield input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 3px rgba(201,162,75,.14), 0 0 24px rgba(201,162,75,.08);
}
.ffield label {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: rgba(255,255,255,.45);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: all .25s ease;
}
.ffield label i { font-size: .85rem; color: rgba(232,207,143,.6); transition: color .25s; }
.ffield input:focus + label,
.ffield input:not(:placeholder-shown) + label {
  top: 13px;
  font-size: .72rem;
  color: var(--gold-light);
}
.ffield input:focus + label i,
.ffield input:not(:placeholder-shown) + label i { color: var(--gold-light); }
.ffield input[dir="ltr"] { text-align: left; }

.peek {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer;
  font-size: .95rem;
  padding: 6px;
  transition: color .25s;
}
.peek:hover { color: var(--gold-light); }

.form-msg { margin-top: 14px; min-height: 20px; font-size: .9rem; font-weight: 700; text-align: center; }
.form-msg.ok { color: #7ddb8a; }
.form-msg.err { color: #e07070; }
.auth-switch { margin-top: 22px; font-size: .92rem; color: var(--silver); text-align: center; }
.auth-switch a { color: var(--gold-light); text-decoration: none; font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

/* ============ Tablet / Mobile layout ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-3d-wrap { order: -1; height: clamp(180px, 34vw, 300px); }
  .team-sub { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-badges { justify-content: center; }
  .name-halo { right: 50%; transform: translateX(50%); }

  /* Auth: video becomes a compact top banner (visible on phone!) */
  .auth-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .auth-visual { height: 210px; }
  .auth-visual video { opacity: .6; }
  .auth-visual-overlay {
    background:
      linear-gradient(180deg, rgba(5,5,5,.55), rgba(5,5,5,.1) 45%, var(--black) 100%);
  }
  .auth-visual-logo { height: 64px; margin-bottom: 10px; }
  .auth-visual-content { padding: 16px; }
  .auth-visual-content h2 { font-size: 1.3rem; }
  .auth-visual-content p { font-size: .88rem; margin-top: 6px; }
}

/* ============ Mobile ============ */
@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  .navbar { padding: 0 14px; }
  .navbar.scrolled { height: 54px; }
  .brand-logo { height: 32px; }
  .brand-name { font-size: 1.05rem; letter-spacing: .22em; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 13px; font-size: .8rem; border-radius: 8px; }
  .nav-user { font-size: .82rem; }

  .hero { padding: calc(var(--nav-h) + 6px) 16px 34px; min-height: auto; }
  .hero-inner { gap: 4px; }
  .hero-3d-wrap { height: 170px; max-width: 220px; margin: 0 auto; }
  .canvas3d-hint { font-size: .68rem; padding: 5px 12px; bottom: 2px; }
  .team-name { font-size: 2.5rem; letter-spacing: .2em; }
  .team-tagline { font-size: 1.05rem; margin-top: 6px; }
  .team-sub { font-size: .92rem; line-height: 1.8; margin-top: 10px; max-width: 34ch; }
  .hero-cta { gap: 10px; margin-top: 20px; }
  .hero-cta .btn-lg { padding: 12px 18px; font-size: .92rem; flex: 1 1 46%; }
  .hero-badges { margin-top: 16px; gap: 8px; }
  .badge { font-size: .72rem; padding: 6px 11px; }
  .scroll-hint { display: none; }

  .marquee-track { gap: 30px; animation-duration: 20s; }
  .marquee-track span { font-size: .85rem; }

  .section { padding: 60px 16px; }
  .cards-grid, .process-grid { gap: 14px; margin-top: 34px; }
  .card { padding: 24px 18px; border-radius: 14px; }
  .card-icon { width: 50px; height: 50px; font-size: 1.3rem; margin-bottom: 14px; }

  .why-grid { gap: 26px 14px; grid-template-columns: 1fr 1fr; }
  .why-item p { font-size: .84rem; }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .process-step { padding: 28px 14px 22px; }
  .process-step p { font-size: .82rem; }

  .contact-row { flex-direction: row; gap: 10px; }
  .contact-card { flex: 1 1 30%; justify-content: center; padding: 13px 10px; font-size: .85rem; flex-direction: column; gap: 8px; text-align: center; }
  .contact-card i { font-size: 1.25rem; }

  .auth-visual { height: 175px; }
  .auth-panel { padding: 20px 14px 40px; align-items: flex-start; }
  .auth-card { padding: 26px 18px; border-radius: 18px; }
  .auth-title { font-size: 1.35rem; }
  .auth-sub { margin-bottom: 22px; }
  .ffield { margin-bottom: 16px; }

  /* member area on phone */
  .sections-bar { padding: 8px 12px; gap: 7px; }
  .chip { padding: 7px 13px; font-size: .78rem; }
  .member-hero { min-height: auto; padding: calc(var(--nav-h) + 62px) 16px 38px; }
  .member-welcome { font-size: 1.5rem; }
  .member-sub { font-size: .92rem; }
  .dash-3d-wrap { height: 140px; max-width: 190px; }
  .sec-icon { width: 60px; height: 60px; font-size: 1.5rem; border-radius: 16px; margin-bottom: 14px; }
  .gate-grid { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
  .gate-card { aspect-ratio: 1 / 1.05; border-radius: 14px; }
  .gate-info { padding: 30px 12px 11px; }
  .gate-info h3 { font-size: .95rem; }
  .gate-info p { font-size: .72rem; }
  .team-intro { padding: 24px 18px; border-radius: 16px; }
  .team-intro p { font-size: .93rem; line-height: 1.95; }
  .team-points span { font-size: .76rem; padding: 7px 12px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 30px; }
  .gallery-portrait { grid-template-columns: 1fr 1fr; }
  .gallery-portrait .shot figcaption { font-size: .74rem; padding: 10px 10px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid .card { padding: 20px 14px; }
  .feat-grid .card h3 { font-size: 1rem; }
  .feat-grid .card p { font-size: .82rem; line-height: 1.7; }
  .sec-cta-box { padding: 34px 18px; }
}

@media (max-width: 360px) {
  .brand-name { display: none; }
  .why-grid, .process-grid, .feat-grid, .gate-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ v5: Catalog sections (packages / addons / design) ============ */
.catalog-section { padding: 70px 18px; }
.catalog-section .section-head { margin-bottom: 34px; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.pkg-card { position: relative; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.pkg-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.3); box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.pkg-card.pkg-hot { border-color: rgba(212,180,90,.55); box-shadow: 0 0 0 1px rgba(212,180,90,.25), 0 14px 45px rgba(0,0,0,.55); }
.pkg-badge { position: absolute; top: -12px; inset-inline-start: 18px; background: linear-gradient(90deg, #d4b45a, #f0dfa0, #d4b45a); color: #111; font-weight: 800; font-size: .72rem; padding: 5px 14px; border-radius: 999px; letter-spacing: .3px; }
.pkg-name { font-size: 1.25rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 10px; }
.pkg-name i { color: #d4b45a; }
.pkg-descr { color: rgba(255,255,255,.62); font-size: .9rem; line-height: 1.7; }
.pkg-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.pkg-price strong { font-size: 1.9rem; color: #fff; font-weight: 900; }
.pkg-price .cur { color: rgba(255,255,255,.55); font-size: .85rem; }
.pkg-price del { color: rgba(255,255,255,.35); font-size: 1rem; }
.pkg-feats { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.pkg-feats li { color: rgba(255,255,255,.75); font-size: .88rem; display: flex; gap: 9px; align-items: flex-start; }
.pkg-feats li i { color: #d4b45a; margin-top: 3px; font-size: .75rem; }
.pkg-cta { margin-top: auto; padding-top: 14px; }
.pkg-cta .btn { width: 100%; justify-content: center; }

.addon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; max-width: 1100px; margin: 0 auto; }
.addon-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 20px 18px; display: flex; flex-direction: column; gap: 8px; transition: border-color .25s, transform .25s; }
.addon-card:hover { border-color: rgba(255,255,255,.28); transform: translateY(-3px); }
.addon-card .addon-icon { width: 42px; height: 42px; border-radius: 11px; background: rgba(212,180,90,.12); border: 1px solid rgba(212,180,90,.3); display: grid; place-items: center; color: #d4b45a; font-size: 1.05rem; }
.addon-card h4 { color: #fff; font-size: 1rem; font-weight: 700; margin: 4px 0 0; }
.addon-card p { color: rgba(255,255,255,.58); font-size: .82rem; line-height: 1.6; margin: 0; }
.addon-price { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; gap: 8px; }
.addon-price strong { color: #d4b45a; font-size: 1.15rem; font-weight: 800; }
.addon-price del { color: rgba(255,255,255,.3); font-size: .82rem; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto; }
.design-box { display: block; cursor: pointer; position: relative; }
.design-check { position: absolute; opacity: 0; pointer-events: none; }
.design-box-inner { position: relative; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px 16px; display: flex; flex-direction: column; gap: 7px; min-height: 130px; transition: border-color .2s, background .2s, transform .2s; }
.design-box:hover .design-box-inner { border-color: rgba(255,255,255,.3); }
.design-check:checked + .design-box-inner { border-color: #d4b45a; background: rgba(212,180,90,.08); box-shadow: 0 0 0 1px rgba(212,180,90,.4); }
.design-check:checked + .design-box-inner::after { content: '\2713'; position: absolute; top: 10px; inset-inline-end: 12px; width: 22px; height: 22px; border-radius: 50%; background: #d4b45a; color: #111; font-weight: 900; font-size: .8rem; display: grid; place-items: center; }
.design-box-inner h4 { color: #fff; font-size: .95rem; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.design-box-inner h4 i { color: #d4b45a; font-size: .85rem; }
.design-box-inner p { color: rgba(255,255,255,.55); font-size: .78rem; line-height: 1.6; margin: 0; }
.design-box-price { margin-top: auto; display: flex; align-items: baseline; gap: 7px; }
.design-box-price strong { color: #d4b45a; font-size: 1.05rem; font-weight: 800; }
.design-box-price del { color: rgba(255,255,255,.3); font-size: .78rem; }
.design-total { position: sticky; bottom: 14px; z-index: 30; max-width: 640px; margin: 26px auto 0; background: rgba(15,15,15,.92); backdrop-filter: blur(14px); border: 1px solid rgba(212,180,90,.45); border-radius: 999px; padding: 12px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; box-shadow: 0 10px 35px rgba(0,0,0,.6); }
.design-total span { color: rgba(255,255,255,.85); font-size: .92rem; }
.design-total strong { color: #d4b45a; font-size: 1.2rem; }
.design-total .btn { padding: 9px 20px; font-size: .85rem; }

/* ============ v5: Admin panel ============ */
.admin-gate { min-height: 100vh; display: grid; place-items: center; padding: 90px 18px 40px; }
.admin-gate-card { width: 100%; max-width: 400px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; padding: 34px 28px; text-align: center; }
.admin-gate-card .admin-lock { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%; background: rgba(212,180,90,.12); border: 1px solid rgba(212,180,90,.35); display: grid; place-items: center; color: #d4b45a; font-size: 1.4rem; }
.admin-gate-card h1 { color: #fff; font-size: 1.35rem; margin: 0 0 6px; }
.admin-gate-card p { color: rgba(255,255,255,.55); font-size: .85rem; margin: 0 0 20px; }
.admin-gate-card form { display: flex; flex-direction: column; gap: 12px; }
.admin-gate-card input { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; padding: 12px 14px; font-size: .95rem; font-family: inherit; outline: none; text-align: center; }
.admin-gate-card input:focus { border-color: rgba(212,180,90,.6); }

.admin-panel { max-width: 1150px; margin: 0 auto; padding: 105px 18px 60px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head h1 { color: #fff; font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 12px; }
.admin-head h1 i { color: #d4b45a; }
.admin-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-tab { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.7); padding: 9px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.admin-tab:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.admin-tab.active { background: #fff; color: #111; border-color: #fff; }

.admin-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 26px 22px; margin-bottom: 20px; }
.admin-card h2 { color: #fff; font-size: 1.1rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.admin-card h2 i { color: #d4b45a; font-size: .95rem; }
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-grid .admin-wide { grid-column: 1 / -1; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 600; }
.admin-form input, .admin-form select, .admin-form textarea { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; padding: 11px 13px; font-size: .9rem; font-family: inherit; outline: none; transition: border-color .2s; width: 100%; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { border-color: rgba(212,180,90,.6); }
.admin-form textarea { resize: vertical; min-height: 70px; }
.admin-form select option { background: #111; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-msg { font-size: .85rem; min-height: 1.2em; }
.admin-msg.ok { color: #7ddb8a; }
.admin-msg.err { color: #ff8080; }

.admin-list { display: flex; flex-direction: column; gap: 10px; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; padding: 13px 16px; flex-wrap: wrap; }
.admin-row-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.admin-row-body strong { color: #fff; font-size: .95rem; }
.admin-row-body small { color: rgba(255,255,255,.5); font-size: .76rem; }
.admin-row-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-tag { background: rgba(212,180,90,.12); border: 1px solid rgba(212,180,90,.3); color: #d4b45a; font-size: .68rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.admin-row-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 14px; font-size: .78rem; border-radius: 9px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-family: inherit; transition: all .2s; }
.btn-sm:hover { background: rgba(255,255,255,.15); }
.btn-sm.danger { border-color: rgba(255,100,100,.4); color: #ff9a9a; }
.btn-sm.danger:hover { background: rgba(255,80,80,.15); }
.admin-empty { color: rgba(255,255,255,.4); text-align: center; padding: 26px 10px; font-size: .88rem; }
.admin-hint { color: rgba(255,255,255,.45); font-size: .78rem; line-height: 1.7; margin: 10px 0 0; }
.admin-date { color: rgba(255,255,255,.4); font-size: .74rem; }
.fb-status { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255,255,255,.55); padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); }
.fb-status::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.3); }
.fb-status.on { color: #7ddb8a; border-color: rgba(125,219,138,.4); }
.fb-status.on::before { background: #7ddb8a; box-shadow: 0 0 8px rgba(125,219,138,.7); }

@media (max-width: 700px) {
  .catalog-section { padding: 46px 14px; }
  .pkg-grid, .addon-grid { grid-template-columns: 1fr; }
  .design-grid { grid-template-columns: 1fr 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 92px 14px 44px; }
  .design-total { flex-direction: column; border-radius: 18px; text-align: center; }
  .pkg-price strong { font-size: 1.6rem; }
}

/* ============ v6: Profile page ============ */
.profile-main { min-height: 100vh; }
.profile-section { padding: 130px 18px 70px; display: grid; place-items: center; }
.profile-card { width: 100%; max-width: 460px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; padding: 38px 30px; text-align: center; }
.profile-avatar-wrap { position: relative; width: 118px; height: 118px; margin: 0 auto 18px; }
.profile-avatar { width: 118px; height: 118px; border-radius: 50%; overflow: hidden; background: rgba(212,180,90,.1); border: 2px solid rgba(212,180,90,.45); display: grid; place-items: center; color: #d4b45a; font-size: 2.4rem; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-letter { font-size: 2.6rem; font-weight: 900; color: #d4b45a; }
.avatar-edit-btn { position: absolute; bottom: 2px; inset-inline-end: 2px; width: 36px; height: 36px; border-radius: 50%; background: #d4b45a; border: 2px solid #111; color: #111; font-size: .85rem; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.avatar-edit-btn:hover { transform: scale(1.12); }
.profile-name { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.profile-contact { color: rgba(255,255,255,.6); font-size: .88rem; margin: 3px 0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.profile-contact i { color: #d4b45a; font-size: .8rem; }
.profile-form { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; text-align: right; }
.profile-form label { display: flex; flex-direction: column; gap: 6px; color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 600; }
.profile-form input { background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.15); border-radius: 10px; color: #fff; padding: 12px 14px; font-size: .95rem; font-family: inherit; outline: none; transition: border-color .2s; }
.profile-form input:focus { border-color: rgba(212,180,90,.6); }
.profile-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.profile-admin-btn { border-color: rgba(212,180,90,.45) !important; color: #d4b45a !important; }
.profile-admin-btn:hover { background: rgba(212,180,90,.12) !important; }
.danger-btn { border-color: rgba(255,100,100,.35) !important; color: #ff9a9a !important; }
.danger-btn:hover { background: rgba(255,80,80,.12) !important; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,180,90,.5); vertical-align: middle; }
.nav-user { display: inline-flex; align-items: center; gap: 7px; }

/* ============ v6: Email autocomplete ============ */
.ffield { position: relative; }
.email-suggest { position: absolute; top: calc(100% + 4px); inset-inline: 0; z-index: 40; background: rgba(18,18,18,.97); backdrop-filter: blur(12px); border: 1px solid rgba(212,180,90,.35); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 35px rgba(0,0,0,.6); }
.email-opt { display: block; width: 100%; text-align: left; background: none; border: none; color: rgba(255,255,255,.8); padding: 10px 14px; font-size: .88rem; cursor: pointer; font-family: inherit; transition: background .15s; }
.email-opt:hover { background: rgba(212,180,90,.14); color: #fff; }
.email-opt + .email-opt { border-top: 1px solid rgba(255,255,255,.06); }

/* ============ v6: Nicer animations ============ */
.reveal { opacity: 0; transform: translateY(30px) scale(.98); transition: opacity .75s cubic-bezier(.22,.9,.3,1), transform .75s cubic-bezier(.22,.9,.3,1); will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.service-card, .gate-card, .contact-card, .why-item, .pkg-card, .addon-card { transition-property: opacity, transform, border-color, box-shadow; }
.gate-card img { transition: transform .6s cubic-bezier(.22,.9,.3,1); }
.gate-card:hover img { transform: scale(1.06); }
.chip { transition: all .25s cubic-bezier(.22,.9,.3,1); }
.chip:hover { transform: translateY(-2px); }
.btn { transition: all .25s cubic-bezier(.22,.9,.3,1); }
.btn:active { transform: scale(.96); }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 700px) {
  .profile-section { padding: 108px 14px 50px; }
  .profile-card { padding: 30px 20px; }
}

/* ============ v7: Offers + platform base price ============ */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; }
.offer-card { position: relative; background: linear-gradient(160deg, rgba(212,180,90,.10), rgba(255,255,255,.02)); border: 1px solid rgba(212,180,90,.5); border-radius: 18px; padding: 28px 22px 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.offer-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(212,180,90,.14), transparent 55%); pointer-events: none; }
.offer-card:hover { transform: translateY(-5px); box-shadow: 0 16px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(212,180,90,.35); }
.offer-card h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.offer-pct { position: absolute; top: 14px; inset-inline-end: -34px; transform: rotate(-38deg); background: linear-gradient(90deg, #ff5f4d, #ff8a3d); color: #fff; font-weight: 900; font-size: .72rem; padding: 5px 40px; letter-spacing: .5px; box-shadow: 0 4px 14px rgba(255,95,77,.4); }
.offer-card .pkg-badge { position: static; align-self: flex-start; margin-bottom: -4px; }

.design-base { max-width: 760px; margin: 0 auto 22px; display: flex; align-items: center; gap: 14px; background: linear-gradient(160deg, rgba(212,180,90,.12), rgba(255,255,255,.02)); border: 1px solid rgba(212,180,90,.45); border-radius: 16px; padding: 16px 20px; flex-wrap: wrap; }
.design-base > i { width: 46px; height: 46px; border-radius: 12px; background: rgba(212,180,90,.15); border: 1px solid rgba(212,180,90,.4); display: grid; place-items: center; color: #d4b45a; font-size: 1.15rem; flex-shrink: 0; }
.design-base-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 160px; }
.design-base-body strong { color: #fff; font-size: .98rem; }
.design-base-body span { color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.6; }
.design-base-price { color: #d4b45a; font-size: .95rem; white-space: nowrap; }
.design-base-price strong { font-size: 1.25rem; font-weight: 900; }

@media (max-width: 700px) {
  .offer-grid { grid-template-columns: 1fr; }
  .design-base { flex-direction: column; text-align: center; }
  .design-base-body { align-items: center; }
}

/* ================= v9: Admin sidebar shell ================= */
.admin-shell { display: flex; gap: 0; min-height: calc(100vh - 64px); padding: 0; max-width: none; }
.admin-side {
  width: 250px; flex-shrink: 0; background: #070707;
  border-left: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column; padding: 18px 12px;
  position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.admin-side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; }
.admin-side-brand img { width: 42px; height: 42px; border-radius: 50%; }
.admin-side-brand strong { display: block; color: #e8c66a; font-size: 1.05rem; }
.admin-side-brand span { color: #9a9a9a; font-size: .78rem; }
.admin-menu { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.amenu {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: 0; color: #cfcfcf; font: inherit; font-size: .92rem;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: right;
  transition: background .2s, color .2s; text-decoration: none;
}
.amenu i { width: 20px; text-align: center; color: #8f8f8f; transition: color .2s; }
.amenu:hover { background: rgba(255,255,255,.05); color: #fff; }
.amenu.chip-active { background: linear-gradient(135deg, #e8c66a, #c9a44a); color: #111; font-weight: 700; }
.amenu.chip-active i { color: #111; }
.abadge {
  margin-inline-start: auto; background: #e33; color: #fff; font-size: .7rem;
  min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 6px; font-style: normal;
}
.admin-side-foot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.amenu-danger { color: #ff8a8a; }
.amenu-danger:hover { background: rgba(255,60,60,.12); color: #ffb3b3; }
.admin-content { flex: 1; padding: 24px; min-width: 0; }
.admin-side-toggle {
  display: none; position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(232,198,106,.4);
  background: #0c0c0c; color: #e8c66a; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}

/* Overview stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.stat-box {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.stat-box i { font-size: 1.4rem; color: #e8c66a; }
.stat-box strong { font-size: 1.6rem; color: #fff; }
.stat-box span { color: #9a9a9a; font-size: .8rem; }
.stat-hot strong { color: #ffb04d; }

/* Orders / requests rows */
.row-new { border-inline-start: 3px solid #e8c66a; background: rgba(232,198,106,.05); }
.order-status {
  background: #111; color: #ddd; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .8rem;
}

/* Chat split view */
.chat-split { display: flex; gap: 14px; min-height: 380px; }
.chat-users { width: 230px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; max-height: 480px; }
.chat-user {
  display: flex; align-items: center; gap: 10px; background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px;
  color: #ddd; font: inherit; cursor: pointer; text-align: right; transition: border-color .2s;
}
.chat-user:hover, .chat-user.active { border-color: #e8c66a; }
.chat-user i { font-size: 1.4rem; color: #8f8f8f; }
.chat-user span { flex: 1; min-width: 0; }
.chat-user strong { display: block; font-size: .88rem; }
.chat-user small { color: #8a8a8a; font-size: .72rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pane { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-msgs {
  flex: 1; background: #0a0a0a; border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px; overflow-y: auto; max-height: 420px;
  display: flex; flex-direction: column; gap: 8px; min-height: 260px;
}
.chat-bubble {
  max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.6;
  position: relative; word-break: break-word;
}
.from-user { background: #161616; color: #eee; align-self: flex-start; border-bottom-right-radius: 4px; }
.from-admin { background: linear-gradient(135deg, #e8c66a, #c9a44a); color: #111; align-self: flex-end; border-bottom-left-radius: 4px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input input {
  flex: 1; background: #111; border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
  padding: 12px 14px; color: #fff; font: inherit;
}
.chat-input input:focus { outline: none; border-color: #e8c66a; }
.ai-msgs { max-height: 380px; }
.ai-model-tag { display: block; margin-top: 6px; opacity: .55; font-size: .68rem; direction: ltr; text-align: left; }
.ai-model-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ai-model-bar label { display: flex; align-items: center; gap: 8px; color: #bbb; font-size: .85rem; }
.ai-model-bar select {
  background: #111; color: #ddd; border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; padding: 8px 10px; font: inherit; font-size: .8rem;
}

/* Section toggles */
.sections-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 14px 0; }
.sec-toggle {
  display: flex; align-items: center; gap: 12px; background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 14px; cursor: pointer;
}
.sec-toggle input { width: 20px; height: 20px; accent-color: #e8c66a; }
.sec-toggle span { color: #ddd; display: flex; align-items: center; gap: 8px; }

/* Mobile */
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-side {
    position: fixed; inset-inline-start: 0; top: 0; height: 100vh; z-index: 70;
    transform: translateX(100%); transition: transform .3s; width: 270px;
  }
  [dir="rtl"] .admin-side { transform: translateX(100%); }
  .admin-side.open { transform: translateX(0); }
  .admin-side-toggle { display: block; }
  .admin-content { padding: 16px 12px; }
  .chat-split { flex-direction: column; }
  .chat-users { width: 100%; flex-direction: row; overflow-x: auto; max-height: none; }
  .chat-user { min-width: 170px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ مساعد XIO الذكي (شات الواجهة) ============ */
.nav-chat-btn { display: inline-flex; align-items: center; gap: 6px; border-color: rgba(212,180,90,.45) !important; color: #d4b45a !important; }
.nav-chat-btn i { font-size: 1rem; }
.xa-panel { position: fixed; top: 72px; left: 14px; z-index: 1200; width: min(370px, calc(100vw - 28px)); height: min(540px, calc(100vh - 96px)); display: flex; flex-direction: column; background: linear-gradient(165deg, #0c0c0e, #060607); border: 1px solid rgba(212,180,90,.3); border-radius: 18px; box-shadow: 0 18px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; animation: xaIn .25s ease; }
@keyframes xaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.xa-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: rgba(212,180,90,.08); border-bottom: 1px solid rgba(212,180,90,.18); }
.xa-head-info { display: flex; align-items: center; gap: 10px; }
.xa-head-info img { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(212,180,90,.4); }
.xa-head-info strong { color: #fff; display: block; font-size: .95rem; }
.xa-head-info small { color: rgba(255,255,255,.5); font-size: .72rem; }
.xa-close { background: none; border: none; color: rgba(255,255,255,.55); font-size: 1.05rem; cursor: pointer; padding: 6px; }
.xa-close:hover { color: #fff; }
.xa-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.xa-bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .88rem; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.xa-bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); color: #eee; border-bottom-right-radius: 4px; }
.xa-user { align-self: flex-end; background: linear-gradient(135deg, rgba(212,180,90,.22), rgba(212,180,90,.1)); border: 1px solid rgba(212,180,90,.3); color: #f5e9c8; border-bottom-left-radius: 4px; }
.xa-typing { opacity: .6; font-style: italic; animation: xaPulse 1.1s infinite; }
@keyframes xaPulse { 50% { opacity: .3; } }
.xa-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; }
.xa-chip { background: rgba(212,180,90,.1); border: 1px solid rgba(212,180,90,.3); color: #d4b45a; border-radius: 999px; padding: 7px 12px; font-size: .78rem; font-family: inherit; cursor: pointer; transition: .2s; }
.xa-chip:hover { background: rgba(212,180,90,.2); }
.xa-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.35); }
.xa-form input { flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; color: #fff; padding: 10px 13px; font-size: .88rem; font-family: inherit; outline: none; }
.xa-form input:focus { border-color: rgba(212,180,90,.5); }
.xa-send { width: 42px; border: none; border-radius: 11px; background: linear-gradient(135deg, #d4b45a, #a8853a); color: #111; font-size: .95rem; cursor: pointer; transition: .2s; }
.xa-send:hover { filter: brightness(1.12); }
@media (max-width: 640px) {
  .nav-chat-label { display: none; }
  .nav-chat-btn { padding: 8px 11px !important; }
  .xa-panel { top: auto; bottom: 12px; left: 10px; width: calc(100vw - 20px); height: min(560px, calc(100vh - 90px)); }
}

/* ===== v11: نظام المشرفين بالحسابات + التواجد ===== */
.nav-admin-btn { background: linear-gradient(135deg, #d4af37, #f5d76e, #b8860b); color: #0a0a0a !important; font-weight: 800; border: 1px solid #d4af37; box-shadow: 0 0 14px rgba(212,175,55,.35); }
.nav-admin-btn:hover { box-shadow: 0 0 22px rgba(212,175,55,.6); transform: translateY(-1px); }
.online-dot { color: #2ecc71; font-weight: 700; font-size: .8rem; text-shadow: 0 0 8px rgba(46,204,113,.5); }
.abadge-green { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: #2ecc71; color: #06130a; font-size: .72rem; font-weight: 800; margin-inline-start: 6px; box-shadow: 0 0 8px rgba(46,204,113,.5); }
.stat-online .stat-num { color: #2ecc71 !important; text-shadow: 0 0 12px rgba(46,204,113,.4); }
.admin-inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-inline-form input { flex: 1; min-width: 200px; background: #111; border: 1px solid #333; border-radius: 10px; padding: 10px 12px; color: #eee; }
.admin-inline-form input:focus { border-color: #d4af37; outline: none; }
.online-note { color: #888; font-size: .78rem; margin-top: 8px; }
.online-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid rgba(212,175,55,.08); }
.online-row .o-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 8px rgba(46,204,113,.7); flex-shrink: 0; }
.admin-row-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 6px; border-bottom: 1px solid rgba(212,175,55,.08); }
.admin-row-item .ar-del { background: rgba(231,76,60,.12); color: #e74c3c; border: 1px solid rgba(231,76,60,.35); border-radius: 8px; padding: 5px 12px; cursor: pointer; font-size: .8rem; }
.admin-row-item .ar-del:hover { background: rgba(231,76,60,.25); }
.owner-crown { color: #d4af37; margin-inline-start: 6px; }

/* ===== v12: مربعات "صمّم موقعك" بزر أضِف + إصلاح كلاسات العرض ===== */
.design-name { color: #fff; font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.design-name i { color: #d4b45a; font-size: .9rem; }
.design-descr { color: rgba(255,255,255,.55); font-size: .78rem; line-height: 1.6; }
.design-price { margin-top: auto; color: #d4b45a; font-size: 1rem; font-weight: 800; }
.design-price del { color: rgba(255,255,255,.3); font-size: .78rem; font-weight: 400; }
.design-add-btn { margin-top: 10px; display: block; text-align: center; border-radius: 10px; padding: 9px 12px; font-size: .85rem; font-weight: 800; border: 1px solid rgba(212,180,90,.5); color: #d4b45a; background: rgba(212,180,90,.07); transition: all .18s; }
.design-add-btn .da-added { display: none; }
.design-check:checked + .design-box-inner .design-add-btn { background: #d4b45a; color: #111; border-color: #d4b45a; box-shadow: 0 0 14px rgba(212,180,90,.45); }
.design-check:checked + .design-box-inner .design-add-btn .da-add { display: none; }
.design-check:checked + .design-box-inner .design-add-btn .da-added { display: inline; }
.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
@media (max-width: 640px) { .design-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; } }

/* ================================================================
   v13: ستايلات الميزات الجديدة — مبنية على توكنز نظام التصميم
   (--gold / --gold-light / --silver / --black) — مهارة ui-design-system
   ================================================================ */

/* ---------- شريط الإعلان ---------- */
.announce-bar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 44px 9px 14px; text-align: center;
  background: linear-gradient(120deg, #1a1508, #2a2210, #1a1508);
  border-bottom: 1px solid rgba(212,180,90,.45);
  color: var(--gold-light); font-size: .92rem; font-weight: 700;
}
.announce-bar i { color: var(--gold); }
.announce-close {
  position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--silver); cursor: pointer; font-size: 1rem;
  padding: 4px 8px; border-radius: 8px;
}
.announce-close:hover { color: #fff; background: rgba(255,255,255,.08); }
body.has-announce .navbar { top: 38px; }
body.has-announce { padding-top: 38px; }

/* ---------- زر عجلة الحظ الذهبي ---------- */
.btn-gold-glow {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #111; border: 0; font-weight: 800;
  box-shadow: 0 0 18px rgba(201,162,75,.45);
  animation: goldPulse 2.2s ease-in-out infinite;
}
.btn-gold-glow:hover { filter: brightness(1.08); }
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(201,162,75,.35); }
  50% { box-shadow: 0 0 26px rgba(232,207,143,.6); }
}

/* ---------- مودالات عامة (عجلة / بطاقة عميل / اختيار الطلب) ---------- */
.wheel-overlay, .ucard-overlay {
  position: fixed; inset: 0; z-index: 1300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.78); backdrop-filter: blur(6px);
  padding: 16px; animation: xaIn .22s ease;
}
.wheel-modal, .ucard-modal {
  position: relative; width: min(420px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: linear-gradient(165deg, #0e0d0a, #060606);
  border: 1px solid rgba(212,180,90,.35); border-radius: 20px;
  padding: 26px 22px; text-align: center;
  box-shadow: 0 24px 70px rgba(0,0,0,.8), 0 0 40px rgba(201,162,75,.08);
}
.ucard-close {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.06); border: 0; color: var(--silver);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .95rem;
}
.ucard-close:hover { color: #fff; background: rgba(255,255,255,.14); }
.wheel-title { color: var(--gold-light); font-size: 1.25rem; margin-bottom: 4px; }
.wheel-title i { margin-inline-end: 6px; }
.wheel-sub { color: var(--silver); font-size: .9rem; margin-bottom: 14px; }
.wheel-canvas-wrap { position: relative; width: min(320px, 100%); margin: 0 auto 16px; }
.wheel-canvas-wrap canvas { width: 100%; height: auto; display: block; }
.wheel-pointer {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  color: var(--gold); font-size: 2rem; z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.8));
}
.wheel-result { min-height: 22px; margin-top: 12px; font-weight: 700; font-size: .95rem; color: var(--silver); }
.wheel-result.win { color: var(--gold-light); }
.wheel-result.err { color: #ff9b9b; }

/* ---------- اختيار طريقة الطلب ---------- */
.oc-modal { text-align: center; }
.oc-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.oc-btns .btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 14px 16px; line-height: 1.5;
}
.oc-btns .btn small { font-weight: 400; font-size: .78rem; opacity: .75; }

/* ---------- شات "كلّم التيم" ---------- */
.team-panel { z-index: 1210; }

/* ---------- بطاقة معلومات العميل (إشراف) ---------- */
.ucard-modal { text-align: right; }
.ucard-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; padding-top: 6px; }
.ucard-avatar, .ucard-avatar-ph {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(212,180,90,.5); object-fit: cover;
}
.ucard-avatar-ph {
  display: inline-flex; align-items: center; justify-content: center;
  background: #171512; color: var(--gold); font-size: 1.4rem; font-weight: 800;
}
.ucard-info strong { display: block; color: #fff; font-size: 1.05rem; }
.ucard-info span { color: var(--silver); font-size: .82rem; direction: ltr; display: inline-block; }
.chan-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; padding: 2px 9px; border-radius: 20px; margin-inline-end: 6px;
  background: rgba(255,255,255,.06); color: #8a8a8a; border: 1px solid rgba(255,255,255,.08);
}
.chan-tag.on { background: rgba(201,162,75,.14); color: var(--gold-light); border-color: rgba(201,162,75,.4); }
.ban-tag {
  display: inline-block; font-size: .72rem; padding: 2px 9px; border-radius: 20px;
  background: rgba(255,60,60,.15); color: #ff9b9b; border: 1px solid rgba(255,60,60,.4);
}
.ucard-sec { margin-top: 14px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 10px; }
.ucard-sec h4 { color: var(--gold-light); font-size: .88rem; margin-bottom: 8px; }
.ucard-order {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.07); border-radius: 12px;
  padding: 9px 12px; margin-bottom: 7px; font-size: .84rem; color: var(--silver);
}
.ucard-order b { color: #fff; }
.uname-link { color: var(--gold-light); cursor: pointer; text-decoration: underline dotted; background: none; border: 0; font: inherit; padding: 0; }
.uname-link:hover { color: #fff; }
.row-banned { opacity: .5; }
.row-banned td:first-child::after { content: ' 🚫'; }

/* ---------- الرسوم البيانية (نظرة عامة) ---------- */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.chart-wrap {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.08); border-radius: 16px;
  padding: 14px; height: 240px; position: relative;
}
.chart-wrap h4 { color: var(--gold-light); font-size: .85rem; margin-bottom: 8px; }
.chart-wrap canvas { max-height: 185px; }

/* ---------- الإشعارات ---------- */
.notif-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 10px 12px;
}
.notif-item.unread { border-color: rgba(201,162,75,.45); background: #12100a; }
.notif-item strong { display: block; color: #fff; font-size: .86rem; }
.notif-item p { color: var(--silver); font-size: .78rem; margin: 2px 0 0; }
.notif-item time { color: #777; font-size: .7rem; margin-inline-start: auto; white-space: nowrap; }

/* ---------- شبكة المميزات القابلة للتعديل ---------- */
.fx-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fx-box {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.09); border-radius: 16px;
  padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.fx-box:hover { border-color: rgba(201,162,75,.35); }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-type { font-size: .7rem; color: var(--gold-light); background: rgba(201,162,75,.12); padding: 2px 9px; border-radius: 20px; }
.fx-del { background: none; border: 0; color: #ff8a8a; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.fx-del:hover { background: rgba(255,60,60,.12); }
.fx-prices { display: flex; gap: 8px; }
.fx-prices > * { flex: 1; }
.fx-disc-preview { font-size: .78rem; color: var(--silver); }
.fx-disc-preview del { color: #888; }
.fx-disc-preview b { color: var(--gold-light); }
.fx-msg { min-height: 18px; font-size: .78rem; }
.fx-save { align-self: flex-start; }

/* ---------- عجلة الحظ (إشراف) ---------- */
.wheel-top-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.switch-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--silver); font-size: .9rem; }
.switch { position: relative; width: 44px; height: 24px; -webkit-appearance: none; appearance: none; background: #222; border-radius: 20px; cursor: pointer; transition: background .25s; border: 1px solid rgba(255,255,255,.12); }
.switch::after { content: ''; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: #888; transition: transform .25s, background .25s; }
.switch:checked { background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.switch:checked::after { transform: translateX(-20px); background: #111; }
[dir="ltr"] .switch:checked::after { transform: translateX(20px); }
.wheel-rows { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.wheel-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto auto; gap: 8px; align-items: center;
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 10px;
}
.wr-weight-label { font-size: .7rem; color: #888; }
.wins-label { color: var(--gold-light); font-size: .85rem; }

/* ---------- مفاتيح Gemini + الموديلات ---------- */
.gk-add-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.gk-add-bar input { flex: 1; min-width: 200px; }
.models-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.model-chip {
  font-size: .78rem; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.05); color: var(--silver); border: 1px solid rgba(255,255,255,.1);
}
.model-chip.chip-default { background: rgba(201,162,75,.16); color: var(--gold-light); border-color: rgba(201,162,75,.5); font-weight: 700; }

/* ---------- المستشار الذكي (إشراف) ---------- */
.ai-card-big { display: flex; flex-direction: column; gap: 10px; }
.ai-msgs-sm { max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px; }
.ai-model-tag { font-size: .7rem; color: #888; }
.ai-exec-tag {
  display: inline-block; font-size: .72rem; padding: 3px 10px; border-radius: 20px;
  background: rgba(80,200,120,.14); color: #7fdca4; border: 1px solid rgba(80,200,120,.4); margin-top: 4px;
}
.msg-who { display: block; font-size: .68rem; color: var(--gold); margin-bottom: 2px; }
.admin-hint-inline { color: #999; font-size: .8rem; background: #0d0d0d; border: 1px dashed rgba(255,255,255,.15); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }

/* ---------- الحقول الداكنة (إصلاح الحقول البيضاء) ---------- */
.dark-input, .dark-select, .num-sm,
.admin-content input[type="text"], .admin-content input[type="number"],
.admin-content input[type="email"], .admin-content input[type="password"],
.admin-content input[type="url"], .admin-content input[type="datetime-local"],
.admin-content select, .admin-content textarea {
  background: #101010; color: #eee;
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px;
  padding: 9px 12px; font: inherit; font-size: .88rem;
}
.admin-content input:focus, .admin-content select:focus, .admin-content textarea:focus,
.dark-input:focus, .dark-select:focus { outline: none; border-color: rgba(201,162,75,.6); }
.admin-content select option { background: #101010; color: #eee; }
.num-sm { width: 84px; }
.btn-sm { padding: 6px 14px; font-size: .8rem; border-radius: 10px; }

/* ---------- نماذج الإعلان والخصم ---------- */
.ann-bar-form, .gd-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ann-bar-form input[type="text"] { flex: 1; min-width: 220px; }
.gd-status { margin-top: 10px; font-weight: 700; color: var(--gold-light); font-size: .92rem; min-height: 20px; }

/* ---------- فحص Firebase الحي ---------- */
.fb-live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.fb-live-box {
  background: #0d0d0d; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  padding: 12px; text-align: center; transition: border-color .3s;
}
.fb-live-box .fb-live-state { display: block; font-weight: 800; font-size: .95rem; margin: 4px 0; }
.fb-live-box .fb-live-ms { color: #888; font-size: .72rem; }
.fb-live-box.live-ok { border-color: rgba(80,200,120,.5); }
.fb-live-box.live-ok .fb-live-state { color: #7fdca4; }
.fb-live-box.live-bad { border-color: rgba(255,80,80,.5); }
.fb-live-box.live-bad .fb-live-state { color: #ff9b9b; }
.fb-info-grid { display: flex; flex-direction: column; gap: 6px; }
.fb-info-row { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--silver); background: #0d0d0d; border-radius: 10px; padding: 8px 12px; }
.fb-info-row b { color: #fff; direction: ltr; }

/* ---------- إصلاح تداخل النافبار مع محتوى الإشراف ---------- */
.admin-shell { padding-top: 64px; min-height: 100vh; }
.admin-side { top: 64px; }
body.has-announce .admin-shell { padding-top: 102px; }

/* ---------- تصغير قسم "ماذا نصنع لك" ---------- */
.services-compact { padding-top: 44px; padding-bottom: 44px; }
.services-compact .cards-grid { margin-top: 26px; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.services-compact .cards-grid > * { padding: 18px 14px; }
.services-compact .section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.services-compact .section-desc { font-size: .92rem; }

/* ---------- شارة الخصم الشامل على الكروت ---------- */
.gd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #111;
  font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 20px;
  box-shadow: 0 0 14px rgba(201,162,75,.4);
}
.gd-countdown { font-size: .72rem; color: var(--gold-light); font-weight: 700; }
.price-was { color: #888; text-decoration: line-through; font-size: .82rem; margin-inline-end: 6px; }

/* ---------- موبايل ---------- */
@media (max-width: 720px) {
  .announce-bar { font-size: .78rem; padding: 8px 38px 8px 10px; }
  .wheel-modal, .ucard-modal { padding: 20px 14px; }
  .charts-grid { grid-template-columns: 1fr; }
  .wheel-row { grid-template-columns: 1fr 1fr; }
  .wheel-row .wr-label { grid-column: 1 / -1; }
  .fx-grid { grid-template-columns: 1fr; }
  .admin-shell { padding-top: 58px; }
  body.has-announce .admin-shell { padding-top: 96px; }
  .oc-btns .btn { padding: 12px; }
  .nav-wheel-btn .nav-chat-label { display: none; }
}

/* ================== v14 ================== */
/* --- P1: شرائح قنوات التواصل في التسجيل (بدل الشيك بوكس العادي) --- */
.contact-channels{border:1px solid rgba(201,162,75,.25);border-radius:14px;padding:14px 14px 16px;margin:14px 0;background:rgba(201,162,75,.04)}
.contact-channels legend{padding:0 10px;font-weight:700;color:var(--gold-light);font-size:.95rem}
.contact-channels legend i{margin-left:6px;color:var(--gold)}
.contact-channels legend small{display:block;color:#9a97a3;font-weight:400;font-size:.75rem;margin-top:2px}
.channel-chips{display:flex;gap:12px;flex-wrap:wrap;margin-top:6px}
.channel-chip{cursor:pointer;flex:1;min-width:130px}
.channel-chip input{position:absolute;opacity:0;width:0;height:0;pointer-events:none}
.channel-chip .chip-inner{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:10px 14px;border-radius:12px;border:1.5px solid rgba(255,255,255,.12);background:#151419;color:#c7c9cf;font-size:.92rem;transition:all .22s ease;position:relative}
.channel-chip .chip-inner i.fab{font-size:1.25rem;transition:color .22s}
.channel-chip .chip-check{position:absolute;top:-7px;left:-7px;width:20px;height:20px;border-radius:50%;background:var(--gold);color:#0b0a0d;font-size:.6rem;display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.4);transition:all .22s ease;box-shadow:0 2px 8px rgba(201,162,75,.5)}
.channel-chip:hover .chip-inner{border-color:rgba(201,162,75,.4);transform:translateY(-1px)}
.channel-wa .chip-inner i.fab{color:#4a6b52}
.channel-tg .chip-inner i.fab{color:#3f5a70}
.channel-chip input:checked + .chip-inner{border-color:var(--gold);background:linear-gradient(180deg,rgba(201,162,75,.14),rgba(201,162,75,.05));color:#f2e9d4;box-shadow:0 0 0 1px rgba(201,162,75,.25),0 4px 18px rgba(201,162,75,.15)}
.channel-wa input:checked + .chip-inner i.fab{color:#25d366}
.channel-tg input:checked + .chip-inner i.fab{color:#2aabee}
.channel-chip input:checked + .chip-inner .chip-check{opacity:1;transform:scale(1)}
.channel-chip input:focus-visible + .chip-inner{outline:2px solid var(--gold);outline-offset:2px}

/* --- P3: نموذج كلمة سر الإشراف --- */
.gate-pass-form{margin:18px auto 0;max-width:340px}
.gate-pass-row{display:flex;gap:8px}
.gate-pass-row input{flex:1;min-height:46px;background:#151419;border:1.5px solid rgba(201,162,75,.3);border-radius:12px;color:#f2e9d4;padding:10px 14px;font-size:.95rem;text-align:center;letter-spacing:2px;transition:border-color .2s}
.gate-pass-row input:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,162,75,.15)}
.gate-pass-row button{min-height:46px;padding:0 18px;border-radius:12px;border:none;background:linear-gradient(135deg,var(--gold-light),var(--gold));color:#0b0a0d;font-weight:700;cursor:pointer;font-family:inherit;transition:all .2s}
.gate-pass-row button:hover{transform:translateY(-1px);box-shadow:0 4px 16px rgba(201,162,75,.35)}
#admin-pass-msg{margin-top:10px;font-size:.85rem;color:#c7c9cf;min-height:1.2em}
#admin-pass-msg.err{color:#e0708a}
#admin-pass-msg.ok{color:#7fd8a4}

/* --- P5: قائمة اختيار الميزة المجانية من العجلة --- */
.wheel-choice{margin-top:16px;text-align:center;animation:fadeSlideUp .4s ease}
.wheel-choice-title{color:var(--gold-light);font-weight:700;margin-bottom:12px;font-size:1rem}
.wheel-choice-title i{margin-left:6px;color:var(--gold)}
.wheel-choice-list{display:flex;flex-direction:column;gap:10px;max-width:320px;margin:0 auto}
.wheel-choice-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 16px;border-radius:12px;border:1.5px solid rgba(201,162,75,.35);background:linear-gradient(180deg,#1a191d,#141317);color:#f2e9d4;font-size:.95rem;cursor:pointer;font-family:inherit;transition:all .22s ease;position:relative;overflow:hidden}
.wheel-choice-btn::before{content:'';position:absolute;inset:0;background:linear-gradient(135deg,rgba(232,207,143,.12),transparent 60%);opacity:0;transition:opacity .22s}
.wheel-choice-btn:hover{border-color:var(--gold);transform:translateY(-2px);box-shadow:0 6px 20px rgba(201,162,75,.2)}
.wheel-choice-btn:hover::before{opacity:1}
.wheel-choice-btn:disabled{opacity:.5;cursor:default;transform:none}
.wheel-choice-btn.chosen{border-color:var(--gold);background:linear-gradient(135deg,rgba(201,162,75,.25),rgba(201,162,75,.08));box-shadow:0 0 0 1px rgba(201,162,75,.3)}
@keyframes fadeSlideUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* ================================================================
   v15: إصلاحات + مميزات جديدة
   ================================================================ */

/* P3: البيضاوي الدوّار — بوابة الإشراف كانت بتفضل مرسومة خلف اللوحة
   لأن display:grid بيتغلب على hidden. القاعدة دي بتحسم الموضوع نهائياً */
[hidden] { display: none !important; }

/* P1: إصلاح مفاتيح التشغيل — إخفاء مربع الاختيار الأصلي وتحريك الحبّة */
.switch-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.switch-label .switch { flex-shrink: 0; }
.switch-label input:checked + .switch { background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: rgba(232,207,143,.6); box-shadow: 0 0 12px rgba(201,162,75,.35); }
.switch-label input:checked + .switch::after { transform: translateX(-20px); background: #111; }
[dir="ltr"] .switch-label input:checked + .switch::after { transform: translateX(20px); }
.switch-label:hover .switch { border-color: rgba(232,207,143,.4); }

/* P5: شريط الإعلان الفاخر */
.announce-bar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 42px; padding: 8px 48px;
  background:
    linear-gradient(90deg, rgba(201,162,75,.16), rgba(20,16,6,.97) 25%, rgba(20,16,6,.97) 75%, rgba(201,162,75,.16)),
    #0a0803;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(232,207,143,.85), transparent) 1;
  color: #f3e3b3; font-size: .9rem; font-weight: 700;
  text-shadow: 0 1px 8px rgba(201,162,75,.35);
  overflow: hidden;
}
.announce-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(232,207,143,.14) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: annShine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes annShine { 40%, 100% { transform: translateX(100%); } }
.announce-bar i.fa-bullhorn {
  color: var(--gold-light); font-size: 1rem; flex-shrink: 0;
  animation: annBell 3s ease-in-out infinite;
}
@keyframes annBell { 0%, 88%, 100% { transform: rotate(0); } 90% { transform: rotate(-14deg); } 94% { transform: rotate(12deg); } 97% { transform: rotate(-7deg); } }
#announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 78vw; }
.announce-close { position: absolute; inset-inline-start: 8px; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--silver); cursor: pointer; font-size: .85rem; padding: 4px 9px; border-radius: 8px; transition: all .2s; }
.announce-close:hover { color: #fff; background: rgba(255,255,255,.12); }
body.has-announce .navbar { top: 42px; }
body.has-announce { padding-top: 42px; }
body.has-announce .admin-shell { padding-top: 106px; }

/* P5: أزرار النافبار — منع التمدد الغريب + منع إخفاء المحتوى */
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 68vw; }
.nav-actions::-webkit-scrollbar { display: none; }
.nav-actions .btn { flex-shrink: 0; white-space: nowrap; padding: 8px 14px; font-size: .82rem; }
.btn-gold-glow { animation: goldPulseSoft 2.6s ease-in-out infinite; transform: none !important; }
@keyframes goldPulseSoft {
  0%, 100% { box-shadow: 0 0 10px rgba(201,162,75,.3); }
  50% { box-shadow: 0 0 20px rgba(232,207,143,.5); }
}

/* P2: عدّاد الخصم الشامل الفاخر (أيام/ساعات/دقائق/ثواني) — لوحة الإشراف */
.gd-live { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gd-pct { color: var(--gold-light); font-size: 1.05rem; }
.gd-count { display: inline-flex; gap: 6px; }
.gd-seg { display: inline-flex; flex-direction: column; align-items: center; min-width: 44px; padding: 5px 7px; background: linear-gradient(160deg, #171207, #0c0a04); border: 1px solid rgba(212,180,90,.4); border-radius: 10px; box-shadow: inset 0 1px 0 rgba(232,207,143,.15), 0 3px 10px rgba(0,0,0,.4); }
.gd-seg b { font-family: 'Orbitron', monospace; font-size: 1rem; color: var(--gold-light); line-height: 1.1; }
.gd-seg small { font-size: .58rem; color: #9a8657; }

/* P4/P2: شريط الخصم الخرافي فوق كروت الباقات + العدّاد الفاخر */
.pkg-card.has-gd, .offer-card.has-gd { padding-top: 74px; overflow: hidden; }
.gd-ribbon {
  position: absolute; top: 0; right: 0; left: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 8px 12px;
  background: linear-gradient(90deg, rgba(201,162,75,.28), rgba(35,26,8,.96) 30%, rgba(35,26,8,.96) 70%, rgba(201,162,75,.28));
  border-bottom: 1px solid rgba(232,207,143,.5);
  box-shadow: 0 6px 18px rgba(201,162,75,.18);
}
.gd-ribbon::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,236,180,.16) 50%, transparent 65%); transform: translateX(-100%); animation: annShine 3.8s ease-in-out infinite; pointer-events: none; }
.gd-ribbon-label { color: #ffe9b0; font-weight: 900; font-size: .85rem; text-shadow: 0 0 12px rgba(255,180,60,.5); display: flex; align-items: center; gap: 6px; }
.gd-ribbon-label i { color: #ff8a3d; animation: fireFlicker 1.6s ease-in-out infinite; }
@keyframes fireFlicker { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: .85; } }
.gd-countdown-lux { display: inline-flex; gap: 5px; }
.gd-countdown-lux .cd-seg { display: inline-flex; flex-direction: column; align-items: center; min-width: 36px; padding: 3px 5px; background: rgba(0,0,0,.55); border: 1px solid rgba(212,180,90,.45); border-radius: 8px; }
.gd-countdown-lux .cd-seg b { font-family: 'Orbitron', monospace; font-size: .85rem; color: var(--gold-light); line-height: 1.15; }
.gd-countdown-lux .cd-seg i { font-style: normal; font-size: .52rem; color: #9a8657; }

/* P4: زر اختيار الأيقونة بالشكل */
.icon-pick-row { display: flex; align-items: center; gap: 10px; }
.icon-pick-btn { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #171207, #0b0904); border: 1px solid rgba(212,180,90,.45); color: var(--gold-light); font-size: 1.3rem; cursor: pointer; transition: all .2s; display: grid; place-items: center; }
.icon-pick-btn:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(201,162,75,.35); transform: translateY(-1px); }
.icon-pick-hint { color: #7a6a45; font-size: .68rem; }

/* مودالات v15 العامة (معرض الأيقونات + مميزات الموقع) */
.xmodal-ov { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.xmodal { width: 100%; max-width: 560px; max-height: 82vh; display: flex; flex-direction: column; background: linear-gradient(165deg, #14110a, #0a0906); border: 1px solid rgba(212,180,90,.4); border-radius: 20px; box-shadow: 0 24px 70px rgba(0,0,0,.7), 0 0 40px rgba(201,162,75,.12); animation: fadeSlideUp .25s ease; overflow: hidden; }
.xmodal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgba(212,180,90,.25); }
.xmodal-head h3 { margin: 0; color: var(--gold-light); font-size: 1rem; }
.xmodal-close { background: none; border: 0; color: var(--silver); font-size: 1.1rem; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.xmodal-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.xmodal-body { padding: 14px 18px 18px; overflow-y: auto; }

/* معرض الأيقونات */
.icon-cat { color: #b89b5e; font-size: .78rem; font-weight: 700; margin: 12px 0 8px; }
.icon-cat:first-child { margin-top: 0; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.icon-cell { aspect-ratio: 1; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #cbb173; font-size: 1.15rem; cursor: pointer; transition: all .18s; display: grid; place-items: center; }
.icon-cell:hover { background: rgba(201,162,75,.16); border-color: var(--gold); color: var(--gold-light); transform: scale(1.08); }

/* اختيار مميزات من الموقع */
.feat-add-btn { margin-inline-start: 8px; font-size: .72rem; padding: 4px 10px; }
.feat-pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.feat-pick-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; cursor: pointer; color: #ddd; font-size: .88rem; transition: all .18s; }
.feat-pick-item:hover { border-color: rgba(212,180,90,.5); background: rgba(201,162,75,.08); }
.feat-pick-item input { accent-color: var(--gold); width: 16px; height: 16px; }
.feat-pick-done { width: 100%; }

/* نسبة الخصم في نموذج الكتالوج */
.disc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.disc-preview { color: #8ddb9a; font-size: .72rem; }

/* P3: صفوف العجلة — إصلاح قص زر الحذف + التراص */
.wheel-row { grid-template-columns: 1.3fr 1fr 1.1fr auto minmax(34px, auto); }
.wr-value-wrap { display: flex; align-items: center; gap: 4px; min-width: 0; }
.wr-value-wrap .wr-value { min-width: 0; flex: 1; }
.wr-feat-pick { flex-shrink: 0; padding: 6px 8px; color: var(--gold-light); }
.wheel-row .wr-del { justify-self: end; }
@media (max-width: 860px) {
  .wheel-row { grid-template-columns: 1fr 1fr; }
  .wheel-row .wr-label { grid-column: 1 / -1; }
  .wr-value-wrap { grid-column: 1 / -1; }
}

/* P3: تحسين التباعد العام في لوحة الإشراف */
.admin-card { margin-bottom: 18px; }
.admin-form-grid label { min-width: 0; }
.admin-content { min-width: 0; }

/* مربع الفكرة الفاخر — قسم قول فكرتك */
.idea-box {
  max-width: 640px; margin: 26px auto 30px; text-align: right;
  background: linear-gradient(165deg, rgba(22,18,9,.92), rgba(8,7,4,.94));
  border: 1px solid rgba(212,180,90,.4); border-radius: 22px; padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55), inset 0 1px 0 rgba(232,207,143,.14);
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
}
.idea-box::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 40% at 85% 0%, rgba(201,162,75,.12), transparent 60%); pointer-events: none; }
.idea-box-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.idea-bulb { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 1.2rem; color: #111; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 0 20px rgba(201,162,75,.45); animation: goldPulseSoft 2.6s ease-in-out infinite; }
.idea-box-head strong { display: block; color: #fff; font-size: 1.02rem; }
.idea-box-head small { color: #9a8657; font-size: .76rem; }
.idea-textarea { width: 100%; resize: vertical; min-height: 110px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; color: #eee; padding: 13px 15px; font-family: inherit; font-size: .92rem; line-height: 1.7; outline: none; transition: border-color .2s, box-shadow .2s; }
.idea-textarea:focus { border-color: rgba(212,180,90,.65); box-shadow: 0 0 0 3px rgba(201,162,75,.12); }
.idea-textarea.idea-shake { animation: ideaShake .4s ease; border-color: #ff6b5e; }
@keyframes ideaShake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } 50% { transform: translateX(-5px); } 75% { transform: translateX(3px); } }
.idea-box-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.idea-count { color: #7a6a45; font-size: .72rem; }
.idea-send-btn { padding: 11px 26px; }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #111; border: 0; font-weight: 800; border-radius: 12px; padding: 10px 20px; cursor: pointer; font-family: inherit; font-size: .9rem; transition: all .2s; box-shadow: 0 6px 20px rgba(201,162,75,.3); display: inline-flex; align-items: center; gap: 8px; justify-content: center; text-decoration: none; }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-gold:disabled { opacity: .6; cursor: default; transform: none; }
.idea-done { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.4); color: #8ddb9a; font-size: .88rem; display: flex; align-items: center; gap: 8px; animation: fadeSlideUp .3s ease; }

/* ربط تلجرام — صفحة الملف الشخصي */
.tg-link-card { margin: 22px 0 8px; padding: 18px; text-align: right; background: linear-gradient(160deg, rgba(14,20,28,.9), rgba(6,9,13,.92)); border: 1px solid rgba(90,160,220,.35); border-radius: 18px; }
.tg-link-head { display: flex; align-items: center; gap: 8px; color: #fff; margin-bottom: 6px; }
.tg-link-head i { color: #4fa8e0; font-size: 1.2rem; }
.tg-link-state { margin-inline-start: auto; font-size: .7rem; color: #888; border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: 3px 10px; }
.tg-link-state.linked { color: #8ddb9a; border-color: rgba(46,204,113,.4); background: rgba(46,204,113,.08); }
.tg-link-desc { color: #9aa8b5; font-size: .78rem; line-height: 1.7; margin: 0 0 12px; }
.tg-link-btn { width: 100%; }
.tg-link-result { margin-top: 14px; animation: fadeSlideUp .3s ease; }
.tg-step { color: #cbd6df; font-size: .8rem; margin: 10px 0 8px; display: flex; align-items: center; gap: 8px; }
.tg-step-num { width: 20px; height: 20px; border-radius: 50%; background: rgba(79,168,224,.2); border: 1px solid rgba(79,168,224,.5); color: #4fa8e0; font-size: .68rem; display: inline-grid; place-items: center; flex-shrink: 0; }
.tg-open-btn { width: 100%; background: linear-gradient(135deg, #4fa8e0, #2f7cb8); color: #fff; box-shadow: 0 6px 20px rgba(79,168,224,.3); }
.tg-code { display: block; text-align: center; background: rgba(0,0,0,.5); border: 1px dashed rgba(212,180,90,.5); border-radius: 10px; padding: 10px; color: var(--gold-light); font-size: .95rem; letter-spacing: 1px; user-select: all; }

/* ================= v16 fixes ================= */
/* v16-P1: شريط الإعلان كان بيغطي شريط الأقسام — إزاحة شريط الأقسام لتحت */
body.has-announce .sections-bar { top: calc(var(--nav-h) + 42px); }

/* v16-P2: منع قصّ الأفاتار واسم المستخدم عند حافة الشاشة */
.nav-user { flex-shrink: 0; white-space: nowrap; }
.nav-user .nav-avatar { flex-shrink: 0; }
.nav-actions { max-width: none; }
@media (max-width: 720px) {
  .nav-actions { max-width: calc(100vw - 130px); }
  .nav-user { font-size: .8rem; gap: 5px; }
}

/* v16-P10: تصغير «ماذا نصنع لك» على الموبايل — كانت ضخمة */
@media (max-width: 720px) {
  .services-compact { padding-top: 30px; padding-bottom: 30px; }
  .services-compact .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
  .services-compact .cards-grid > * { padding: 13px 10px; }
  .services-compact .card-icon { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 8px; }
  .services-compact .card h3 { font-size: .88rem; margin-bottom: 4px; }
  .services-compact .card p { font-size: .72rem; line-height: 1.55; }
  .services-compact .card-ai { grid-column: 1 / -1; }
  .services-compact .section-desc { font-size: .8rem; }
}

/* v16-P9: كاروسيل الطوابق ثلاثي الأبعاد — كروت شكل موبايل 9:16 */
.deck-wrap { max-width: 460px; margin: 30px auto 0; text-align: center; }
.deck-stage {
  position: relative; height: 480px; perspective: 900px;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.deck-card {
  position: absolute; top: 40px; left: 50%;
  width: 240px; aspect-ratio: 9 / 16;
  transform: translate(-50%, 0);
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(212,180,90,.45);
  background: #0c0a06;
  box-shadow: 0 18px 50px rgba(0,0,0,.65), 0 0 24px rgba(201,162,75,.12);
  transition: transform .45s cubic-bezier(.3,.7,.4,1), opacity .45s;
  cursor: grab; will-change: transform;
}
.deck-card.deck-dragging { transition: none; cursor: grabbing; }
.deck-card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.deck-card-info {
  position: absolute; bottom: 0; right: 0; left: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(0deg, rgba(0,0,0,.88), transparent);
  text-align: center;
}
.deck-card-info strong { display: block; color: var(--gold-light); font-size: .95rem; }
.deck-card-info small { color: #cfcabb; font-size: .72rem; }
.deck-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.deck-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); transition: all .3s; }
.deck-dot-on { background: var(--gold-light); box-shadow: 0 0 8px rgba(232,207,143,.6); width: 22px; border-radius: 6px; }
.deck-hint { margin-top: 10px; color: #8a7a55; font-size: .75rem; }
.deck-hint i { animation: deckSwipe 2.2s ease-in-out infinite; display: inline-block; }
@keyframes deckSwipe { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-8px) rotate(-8deg); } 60% { transform: translateX(8px) rotate(8deg); } }
@media (max-width: 720px) {
  .deck-stage { height: 430px; }
  .deck-card { width: 210px; }
}
.idea-goto-btn { margin: 14px auto 20px; }

/* v16-P11: نافذة تتبع الطلبات — تحفة فنية */
.trk-modal { max-width: 520px; text-align: center; }
.trk-head-icon {
  width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.5rem; color: var(--gold-light);
  background: radial-gradient(circle at 35% 30%, rgba(232,207,143,.25), rgba(201,162,75,.06));
  border: 1px solid rgba(212,180,90,.5);
  box-shadow: 0 0 26px rgba(201,162,75,.25);
  animation: goldPulseSoft 2.6s ease-in-out infinite;
}
.trk-form { display: flex; gap: 8px; margin-top: 14px; }
.trk-input { flex: 1; text-align: center; letter-spacing: 2px; font-family: 'Orbitron', monospace; font-size: .95rem; text-transform: uppercase; }
.trk-btn { flex-shrink: 0; }
.trk-result { margin-top: 18px; animation: fadeSlideUp .35s ease; }
.trk-code-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px; border-radius: 12px; margin-bottom: 18px;
  background: rgba(201,162,75,.08); border: 1px dashed rgba(212,180,90,.5);
}
.trk-code-label { color: #9a8657; font-size: .75rem; }
.trk-code { color: var(--gold-light); font-family: 'Orbitron', monospace; letter-spacing: 2px; font-size: 1.02rem; user-select: all; }
.trk-timeline { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 4px 2px; }
.trk-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.trk-dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font-size: .9rem; color: #6a6250; z-index: 2;
  background: #131008; border: 2px solid rgba(255,255,255,.12);
  transition: all .4s;
}
.trk-step-label { font-size: .68rem; color: #8a8272; line-height: 1.4; max-width: 76px; }
.trk-line {
  position: absolute; top: 20px; right: calc(50% + 22px);
  width: calc(100% - 44px); height: 2px;
  background: rgba(255,255,255,.1);
}
.trk-step.trk-done .trk-dot { background: linear-gradient(160deg, #2c2410, #171207); border-color: var(--gold); color: var(--gold-light); }
.trk-step.trk-done .trk-line { background: linear-gradient(90deg, var(--gold), rgba(212,180,90,.25)); }
.trk-step.trk-done .trk-step-label { color: #c9b57e; }
.trk-step.trk-current .trk-dot {
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #111; border-color: var(--gold-light);
  box-shadow: 0 0 22px rgba(232,207,143,.55);
  animation: goldPulseSoft 2s ease-in-out infinite;
}
.trk-step.trk-current .trk-step-label { color: var(--gold-light); font-weight: 700; }
.trk-cancelled { padding: 16px; border-radius: 12px; background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.4); color: #e88; font-size: .9rem; }
.trk-details { margin-top: 18px; text-align: right; }
.trk-det-row { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: .85rem; }
.trk-det-row span { color: #97907e; }
.trk-det-row b { color: #fff; }
.trk-det-items { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.trk-item { font-size: .74rem; color: #cfc9b8; background: rgba(201,162,75,.08); border: 1px solid rgba(212,180,90,.25); border-radius: 20px; padding: 4px 11px; }
.trk-item i { color: var(--gold); font-size: .62rem; }
.trk-mine { margin-top: 20px; text-align: right; }
.trk-mine-title { color: #cbbd93; font-size: .85rem; margin-bottom: 10px; }
.trk-mine-list { display: flex; flex-direction: column; gap: 7px; max-height: 200px; overflow-y: auto; }
.trk-mine-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 10px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  color: #ddd; font-family: inherit; font-size: .8rem; transition: all .2s;
}
.trk-mine-item:hover { border-color: rgba(212,180,90,.5); background: rgba(201,162,75,.06); }
.trk-mine-item b { color: var(--gold-light); font-family: 'Orbitron', monospace; font-size: .74rem; letter-spacing: 1px; }
.trk-mine-item span { margin-inline-start: auto; font-size: .72rem; }
.trk-mine-item small { color: #776f5e; font-size: .68rem; }
.chip-track { border: 1px solid rgba(212,180,90,.55); color: var(--gold-light); background: rgba(201,162,75,.08); cursor: pointer; font-family: inherit; }
.oc-track-code { display: block; margin-top: 10px; font-family: 'Orbitron', monospace; letter-spacing: 2px; color: var(--gold-light); font-size: 1rem; background: rgba(0,0,0,.45); border: 1px dashed rgba(212,180,90,.5); border-radius: 10px; padding: 8px; user-select: all; }
.oc-track-hint { display: block; margin-top: 6px; color: #9a8f76; font-size: .7rem; }

/* v16-P6/P7: نافذة الفوز المنبثقة الفاخرة */
/* v18-P1: نافذة الفوز لازم تطلع فوق العجلة (1300) وفوق كل حاجة */
.winpop-overlay { z-index: 1500 !important; }
.winpop-modal { max-width: 440px; text-align: center; overflow: hidden; }
.winpop-burst {
  position: absolute; inset: -40% -20% auto; height: 70%;
  background: radial-gradient(ellipse at center, rgba(232,207,143,.18), transparent 65%);
  pointer-events: none; animation: winGlow 3s ease-in-out infinite;
}
@keyframes winGlow { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.winpop-icon { font-size: 3.2rem; margin-top: 6px; animation: winBounce .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes winBounce { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.winpop-title { color: var(--gold-light); font-size: 1.3rem; margin: 8px 0 4px; }
.winpop-sub { color: #b9b09a; font-size: .85rem; margin: 0 0 14px; }
.winpop-choice-list { display: flex; flex-direction: column; gap: 9px; }
.winpop-choice-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 13px 16px; border-radius: 14px; cursor: pointer; text-align: right;
  background: linear-gradient(160deg, rgba(201,162,75,.1), rgba(10,8,3,.6));
  border: 1px solid rgba(212,180,90,.4); color: #f0e6cd;
  font-family: inherit; font-size: .92rem; font-weight: 700;
  transition: all .2s;
}
.winpop-choice-btn:hover { border-color: var(--gold-light); box-shadow: 0 0 18px rgba(201,162,75,.3); transform: translateY(-1px); }
.winpop-choice-btn:disabled { opacity: .5; cursor: default; transform: none; }
.winpop-choice-btn i { color: var(--gold-light); font-size: 1.05rem; flex-shrink: 0; }
.winpop-choice-btn span { flex: 1; }
.winpop-choice-btn small { color: #94875f; font-size: .66rem; font-weight: 400; flex-shrink: 0; }
.winpop-won b { display: block; color: var(--gold-light); font-size: 1.25rem; margin-bottom: 8px; }
.winpop-tag { display: inline-block; font-size: .7rem; color: #8ddb9a; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.35); border-radius: 20px; padding: 4px 12px; }
.winpop-won p { color: #b0a88f; font-size: .8rem; margin-top: 12px; line-height: 1.7; }
.winpop-warn {
  margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-size: .78rem;
  color: #f0c469; background: rgba(230,160,40,.1); border: 1px solid rgba(230,160,40,.4);
}
.winpop-warn i { margin-inline-end: 6px; }

/* v16-P7/P8: مربع الفلوس — مكاسبك */
.nav-wins-btn { animation: goldPulseSoft 2.6s ease-in-out infinite; }
.wins-modal { max-width: 480px; }
.wins-list { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; max-height: 55vh; overflow-y: auto; }
.win-row {
  display: flex; align-items: center; gap: 12px; text-align: right;
  padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(201,162,75,.07), rgba(8,7,3,.5));
  border: 1px solid rgba(212,180,90,.3);
}
.win-icon { font-size: 1.4rem; flex-shrink: 0; }
.win-body { flex: 1; }
.win-body b { display: block; color: #f0e6cd; font-size: .9rem; margin-bottom: 4px; }
.win-tag { display: inline-block; font-size: .64rem; color: #8ddb9a; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3); border-radius: 20px; padding: 2px 9px; }
.win-tag-pend { color: #f0c469; background: rgba(230,160,40,.1); border-color: rgba(230,160,40,.35); }
.win-warn { display: block; margin-top: 5px; color: #f0c469; font-size: .66rem; }
.win-date { color: #6f6852; font-size: .66rem; flex-shrink: 0; }

/* v16-P5: تفاصيل الطلبات الموسعة + صف الأفكار في الإشراف */
.ord-items { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.ord-item { font-size: .7rem; color: #cfc9b8; background: rgba(201,162,75,.08); border: 1px solid rgba(212,180,90,.22); border-radius: 16px; padding: 3px 9px; }
.ord-item i { color: var(--gold); font-size: .58rem; }
.ord-item b { color: var(--gold-light); }
.ord-total { color: var(--gold-light); }
.ord-track { font-family: 'Orbitron', monospace; font-size: .68rem; color: var(--gold-light); letter-spacing: 1px; background: rgba(201,162,75,.1); border: 1px dashed rgba(212,180,90,.4); border-radius: 8px; padding: 2px 8px; margin-inline-start: 6px; user-select: all; }
.ord-notes { display: block; margin-top: 5px; color: #9a9382; font-size: .72rem; }
.req-type-tag { font-size: .66rem; color: var(--gold-light); background: rgba(201,162,75,.1); border: 1px solid rgba(212,180,90,.3); border-radius: 14px; padding: 2px 9px; margin-inline-start: 6px; }
.req-details { color: #cfc9bb; font-size: .8rem; line-height: 1.7; margin: 5px 0; white-space: pre-wrap; word-break: break-word; }

/* ================= v17: تحديثات الطلب — تحفة العميل ================= */
.trk-updates { margin-top: 18px; border-top: 1px solid rgba(212,180,90,.18); padding-top: 14px; }
.trk-ups-title { display: flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: .92rem; margin: 0 0 12px; letter-spacing: .5px; }
.trk-ups-title i { animation: trkBell 2.6s ease-in-out infinite; transform-origin: top center; }
@keyframes trkBell { 0%,72%,100% { transform: rotate(0); } 76% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 84% { transform: rotate(8deg); } 88% { transform: rotate(-5deg); } 92% { transform: rotate(0); } }
.trk-ups-live { font-size: .6rem; color: #7ee0a3; background: rgba(60,180,110,.12); border: 1px solid rgba(90,210,140,.35); border-radius: 12px; padding: 2px 9px; letter-spacing: 1px; position: relative; padding-inline-start: 18px; }
.trk-ups-live::before { content: ''; position: absolute; inset-inline-start: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #6fdc96; animation: trkLive 1.6s ease-in-out infinite; }
@keyframes trkLive { 0%,100% { box-shadow: 0 0 0 0 rgba(110,220,150,.55); } 60% { box-shadow: 0 0 0 6px rgba(110,220,150,0); } }
.trk-ups-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; padding-inline-end: 4px; }
.trk-up { display: flex; gap: 10px; background: linear-gradient(135deg, rgba(24,21,14,.92), rgba(14,12,8,.95)); border: 1px solid rgba(212,180,90,.22); border-radius: 14px; padding: 11px 13px; animation: trkUpIn .5s cubic-bezier(.22,1,.36,1) both; }
@keyframes trkUpIn { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.trk-up-rail { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #e8cf8e, #b8933f 70%); color: #1b1508; font-size: .72rem; box-shadow: 0 0 12px rgba(212,180,90,.35); }
.trk-up-body { flex: 1; min-width: 0; }
.trk-up-text { color: #efe9da; font-size: .84rem; line-height: 1.75; margin: 0 0 6px; white-space: pre-wrap; word-break: break-word; }
.trk-up-link { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; color: #0e0c07; background: linear-gradient(120deg, #e6cd8c, #c9a24b 55%, #e6cd8c); background-size: 200% 100%; border-radius: 11px; padding: 8px 14px; font-size: .8rem; font-weight: 700; text-decoration: none; margin: 4px 0 6px; transition: transform .2s, box-shadow .2s; animation: trkShimmer 3.2s linear infinite; }
@keyframes trkShimmer { to { background-position: -200% 0; } }
.trk-up-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(201,162,75,.35); }
.trk-up-link small { font-weight: 400; font-size: .62rem; opacity: .75; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-up-img-wrap { position: relative; display: block; border-radius: 12px; overflow: hidden; border: 1px solid rgba(212,180,90,.3); margin: 4px 0 6px; }
.trk-up-img { display: block; width: 100%; max-height: 220px; object-fit: cover; transition: transform .35s; }
.trk-up-img-wrap:hover .trk-up-img { transform: scale(1.04); }
.trk-up-img-zoom { position: absolute; bottom: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,8,4,.72); color: var(--gold-light); font-size: .72rem; border: 1px solid rgba(212,180,90,.4); }
.trk-up-time { display: block; color: #6d6655; font-size: .62rem; letter-spacing: .5px; }

/* ---- v17: مودال تحديث للعميل (الإشراف) ---- */
.ordup-modal { max-width: 480px; max-height: 88vh; overflow-y: auto; }
.ord-side { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.ord-update-btn { font-size: .7rem; padding: 6px 10px; white-space: nowrap; }
.ordup-label { display: block; color: #b6ad99; font-size: .72rem; margin: 10px 0 5px; }
.ordup-textarea { resize: vertical; min-height: 66px; }
.ordup-img-row { display: flex; gap: 8px; }
.ordup-file-btn { cursor: pointer; }
.ordup-img-prev { display: block; width: 100%; max-height: 180px; object-fit: contain; border-radius: 12px; border: 1px solid rgba(212,180,90,.3); margin-top: 8px; background: #0c0a06; }
#ordup-send { margin-top: 14px; }
.ordup-hist-title { color: var(--gold-light); font-size: .8rem; margin: 16px 0 8px; display: flex; align-items: center; gap: 7px; }
.ordup-history { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.ordup-item { display: flex; gap: 8px; align-items: flex-start; background: rgba(22,19,12,.8); border: 1px solid rgba(212,180,90,.16); border-radius: 11px; padding: 9px 11px; }
.ordup-item-body { flex: 1; min-width: 0; }
.ordup-item-body p { color: #ddd6c6; font-size: .76rem; margin: 0 0 4px; white-space: pre-wrap; word-break: break-word; }
.ordup-item-body a { color: var(--gold-light); font-size: .68rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ordup-item-img { width: 74px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid rgba(212,180,90,.25); margin: 4px 0; }
.ordup-item-body small { color: #6d6655; font-size: .6rem; }
.ordup-del { background: none; border: none; color: #b05656; cursor: pointer; font-size: .78rem; padding: 4px; }
.ordup-del:hover { color: #e07777; }

/* ===================== v18 ===================== */

/* --- تواصل داخل التتبع --- */
.trk-contact { margin-top: 16px; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(212,180,90,.08), rgba(0,0,0,.4)); border: 1px solid rgba(212,180,90,.22); text-align: center; }
.trk-contact-title { color: var(--gold-light); font-size: .8rem; font-weight: 700; margin: 0 0 10px; }
.trk-contact-title i { margin-left: 6px; }
.trk-contact-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.trk-contact-btns .btn, .trk-contact-btns a { font-size: .72rem; padding: 8px 14px; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.trk-c-tg { background: rgba(41,144,204,.14); border: 1px solid rgba(41,144,204,.4); color: #6cc3ee; }
.trk-c-tel { background: rgba(90,200,120,.1); border: 1px solid rgba(90,200,120,.35); color: #7fd99a; }
.trk-c-tg:hover, .trk-c-tel:hover { filter: brightness(1.25); }

/* --- الزر العائم للتواصل (FAB) --- */
.fab-wrap { position: fixed; bottom: 84px; left: 16px; z-index: 1200; direction: rtl; }
.fab-main { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(212,180,90,.55); background: linear-gradient(145deg, #1a1608, #0a0a0a); color: var(--gold-light); font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,.6), 0 0 18px rgba(212,180,90,.25); display: flex; align-items: center; justify-content: center; transition: transform .25s, box-shadow .25s; position: relative; }
.fab-main:hover { transform: scale(1.06); box-shadow: 0 8px 28px rgba(0,0,0,.7), 0 0 26px rgba(212,180,90,.4); }
.fab-main .fab-ic-close { display: none; }
.fab-wrap.fab-open .fab-main .fab-ic-open { display: none; }
.fab-wrap.fab-open .fab-main .fab-ic-close { display: inline; }
.fab-main::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(212,180,90,.25); animation: fabPulse 2.4s ease-out infinite; pointer-events: none; }
.fab-wrap.fab-open .fab-main::after { animation: none; opacity: 0; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }
.fab-menu { position: absolute; bottom: 66px; left: 0; display: flex; flex-direction: column; gap: 8px; min-width: 176px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .22s, transform .22s; }
.fab-wrap.fab-open .fab-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-item { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 12px; background: rgba(12,11,8,.95); border: 1px solid rgba(212,180,90,.28); color: #e8dfc8; font-size: .74rem; font-weight: 700; cursor: pointer; text-decoration: none; backdrop-filter: blur(8px); box-shadow: 0 4px 16px rgba(0,0,0,.5); transition: border-color .2s, transform .2s; font-family: inherit; text-align: right; }
.fab-item:hover { border-color: rgba(212,180,90,.6); transform: translateX(-3px); }
.fab-item i { width: 18px; text-align: center; font-size: .9rem; }
.fab-chat i { color: var(--gold-light); }
.fab-tg i { color: #6cc3ee; }
.fab-wa i { color: #7fd99a; }
.fab-tel i { color: #e0b96a; }
.fab-track i { color: #b08fe0; }
@media (max-width: 640px) { .fab-wrap { bottom: 76px; left: 12px; } .fab-main { width: 52px; height: 52px; font-size: 1.15rem; } }

/* --- اختيار مميزات من الكتالوج داخل صندوق الفكرة --- */
.idea-feats { margin: 12px 0; }
.idea-feats-btn { width: 100%; padding: 11px 14px; border-radius: 12px; background: rgba(212,180,90,.07); border: 1px dashed rgba(212,180,90,.4); color: var(--gold-light); font-size: .76rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; }
.idea-feats-btn:hover { background: rgba(212,180,90,.13); border-color: rgba(212,180,90,.65); }
.idea-feats-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.idea-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: linear-gradient(135deg, rgba(212,180,90,.16), rgba(212,180,90,.06)); border: 1px solid rgba(212,180,90,.38); color: #efe6ce; font-size: .66rem; font-weight: 700; }
.idea-chip-x { background: none; border: none; color: #c9a24f; cursor: pointer; font-size: .78rem; padding: 0 2px; line-height: 1; }
.idea-chip-x:hover { color: #ff9d9d; }
.idea-feats-panel { margin-top: 10px; border-radius: 14px; background: #0d0c09; border: 1px solid rgba(212,180,90,.28); overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.idea-feats-head { display: flex; gap: 8px; align-items: center; padding: 10px; border-bottom: 1px solid rgba(212,180,90,.16); }
.idea-feats-head input { flex: 1; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(212,180,90,.22); color: #efe6ce; font-size: .72rem; font-family: inherit; }
.idea-feats-head input:focus { outline: none; border-color: rgba(212,180,90,.55); }
.idea-feats-done { padding: 8px 14px; border-radius: 10px; background: linear-gradient(135deg, #d4b45a, #a9852f); border: none; color: #171204; font-size: .7rem; font-weight: 800; cursor: pointer; font-family: inherit; }
.idea-feats-list { max-height: 250px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.idea-feats-list::-webkit-scrollbar { width: 5px; }
.idea-feats-list::-webkit-scrollbar-thumb { background: rgba(212,180,90,.3); border-radius: 4px; }
.idea-feat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid transparent; cursor: pointer; transition: border-color .18s, background .18s; }
.idea-feat-row:hover { background: rgba(212,180,90,.06); }
.idea-feat-row.sel { border-color: rgba(212,180,90,.55); background: rgba(212,180,90,.1); }
.idea-feat-row.sel::before { content: '✓'; color: var(--gold-light); font-weight: 800; margin-left: 4px; }
.idea-feat-name { flex: 1; color: #e8dfc8; font-size: .72rem; font-weight: 700; }
.idea-feat-price { color: var(--gold-light); font-size: .64rem; white-space: nowrap; }
.idea-feats-empty { text-align: center; color: #6d6655; font-size: .7rem; padding: 16px; }

/* --- v18-P7: قائمة اختيار الميزة — سكرول + سعر + وصف + اختيار لاحقاً --- */
.winpop-choice-list { max-height: 46vh; overflow-y: auto; padding-left: 4px; display: flex; flex-direction: column; gap: 8px; }
.winpop-choice-list::-webkit-scrollbar { width: 5px; }
.winpop-choice-list::-webkit-scrollbar-thumb { background: rgba(212,180,90,.35); border-radius: 4px; }
.winpop-choice-btn { display: flex; align-items: center; gap: 10px; text-align: right; }
.winpop-choice-btn .wc-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.winpop-choice-btn .wc-body b { font-size: .78rem; }
.wc-desc { color: #8b8268; font-size: .62rem; line-height: 1.5; display: block; }
.wc-price { color: var(--gold-light); font-size: .64rem; font-style: normal; white-space: nowrap; font-weight: 800; }
.wc-price s { color: #6d6655; margin-left: 4px; font-weight: 400; }
.wc-free { color: #7fd99a; }
.winpop-later { width: 100%; margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: none; border: 1px dashed rgba(212,180,90,.35); color: #b3a67f; font-size: .7rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; }
.winpop-later:hover { border-color: rgba(212,180,90,.65); color: var(--gold-light); }

/* --- v18-P8: رصيد الجوائز والخصم التلقائي --- */
.wins-balance { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; margin-bottom: 12px; background: linear-gradient(135deg, rgba(212,180,90,.16), rgba(212,180,90,.04)); border: 1px solid rgba(212,180,90,.45); box-shadow: 0 0 22px rgba(212,180,90,.12) inset; }
.wins-bal-ic { font-size: 1.6rem; }
.wins-bal-body { display: flex; flex-direction: column; gap: 3px; }
.wins-bal-body b { color: var(--gold-light); font-size: 1rem; }
.wins-bal-body { color: #cfc4a5; font-size: .72rem; }
.wins-bal-body small { color: #8b8268; font-size: .62rem; line-height: 1.5; }
.win-tag-used { background: rgba(90,200,120,.12) !important; border-color: rgba(90,200,120,.35) !important; color: #7fd99a !important; }
.win-row-used { opacity: .65; }
.win-choose-btn { cursor: pointer; font-family: inherit; transition: filter .2s; }
.win-choose-btn:hover { filter: brightness(1.3); }
.oc-balance { margin: 10px 0; padding: 10px 14px; border-radius: 12px; background: rgba(212,180,90,.09); border: 1px solid rgba(212,180,90,.35); color: #e8dfc8; font-size: .72rem; line-height: 1.8; }
.oc-balance i { color: var(--gold-light); margin-left: 4px; }
.oc-balance b { color: var(--gold-light); }
.oc-bal-calc { display: block; font-size: .8rem; margin-top: 2px; }
.oc-bal-calc s { color: #6d6655; }
.oc-bal-calc b { color: #7fd99a; font-size: .9rem; }
.oc-disc-note { display: block; margin-top: 6px; color: #7fd99a; font-size: .7rem; font-weight: 700; }

/* --- v18-P9: نافذة تأكيد فاخرة + توست --- */
.xconfirm-overlay { position: fixed; inset: 0; z-index: 1600; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: trkUpIn .2s ease; }
.xconfirm-modal { width: 100%; max-width: 360px; padding: 26px 22px; border-radius: 20px; background: linear-gradient(160deg, #14120c, #0a0a0a); border: 1px solid rgba(212,180,90,.4); box-shadow: 0 24px 70px rgba(0,0,0,.8), 0 0 40px rgba(212,180,90,.1); text-align: center; }
.xconfirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(212,180,90,.1); border: 1px solid rgba(212,180,90,.4); color: var(--gold-light); font-size: 1.4rem; margin-bottom: 12px; }
.xconfirm-title { color: var(--gold-light); font-size: 1rem; font-weight: 800; margin: 0 0 8px; }
.xconfirm-text { color: #cfc4a5; font-size: .78rem; line-height: 1.9; margin: 0 0 18px; }
.xconfirm-btns { display: flex; gap: 10px; }
.xconfirm-yes { flex: 1; padding: 11px; border-radius: 12px; background: linear-gradient(135deg, #d4b45a, #a9852f); border: none; color: #171204; font-weight: 800; font-size: .78rem; cursor: pointer; font-family: inherit; transition: filter .2s; }
.xconfirm-yes:hover { filter: brightness(1.12); }
.xconfirm-no { flex: 1; padding: 11px; border-radius: 12px; background: none; border: 1px solid rgba(255,255,255,.16); color: #b3ab97; font-weight: 700; font-size: .78rem; cursor: pointer; font-family: inherit; transition: border-color .2s, color .2s; }
.xconfirm-no:hover { border-color: rgba(255,255,255,.35); color: #e8dfc8; }
.xtoast { position: fixed; bottom: 28px; right: 50%; transform: translateX(50%) translateY(20px); z-index: 1700; padding: 12px 22px; border-radius: 12px; background: rgba(14,13,9,.97); border: 1px solid rgba(212,180,90,.45); color: #e8dfc8; font-size: .76rem; font-weight: 700; box-shadow: 0 10px 40px rgba(0,0,0,.7); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw; text-align: center; }
.xtoast-show { opacity: 1; transform: translateX(50%) translateY(0); }
.xtoast-err { border-color: rgba(200,80,80,.55); color: #f0b1b1; }
.xtoast-ok { border-color: rgba(90,200,120,.5); color: #a9e8bc; }

/* --- v18-N1: مقياس قوة كلمة السر + تلميحات التكرار --- */
.pw-meter { margin-top: 8px; }
.pw-bars { display: flex; gap: 5px; }
.pw-bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); transition: background .3s; }
.pw-bar.pw-weak { background: #c95b5b; }
.pw-bar.pw-fair { background: #d8a04a; }
.pw-bar.pw-good { background: #b8cf5e; }
.pw-bar.pw-strong { background: #5ecf82; }
.pw-label { display: block; margin-top: 5px; color: #8b8268; font-size: .62rem; }
.dup-hint { display: block; margin-top: 6px; font-size: .64rem; line-height: 1.6; }
.dup-hint i { margin-left: 4px; }
.dup-bad { color: #f0a1a1; }
.dup-ok { color: #8fdaa5; }

/* --- v18-N2: لمسات تحسين عامة على شكل الموقع --- */
.admin-msg:not(:empty) { padding: 8px 12px; border-radius: 10px; background: rgba(212,180,90,.07); border: 1px solid rgba(212,180,90,.2); margin-top: 8px; }
.btn, .fab-item, .idea-feat-row, .winpop-choice-btn { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(212,180,90,.35); color: #fff; }

/* ============ v19: تحسينات شاملة (طلبات + كتالوج + خصم + كروت) ============ */

/* --- v19-3: صناديق عناصر الطلب في الإشراف --- */
.ord-items-boxes { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.oi-box {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(145deg, rgba(212,180,90,.06), rgba(0,0,0,.35));
  border: 1px solid rgba(212,180,90,.22); border-radius: 12px;
  padding: 8px 12px; font-size: .85rem;
}
.oi-box .oi-name { color: #e8e0cc; display: inline-flex; align-items: center; gap: 6px; }
.oi-box .oi-name i { color: var(--gold, #d4b45a); font-size: .8rem; }
.oi-box .oi-price { color: var(--gold, #d4b45a); font-weight: 800; white-space: nowrap; }
.oi-box.oi-free { border-color: rgba(80,200,120,.45); background: linear-gradient(145deg, rgba(80,200,120,.08), rgba(0,0,0,.35)); }
.oi-box.oi-free .oi-name i { color: #59d98c; }
.oi-price-free { color: #59d98c !important; }
.ord-money { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 2px; }
.om-cell {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 6px 12px; min-width: 90px;
}
.om-cell small { color: #9a917c; font-size: .68rem; }
.om-cell b { color: #e8e0cc; font-size: .95rem; }
.om-cell.om-disc b { color: #59d98c; }
.om-cell.om-net { border-color: rgba(212,180,90,.4); background: rgba(212,180,90,.08); }
.om-cell.om-net b { color: var(--gold, #d4b45a); font-size: 1.05rem; }
.ord-auto-disc { display: block; color: #59d98c; font-size: .75rem; margin-top: 4px; }

/* --- v19-2: قائمة العناصر الفاخرة + الفلاتر --- */
.cl-filters { margin: 6px 0 14px; display: flex; flex-direction: column; gap: 10px; }
.cl-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cl-tab {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #c9c0a8; border-radius: 999px; padding: 7px 14px; font-size: .8rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.cl-tab:hover { border-color: rgba(212,180,90,.4); color: #e8e0cc; }
.cl-tab-sel {
  background: linear-gradient(145deg, rgba(212,180,90,.25), rgba(212,180,90,.08));
  border-color: var(--gold, #d4b45a); color: var(--gold, #d4b45a); font-weight: 700;
}
.cl-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-filter-row .dark-select { flex: 0 0 auto; }
.cl-filter-row .dark-input { flex: 1; min-width: 140px; }
.cl-count { color: #9a917c; font-size: .75rem; font-weight: 400; }
.catalog-list-lux { display: flex; flex-direction: column; gap: 8px; }
.cl-item {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(0,0,0,.3));
  border: 1px solid rgba(255,255,255,.08); border-radius: 14px;
  padding: 10px 14px; transition: border-color .2s;
}
.cl-item:hover { border-color: rgba(212,180,90,.35); }
.cl-item-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,180,90,.1); border: 1px solid rgba(212,180,90,.25);
  color: var(--gold, #d4b45a); font-size: 1rem;
}
.cl-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-item-body strong { color: #efe8d6; font-size: .9rem; }
.cl-badge { font-style: normal; background: rgba(212,180,90,.15); color: var(--gold, #d4b45a); border-radius: 6px; padding: 1px 7px; font-size: .68rem; }
.cl-off { font-style: normal; background: rgba(220,80,80,.15); color: #e88; border-radius: 6px; padding: 1px 7px; font-size: .68rem; }
.cl-type-tag, .cl-sec-tag {
  display: inline-block; font-size: .68rem; border-radius: 6px; padding: 1px 8px;
  background: rgba(255,255,255,.05); color: #9a917c; border: 1px solid rgba(255,255,255,.07);
}
.cl-type-tag { color: #c9b57a; border-color: rgba(212,180,90,.2); }
.cl-item-price { color: #e8e0cc; font-size: .85rem; white-space: nowrap; }
.cl-item-price b { color: var(--gold, #d4b45a); font-size: 1rem; }
.cl-item-price del { color: #7a7264; font-size: .75rem; }
.cl-pct { font-style: normal; color: #59d98c; font-size: .7rem; font-weight: 700; }
.cl-item-acts { display: flex; gap: 4px; }
.cl-inactive { opacity: .55; }
.cl-type-offer .cl-item-icon { background: rgba(255,120,60,.12); border-color: rgba(255,120,60,.3); color: #ff9a5c; }
.cl-type-package .cl-item-icon { background: rgba(120,160,255,.1); border-color: rgba(120,160,255,.25); color: #8fb0ff; }
.cl-type-base .cl-item-icon { background: rgba(180,140,255,.1); border-color: rgba(180,140,255,.25); color: #b99cff; }

/* --- v19-1: أزرار مدة الخصم السريعة --- */
.gd-form-lux { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.gd-dur-wrap { display: flex; flex-direction: column; gap: 8px; }
.gd-dur-title { color: #c9c0a8; font-size: .82rem; }
.gd-dur-title i { color: var(--gold, #d4b45a); }
.gd-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.gd-preset {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  color: #c9c0a8; border-radius: 10px; padding: 8px 14px; font-size: .8rem;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.gd-preset:hover { border-color: rgba(212,180,90,.45); color: #e8e0cc; transform: translateY(-1px); }
.gd-preset-sel {
  background: linear-gradient(145deg, rgba(212,180,90,.3), rgba(212,180,90,.1));
  border-color: var(--gold, #d4b45a); color: var(--gold, #d4b45a); font-weight: 800;
  box-shadow: 0 0 12px rgba(212,180,90,.25);
}
.gd-preset-hot { border-color: rgba(255,120,60,.35); }
.gd-custom-end { margin-top: 4px; }
.gd-end-input { max-width: 240px; }
.gd-ends-preview {
  background: rgba(212,180,90,.07); border: 1px dashed rgba(212,180,90,.35);
  border-radius: 10px; padding: 8px 12px; color: #e8e0cc; font-size: .8rem; margin: 0;
}
.gd-ends-preview i { color: var(--gold, #d4b45a); }
.gd-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- v19-1: عداد الخصم في شريط الإعلان --- */
.announce-gd {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 3px 12px; font-size: .75rem; white-space: nowrap;
  margin-inline-start: 10px;
}
.announce-gd i { color: #ffcf6b; animation: gdFirePulse 1.2s ease-in-out infinite; }
.announce-gd b { font-variant-numeric: tabular-nums; letter-spacing: .5px; }
@keyframes gdFirePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.2); opacity: .8; } }

/* --- v19-1+3: كروت المميزات (صمّم موقعك) الأشيك --- */
.design-box { position: relative; }
.design-disc-badge {
  position: absolute; top: -8px; inset-inline-start: 12px; z-index: 2;
  background: linear-gradient(135deg, #e5533d, #b93a28); color: #fff;
  font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 3px 10px rgba(229,83,61,.4); letter-spacing: .3px;
}
.design-won-badge {
  position: absolute; top: -9px; inset-inline-start: 12px; z-index: 2;
  background: linear-gradient(135deg, #2eaf68, #1d7a47); color: #fff;
  font-size: .68rem; font-weight: 800; border-radius: 999px; padding: 3px 10px;
  box-shadow: 0 3px 10px rgba(46,175,104,.4);
}
.design-box-won .design-box-inner { border-color: rgba(80,200,120,.5); background: linear-gradient(160deg, rgba(46,175,104,.09), rgba(0,0,0,.3)); }
.design-box-disc .design-box-inner { border-color: rgba(229,83,61,.35); }
.design-price .dp-now { color: var(--gold, #d4b45a); font-size: 1.02em; }
.design-price del { color: #7a7264; font-size: .85em; }
.design-price-free .dp-free { color: #59d98c; font-weight: 800; }

/* --- v19-1: صندوق الهيكل الأساسي الفخم + زر اطلب الهيكل فقط --- */
.design-base-lux { flex-direction: column; align-items: stretch; gap: 12px; }
.design-base-top { display: flex; align-items: center; gap: 12px; }
.design-base-icon {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(212,180,90,.2), rgba(212,180,90,.05));
  border: 1px solid rgba(212,180,90,.4); color: var(--gold, #d4b45a); font-size: 1.15rem;
}
.design-base-order { width: 100%; justify-content: center; font-size: .88rem; }

/* ===== v19-5: فرمطة + لمسات عراقة ===== */
.fmt-card { border: 1px solid rgba(255,90,90,.25); background: linear-gradient(160deg, rgba(60,15,15,.35), rgba(20,8,8,.2)); }
.fmt-card h3 { color: #ff9a9a; }
.fmt-owner-tag { display: inline-block; font-size: .68rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(212,180,90,.12); border: 1px solid rgba(212,180,90,.35); color: var(--gold, #d4b45a); margin-inline-start: .4rem; }
#fmt-btn { margin-top: .6rem; }

/* لمسات عراقة عامة */
.admin-card, .sec-card, .pkg-card {
  transition: border-color .3s ease, box-shadow .3s ease, transform .25s ease;
}
.admin-card:hover { border-color: rgba(212,180,90,.35); box-shadow: 0 6px 24px rgba(0,0,0,.45), 0 0 0 1px rgba(212,180,90,.08); }
.btn-gold {
  background-image: linear-gradient(135deg, #e8cc7a 0%, #d4b45a 45%, #b8973f 100%);
  box-shadow: 0 2px 12px rgba(212,180,90,.25);
}
.btn-gold:hover { box-shadow: 0 4px 18px rgba(212,180,90,.4); transform: translateY(-1px); }
h1, h2, .section-title { letter-spacing: .02em; }
.section-title::after {
  content: ""; display: block; width: 52px; height: 2px; margin-top: .45rem;
  background: linear-gradient(90deg, var(--gold, #d4b45a), transparent); border-radius: 2px;
}
::selection { background: rgba(212,180,90,.35); color: #fff; }

/* ============================================================
   v20: تجميل شامل — أنيميشن ضغط + انتقالات + مبيعات + نجاح الطلب
   ============================================================ */

/* --- 1) أنيميشن ضغط فخم لكل الأزرار (نبضة + موجة ذهبية) --- */
.btn, .amenu, .design-add-btn, .cl-tab, .gd-preset, .fab-main, .fab-item {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.btn:active, .amenu:active, .cl-tab:active, .gd-preset:active {
  transform: scale(.94);
  transition: transform .08s ease;
}
@keyframes goldRipple {
  0% { box-shadow: 0 0 0 0 rgba(212,180,90,.45); }
  100% { box-shadow: 0 0 0 14px rgba(212,180,90,0); }
}
.btn-gold:active, .btn-metal:active { animation: goldRipple .45s ease-out; }

/* --- 2) انتقال دخول ناعم للصفحات والكروت --- */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
main, .admin-tab:not([hidden]) { animation: pageIn .45s cubic-bezier(.22,.9,.3,1); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.design-box, .pkg-card, .sec-card, .stat-box, .sale-box {
  animation: cardIn .5s cubic-bezier(.22,.9,.3,1) backwards;
}
.design-box:nth-child(2n) { animation-delay: .06s; }
.design-box:nth-child(3n) { animation-delay: .12s; }

/* --- 3) الأسعار أوضح وأفخم (من تحليل الشاشات: الأسعار مش بارزة) --- */
.design-price { font-size: 1.12rem; }
.design-price .dp-now { font-size: 1.18em; text-shadow: 0 0 14px rgba(212,180,90,.35); }
.design-descr { line-height: 1.55; }
.design-box { transition: border-color .3s, box-shadow .3s, transform .25s; }
.design-box:active { transform: scale(.97); }
.design-hot-badge {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  font-size: .62rem; font-weight: 800; padding: .18rem .5rem; border-radius: 999px;
  background: linear-gradient(135deg, #7a2020, #b33); color: #ffd9d9;
  border: 1px solid rgba(255,120,120,.4);
}

/* --- 4) نتائج المبيعات في الإشراف --- */
.sales-card { border-color: rgba(212,180,90,.28); }
.sales-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 640px) { .sales-grid { grid-template-columns: repeat(4, 1fr); } }
.sale-box {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 8px; border-radius: 14px; text-align: center;
  background: linear-gradient(160deg, rgba(212,180,90,.07), rgba(0,0,0,.25));
  border: 1px solid rgba(212,180,90,.16);
}
.sale-box i { color: #e8c66a; font-size: 1.25rem; }
.sale-box strong { color: #fff; font-size: 1.25rem; }
.sale-box span { color: #9a9a9a; font-size: .72rem; }
.sale-box-main {
  background: linear-gradient(160deg, rgba(212,180,90,.18), rgba(212,180,90,.04));
  border-color: rgba(212,180,90,.45);
}
.sale-box-main strong { color: var(--gold, #d4b45a); font-size: 1.4rem; }
.sale-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
}
.sale-row-icon i { color: #6fcf7f; font-size: 1.05rem; }
.sale-row-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sale-row-body b { color: #fff; font-size: .85rem; }
.sale-row-body small { color: #9a9a9a; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sale-row-amt { color: var(--gold, #d4b45a); font-weight: 800; font-size: .95rem; display: flex; flex-direction: column; align-items: flex-end; }
.sale-row-amt small { font-size: .65rem; color: #b09a5a; font-weight: 400; }
.sale-row-date { color: #666; font-size: .66rem; }

/* --- 5) شاشة «تم الطلب بنجاح» الاحتفالية --- */
.oc-success { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0 4px; position: relative; }
.oc-success-icon i {
  font-size: 3.4rem; color: #6fcf7f;
  animation: successPop .6s cubic-bezier(.18,1.4,.4,1) both;
  filter: drop-shadow(0 0 18px rgba(111,207,127,.45));
}
@keyframes successPop {
  0% { transform: scale(0) rotate(-30deg); opacity: 0; }
  70% { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.oc-success-title { color: #fff; font-size: 1.25rem; margin: 0; }
.oc-success-sub { color: #b5b5b5; font-size: .85rem; margin: 0; text-align: center; }
.oc-success-code {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 22px; border-radius: 12px; margin-top: 4px;
  background: rgba(212,180,90,.08); border: 1px dashed rgba(212,180,90,.45);
}
.oc-success-code b { color: var(--gold, #d4b45a); font-size: 1.1rem; letter-spacing: .1em; }
.oc-success-code small { color: #9a9a9a; font-size: .68rem; }
.oc-success-disc { color: #e8c66a; font-size: .8rem; text-align: center; margin: 0; }
.oc-success-btn { margin-top: 6px; }
.oc-confetti {
  position: absolute; top: -8px; width: 7px; height: 11px; border-radius: 2px;
  pointer-events: none; opacity: 0;
  animation: confettiFall 2.4s ease-in forwards;
}
@keyframes confettiFall {
  0% { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(340px) rotate(420deg); }
}

/* --- 6) لمسات فخامة عامة (من تحليل الشاشات) --- */
/* حقول إدخال زجاجية مع توهج ذهبي عند الكتابة */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="number"], textarea, select {
  transition: border-color .3s, box-shadow .3s, background .3s;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(212,180,90,.55) !important;
  box-shadow: 0 0 0 3px rgba(212,180,90,.12), 0 0 18px rgba(212,180,90,.1);
  outline: none;
}
/* أيقونات الإحصائيات بخلفية دائرية ذهبية */
.stat-box i {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(212,180,90,.1); border: 1px solid rgba(212,180,90,.22);
}
/* توهج نبضي خفيف للزر الرئيسي في صفحات البيع */
@keyframes goldBreath {
  0%, 100% { box-shadow: 0 2px 12px rgba(212,180,90,.25); }
  50% { box-shadow: 0 4px 26px rgba(212,180,90,.5); }
}
.design-base-order, .oc-btns .btn-metal { animation: goldBreath 2.8s ease-in-out infinite; }
/* سكرول بار ذهبي رفيع */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(212,180,90,.35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* --- v20: أفاتار فخم بحلقة ذهبية دوارة (من تحليل الشاشات) --- */
.profile-avatar-wrap::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, #d4b45a, transparent 30%, #d4b45a 50%, transparent 80%, #d4b45a);
  animation: avatarRing 6s linear infinite;
  z-index: 0;
}
.profile-avatar-wrap::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: #0a0a0a; z-index: 0;
}
.profile-avatar { position: relative; z-index: 1; }
.avatar-edit-btn { z-index: 2; }
@keyframes avatarRing { to { transform: rotate(360deg); } }

/* --- v20: أيقونة متحركة خفيفة لعناوين الأقسام --- */
.wheel-title i, .admin-card h2 i { transition: transform .3s; }
.admin-card:hover h2 i { transform: rotate(-8deg) scale(1.15); }
