/* عقار لينك برو — لوحة التحكم */
#app { position: relative; z-index: 1; min-height: 100vh; }
.view { animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ═════════ الدخول ═════════ */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; position: relative; overflow: hidden; }
.auth::before {
  content: ""; position: absolute; width: 760px; height: 760px; border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -58%);
  background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 62%); filter: blur(10px); animation: breathe 9s ease-in-out infinite;
}
.auth::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 65%); opacity: .5;
}
@keyframes breathe { 50% { transform: translate(-50%, -58%) scale(1.08); opacity: .8; } }
.auth-card { position: relative; z-index: 1; width: min(440px, 100%); padding: 44px 34px 30px; border-radius: 30px; text-align: center; animation: pop .9s var(--ease) both; }
.auth-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(212, 175, 55, .55), transparent 35%, transparent 65%, rgba(212, 175, 55, .3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.auth-logo { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(160deg, #1d1d1d, #080808); border: 1px solid var(--gold-line); box-shadow: var(--glow), 0 30px 60px -20px rgba(0, 0, 0, .8); }
.auth-logo svg { width: 54px; height: 54px; }
.auth h1 { font-size: 30px; font-weight: 900; }
.auth .latin { font-family: var(--font-l); letter-spacing: .42em; font-size: 13px; color: var(--gold-text); margin: 4px 0 30px; direction: ltr; }
.auth form { display: grid; gap: 16px; text-align: right; }
.auth .btn-gold { margin-top: 8px; }
.auth-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-foot svg { width: 15px; height: 15px; color: var(--gold-text); }
.form-err { color: var(--danger); font-size: 13.5px; font-weight: 700; min-height: 0; text-align: center; }
.pw-toggle { border: 0; background: none; padding: 4px; color: var(--muted); display: grid; }
.pw-toggle svg { width: 19px; height: 19px; }

/* ═════════ الشريط العلوي ═════════ */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.topbar .wrap { display: flex; align-items: center; gap: 14px; height: 74px; }
.nav { display: flex; gap: 4px; margin-inline-start: 24px; }
.nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; font-weight: 700; font-size: 14.5px; color: var(--muted); transition: .25s; font-family: var(--font-d); }
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--gold-text); background: var(--gold-soft); }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.bottom-nav { display: none; }

/* ═════════ الصفحات ═════════ */
.page { padding: 40px 0 120px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; margin-top: 8px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 14px; margin-bottom: 14px; transition: .2s; }
.back:hover { color: var(--gold-text); }
.back svg { width: 17px; height: 17px; transform: scaleX(-1); }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 44px 0 18px; flex-wrap: wrap; }
.section-title h2 { font-size: 21px; font-weight: 800; }

/* الإحصائيات */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat { position: relative; padding: 24px; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--gold-line); }
.stat::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; top: -90px; left: -60px; background: radial-gradient(circle, rgba(212, 175, 55, .14), transparent 70%); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-weight: 700; font-size: 14px; }
.stat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--gold-text); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.stat-ico svg { width: 21px; height: 21px; }
.stat-val { font-family: var(--font-d); font-size: 40px; font-weight: 800; margin-top: 14px; line-height: 1.1; }
.stat-sub { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-last .stat-val { font-size: 22px; margin-top: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 38px; margin-top: 10px; }
.spark i { flex: 1; min-height: 3px; border-radius: 3px; background: linear-gradient(to top, rgba(212, 175, 55, .25), var(--gold)); opacity: .85; transform-origin: bottom; animation: grow .9s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } }

/* قائمة العروض */
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search { min-height: 44px; border-radius: 99px; width: min(280px, 100%); }
.search input { height: 42px; font-size: 14.5px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filters .chip { cursor: pointer; }
.filters .chip.on { border-color: var(--gold-line); color: var(--gold-text); background: var(--gold-soft); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.lcard { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; animation: rise .7s var(--ease) both; }
.lcard:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: var(--shadow); }
.lcard-media { position: relative; aspect-ratio: 16 / 9.5; background: var(--bg-3); overflow: hidden; cursor: pointer; }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lcard:hover .lcard-media img { transform: scale(1.06); }
.lcard-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent 55%); }
.lcard-media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold-line); }
.lcard-media .ph svg { width: 56px; height: 56px; stroke-width: 1.1; }
.lcard-badges { position: absolute; z-index: 1; top: 14px; inset-inline: 14px; display: flex; justify-content: space-between; }
.lcard-badges .tag { background: rgba(11, 11, 11, .7); backdrop-filter: blur(8px); }
.lcard-price { position: absolute; z-index: 1; bottom: 12px; right: 16px; left: 16px; display: flex; justify-content: space-between; align-items: flex-end; color: #fff; }
.lcard-price b { font-family: var(--font-d); font-size: 22px; font-weight: 800; }
.lcard-price b small { font-size: 13px; color: #E2C35A; margin-inline-start: 4px; }
.lcard-price span { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; opacity: .85; }
.lcard-price svg { width: 15px; height: 15px; }
.lcard-body { padding: 18px 20px 6px; cursor: pointer; }
.lcard-body h3 { font-size: 17px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcard-meta { display: flex; gap: 14px; margin-top: 6px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.lcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lcard-meta svg { width: 15px; height: 15px; color: var(--gold-text); }
.lcard-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; padding: 14px 20px 20px; }

.empty { text-align: center; padding: 64px 24px; border-style: dashed; }
.empty-ico { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 28px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.empty-ico svg { width: 46px; height: 46px; }
.empty h3 { font-size: 22px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 24px; max-width: 420px; }

/* ═════════ معالج الإنشاء ═════════ */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; padding: 10px; }
.stp { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; border: 0; background: none; text-align: right; transition: background .3s; }
.stp:hover { background: var(--glass); }
.stp-n { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; border: 1px solid var(--line-2); color: var(--muted); transition: all .45s var(--ease); }
.stp-n svg { width: 18px; height: 18px; }
.stp b { display: block; font-family: var(--font-d); font-size: 14.5px; font-weight: 800; color: var(--muted); transition: color .3s; }
.stp small { display: block; font-size: 12px; color: var(--muted); opacity: .8; }
.stp.on .stp-n { background: var(--gold-grad); color: #0B0B0B; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(212, 175, 55, .8); }
.stp.on b { color: var(--text); }
.stp.done .stp-n { color: var(--gold-text); border-color: var(--gold-line); background: var(--gold-soft); }
.progress { height: 2px; background: var(--line); border-radius: 2px; margin: -16px 10px 30px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--gold-grad); border-radius: 2px; transition: width .7s var(--ease); }

.wiz { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.panel { padding: 30px; }
.panel + .panel { margin-top: 20px; }
.panel-h { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel-h .stat-ico { width: 46px; height: 46px; }
.panel-h h2 { font-size: 20px; font-weight: 800; }
.panel-h p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fgrid .full { grid-column: 1 / -1; }
.step { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(-18px); } }

.type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.type-opt { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 13px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 700; font-size: 14px; font-family: var(--font-d); transition: all .3s var(--ease); }
.type-opt svg { width: 26px; height: 26px; color: var(--muted); transition: .3s; stroke-width: 1.4; }
.type-opt:hover { border-color: var(--line-2); transform: translateY(-2px); }
.type-opt.on { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold-text); box-shadow: var(--glow); }
.type-opt.on svg { color: var(--gold-text); }
.num-badge { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-sm); border: 1px dashed var(--gold-line); background: var(--gold-soft); }
.num-badge input { font-family: var(--font-d); font-size: 26px; font-weight: 800; color: var(--gold-text); width: 100%; border: 0; outline: 0; background: none; direction: ltr; text-align: right; letter-spacing: .04em; }
.num-badge span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.words-box { display: flex; align-items: flex-start; gap: 10px; }
.auto-btn { flex: none; height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-text); font-size: 12px; font-weight: 700; margin-top: 12px; display: inline-flex; align-items: center; gap: 5px; }
.auto-btn svg { width: 14px; height: 14px; }

/* المحرر */
.editor { border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, .02); transition: border-color .25s, box-shadow .25s; overflow: hidden; }
.editor:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 4px var(--gold-soft); }
.ed-tools { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.ed-tools button { width: 36px; height: 34px; border-radius: 9px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; transition: .2s; }
.ed-tools button:hover { background: var(--glass-2); color: var(--gold-text); }
.ed-tools button svg { width: 18px; height: 18px; }
.ed-tools i { width: 1px; background: var(--line); margin: 6px 4px; }
.ed-area { min-height: 200px; max-height: 460px; overflow: auto; padding: 16px 18px; outline: 0; line-height: 1.95; }
.ed-area:empty::before { content: attr(data-ph); color: var(--muted); opacity: .75; }
.ed-area h3 { font-size: 18px; color: var(--gold-text); margin: 10px 0 4px; }
.ed-area p { margin: 0 0 8px; }
.ed-area blockquote { margin: 8px 0; padding: 4px 14px; border-inline-start: 3px solid var(--gold); color: var(--text-2); }

/* الحدود */
.bnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bnd { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.bnd-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-d); font-weight: 800; }
.bnd-h .dir { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); color: var(--gold-text); }
.bnd-h .dir svg { width: 17px; height: 17px; }
.bnd .field { min-height: 46px; }
.bnd .field input { height: 44px; font-size: 15px; }
.bnd .row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }

/* الشرائح / المميزات */
.tags-in { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; min-height: 58px; border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(255, 255, 255, .02); transition: .25s; }
.tags-in:focus-within { border-color: var(--gold-line); box-shadow: 0 0 0 4px var(--gold-soft); }
.tags-in input { flex: 1; min-width: 160px; border: 0; outline: 0; background: none; height: 36px; padding: 0 6px; }
.tags-in .chip { animation: pop .35s var(--ease) both; }
.tags-in .chip button { border: 0; background: none; padding: 0; display: grid; color: inherit; opacity: .7; }
.tags-in .chip button:hover { opacity: 1; }
.sugg { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.sugg button { height: 30px; padding: 0 12px; border-radius: 99px; border: 1px dashed var(--line-2); background: none; font-size: 12.5px; color: var(--muted); transition: .2s; }
.sugg button:hover { border-color: var(--gold-line); color: var(--gold-text); border-style: solid; }

.kv { display: grid; gap: 8px; }
.kv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px; gap: 8px; animation: rise .4s var(--ease) both; }
.kv-row .field { min-height: 46px; }
.kv-row .field input { height: 44px; font-size: 15px; }

/* الوسائط */
.drop { position: relative; display: grid; place-items: center; text-align: center; padding: 44px 20px; border-radius: 22px; border: 1.5px dashed var(--gold-line); background: radial-gradient(ellipse at center, rgba(212, 175, 55, .07), transparent 70%); cursor: pointer; transition: all .35s var(--ease); }
.drop:hover, .drop.over { background-color: var(--gold-soft); border-color: var(--gold); transform: scale(1.005); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-ico { width: 70px; height: 70px; border-radius: 22px; display: grid; place-items: center; background: var(--gold-grad); color: #0B0B0B; margin-bottom: 16px; box-shadow: 0 16px 36px -14px rgba(212, 175, 55, .8); }
.drop-ico svg { width: 30px; height: 30px; stroke-width: 1.9; }
.drop b { font-family: var(--font-d); font-size: 18px; }
.drop p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.drop.sm { padding: 26px 16px; grid-template-columns: auto 1fr; text-align: right; gap: 16px; place-items: center start; }
.drop.sm .drop-ico { width: 52px; height: 52px; margin: 0; border-radius: 16px; }
.drop.sm .drop-ico svg { width: 24px; height: 24px; }
.drop.sm b { font-size: 16px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.mitem { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); cursor: grab; transition: transform .3s var(--ease), opacity .3s, box-shadow .3s; animation: pop .45s var(--ease) both; }
.mitem img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mitem.dragging { opacity: .35; transform: scale(.94); }
.mitem.target { box-shadow: 0 0 0 2px var(--gold); }
.mitem .cover { position: absolute; top: 8px; right: 8px; }
.mitem .cover .tag { background: rgba(11, 11, 11, .78); }
.mitem .ops { position: absolute; inset-inline: 6px; bottom: 6px; display: flex; justify-content: space-between; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.mitem:hover .ops, .mitem:focus-within .ops { opacity: 1; transform: none; }
.mitem .ops button { width: 32px; height: 32px; border-radius: 10px; border: 0; display: grid; place-items: center; background: rgba(11, 11, 11, .78); color: #fff; backdrop-filter: blur(6px); }
.mitem .ops button:hover { color: var(--gold); }
.mitem .ops button.del:hover { color: var(--danger); }
.mitem .ops svg { width: 16px; height: 16px; }
.mitem .bar { position: absolute; inset: auto 10px 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.mitem .bar i { display: block; height: 100%; background: var(--gold-grad); transition: width .2s; }
.mitem.loading::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.media-card { padding: 22px; }
.media-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.media-card h3 svg { width: 20px; height: 20px; color: var(--gold-text); }
.media-prev { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.media-prev video { width: 100%; max-height: 260px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.file-ico { width: 48px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(160deg, #3a1414, #1d0909); color: #F08A7E; font-size: 11px; font-weight: 800; font-family: var(--font-d); border: 1px solid rgba(240, 138, 126, .25); flex: none; }
.file-row .grow { flex: 1; min-width: 0; }
.file-row b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14.5px; }
.file-row small { color: var(--muted); }
.upbar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 12px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--gold-grad); transition: width .2s; }
.comp-img { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.comp-img img { width: 86px; height: 86px; border-radius: 14px; object-fit: cover; border: 1px solid var(--line); }

/* الخيارات */
.opt { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); transition: border-color .3s; }
.opt + .opt { margin-top: 12px; }
.opt:has(input:checked) { border-color: var(--gold-line); background: var(--gold-soft); }
.opt .stat-ico { width: 42px; height: 42px; flex: none; }
.opt .grow { flex: 1; }
.opt b { font-family: var(--font-d); display: block; }
.opt small { color: var(--muted); font-size: 13px; }
.opt-extra { margin-top: 12px; animation: rise .4s var(--ease) both; }

.wiz-foot { position: sticky; bottom: 16px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 12px; border-radius: 22px; }
.wiz-foot .step-of { color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* المعاينة الحية */
.preview { position: sticky; top: 98px; }
.preview-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; font-family: var(--font-d); }
.preview-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76, 195, 138, .18); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .4; } }
.pv { overflow: hidden; padding: 0; }
.pv-media { position: relative; aspect-ratio: 4 / 3.4; background: linear-gradient(160deg, #1a1a1a, #0b0b0b); overflow: hidden; }
.pv-media img { width: 100%; height: 100%; object-fit: cover; }
.pv-media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-line); }
.pv-media .ph svg { width: 64px; height: 64px; stroke-width: 1; }
.pv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .92) 5%, transparent 60%); }
.pv-over { position: absolute; z-index: 1; inset: auto 18px 16px; color: #fff; }
.pv-over .tag { margin-bottom: 8px; background: rgba(11, 11, 11, .6); }
.pv-over h4 { font-size: 18px; font-weight: 800; }
.pv-over .p { font-family: var(--font-d); font-weight: 800; font-size: 24px; color: #E8C964; }
.pv-over .p small { font-size: 13px; }
.pv-info { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 8px; }
.pv-info div { text-align: center; padding: 0 4px; }
.pv-info div + div { border-inline-start: 1px solid var(--line); }
.pv-info small { display: block; color: var(--muted); font-size: 11.5px; }
.pv-info b { font-family: var(--font-d); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.pv-wa { margin: 0 14px 14px; }
.pv-tips { margin-top: 16px; padding: 16px 18px; font-size: 13px; color: var(--muted); }
.pv-tips b { color: var(--gold-text); font-family: var(--font-d); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.pv-tips b svg { width: 16px; height: 16px; }

/* ═════════ النجاح ═════════ */
.success { max-width: 880px; margin: 0 auto; text-align: center; }
.burst { position: relative; width: 112px; height: 112px; margin: 10px auto 26px; }
.burst .core { position: absolute; inset: 0; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; color: #0B0B0B; box-shadow: 0 0 0 10px var(--gold-soft), 0 0 0 22px rgba(212, 175, 55, .05), 0 30px 60px -20px rgba(212, 175, 55, .8); animation: pop .8s var(--ease) both; }
.burst .core svg { width: 52px; height: 52px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .45s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.burst span { position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: spark 1.1s .3s var(--ease) both; }
@keyframes spark { from { transform: translate(-50%, -50%); opacity: 1; } to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); opacity: 0; } }
.success h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.success > p { color: var(--muted); margin: 8px 0 34px; }
.succ-grid { display: grid; grid-template-columns: 300px 1fr; gap: 22px; text-align: right; }
.succ-qr { padding: 26px; display: grid; gap: 16px; justify-items: center; }
.succ-qr .qr-frame { width: 100%; }
.succ-info { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.link-box { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 8px; padding-inline-start: 18px; border-radius: 99px; border: 1px solid var(--gold-line); background: var(--gold-soft); }
.link-box a { flex: 1; min-width: 0; direction: ltr; text-align: right; font-weight: 700; color: var(--gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-d); }
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.summary div { background: var(--bg-2); padding: 12px 16px; }
.summary small { display: block; color: var(--muted); font-size: 12px; }
.summary b { font-family: var(--font-d); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ═════════ إدارة العرض ═════════ */
.mhero { position: relative; border-radius: 28px; overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; padding: 30px; margin-bottom: 24px; border: 1px solid var(--line); background: linear-gradient(160deg, #1a1a1a, #0b0b0b); }
.mhero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .9), rgba(0, 0, 0, .25) 70%), linear-gradient(to left, rgba(0, 0, 0, .5), transparent 60%); }
.mhero-in { position: relative; z-index: 1; color: #fff; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.mhero h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; margin-top: 10px; }
.mhero .meta { display: flex; gap: 16px; flex-wrap: wrap; opacity: .85; font-size: 14px; margin-top: 6px; }
.mhero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.mhero .meta svg { width: 16px; height: 16px; color: #E2C35A; }
.mhero .pr { font-family: var(--font-d); font-weight: 800; font-size: 30px; color: #E8C964; }
.mgrid2 { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
.qr-card { padding: 26px; display: grid; gap: 16px; }
.qr-card h3 { font-size: 17px; text-align: center; }
.mcol { display: grid; gap: 22px; }
.card-p { padding: 26px; }
.card-p > h3 { font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-p > h3 svg { width: 20px; height: 20px; color: var(--gold-text); }
.actions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.act { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-weight: 700; font-size: 13.5px; font-family: var(--font-d); transition: all .3s var(--ease); text-align: center; }
.act svg { width: 22px; height: 22px; color: var(--gold-text); }
.act:hover { border-color: var(--gold-line); background: var(--gold-soft); transform: translateY(-2px); }
.act.danger svg { color: var(--danger); }
.act.danger:hover { border-color: rgba(224, 108, 95, .4); background: rgba(224, 108, 95, .07); }
.views-big { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.views-big .stat-val { margin: 0; font-size: 46px; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; margin-top: 18px; }
.bars i { position: relative; flex: 1; min-height: 3px; border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, rgba(212, 175, 55, .2), var(--gold)); transform-origin: bottom; animation: grow .9s var(--ease) both; }
.bars i:hover::after { content: attr(data-t); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 11px; white-space: nowrap; padding: 3px 8px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2); }
.bars-x { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 8px; }

/* ═════════ الإعدادات ═════════ */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.set-grid form { display: grid; gap: 16px; }
.logo-up { display: flex; align-items: center; gap: 20px; }
.logo-prev { width: 96px; height: 96px; border-radius: 26px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #1d1d1d, #080808); border: 1px solid var(--gold-line); box-shadow: var(--glow); flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.logo-prev svg { width: 60px; height: 60px; }
.qr-mini { width: 150px; }
.theme-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.theme-opt { padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: none; text-align: right; transition: .3s; }
.theme-opt.on { border-color: var(--gold-line); box-shadow: var(--glow); }
.theme-opt .sw { height: 74px; border-radius: 12px; margin-bottom: 10px; position: relative; overflow: hidden; }
.theme-opt .sw::before { content: ""; position: absolute; inset: 14px 14px auto; height: 10px; border-radius: 5px; background: var(--c2); width: 50%; }
.theme-opt .sw::after { content: ""; position: absolute; inset: auto 14px 14px; height: 18px; border-radius: 9px; background: linear-gradient(135deg, #F3DD8B, #D4AF37, #B8921F); width: 40%; }
.theme-opt b { font-family: var(--font-d); display: flex; align-items: center; gap: 8px; }
.theme-opt b svg { width: 17px; height: 17px; color: var(--gold-text); }

/* ═════════ التجاوب ═════════ */
@media (max-width: 1080px) {
  .wiz { grid-template-columns: minmax(0, 1fr); }
  .preview { display: none; }
  .mgrid2 { grid-template-columns: 1fr; }
  .qr-card { max-width: 420px; width: 100%; margin-inline: auto; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-last { grid-column: 1 / -1; }
  .type-grid { grid-template-columns: repeat(4, 1fr); }
  .set-grid, .succ-grid, .media-row { grid-template-columns: 1fr; }
  .succ-qr { max-width: 360px; width: 100%; margin-inline: auto; }
  .stp small { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 60; inset-inline: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    height: 66px; padding: 6px; border-radius: 24px; background: color-mix(in srgb, var(--bg-2) 86%, transparent); border: 1px solid var(--line-2);
    backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow);
  }
  .bottom-nav a { display: grid; justify-items: center; align-content: center; gap: 2px; border-radius: 18px; font-size: 11.5px; font-weight: 700; color: var(--muted); font-family: var(--font-d); }
  .bottom-nav a svg { width: 22px; height: 22px; }
  .bottom-nav a.on { color: var(--gold-text); background: var(--gold-soft); }
  .bottom-nav a.new { color: #0B0B0B; background: var(--gold-grad); margin: 2px 8px; box-shadow: 0 10px 24px -10px rgba(212, 175, 55, .8); }
  .page { padding-bottom: 130px; }
  .wiz-foot { bottom: 90px; }
  .no-nav .wiz-foot { bottom: max(12px, env(safe-area-inset-bottom)); }
  .page.no-nav { padding-bottom: 60px; }
  .top-actions .btn-gold { display: none; }
}
@media (max-width: 640px) {
  .topbar .wrap { height: 64px; }
  .brand-name { font-size: 16px; }
  .page { padding-top: 26px; }
  .stats { gap: 12px; }
  .stat { padding: 18px; }
  .stat-val { font-size: 32px; }
  .lgrid { grid-template-columns: 1fr; }
  .fgrid, .bnd-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .panel { padding: 20px; }
  .stepper { grid-template-columns: repeat(4, 1fr); padding: 6px; gap: 4px; }
  .stp { flex-direction: column; gap: 6px; padding: 8px 2px; text-align: center; }
  .stp b { font-size: 12px; }
  .stp-n { width: 34px; height: 34px; }
  .actions-grid { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr 1fr; }
  .mhero { padding: 22px; min-height: 220px; }
  .search { width: 100%; }
  .tools { width: 100%; }
  .mgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mitem .ops { opacity: 1; transform: none; }
  .kv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .bnd .row { grid-template-columns: minmax(0, 1fr) 100px; }
}
.type-grid.err .type-opt { border-color: rgba(224, 108, 95, .55); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (max-width: 860px) { .toasts { bottom: auto; top: max(14px, env(safe-area-inset-top)); } }
.fgrid > *, .set-grid > *, .mgrid2 > *, .succ-grid > *, .media-row > * { min-width: 0; }
