/* عصفورة ستوديو — الأساس المشترك (الخطوط + الألوان + العناصر) */
@font-face { font-family: 'Alexandria'; src: url(/fonts/alexandria-arabic.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Alexandria'; src: url(/fonts/alexandria-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Plex'; src: url(/fonts/ibmplexsansarabic-400-arabic.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex'; src: url(/fonts/ibmplexsansarabic-500-arabic.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex'; src: url(/fonts/ibmplexsansarabic-700-arabic.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Plex'; src: url(/fonts/ibmplexsansarabic-400-latin.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex'; src: url(/fonts/ibmplexsansarabic-700-latin.woff2) format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Baloo'; src: url(/fonts/baloobhaijaan2-400_800-arabic.woff2) format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Baloo'; src: url(/fonts/baloobhaijaan2-400_800-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap; unicode-range: U+0000-00FF; }

:root {
  --ink: #0c0b10;        /* خلفية غرفة المونتاج */
  --ink-2: #15131c;
  --ink-3: #1f1c29;
  --line: #2c2838;
  --paper: #f4f1ea;      /* نص فاتح دافي */
  --mute: #a19bb1;
  --mute-2: #6f6982;
  /* ألوان المسارات مثل برامج المونتاج */
  --c-video: #3ee0c4;    /* مسار الصورة */
  --c-audio: #9cf35a;    /* مسار الصوت */
  --c-text: #b48cff;     /* مسار الكتابة */
  --c-fx: #ff6b8b;       /* مسار المؤثرات */
  --c-amber: #ffc24a;
  --rec: #ff3b4d;
  --radius: 16px;
  --f-display: 'Alexandria', 'Plex', system-ui, sans-serif;
  --f-body: 'Plex', 'Alexandria', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.7 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; unicode-bidi: isolate; letter-spacing: .02em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 700 16px/1 var(--f-display); text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--paper); color: var(--ink); }
.btn-main:hover { background: #fff; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--mute-2); }
.btn-wa { background: #25d366; color: #062b16; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2); font: 500 13px/1 var(--f-display); color: var(--mute); }

/* توقيع عصفورة — كل ذكر لعصفورة يروح لموقعها */
.sig { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mute); font-size: 14px; }
.sig img { width: 30px; height: 30px; object-fit: contain; }
.sig b { font: 800 22px/1 'Baloo', var(--f-display); color: var(--paper); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand > a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span { font: 800 22px/1 'Baloo', var(--f-display); letter-spacing: 0; }
.brand small { font: 500 12px/1 var(--f-display); color: var(--c-video); border: 1px solid rgba(62,224,196,.35); padding: 4px 8px; border-radius: 999px; }

.field { display: grid; gap: 6px; }
.field label { font: 500 13px/1.4 var(--f-display); color: var(--mute); }
.field input, .field textarea, .field select { width: 100%; background: var(--ink-2); border: 1px solid var(--line); color: var(--paper); border-radius: 12px; padding: 12px 14px; font: 400 16px/1.5 var(--f-body); outline: none; transition: border-color .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--c-video); }

.toast { position: fixed; inset-inline: 16px; bottom: 20px; margin-inline: auto; max-width: 420px; background: var(--paper); color: var(--ink); padding: 14px 18px; border-radius: 14px; font: 600 15px/1.5 var(--f-display); text-align: center; z-index: 999; box-shadow: 0 12px 40px rgba(0,0,0,.5); transform: translateY(24px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s, visibility 0s .35s; }
.toast.on { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s cubic-bezier(.2,.9,.3,1.2), opacity .25s; }
.toast.bad { background: var(--rec); color: #fff; }

.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 0 rgba(255,59,77,.6); animation: recPulse 1.6s infinite; flex: none; }
@keyframes recPulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,77,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,59,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,77,0); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
