/* Aether blade — طبقة الصقل النهائية (تُحمَّل بعد polish.css)
   مقياس واحد للزوايا: 14 للأسطح الكبيرة، 8 للعناصر، 4 للتفاصيل.
   بدون توهّج ولا تدرجات زخرفية؛ اللون الأزرق يُستخدم للفعل فقط. */
:root {
  --rf-r1: 14px; --rf-r2: 8px; --rf-r3: 4px;
  --rf-ink: #070a15;
  --rf-surface: #0e1324;
  --rf-raised: #121830;
  --rf-hair: rgba(150, 170, 230, .11);
  --rf-hair-2: rgba(150, 170, 230, .2);
  --rf-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 18px 40px -24px rgba(0,0,0,.7);
}
html[data-theme="light"] {
  --rf-ink: #f4f6fa; --rf-surface: #ffffff; --rf-raised: #f8fafd;
  --rf-hair: rgba(30, 50, 100, .1); --rf-hair-2: rgba(30, 50, 100, .18);
  --rf-shadow: 0 1px 2px rgba(20,30,60,.06), 0 14px 32px -22px rgba(20,30,60,.3);
}

/* ---------- الصفحة العامة ---------- */
.lp { background: var(--bg-0); }
.lp-wrap { width: min(1120px, 100% - 56px); }
.lp-nav { padding: 20px 0; border-bottom: 1px solid var(--rf-hair); }
.lp-nav .btn { min-height: 38px; padding: 7px 18px; font-size: .9rem; border-radius: var(--rf-r2); }
.lp-orbit { opacity: .22; inset-inline-end: -14%; }
.lp-orbit .spark-orbit { opacity: .7; }

.lp-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); align-items: start; gap: clamp(36px, 6vw, 96px); padding-top: clamp(44px, 8vw, 96px); }
.lp-copy h1 { font-size: clamp(2rem, 4vw, 3.05rem); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; max-width: 15ch; margin-bottom: 18px; }
.lp-copy .lead { font-size: 1.04rem; line-height: 2; max-width: 44ch; margin-bottom: 28px; }
.lp-actions .btn { border-radius: var(--rf-r2); }
.lp-actions .btn-gold { background: var(--gold); border-color: var(--gold); color: var(--accent-ink); box-shadow: none; font-weight: 600; }
.lp-actions .btn-gold:hover { filter: brightness(1.08); }
.lp-note { font-size: .84rem; margin-top: 16px; }

.lc-panel, .dc { border-radius: var(--rf-r1); box-shadow: var(--rf-shadow); border-color: var(--rf-hair-2); }
.lc-panel { background: var(--rf-surface); }
.lc-head { padding: 11px 16px; font-size: .84rem; border-bottom-color: var(--rf-hair); }
.lc-row { padding: 12px 16px; }
.lc-row b { font-size: .88rem; font-weight: 500; }
.lc-row.is-on { background: color-mix(in srgb, var(--gold) 5%, transparent); }
.lc-link { height: 22px; background: var(--rf-hair-2); }

.lp-modules { padding-top: clamp(48px, 7vw, 88px); }
.lp-modules h2, .lp-trust h2 { font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; }
.lp-ledger { border-top-color: var(--rf-hair-2); }
.lp-ledger li { padding: 22px 0; border-bottom-color: var(--rf-hair); }
.lp-ledger li:hover .ico { transform: none; }
.lp-ledger .ico { color: var(--text-dim); stroke-width: 1.5; }
.lp-ledger li:hover .ico { color: var(--gold); }
.lp-ledger h3 { font-size: 1.02rem; }
.lp-ledger p { font-size: .9rem; }
.lp-facts { border-radius: var(--rf-r1); background: var(--rf-surface); border-color: var(--rf-hair-2); }
.lp-fact + .lp-fact { border-inline-start-color: var(--rf-hair); }
.pl-badge { border-radius: var(--rf-r3); }

/* ---------- محاكي ديسكورد (الصفحة العامة) — أقرب لتطبيق ديسكورد نفسه ---------- */
.dc { font-size: .88rem; }
.dc-server { padding: 12px 14px; font-size: .9rem; box-shadow: 0 1px 0 rgba(0,0,0,.24), 0 1.5px 0 rgba(0,0,0,.05); }
.dc-ch { border-radius: var(--rf-r3); padding: 4px 8px; font-size: .86rem; }
.dc-ch.active { background: #404249; }
.dc-ch:hover { background: #35373c; }
.dc-head { padding: 11px 16px; font-size: .9rem; box-shadow: 0 1px 0 rgba(0,0,0,.24), 0 1.5px 0 rgba(0,0,0,.05); }
.dc-msg { padding: 2px 16px; margin-top: 14px; }
.dc-msg:hover { background: #2e3035; }
.dc-av { width: 38px; height: 38px; font-size: .95rem; }
.dc-who b { font-size: .92rem; font-weight: 500; }
.dc-time { font-size: .68rem; }
.dc-tag { border-radius: 3px; font-size: .58rem; padding: 1px 4px; }
.dc-body { font-size: .9rem; line-height: 1.5; }
.dc-embed { max-width: 400px; background: #2b2d31; border-radius: var(--rf-r3); border: 1px solid rgba(255,255,255,.04); border-inline-start: 4px solid var(--c, #5865f2); padding: 8px 14px 12px 12px; }
.dc-embed h4 { font-size: .92rem; font-weight: 600; }
.dc-embed p { font-size: .86rem; color: #dbdee1; }
.dc-bar { height: 6px; background: #1e1f22; }
.dc-btn { border-radius: 3px; padding: 0 14px; min-height: 32px; font-size: .84rem; font-weight: 500; background: #4e5058; }
.dc-btn:hover { background: #6d6f78; }
.dc-btn.blurple { background: #5865f2; } .dc-btn.blurple:hover { background: #4752c4; }
.dc-btn.green { background: #248046; } .dc-btn.red { background: #da373c; }
.dc-btn.pressed { transform: none; filter: brightness(.88); }
.dc-compose { margin: 0 16px 14px; background: #383a40; border-radius: var(--rf-r2); }
.dc-input { background: transparent; }
.dc-hint { color: #80848e; font-size: .76rem; }
.dc-react { border-radius: var(--rf-r2); background: rgba(88,101,242,.15); border-color: rgba(88,101,242,.6); }

/* ---------- معاينات ديسكورد داخل اللوحة (منشئ الرسائل واللوحات) ---------- */
.preview-label { font-size: .74rem; font-weight: 500; color: var(--text-dim); margin-bottom: 8px; }
.discord-preview { background: #313338; border: 1px solid var(--rf-hair-2); border-radius: var(--rf-r1); padding: 14px 16px 16px; box-shadow: var(--rf-shadow); font-size: .9rem; line-height: 1.5; }
.discord-preview-user { gap: 10px; margin-bottom: 6px; font-weight: 500; font-size: .94rem; color: #f2f3f5; }
.preview-avatar { width: 38px; height: 38px; }
.embed-preview { background: #2b2d31; border: 1px solid rgba(255,255,255,.04); border-inline-start: 4px solid var(--blurple); border-right-width: 1px; border-radius: var(--rf-r3); padding: 8px 14px 12px 12px; max-width: 440px; }
html[dir="rtl"] .embed-preview { border-right: 4px solid var(--blurple); border-left: 1px solid rgba(255,255,255,.04); border-inline-start: 0; }
.preview-title { font-size: .94rem; font-weight: 600; margin-bottom: 4px; }
.preview-desc { font-size: .88rem; color: #dbdee1; line-height: 1.55; }
.preview-footer { font-size: .72rem; opacity: .75; margin-top: 8px; }
.preview-buttons { gap: 8px; margin-top: 8px; }
.preview-buttons > * { border-radius: 3px; min-height: 32px; padding: 0 14px; font-size: .84rem; font-weight: 500; display: inline-flex; align-items: center; }

/* ---------- اللوحة والدخول ---------- */
.card, .panel, .picker-card { border-radius: var(--rf-r1); }
.btn { border-radius: var(--rf-r2); }
.empty-state { border-radius: var(--rf-r1); }
.user-chip { border-radius: var(--rf-r2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-orbit { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-orbit .spark-orbit, .lc-head i { animation: none; } }
