@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@500;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --ink: #141414;
  --paper: #fffdf7;
  --muted: #6b6680;
  --line: #e9e4d8;
  --pink: #ff9eb5;
  --orange: #ff8a3d;
  --yellow: #ff8a3d;
  --blue: #45b8e8;
  --green: #45b8e8;
  --stripe-o: repeating-linear-gradient(-55deg, #ff8a3d 0 7px, #fff 7px 13px);
  --stripe-b: repeating-linear-gradient(-55deg, #45b8e8 0 7px, #fff 7px 13px);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Tajawal', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(#e9e4d8 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.7;
}
h1, h2, h3, .brand { font-family: 'Baloo Bhaijaan 2', 'Tajawal', sans-serif; line-height: 1.25; margin: 0; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.top { padding: 20px 0; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 26px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.brand .dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--ink); background: var(--yellow); display: grid; place-items: center; font-size: 18px; }

.hero { padding: 30px 0 50px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
.hero h1 mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: inherit; padding: 0 4px; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
.price-tag { display: inline-flex; gap: 8px; align-items: baseline; border: 3px solid var(--ink); border-radius: 999px; padding: 6px 18px; background: #fff; font-weight: 700; transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--ink); }
.price-tag b { font-family: 'Baloo Bhaijaan 2'; font-size: 26px; }

.sheet-stack { position: relative; height: 360px; }
.sheet { position: absolute; width: 230px; height: 300px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); display: grid; place-items: center; }
.sheet svg { width: 80%; height: auto; }
.sheet.s1 { top: 30px; right: 10px; transform: rotate(6deg); }
.sheet.s2 { top: 10px; right: 140px; transform: rotate(-5deg); }
.sheet.s3 { top: 60px; right: 260px; transform: rotate(3deg); background: #fff8e1; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 50px; }
.step { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step .n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: 'Baloo Bhaijaan 2'; font-weight: 800; font-size: 20px; border: 2.5px solid var(--ink); margin-bottom: 10px; }
.step:nth-child(1) .n { background: var(--pink); }
.step:nth-child(2) .n { background: var(--yellow); }
.step:nth-child(3) .n { background: var(--blue); }
.step h3 { font-size: 20px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }

.card { background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink); padding: 32px; margin-bottom: 60px; }
.card h2 { font-size: 30px; margin-bottom: 6px; }
.card .sub { color: var(--muted); margin: 0 0 24px; }

form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label.lbl { font-weight: 700; font-size: 15px; }
label.lbl small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea, select {
  font: inherit; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--paper); outline: none; transition: border-color .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--ink); }
textarea { resize: vertical; min-height: 80px; }

.drop { border: 3px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; cursor: pointer; background: var(--paper); transition: .15s; position: relative; }
.drop:hover, .drop.over { border-color: var(--pink); background: #fff3f7; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ico { font-size: 38px; }
.drop .preview { display: none; align-items: center; gap: 16px; justify-content: center; }
.drop.has .preview { display: flex; }
.drop.has .empty { display: none; }
.drop .preview img { width: 90px; height: 90px; object-fit: cover; border-radius: 16px; border: 3px solid var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; cursor: pointer; font: inherit; font-weight: 500; transition: .12s; user-select: none; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--yellow); border-color: var(--ink); font-weight: 700; }
.chip.custom { background: var(--green); border-color: var(--ink); }
.chip.custom::after { content: ' ✕'; font-size: 12px; }
.add-row { display: flex; gap: 8px; margin-top: 10px; }
.add-row input { flex: 1; }

.seg { display: flex; gap: 8px; }
.seg label { flex: 1; }
.seg input { display: none; }
.seg span { display: block; text-align: center; border: 2px solid var(--line); border-radius: 14px; padding: 11px; cursor: pointer; font-weight: 500; background: var(--paper); }
.seg input:checked + span { border-color: var(--ink); background: #e8f4ff; font-weight: 700; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ink); }

.btn { font: inherit; font-family: 'Baloo Bhaijaan 2'; font-weight: 800; font-size: 20px; border: 3px solid var(--ink); background: var(--pink); color: var(--ink); border-radius: 16px; padding: 12px 28px; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.alt { background: var(--yellow); }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.err { color: #d1264f; font-weight: 700; min-height: 1.5em; }

footer { text-align: center; color: var(--muted); padding: 20px 0 40px; font-size: 14px; }

/* صفحة الطلب */
.status-card { text-align: center; }
.status-card .big { font-size: 64px; }
.status-card h2 { margin: 10px 0 6px; }
.progress { height: 14px; background: var(--paper); border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; max-width: 420px; margin: 22px auto; }
.progress i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(45deg, var(--yellow) 0 12px, var(--pink) 12px 24px); animation: slide 1.4s linear infinite; }
@keyframes slide { from { transform: translateX(260%); } to { transform: translateX(-120%); } }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; margin-top: 26px; text-align: start; }
.gallery a { display: block; text-decoration: none; background: #fff; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 4px 4px 0 var(--ink); }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: contain; display: block; background: #fff; }
.gallery span { display: block; padding: 6px 10px; font-weight: 700; border-top: 2px solid var(--line); font-size: 14px; }
.hint { color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .sheet-stack { height: 300px; transform: scale(.8); transform-origin: top right; }
  .steps { grid-template-columns: 1fr; }
  form .grid { grid-template-columns: 1fr; }
  .card { padding: 22px; box-shadow: 5px 5px 0 var(--ink); }
}

/* ===== ColorMe Toon brand ===== */
.brand img { width: 54px; height: 54px; }
.brand { font-family: 'Baloo Bhaijaan 2', sans-serif; letter-spacing: .3px; }
.brand b { color: var(--orange); }
.brand i { font-style: normal; color: var(--blue); }
.hero h1 mark { background: linear-gradient(transparent 58%, rgba(255,138,61,.45) 58%); }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; display: block; border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink); background: #fff; }
.hero-art::before { content: ''; position: absolute; inset: 18px -14px -14px 18px; border-radius: 28px; background: var(--stripe-b); border: 3px solid var(--ink); z-index: -1; }
.price-tag { background: #fff; }
.price-tag b { color: var(--orange); }

.btn { background: var(--orange); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.alt { background: #fff; color: var(--ink); text-shadow: none; }
.chip.on { background: var(--stripe-o); }
.chip.on, .chip.custom { color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.chip.custom { background: var(--stripe-b); }
.drop:hover, .drop.over { border-color: var(--orange); background: #fff6ef; }
.seg input:checked + span { background: #eaf7fd; }
.progress i { background: repeating-linear-gradient(-55deg, var(--orange) 0 12px, var(--blue) 12px 24px); }

.step { text-align: center; padding-top: 10px; }
.step img { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto 4px; }
.step .n { margin: 0 auto 8px; color: #fff; }
.step:nth-child(1) .n { background: var(--orange); }
.step:nth-child(2) .n { background: var(--blue); }
.step:nth-child(3) .n { background: var(--ink); }

.examples { margin-bottom: 60px; }
.examples .head { text-align: center; margin-bottom: 26px; }
.examples h2 { font-size: 34px; }
.examples .head p { color: var(--muted); margin: 6px 0 0; }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ex { background: #fff; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s; }
.ex:nth-child(odd) { transform: rotate(-1.5deg); }
.ex:nth-child(even) { transform: rotate(1.5deg); }
.ex:hover { transform: rotate(0) translateY(-4px); }
.ex img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.ex span { display: block; padding: 8px 12px; font-weight: 700; border-top: 3px solid var(--ink); }
.ex:nth-child(odd) span { background: #fff1e6; }
.ex:nth-child(even) span { background: #eaf7fd; }

.status-card .mascot { width: 170px; height: 170px; object-fit: contain; }
@media (max-width: 820px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
html, body { overflow-x: hidden; }
.brand span { white-space: nowrap; }
.step img, .status-card .mascot { mix-blend-mode: multiply; }
@media (max-width: 820px) {
  header.top .btn { display: none; }
  .brand img { width: 46px; height: 46px; }
  .hero-art { margin: 0 8px 0 14px; }
  .hero-art::before { inset: 12px -10px -10px 12px; }
  .hero h1 { font-size: 34px; }
}

/* ---------- الدفع اليدوي ---------- */
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; text-align: center; }
.pay-opt { border: 3px solid var(--ink); border-radius: 18px; padding: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); }
.pay-opt h3 { margin: 0 0 10px; }
.pay-opt .qr { width: 180px; max-width: 100%; display: block; margin: 0 auto 10px; }
.copy-row { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.copy-row code { direction: ltr; background: #f4f4f4; border: 2px dashed var(--ink); border-radius: 10px; padding: 6px 12px; font-size: 15px; word-break: break-all; }
.copy-row.big-num code { font-size: 24px; font-weight: 700; letter-spacing: 1px; }
.copy { border: 2px solid var(--ink); background: var(--green); border-radius: 999px; padding: 4px 14px; font: inherit; font-weight: 700; cursor: pointer; }
.btn.small { font-size: 16px; padding: 8px 18px; }
.receipt-form { text-align: right; display: grid; gap: 10px; max-width: 460px; margin: 10px auto 0; }
.receipt-form .btn { justify-self: center; margin-top: 6px; }
.err-box { background: #fff1ec; border: 2px solid var(--yellow); border-radius: 12px; padding: 10px; }
.receipt-form .err { color: #c0392b; min-height: 1em; margin: 0; }
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } }
.admin-bar { position: sticky; top: 0; z-index: 50; background: #ffd6f0; border-bottom: 3px solid var(--ink); padding: 10px 16px; text-align: center; font-weight: 700; }

/* ---------- نماذج من شغلنا ---------- */
.gal-kids { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.gal-kid { width: 66px; height: 66px; border-radius: 50%; border: 3px solid var(--ink); padding: 0; overflow: hidden; background: #fff; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s; }
.gal-kid img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.gal-kid:hover { transform: translateY(-3px); }
.gal-kid.on { outline: 4px solid var(--orange); outline-offset: 3px; transform: scale(1.08); }
.gal-show { display: grid; grid-template-columns: 220px 40px 1fr; gap: 14px; align-items: center; }
.gal-photo { margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 18px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); transform: rotate(-1.5deg); }
.gal-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.gal-photo figcaption { text-align: center; font-weight: 700; padding: 6px; border-top: 3px solid var(--ink); background: var(--stripe-b); }
.gal-arrow { font-size: 40px; font-weight: 900; text-align: center; color: var(--orange); }
.gal-pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-page { padding: 0; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 4px 4px 0 var(--ink); transition: transform .15s; }
.gal-page:hover { transform: translateY(-3px) rotate(-1deg); }
.gal-page img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.gal-tags { text-align: center; margin: 22px 0 6px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.gal-tags span { border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; background: #fff; font-size: 15px; }
.gal-note { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20,20,20,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 640px); max-height: 88vh; border-radius: 14px; border: 4px solid #fff; background: #fff; }
.lb-x { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--ink); background: #fff; font-size: 20px; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--ink); background: var(--orange); color: #fff; font-size: 30px; font-weight: 900; cursor: pointer; line-height: 1; }
.lb-prev { right: 16px; } .lb-next { left: 16px; }
@media (max-width: 760px) {
  .gal-show { grid-template-columns: 1fr; }
  .gal-photo { width: 60%; margin: 0 auto; }
  .gal-arrow { transform: rotate(-90deg); }
  .gal-pages { grid-template-columns: repeat(2, 1fr); }
  .gal-kid { width: 54px; height: 54px; }
}
