/* ==========================================================================
   Seeratak — premium dark. Mobile first.
   Navy night background, champagne-gold actions, violet light.
   The resume itself stays white paper: it's the hero object on the dark stage.
   ========================================================================== */

:root {
  --bg: #070b1e;
  --bg-2: #0b1130;
  --panel: rgba(255, 255, 255, .045);
  --panel-2: rgba(255, 255, 255, .075);
  --panel-solid: #111836;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .18);
  --text: #eef0fb;
  --muted: #a6acce;
  --dim: #737a9f;
  --gold: #e8c37e;
  --gold-2: #f6dfae;
  --gold-3: #c99a4b;
  --gold-ink: #1d1505;
  --violet: #7c6cff;
  --violet-2: #a99dff;
  --ok: #3ddc97;
  --warn: #f5b85c;
  --danger: #ff7a85;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --topbar-h: 68px;
  --bar-h: 78px;
  --font: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gold-grad: linear-gradient(135deg, #f6dfae 0%, #e8c37e 45%, #c99a4b 100%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.7;
  background: var(--bg); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(124, 108, 255, .22), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(232, 195, 126, .10), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(124, 108, 255, .12), transparent 60%);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 600; }
p { margin: 0; }
a { color: var(--gold); text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
::selection { background: rgba(232, 195, 126, .35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.ic { flex: none; display: block; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-gold { background: var(--gold-grad); color: var(--gold-ink); box-shadow: 0 10px 30px -10px rgba(232, 195, 126, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { box-shadow: 0 14px 36px -10px rgba(232, 195, 126, .75), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-glass { background: var(--panel-2); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { background: transparent; color: var(--muted); border: 0; min-height: 40px; padding: 0 12px; font-weight: 500; font-size: 14.5px; }
.btn-ghost:hover { color: var(--text); background: var(--panel); }
.btn-danger { background: rgba(255, 122, 133, .12); color: var(--danger); border-color: rgba(255, 122, 133, .3); }
.btn-ok { background: rgba(61, 220, 151, .14); color: var(--ok); border-color: rgba(61, 220, 151, .35); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); color: var(--text); }

.glass { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pill .ic { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.tag-gold { background: rgba(232, 195, 126, .15); color: var(--gold-2); }
.tag-ok { background: rgba(61, 220, 151, .14); color: var(--ok); }
.tag-warn { background: rgba(245, 184, 92, .14); color: var(--warn); }
.tag-danger { background: rgba(255, 122, 133, .14); color: var(--danger); }
.tag-dim { background: var(--panel-2); color: var(--muted); }

.demo-banner { background: rgba(232, 195, 126, .14); color: var(--gold-2); border-bottom: 1px solid rgba(232, 195, 126, .25); text-align: center; font-size: 13.5px; padding: 8px 16px; line-height: 1.5; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(7, 11, 30, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-grad); display: grid; place-items: center; color: var(--gold-ink); box-shadow: 0 6px 20px -6px rgba(232, 195, 126, .6); }
.topnav { display: none; gap: 2px; margin-inline-start: 28px; }
.topnav a { color: var(--muted); padding: 8px 14px; border-radius: 10px; font-size: 15px; }
.topnav a:hover { color: var(--text); background: var(--panel); }
.topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.topbar-cta { display: none; min-height: 42px; }
@media (min-width: 960px) {
  .topnav { display: flex; }
  .topbar-cta { display: inline-flex; margin-inline-start: 8px; }
}
body.in-app .topnav, body.in-app .topbar-cta { display: none; }

/* ---------- Home: hero ---------- */
.hero { padding: 44px 0 40px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-title { font-size: clamp(2rem, 7.6vw, 3.6rem); font-weight: 700; line-height: 1.25; margin-top: 18px; letter-spacing: -0.01em; }
[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.4; }
.hero-sub { margin-top: 18px; color: var(--muted); font-size: clamp(1.02rem, 2.6vw, 1.18rem); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn { flex: 1 1 210px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; color: var(--muted); font-size: 14.5px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .ic { color: var(--ok); }
@media (min-width: 1024px) {
  .hero { padding: 72px 0 70px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 60px; }
  .hero-actions .btn { flex: 0 0 auto; }
}

.hero-stage { position: relative; max-width: 520px; width: 100%; margin: 0 auto; padding: 24px 10px 30px; }
.hero-stage::before { content: ""; position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(124, 108, 255, .45), transparent); filter: blur(40px); z-index: 0; }
.hero-paper { position: relative; z-index: 1; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); transform: rotate(-2deg); background: #fff; }
[dir="rtl"] .hero-paper { transform: rotate(2deg); }
.hero-paper .fit-inner { aspect-ratio: 794 / 980; overflow: hidden; }
.float-card { position: absolute; z-index: 2; padding: 14px 16px; border-radius: var(--r-md); background: rgba(17, 24, 54, .82); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.float-score { inset-inline-end: -6px; top: 30%; display: flex; align-items: center; gap: 12px; }
.float-score small { display: block; color: var(--muted); font-size: 12.5px; }
.float-score b { font-size: 15px; }
.float-chip { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 500; padding: 10px 14px; }
.float-chip .ic { color: var(--gold); }
.chip-a { inset-inline-start: -8px; top: 58%; }
.chip-b { inset-inline-start: 4%; bottom: 4%; }
.chip-b .ic { color: var(--ok); }
@media (min-width: 640px) { .float-score { inset-inline-end: -30px; } .chip-a { inset-inline-start: -34px; } }
@keyframes bob { 50% { transform: translateY(-6px); } }
.float-card { animation: bob 6s ease-in-out infinite; }
.chip-a { animation-delay: -2s; }
.chip-b { animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* Ring (score) */
.ring { --v: 0; --size: 64px; --c: var(--gold); width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), rgba(255, 255, 255, .1) 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--panel-solid); }
.ring b { position: relative; font-size: calc(var(--size) * .26); font-weight: 700; }
.ring-lg { --size: 108px; }
.ring-lg::before { inset: 9px; }

/* ---------- Home: sections ---------- */
.markets { padding: 10px 0 30px; text-align: center; }
.markets p { color: var(--dim); font-size: 14px; margin-bottom: 14px; }
.markets-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4.8vw, 2.6rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 17px; }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 26px; transition: border-color .2s, transform .2s; }
.feature:hover { border-color: rgba(232, 195, 126, .35); transform: translateY(-3px); }
.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--gold); background: linear-gradient(135deg, rgba(232, 195, 126, .18), rgba(124, 108, 255, .14)); border: 1px solid rgba(232, 195, 126, .25); margin-bottom: 18px; }
.feature h3 { font-size: 18px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.stages { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.stage-card { padding: 24px; position: relative; }
.stage-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--gold-grad); color: var(--gold-ink); margin-bottom: 16px; }
.stage-card h3 { font-size: 17px; }
.stage-card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 18px 18px; max-width: 1200px; margin: 0 auto; scrollbar-width: thin; }
@media (min-width: 640px) { .gallery { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 24px; } }
.tpl-card { scroll-snap-align: start; padding: 14px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; text-align: start; color: var(--text); transition: border-color .2s, transform .2s; }
.tpl-card:hover { border-color: rgba(232, 195, 126, .4); transform: translateY(-4px); }
.tpl-card .fit-inner { aspect-ratio: 794 / 1000; border-radius: 8px; overflow: hidden; background: #fff; }
.tpl-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px; }
.tpl-meta b { font-size: 16px; }
.tpl-meta span { color: var(--muted); font-size: 13px; }

.ats-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .ats-grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ats-copy h2 { font-size: clamp(1.7rem, 4.6vw, 2.4rem); font-weight: 700; }
.ats-copy > p { color: var(--muted); margin-top: 16px; font-size: 17px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.check-list .ic { color: var(--gold-ink); background: var(--gold); border-radius: 50%; padding: 3px; width: 24px; height: 24px; }
.report { padding: 26px; }
.report-head { display: flex; gap: 18px; align-items: center; }
.report-head small { color: var(--muted); display: block; }
.report-head b { font-size: 19px; }

.bars { display: grid; gap: 12px; margin-top: 18px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; color: var(--muted); }
.bar-row b { color: var(--text); }
.bar { grid-column: 1 / -1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--gold-grad); transition: width .6s ease; }
.kw { display: flex; flex-wrap: wrap; gap: 7px; }
.kw span { padding: 4px 12px; border-radius: 999px; font-size: 13px; background: rgba(124, 108, 255, .14); color: var(--violet-2); border: 1px solid rgba(124, 108, 255, .3); }
.kw.missing span { background: rgba(245, 184, 92, .12); color: var(--warn); border-color: rgba(245, 184, 92, .3); }

.pricing-grid { display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
@media (min-width: 760px) { .pricing-grid { grid-template-columns: 1fr 1fr; } }
.plan { padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan.featured { border: 1.5px solid rgba(232, 195, 126, .6); background: linear-gradient(180deg, rgba(232, 195, 126, .08), var(--panel) 40%); box-shadow: 0 30px 60px -30px rgba(232, 195, 126, .35); }
.plan-tag { position: absolute; top: -13px; inset-inline-start: 24px; }
.plan h3 { font-size: 19px; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 44px; font-weight: 700; line-height: 1; }
.price span { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.plan li .ic { color: var(--gold); margin-top: 3px; }
.pay-note { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 22px; display: flex; justify-content: center; align-items: center; gap: 8px; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 4px 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; color: var(--gold); line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 18px; }

.final-cta { padding: 20px 0 80px; }
.cta-panel { padding: 48px 28px; text-align: center; border-radius: 28px; position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(124, 108, 255, .22), rgba(232, 195, 126, .12)); border: 1px solid var(--line-2); }
.cta-panel h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); font-weight: 700; }
.cta-panel p { color: var(--muted); margin: 12px 0 26px; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ==========================================================================
   App (4 stages)
   ========================================================================== */
.stagebar { position: sticky; top: var(--topbar-h); z-index: 20; background: rgba(7, 11, 30, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.stagebar ol { list-style: none; margin: 0 auto; padding: 10px 14px; display: flex; gap: 6px; max-width: 1200px; overflow-x: auto; scrollbar-width: none; }
.stagebar ol::-webkit-scrollbar { display: none; }
.stage-pill { flex: 1; min-width: max-content; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--dim); font-size: 14px; font-weight: 500; cursor: default; }
.stage-pill .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 1.5px solid var(--line-2); flex: none; }
.stage-pill.done { color: var(--muted); cursor: pointer; }
.stage-pill.done .n { background: rgba(61, 220, 151, .15); border-color: rgba(61, 220, 151, .5); color: var(--ok); }
.stage-pill.active { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.stage-pill.active .n { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; }
.stage-pill .lbl { display: none; }
.stage-pill.active .lbl { display: inline; }
@media (min-width: 720px) { .stage-pill .lbl { display: inline; } }

.app-grid { min-height: calc(100vh - var(--topbar-h) - 58px); }
.app-panel { padding: 22px 18px calc(var(--bar-h) + 36px); max-width: 680px; margin: 0 auto; }
@media (min-width: 1100px) {
  .app-grid { display: grid; grid-template-columns: minmax(440px, 520px) 1fr; }
  .app-panel { max-width: none; margin: 0; padding: 30px 34px calc(var(--bar-h) + 30px); border-inline-end: 1px solid var(--line); }
}

.progress-label { font-size: 13px; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; }
.progress-track { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin: 8px 0 24px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gold-grad); border-radius: 3px; transition: width .35s ease; }
.step-title { font-size: clamp(1.5rem, 5vw, 1.9rem); font-weight: 700; }
.step-sub { color: var(--muted); margin: 6px 0 26px; }
.step-enter { animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .step-enter { animation: none; } }

.field { display: block; margin-bottom: 18px; }
.field-label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14.5px; margin-bottom: 8px; color: var(--text); }
.field-label .opt { color: var(--dim); font-weight: 400; font-size: 13px; }
.hint { display: block; color: var(--dim); font-size: 13px; margin: -2px 0 8px; }
input, textarea, select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
textarea { resize: vertical; min-height: 104px; line-height: 1.6; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(232, 195, 126, .6); box-shadow: 0 0 0 4px rgba(232, 195, 126, .12); background: rgba(255, 255, 255, .07); }
input:disabled { opacity: .45; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold); }
.check { display: flex; align-items: center; gap: 10px; margin: -4px 0 16px; cursor: pointer; color: var(--muted); font-size: 14.5px; }
.row-2 { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 14px; color: var(--dim); }
.input-icon input { padding-inline-start: 44px; }

.seg-group { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 20px; }
.seg { flex: 1; border: 0; background: transparent; color: var(--muted); border-radius: 10px; padding: 10px 8px; min-height: 44px; cursor: pointer; font-weight: 500; font-size: 14.5px; }
.seg[aria-pressed="true"], .seg.is-active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.choice-cards { display: grid; gap: 8px; margin-bottom: 22px; }
@media (min-width: 520px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: 12px; align-items: flex-start; text-align: start; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; color: var(--text); }
.choice .ic { color: var(--dim); margin-top: 3px; }
.choice b { display: block; font-size: 15px; font-weight: 600; }
.choice small { display: block; color: var(--dim); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.choice[aria-pressed="true"] { border-color: rgba(232, 195, 126, .55); background: rgba(232, 195, 126, .07); }
.choice[aria-pressed="true"] .ic { color: var(--gold); }

.repeat-card { padding: 18px 18px 4px; margin-bottom: 14px; border-radius: var(--r-md); }
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.repeat-head b { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.repeat-head b .ic { color: var(--gold); }
.link-danger { background: none; border: 0; color: var(--danger); cursor: pointer; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 6px; }
.bullet-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.bullet-row input { flex: 1; }
.bullet-row .icon-btn { flex: none; }
.add-btn { width: 100%; min-height: 50px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); background: transparent; color: var(--gold); cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 22px; }
.add-btn.small { min-height: 42px; margin: 2px 0 16px; font-size: 14px; }
.add-btn:hover { border-color: var(--gold); background: rgba(232, 195, 126, .06); }

.photo-row { display: flex; gap: 14px; align-items: center; }
.photo-preview { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: var(--dim); }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; margin-bottom: 18px; display: flex; gap: 10px; }
.notice .ic { color: var(--gold); margin-top: 2px; }

.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.tpl-pick button { padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 500; }
.tpl-pick button[aria-pressed="true"] { border-color: var(--gold); color: var(--text); box-shadow: 0 0 0 3px rgba(232, 195, 126, .15); }
.tpl-pick .fit-inner { aspect-ratio: 794 / 900; border-radius: 6px; overflow: hidden; background: #fff; margin-bottom: 6px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); }

/* Bottom action bar */
.action-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 25; display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(7, 11, 30, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.action-bar .btn { flex: 1; min-height: 52px; }
.action-bar .btn-gold { flex: 1.7; }
@media (min-width: 1100px) { .action-bar { inset-inline-end: auto; width: 520px; } .preview-toggle { display: none !important; } }

/* Preview pane: overlay on phones, sticky column on desktop */
.preview-pane { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #0a0f28; transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; }
body.preview-open .preview-pane { transform: none; visibility: visible; }
body.preview-open { overflow: hidden; }
.preview-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: 62px; background: rgba(7, 11, 30, .9); }
.preview-tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.preview-tab { border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 14.5px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.preview-tab[aria-selected="true"] { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.preview-tab .ic { color: var(--dim); }
.preview-title { flex: 1; font-weight: 600; padding-inline-start: 6px; }
.draft-note { text-align: center; font-size: 13px; color: var(--dim); padding: 10px 16px 0; }
.preview-scroll { flex: 1; overflow: auto; padding: 18px 14px 50px; position: relative; -webkit-overflow-scrolling: touch; }
.preview-frame { max-width: 794px; margin: 0 auto; position: relative; }
.preview-frame .fit-inner { background: #fff; border-radius: 4px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .85); }
.preview-frame .fit-inner > .cv { pointer-events: auto; }
@media (min-width: 1100px) {
  .preview-pane { position: sticky; top: calc(var(--topbar-h) + 58px); height: calc(100vh - var(--topbar-h) - 58px); transform: none; visibility: visible; z-index: 1; background: transparent; transition: none; }
  .preview-head { background: transparent; }
  .preview-close { display: none !important; }
  .preview-scroll { padding: 26px 36px 60px; }
}

/* Watermark over locked previews */
.locked .fit-inner { user-select: none; -webkit-user-select: none; }
.wm-overlay { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: 4px; overflow: hidden; }
.wm-overlay::after { content: ""; position: absolute; inset: -50%; background-image: var(--wm); background-size: 300px 160px; transform: rotate(-24deg); opacity: .9; }
.lock-badge { position: absolute; z-index: 4; top: 14px; inset-inline-end: 14px; background: var(--panel-solid) !important; color: var(--gold-2) !important; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }

/* Panels inside the app */
.panel-card { padding: 22px; margin-bottom: 16px; }
.panel-card > h2 { font-size: 17px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
.panel-card > h2 .ic { color: var(--gold); }
.score-head { display: flex; align-items: center; gap: 18px; }
.score-head strong { display: block; font-size: 18px; }
.score-head p { color: var(--muted); font-size: 14px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.checklist li { display: flex; gap: 10px; align-items: center; color: var(--dim); }
.checklist li .ic { width: 20px; height: 20px; border-radius: 50%; padding: 3px; background: rgba(255, 255, 255, .06); }
.checklist li.ok { color: var(--text); }
.checklist li.ok .ic { background: var(--ok); color: #05261a; }
.missing-block { margin-top: 18px; }
.missing-block p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.tips { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.unlock-card { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(232, 195, 126, .16), rgba(124, 108, 255, .12)); border: 1px solid rgba(232, 195, 126, .4); margin-bottom: 16px; }
.unlock-card h2 { font-size: 19px; display: flex; gap: 10px; align-items: center; }
.unlock-card h2 .ic { color: var(--gold); }
.unlock-card p { color: var(--muted); margin: 8px 0 16px; font-size: 15px; }
.stage-head { margin-bottom: 20px; }
.stage-head h1 { font-size: clamp(1.5rem, 5vw, 1.95rem); font-weight: 700; }
.stage-head p { color: var(--muted); margin-top: 6px; }
.link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* Payment */
.plan-pick { display: grid; gap: 12px; margin-bottom: 18px; }
.plan-option { padding: 18px; text-align: start; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; color: var(--text); }
.plan-option h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-option .amt { font-size: 26px; font-weight: 700; grid-row: span 2; }
.plan-option ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; color: var(--muted); font-size: 14px; }
.plan-option li { display: flex; gap: 8px; align-items: center; }
.plan-option li .ic { color: var(--gold); }
.plan-option[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232, 195, 126, .14); }
.steps-mini { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.steps-mini li { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 14.5px; }
.steps-mini .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--gold); font-size: 13px; font-weight: 700; flex: none; }
.copy-rows { display: grid; gap: 8px; }
.copy-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.copy-row small { color: var(--dim); display: block; font-size: 12.5px; }
.copy-row b { font-size: 16px; letter-spacing: .02em; }
.copy-row > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.copy-row.highlight { border-color: rgba(232, 195, 126, .5); background: rgba(232, 195, 126, .06); }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px; border-radius: var(--r-md); border: 1.5px dashed var(--line-2); text-align: center; color: var(--muted); cursor: pointer; position: relative; margin-bottom: 18px; }
.dropzone:hover { border-color: var(--gold); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone img { max-height: 160px; border-radius: 8px; }
.dropzone .ic { color: var(--gold); }
.status-card { padding: 26px; text-align: center; }
.status-card .big-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.status-card h2 { font-size: 20px; }
.status-card p { color: var(--muted); margin-top: 8px; }
.pending-ic { background: rgba(245, 184, 92, .14); color: var(--warn); }
.pending-ic .ic { animation: spin 3s linear infinite; }
.reject-ic { background: rgba(255, 122, 133, .14); color: var(--danger); }
.ok-ic { background: rgba(61, 220, 151, .14); color: var(--ok); }

/* Download */
.dl-grid { display: grid; gap: 10px; margin-bottom: 16px; }
.li-panel { padding: 22px; max-width: 700px; margin: 0 auto; }
.li-block + .li-block { margin-top: 22px; }
.li-block h3 { font-size: 15px; margin-bottom: 8px; color: var(--muted); font-weight: 500; }
.li-text { white-space: pre-wrap; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; line-height: 1.8; }
.li-text .redact { filter: blur(4px); user-select: none; }
.li-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Improve */
.improve-btn { position: absolute; z-index: 6; display: inline-flex; align-items: center; gap: 6px; background: var(--gold-grad); color: var(--gold-ink); border: 0; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6); }
.sheet { position: fixed; z-index: 60; inset-inline: 12px; bottom: 12px; max-width: 580px; margin: 0 auto; padding: 18px; border-radius: var(--r-lg); background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); animation: rise .25s ease; }
.sheet h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sheet ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sheet li button { width: 100%; text-align: start; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; line-height: 1.6; color: var(--text); }
.sheet li button:hover { border-color: var(--gold); background: rgba(232, 195, 126, .07); }

/* Generating overlay */
.gen-overlay { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(7, 11, 30, .92); backdrop-filter: blur(10px); }
.gen-paper { width: 130px; height: 164px; margin: 0 auto 26px; border-radius: 10px; background: #fff; padding: 18px 14px; display: grid; gap: 9px; align-content: start; box-shadow: 0 30px 60px -20px rgba(124, 108, 255, .6); }
.gen-paper i { height: 8px; border-radius: 3px; background: #e5e7ef; }
.gen-paper i:first-child { width: 65%; height: 12px; background: #1b1f3a; }
.gen-paper i:nth-child(odd) { animation: glow 1.6s ease-in-out infinite; }
.gen-paper i:nth-child(3) { animation-delay: .3s; }
.gen-paper i:nth-child(5) { animation-delay: .6s; }
@keyframes glow { 50% { background: var(--gold); } }
.gen-overlay h2 { font-size: 20px; }
.gen-overlay p { color: var(--muted); margin-top: 8px; max-width: 34ch; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(0, 0, 0, .2); border-top-color: currentColor; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Account & admin */
.page { padding-top: 34px; padding-bottom: 80px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); font-weight: 700; }
.doc-list { display: grid; gap: 12px; }
@media (min-width: 720px) { .doc-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .doc-list { grid-template-columns: repeat(3, 1fr); } }
.doc-row { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.doc-row h3 { font-size: 16.5px; }
.doc-row small { color: var(--dim); }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); grid-column: 1 / -1; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 18px; }
.stat small { color: var(--muted); display: block; font-size: 13.5px; }
.stat b { font-size: 26px; font-weight: 700; display: block; margin-top: 4px; }
.stat.hl { border-color: rgba(232, 195, 126, .45); }
.stat.hl b { color: var(--gold-2); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.orders { display: grid; gap: 10px; }
.order { padding: 16px 18px; display: grid; gap: 12px; }
@media (min-width: 900px) { .order { grid-template-columns: 1.1fr 1.2fr 1fr auto; align-items: center; } }
.order .ref { font-weight: 700; letter-spacing: .03em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.order small { color: var(--dim); display: block; font-size: 13px; }
.order .amt { font-weight: 700; font-size: 18px; }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Dialogs */
.dialog { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 26px; width: min(460px, calc(100vw - 24px)); background: var(--panel-solid); color: var(--text); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9); }
.dialog::backdrop { background: rgba(3, 5, 16, .7); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; margin: 0; }
.dialog .muted { font-size: 14px; margin: 4px 0 18px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin: 12px 0 10px; }
.receipt-dialog { width: min(560px, calc(100vw - 24px)); }
.receipt-dialog img { width: 100%; border-radius: 12px; margin-top: 10px; }
.form-error { background: rgba(255, 122, 133, .1); color: var(--danger); border: 1px solid rgba(255, 122, 133, .3); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; margin: 6px 0 16px; }

/* Toast */
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(var(--bar-h) + 18px); max-width: 440px; margin: 0 auto; padding: 13px 18px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line-2); color: var(--text); text-align: center; font-weight: 500; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .9); animation: rise .25s ease; }

/* Fit frames: a .cv scaled to its container */
.fit-inner { position: relative; }
/* Physical left/top on purpose: the .cv may have a different dir than the page. */
.fit-inner > .cv { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; }

/* Print: only #print-root */
#print-root { display: none; }
@media print {
  html, body { background: #fff !important; }
  body::before { display: none; }
  body > *:not(#print-root) { display: none !important; }
  #print-root { display: block !important; }
  #print-root .cv { width: 100%; min-height: 0; padding-top: 0; padding-bottom: 0; }
  #print-root .t-modern, #print-root .t-creative { padding: 0; }
}
[dir="rtl"] .ic.flip-rtl { transform: scaleX(-1); }

/* ==========================================================================
   Services, tools, tracker, jobs, profile, admin tabs
   ========================================================================== */
.menu-btn { display: grid; }
@media (min-width: 960px) { .menu-btn { display: none; } }
.mobile-menu { display: none; position: absolute; inset-inline: 12px; top: calc(var(--topbar-h) + 6px); z-index: 50; padding: 8px; border-radius: var(--r-lg); background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
body.menu-open .mobile-menu { display: grid; }
.mobile-menu a { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; color: var(--text); font-weight: 500; }
.mobile-menu a .ic { color: var(--gold); }
.mobile-menu a:hover { background: var(--panel-2); }
@media (min-width: 960px) { .mobile-menu { display: none !important; } }

.teaser { color: var(--text); display: block; }
.teaser p { font-size: 14px; }
.teaser .tag { margin-top: 14px; }

.svc-group { margin-bottom: 40px; }
.svc-group > h2 { display: flex; gap: 10px; align-items: center; font-size: 21px; margin-bottom: 16px; }
.svc-group > h2 .ic { color: var(--gold); }
.svc-grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
.svc-card { display: flex; flex-direction: column; padding: 22px; color: var(--text); transition: border-color .2s, transform .2s; }
.svc-card:hover { border-color: rgba(232, 195, 126, .4); transform: translateY(-3px); }
.svc-card .icon-tile { margin-bottom: 14px; }
.svc-card h3 { font-size: 17px; }
.svc-card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; flex: 1; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: var(--gold); }
.svc-head { display: flex; gap: 16px; align-items: flex-start; margin: 14px 0 22px; }
.svc-head h1 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; }
.svc-head p { color: var(--muted); margin: 6px 0 10px; }
.svc-head .icon-tile { margin: 0; flex: none; }

.output { padding: 24px; margin-bottom: 16px; }
.output.locked { user-select: none; -webkit-user-select: none; }
.out-title { font-size: 21px; margin-bottom: 8px; }
.out-intro { color: var(--muted); margin-bottom: 8px; }
.out-sec { padding: 16px 0; border-top: 1px solid var(--line); }
.out-sec:first-of-type { border-top: 0; }
.out-sec h3 { font-size: 16.5px; display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.out-sec h3 .ic { color: var(--gold); }
.out-sec p { white-space: pre-wrap; }
.out-sec ul { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 4px; color: var(--muted); }
.redact { filter: blur(4.5px); user-select: none; -webkit-user-select: none; }
.course-list { display: grid; gap: 8px; }
.course-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 10px 12px; border-radius: 10px; background: var(--panel); }
.course-row a { font-size: 14px; }
.q-n { width: 28px; height: 28px; border-radius: 50%; background: var(--gold-grad); color: var(--gold-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.q-card textarea { margin-top: 10px; }
.feedback { margin-top: 14px; padding: 16px; border-radius: var(--r-md); background: rgba(61, 220, 151, .06); border: 1px solid rgba(61, 220, 151, .25); display: grid; gap: 8px; }
.feedback ul { margin: 0; }
.feedback .score-head { align-items: flex-start; }
.better { white-space: pre-wrap; color: var(--text); }

.chat { padding: 0; overflow: hidden; margin-bottom: 16px; }
.chat-log { max-height: 60vh; overflow-y: auto; padding: 18px; display: grid; gap: 12px; }
.msg { display: flex; }
.msg.user { justify-content: flex-end; }
.bubble { max-width: 85%; padding: 12px 16px; border-radius: 18px; white-space: pre-wrap; line-height: 1.7; }
.msg.user .bubble { background: var(--gold-grad); color: var(--gold-ink); border-end-end-radius: 6px; }
.msg.assistant .bubble { background: var(--panel-2); border: 1px solid var(--line); border-end-start-radius: 6px; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input textarea { min-height: 50px; flex: 1; }

.headshot { text-align: center; }
.headshot img { max-width: 360px; width: 100%; border-radius: 20px; margin: 0 auto 16px; display: block; }
.headshot .link-row { justify-content: center; }
.headshot-wait { padding: 40px 10px; color: var(--muted); display: grid; place-items: center; gap: 12px; }
.headshot-wait .spinner { width: 32px; height: 32px; border-color: rgba(255, 255, 255, .2); border-top-color: var(--gold); }

.status-inline { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.status-inline .ic { color: var(--warn); margin-top: 3px; }
.status-inline p { color: var(--muted); font-size: 14.5px; }
.coupon-row { display: flex; gap: 8px; margin: 10px 0 14px; }
.coupon-row input { flex: 1; text-transform: uppercase; }

.import-banner { width: 100%; display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin-bottom: 22px; text-align: start; cursor: pointer; color: var(--text); border-style: dashed; }
.import-banner .ic { color: var(--gold); }
.import-banner b { display: block; }
.import-banner small { color: var(--muted); }

.tools .tool { padding: 16px 0; border-top: 1px solid var(--line); }
.tools .tool:first-of-type { border-top: 0; padding-top: 4px; }
.tools h3 { font-size: 15.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.tools h3 .ic { color: var(--gold); }
.tools h3 .tag { margin-inline-start: auto; }
.tools textarea { min-height: 80px; margin-bottom: 8px; }
.versions { display: flex; flex-wrap: wrap; gap: 8px; }

.card-dialog { width: min(640px, calc(100vw - 24px)); }
.card-dialog h3 { font-size: 14px; margin: 18px 0 8px; font-weight: 500; }
.card-preview svg { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.sig-preview { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 10px; overflow-x: auto; }

.acc-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .acc-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.plan-feats { list-style: none; padding: 0; margin: 12px 0 16px; display: grid; gap: 8px; color: var(--muted); }
.plan-feats li { display: flex; gap: 8px; align-items: center; }
.plan-feats .ic { color: var(--gold); }

.trk-form { display: grid; gap: 8px; margin-bottom: 18px; }
@media (min-width: 900px) { .trk-form { grid-template-columns: 1.2fr 1.2fr 1.2fr 1fr auto; align-items: center; } }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; }
.kcol { padding: 14px; min-height: 200px; }
.kcol h3 { font-size: 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kcard { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; display: grid; gap: 4px; position: relative; }
.kcard small { color: var(--muted); }
.kcard > a { position: absolute; top: 10px; inset-inline-end: 10px; }
.krow { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.krow select { min-height: 38px; padding: 6px 10px; font-size: 14px; }

.jobs { display: grid; gap: 12px; }
@media (min-width: 900px) { .jobs { grid-template-columns: 1fr 1fr; } }
.job { padding: 20px; display: grid; gap: 12px; }
.job.featured { border-color: rgba(232, 195, 126, .5); }
.job-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.job-head h3 { font-size: 17px; }
.job-head p { color: var(--muted); font-size: 14.5px; }

.profile { display: grid; gap: 16px; }
.profile-hero { padding: 28px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; border-top: 4px solid var(--pa); }
.profile-hero img, .profile-hero .avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pa); }
.profile-hero .avatar { display: grid; place-items: center; font-size: 42px; font-weight: 700; background: var(--panel-2); }
.profile-hero h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 700; }
.profile-headline { color: var(--pa); font-weight: 600; margin: 4px 0; filter: brightness(1.6); }
.profile-hero .link-row { margin: 14px 0 0; }
.profile-summary { font-size: 17px; line-height: 1.8; }
.profile h2 { font-size: 17px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.profile h2 .ic { color: var(--gold); }
.timeline { display: grid; gap: 18px; border-inline-start: 2px solid var(--line-2); padding-inline-start: 18px; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -25px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--pa); }
.tl-item small { display: block; color: var(--muted); }
.tl-item ul { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); }
.profile-link { display: block; padding: 12px 14px; border-radius: 12px; background: var(--panel); margin-bottom: 8px; color: var(--text); font-weight: 600; }
.profile-link small { display: block; color: var(--muted); font-weight: 400; }

.admin-tabs { margin-bottom: 20px; }
.adm-form { display: grid; gap: 8px; margin-bottom: 16px; }
@media (min-width: 900px) { .adm-form { grid-template-columns: repeat(3, 1fr); } .adm-form textarea, .adm-form .hint { grid-column: 1 / -1; } }
.adm-form input[type="color"] { padding: 4px; min-height: 50px; }
#admin-extra .panel-card .ref { font-weight: 700; display: flex; gap: 8px; align-items: center; }

.print-doc { font-family: "IBM Plex Sans Arabic", Inter, sans-serif; color: #111; line-height: 1.7; }
.print-doc h1 { font-size: 22px; margin-bottom: 10px; }
.print-doc h3 { font-size: 15px; margin: 16px 0 4px; }
.print-doc .out-sec { border-color: #ddd; }
.print-doc ul { color: #333; }
.footer a { color: var(--muted); } .footer .link-row { gap: 16px; }

/* ---------- Site footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(124,108,255,.05)); color: var(--muted); font-size: 14.5px; padding-block: 48px 28px; margin-top: 24px; }
body.in-app .site-footer { display: none; }
.site-footer .f-top { display: grid; gap: 36px; }
.site-footer .f-brand { display: grid; gap: 14px; justify-items: start; max-width: 360px; }
.site-footer .f-brand p { margin: 0; line-height: 1.8; }
.site-footer .f-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.site-footer .f-badges span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--dim); }
.site-footer .f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.site-footer h3 { font-size: 13px; letter-spacing: .04em; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--muted); text-decoration: none; }
.site-footer ul a:hover, .site-footer ul a:focus-visible { color: var(--text); }
.site-footer .logo { color: var(--text); }
.site-footer .f-note { color: var(--dim); font-size: 13px; line-height: 1.7; display: block; }
.site-footer .f-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; color: var(--dim); font-size: 13px; }
.site-footer .f-lang { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }
.site-footer .f-lang:hover { border-color: var(--line-2); color: var(--text); }
@media (min-width: 960px) {
  .site-footer .f-top { grid-template-columns: 300px 1fr; gap: 56px; }
  .site-footer .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* phones: login lives in the menu, so the top bar never overflows */
@media (max-width: 520px) {
  .topbar-actions #account-btn, .topbar-actions #admin-link { display: none; }
  .topbar-actions .btn-ghost { padding-inline: 10px; }
  .topbar-inner { min-width: 0; }
}

/* ---------- Announcement bar ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; text-align: center; font-size: 14px; font-weight: 500;
  color: var(--gold-ink); background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2)); }
.announce .ic { flex: none; }

/* ---------- Admin settings ---------- */
.settings { display: grid; gap: 16px; max-width: 760px; }
.settings h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 19px; }
.settings h4 { margin: 18px 0 6px; font-size: 13px; color: var(--gold); letter-spacing: .03em; font-weight: 600; }
.settings .hint { margin: 0 0 6px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row > span:first-child { min-width: 0; color: var(--text); }
.set-input { display: inline-flex; align-items: center; gap: 6px; }
.set-input input { width: 92px; text-align: center; font-variant-numeric: tabular-nums; }
.set-input small { color: var(--dim); min-width: 28px; }
.set-default { grid-column: 1 / -1; color: var(--warn); font-size: 12px; }
.set-toggles { display: grid; gap: 0 24px; }
@media (min-width: 720px) { .set-toggles { grid-template-columns: 1fr 1fr; } }
.switch-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row i { flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background .2s; }
.switch-row i::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch-row input:checked + i { background: var(--ok); border-color: var(--ok); }
.switch-row input:checked + i::after { background: #fff; transform: translateX(18px); }
[dir="rtl"] .switch-row input:checked + i::after { transform: translateX(-18px); }
.switch-row input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.set-actions { position: sticky; bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: var(--r-md); background: rgba(11, 17, 48, .92); border: 1px solid var(--line); backdrop-filter: blur(10px); }
@media (prefers-reduced-motion: reduce) { .switch-row i, .switch-row i::after { transition: none; } }
