/* هوية شهد بيوتي — الألوان والخطوط مأخوذة من دليل الهوية الرسمي */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

@font-face { font-family: 'Roylles'; src: url('/brand/fonts/Roylles.otf') format('opentype'); font-display: swap; }
@font-face { font-family: 'Luxenta'; src: url('/brand/fonts/Luxenta-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Luxenta'; src: url('/brand/fonts/Luxenta-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Luxenta'; src: url('/brand/fonts/Luxenta-SemiBold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'VIP Hakm'; src: url('/brand/fonts/VIPHakm-Thin.ttf') format('truetype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'VIP Hakm'; src: url('/brand/fonts/VIPHakm-Regular.ttf') format('truetype'); font-weight: 400 500; font-display: swap; }
@font-face { font-family: 'VIP Hakm'; src: url('/brand/fonts/VIPHakm-Bold.ttf') format('truetype'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'GE Smooth'; src: url('/brand/fonts/GESmooth-Light.otf') format('opentype'); font-display: swap; }

:root {
  /* ألوان الهوية الثلاثة */
  --pink: #ef5392;
  --cream: #fae2d6;
  --navy: #1e0044;
  /* درجات مشتقة منها */
  --pink-deep: #dc1f76;
  --pink-light: #f58ab4;
  --pink-wash: #fdeaf1;
  --cream-soft: #fdf4ef;
  --paper: #fffaf7;
  --line: #f3dccf;
  --ink: #1e0044;
  --muted: #5a4a76;
  --ok: #1f7a55; --ok-soft: #e1f3ea;
  --warn: #9a5b06; --warn-soft: #fdeed3;
  --bad: #b3264a; --bad-soft: #fbe1e7;
  --grad: linear-gradient(180deg, #e63a84 0%, #dc2278 48%, #c21268 100%);
  --shadow: 0 18px 50px -22px rgba(30, 0, 68, .28);
  --radius: 22px;
  --body: 'Luxenta', 'Tajawal', 'Geeza Pro', sans-serif;
  --head: 'Luxenta', 'Tajawal', 'Geeza Pro', sans-serif;
  --display: 'Roylles', 'Luxenta', serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-soft);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.35; font-family: var(--head); font-weight: 800; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink-deep); text-underline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.latin { font-family: var(--display); direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }
[hidden] { display: none !important; }

/* نقشة الشعار المتكررة */
.pattern { position: absolute; inset: 0; background-size: 250px auto; pointer-events: none; }
.pattern.cream { background-image: url('/brand/pattern-cream.svg'); }
.pattern.pink { background-image: url('/brand/pattern-pink.svg'); }
.pattern.fade { -webkit-mask-image: linear-gradient(180deg, transparent 25%, #000 100%); mask-image: linear-gradient(180deg, transparent 25%, #000 100%); }

/* الحقول */
label.field { display: block; margin-bottom: 18px; }
label.field > span { display: block; font-weight: 700; font-size: 16px; margin-bottom: 7px; }
label.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=date], input[type=url], select, textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ef5392' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 16px center; background-size: 12px; }
textarea { min-height: 104px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #b8a9c6; }
input:hover, select:hover, textarea:hover { border-color: var(--pink-light); }
input:focus, select:focus, textarea:focus { border-color: var(--pink); background-color: #fff; box-shadow: 0 0 0 4px rgba(239, 83, 146, .16); }
.ltr { direction: ltr; text-align: left; }

/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 34px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: linear-gradient(180deg, var(--pink) 0%, var(--pink-deep) 100%); color: #fff;
  font-weight: 700; font-size: 18px;
  box-shadow: 0 12px 26px -12px rgba(220, 31, 118, .75);
  transition: transform .15s, box-shadow .2s, filter .2s;
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 16px 30px -12px rgba(220, 31, 118, .85); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.cream { background: var(--cream); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(30, 0, 68, .55); }
.btn.navy { background: var(--navy); color: var(--cream); box-shadow: 0 12px 26px -14px rgba(30, 0, 68, .8); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--pink-wash); border-color: var(--pink-light); filter: none; }
.btn.small { padding: 8px 18px; font-size: 15px; font-weight: 600; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad-soft); box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); filter: none; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.choice input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.msg { padding: 13px 18px; border-radius: 14px; margin: 14px 0; font-weight: 500; }
.msg.err { background: var(--bad-soft); color: var(--bad); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }

/* خيارات نوع التعاون */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span {
  display: block; height: 100%; padding: 16px 18px; padding-inline-end: 50px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.choice span::after {
  content: ''; position: absolute; inset-inline-end: 16px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; transition: all .18s;
}
.choice span b { display: block; font-weight: 700; }
.choice span small { color: var(--muted); font-size: 15px; }
.choice:hover span { border-color: var(--pink-light); }
.choice input:checked + span { border-color: var(--pink); background: var(--pink-wash); box-shadow: 0 0 0 1px var(--pink); }
.choice input:checked + span::after {
  border-color: var(--pink); background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.pill { display: inline-block; padding: 3px 13px; border-radius: 99px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.pill.new { background: var(--warn-soft); color: var(--warn); }
.pill.accepted { background: var(--ok-soft); color: var(--ok); }
.pill.rejected { background: var(--bad-soft); color: var(--bad); }
.pill.paused { background: #ece7f1; color: var(--muted); }
.pill.type { background: var(--pink-wash); color: var(--pink-deep); font-weight: 500; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid2, .choices { grid-template-columns: 1fr; }
  .card { padding: 20px; border-radius: 18px; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } html { scroll-behavior: auto; } }
