@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Cairo:wght@400;600;700&display=swap');

* { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Cairo', system-ui, sans-serif;
  background: #0e1420; color: #e8eaf0; min-height: 100vh;
}
a { color: #d9b45b; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: #0a0f18; border-bottom: 1px solid #1e2735;
  position: sticky; top: 0; z-index: 10;
}
.brand { font-size: 28px; font-weight: 700; color: #d9b45b; }
.brand-en { font-size: 11px; letter-spacing: 3px; color: #6b7688; margin-inline-start: 8px; }
nav a { color: #cfd6e2; text-decoration: none; margin-inline-start: 18px; font-weight: 600; }
nav a.active, nav a:hover { color: #d9b45b; }

main { max-width: 1100px; margin: 0 auto; padding: 24px 18px 60px; }
.hero { text-align: center; margin: 26px 0 34px; }
.hero h1 { font-size: 34px; margin: 0 0 10px; color: #f3ead3; }
.hero p { color: #9aa5b5; max-width: 640px; margin: 0 auto; line-height: 1.8; }

.layout { display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 26px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.panel { background: #131b29; border: 1px solid #223048; border-radius: 16px; padding: 22px; }
.panel h2 { font-size: 17px; color: #d9b45b; margin: 18px 0 12px; }
.panel h2:first-child { margin-top: 0; }
label { display: block; margin-bottom: 12px; font-size: 14px; color: #b9c2d0; }
select, input[type=number] {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid #2a3a55; background: #0d141f; color: #e8eaf0;
  font-family: inherit; font-size: 15px;
}
.row { display: flex; gap: 12px; }
.row label { flex: 1; }

.templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.tmpl { border-radius: 12px; padding: 12px 8px; text-align: center; cursor: pointer;
  border: 2px solid transparent; font-size: 13px; font-weight: 600; }
.tmpl.sel { border-color: #d9b45b; box-shadow: 0 0 0 2px #d9b45b33; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  border: 0; border-radius: 10px; padding: 11px 18px; font-family: inherit;
  font-size: 15px; font-weight: 700; cursor: pointer; background: #223148; color: #dfe5ee;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { background: #2f6df6; color: #fff; }
.btn.gold { background: #d9b45b; color: #1a1405; }
.btn.ghost { background: transparent; border: 1px solid #2a3a55; }

.check { margin-top: 14px; font-size: 13px; color: #8b94a5; }
.status { margin-top: 14px; font-size: 14px; line-height: 1.9; min-height: 22px; white-space: pre-line; }
.status.err { color: #ff8a8a; }
.status.ok { color: #7fe0a8; }
.hint { font-size: 12.5px; color: #77828f; margin-top: 10px; }

.stage { position: sticky; top: 80px; text-align: center; }
canvas#cv {
  width: 100%; max-width: 380px; border-radius: 18px; border: 1px solid #223048;
  background: #000; box-shadow: 0 18px 50px #0009;
}
.dl { margin-top: 14px; font-size: 14px; }
.dl a { display: inline-block; margin: 4px 6px; }

.how { margin-top: 60px; }
.how h2 { text-align: center; color: #f3ead3; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.card { background: #131b29; border: 1px solid #223048; border-radius: 14px; padding: 18px; }
.card b { color: #d9b45b; }
.card p { color: #9aa5b5; font-size: 14px; line-height: 1.8; margin: 8px 0 0; }

footer { border-top: 1px solid #1e2735; padding: 22px; text-align: center; color: #6b7688; font-size: 12.5px; line-height: 1.9; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.plan { background: #131b29; border: 1px solid #223048; border-radius: 16px; padding: 26px; position: relative; }
.plan.hot { border-color: #d9b45b; }
.plan h3 { margin: 0 0 4px; font-size: 20px; color: #f3ead3; }
.plan .price { font-size: 30px; font-weight: 700; color: #d9b45b; margin: 10px 0 16px; }
.plan .price small { font-size: 13px; color: #8b94a5; font-weight: 400; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plan li { padding: 7px 0; color: #b9c2d0; font-size: 14.5px; border-bottom: 1px dashed #223048; }
.plan li::before { content: '✓ '; color: #7fe0a8; }
.badge { position: absolute; top: -12px; inset-inline-start: 20px; background: #d9b45b; color: #1a1405;
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 20px; }
.soon { background: #223148; color: #8fa0b8; cursor: not-allowed; }
.note { background: #131b29; border: 1px solid #223048; border-radius: 14px; padding: 18px 22px;
  margin-top: 30px; color: #9aa5b5; font-size: 14.5px; line-height: 2; }
